1. 18 Nov, 2009 12 commits
    • re PR c++/40892 (maybe_warn_cpp0x i18n problems) · 848f237b
      /cp
      2009-11-18  Shujing Zhao  <pearly.zhao@oracle.com>
      
      	PR c++/40892
      	* error.c (maybe_warn_cpp0x): Accept enum cpp0x_warn_str as argument.
      	(maybe_warn_variadic_templates): Update the maybe_warn_cpp0x calls to
      	match the new declaration.
      	* cp-tree.h (cpp0x_warn_str): New type.
      	(maybe_warn_cpp0x): Adjust prototype with new argument.
      	* call.c (reference_binding): Update the maybe_warn_cpp0x calls.
      	* decl.c (reshape_init_r, check_initializer, grokdeclarator):
      	Likewise.
      	* parser.c (cp_parser_primary_expression)
      	(cp_parser_parenthesized_expression_list, cp_parser_new_initializer)
      	(cp_parser_assignment_expression, cp_parser_condition)
      	(cp_parser_jump_statement, cp_parser_mem_initializer)
      	(cp_parser_simple_type_specifier, cp_parser_elaborated_type_specifier)
      	(cp_parser_enum_specifier, cp_parser_initializer)
      	(cp_parser_pure_specifier, cp_parser_functional_cast): Likewise.
      
      /testsuite
      2009-11-18  Shujing Zhao  <pearly.zhao@oracle.com>
      
      	* g++.old-deja/g++.other/crash28.C: Make expected dg-error strings
      	explicit.
      	* g++.dg/inherit/error4.C: Likewise.
      	* g++.dg/template/crash90.C: Likewise.
      
      From-SVN: r154288
      Shujing Zhao committed
    • re PR middle-end/22201 (Parameter description strings should all start with a capital letter) · 7b98c16f
      2009-11-18  Shujing Zhao  <pearly.zhao@oracle.com>
      	
      	PR middle-end/22201
      	* params.def (PARAM_INLINE_UNIT_GROWTH)
      	PARAM_IPCP_UNIT_GROWTH)
      	(PARAM_EARLY_INLINING_INSNS, PARAM_IRA_MAX_LOOPS_NUM)
      	(PARAM_IRA_MAX_CONFLICT_TABLE_SIZE)
      	(PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP)
      	(PARAM_MIN_INSN_TO_PREFETCH_RATIO)
      	(PARAM_PREFETCH_MIN_INSN_TO_MEM_RATIO)
      	PARAM_IPA_SRA_PTR_GROWTH_FACTOR): Uppercase the	first letter of the
      	description string.
      
      From-SVN: r154287
      Shujing Zhao committed
    • dwarf2out.c (loc_list_from_tree): Don't call rtl_for_decl_location unnecessarily. · 4f517dce
      	* dwarf2out.c (loc_list_from_tree): Don't call rtl_for_decl_location
      	unnecessarily.
      	(rtl_for_decl_location): Try harder to get a rtl for TREE_STATIC vars.
      
      From-SVN: r154285
      Jakub Jelinek committed
    • re PR c++/3187 (gcc lays down two copies of constructors) · b2583345
      	PR c++/3187
      	* cgraph.h (struct cgraph_node): Add same_body and same_body_alias
      	fields.
      	(cgraph_same_body_alias, cgraph_remove_same_body_alias): New
      	prototypes.
      	* cgraphunit.c (cgraph_expand_function, cgraph_emit_thunks,
      	cgraph_materialize_all_clones): Handle same_body aliases.
      	* cgraph.c (cgraph_allocate_node): New function.
      	(cgraph_create_node): Use it.
      	(cgraph_node_for_decl, cgraph_node, cgraph_get_node,
      	cgraph_node_for_asm, cgraph_remove_node): Handle same_body aliases.
      	(cgraph_same_body_alias, cgraph_remove_same_body_alias): New
      	functions.
      	* lto-cgraph.c (lto_output_node): Stream out same_body aliases.
      	(input_node): Stream in same_body aliases.
      	* lto-symtab.c (lto_cgraph_replace_node): Clear node pointers
      	for same_body aliases.
      	(lto_symtab_merge_cgraph_nodes_1): Handle same_body aliases.
      
      	* cp-tree.h (expand_or_defer_fn_1): New prototype.
      	* decl2.c (cp_write_global_declarations): Mark as !DECL_EXTERNAL
      	also all same_body aliases.
      	* semantics.c (expand_or_defer_fn): Move most of the function
      	except registering with cgraph to ...
      	(expand_or_defer_fn_1): ... here.  New function.
      	* optimize.c: Include cgraph.h.
      	(maybe_clone_body): If in charge parm is not used and both base
      	and complete clones are created and are not comdat, tell cgraph
      	they have the same body.
      	* Make-lang.in (cp/optimize.o): Depend on $(CGRAPH_H).
      
      	* g++.dg/abi/mangle26.C: Also match *C2* definition.
      	* g++.dg/abi/mangle27.C: Likewise.
      	* g++.dg/abi/mangle28.C: Likewise.
      	* g++.dg/abi/mangle29.C: Likewise.
      
      From-SVN: r154284
      Jakub Jelinek committed
    • re PR other/39888 (TLS emutls not linked to automatically on Darwin) · a64333b7
      2009-11-18  Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
      
      	PR other/39888
      	* config/darwin.h: Use the extension stub libraries to access
      	current libgcc_s features.
      
      From-SVN: r154283
      Iain Sandoe committed
    • re PR other/39888 (TLS emutls not linked to automatically on Darwin) · ca8520ad
      2009-11-18  Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
      
      	PR other/39888
      	* config/t-slibgcc-darwin: Fix embedded rpaths for
      	--enable-version-specific-runtime-libs, build extension stub
      	libs exposing features available from current libgcc_s.
      
      From-SVN: r154282
      Iain Sandoe committed
    • re PR debug/41926 ([VTA] internal compiler error: verify_ssa failed) · a83452e9
      gcc/ChangeLog:
      PR debug/41926
      * tree-vect-loop.c (vect_loop_kill_debug_uses): New.
      (vect_transform_loop): Call it.
      gcc/testsuite/ChangeLog:
      PR debug/41926
      * gcc.dg/vect/vect-debug-pr41926.c: New.
      
      From-SVN: r154281
      Alexandre Oliva committed
    • tree-ssa.c (insert_debug_temp_for_var_def): Fix handling of released SSA names. · 462b701b
      * tree-ssa.c (insert_debug_temp_for_var_def): Fix handling of
      released SSA names.
      
      From-SVN: r154280
      Alexandre Oliva committed
    • re PR debug/41888 (ICE from '-O -ftree-loop-distribution -fgraphite-identity -g') · a3201927
      PR debug/41888
      PR debug/41886
      * graphite-scop-detection.c (stmt_simple_for_scop_p): Debug stmts
      are ok.
      * graphite-sese-to-poly.c (graphite_stmt_p): Likewise.
      (try_generate_gimple_bb): Skip debug stmts when finding data refs.
      * sese.c (sese_build_liveouts_bb): Skip debug stmts.
      (sese_bad_liveouts_use): New.
      (sese_reset_debug_liveouts_bb): New.
      (sese_build_liveouts): Use it.
      (rename_variables_in_stmt): Reset debug stmts rather than creating
      new vars for them.
      (expand_scalar_variable_stmt): Likewise.
      
      From-SVN: r154279
      Alexandre Oliva committed
    • df-scan.c (df_ref_create): Don't mark BB as dirty on debug insns. · d785e46f
      * df-scan.c (df_ref_create): Don't mark BB as dirty on debug insns.
      (df_ref_remove): Likewise.
      
      From-SVN: r154278
      Alexandre Oliva committed
    • * module.c (mio_f2k_derived): Initialize op. · 0c4d91b9
      From-SVN: r154277
      Alexandre Oliva committed
    • Daily bump. · cb34ef16
      From-SVN: r154276
      GCC Administrator committed
  2. 17 Nov, 2009 19 commits
  3. 16 Nov, 2009 9 commits
    • PR c++/13950, DR 176 · 5a080ad7
      	PR c++/13950, DR 176
      	* search.c (lookup_field_r): Allow lookup to find the
      	injected-class-name from a template base.
      	(template_self_reference_p): Remove.
      	* decl.c (make_typename_type): Diagnose ambiguity.  Use
      	maybe_get_template_decl_from_type_decl.
      	* parser.c (cp_parser_template_name): Pass true to is_template
      	rather than use maybe_get_template_decl_from_type_decl.
      	(cp_parser_lookup_name): Use maybe_get_template_decl_from_type_decl.
      	* pt.c (maybe_get_template_decl_from_type_decl): Handle ambiguity.
      	Use DECL_SELF_REFERENCE_P.
      
      	* parser.c (cp_parser_parse_and_diagnose_invalid_type_name):
      	Avoid duplicate ambiguity error.
      	* error.c (dump_decl): Don't say "typedef" for injected-class-name.
      	* pt.c (convert_template_argument): Tweak logic.
      
      From-SVN: r154223
      Jason Merrill committed
    • Makefile.def: Restore host and target settings for gmp. · 87213cd4
      * Makefile.def: Restore host and target settings for gmp.
      * Makefile.in: Rebuild.
      
      From-SVN: r154217
      Alexandre Oliva committed
    • lto-elf.c (lto_elf_file_open): Use strtoll to parse the offset. · 1b70729f
      2009-11-16  Rafael Avila de Espindola  <espindola@google.com>
      
      	* lto-elf.c (lto_elf_file_open): Use strtoll to parse the offset.
      
      From-SVN: r154215
      Rafael Avila de Espindola committed
    • * stmt.c (expand_asm_stmt): Get locus from stmt. · efd0b0d3
      From-SVN: r154214
      Alexandre Oliva committed
    • tree-cfg.c (gimple_redirect_edge_and_branch): Create the decl label for the new… · f8981d1c
      tree-cfg.c (gimple_redirect_edge_and_branch): Create the decl label for the new dest block on demand.
      
      * tree-cfg.c (gimple_redirect_edge_and_branch) <case GIMPLE_ASM>:
      Create the decl label for the new dest block on demand.  Require
      a fallthrough edge if no asm labels were redirected.
      
      From-SVN: r154213
      Alexandre Oliva committed
    • i386.md (cbranchsi4): Use nonimmediate_operand for operand 1 predicate. · a81f2330
      	* config/i386/i386.md (cbranchsi4): Use nonimmediate_operand for
      	operand 1 predicate.
      	(cstoresi4): Ditto for operand 2.
      	(cbranch<mode>4): Macroize expander from cbranch{qi,hi,si,di,ti}4
      	patterns using SDWIM mode iterator.
      	(cstore<mode>4): Macroize expander from cstore{qi,hi,si,di}4 patterns
      	using SWIM mode iterator.
      	(cmpdi_1): Rename from cmpdi_1_rex64.
      	(cmp<mode>_1): Macroize expander from cmp{si,di}_1 patterns using
      	SWI48 mode iterator.
      	(*cmp<mode>_1): Macroize insn from *cmp{qi,hi,si,di}_1_insn using SWI
      	mode iterator.
      	(*cmp<mode>_ccno_1): Ditto from *cmp{qi,hi,si,di}_ccno_1.
      	(*cmp<mode>_minus_1): Ditto from *cmp{qi,hi,si,di}_minus_1.
      	(*cmpqi_ext_3_insn): Make private.
      	(*cmpqi_ext_3_insn_rex64): Make private.
      	(cmpstrnsi): Update for renamed cmpdi_1_rex64.
      	* config/i386/predicates.md (cmpsi_operand): Remove.
      
      From-SVN: r154212
      Uros Bizjak committed
    • configure.ac: Add libelf to host_libs. · f61428ed
      * configure.ac: Add libelf to host_libs.  Enable in-tree configury
      of ppl and cloog.  Fix in-tree configury of libelf, skip tests.
      Fix portability of test of C++ as bootstrap language.  Add
      ppl/src/ppl-config.o to the bootstrap compare exclusion list.
      * configure: Rebuild.
      * Makefile.def: Drop host and target settings from gmp, mpfr, ppl,
      and cloog.  Fix in-tree ppl configuration.  Introduce libelf
      in-tree building.
      * Makefile.tpl (POSTSTAGE1_CXX_EXPORT): New.
      (POSTSTAGE1_HOST_EXPORTS): Use it.
      (STAGE[+id+]_CXXFLAGS): New.
      (BASE_FLAGS_TO_PASS): Pass it down.
      (configure-stage[+id+]-[+prefix+][+module+]): Use it.  Add
      extra_exports.
      (all-stage[+id+]-[+prefix+][+module+]): Likewise.
      (configure-[+prefix+][+module+], all-[+prefix+][+module+]): Add
      extra_exports.
      * Makefile.in: Rebuild.
      
      From-SVN: r154211
      Alexandre Oliva committed
    • * config.sub, config.guess: Update from upstream sources. · f6c56be6
      From-SVN: r154210
      Ben Elliston committed
    • invoke.texi: Document ARM VFPv4 based FPUs. · 6ed126e6
      2009-11-16  Paul Brook  <paul@codesourcery.com>
      
      	gcc/
      	* doc/invoke.texi: Document ARM VFPv4 based FPUs.
      	* config/arm/arm.c (all_fpus): Add VFPv4 entries.
      
      From-SVN: r154207
      Paul Brook committed