1. 18 Nov, 2009 7 commits
  2. 17 Nov, 2009 19 commits
  3. 16 Nov, 2009 14 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
    • cgraphbuild.c (compute_call_stmt_bb_frequency): Use proper ENTRY_BLOCK_PTR. · 0d63a740
      
      	* cgraphbuild.c (compute_call_stmt_bb_frequency): Use proper ENTRY_BLOCK_PTR.
      	* cgraph.c (cgraph_clone_edge): Avoid freq_scale 0 to completely zero out all
      	callees.
      	* cgraphunit.c (verify_cgraph_node): Verify cgraph nodes for frequency and count match.
      	* ipa-inline.c (update_noncloned_frequencies): New function.
      	(cgraph_clone_inlined_nodes): Use it.
      	* tree-inline.c (copy_bb): Fix frequency scaling; output
      	diagnostic on frequency mismatches to dump file.
      	(initialize_cfun): Do not scale frequency; fix count scaling;
      	initialize entry and exit block frequencies; copy profile
      	info.
      	(copy_cfg_body): Use frequency_scale as argument;
      	fix count scaling.
      	(copy_body): Use frequency_scale as argument.
      	(expand_call_inline): Compute frequency scale and output diagnostic
      	to dump file.
      	(delete_unreachable_blocks_update_callgrah): Remove checking that
      	has to be done after edge redirection.
      	(tree_function_versioning): Update initialize_cfun and copy_body call.
      
      From-SVN: r154205
      Jan Hubicka committed
    • re PR c++/42055 (ICE with ambiguous template specialization) · 3cb9d1d5
      cp/
      2009-11-16  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/42055
      	* pt.c (determine_specialization): Assign to candidates the return
      	value of the chainon called before print_candidates.
      
      testsuite/
      2009-11-16  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/42055
      	* testsuite/g++.dg/template/crash92.C: New.
      
      From-SVN: r154202
      Paolo Carlini committed
    • cgraph.c (cgraph_release_function_body): Update use of ipa_transforms_to_apply. · 0e3776db
      
      	* cgraph.c (cgraph_release_function_body): Update use of
      	ipa_transforms_to_apply.
      	(cgraph_remove_node): Remove ipa_transforms_to_apply.
      	* cgraph.h (struct cgraph_node): Add ipa_transforms_to_apply.
      	* cgraphunit.c (save_inline_function_body): Clear ipa_transforms for
      	copied body.
      	(cgraph_materialize_clone): Remove original if dead.
      	* lto-streamer-in.c (lto_read_body): Remove FIXME and
      	ipa_transforms_to_apply hack.
      	* function.h (struct function): Add ipa_transforms_to_apply.
      	* ipa.c (cgraph_remove_unreachable_nodes): Handle dead clone originals.
      	* tree-inline.c (copy_bb): Update sanity check.
      	(initialize_cfun): Do not copy ipa_transforms_to_apply.
      	(expand_call_inline): remove dead clone originals.
      	(tree_function_versioning): Merge transformation queues.
      	* passes.c (add_ipa_transform_pass): Remove.
      	(execute_one_ipa_transform_pass): Update ipa_transforms_to_apply
      	tracking.
      	(execute_all_ipa_transforms): Update.
      	(execute_one_pass): Update.
      
      	* lto.c (read_cgraph_and_symbols): Set also ipa_transforms_to_apply.
      
      From-SVN: r154200
      Jan Hubicka committed
    • re PR c++/32056 (Storage classes on template parameters) · 0229b692
      cp/
      2009-11-16  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/32056
      	* decl.h (enum decl_context): Add TPARM enumerator.
      	* decl.c (grokdeclarator): Per 14.1/2, error out if a storage class
      	is specified in a template parameter declaration.
      	* parser.c (cp_parser_template_parameter): Call grokdeclarator with
      	TPARM as third argument.
      
      testsuite/
      2009-11-16  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/32056
      	* testsuite/g++.dg/template/error44.C: New.
      
      From-SVN: r154198
      Paolo Carlini committed
    • pr41919.c: Mark chars explicitely as signed. · 0fc4f703
      2009-11-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
      
      	* gcc.c-torture/execute/pr41919.c: Mark chars explicitely as signed.
      
      From-SVN: r154197
      Andreas Krebbel committed