1. 01 Jul, 2009 20 commits
  2. 30 Jun, 2009 20 commits
    • re PR c++/40566 (rejects promoted throw) · 5ccde5a0
      	PR c++/40566
      	* convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
      	to type arguments that have void type.
      
      	* g++.dg/parse/cond5.C: New test.
      
      From-SVN: r149121
      Jakub Jelinek committed
    • re PR debug/40573 (DWARF for inlined subroutines refers to the outlined copy) · 085e05ac
      	PR debug/40573
      	* dwarf2out.c (gen_formal_parameter_die): Call
      	equate_decl_number_to_die if node is different from origin.
      
      From-SVN: r149120
      Jakub Jelinek committed
    • gen-vect-25.c (n): New variable. · 92ce2174
      	* gcc.dg/tree-ssa/gen-vect-25.c (n): New variable.
      	(main): Pass n to main_1 instead.
      	* gcc.dg/tree-ssa/gen-vect-28.c (off): New variable.
      	(main_1): New function, split off from...
      	(main): ...here.  Pass `off' to main_1 instead.
      
      From-SVN: r149119
      Nathan Froyd committed
    • re PR c++/40595 ([C++0x] ICE trying to use sfinae with variadic template pack expansion) · 0db906f1
      	PR c++/40595
      	* pt.c (tsubst_pack_expansion): Handle unexpanded packs in an
      	EXPR_PACK_EXPANSION.
      
      From-SVN: r149117
      Jason Merrill committed
    • utils2.c (build_binary_op): Do not use the type of the left operand if... · 342f368c
      	* gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Do not use
      	the type of the left operand if it pads a self-referential type when
      	the right operand is a constructor.
      
      	* gcc-interface/lang-specs.h: Fix copyright date.
      
      From-SVN: r149115
      Eric Botcazou committed
    • Enable building with g++. · 9fb374d6
      From-SVN: r149114
      Anthony Green committed
    • gcc-defs.exp (gcc-set-multilib-library-path): Delete. · b30bfd40
      gcc/testsuite/
      	* lib/gcc-defs.exp (gcc-set-multilib-library-path): Delete.
      	* lib/target-libpath.exp (ld_library_path_vars): New variable.
      	(init_ld_library_path_env_vars): New function, replacing the
      	orig_*_saved assignments.  Call it after defining it.
      	(set_ld_library_path_env_vars): Rewrite to use ld_library_path_vars.
      	(restore_ld_library_path_env_vars): Likewise.
      	(add_path, find_libgcc_s): New functions.
      	* lib/objc.exp (objc_init): Use find_libgcc_s instead of
      	gcc-set-multilib-library-path.
      	(objc_target_compile): Don't add "." to ld_library_path.
      	Use add_path.
      	* lib/gfortran.exp (gfortran_link_flags): Don't add "." to
      	ld_library_path.  Use add_path.  Use find_libgcc_s instead of
      	gcc-set-multilib-library-path.
      	* lib/g++.exp (g++_link_flags): Likewise.
      	* lib/obj-c++.exp (obj-c++_link_flags): Likewise.
      	* lib/c-torture.exp: Do not manipulate ld_library_path at the
      	top level; do it...
      	(c-torture-execute): ...here instead.  Use $ld_library_path_multilib
      	to tell when this needs to happen.  Use find_libgcc_s instead of
      	gcc-set-multilib-library-path.
      	* lib/gcc-dg.exp: Likewise.
      	* lib/gnat.exp (gnat_target_compile): Don't add "." to ld_library_path.
      	* g++.dg/compat/compat.exp (alt_ld_library_path): Don't add "."
      	unless it is in $ALT_LD_LIBRARY_PATH.
      	* g++.dg/compat/struct-layout-1.exp (alt_ld_library_path): Likewise.
      
      libffi/
      	* testsuite/lib/libffi-dg.exp (libffi-init): Don't add "."
      	to ld_library_path.  Use add_path.  Add just find_libgcc_s
      	to ld_library_path, not every libgcc multilib directory.
      
      libgomp/
      	* testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
      	ld_library_path.  Use add_path.  Add just find_libgcc_s to
      	ld_library_path, not every libgcc multilib directory.
      	* testsuite/libgomp.c/c.exp (ld_library_path): Don't call
      	gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
      	* testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
      	Use add_path.
      	* testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
      
      libjava/
      	* testsuite/lib/libjava.exp (libjava_init): Just add
      	find_libgcc_s to libjava_libgcc_s_path, rather than every
      	libgcc multilib directory.
      	(libjava_arguments): Explain why we add "." to ld_library_path.
      	(gcj_invoke, exec_gij, libjava_invoke): Use add_path.
      
      libmudflap/
      	* testsuite/lib/libmudflap.exp (libmudflap-init): Don't add "."
      	to ld_library_path.  Use add_path.  Add just find_libgcc_s to
      	ld_library_path, not every libgcc multilib directory.
      
      libstdc++-v3/
      	* testsuite/lib/libstdc++.exp (libstdc++_init): Don't add "."
      	to ld_library_path.  Use add_path.  Add just find_libgcc_s to
      	ld_library_path, not every libgcc multilib directory.
      
      From-SVN: r149113
      Richard Sandiford committed
    • cgraphunit.c (cgraph_finalize_compilation_unit): Call finalize_size_functions… · f82a627c
      cgraphunit.c (cgraph_finalize_compilation_unit): Call finalize_size_functions before further processing.
      
      	* cgraphunit.c (cgraph_finalize_compilation_unit): Call
      	finalize_size_functions before further processing.
      	* stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
      	(variable_size): Call self_referential_size on size expressions
      	that contain a PLACEHOLDER_EXPR.
      	(size_functions): New static variable.
      	(copy_self_referential_tree_r): New static function.
      	(self_referential_size): Likewise.
      	(finalize_size_functions): New global function.
      	* tree.c: Include tree-inline.h.
      	(push_without_duplicates): New static function.
      	(find_placeholder_in_expr): New global function.
      	(substitute_in_expr) <tcc_declaration>: Return the replacement object
      	on equality.
      	<tcc_expression>: Likewise.
      	<tcc_vl_exp>: If the replacement object is a constant, try to inline
      	the call in the expression.
      	* tree.h (finalize_size_functions): Declare.
      	(find_placeholder_in_expr): Likewise.
      	(FIND_PLACEHOLDER_IN_EXPR): New macro.
      	(substitute_placeholder_in_expr): Update comment.
      	* tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
      	is true.
      	(copy_tree_body_r): Likewise.
      	(copy_tree_body): New static function.
      	(maybe_inline_call_in_expr): New global function.
      	* tree-inline.h (struct copy_body_data): Add do_not_unshare field.
      	(maybe_inline_call_in_expr): Declare.
      	* Makefile.in (tree.o): Depend on TREE_INLINE_H.
      	(stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
      	GIMPLE_H.
      ada/
      	* gcc-interface/decl.c: Include tree-inline.h.
      	(annotate_value) <CALL_EXPR>: Try to inline the call in the expression.
      	* gcc-interface/utils.c (max_size) <CALL_EXPR>: Likewise.
      	* gcc-interface/utils2.c: Include tree-inline.
      	(known_alignment) <CALL_EXPR>: Likewise.
      
      From-SVN: r149112
      Eric Botcazou committed
    • re PR fortran/40576 (Endless loop in internal write) · c1a5cfab
      2009-06-30  Thomas Koenig  <tkoenig@gcc.gnu.org>
      
      	PR fortran/40576
      	* gfortran.dg/internal_write_1.f90:  New testcase.
      
      From-SVN: r149109
      Thomas Koenig committed
    • re PR fortran/40594 (wrong-code) · 3e6d828d
      2009-06-30  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/40594
      	* trans-types.c (gfc_get_derived_type): Bugfix, reverting one hunk from
      	r147206.
      
      
      2009-06-30  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/40594
      	* gfortran.dg/derived_pointer_recursion_2.f90: New.
      
      From-SVN: r149108
      Janus Weil committed
    • tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always continue walking. · 67635176
      2009-06-30  Richard Guenther  <rguenther@suse.de>
      
      	* tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
      	continue walking.
      	(propagate_necessity): Do not mark reaching defs of stores
      	as necessary.
      
      	* gcc.dg/tree-ssa/ssa-dce-6.c: New testcase.
      
      From-SVN: r149103
      Richard Guenther committed
    • Revert accidental commit. · ca89096d
      From-SVN: r149102
      Jan Hubicka committed
    • cfgloopanal.c (check_irred): Move into ... · 2de58650
      	* cfgloopanal.c (check_irred): Move into ...
      	(mark_irreducible_loops): ... here; return true if ireducible
      	loops was found.
      	* ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
      	(analyze_function): Try to prove loop finiteness.
      	* cfgloop.h (mark_irreducible_loops): Update prototype.
      	* Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
      
      From-SVN: r149101
      Jan Hubicka committed
    • Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print. · 46db44cc
      2009-06-30  Basile Starynkevitch  <basile@starynkevitch.net>
      
      	* gcc/Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
      
      From-SVN: r149100
      Basile Starynkevitch committed
    • Remove testsuite in filenames. · 8088e9ee
      From-SVN: r149098
      H.J. Lu committed
    • re PR libstdc++/40600 (pair& operator=(pair&& __p) doesn't work without inlining) · a0560e75
      2009-06-30  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR libstdc++/40600
      	* testsuite/25_algorithms/minmax/2.cc: Fix consistently with
      	std::minmax return type.
      	* testsuite/25_algorithms/minmax/3.cc: Likewise.
      
      From-SVN: r149094
      Paolo Carlini committed
    • ssa-sink-5.c: Change the compiler option "-O2 -Os" to "-Os". · d8dc68cb
      	* gcc.dg/tree-ssa/ssa-sink-5.c: Change the compiler option "-O2 -Os"
      	to "-Os".
      
      From-SVN: r149093
      Wei Guozhi committed
    • re PR tree-optimization/40542 (vectorizes access to volatile array) · 1825a1f3
      
      	PR tree-optimization/40542
      	* tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile 
      	types.
      
      From-SVN: r149090
      Ira Rosen committed
    • re PR libstdc++/40511 (Bootstrap Failure in stage3: c++locale - Recent SVN) · 0dca2153
      2009-06-30  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR libstdc++/40511
      	* config/locale/gnu/c_locale.cc: Don't use LC_CTYPE_MASK together
      	with glibc2.2.x.
      
      From-SVN: r149089
      Paolo Carlini committed
    • re PR tree-optimization/40582 (ice for non-trivial conversion at assignment with -O2) · 71d4d3eb
      2009-06-30  Martin Jambor  <mjambor@suse.cz>
      
      	PR tree-optimization/40582
      	* tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
      	than useless_type_conversion_p.
      	(generate_subtree_copies): Increment sra_stats.subtree_copies at a
      	proper place.
      
      	* testsuite/gcc.c-torture/compile/pr40582.c: New test.
      
      From-SVN: r149088
      Martin Jambor committed