1. 22 Aug, 2007 11 commits
    • re PR middle-end/33007 (builtin lround doesn't work) · 968fc3b6
      2007-08-22  Richard Guenther  <rguenther@suse.de>
      
      	PR middle-end/33007
      	* builtins.c (expand_builtin_int_roundingfn): Replace call
      	argument wrapped with SAVE_EXPR directly.
      	(expand_builtin_int_roundingfn_2): Likewise.
      
      	* gcc.dg/pr33007.c: New testcase.
      
      From-SVN: r127701
      Richard Guenther committed
    • Properly remove. · 3fe42b89
      From-SVN: r127700
      Richard Sandiford committed
    • strcmp-1.x: Delete. · 4c6a4987
      gcc/testsuite/
      	* gcc.c-torture/execute/strcmp-1.x: Delete.
      
      From-SVN: r127699
      Richard Sandiford committed
    • *.c: Remove target selectors from dg-do directives. · ac3b8691
      	* gcc.target/i386/*.c: Remove target selectors from dg-do directives.
      	* gcc.target/i386/991129-1.c, gcc.target/i386/991209-1.c,
      	gcc.target/i386/991214-1.c, gcc.target/i386/pr26778.c,
      	gcc.target/i386/pr27827.c, gcc.target/i386/pr30505.c,
      	gcc.target/i386/pr32389.c, gcc.target/i386/sse-8.c,
      	gcc.target/i386/stack-realign.c,
      	gcc.target/i386/gcc-have-sync-compare-and-swap-1.c,
      	gcc.target/i386/gcc-have-sync-compare-and-swap-2.c,
      	gcc.target/i386/gcc-have-sync-compare-and-swap-3.c: Require ilp32
      	target using dg-require-effective-target directive.
      	* gcc.target/i386/amd64-abi-1.c, gcc.target/i386/amd64-abi-2.c,
      	gcc.target/i386/cleanup-2.c, gcc.target/i386/cmpxchg16b-1.c,
      	gcc.target/i386/gcc-have-sync-compare-and-swap-4.c,
      	gcc.target/i386/large-size-array-3.c, gcc.target/i386/pr25254.c,
      	gcc.target/i386/pr31167.c, gcc.target/i386/pr32268.c,
      	gcc.target/i386/pr32661-1.c, gcc.target/i386/pr32708-2.c,
      	gcc.target/i386/pr32708-3.c, gcc.target/i386/sse4_1-pextrq.c,
      	gcc.target/i386/sse4_1-pinsrq.c, gcc.target/i386/sse4_2-crc32q.c,
      	gcc.target/i386/sse4_2-popcntq.c, gcc.target/i386/stack-prot-kernel.c:
      	Require lp64 target using dg-require-effective-target directive.
      	* gcc.target/i386/cleanup-1.c, gcc.target/i386/cleanup-2.c,
      	gcc.target/i386/pr32268.c: Use *-*-linux* target selector in dg-do
      	directive.
      	* gcc.target/i386/20010202-1.c: Move from here ...
      	* gcc.dg/20010202-1.c: ... to here.
      
      From-SVN: r127698
      Uros Bizjak committed
    • re PR tree-optimization/33142 (wrong code with VRP through ABS_EXPR) · f8dd107d
      2007-08-22  Richard Guenther  <rguenther@suse.de>
      
      	PR tree-optimization/33142
      	* gcc.c-torture/execute/pr33142.c: New testcase.
      
      From-SVN: r127693
      Richard Guenther committed
    • tree-inline.c (inlinable_function_p): Restore disregarding inline limits for GNU… · b26eca6a
      tree-inline.c (inlinable_function_p): Restore disregarding inline limits for GNU extern inline functions.
      
      2007-08-22  Richard Guenther  <rguenther@suse.de>
      
      	* tree-inline.c (inlinable_function_p): Restore disregarding
      	inline limits for GNU extern inline functions.
      
      From-SVN: r127690
      Richard Guenther committed
    • re PR debug/32563 (ICE on pointer arithmetic) · ab5b8382
      2007-08-22  Richard Guenther  <rguenther@suse.de>
      
      	PR middle-end/32563
      	* tree.c (host_integerp): Treat sizetype as signed as it is
      	sign-extended.
      
      	* g++.dg/torture/pr32563.C: New testcase.
      
      From-SVN: r127688
      Richard Guenther committed
    • pr32912-1.c: Add -w to options. · fab75691
      	* gcc.dg/pr32912-1.c: Add -w to options.
      	* gcc.dg/pr32912-2.c: Likewise.
      	* gcc.dg/pr32912-3.c: Scan for ~{ rather than just ~.
      
      From-SVN: r127687
      Jakub Jelinek committed
    • * g++.dg/torture/pr33134.C: Moved from g++.dg/tree-ssa. · 4251e899
      From-SVN: r127686
      Ian Lance Taylor committed
    • Makefile.am (install-data-local): Remove pch-install rules. · 65be6ddd
      2007-08-21  Benjamin Kosnik  <bkoz@montsouris.artheist.org>
      
      	* include/Makefile.am (install-data-local): Remove pch-install rules.
      	(host_headers): Add stdc++.h, stdtr1c++.h, extc++.h.
      	* include/Makefile.in: Regenerate.
      	* config.h.in: Same.
      
      	* scripts/check_compile: Remove space between outputs.	
      	* include/ext/throw_allocator.h: Correct doxygen markup.	
      	* include/bits/char_traits.h: Correct spacing.
      	* include/bits/stl_function.h: Same, for 80 column.
      	* include/std/valarray: Same.
      	* testsuite/util/testsuite_iterators.h: Same.	
      	* testsuite/25_algorithms/headers/algorithm/synopsis.cc: Format.
      
      From-SVN: r127685
      Benjamin Kosnik committed
    • Daily bump. · 7e501b00
      From-SVN: r127683
      GCC Administrator committed
  2. 21 Aug, 2007 14 commits
    • re PR tree-optimization/33134 (ICE in set_value_range, at tree-vrp.c:325) · cdc64612
      ./:	PR tree-optimization/33134
      	* tree-vrp.c (adjust_range_with_scev): Call
      	set_value_range_to_value.
      testsuite/:
      	PR tree-optimization/33134
      	* g++.dg/tree-ssa/pr33134.C: New test.
      
      From-SVN: r127679
      Ian Lance Taylor committed
    • value-prof.h (gimple_remove_histogram_value): Remove duplicate prototype. · 958ea87b
      	* value-prof.h (gimple_remove_histogram_value): Remove duplicate
      	prototype.
      
      From-SVN: r127678
      Aldy Hernandez committed
    • tree-flow-inline.h (next_imm_use_stmt): Remove unecessary whitespace. · 02014de2
              * tree-flow-inline.h (next_imm_use_stmt): Remove unecessary
              whitespace.
      
      From-SVN: r127674
      Aldy Hernandez committed
    • rs6000.c (expand_block_clear): Add TARGET_SPE cases to set eight bytes at a time. · 21d818ff
      gcc/
      	* config/rs6000/rs6000.c (expand_block_clear): Add TARGET_SPE
      	cases to set eight bytes at a time.
      	(expand_block_move): Likewise.
      
      gcc/testsuite/
      	* gcc.target/powerpc/spe-vector-memset.c: New testcase.
      	* gcc.target/powerpc/spe-vector-memcpy.c: New testcase.
      
      From-SVN: r127670
      Nathan Froyd committed
    • re PR debug/32610 (ICE in gen_tagged_type_instantiation_die, at dwarf2out.c:12762) · d6b3c797
      	PR debug/32610
      	* dwarf2out.c (gen_decl_die): Don't call
      	gen_tagged_type_instantiation_die if decl doesn't have tagged type.
      
      	* gcc.dg/debug/pr32610.c: New test.
      
      From-SVN: r127669
      Jakub Jelinek committed
    • init.c (build_new_1): Use get_target_expr instead of save_expr. · af9fc1dd
      	* init.c (build_new_1): Use get_target_expr instead of save_expr.
      
      	* g++.dg/init/new24.C: New test.
      
      From-SVN: r127668
      Jakub Jelinek committed
    • configure.ac: Add --with-pkgversion and --with-bugurl. · 2f41c1d6
      gcc:
      2007-08-21  Paul Brook  <paul@codesourcery.com>
      	    Nathan Sidwell  <nathan@codesourcery.com>
      	    Mark Mitchell  <mark@codesourcery.com>
      	    Joseph Myers  <joseph@codesourcery.com>
      
      	* configure.ac: Add --with-pkgversion and --with-bugurl.
      	* configure: Regenerate.
      	* doc/install.texi: Document them.
      	* version.c (version_string): Remove VERSUFFIX.
      	(VERSUFFIX): Remove.
      	(pkgversion_string): New.
      	(bug_report_url): Do not hard-code initializer.
      	* version.h (pkgversion_string): Declare.
      	* Makefile.in (PKGVERSION_s, BUGURL_s, PKGVERSION, BUGURL_TEXI):
      	Define.
      	(version.o): Define PKGVERSION and BUGURL.
      	(gcc-vers.texi): Define VERSION_PACKAGE and BUGURL.
      	(%.pod): Define BUGURL.
      	* gcc.c (process_command, main): Use pkgversion_string.
      	* toplev.c (compile_file, print_version): Likewise.
      	* protoize.c (main): Likewise.
      	* gcov.c (print_version): Likewise.  Update copyright date.
      	* gcov-dump.c (print_version): Likewise.  Update copyright date.
      	* mips-tdump.c (main): Likewise.  Update copyright date.
      	* mips-tfile.c (main): Likewise.  Update copyright date.
      	* doc/include/gcc-common.texi: Include VERSION_PACKAGE as subtitle.
      	* doc/bugreport.texi: Use BUGURL for bug-reporting instructions;
      	shorten description.
      	* doc/gcc.texi: Include VERSION_PACKAGE in version description.
      	* doc/gccint.texi: Likewise.
      	* doc/invoke.texi: Use BUGURL for bug-reporting instructions.
      	Update copyright date.
      
      gcc/fortran:
      2007-08-21  Paul Brook  <paul@codesourcery.com>
      	    Nathan Sidwell  <nathan@codesourcery.com>
      	    Mark Mitchell  <mark@codesourcery.com>
      	    Joseph Myers  <joseph@codesourcery.com>
      
      	* gfortranspec.c (lang_specific_driver): Use pkgversion_string.
      	* Make-lang.in (gfortran.pod): Define BUGURL.
      	* invoke.texi: Use BUGURL for bug-reporting instructions.
      
      gcc/java:
      2007-08-21  Paul Brook  <paul@codesourcery.com>
      	    Nathan Sidwell  <nathan@codesourcery.com>
      	    Mark Mitchell  <mark@codesourcery.com>
      	    Joseph Myers  <joseph@codesourcery.com>
      
      	* jcf-dump.c (version): Use pkgversion_string.  Update copyright
      	date.
      
      gcc/treelang:
      2007-08-21  Paul Brook  <paul@codesourcery.com>
      	    Nathan Sidwell  <nathan@codesourcery.com>
      	    Mark Mitchell  <mark@codesourcery.com>
      	    Joseph Myers  <joseph@codesourcery.com>
      
      	* tree1.c (treelang_handle_option): Use pkgversion_string.
      	* treelang.texi (which-treelang): Define to use VERSION_PACKAGE.
      
      maintainer-scripts:
      2007-08-21  Paul Brook  <paul@codesourcery.com>
      	    Nathan Sidwell  <nathan@codesourcery.com>
      	    Mark Mitchell  <mark@codesourcery.com>
      	    Joseph Myers  <joseph@codesourcery.com>
      
      	* gcc_release: Do not include copies of bugs.html in releases.
      	* update_web_docs_svn: Set VERSION_PACKAGE and BUGURL in
      	gcc-vers.texi.
      
      Co-Authored-By: Joseph Myers <joseph@codesourcery.com>
      Co-Authored-By: Mark Mitchell <mark@codesourcery.com>
      Co-Authored-By: Nathan Sidwell <nathan@codesourcery.com>
      
      From-SVN: r127667
      Paul Brook committed
    • i386.c (ix86_expand_clear): Use FLAGS_REG. · d02cb675
      	* config/i386/i386.c (ix86_expand_clear): Use FLAGS_REG.
      	(ix86_expand_strlensi_unroll_1): Ditto.
      	(ix86_expand_branch): Use FLAGS_REG and FPSR_REG.
      	(ix86_expand_carry_flag_compare): Update comment.
      
      From-SVN: r127666
      Uros Bizjak committed
    • be.po, [...]: Update. · 42e61fe7
      	* be.po, ca.po, da.po, de.po, el.po, es.po, fr.po, ja.po, nl.po,
      	sv.po, tr.po, vi.po, zh_CN.po, zh_TW.po: Update.
      	* uk.po: New.
      
      From-SVN: r127664
      Joseph Myers committed
    • be.po, [...]: Update. · 461c3f24
      	* be.po, ca.po, da.po, de.po, el.po, es.po, fr.po, ja.po, nl.po,
      	ru.po, sr.po, sv.po, tr.po, zh_CN.po, zh_TW.po: Update.
      
      From-SVN: r127662
      Joseph Myers committed
    • re PR middle-end/32912 (ICE with vector code) · c01ee935
      	PR middle-end/32912
      	* fold-const.c (fold_unary): Optimize BIT_NOT_EXPR of VECTOR_CST.
      	(fold_binary): Handle vectors in X | ~X and X ^ ~X optimizations.
      
      	* gcc.dg/pr32912-1.c: New test.
      	* gcc.dg/pr32912-2.c: New test.
      	* gcc.dg/pr32912-3.c: New test.
      
      From-SVN: r127661
      Jakub Jelinek committed
    • fold-const.c (fold_binary): Revert removing of index +p PTR · f7d1e0c6
      2007-08-21  Richard Guenther  <rguenther@suse.de>
      
              * fold-const.c (fold_binary): Revert removing of index +p PTR
              * folding.
      
              * gcc.dg/pointer-arith-10.c: New testcase.
      
      From-SVN: r127660
      Richard Guenther committed
    • re PR middle-end/33122 (Mistaken type mismatch error prevents bootstrap) · 8015455a
      2007-08-21  Richard Guenther  <rguenther@suse.de>
      
      	PR middle-end/33122
      	* fold-const.c (fold_binary): Remove index +p PTR folding.
      	Fix types of POINTER_PLUS_EXPR generated by folding of
      	(PTR +p B) +p A.
      
              * gcc.c-torture/compile/pr33122.c: New testcase.
      
      From-SVN: r127659
      Richard Guenther committed
    • Daily bump. · 66644666
      From-SVN: r127656
      GCC Administrator committed
  3. 20 Aug, 2007 15 commits
    • c-common.h (enum rid): Add new enumeration values of RID_SAT, RID_FRACT, and RID_ACCUM. · ab22c1fa
      	* c-common.h (enum rid): Add new enumeration values of RID_SAT,
      	RID_FRACT, and RID_ACCUM.  RID_SAT needs to be inserted before
      	RID_ONEWAY, so that it can be checked in declspecs_add_type.
      	(c_common_fixed_point_type_for_size): Declare.
      	* c-parser.c (reswords): Add _Fract, _Accum, and _Sat.
      	(c_token_starts_typename): Handle RID_FRACT, RID_ACCUM, and RID_SAT.
      	(c_token_starts_declspecs): Likewise.
      	(c_parser_declspecs): Likewise.
      	(c_parser_attributes): Likewise.
      	* c-tree.h (enum c_typespec_keyword): Add cts_fract and cts_accum.
      	(c_declspecs): Add saturating_p.
      	* c-decl.c (build_null_declspecs): Initialize saturating_p.
      	(declspecs_add_type): Avoid using complex with _Fract, _Accum, or _Sat.
      	Handle RID_SAT.
      	Avoid using void, bool, char, int, float, double, _Decimal32,
      	_Decimal64, _Decimal128, and complex with _Sat.
      	Handle RID_FRACT and RID_ACCUM.
      	Make sure _Sat is used with _Fract or _Accum.
      	(finish_declspecs): Handle cts_fract and cts_accum.
      	* c-common.c (fixed-value.h): New include.
      	(constant_expression_warning): Handle FIXED_CST.
      	(overflow_warning): Likewise.
      	(warnings_for_convert_and_check): Likewise.
      	(c_common_fixed_point_type_for_size): New.
      	(c_common_type_for_mode): Handle fixed-point modes to
      	return various saturating/non-saturating, signed/unsigned types.
      	(c_common_signed_or_unsigned_type): Support fixed-point types.
      	(shorten_compare): Check fixed-point zero.
      	Handle FIXED_POINT_TYPE.
      	(c_common_truthvalue_conversion): Handle FIXED_CST.
      	Handle FIXED_POINT_TYPE.
      	(c_common_nodes_and_builtins): Record builtin types for fixed-point
      	types.
      	(handle_mode_attribute): Handle fixed-point modes.  Need to check
      	if the signness of base type and fixed-point modes are consistent.
      	(handle_vector_size_attribute): Handle fixed-point modes.
      	(same_scalar_type_ignoring_signedness): Handle FIXED_POINT_TYPE.
      	(warn_for_div_by_zero): Check fixed-point zero.
      	* c-typeck.c (c_common_type): Check FIXED_POINT_TYPE.  Build
      	a common fixed-point type based on fbit, ibit, sign, and saturation.
      	(build_unary_op): Allow FIXED_POINT_TYPE for CONVERT_EXPR,
      	NEGATE_EXPR, TRUTH_NOT_EXPR, PREINCREMENT_EXPR, POSTINCREMENT_EXPR,
      	PREDECREMENT_EXPR, and POSTDECREMENT_EXPR.
      	(convert_for_assignment): Support FIXED_POINT_TYPE.
      	(digest_init): Handle FIXED_POINT_TYPE.
      	(build_binary_op): Support FIXED_POINT_TYPE in *_DIV_EXPR,
      	TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
      	TRUTH_XOR_EXPR, RSHIFT_EXPR, LSHIFT_EXPR, EQ_EXPR, NE_EXPR, LE_EXPR,
      	GE_EXPR, LT_EXPR, GT_EXPR.
      	* target-def.h (TARGET_FIXED_POINT_SUPPORTED_P): New.
      	(TARGET_INITIALIZER): Add TARGET_FIXED_POINT_SUPPORTED_P.
      	* target.h (gcc_target): Add fixed_point_supported_p.
      	* targhooks.c (default_scalar_mode_supported_p): Handle MODE_FRACT,
      	MODE_UFRACT, MODE_ACCUM, and MODE_UACCUM.
      	(default_fixed_point_supported_p): Define.
      	* targhooks.h (default_fixed_point_supported_p): Declare.
      	* doc/tm.texi (TARGET_FIXED_POINT_SUPPORTED_P): Add.
      	* doc/install.texi (Configuration): Add --enable-fixed-point.
      	* configure.ac (--enable-fixed-point): New to enable fixed-point
      	arithmetic extension to C.  For mips targets, we enable it by default.
      	* configure, config.in: Regenerate.
      
      From-SVN: r127652
      Chao-ying Fu committed
    • re PR c++/7302 (-Wnon-virtual-dtor should't complain of protected dtor) · 43f14744
              PR c++/7302
              * cp/class.c (finish_struct_1): Warn when a class has virtual
              functions and accessible non-virtual destructor.
      
              * doc/invoke.texi (-Wnon-virtual-dtor): Update documentation.
      
              * g++.dg/warn/Wnvdtor-2.C: New testcase.
      
      From-SVN: r127649
      Pawel Sikora committed
    • dwarf2out.c (text_section_used): Move declaration outside ifdef DWARF2_DEBUGGING_INFO. · 01a2a2f5
              * dwarf2out.c (text_section_used): Move declaration outside ifdef
              DWARF2_DEBUGGING_INFO.
              (cold_text_section_used): Same.
              (cold_text_section): Same.
      
      From-SVN: r127648
      David Edelsohn committed
    • re PR c++/22369 (C++ produces mis-matched types with pointers to member functions) · a489b1f0
      2007-08-20  Richard Guenther  <rguenther@suse.de>
      
      	PR c++/22369
      	PR c++/22451
              * call.c (build_new_method_call): Convert initializer to
              the basetype.
              * init.c (build_aggr_init): Do not fiddle with types.
              (build_vec_delete_1): Use correct type for POINTER_PLUS_EXPR.
              * except.c (build_throw): Do not drop qualifiers for the
              pointer type.
              * typeck.c (get_member_function_from_ptrfunc): Do not
              fiddle with types, instead convert.
              (build_ptrmemfunc1): Convert to the target type for
              initialization.
              (gfc_trans_allocate): Convert result to target type.
      	* cp-objcp-common.c (cxx_get_alias_set): Pointers to
      	pointer-to-member structures shall have alias set zero as well.
      
      From-SVN: r127647
      Richard Guenther committed
    • c-typeck.c (convert_for_assignment): Use the type of the member for the initialization. · ff7637ef
      2007-08-20  Richard Guenther  <rguenther@suse.de>
      
              * c-typeck.c (convert_for_assignment): Use the type of
              the member for the initialization.
      
      From-SVN: r127646
      Richard Guenther committed
    • c-objc-common.c (c_disregard_inline_limits): Remove. · 1d51f406
      2007-08-20  Richard Guenther  <rguenther@suse.de>
      
      	* c-objc-common.c (c_disregard_inline_limits): Remove.
      	* c-objc-common.h (c_disregard_inline_limits): Likewise.
      	* cgraphunit.c (cgraph_process_new_functions): Call
      	disregard_inline_limits_p.
      	(cgraph_preserve_function_body_p): Likewise.
      	* ipa-inline.c (compute_inline_parameters): Likewise.
      	* langhooks-def.h (lhd_tree_inlining_disregard_inline_limits):
      	Remove.
      	(LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS): Remove.
      	(LANG_HOOKS_TREE_INLINING_INITIALIZER): Remove initializer for
      	disregard_inline_limits langhook.
      	* langhooks.c (lhd_tree_inlining_disregard_inline_limits):
      	Remove.
      	* langhooks.h (lang_hooks_for_tree_inlining): Remove
      	disregard_inline_limits langhook.
      	* tree-inline.c (disregard_inline_limits_p): New function.
      	* tree-inline.h (disregard_inline_limits_p): Declare.
      
      From-SVN: r127644
      Richard Guenther committed
    • langhooks-def.h (lhd_tree_inlining_auto_var_in_fn_p): Remove. · 50886bf1
      2007-08-20  Richard Guenther  <rguenther@suse.de>
      
      	* langhooks-def.h (lhd_tree_inlining_auto_var_in_fn_p): Remove.
      	(LANG_HOOKS_TREE_INLINING_AUTO_VAR_IN_FN_P): Likewise.
      	(LANG_HOOKS_TREE_INLINING_INITIALIZER): Remove initializer for
      	auto_var_in_fn_p langhook.
      	* langhooks.c (lhd_tree_inlining_auto_var_in_fn_p): Rename and
      	move ...
      	* tree.c (auto_var_in_fn_p): ... here.
      	(find_var_from_fn): Call auto_var_in_fn_p directly.
      	* langhooks.h (lang_hooks_for_tree_inlining): Remove
      	auto_var_in_fn_p langhook.
      	* tree-inline.c (remap_decls): Call auto_var_in_fn_p directly.
      	(copy_body_r): Likewise.
      	(self_inlining_addr_expr): Likewise.
      	* tree.h (auto_var_in_fn_p): Declare.
      
      	cp/
      	* cp-objcp-common.h (LANG_HOOKS_TREE_INLINING_AUTO_VAR_IN_FN_P):
      	Remove.
      	* cp-tree.h (cp_auto_var_in_fn_p): Remove.
      	(nonstatic_local_decl_p): Likewise.
      	* tree.c (cp_auto_var_in_fn_p): Remove.
      	* decl.c (nonstatic_local_decl_p): Remove.
      
      From-SVN: r127643
      Richard Guenther committed
    • tree.c (WALK_SUBTREE): Call walk_tree_1. · 14588106
      2007-08-20  Richard Guenther  <rguenther@suse.de>
      
      	* tree.c (WALK_SUBTREE): Call walk_tree_1.
      	(walk_type_fields): Take lh parameter.
      	(walk_tree): Rename to ...
      	(walk_tree_1): ... this.  Do not call the walk_subtrees
      	langhook but the now passed callback.  Pass lh on recursion.
      	(walk_tree_without_duplicates): Rename to ...
      	(walk_tree_without_duplicates_1): ... this.  Take lh parameter
      	and call walk_tree_1.
      	* tree.h (walk_tree_lh): New typedef.
      	(walk_tree_1): Declare.
      	(walk_tree_without_duplicates_1): Likewise.
      	(walk_tree): New define to walk_tree_1 with NULL lh parameter.
      	(walk_tree_without_duplicates): New define to
      	walk_tree_without_duplicates_1 with NULL lh parameter.
      	* langhooks.c (lhd_tree_inlining_walk_subtrees): Remove.
      	* langhooks.h (lang_hooks_for_tree_inlining): Remove walk_subtrees
      	langhook.
      	* langhooks-def.h (lhd_tree_inlining_walk_subtrees): Remove.
      	(LANG_HOOKS_TREE_INLINING_WALK_SUBTREES): Likewise.
      	(LANG_HOOKS_TREE_INLINING_INITIALIZER): Remove walk_subtrees
      	initializer.
      
      	java/
      	* lang.c (java_tree_inlining_walk_subtrees): Remove.
      	(LANG_HOOKS_TREE_INLINING_WALK_SUBTREES): Remove.
      
      	cp/
      	* cp-objcp-common.h (LANG_HOOKS_TREE_INLINING_WALK_SUBTREES):
      	Remove define.
      	* tree.h (cp_walk_tree): New define to walk_tree_1 with
      	cp_walk_subtrees lh parameter.
      	(cp_walk_tree_without_duplicates): New define to
      	walk_tree_without_duplicates_1 with cp_walk_subtrees lh parameter.
      	* tree.c (count_trees): Call
      	cp_walk_tree_without_duplicates.
      	(verify_stmt_tree): Call cp_walk_tree.
      	(break_out_target_exprs): Likewise.
      	(WALK_SUBTREE): Likewise.
      	* cp-gimplify.c (cp_genericize): Likewise.
      	* cp-pt.c (find_parameter_packs_r): Likewise.
      	(uses_parameter_packs): Likewise.
      	(make_pack_expansion): Likewise.
      	(check_for_bare_parameter_packs): Likewise.
      	(for_each_template_parm): Likewise.
      	* decl.c (check_default_argument): Call
      	cp_walk_tree_without_duplicates.
      	* except.c (build_throw): Likewise.
      	* decl2.c (type_visibility): Likewise.
      	* semantics.c (expand_or_defer_fn): Likewise.
      	(finalize_nrv): Call cp_walk_tree.
      
      From-SVN: r127642
      Richard Guenther committed
    • re PR c++/33025 (Wrong calling of placement new with conditionals) · 412bbe81
      	PR c++/33025
      	* init.c (build_new_1): Rename placement_var variable to placement_expr.
      	Initialize it with save_expr rather than get_temp_regvar.
      
      	* g++.dg/init/new23.C: New test.
      
      From-SVN: r127639
      Jakub Jelinek committed
    • re PR tree-optimization/30564 (ice for legal code with -O3) · a9eafe81
      2007-08-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
      
              PR middle-end/30564
              * tree-inline.c (optimize_inline_calls): Move the cgraph checking
              code in front of the compacting of basic blocks.
              Move the folding of statements inbetween the cgraph checking
              and compacting of basic blocks.
      
      2007-08-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
      
              PR middle-end/30564
              * gcc.c-torture/compile/pr30564-1.c: New test.
              * gcc.c-torture/compile/pr30564-2.c: New test.
      
      From-SVN: r127638
      Andrew Pinski committed
    • re PR target/32522 (Bootstrap failure on Alpha due to pointer-plus changes) · 5a4ac684
      2007-08-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
                 Serge Belyshev  <belyshev@depni.sinp.msu.ru>
      
              PR target/32522
              * config/alpha/alpha.c (va_list_skip_additions): Check for
              POINTER_PLUS_EXPR in addition to PLUS_EXPR.
              (alpha_stdarg_optimize_hook): Look for POINTER_PLUS_EXPR instead of
              PLUS_EXPR when checking ap.__base.
              (alpha_va_start): Create POINTER_PLUS_EXPR instead of PLUS_EXPR
              when doing addition on pointer types.  Use size_int instead of
              build_int_cst.
              (alpha_gimplify_va_arg_1): Likewise, but use sizetype instead of
              ptr_type in the second operand.
      
      
      
      Co-Authored-By: Serge Belyshev <belyshev@depni.sinp.msu.ru>
      
      From-SVN: r127637
      Andrew Pinski committed
    • match.c (intrinsic_operators): Make static. · ba3ba492
      
      	* match.c (intrinsic_operators): Make static.
      	(gfc_op2string): New function for converting a gfc_intrinsic_op to
      	to a "const char*", replacing the macro of the same name.
      	* gfortran.h (intrinsic_operators): Delete prototype.
      	(gfc_op2string): Replace macro with function prototype.
      
      From-SVN: r127636
      Roger Sayle committed
    • re PR target/33115 (-march=native is not supported under x86 darwin) · 0e7f6131
      2007-08-19  Andrew Pinski  <pinskia@gmail.com>
      
              PR target/33115
              * config/i386/darwin.h (CC1_SPEC): Add %(cc1_cpu) in front.
      
      From-SVN: r127635
      Andrew Pinski committed
    • re PR middle-end/32940 (REG_POINTER attribute on DECL_ARTIFICIAL pointers) · 61021c2c
      2007-08-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
      
              PR middle-end/32940
              * cfgexpand.c  (expand_one_register_var): Mark pointer
              DECL_ARTIFICIAL as REG_POINTER also.
              * stmt.c (expand_decl): Likewise.
      
      From-SVN: r127634
      Andrew Pinski committed