aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2011-05-22cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.Eric Botcazou2-4/+10
* cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK. (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges returns true. From-SVN: r174046
2011-05-22mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.Richard Sandiford2-1/+7
gcc/ * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT. From-SVN: r174045
2011-05-22sparc.c (sparc_delegitimize_address): Handle UNSPEC_MOVE_PIC pattern.Eric Botcazou2-7/+16
* config/sparc/sparc.c (sparc_delegitimize_address): Handle UNSPEC_MOVE_PIC pattern. From-SVN: r174043
2011-05-22config.gcc (sparc-*-elf*): Add sparc/t-crtin.Eric Botcazou7-23/+29
* config.gcc (sparc-*-elf*): Add sparc/t-crtin. (sparc-*-rtems*): Likewise. (sparc64-*-elf*): Likewise. (sparc64-*-rtems*): Likewise. (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts. * config/sparc/t-crtin: New file. * config/sparc/t-sol2 (crti.o): Delete rule. (crtn.o): Likewise. * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete. * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise. * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o. (ENDFILE_SPEC): Add crtn.o. From-SVN: r174041
2011-05-22Fix formulationTom de Vries1-1/+1
From-SVN: r174040
2011-05-22re PR middle-end/48689 (ICE in fold-const.c:13798 with fold checking)Tom de Vries2-1/+8
2011-05-22 Tom de Vries <tom@codesourcery.com> PR middle-end/48689 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with CODE_CONTAINS_STRUCT (TS_COMMON). From-SVN: r174035
2011-05-22re PR middle-end/49029 (ICE in simplify_subreg, at simplify-rtx.c:5266)Jakub Jelinek4-2/+24
PR middle-end/49029 * expmed.c (extract_fixed_bit_field): Test whether target can be used only after deciding which mode to use. * gcc.c-torture/compile/pr49029.c: New test. From-SVN: r174034
2011-05-22re PR middle-end/45098 (Missed induction variable optimization)Tom de Vries2-1/+7
2011-05-22 Tom de Vries <tom@codesourcery.com> PR target/45098 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test for call to get_shiftadd_cost. From-SVN: r174033
2011-05-22re PR bootstrap/49104 (bootstrap failure on AMD K6-2 with illegal ↵Uros Bizjak2-4/+8
instruction (cmove) in stage2) PR target/49104 * config/i386/cpuid.h (bit_MMXEXT): New define. libcpp/ChangeLog: 2011-05-22 Uros Bizjak <ubizjak@gmail.com> PR target/49104 * lex.c (init_vectorized_lexer): Do not set "minimum" when __3dNOW_A__ is defined. Check bit_MMXEXT and bit_CMOV to use search_line_mmx. From-SVN: r174032
2011-05-22re PR c++/48647 ([C++0x] SFINAE does not handle incompatible pointer types ↵Jason Merrill5-6/+50
well in conditional operator) PR c++/48647 * typeck.c (composite_pointer_type_r): Return error_mark_node on error in SFINAE context. From-SVN: r174031
2011-05-22stormy16.c (xstormy16_init_builtins): prevent initialisation of non-existant ↵Nick Clifton2-6/+15
args[2] element. * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent initialisation of non-existant args[2] element. Use args[] array not arg[] array to pass arguments to build_function_type_list. From-SVN: r174029
2011-05-22frontend-passes.c (cfe_register_funcs): Also register character functions if ↵Thomas Koenig4-9/+54
their charlens are known and constant. 2011-05-22 Thomas Koenig <tkoenig@gcc.gnu.org> * frontend-passes.c (cfe_register_funcs): Also register character functions if their charlens are known and constant. Also register allocatable functions. 2011-05-22 Thomas Koenig <tkoenig@gcc.gnu.org> * gfortran.dg/function_optimize_8.f90: New test case. From-SVN: r174027
2011-05-22re PR tree-optimization/49087 (crash in vect_is_slp_reduction)Ira Rosen4-1/+55
PR tree-optimization/49087 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses. From-SVN: r174026
2011-05-22re PR c++/49092 (ice in tree_add_const_value_attribute)Jason Merrill4-1/+26
PR c++/49092 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for static storage duration. From-SVN: r174024
2011-05-22Daily bump.GCC Administrator1-1/+1
From-SVN: r174021
2011-05-21sparc.md (setjmp): Handle PIC mode and use the hard frame pointer.Eric Botcazou2-6/+18
* config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard frame pointer. From-SVN: r174013
2011-05-21sparc.c (eligible_for_return_delay): Do not return false if there are ↵Eric Botcazou1-0/+9
call-saved registers here... * config/sparc/sparc.c (eligible_for_return_delay): Do not return false if there are call-saved registers here... (sparc_can_use_return_insn_p): ...but here instead. (save_or_restore_regs): Fix thinko. (sparc_expand_prologue): Use current_function_is_leaf. (sparc_frame_pointer_required): Likewise. From-SVN: r174010
2011-05-21sparc.c (eligible_for_return_delay): Do not return false if there are ↵Eric Botcazou1-8/+4
call-saved registers here... * config/sparc/sparc.c (eligible_for_return_delay): Do not return false if there are call-saved registers here... (sparc_can_use_return_insn_p): ...but here instead. (save_or_restore_regs): Fix thinko. (sparc_expand_prologue): Use current_function_is_leaf. (sparc_frame_pointer_required): Likewise. From-SVN: r174008
2011-05-21re PR c++/48945 ([C++0x] static constexpr member function cannot be defined ↵Jason Merrill4-24/+41
out-of class) PR c++/48945 * decl.c (grokdeclarator): Don't add set const function-cv-qual for constexpr fns to memfn_quals, just add it to the type. (revert_static_member_fn): Don't complain about quals. (check_static_quals): New. (grokfndecl): Call it. (start_preparsed_function): Don't call revert_static_member_fn. From-SVN: r174007
2011-05-21re PR c++/48945 ([C++0x] static constexpr member function cannot be defined ↵Jason Merrill4-2/+20
out-of class) PR c++/48945 * decl.c (revert_static_member_fn): Ignore const on constexpr fn. From-SVN: r174006
2011-05-21re PR c++/48780 ([C++0x] scoped enumerations and va_arg (default argument ↵Jason Merrill7-0/+58
promotions)) PR c++/48780 * cvt.c (type_promotes_to): Don't promote scoped enums. From-SVN: r174005
2011-05-21re PR ada/49097 (gnatbind link fails to find version_string, potential ↵Joseph Myers2-1/+7
ranlib concurrency problem) PR ada/49097 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Depend on $(LIBDEPS). From-SVN: r174002
2011-05-21re PR fortran/48699 ([OOP] MOVE_ALLOC inside SELECT TYPE)Janus Weil4-1/+38
2011-05-21 Janus Weil <janus@gcc.gnu.org> PR fortran/48699 * match.c (select_type_set_tmp): Make the temporary ALLOCATABLE if the selector is ALLOCATABLE. 2011-05-21 Janus Weil <janus@gcc.gnu.org> PR fortran/48699 * gfortran.dg/select_type_23.f03: New. From-SVN: r174001
2011-05-21re PR target/49098 (unused parameters in rx.c:rx_memory_move_cost)Nick Clifton2-1/+8
PR target/49098 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters. From-SVN: r173999
2011-05-21In gcc/objc/: 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>Nicola Pero2-1/+10
In gcc/objc/: 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com> * config-lang.in (gtfiles): Updated order of files to fix building when the gcc/cp directory is missing, as in the case of some release tarballs. From-SVN: r173998
2011-05-21In gcc/: 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>Nicola Pero3-0/+78
In gcc/: 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com> * gengtype.c (walk_type): Implemented "atomic" GTY option. * doc/gty.texi (GTY Options): Document "atomic" GTY option. From-SVN: r173996
2011-05-21opt-read.awk: New.Joseph Myers5-193/+143
* opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk. * optc-gen.awk: Move common code to opt-read.awk. * opth-gen.awk: Likewise. * Makefile.in (options.c, s-options-h): Update to use opt-read.awk. From-SVN: r173995
2011-05-20re PR c++/49066 ([C++0x] Non-defining declaration of deleted function ↵Jason Merrill4-0/+13
suppresses usage validation) PR c++/49066 * decl.c (duplicate_decls): Preserve DECL_DELETED_FN. From-SVN: r173993
2011-05-21Daily bump.GCC Administrator1-1/+1
From-SVN: r173991
2011-05-20* tree.c (stabilize_expr): Fix typo.Jason Merrill2-1/+4
From-SVN: r173982
2011-05-20DR 1073 PR c++/49082Jason Merrill8-29/+56
DR 1073 PR c++/49082 * typeck.c (comp_except_specs): noexcept(false) is not compatible with throw(type-list). * typeck2.c (merge_exception_specifiers): noexcept(false) beats any more limited specification. From-SVN: r173981
2011-05-20remove TYPE_ARG_TYPES from godump.cNathan Froyd2-14/+16
remove TYPE_ARG_TYPES from godump.c * godump.c (go_format_type): Don't use TYPE_ARG_TYPES. From-SVN: r173980
2011-05-20remove some TYPE_ARG_TYPES usage in objc/Nathan Froyd2-7/+29
remove some TYPE_ARG_TYPES usage in objc/ * objc-act.c (objc_compare_types): Use function_args_iterator instead of TYPE_ARG_TYPES to compare function argument types. From-SVN: r173977
2011-05-20re PR middle-end/45098 (Missed induction variable optimization)Tom de Vries2-0/+66
2011-05-20 Tom de Vries <tom@codesourcery.com> PR target/45098 * tree-ssa-loop-ivopts.c: Include expmed.h. (get_shiftadd_cost): New function. (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost. From-SVN: r173976
2011-05-20re PR bootstrap/49086 (libgomp/task.c:79:1: internal compiler error: ↵Jakub Jelinek2-2/+10
Segmentation fault) PR bootstrap/49086 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL for PHI args that are SSA_NAME_IS_DEFAULT_DEF. From-SVN: r173967
2011-05-20re PR fortran/48706 (Type extension inside subroutine)Janus Weil4-0/+49
2011-05-20 Janus Weil <janus@gcc.gnu.org> PR fortran/48706 * module.c (write_dt_extensions): Do not write extended types which are local to a subroutine. 2011-05-20 Janus Weil <janus@gcc.gnu.org> PR fortran/48706 * gfortran.dg/extends_12.f03: New. From-SVN: r173966
2011-05-20re PR c++/24163 (dependent Base class scope examined during unqualified name ↵Jason Merrill14-22/+149
lookup in template) PR c++/24163 PR c++/29131 gcc/cp/ * pt.c (tsubst_copy_and_build) [CALL_EXPR]: Avoid repeating unqualified lookup. * semantics.c (perform_koenig_lookup): Add complain parm. * cp-tree.h: Adjust. * parser.c (cp_parser_postfix_expression): Adjust. (cp_parser_perform_range_for_lookup): Adjust. libstdc++-v3/ * include/ext/pb_ds/assoc_container.hpp: Explicitly qualify calls to functions from dependent bases. * include/ext/pb_ds/detail/rb_tree_map_/erase_fn_imps.hpp: Likewise. * include/ext/pb_ds/detail/rb_tree_map_/ split_join_fn_imps.hpp: Likewise. * include/ext/pb_ds/detail/splay_tree_/erase_fn_imps.hpp: Likewise. * include/ext/pb_ds/detail/splay_tree_/insert_fn_imps.hpp: Likewise. * include/ext/pb_ds/detail/splay_tree_/splay_fn_imps.hpp: Likewise. * include/ext/pb_ds/detail/splay_tree_/ split_join_fn_imps.hpp: Likewise. * include/ext/pb_ds/detail/tree_policy/ order_statistics_imp.hpp: Likewise. * include/ext/pb_ds/detail/trie_policy/ prefix_search_node_update_imp.hpp: Likewise. * include/ext/rc_string_base.h: Likewise. * include/ext/rope: Likewise. * include/ext/ropeimpl.h: Likewise. * testsuite/util/exception/safety.h: Likewise. * testsuite/util/native_type/native_priority_queue.hpp: Likewise. * testsuite/util/testsuite_io.h: Likewise. * include/std/functional: Declare mem_fn earlier. * include/tr1/functional: Likewise. * include/tr1/exp_integral.tcc: Declare __expint_E1 earlier. From-SVN: r173965
2011-05-20* semantics.c (finish_call_expr): SET_EXPR_LOCATION.Jason Merrill2-0/+5
From-SVN: r173964
2011-05-20* Makefile.in: Update comment referring to $(OBJS-common).Joseph Myers2-1/+5
From-SVN: r173963
2011-05-20godump.c (go_output_typedef): Put enum constants in the macro hash table to ↵Ian Lance Taylor2-3/+23
avoid duplicate Go const definitions. * godump.c (go_output_typedef): Put enum constants in the macro hash table to avoid duplicate Go const definitions. From-SVN: r173962
2011-05-20Makefile.in (LIBDEPS): Add libcommon.a.Joseph Myers18-61/+172
* Makefile.in (LIBDEPS): Add libcommon.a. (LIBS): Likewise. (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o. (OBJS-common): Remove diagnostic.o, input.o, intl.o, pretty-print.o and version.o. (OBJS-libcommon): New. (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon). (BACKEND): Add libcommon.a. (MOSTLYCLEANFILES): Likewise. (libcommon.a): New. (xgcc$(exeext)): Don't explicitly use version.o and intl.o. (cpp$(exeext)): Likewise. (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o, pretty-print.o and input.o. (lto-wrapper$(exeext)): Don't explicitly use intl.o. (lto-wrapper.o): Depend on $(DIAGNOSTIC_H). (errors.o): Remove. (mips-tfile): Don't explicitly use version.o. (mips-tdump): Likewise. (gcov.o): Depend on $(DIAGNOSTIC_H). (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H). (GCOV_OBJS): Remove intl.o, version.o and errors.o. (GCOV_DUMP_OBJS): Remove version.o and errors.o. * gcov-dump.c: Include intl.h and diagnostic.h. (main): Initialize diagnostics. * gcov.c: Include diagnostic.h. (fnotice): Remove. (main): Initialize diagnostics. * lto-wrapper.c: Include diagnostic.h. (main): Initialize diagnostics. ada: * gcc-interface/Make-lang.in (EXTRA_GNATBIND_OBJS): Remove version.o. * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use libcommon.a instead of version.o. cp: * Make-lang.in (GXX_OBJS): Remove intl.o and version.o. fortran: * Make-lang.in (GFORTRAN_D_OBJS): Remove version.o and intl.o. go: * Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o. java: * Make-lang.in ($(XGCJ)$(exeext)): Don't explicitly use intl.o and version.o. (JCFDUMP_OBJS): Remove errors.o, version.o and intl.o. (JVGENMAIN_OBJS): Remove errors.o and intl.o. (java/jcf-dump.o, java/jvgenmain.o): Depend in $(DIAGNOSTIC_H). * jcf-dump.c: Include diagnostic.h. (main): Initialize diagnostics. * jvgenmain.c: Include diagnostic.h. (main): Initialize diagnostics. From-SVN: r173958
2011-05-20* Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.Michael Matz2-38/+35
From-SVN: r173957
2011-05-20lto-streamer.c (lto_record_common_node): Don't track seen nodes...Michael Matz2-62/+40
* lto-streamer.c (lto_record_common_node): Don't track seen nodes, use lto_streamer_cache_append directly instead of returning a VEC. (preload_common_node): Remove. (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't track seen nodes. (lto_streamer_cache_create): Call lto_preload_common_nodes. Co-Authored-By: Richard Guenther <rguenther@suse.de> From-SVN: r173956
2011-05-20re PR tree-optimization/49079 (Bogus constant folding)Richard Guenther4-8/+64
2011-05-20 Richard Guenther <rguenther@suse.de> PR tree-optimization/49079 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting MEM_REFs correctly for the trailing array access detection. Special case constants the same way as decls for overall size constraining. * gcc.dg/torture/pr49079.c: New testcase. From-SVN: r173954
2011-05-20mingw32.h (OUTPUT_QUOTED_STRING): Fix macro argument expansion.Uros Bizjak2-12/+16
* config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro argument expansion. From-SVN: r173953
2011-05-20re PR tree-optimization/49073 (g++ optimizer breaks do-while code)Jakub Jelinek5-6/+68
PR tree-optimization/49073 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI. * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators. * gcc.c-torture/execute/pr49073.c: New test. From-SVN: r173948
2011-05-20Clarify FP exception documentation and messagesJanne Blomqvist5-25/+44
From-SVN: r173944
2011-05-20re PR middle-end/48849 (SPEC CPU 2000/2006 failed to build with LTO)Richard Guenther2-0/+25
2011-05-20 Richard Guenther <rguenther@suse.de> PR middle-end/48849 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL of pointer types the same way the middle-end does. From-SVN: r173939
2011-05-20gimple.c (gimple_register_type_1): Do not fiddle with main-variant or ↵Richard Guenther4-212/+135
pointer-to chains. 2011-05-20 Richard Guenther <rguenther@suse.de> * gimple.c (gimple_register_type_1): Do not fiddle with main-variant or pointer-to chains. Delay all fixup to uniquify_nodes. lto/ * lto.c (lto_ft_common): Remove pointer-to chain teardown. (lto_ft_type): Move main-variant and pointer-to chain building ... (uniquify_nodes): ... here. Compute TYPE_CANONICAL also here, in a separate final loop. From-SVN: r173938
2011-05-20Daily bump.GCC Administrator1-1/+1
From-SVN: r173935