aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2009-11-19pr40204.c: Test only for int32 target.Andy Hutchinson3-0/+7
*gcc.c-torture/compile/pr40204.c: Test only for int32 target. *gcc.c-torture/compile/pr41181.c: Skip test for avr target. From-SVN: r154346
2009-11-19raw-string-1.c: Skip test for avr target.Andy Hutchinson5-0/+11
* gcc-dg/raw-string-1.c: Skip test for avr target. * gcc-dg/utf-array-short-wchar.c: Ditto. * gcc-dg/utf-array.c: Ditto. * gcc-dg/utf8-2.c: Ditto. From-SVN: r154345
2009-11-19[multiple changes]Rafael Espindola6-4/+41
2009-11-19 Rafael Avila de Espindola <espindola@google.com> * g++.dg/plugin/selfassign.c: Include plugin-version.h. (plugin_init): Pass correct version to plugin_default_version_check. * gcc.dg/plugin/ggcplug.c: Include plugin-version.h. (plugin_init): Pass correct version to plugin_default_version_check. * gcc.dg/plugin/selfassign.c: Include plugin-version.h. (plugin_init): Pass correct version to plugin_default_version_check. 2009-11-19 Basile Starynkevitch <basile@starynkevitch.net> Rafael Avila de Espindola <espindola@google.com> * doc/plugins.texi (Plugin initialization): Added advices for retrieving the version of GCC at plugin compilation and loading times. From-SVN: r154342
2009-11-19plugin.c (FMT_FOR_PLUGIN_EVENT): added definition.Basile Starynkevitch2-4/+13
2009-11-19 Basile Starynkevitch <basile@starynkevitch.net> * gcc/plugin.c (FMT_FOR_PLUGIN_EVENT): added definition. (dump_active_plugins): output to file everything. Use internationalized dump & FMT_FOR_PLUGIN_EVENT. From-SVN: r154337
2009-11-19re PR c++/561 (std:unclear about Overloaded Function Pointer resolution)Jason Merrill7-38/+88
PR c++/561 * decl.c (static_fn_type): Split out... (revert_static_member_fn): ...from here. * cp-tree.h: Declare it. * class.c (resolve_address_of_overloaded_function): Use it to compare pointers to member functions. * typeck.c (build_static_cast_1): Call instantiate_type. From-SVN: r154336
2009-11-19gimple.c (canonicalize_cond_expr_cond): Strip conversions around ↵Richard Guenther3-4/+18
truth-valued expressions. 2009-11-19 Richard Guenther <rguenther@suse.de> * gimple.c (canonicalize_cond_expr_cond): Strip conversions around truth-valued expressions. * tree.c (free_lang_data): Untangle check for LTO frontend. From-SVN: r154332
2009-11-19re PR bootstrap/42096 (lto.c:289:7: error: implicit declaration of function ↵Rafael Avila de Espindola4-15/+37
'strtoll') 2009-11-19 Rafael Avila de Espindola <espindola@google.com> PR bootstrap/42096 * lto-plugin.c (claim_file_handler): Print offsets in hex. 2009-11-19 Rafael Avila de Espindola <espindola@google.com> PR bootstrap/42096 * lto-elf.c (lto_elf_file_open): Use lto_parse_hex. * lto.c (lto_parse_hex): New. (lto_resolution_read): Use lto_parse_hex. * lto.h (lto_parse_hex): New. From-SVN: r154330
2009-11-19tree.c (need_assembler_name_p): Use cgraph_get_node instead of ↵Jakub Jelinek4-33/+10
cgraph_node_for_decl. * tree.c (need_assembler_name_p): Use cgraph_get_node instead of cgraph_node_for_decl. * cgraph.h (cgraph_node_for_decl): Remove prototype. * cgraph.c (cgraph_node_for_decl): Remove. (cgraph_get_node): Just return NULL if !cgraph_hash. From-SVN: r154329
2009-11-19config.gcc: Add new ARM --with-fpu options.Paul Brook4-3/+10
2009-11-19 Paul Brook <paul@codesourcery.com> gcc/ * config.gcc: Add new ARM --with-fpu options. * doc/invoke.texi: Docuent ARM -mfpu=fpv4-sp-d16. * config/arm/arm.c (all_fpus): Add fpv4-sp-d16. From-SVN: r154328
2009-11-19trans-expr.c (conv_isocbinding_procedure): New function.Janus Weil2-124/+153
2009-11-19 Janus Weil <janus@gcc.gnu.org> * trans-expr.c (conv_isocbinding_procedure): New function. (gfc_conv_procedure_call): Move ISO_C_BINDING stuff to separate function. From-SVN: r154327
2009-11-19gfortran.texi (Interoperable Subroutines and Functions): Fix example.Tobias Burnus2-3/+9
2009-11-19 Tobias Burnus <burnus@net-b.de> * gfortran.texi (Interoperable Subroutines and Functions): Fix example. From-SVN: r154326
2009-11-1920091002-1_0.C: Replace -shared with -r -nostlib.Nick Clifton13-13/+13
* g++.dg/lto/20091002-1_0.C: Replace -shared with -r -nostlib. * g++.dg/lto/20081120-1_0.C: Likewise. * g++.dg/lto/20091002-2_0.C: Likewise. * g++.dg/lto/20081120-2_0.C: Likewise. * g++.dg/lto/20091002-3_0.C: Likewise. * g++.dg/lto/20081123_0.C: Likewise. * g++.dg/lto/20090313_0.C: Likewise. * g++.dg/lto/20081109-1_0.C: Likewise. * g++.dg/lto/20081219_0.C: Likewise. * g++.dg/lto/20081204-1_0.C: Likewise. * g++.dg/lto/20090302_0.C: Likewise. * g++.dg/lto/20081119-1_0.C: Likewise. * g++.dg/lto/20081118_0.C: Likewise. From-SVN: r154325
2009-11-19re PR fortran/42090 (I/O: Problems when reading partial records in formatted ↵Jerry DeLisle2-0/+60
direct access files) 2009-11-18 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/42090 * gfortran.dg/direct_io_11.f90: New test. From-SVN: r154317
2009-11-19Daily bump.GCC Administrator1-1/+1
From-SVN: r154311
2009-11-18gimple.h (union gimple_statement_d): Add gsmembase member.Richard Guenther3-8/+23
2009-11-18 Richard Guenther <rguenther@suse.de> * gimple.h (union gimple_statement_d): Add gsmembase member. (gimple_vuse_op): Use gsmembase for access. (gimple_vdef_op): Likewise. (gimple_vuse): Likewise. (gimple_vdef): Likewise. (gimple_vuse_ptr): Likewise. (gimple_vdef_ptr): Likewise. (gimple_set_vuse): Likewise. (gimple_set_vdef): Likewise. * gsstruct.def (GSS_WITH_MEM_OPS_BASE): Add. From-SVN: r154306
2009-11-18linkage.exp: Also check -m32 for i*86-*-linux*.H.J. Lu2-1/+5
2009-11-18 H.J. Lu <hongjiu.lu@intel.com> * gcc.misc-tests/linkage.exp: Also check -m32 for i*86-*-linux*. From-SVN: r154303
2009-11-18* doc/arm-neon-intrinsics.texi: Regenerated.Daniel Jacobowitz2-6/+10
From-SVN: r154302
2009-11-18neon-docgen.ml (analyze_shape_elt): Handle Alternatives.Daniel Jacobowitz2-0/+6
* config/arm/neon-docgen.ml (analyze_shape_elt): Handle Alternatives. From-SVN: r154301
2009-11-18arm.c (FL_ARCH7EM, [...]): Define.Paul Brook3-2/+24
2009-11-18 Paul Brook <paul@codesourcery.com> Daniel Jacobowitz <dan@codesourcery.com> gcc/ * config/arm/arm.c (FL_ARCH7EM, FL_FOR_ARCH7EM): Define. (arm_arch7em): New variable. (all_architectures): Add armv7e-m. (arm_override_options): Set arm_arch7em. * config/arm/arm.h (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Include arm_arch7em. (arm_arch7em): Declare. Co-Authored-By: Daniel Jacobowitz <dan@codesourcery.com> From-SVN: r154299
2009-11-18lto-streamer-in.c (input_gimple_stmt): Assert that we find a valid field ↵Richard Guenther2-1/+10
decl if checking is enabled. 2009-11-18 Richard Guenther <rguenther@suse.de> * lto-streamer-in.c (input_gimple_stmt): Assert that we find a valid field decl if checking is enabled. From-SVN: r154298
2009-11-1820091002-1_0.C: Replace -shared with -r -nostlib.Nick Clifton1-0/+16
* g++.dg/lto/20091002-1_0.C: Replace -shared with -r -nostlib. * g++.dg/lto/20081120-1_0.C: Likewise. * g++.dg/lto/20091002-2_0.C: Likewise. * g++.dg/lto/20081120-2_0.C: Likewise. * g++.dg/lto/20091002-3_0.C: Likewise. * g++.dg/lto/20081123_0.C: Likewise. * g++.dg/lto/20090313_0.C: Likewise. * g++.dg/lto/20081109-1_0.C: Likewise. * g++.dg/lto/20081219_0.C: Likewise. * g++.dg/lto/20081204-1_0.C: Likewise. * g++.dg/lto/20090302_0.C: Likewise. * g++.dg/lto/20081119-1_0.C: Likewise. * g++.dg/lto/20081118_0.C: Likewise. From-SVN: r154297
2009-11-18re PR testsuite/41913 (ERROR: tcl error sourcing gcc.dg/lto/lto.exp)H.J. Lu2-1/+6
2009-11-18 H.J. Lu <hongjiu.lu@intel.com> PR testsuite/41913 * lib/lto.exp (scan-symbol): Properly check if target exist. From-SVN: r154296
2009-11-18ipa-prop.h (struct ipa_param_call_note): New field lto_stmt_uid.Martin Jambor5-21/+113
2009-11-18 Martin Jambor <mjambor@suse.cz> * ipa-prop.h (struct ipa_param_call_note): New field lto_stmt_uid. (lto_ipa_fixup_call_notes): Declare. * ipa-prop.c (ipa_note_param_call): Store gimple uid. (update_call_notes_after_inlining): Copy call stmt uid to the new edge. (ipa_write_param_call_note): New function. (ipa_read_param_call_note): New function (ipa_write_node_info): Write also param call notes. Removed a bogus comment, reformatted to fit 80 columns. (ipa_read_node_info): Read also param call notes. Removed a bogus comment. Remove ipa_edge_args_vector growth. (lto_ipa_fixup_call_notes): New function. * ipa-cp.c (pass_ipa_cp): Add stmt_fixup hook. * ipa-inline.c (cgraph_mark_inline_edge): Perform indirect inlining regardless of flag_wpa. (cgraph_decide_inlining_of_small_functions): Likewise. (cgraph_decide_inlining): Likewise. (inline_read_summary): Likewise. From-SVN: r154293
2009-11-18re PR fortran/42072 ([F03] wrong-code with C_F_PROCPOINTER)Janus Weil4-8/+33
2009-11-18 Janus Weil <janus@gcc.gnu.org> PR fortran/42072 * trans-expr.c (gfc_conv_procedure_call): Handle procedure pointer dummies which are passed to C_F_PROCPOINTER. 2009-11-18 Janus Weil <janus@gcc.gnu.org> PR fortran/42072 * gfortran.dg/proc_ptr_8.f90: Extended. From-SVN: r154292
2009-11-18predict.c (compute_function_frequency): Export.Jan Hubicka4-31/+52
* predict.c (compute_function_frequency): Export. * predict.h (compute_function_frequency): Declare. * tree-optimize.c (execute_fixup_cfg): Rescale frequencies. From-SVN: r154291
2009-11-18passes.c (ipa_write_summaries): Call renumber_gimple_stmt_uids on all nodes ↵Martin Jambor2-1/+22
we write summaries for. 2009-11-18 Martin Jambor <mjambor@suse.cz> * passes.c (ipa_write_summaries): Call renumber_gimple_stmt_uids on all nodes we write summaries for. From-SVN: r154290
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 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-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-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-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