- 20 Apr, 2012 25 commits
-
-
* lang.opt: Add -fgo-check-divide-zero and -fgo-check-divide-overflow. * gccgo.texi (Invoking gccgo): Document new options. From-SVN: r186637
Ian Lance Taylor committed -
Avoids bug in strace 4.5.20 on powerpc-unknown-linux-gnu. From-SVN: r186635
Ian Lance Taylor committed -
This fixes the lookup when, e.g., discriminators force adding new line arrays. From-SVN: r186633
Ian Lance Taylor committed -
From-SVN: r186631
Ian Lance Taylor committed -
* gcc.target/x86_64/abi/avx/test_passing_unions.c: Avoid undefined array access. * gcc.target/x86_64/abi/avx/test_passing_structs.c: Likewise. From-SVN: r186629
Uros Bizjak committed -
* genmodes.c (make_complex_modes): Don't truncate a mode name of length 7 or more when prepending a "C". Suggested by Richard Guenther. From-SVN: r186628
Jim Meyering committed -
PR target/53042 * decl2.c (maybe_emit_vtables): Do not initialize same_comdat_group list when target has no support for it. From-SVN: r186627
Jan Hubicka committed -
* error.c (pedwarn_cxx98): Move va_end call after user of the va_list. From-SVN: r186626
Michael Matz committed -
re PR rtl-optimization/44214 (Compiler does not optimize vector divide with -freciprocal-math (or -ffast-math)) gcc: 2012-04-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com> PR rtl-optimization/44214 * fold-const.c (exact_inverse): New function. (fold_binary_loc): Fold vector and complex division by constant into multiply by recripocal with flag_reciprocal_math; fold vector division by constant into multiply by reciprocal with exact inverse. gcc/testsuite: 2012-04-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com> PR rtl-optimization/44214 * gcc.dg/pr44214-1.c: New test. * gcc.dg/pr44214-2.c: Likewise. * gcc.dg/pr44214-3.c: Likewise. From-SVN: r186625
Bill Schmidt committed -
* lto-symtab.c (lto_cgraph_replace_node): Merge needed instead of force flags. * cgraph.c (cgraph_add_thunk): Use mark_reachable_node. (cgraph_remove_node): Update. (cgraph_mark_needed_node): Remove. (cgraph_mark_force_output_node): New. (dump_cgraph_node): Do not dump needed flag. (cgraph_node_cannot_be_local_p_1): Update. (cgraph_can_remove_if_no_direct_calls_and_refs): Update. * cgraph.h (symtab_node_base): Add force_output flag. (cgraph_node): Remove needed flag. (varpool_node): Remove force_output flag. (cgraph_mark_needed_node): Remove. (cgraph_mark_force_output_node): New. (cgraph_only_called_directly_or_aliased_p, varpool_can_remove_if_no_refs, varpool_all_refs_explicit_p): Update. * ipa-cp.c (ipcp_generate_summary): Remove out of date assert. * cgraphunit.c (cgraph_decide_is_function_needed): rewrite. (cgraph_add_new_function); Update. (cgraph_mark_if_needed); Update. (verify_cgraph_node): Update. (cgraph_analyze_function): Alias target is reachable. (process_function_and_variable_attributes): Update: externally_visible flag makes function reachable. (cgraph_analyze_functions): Update dumping. * lto-cgraph.c (lto_output_node, lto_output_varpool_node, input_overwrite_node, input_varpool_node): Update streaming. * lto-streamer-out.c (produce_symtab): Use force_output. * ipa.c (process_references): Weakrefs must be processed. (cgraph_remove_unreachable_nodes): Likewise; update for new force_output flag. (varpool_externally_visible_p); Weakrefs are externally visible even if they are not. (function_and_variable_visibility): Update; when processing alias pair force the targets to be output. (whole_program_function_and_variable_visility): Use mark_reachable_node. * trans-mem.c (ipa_tm_mark_needed_node): Remove (ipa_tm_mark_force_output_node): New function. (ipa_tm_create_version_alias, ipa_tm_create_version): Update. * gimple-fold.c (can_refer_decl_in_current_unit_p): Be lax about aliases. * varasm.c (mark_decl_referenced): Update. (find_decl_and_mark_needed): Remove. (find_decl): New function. (weak_finish, finish_aliases_1, assemble_alias): Update; do not mark alias targets as needed. (dump_tm_clone_pairs): Update. * tree-inline.c (copy_bb): Update check. * symtab.c (dump_symtab_base): Dump force_output. * tree-ssa-structalias.c (ipa_pta_execute): Use force_output. * passes.c (execute_todo): Fix dumping. * varpool.c (decide_is_variable_needed, varpool_finalize_decl): Update. (varpool_analyze_pending_decls): Alias target is reachable. (varpool_create_variable_alias): Finalize weakrefs. * class.c (make_local_function_alias): Do not mark symbol referenced. * objc-acct.c (mark_referenced_methods); Use cgraph_mark_force_output_node. * gcc-interface/utils.c (gnat_write_global_declarations): Update for new force_output placement. * lto/lto-partition.c (partition_cgraph_node_p): Use force_output. From-SVN: r186624
Jan Hubicka committed -
PR bootstrap/53021 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP, UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Define. * alias.c (init_alias_targets): Use UNIQUE_BASE_VALUE_* macros instead of constants. * dse.c (record_store): Check for SP ADDRESS by comparing XWINT to UNIQUE_BASE_VALUE_SP instead of expecting XEXP to be stack_pointer_rtx. From-SVN: r186623
Jakub Jelinek committed -
tree-ssa-copy.c (propagate_tree_value_into_stmt): Use update_call_from_tree when propagating into a call. 2012-04-20 Richard Guenther <rguenther@suse.de> * tree-ssa-copy.c (propagate_tree_value_into_stmt): Use update_call_from_tree when propagating into a call. * g++.dg/torture/20120420-1.C: New testcase. From-SVN: r186622
Richard Guenther committed -
* config/rs6000/rs6000.c (rs6000_emit_savres_rtx): Formatting. (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise. Rename sp_offset to frame_off. Move world save code earlier. From-SVN: r186621
Alan Modra committed -
2012-04-20 Richard Guenther <rguenther@suse.de> PR tree-optimization/53050 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do only one transform on COND_EXPRs at the same time. From-SVN: r186620
Richard Guenther committed -
From-SVN: r186619
Jan Hubicka committed -
2012-04-20 Paolo Carlini <paolo.carlini@oracle.com> PR libstdc++/53052 * include/std/type_traits (is_explicitly_convertible): Remove. * testsuite/20_util/is_explicitly_convertible: Likewise. * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Adjust dg-error line numbers. * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: Likewise. * testsuite/20_util/declval/requirements/1_neg.cc: Likewise. From-SVN: r186618
Paolo Carlini committed -
2012-04-20 Paolo Carlini <paolo.carlini@oracle.com> PR libstdc++/53052 * include/std/type_traits (is_explicitly_convertible): Remove. * testsuite/20_util/is_explicitly_convertible: Likewise. * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Adjust dg-error line numbers. * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: Likewise. * testsuite/20_util/declval/requirements/1_neg.cc: Likewise. From-SVN: r186617
Paolo Carlini committed -
PR target/53040 * config/rs6000/rs6000.c (rs6000_savres_strategy): When using static chain, set REST_INLINE_FPRS too. From-SVN: r186616
Alan Modra committed -
gcc/ * tree-dump.c (dequeue_and_dump) <BIT_FIELD_REF>: Dump the three child nodes. From-SVN: r186615
Thomas Schwinge committed -
tree-vect-loop.c (vect_analyze_loop_operations): Do not vectorize loops that can never run more often than the vectorization factor. 2012-04-20 Richard Guenther <rguenther@suse.de> * tree-vect-loop.c (vect_analyze_loop_operations): Do not vectorize loops that can never run more often than the vectorization factor. From-SVN: r186614
Richard Guenther committed -
libgcc/ * config/alpha/linux-unwind.h (alpha_fallback_frame_state): Use siginfo_t instead of struct siginfo. * config/bfin/linux-unwind.h (bfin_fallback_frame_state): Likewise. * config/i386/linux-unwind.h (x86_fallback_frame_state): Likewise. * config/ia64/linux-unwind.h (ia64_fallback_frame_state) (ia64_handle_unwabi): Likewise. * config/mips/linux-unwind.h (mips_fallback_frame_state): Likewise. * config/pa/linux-unwind.h (pa32_fallback_frame_state): Likewise. * config/sh/linux-unwind.h (shmedia_fallback_frame_state) (sh_fallback_frame_state): Likewise. * config/tilepro/linux-unwind.h (tile_fallback_frame_state): Likewise. * config/xtensa/linux-unwind.h (xtensa_fallback_frame_state): Likewise. From-SVN: r186610
Thomas Schwinge committed -
From-SVN: r186609
Jan Hubicka committed -
Also allocate heap bitmaps bit in page size units and clear context when putting G structures on free list. From-SVN: r186607
Ian Lance Taylor committed -
From-SVN: r186605
Ian Lance Taylor committed -
From-SVN: r186604
GCC Administrator committed
-
- 19 Apr, 2012 14 commits
-
-
From-SVN: r186600
Jim Meyering committed -
From-SVN: r186599
David Edelsohn committed -
From-SVN: r186597
Steven Bosscher committed -
* genmodes.c (make_complex_modes): Avoid unnecessary use of strncpy. We verified above that the string(including trailing NUL) fits in buf, so just use memcpy. From-SVN: r186596
Jim Meyering committed -
2012-04-19 Richard Guenther <rguenther@suse.de> * symtab.c (dump_symtab_base): Use TREE_STRING_POINTER for dumping DECL_SECTION_NAME. From-SVN: r186594
Richard Guenther committed -
re PR c/52977 (internal compiler error: Segmentation fault with `-x c-header' or `-x cxx-header' option) PR middle-end/52977 * tree.h (VECTOR_CST_NELTS): Use part number of types again. (struct tree_vector): Adjust GTY length. * tree.c (make_vector_stat): Don't set VECTOR_CST_NELTS. * gengtype.c (struct walk_type_data): Add in_record_p and loopcounter members. (walk_type, <TYPE_POINTER, TYPE_ARRAY>): Handle case where our caller emitted the length calulation already. (walk_type, <TYPE_UNION, TYPE_STRUCT>): Emit length calculations From-SVN: r186593
Michael Matz committed -
2012-04-19 Richard Guenther <rguenther@suse.de> PR tree-optimization/53031 * tree-vrp.c (adjust_range_with_scev): Revert back to using max_loop_iterations. From-SVN: r186592
Richard Guenther committed -
* diagnostic.c (emit_diagnostic): Move va_end call after user of the va_list. (warning, warning_at, pedwarn, permerror): Ditto. From-SVN: r186591
Michael Matz committed -
2012-04-19 Richard Guenther <rguenther@suse.de> * ira-int.h (ira_allocno_object_iter_cond): Avoid out-of-bound array access. From-SVN: r186590
Richard Guenther committed -
PR target/53033 * config/avr/avr.c (avr_out_load_psi): Fix assembler template for the case *(X+const). From-SVN: r186588
Georg-Johann Lay committed -
2012-04-19 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org> * config/arm/sync.md (sync_optab): Change ior attribute to "or". From-SVN: r186587
Ramana Radhakrishnan committed -
From-SVN: r186586
Christian Bruel committed -
2012-04-19 Richard Guenther <rguenther@suse.de> PR rtl-optimization/44688 * loop-iv.c (determine_max_iter): Only return max_iter. (iv_number_of_iterations): Also use the recorded loop bound on the maximum number of iterations. * loop-unroll.c (decide_unroll_runtime_iterations): Use max_iter to avoid unrolling loops that do not roll. (decide_unroll_stupid): Likewise. * gcc.dg/var-expand1.c: Increase array size to make unrolling possibly profitable. From-SVN: r186585
Richard Guenther committed -
From-SVN: r186584
GCC Administrator committed
-
- 18 Apr, 2012 1 commit
-
-
From-SVN: r186580
Steven Bosscher committed
-