1. 02 Jul, 2009 6 commits
  2. 01 Jul, 2009 22 commits
  3. 30 Jun, 2009 12 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