OSDN Git Service

* builtins.c (expand_builtin_compare_and_swap): If target is const0,
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
index cf4e66b..3f72d60 100644 (file)
@@ -1,8 +1,146 @@
+2011-11-12  Richard Henderson  <rth@redhat.com>
+
+       * builtins.c (expand_builtin_compare_and_swap): If target is const0,
+       don't pass the target to expand_atomic_compare_and_swap.
+       (expand_builtin_atomic_compare_exchange): Likewise.
+
+       * config/sh/linux.h (TARGET_INIT_LIBFUNCS): New.
+       * config/sh/sh.c (sh_init_sync_libfuncs): New.
+
+       * config/pa/pa-linux.h (TARGET_SYNC_LIBCALL): New.
+       * config/pa/pa.h (TARGET_SYNC_LIBCALL): New default.
+       * config/pa/pa.c (pa_init_libfuncs): Use init_sync_libfuncs.
+
+2011-11-12  Iain Sandoe  <iains@gcc.gnu.org>
+
+       PR target/45233
+       * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
+       Only expand a symbol ref. into an access when the entity is defined
+       in the TU.
+
+2011-11-12  Jan Hubicka  <jh@suse.cz>
+
+       PR bootstrap/50822
+       * cgraphunit.c (output_weakrefs): Output really only weakrefs.
+
+2011-11-12  Nathan Sidwell  <nathan@acm.org>
+
+       * gcov.c (struct name_map): New.
+       (names, n_names, a_names): New global vars.
+       (print_usage): Adjust usage.
+       (generate_results): Canonicalize main file name.
+       (release_structures): Adjust.
+       (name_search, name_sort): New callbacks.
+       (find_source): Look for and create a canonical name.
+       (canonicalize_name): New.
+       (make_gcov_file_name): Reimplement and fix mangling.
+       (mangle_name): New.
+       * doc/gcov.texi: Update documentation about path preservation.
+
+2011-11-11  David S. Miller  <davem@davemloft.net>
+
+       * config/sparc/linux.h (ASM_GENERATE_INTERNAL_LABEL): Delete.
+       * config/sparc/linux64.h (ASM_GENERATE_INTERNAL_LABEL): Delete.
+
+2011-11-11  Jakub Jelinek  <jakub@redhat.com>
+
+       * config/i386/i386-protos.h (ix86_maybe_emit_epilogue_vzeroupper):
+       New prototype.
+       * config/i386/i386.c (ix86_maybe_emit_epilogue_vzeroupper): New
+       function.
+       (ix86_expand_epilogue): Use it.
+       * config/i386/i386.md (return, simple_return): Call it in the
+       expanders.
+
+       PR tree-optimization/51091
+       * tree-stdarg.c (execute_optimize_stdarg): Ignore TREE_CLOBBER_P
+       rhs also in the va_list_simple_ptr case.
+
+       PR tree-optimization/51058
+       * tree-vect-slp.c (vect_remove_slp_scalar_calls): New function.
+       (vect_schedule_slp): Call it.
+       * tree-vect-stmts.c (vectorizable_call): If slp_node != NULL,
+       don't replace scalar calls with setting of their lhs to zero here.
+
+       PR tree-optimization/51074
+       * fold-const.c (vec_cst_ctor_to_array, fold_vec_perm): New functions.
+       (fold_binary_loc): Handle VEC_EXTRACT_EVEN_EXPR,
+       VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR and
+       VEC_INTERLEAVE_LOW_EXPR with VECTOR_CST or CONSTRUCTOR operands.
+       (fold_ternary_loc): Handle VEC_PERM_EXPR with VECTOR_CST or
+       CONSTRUCTOR operands.
+       * tree-ssa-propagate.c (valid_gimple_rhs_p): Handle ternary
+       expressions.
+       * tree-vect-generic.c (lower_vec_perm): Mask sel_int elements
+       to 0 .. 2 * elements - 1.
+
+2011-11-11  Richard Henderson  <rth@redhat.com>
+
+       * gimple-pretty-print.c (dump_gimple_omp_atomic_load): Dump needed.
+       (dump_gimple_omp_atomic_store): Likewise.
+       * optabs.c (can_atomic_exchange_p): New.
+       * optabs.h (can_atomic_exchange_p): Declare.
+       * omp-low.c (expand_omp_atomic_load): Implement.
+       (expand_omp_atomic_store): Likewise.
+       (expand_omp_atomic): Update for new arguments to load/store.
+
+2011-11-11  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * cprop.c: Adjust outdated comments throughout.
+       (hash_scan_set): Rename PAT parameter into SET.
+       (cprop_pavloc): Rename into...
+       (cprop_avloc): ...this.
+       (cprop_absaltered): Rename into...
+       (cprop_kill): ...this.
+       (alloc_cprop_mem): Adjust for above renaming.
+       (free_cprop_mem): Likewise.
+       (compute_cprop_data): Likewise.
+       (compute_local_properties): Rename TRANSP parameter into KILL and
+       adjust throughout.  Rework comments.
+       (try_replace_reg): Fix long line.
+       (cprop_jump): Likewise.
+       (constprop_register): Fix prototype and take INSN last.
+       (cprop_insn): Adjust calls to above function.  Fix long lines.
+       (bypass_block): Likewise.
+       (one_cprop_pass): Likewise.
+
+2011-11-11  Uros Bizjak  <ubizjak@gmail.com>
+
+       * config/alpha/elf.h (ELF_ASCII_ESCAPES): Rename from ESCAPES.
+       (ELF_STRING_LIMIT): Rename from STRING_LIMIT.
+
+2011-11-11  Jason Merrill  <jason@redhat.com>
+
+       * varasm.c (default_elf_asm_output_limited_string): #ifdef
+       ELF_ASCII_ESCAPES.
+       (default_elf_asm_output_ascii): Likewise.
+
+2011-11-11  Uros Bizjak  <ubizjak@gmail.com>
+
+       PR target/50762
+       * config/i386/constraints.md (j): New address constraint.
+       * config/i386/predicates.md (lea_address_operand): Redefine as
+       special predicate.
+       * config/i386/i386.md (*lea_3_zext): Use "j" constraint for operand 1.
+       (*lea_4_zext): Ditto.
+
 2011-11-11  David S. Miller  <davem@davemloft.net>
 
        Revert
        2011-11-05  David S. Miller  <davem@davemloft.net>
 
+       * config/sparc/sparc.md (UNSPEC_SHORT_LOAD): New unspec.
+       (zero-extend_v8qi_vis, zero_extend_v4hi_vis): New expanders.
+       (*zero_extend_v8qi_<P:mode>_insn,
+       *zero_extend_v4hi_<P:mode>_insn): New insns.
+       * config/sparc/sparc.c (vector_init_move_words,
+       vector_init_prepare_elts, sparc_expand_vector_init_vis2,
+       sparc_expand_vector_init_vis1): New functions.
+       (vector_init_bshuffle): Rewrite to handle more cases and make use
+       of locs[] array prepared by vector_init_prepare_elts.
+       (vector_init_fpmerge, vector_init_faligndata): Delete.
+       (sparc_expand_vector_init): Rewrite using new infrastructure.
+
 2011-11-11  Jakub Jelinek  <jakub@redhat.com>
 
        * opts-common.c (generate_canonical_option): Free opt_text
        vect_build_slp_tree fails, properly handle freeing memory.
        If it succeeded, clear def_stmts in oprnd_info.
 
-2011-08-12  Dimitrios Apostolou  <jimis@gmx.net>
-
-       * final.c, output.h (fprint_whex, fprint_w, fprint_ul, sprint_ul):
-       New functions serving as fast replacements for fprintf() integer
-       to string conversions. They were used in the following changes.
-       * final.c (sprint_ul_rev): Internal helper for the above.
-       (output_addr_const): case CONST_INT: don't use fprintf().
-       * elfos.h (ASM_GENERATE_INTERNAL_LABEL): Don't use sprintf("%u"),
-       use sprint_ul() and stpcpy() which are much faster.
+2011-11-11  Dimitrios Apostolou  <jimis@gmx.net>
+
+       * defaults.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Expand on
+       multiple lines for readability.
+       * output.h (fprint_whex, fprint_w, fprint_ul, sprint_ul): Declare.
+       (ASM_OUTPUT_LABELREF): Call fputs instead of asm_fprintf.
+       * dwarf2asm.c (dw2_assemble_integer, dw2_asm_output_data,
+       dw2_asm_data_uleb128, dw2_asm_delta_uleb128,
+       dw2_asm_delta_sleb128): Convert fprintf calls to the new functions.
+       * dwarf2out.c (dwarf2out_source_line): Call fprint_ul instead of
+       fprintf.
+       * final.c (fprint_whex, fprint_w, fprint_ul, sprint_ul): New functions
+       serving as fast replacements for fprintf integer to string conversions.
+       (sprint_ul_rev): Internal helper for the above.
+       (output_addr_const) <CONST_INT>: Don't use fprintf.
+       * varasm.c: Fix some whitespace inconsistencies.
+       (default_elf_asm_output_limited_string): New.
+       (default_elf_asm_output_ascii): Likewise.
+       (default_elf_internal_label): Likewise.
+       * config/elfos.h (ASM_GENERATE_INTERNAL_LABEL): Use sprint_ul and
+       stpcpy instead of sprintf.
        (TARGET_ASM_INTERNAL_LABEL): Define as default_elf_internal_label.
-       (ELF_ASCII_ESCAPES, ELF_STRING_LIMIT): Are the old ESCAPES and
+       (ELF_ASCII_ESCAPES, ELF_STRING_LIMIT): Rename from old ESCAPES and
        STRING_LIMIT macros.
-       (ASM_OUTPUT_LIMITED_STRING, ASM_OUTPUT_ASCII): Macros now just
-       call respective functions that provide the same
-       functionality. Those are default_elf_asm_output_limited_string()
-       and default_elf_asm_output_ascii() in varasm.c.
-       * varasm.c: Fixed some whitespace inconsistencies.
-       (default_elf_asm_output_limited_string)
-       (default_elf_asm_output_ascii): The above macros from elfos.h are
-       implemented here as these functions, avoiding superfluous calls to
-       fprintf().
-       (default_elf_internal_label): Hook for
-       targetm.asm_out.internal_label and ASM_OUTPUT_DEBUG_LABEL.
-       * i386.c: Don't call fprintf("%u") but fprint_ul() instead.
-       * defaults.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_INTERNAL_LABEL):
-       Expanded the macros on multiple lines for readability.
-       (ASM_OUTPUT_LABELREF): Have two calls to fputs() instead of one to
-       asm_fprintf().
-       * dwarf2asm.c (dw2_assemble_integer, dw2_asm_output_data)
-       (dw2_asm_data_uleb128, dw2_asm_delta_uleb128)
-       (dw2_asm_delta_sleb128): Convert fprintf() calls to the new
-       faster functions.
-       * dwarf2out.c (dwarf2out_source_line): Convert fprintf() calls to
-       the new faster functions.
+       (ASM_OUTPUT_LIMITED_STRING, ASM_OUTPUT_ASCII): Call functions that
+       provide the same functionality.
+       * config/i386/i386.c (print_reg): Call fprint_ul instead of fprintf.
 
 2011-11-10  Andrew MacLeod  <amacleod@redhat.com>
 
        * tree-sra.c (build_accesses_from_assign): Ignore clobbers.
        * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Clobbers of
        SSA names aren't necessary.
-       (propagate_necessity): Accept and ignore constructors on the rhs,
-       tidy.
+       (propagate_necessity): Accept and ignore constructors on the rhs, tidy.
        * gimple.c (walk_gimple_op): Accept constructors like mem_rhs.
        * tree-ssa-structalias.c (find_func_aliases): Clobbers don't store
        any known value.
        * trans-mem.c: New file.
        * trans-mem.h: New file.
 
-       * opts.c (finish_options): Error out when using -flto and
-       -fgnu-tm.
+       * opts.c (finish_options): Error out when using -flto and -fgnu-tm.
 
        * config/i386/i386.c: Define TARGET_VECTORIZE* transactional variants.
        (ix86_handle_tm_regparm_attribute, struct bdesc_tm,
 2011-11-07  H.J. Lu  <hongjiu.lu@intel.com>
 
        * dwarf2cfi.c (dwarf2out_frame_debug_expr): Check
-       HARD_FRAME_POINTER_REGNUM instead of hard_frame_pointer_rtx
-       in Rule 18.
+       HARD_FRAME_POINTER_REGNUM instead of hard_frame_pointer_rtx in Rule 18.
 
 2011-11-07  Jakub Jelinek  <jakub@redhat.com>
 
        * tree-data-ref.h (initialize_data_dependence_relation,
        compute_self_dependence): New prototypes.
        * tree-vect-data-refs.c (vect_check_gather): New function.
-       (vect_analyze_data_refs): Detect possible gather load data
-       refs.
+       (vect_analyze_data_refs): Detect possible gather load data refs.
        * tree-vectorizer.h (struct _stmt_vec_info): Add gather_p field.
        (STMT_VINFO_GATHER_P): Define.
        (vect_check_gather): New prototype.
        (avx2_gathersi<mode>, *avx2_gathersi<mode>): Use <VEC_GATHER_IDXSI>
        instead of <VEC_GATHER_MODE>.
        (avx2_gatherdi<mode>): Use <VEC_GATHER_IDXDI> instead of
-       <<AVXMODE48P_DI> and <VEC_GATHER_SRCDI> instead of VEC_GATHER_MODE
+       <AVXMODE48P_DI> and <VEC_GATHER_SRCDI> instead of VEC_GATHER_MODE
        on src and mask operands.
        (*avx2_gatherdi<mode>): Likewise.  Use VEC_GATHER_MODE iterator
        instead of AVXMODE48P_DI.
 
 2011-11-07  Uros Bizjak  <ubizjak@gmail.com>
 
-       * config/i386/f16cintrin: Remove extra _X86INTRIN_H_INCLUDED check.
+       * config/i386/f16cintrin.h: Remove extra _X86INTRIN_H_INCLUDED check.
 
 2011-11-07  Tristan Gingold  <gingold@adacore.com>
 
 
 2011-11-6  Richard Guenther  <rguenther@suse.de>
 
-       * ipa-prop.c (ipa_modify_call_arguments): Re-compute
-       inlinable flag.
+       * ipa-prop.c (ipa_modify_call_arguments): Re-compute inlinable flag.
 
 2011-11-06  Ira Rosen  <ira.rosen@linaro.org>