aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-11-18re PR c++/40892 (maybe_warn_cpp0x i18n problems)Shujing Zhao10-25/+110
/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
2009-11-18re PR middle-end/22201 (Parameter description strings should all start with ↵Shujing Zhao2-9/+22
a capital letter) 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
2009-11-18dwarf2out.c (loc_list_from_tree): Don't call rtl_for_decl_location ↵Jakub Jelinek2-3/+32
unnecessarily. * 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
2009-11-18re PR c++/3187 (gcc lays down two copies of constructors)Jakub Jelinek17-39/+361
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
2009-11-18re PR other/39888 (TLS emutls not linked to automatically on Darwin)Iain Sandoe2-0/+10
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
2009-11-18re PR other/39888 (TLS emutls not linked to automatically on Darwin)Iain Sandoe2-27/+44
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
2009-11-18re PR debug/41926 ([VTA] internal compiler error: verify_ssa failed)Alexandre Oliva4-1/+76
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
2009-11-18tree-ssa.c (insert_debug_temp_for_var_def): Fix handling of released SSA names.Alexandre Oliva2-2/+6
* tree-ssa.c (insert_debug_temp_for_var_def): Fix handling of released SSA names. From-SVN: r154280
2009-11-18re PR debug/41888 (ICE from '-O -ftree-loop-distribution -fgraphite-identity ↵Alexandre Oliva4-4/+118
-g') 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
2009-11-18df-scan.c (df_ref_create): Don't mark BB as dirty on debug insns.Alexandre Oliva2-2/+9
* df-scan.c (df_ref_create): Don't mark BB as dirty on debug insns. (df_ref_remove): Likewise. From-SVN: r154278
2009-11-18* module.c (mio_f2k_derived): Initialize op.Alexandre Oliva2-1/+5
From-SVN: r154277
2009-11-18Daily bump.GCC Administrator1-1/+1
From-SVN: r154276
2009-11-17profiler.h: Remove namespace markup.Benjamin Kosnik2-4/+4
2009-11-17 Benjamin Kosnik <bkoz@redhat.com> * include/profile/impl/profiler.h: Remove namespace markup. From-SVN: r154272
2009-11-17ipa-struct-reorg.c (update_cgraph_with_malloc_call): Fix profile info.Jan Hubicka2-1/+9
* ipa-struct-reorg.c (update_cgraph_with_malloc_call): Fix profile info. From-SVN: r154271
2009-11-17bitset: Tweak doxygen markup.Benjamin Kosnik21-172/+200
2009-11-17 Benjamin Kosnik <bkoz@redhat.com> * include/profile/bitset: Tweak doxygen markup. * include/profile/deque: Same. * include/profile/list: Same. * include/profile/map.h: Same. * include/profile/multimap.h: Same. * include/profile/multiset.h: Same. * include/profile/set.h: Same. * include/profile/unordered_map: Same. * include/profile/vector: Same. * include/profile/impl/profiler_container_size.h: Use namespace __gnu_profile instead of __cxxprof_impl. * include/profile/impl/profiler.h: Same. (_GLIBCXX_PROFILE_IMPL_REENTRANCE_GUARD): To _GLIBCXX_PROFILE_REENTRANCE_GUARD. Remove namespace __cxxprof_guard. (__reentrance_guard): De-templatize. (__reentrance_guard::__inside_cxxprof_impl): To __reentrance_guard::_S_get_in. * include/profile/impl/profiler_hash_func.h: Use namespace __gnu_profile instead of __cxxprof_impl. * include/profile/impl/profiler_hashtable_size.h: Same. * include/profile/impl/profiler_map_to_unordered_map.h: Same. * include/profile/impl/profiler_node.h: Same. * include/profile/impl/profiler_state.h: Same. * include/profile/impl/profiler_trace.h: Same. * include/profile/impl/profiler_vector_size.h: Same. * include/profile/impl/profiler_vector_to_list.h: Same. * doc/xml/manual/profile_mode.xml: Update. From-SVN: r154269
2009-11-17bitset: Add doxygen markup.Benjamin Kosnik12-0/+28
2009-11-17 Benjamin Kosnik <bkoz@redhat.com> * include/debug/bitset: Add doxygen markup. * include/debug/deque: Same. * include/debug/list: Same. * include/debug/map.h: Same. * include/debug/multimap.h: Same. * include/debug/set.h: Same. * include/debug/multiset.h: Same. * include/debug/unordered_map: Same. * include/debug/unordered_set: Same. * include/debug/string: Same. * include/debug/vector: Same. From-SVN: r154268
2009-11-17re PR c++/42058 (Trouble with invalid array initialization)Paolo Carlini7-8/+41
cp/ 2009-11-17 Paolo Carlini <paolo.carlini@oracle.com> PR c++/42058 * typeck2.c (digest_init_r): Check init for error_operand_p. * decl.c (reshape_init_class): Check return value of reshape_init_r for error_mark_node. testsuite/ 2009-11-17 Paolo Carlini <paolo.carlini@oracle.com> PR c++/42058 * testsuite/g++.dg/init/array26.C: New. * testsuite/g++.dg/init/array27.C: Likewise. * testsuite/g++.old-deja/g++.benjamin/13478.C: Adjust dg-errors. From-SVN: r154267
2009-11-17posix-threads.cc (park): Rewrite code to handle time.Andrew Haley3-41/+66
2009-11-17 Andrew Haley <aph@redhat.com> * posix-threads.cc (park): Rewrite code to handle time. Move mutex lock before the call to compare_and_swap to avoid a race condition. Add some assertions. (unpark): Add an assertion. (init): Move here from posix-threads.h. * include/posix-threads.h (destroy): removed. From-SVN: r154265
2009-11-17toplev.c (process_options): Remove dead code.Eric Botcazou3-9/+10
* toplev.c (process_options): Remove dead code. * doc/invoke.texi (-frename-registers): Mention -fpeel-loops. From-SVN: r154259
2009-11-17lto-symtab.c (lto_symtab_resolve_symbols): Always initialize the nodes.Rafael Avila de Espindola2-6/+17
2009-11-17 Rafael Avila de Espindola <espindola@google.com> * lto-symtab.c (lto_symtab_resolve_symbols): Always initialize the nodes. From-SVN: r154258
2009-11-17re PR tree-optimization/41857 (Loop optimizer breaks __ea pointers with -mea64)Ulrich Weigand2-1/+13
PR tree-optimization/41857 * tree-ssa-address.c (move_hint_to_base): Use void pointer to TYPE's address space instead of pointer to TYPE. From-SVN: r154255
2009-11-17* reload.c (find_reloads_address): Fix typo.Ulrich Weigand2-1/+5
From-SVN: r154253
2009-11-17lto-elf.c (lto_file_init): Add offset argument.Rafael Avila de Espindola4-10/+38
2009-11-17 Rafael Avila de Espindola <espindola@google.com> * lto-elf.c (lto_file_init): Add offset argument. (lto_elf_file_open): Record the offset. * lto.c (lto_resolution_read): Change file_name into a lto_file argument. Check offsets. (lto_file_read): Update call to lto_resolution_read. * lto.h (lto_file_struct): Add the offset field. From-SVN: r154251
2009-11-17spu.c (get_pic_reg): Use LAST_ARG_REGNUM as PIC registers in leaf functions ↵Ulrich Weigand2-0/+7
if possible. * config/spu/spu.c (get_pic_reg): Use LAST_ARG_REGNUM as PIC registers in leaf functions if possible. From-SVN: r154245
2009-11-17* config/m68k/m68k-devices.def: Add MCF5441x family.Maxim Kuvyrkov2-0/+9
From-SVN: r154243
2009-11-17cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not access removed node.Jan Hubicka3-1/+19
* cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not access removed node. * cgraphunit.c (verify_cgraph_node): Verify frequencies for match. From-SVN: r154242
2009-11-17predicates.md (x86_64_szext_general_operand): Do not nest ior expressions.Uros Bizjak2-7/+14
* config/i386/predicates.md (x86_64_szext_general_operand): Do not nest ior expressions. (x86_64_szext_nonmemory_operand): Ditto. (call_insn_operand): Ditto. From-SVN: r154241
2009-11-17re PR c++/42061 ([c++0x] ICE with invalid initializer list for reference)Jakub Jelinek4-0/+14
PR c++/42061 * call.c (reference_binding): Return NULL for initializer list with error operand inside of it. * g++.dg/cpp0x/initlist27.C: New test. From-SVN: r154238
2009-11-17re PR c++/42059 ([c++0x] ICE with initializer list for VLA)Jakub Jelinek4-1/+26
PR c++/42059 * typeck.c (cp_build_modify_expr): For initializer list call check_array_initializer to make sure lhs isn't a VLA. * g++.dg/cpp0x/initlist26.C: New test. From-SVN: r154237
2009-11-17PR c++/189, c++/9937, c++/13950, DR 176Jason Merrill3-6/+7
PR c++/189, c++/9937, c++/13950, DR 176 * g++.dg/tc1/dr176.C: Adjust. From-SVN: r154235
2009-11-17Daily bump.GCC Administrator1-1/+1
From-SVN: r154232
2009-11-16PR c++/13950, DR 176Jason Merrill13-45/+134
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
2009-11-16Makefile.def: Restore host and target settings for gmp.Alexandre Oliva3-15/+26
* Makefile.def: Restore host and target settings for gmp. * Makefile.in: Rebuild. From-SVN: r154217
2009-11-16lto-elf.c (lto_elf_file_open): Use strtoll to parse the offset.Rafael Avila de Espindola2-5/+14
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
2009-11-16* stmt.c (expand_asm_stmt): Get locus from stmt.Alexandre Oliva2-2/+7
From-SVN: r154214
2009-11-16tree-cfg.c (gimple_redirect_edge_and_branch): Create the decl label for the ↵Alexandre Oliva2-2/+17
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
2009-11-16i386.md (cbranchsi4): Use nonimmediate_operand for operand 1 predicate.Uros Bizjak3-309/+74
* 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
2009-11-16configure.ac: Add libelf to host_libs.Alexandre Oliva6-823/+1886
* 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
2009-11-17* config.sub, config.guess: Update from upstream sources.Ben Elliston3-5/+10
From-SVN: r154210
2009-11-16invoke.texi: Document ARM VFPv4 based FPUs.Paul Brook3-1/+10
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
2009-11-16cgraphbuild.c (compute_call_stmt_bb_frequency): Use proper ENTRY_BLOCK_PTR.Jan Hubicka5-67/+115
* 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
2009-11-16re PR c++/42055 (ICE with ambiguous template specialization)Paolo Carlini4-1/+19
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
2009-11-16cgraph.c (cgraph_release_function_body): Update use of ipa_transforms_to_apply.Jan Hubicka11-59/+140
* 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
2009-11-16re PR c++/32056 (Storage classes on template parameters)Paolo Carlini6-1/+33
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
2009-11-16pr41919.c: Mark chars explicitely as signed.Andreas Krebbel2-2/+6
2009-11-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> * gcc.c-torture/execute/pr41919.c: Mark chars explicitely as signed. From-SVN: r154197
2009-11-16Daily bump.GCC Administrator1-1/+1
From-SVN: r154195
2009-11-15cxxabi.h (__cxa_demangle): Fix typo in comment.Steve Ward2-1/+5
2009-11-15 Steve Ward <planet36@gmail.com> * libsupc++/cxxabi.h (__cxa_demangle): Fix typo in comment. From-SVN: r154191
2009-11-15re PR fortran/42048 ([F03] Erroneous syntax error message on TBP call)Janus Weil4-1/+52
2009-11-15 Janus Weil <janus@gcc.gnu.org> PR fortran/42048 * match.c (gfc_match_call): If we're inside a function with derived type return value, allow calling a TBP of the result variable. 2009-11-15 Janus Weil <janus@gcc.gnu.org> PR fortran/42048 * gfortran.dg/typebound_call_11.f03: New test. From-SVN: r154190
2009-11-15lto.exp: For non-lto, bail out before calling init functions.Hans-Peter Nilsson2-5/+10
* gcc.dg/lto/lto.exp: For non-lto, bail out before calling init functions. From-SVN: r154189
2009-11-15PR target/21078, 21080Andy Hutchinson4-2/+55
PR target/21078, 21080 * config/avr/avr.c (avr_return_addr_rtx): New function for builtin_return_address. (expand_prologue): Calculate stack usage. (avr_asm_function_end_prologue): Output stack size and offset label. * config/avr/avr.h (RETURN_ADDR_RTX): Replace. (machine_function): Add stack_usage. * config/avr/avr-protos.h (avr_return_addr_rtx): New function. From-SVN: r154188