summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* ipa-pure-const.c (local_pure_const): Do NORETURN discovery.Jan Hubicka2010-06-014-0/+45
| | | | | | | | * ipa-pure-const.c (local_pure_const): Do NORETURN discovery. * testsuite/gcc.dg/noreturn-8.c: New testcase. From-SVN: r160124
* noreturn-1_1.c: Remove dg-do annotations.Jan Hubicka2010-06-013-3/+8
| | | | | | | * testsuite/gcc.dg/lto/noreturn-1_1.c: Remove dg-do annotations. * testsuite/gcc.dg/lto/noreturn-1_0.c: Move it here. From-SVN: r160123
* tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...; remove return ↵Jan Hubicka2010-06-017-47/+81
| | | | | | | | | | | | | | value. * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...; remove return value. (split_bbs_on_noreturn_calls) .... here. * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too. * tree-flow.h (fixup_noreturn_call): New. * testsuite/gcc.dg/lto/noreturn-1_1.c: New testcase. * testsuite/gcc.dg/lto/noreturn-1_0.c: New testcase. From-SVN: r160122
* * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.Jan Hubicka2010-06-012-1/+6
| | | | From-SVN: r160121
* tree.h (build_nt_call_list): Delete.Nathan Froyd2010-06-013-18/+5
| | | | | | | * tree.h (build_nt_call_list): Delete. * tree.c (build_nt_call_list): Delete. From-SVN: r160120
* * typeck2.c (build_x_arrow): Make types_memoized a VEC.Nathan Froyd2010-06-012-11/+16
| | | | From-SVN: r160119
* objc-act.c (build_next_objc_exception_stuff): Give setjmp a varargs type ↵Nathan Froyd2010-06-012-1/+6
| | | | | | | | | instead of a zero-argument type. * objc-act.c (build_next_objc_exception_stuff): Give setjmp a varargs type instead of a zero-argument type. From-SVN: r160112
* fwprop.c: Make emit-rtl.h include last.Jan Hubicka2010-06-0118-125/+169
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fwprop.c: Make emit-rtl.h include last. * rtlanal.c: Include emit-rtl.h. * genautomata.c: Output emit-rtl include into insn-automata.c * df-scan.c: Include emit-rtl.h. * haifa-sched.c: Indlude emit-rtl.h. * mode-switching.c: Indlude emit-rtl.h. * graph.c: Indlude emit-rtl.h. * sel-sched.c: Include emit-rtl.h. * sel-sched-ir.c: Include emit-rtl.h. * ira-build.c: Include emit-rtl.h. * emit-rtl.c: (first_insn, last_insn): Remove defines. (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h. (set_new_first_and_last_insn, get_last_insn_anywhere, get_first_nonnote_insn, get_last_nonnote_insn, try_split, make_call_insn_raw, add_insn_after, add_insn_before, remove_insn, delete_insns_since, reorder_insns_nobb, emit_insn_after_1, emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence, push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn): Use accessor functions. * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn, gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value, set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode, mem_expr_equal_p): Move here from rtl.h (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid): Move here from emit-rtl.c; make inline. * cfglayout.h: Include emit-rtl.h * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn, gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value, set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode, mem_expr_equal_p, get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h. * reg-stack.c: Include emit-rtl.h * dce.c: Likewise. From-SVN: r160111
* cgraph.h (tree_function_versioning): Update prototype.Jan Hubicka2010-06-016-42/+154
| | | | | | | | | | | | | | | | | | | * cgraph.h (tree_function_versioning): Update prototype. (cgraph_function_versioning): Update prototype. * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy bitmap. (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy. (cgraph_materialize_clone, save_inline_function_body): Update use of tree_function_versioning. * tree-inline.c (copy_bb): Look for previous copied block to link after; fix debug output. (copy_cfg_body): Accept new_entry_block and bbs_to_copy. (copy_body): Likewise. (expand_call_inline): Update use of copy_body. (tree_function_versioning): Update use of copy body; accept blocks_to_copy and new_entry. From-SVN: r160110
* gegenrtl.c: Remove unnecesary prototypes.Jan Hubicka2010-06-013-91/+25
| | | | | | | | | | | * gegenrtl.c: Remove unnecesary prototypes. (gendecl): Remove. (gendef): Produce static inline. (gencode): Remove. (main): Do not decode parameters; generate header only. * Makefile.in (genrtl.c): Remove. From-SVN: r160108
* Undo inadvertent commit in rev 160105.Diego Novillo2010-06-015-129/+48
| | | | From-SVN: r160107
* * tree-switch-conversion.c (build_one_array): Make it readonly.Jan Hubicka2010-06-012-0/+5
| | | | From-SVN: r160106
* richi's fixes for c++ bootstrapDiego Novillo2010-06-015-48/+129
| | | | From-SVN: r160105
* Fix typo.Arnaud Charlet2010-06-011-1/+1
| | | | From-SVN: r160104
* Make-lang.in (CXX_C_OBJS): Add c-ada-spec.o.Arnaud Charlet2010-06-014-4/+99
| | | | | | | | | | | | | * Make-lang.in (CXX_C_OBJS): Add c-ada-spec.o. * decl2.c: Include langhooks.h and c-ada-spec.h. (cpp_check, collect_source_refs, collect_ada_namespace, collect_all_refs): New functions. (cp_write_global_declarations): Add handling of -fdump-ada-spec. * lang-specs.h: Ditto. Co-Authored-By: Matthew Gingell <gingell@adacore.com> From-SVN: r160103
* optabs.c (init_optabs): Guard all accesses to reinit.Richard Guenther2010-06-015-3/+17
| | | | | | | | | | | 2010-06-01 Richard Guenther <rguenther@suse.de> * optabs.c (init_optabs): Guard all accesses to reinit. * ipa-pure-const.c (propagate): Fix another typo. * opts.c (common_handle_option): Split assignment to bool. * c-opts.c (c_common_handle_option): Likewise. From-SVN: r160102
* * gnat_ugn.texi: Improve doc on -fdump-ada-spec, mention limitations.Arnaud Charlet2010-06-012-4/+21
| | | | From-SVN: r160101
* invoke.texi: Mention -fdump-ada-spec.Arnaud Charlet2010-06-0110-13/+3377
| | | | | | | | | | | | | | | | | | | | | * doc/invoke.texi: Mention -fdump-ada-spec. * tree-dump.c (dump_files): Add ada-spec. (FIRST_AUTO_NUMBERED_DUMP): Bump to 8. * tree-pass.h (tree_dump_index): Add TDI_ada. * gcc.c: Add support for -C without -E and for -fdump-ada-spec. (cpp_unique_options): Do not reject -C or -CC when -E isn't present. (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files. * c-decl.c: Include c-ada-spec.h. (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New functions. (c_write_global_declarations): Add handling of -fdump-ada-spec. * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT. * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o. * c-ada-spec.h, c-ada-spec.c: New files. Co-Authored-By: Matthew Gingell <gingell@adacore.com> From-SVN: r160100
* re PR middle-end/43853 (FAIL: gcc.dg/lto/20090126-1 ↵Richard Guenther2010-06-012-9/+35
| | | | | | | | | | | | | | | | | c_lto_20090126-1_0.o-c_lto_20090126-1_0.o) 2010-06-01 Richard Guenther <rguenther@suse.de> PR lto/43853 * ipa-pure-const.c (get_function_state): Hand back varying state if we do not have one. (has_function_state): New function. (duplicate_node_data): Adjust. (remove_node_data): Likewise. (pure_const_write_summary): Likewise. (propagate): Likewise. Fix typo. From-SVN: r160099
* tree-cfg.c (verify_stmt): Do not skip could_throw test.Jan Hubicka2010-06-013-20/+8
| | | | | | | | * tree-cfg.c (verify_stmt): Do not skip could_throw test. * passes.c (execute_function_todo): Do not make implicit verify_ssa. (execute_all_ipa_transforms): Do not play with the states. From-SVN: r160098
* Move changelog entry to correct ChangeLog.Maxim Kuvyrkov2010-06-012-8/+8
| | | | From-SVN: r160097
* acinclude.m4, [...]: Support Bionic C library.Maxim Kuvyrkov2010-06-018-10/+307
| | | | | | | | | | * acinclude.m4, configure.host: Support Bionic C library. * configure: Regenerate. * config/os/bionic/ctype_base.h, config/os/bionic/ctype_inline.h, * config/os/bionic/ctype_noincline.h, config/os/bionic/os_defines.h: New files, based on config/os/newlib/*. From-SVN: r160096
* t-linux-androideabi: New.Maxim Kuvyrkov2010-06-013-0/+21
| | | | | | | * config/arm/t-linux-androideabi: New. * config.gcc (arm*-*-linux-androideabi): Include multilib configuration. From-SVN: r160095
* tree-inline.c (estimate_num_insns): For stdarg functions look into call ↵Jan Hubicka2010-06-012-3/+18
| | | | | | | | | statement to count cost of argument passing. * tree-inline.c (estimate_num_insns): For stdarg functions look into call statement to count cost of argument passing. From-SVN: r160094
* 2010-06-01 Kai TietzKai Tietz2010-06-013-12/+35
| | | | | | | | | | | | | * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX argument for fprintf. (ix86_output_addr_diff_elt): Likewise. (x86_function_profiler): Likewise. * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore. (LPREFIX): Likewise. (ASM_GENERATE_INTERNAL_LABEL): Likewise. From-SVN: r160093
* Daily bump.GCC Administrator2010-06-011-1/+1
| | | | From-SVN: r160092
* gfortran.texi: Fix typos in description of variable-format- expressions.Steven G. Kargl2010-05-312-2/+7
| | | | | | | | | 2010-05-31 Steven G. Kargl <kargl@gcc.gnu.org> * fortran/gfortran.texi: Fix typos in description of variable-format- expressions. From-SVN: r160086
* re PR fortran/36928 (array temporary for interleaving assignment with ↵Thomas Koenig2010-05-315-0/+102
| | | | | | | | | | | | | | | | | | non-constant start values) 2010-05-31 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/36928 * dependency.c (gfc_check_section_vs_section): Check for interleaving array assignments without conflicts. 2010-05-31 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/36928 * gfortran.dg/dependency_27.f90: New test. * gfortran.dg/array_assign_1.F90: New test. From-SVN: r160085
* re PR target/44338 (-mno-fused-madd causes FAIL: gcc.target/i386/sse-23.c ↵Jakub Jelinek2010-05-314-20/+43
| | | | | | | | | | | | | | | | | | | (internal compiler error)) PR target/44338 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256, fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4, fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4, fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4, fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4, fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4, fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4): Guard only with TARGET_FMA4 instead of TARGET_FMA4 && TARGET_FUSED_MADD. * gcc.target/i386/sse-24.c: New test. From-SVN: r160083
* re PR libstdc++/43820 (auto_ptr used with incomplete type no longer triggers ↵Jonathan Wakely2010-05-315-7/+97
| | | | | | | | | | | | | | warning) 2010-05-31 Jonathan Wakely <jwakely.gcc@gmail.com> PR libstdc++/43820 * include/bits/shared_ptr_base.h: Require complete type. * include/tr1/shared_ptr.h: Likewise. * testsuite/20_util/shared_ptr/cons/43820.cc: New. * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820.cc: New. From-SVN: r160082
* * tree.h (tree_range_check_failed): Declare noreturn.Jan Hubicka2010-05-312-1/+6
| | | | From-SVN: r160081
* gimple.c (gimple_call_builtin_p): New function.Jan Hubicka2010-05-314-3/+34
| | | | | | | | | | | | | | | | | * gimple.c (gimple_call_builtin_p): New function. * gimple.h (gimple_call_builtin_p): Declare. * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN to exit. (execute_warn_function_return): BUILT_IN_RETURN is return. (split_critical_edges): Return edges are not critical. (is_ctrl_altering_stmt): Builtin_in_return is altering. (gimple_verify_flow_info): Handle built_in_return. (execute_warn_function_return): Handle built_in_return. * ipa-pure-const.c (check_call): Ignore builtin_return. * gcc.dg/builtin-apply4.c: Compile with -Wmissing-return. From-SVN: r160079
* gimple.c (gimple_call_builtin_p): New function.Jan Hubicka2010-05-313-1/+18
| | | | | | | | | | | | | | | | | * gimple.c (gimple_call_builtin_p): New function. * gimple.h (gimple_call_builtin_p): Declare. * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN to exit. (execute_warn_function_return): BUILT_IN_RETURN is return. (split_critical_edges): Return edges are not critical. (is_ctrl_altering_stmt): Builtin_in_return is altering. (gimple_verify_flow_info): Handle built_in_return. (execute_warn_function_return): Handle built_in_return. * ipa-pure-const.c (check_call): Ignore builtin_return. * gcc.dg/builtin-apply4.c: Compile with -Wmissing-return. From-SVN: r160078
* re PR middle-end/44337 (ICE: in expand_assignment, at expr.c:4276)Jakub Jelinek2010-05-314-1/+29
| | | | | | | | | | PR middle-end/44337 * expr.c (expand_assignment): Don't store anything for out-of-bounds array accesses with non-MEM. * gcc.dg/pr44337.c: New test. From-SVN: r160076
* re PR tree-optimization/44182 (-fcompare-debug failure (length) with -O1)Jakub Jelinek2010-05-314-5/+121
| | | | | | | | | | | | | PR tree-optimization/44182 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that newly needs to end a bb is followed by debug stmts, instead return true from the function at the end. (maybe_move_debug_stmts_to_successors): New function. (copy_cfg_body): Call it if copy_edges_for_bb returned true. * g++.dg/debug/pr44182.C: New test. From-SVN: r160074
* basic_string.h (front, back): Add.Paolo Carlini2010-05-3110-15/+182
| | | | | | | | | | | | | | | | | | | 2010-05-31 Paolo Carlini <paolo.carlini@oracle.com> * include/bits/basic_string.h (front, back): Add. * include/debug/string: Adjust. * include/ext/vstring.h (front, back): Tweak the implementation to follow more closely the letter of the specs. * testsuite/21_strings/basic_string/element_access/char/ front_back.cc: New. * testsuite/21_strings/basic_string/element_access/wchar_t/ front_back.cc: Likewise. * config/abi/pre/gnu.ver: Export new symbols. * testsuite/util/testsuite_abi.cc: Adjust. * configure.ac: Bump minor version to 6:15:0. * configure: Regenerate. From-SVN: r160071
* re PR target/44161 (__attribute__((__target__)) resets pic flag causing ↵Kai Tietz2010-05-312-1/+15
| | | | | | | | | | | | spurious warnings) 2010-05-31 Kai Tietz <kai.tietz@onevision.com> PR target/44161 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic. From-SVN: r160070
* cgraphunit.c (cgraph_decide_is_function_needed): Really return false for ↵Eric Botcazou2010-05-315-7/+33
| | | | | | | | | nested functions in non-optimized compilation. * cgraphunit.c (cgraph_decide_is_function_needed): Really return false for nested functions in non-optimized compilation. From-SVN: r160068
* tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.Richard Guenther2010-05-312-0/+25
| | | | | | | | | 2010-05-31 Richard Guenther <rguenther@suse.de> * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN. From-SVN: r160067
* objc-act.c (synth_module_prologue): Use build_function_type_list instead of ↵Nathan Froyd2010-05-312-61/+59
| | | | | | | | | | | | build_function_type. * objc-act.c (synth_module_prologue): Use build_function_type_list instead of build_function_type. (build_module_initializer_routine): Likewise. (build_next_objc_exception_stuff): Likewise. (build_objc_exception_stuff): Likewise. From-SVN: r160066
* Daily bump.GCC Administrator2010-05-311-1/+1
| | | | From-SVN: r160065
* * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.Jan Hubicka2010-05-302-0/+7
| | | | From-SVN: r160061
* gfortran.h (CLASS_DATA): New macro for accessing the $data component of a ↵Janus Weil2010-05-3013-113/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | class container. 2010-05-30 Janus Weil <janus@gcc.gnu.org> * gcc/fortran/gfortran.h (CLASS_DATA): New macro for accessing the $data component of a class container. * gcc/fortran/decl.c (attr_decl1): Use macro CLASS_DATA. * gcc/fortran/expr.c (gfc_check_pointer_assign,gfc_check_assign_symbol, gfc_has_ultimate_allocatable,gfc_has_ultimate_pointer): Ditto. * gcc/fortran/interface.c (matching_typebound_op): Ditto. * gcc/fortran/match.c (gfc_match_allocate, gfc_match_deallocate): Ditto. * gcc/fortran/parse.c (parse_derived): Ditto. * gcc/fortran/primary.c (gfc_match_varspec, gfc_variable_attr, gfc_expr_attr): Ditto. * gcc/fortran/resolve.c (resolve_structure_cons, find_array_spec, resolve_deallocate_expr, resolve_allocate_expr, resolve_select_type, resolve_fl_var_and_proc, resolve_typebound_procedure, resolve_fl_derived): Ditto. * gcc/fortran/symbol.c (gfc_type_compatible): Restructured. * gcc/fortran/trans-array.c (structure_alloc_comps): Use macro CLASS_DATA. * gcc/fortran/trans-decl.c (gfc_get_symbol_decl, gfc_trans_deferred_vars): Ditto. * gcc/fortran/trans-stmt.c (gfc_trans_allocate): Ditto. From-SVN: r160060
* re PR middle-end/42975 (eh-cleanup should be able to clear ↵Richard Guenther2010-05-302-1/+23
| | | | | | | | | | | | | DECL_FUNCTION_PERSONALITY) 2010-05-30 Richard Guenther <rguenther@suse.de> PR lto/42975 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh. (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is no longer needed. From-SVN: r160059
* darwin.c (output_objc_section_asm_op): Add comment.Iain Sandoe2010-05-306-9/+26
| | | | | | | | | | | | | | | | 2010-05-30 Iain Sandoe <iains@gcc.gnu.org> * config/darwin.c (output_objc_section_asm_op): Add comment. (name_needs_quotes): Add '_' to list of valid comment chars. (machopic_output_function_base_name): Remove unneeded quotes. (darwin_encode_section_info): Adjust asm whitespace. * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs. (ASM_OUTPUT_LOCAL): Ditto. * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto. * config/darwin.h (GLOBAL_ASM_OP): Ditto. * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto. From-SVN: r160058
* rs6000.c (rs6000_output_function_entry): Use RS6000_OUTPUT_BASENAME ↵Eric Botcazou2010-05-302-25/+31
| | | | | | | | | | unconditionally. * config/rs6000/rs6000.c (rs6000_output_function_entry): Use RS6000_OUTPUT_BASENAME unconditionally. (rs6000_output_function_epilogue): Likewise. From-SVN: r160057
* toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool nodesJan Hubicka2010-05-302-4/+11
| | | | | | | * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool nodes From-SVN: r160056
* tree-cfg.c (verify_gimple_assign_single): Implement verification for ↵Richard Guenther2010-05-302-0/+19
| | | | | | | | | | | COND_EXPR rhs. 2010-05-30 Richard Guenther <rguenther@suse.de> * tree-cfg.c (verify_gimple_assign_single): Implement verification for COND_EXPR rhs. From-SVN: r160055
* cgraph.h (cgraph_dump_file): Declare.Jan Hubicka2010-05-306-3/+46
| | | | | | | | | | | | * cgraph.h (cgraph_dump_file): Declare. * cgraphunit.c (cgraph_dump_file): Export. * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose. * lto.c (promote_var, promote_fn, lto_wpa_write_files): Dump partitioning decisions. From-SVN: r160053
* dwarf2out.c (reference_to_unused, [...]): Avoid creating of new varool nodes.Jan Hubicka2010-05-302-4/+10
| | | | | | | | * dwarf2out.c (reference_to_unused, premark_types_used_by_global_vars_helper): Avoid creating of new varool nodes. From-SVN: r160052