[AArch64] Make vabs<q>_f<32, 64> a tree/gimple intrinsic.
[official-gcc.git] / gcc / ChangeLog
blob2e2181e76d9483bebc91d5cb02c49e857b138dfe
1 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
3         * config/aarch64/aarch64-builtins.c
4         (aarch64_fold_builtin): New.
5         * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
6         * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
7         * config/aarch64/aarch64-simd-builtins.def (abs): New.
8         * config/aarch64/arm_neon.h
9         (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
11 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
12             Tejas Belagod  <tejas.belagod@arm.com>
14         * config/aarch64/aarch64-builtins.c
15         (aarch64_gimple_fold_builtin): New.
16         * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
17         * config/aarch64/aarch64-simd-builtins.def (addv): New.
18         * config/aarch64/aarch64-simd.md (addpv4sf): New.
19         (addvv4sf): Update.
20         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
22 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
24         * config/aarch64/aarch64.md 
25         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
27 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29         * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
30         (*ngcsi_uxtw): New pattern.
32 2013-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33             Julian Brown  <julian@codesourcery.com>
35         * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
36         (TB_DREG): Add T_V4HF.
37         (v4hf_UP): New macro.
38         (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
39         (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN,
40         NEON_FLOAT_NARROW.
41         Handle initialisation of V4HF. Adjust initialisation of reinterpret
42         built-ins.
43         (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN,
44         NEON_FLOAT_NARROW.
45         (arm_vector_mode_supported_p): Handle V4HF.
46         (arm_mangle_map): Handle V4HFmode.
47         * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
48         * config/arm/arm_neon_builtins.def: Add entries for
49         vcvtv4hfv4sf, vcvtv4sfv4hf.
50         * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
51         (neon_vcvtv4hfv4sf): Likewise.
52         * config/arm/neon-gen.ml: Handle half-precision floating point
53         features.
54         * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
55         * config/arm/arm_neon.h: Regenerate.
56         * config/arm/neon.ml (type elts): Add F16.
57         (type vectype): Add T_float16x4, T_floatHF.
58         (type vecmode): Add V4HF.
59         (type features): Add Requires_FP_bit feature.
60         (elt_width): Handle F16.
61         (elt_class): Likewise.
62         (elt_of_class_width): Likewise.
63         (mode_of_elt): Refactor.
64         (type_for_elt): Handle F16, fix error messages.
65         (vectype_size): Handle T_float16x4.
66         (vcvt_sh): New function.
67         (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
68         (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
69         (string_of_mode): Handle V4HF.
70         * doc/arm-neon-intrinsics.texi: Regenerate.
72 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
74         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
75         format specifier in 'X' case.
77 2013-04-25  Alan Modra  <amodra@gmail.com>
79         PR target/57052
80         * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
81         rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
82         (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
83         Repeat for many other rotate/shift and mask patterns using subregs.
84         Name lshiftrt insns.
85         (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
86         on WORDS_BIG_ENDIAN.
88 2013-04-25  Alan Modra  <amodra@gmail.com>
90         * config.gcc: Support little-endian powerpc-linux targets.
91         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
92         (LINK_OS_LINUX_SPEC): Define.
93         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
94         Preserve MASK_LITTLE_ENDIAN.
95         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
96         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
97         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
98         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
99         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
100         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
101         Correct fp word order for little-endian.  Don't shift toc entries
102         smaller than a word for little-endian.
103         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
104         (bswapdi2 splits): Correct low-part subreg for little-endian.
105         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
106         low/high where such is correct only for be.
107         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
108         little-endian for -mcall-aixdesc.
110 2013-04-25  Alan Modra  <amodra@gmail.com>
112         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
113         replace_equiv_address_nv.
115 2013-04-25  Alan Modra  <amodra@gmail.com>
117         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
119 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
121         Revert:
122         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
123         * rtl.h (struct rtx_def): ...
125 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
127         PR rtl-optimizations/57046
128         * lra-constraints (split_reg): Set up lra_risky_transformations_p
129         for multi-reg splits.
131 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
133         * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
135 2013-04-24  Sterling Augustine  <saugustine@google.com>
137         * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
138         (comp_dir_string, debug_str_dwo_section): New.
139         (DEBUG_STR_DWO_SECTION): Rename to ...
140         (DEBUG_DWO_STR_SECTION): ... this.
141         (DEBUG_NORM_STR_SECTION): Delete.
142         (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
143         (DEBUG_STR_DWO_SECTION_FLAGS): New.
144         (find_AT_string): Move most logic to ...
145         (find_AT_string_in_table): ... here.  New.
146         (add_top_level_skeleton_die_attrs): Call comp_dir_string and
147         add_skeleton_AT_string.  Delete logic.
148         (output_skeleton_debug_sections): Remove call to
149         add_top_level_skeleton_die_attrs.
150         (add_comp_dir_attribute): Move logic to comp_dir_string.
151         (dwarf2out_init): Initialize debug_str_dwo_section.
152         (output_indirect_string): Call find_string_form.
153         (output_indirect_strings): Rewrite.
154         (prune_unused_types): Empty skeleton_debug_str_hash.
155         Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
156         (dwarf2out_finish):  Call output_indirect_strings.
158 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
160         * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
162 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
164         * rtl.h (struct rtx_def): Add comment for field jump.
165         (LRA_SUBREG_P): New macro.
166         * recog.c (register_operand): Check LRA_SUBREG_P.
167         * lra.c (lra): Add note at the end of RTL code. Align non-empty
168         stack frame.
169         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
170         (lra_final_code_change): Skip subreg change for operators.
171         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
172         if there are no operand changes.
173         * lra-constraints.c (curr_insn_set): New.
174         (match_reload): Set LRA_SUBREG_P.
175         (emit_spill_move): Ditto.
176         (check_and_process_move): Use curr_insn_set. Process only single
177         set insns.  Don't initialize sec_mem_p and change_p.
178         (simplify_operand_subreg): Use LRA_SUBREG_P.
179         (reg_in_class_p): New function.
180         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
181         of #ifdef.  Add code to remove cycling.
182         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
183         non-null disp.  Reload inner instead of disp when base and index
184         are null.  Try to put lo_sum into register.
185         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
186         (check_and_process_move): Move code for move cost check to
187         simple_move_p.  Remove equiv_substitution.
188         (simple_move_p): New function.
189         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
190         curr_insn_set.  Call check_and_process_move only for single set
191         insns.  Use the new function.  Move call of check_and_process_move
192         after operand equiv substitution and address process.
194 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
196         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
197         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
198         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
200 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
202         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
204 2013-04-24  Marek Polacek  <polacek@redhat.com>
206         * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
207         * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
208         (select_loops_exit_conditions): Likewise.
209         (number_of_iterations_for_all_loops): Likewise.
210         (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
211         (scev_analysis): Likewise.
213 2013-04-02  Catherine Moore  <clm@codesourcery.com>
214             Chao-ying Fu <fu@mips.com>
216         * config/mips/micromips.md (jraddiusp): New pattern.
217         * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
218         instruction if possible.
220 2013-04-24  Alan Modra  <amodra@gmail.com>
222         * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
224 2013-04-24  Julian Brown  <julian@codesourcery.com>
225             Chung-Lin Tang  <cltang@codesourcery.com>
227         * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
228         dependency behavior in enumeration type DIE generation. Add TODO
229         note to comments about future DW_FORM_sdata/udata re-work of related
230         code.
232 2013-04-23  Lawrence Crowl  <crowl@google.com>
234         * Makefile.in: Update as needed below.
236         * hash-table.h (class hash_table):
237         Correct many methods with parameter types compare_type to the correct
238         value_type.  (Correct code was unlikely to notice the change.)
239         (hash_table::elements_with_deleted) New.
240         (class hashtable::iterator): New.
241         (hashtable::begin()): New.
242         (hashtable::end()): New.
243         (FOR_EACH_HASH_TABLE_ELEMENT): New.
245         * statistics.c (statistics_hashes):
246         Change type to hash_table.  Update dependent calls and types.
248         * tree-into-ssa.c (var_infos):
249         Change type to hash_table.  Update dependent calls and types.
251         * tree-ssa-coalesce.c (struct coalesce_list_d.list):
252         Change type to hash_table.  Update dependent calls and types.
254         * tree-ssa-loop-im.c (struct mem_ref.refs):
255         Change type to hash_table.  Update dependent calls and types.
257         * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
258         Change type to hash_table.  Update dependent calls and types.
260         * tree-ssa-sccvn.c (vn_tables_s::nary):
261         Change type to hash_table.  Update dependent calls and types.
262         (vn_tables_s::phis): Likewise.
263         (vn_tables_s::references): Likewise.
265         * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
266         (vn_reference_eq): Update parameter and return types.
268         * tree-ssa-structalias.c (pointer_equiv_class_table):
269         Change type to hash_table.  Update dependent calls and types.
270         (location_equiv_class_table): Likewise.
272         * tree-vect-data-refs.c: Consequential changes for making
273         peeling a hash_table.
275         * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
276         (destroy_loop_vec_info): Dependent hash_table update.
278         * tree-vectorizer.h (peeling_htab):
279         Change type to hash_table.  Update dependent calls and types.
281 2013-04-23  Shiva Chen  <shiva0217@gmail.com>
283         * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
284         to check the register content is equal or not.
285         * lra-constraints.c (match_reload): Use lra_assign_reg_val
286         to assign register content record.
287         * lra-eliminations.c (update_reg_eliminate): Use
288         lra_update_reg_val_offset to update register content offset.
289         * lra-int.h (struct lra_reg): Add offset member.
290         (lra_reg_val_equal_p): New static inline function.
291         (lra_update_reg_val_offset): New static inline function.
292         (lra_assign_reg_val): New static inline function.
293         * lra.c (lra_create_new_reg): Use lra_assign_reg_val
294         to assign register content record.
295         (initialize_lra_reg_info_element): Initial offset to zero.
297 2013-04-23  Catherine Moore  <clm@codesourcery.com>
299         * config/mips/mips.md (*movhi_internal, *movqi_internal): New
300         operands.  Record compression.
302 2013-04-23  Xinliang David Li  <davidxl@google.com>
304         * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
306 2013-04-23  Richard Biener  <rguenther@suse.de>
308         PR middle-end/57036
309         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
310         parameter, only add abnormal goto edges from the copied body
311         if the call could perform abnormal gotos.
312         (copy_cfg_body): Adjust.
314 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
316         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
318 2013-04-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
320         * config/s390/sjlj.S: New file.
321         * config/s390/target.h: New file.
322         * configure.tgt: Set options for S/390.
324 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
326         * coretypes.h (gimple_stmt_iterator): Add struct to make
327         compatible with C.
329 2013-04-23  Richard Biener  <rguenther@suse.de>
331         PR tree-optimization/57026
332         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
333         from SSA names occuring in abnormal PHI nodes.
335 2013-04-22  Andi Kleen  <ak@linux.intel.com>
337         * lto/lto.c (print_lto_report_1): Fix LTO report names.
339 2013-04-22  Andi Kleen  <ak@linux.intel.com>
341         * lto/lto.c (print_lto_report_1): Declare early.
342         (read_cgraph_and_symbols): Call print_lto_report_1 early.
344 2013-04-22  Andi Kleen  <ak@linux.intel.com>
346         * common.opt (-flto-report-wpa): Add.
347         * doc/invoke.texi (-flto-report-wpa): Add.
348         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
349         (lto_main): dito.
351 2013-04-22  Xinliang David Li  <davidxl@google.com>
353         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
354         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
355         * Makefile.in: New dependency
357             David Daney <ddaney.cavm@gmail.com>
359         * configure.ac (gcc_cv_as_micromips_support):  Use the
360         --fatal-warnings option.
361         * configure: Regenerate.
363 2013-04-22  Marek Polacek  <polacek@redhat.com>
365         PR sanitizer/56990
366         * tsan.c (instrument_expr): Don't instrument expression
367         in case its size is zero.
369 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
371         PR target/57032
372         Revert:
373         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
375         * config/alpha/alpha.c (TARGET_LRA_P): New define.
377 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
379         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
380         (gimple_stmt_iterator): New typedef.
381         * gimple.h (gimple_stmt_iterator): Rename to...
382         (gimple_stmt_iterator_d): ... This.
383         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
384         trees be valid for GIMPLE and GENERIC.
385         (TARGET_GIMPLE_FOLD_BUILTIN): New.
386         * gimple-fold.c (gimple_fold_call): Call target hook
387         gimple_fold_builtin.
388         * hooks.c (hook_bool_gsiptr_false): New.
389         * hooks.h (hook_bool_gsiptr_false): New.
390         * target.def (fold_stmt): New.
391         * doc/tm.texi: Regenerate.
393 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
395         PR target/57018
396         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
397         a set sp if no stack realignment.
399 2013-04-22  Nick Clifton  <nickc@redhat.com>
401         * config.gcc (tilegx-linux): Extend extra_objs rather than
402         overwriting it.
403         (tilepro-linux): Likewise.
405 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
407         * config/aarch64/aarch64-builtins.c
408         (CF): Remove.
409         (CF0, CF1, CF2, CF3, CF4, CF10): New.
410         (VAR<1-12>): Add MAP parameter.
411         (BUILTIN_*): Likewise.
412         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
413         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
414         (aarch64_ushl_n<mode>): Likewise.
415         (aarch64_sshr_n<mode>): Likewise.
416         (aarch64_ushr_n<mode>): Likewise.
417         (aarch64_<maxmin><mode>): Likewise.
418         (aarch64_sqrt<mode>): Likewise.
419         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
420         (vshr<q>_n_*): Likewise.
422 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
424         * config/aarch64/aarch64-builtins.c
425         (aarch64_simd_builtin_type_mode): Handle SF types.
426         (sf_UP): Define.
427         (BUILTIN_GPF): Define.
428         (aarch64_init_simd_builtins): Handle SF types.
429         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
430         (frecps): Likewise.
431         (frecpx): Likewise.
432         * config/aarch64/aarch64-simd.md
433         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
434         (aarch64_frecpe<mode>): New.
435         (aarch64_frecps<mode>): Likewise.
436         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
437         (v8type): Add frecp<esx>.
438         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
439         (aarch64_frecps<mode>): Likewise.
440         * config/aarch64/iterators.md (FRECP): New.
441         (frecp_suffix): Likewise.
442         * config/aarch64/arm_neon.h
443         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
445 2013-04-22  Christian Bruel  <christian.bruel@st.com>
447         PR target/56995
448         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
449         (REG_CLASS_NAMES): Idem.
450         (REG_CLASS_CONTENTS): Idem.
451         (REGCLASS_HAS_FP_REG): Idem.
452         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
453         (sh_conditional_register_usage): Idem.
455 2013-04-21  Jeff Law  <law@redhat.com>
457         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
458         (ssa_forward_propagate_and_combine): Use it.
460 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
462         * lra.c: Update the flow chart diagram.
464 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
466         PR rtl-optimization/56847
467         * lra-constraints.c (process_alt_operands): Discourage alternative
468         with non-matche doffsettable memory constraint fro memory with
469         known offset.
471 2013-04-19  Richard Biener  <rguenther@suse.de>
473         PR tree-optimization/56982
474         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
475         function.
476         * gimplify.c (gimplify_call_expr): Notice special calls.
477         (gimplify_modify_expr): Likewise.
478         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
479         abnormal control flow receivers.
480         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
481         in the same way as cfun->has_nonlocal_labels.
482         (gimple_purge_dead_abnormal_call_edges): Likewise.
483         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
484         receivers start a basic-block.
486 2013-04-19  Richard Biener  <rguenther@suse.de>
488         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
489         member ...
490         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
491         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
492         (SLP_TREE_LOAD_PERMUTATION): Add.
493         (vect_transform_slp_perm_load): Adjust prototype.
494         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
495         (vect_free_slp_instance): Likewise.
496         (vect_create_new_slp_node): Likewise.
497         (vect_supported_slp_permutation_p): Remove.
498         (vect_slp_rearrange_stmts): Adjust.
499         (vect_supported_load_permutation_p): Likewise.  Inline
500         vect_supported_slp_permutation_p here.
501         (vect_analyze_slp_instance): Compute load permutations per
502         slp node instead of per instance.
503         (vect_get_slp_defs): Adjust.
504         (vect_transform_slp_perm_load): Likewise.
505         (vect_schedule_slp_instance): Remove redundant code.
506         (vect_schedule_slp): Remove hack for PR56270, add it ...
507         * tree-vect-stmts.c (vectorizable_load): ... here, do not
508         CSE loads for SLP.  Adjust.
510 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
512         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
513         spelling in two comments.
515 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
517         PR target/56797
518         * config/arm/arm.c (load_multiple_sequence): Require SP
519         as base register for loads if SP is in the register list.
521 2013-04-19  Martin Jambor  <mjambor@suse.cz>
523         PR tree-optimization/56718
524         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
525         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
526         and made public.  Adjusted all callers.
527         (ipa_intraprocedural_devirtualization): New function.
528         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
529         (ipa_intraprocedural_devirtualization): Likewise.
530         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
532 2013-04-19  Richard Biener  <rguenther@suse.de>
534         PR tree-optimization/57000
535         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
537 2013-04-19  Terry Guo  <terry.guo@arm.com>
539         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
540         Replace with ...
541         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
542         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
543         (cortex_m4_fmacs): Use new reservations.
544         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
546 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
548         PR rtl-optimization/56999
549         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
550         related code.
551         (lra_coalesce): Remove split_origin_bitmap and related code.
552         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
553         ranges if necessary.
555 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
557         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
558         New array.
559         (ix86_expand_call): Remove clobbered_registers array and use
560         x86_64_ms_sysv_extra_clobbered_registers instead.
561         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
562         Declare here.
563         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
564         predicate.
565         * config/i386/i386.md (*call_rex64_ms_sysv): Use
566         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
567         (*call_value_rex64_ms_sysv): Ditto.
569 2013-04-18  Cary Coutant  <ccoutant@google.com>
571         * dwarf2out.c (output_pubnames): Check die_perennial_p of
572         parent instead of die_mark.
574 2013-04-18  Diego Novillo  <dnovillo@google.com>
576         * gimple.c (create_gimple_tmp): New.
577         (get_expr_type): New.
578         (build_assign): New.
579         (build_type_cast): New.
580         * gimple.h (enum ssa_mode): Define.
581         (gimple_seq_set_location): New.
582         * asan.c (build_check_stmt): Change some gimple_build_* calls
583         to use build_assign and build_type_cast.
585 2013-04-18  Richard Biener  <rguenther@suse.de>
587         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
588         handle negative step.  Remove redundant checks.
589         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
590         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
591         for negative step and grouped loads fail to vectorize.
593 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
595         * emit-rtl.c (reset_insn_used_flags): New function.
596         (reset_all_used_flags): Use it.
597         (verify_insn_sharing): New function.
598         (verify_rtl_sharing): Fix verification for SEQUENCEs.
600 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
602         PR tree-optimization/56984
603         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
604         and (x >> M) >= N don't register any assertion if N << M is the
605         minimum value.
607 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
609         * lower-subreg.c (resolve_simple_move): If called self-recursive,
610         do not delete_insn insns that have not yet been emitted, only
611         unlink them with remove_insn.
612         * df-scan.c (df_insn_delete): Revert r197492.
614 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
616         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
617         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
619 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
621         * config/arm/arm.md (movsicc_insn): Convert define_insn into
622         define_insn_and_split.
623         (and_scc,ior_scc,negscc): Likewise.
624         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
626 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
628         * config/arm/arm.c (use_return_insn): Return 0 for targets that
629         can benefit from using a sequence of LDRD instructions in epilogue
630         instead of a single LDM instruction.
632 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
634         PR 45688
635         * doc/extend.texi: Fix typo.
637 2013-04-17  Richard Biener  <rguenther@suse.de>
639         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
640         (vect_build_slp_tree): ... here.
641         (vect_build_slp_tree_1): Compute which stmts of the SLP group
642         match.  Remove special-casing of mismatched complex loads.
643         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
644         re-try the match with swapped commutative operands.
645         (vect_supported_load_permutation_p): Remove special-casing of
646         mismatched complex loads.
647         (vect_analyze_slp_instance): Adjust.
649 2013-04-17  Richard Biener  <rguenther@suse.de>
651         PR rtl-optimization/56921
652         * cfgloop.h (struct loop): Add simple_loop_desc member.
653         (struct niter_desc): Mark with GTY(()).
654         (simple_loop_desc): Do not use aux field but simple_loop_desc.
655         * loop-iv.c (get_simple_loop_desc): Likewise.
656         (free_simple_loop_desc): Likewise.
658         Revert
659         2013-04-16  Richard Biener  <rguenther@suse.de>
661         PR rtl-optimization/56921
662         * loop-init.c (pass_rtl_move_loop_invariants): Add
663         TODO_do_not_ggc_collect to todo_flags_finish.
664         (pass_rtl_unswitch): Same.
665         (pass_rtl_unroll_and_peel_loops): Same.
666         (pass_rtl_doloop): Same.
668 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
670         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
671         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
672         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
673         references.
674         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
675         * tree-streamer.c (record_common_node): Adjust reference in comment.
677 2013-04-17  Terry Guo  <terry.guo@arm.com>
679         * config/arm/cortex-m4.md: Add a new bypass.
681 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
683         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
684         New pattern.
685         (*subs_<optab><mode>_multp2): New pattern.
686         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
687         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
689 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
691         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
692         (*subs_mul_imm_<mode>): New pattern.
694 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
696         PR target/56948
697         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
698         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
699         (vsx_movti_32bit): Change j->wa to O->wa.
701 2013-04-16  Richard Biener  <rguenther@suse.de>
703         PR rtl-optimization/56921
704         * loop-init.c (pass_rtl_move_loop_invariants): Add
705         TODO_do_not_ggc_collect to todo_flags_finish.
706         (pass_rtl_unswitch): Same.
707         (pass_rtl_unroll_and_peel_loops): Same.
708         (pass_rtl_doloop): Same.
710 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
712         * config/arm/arm.c (emit_multi_reg_push): New declaration
713         for an existing function.
714         (arm_emit_strd_push): New function.
715         (arm_expand_prologue): Used here.
716         (arm_emit_ldrd_pop): New function.
717         (arm_expand_epilogue): Used here.
718         (arm_get_frame_offsets): Update condition.
719         (arm_emit_multi_reg_pop): Add a special case for load of a single
720         register with writeback.
722 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
724         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
725         description.
727 2013-04-16  Richard Biener  <rguenther@suse.de>
729         PR tree-optimization/56756
730         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
731         (first_mem_ref_loc): New.
732         (execute_sm): Place the load temporarily before a previous
733         access instead of in the latch edge to ensure its SSA dependencies
734         are defined at points dominating the load.
736 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
738         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
739         correct fix by moving header and footer insn to the footer of
740         the merged basic block.  Clear BB_END of the merged-away block.
742         PR middle-end/43631
743         * emit-rtl.c (make_note_raw): New function.
744         (link_insn_into_chain): New static inline function.
745         (add_insn): Use it.
746         (add_insn_before, add_insn_after): Factor insn chain linking code...
747         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
748         using link_insn_into_chain.
749         (note_outside_basic_block_p): New helper function for emit_note_after
750         and emit_note_before.
751         (emit_note_after): Use nobb variant of add_insn_after if the note
752         should not be contained in a basic block.
753         (emit_note_before): Use nobb variant of add_insn_before if the note
754         should not be contained in a basic block.
755         (emit_note_copy): Use make_note_raw.
756         (emit_note): Likewise.
757         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
758         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
759         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
760         the moved barrier the tail of the basic block it follows.
761         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
763 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
765         PR tree-optimization/56962
766         * gimple-ssa-strength-reduction.c (record_increment): Only set
767         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
768         either rhs1 or rhs2 is equal to c->base_expr.
770 2013-04-15  Richard Biener  <rguenther@suse.de>
772         PR tree-optimization/56933
773         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
774         member.
775         (GROUP_READ_WRITE_DEPENDENCE): Remove.
776         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
777         * tree-vect-data-refs.c (vect_analyze_group_access): Move
778         dependence check ...
779         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
780         ... here.
781         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
782         GROUP_READ_WRITE_DEPENDENCE.
784 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
786         * emit-rtl.c (reset_all_used_flags): New function.
787         (verify_rtl_sharing): Call reset_all_used_flags before and after
788         performing the checks.
790 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
792         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
793         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
794         * config/arm/constraints.md (De): New constraint.
795         * config/arm/neon.md (anddi3_neon): Delete.
796         (neon_vand<mode>): Expand to standard anddi3 pattern.
797         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
798         Move earlier in the file.
799         (neon_inv_logic_op2): Likewise.
800         (arm_anddi_operand_neon): New predicate.
802 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
804         * configure.ac (gcc_cv_ld_as_needed): Set
805         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
806         Use -z ignore, -z record on *-*-solaris2*.
807         (HAVE_LD_AS_NEEDED): Update comment.
808         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
809         * configure: Regenerate.
810         * config.in: Regenerate.
811         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
812         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
813         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
814         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
815         equivalents.  Fix markup.
816         * doc/tm.texi: Regenerate.
818 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
820         * config/i386/i386.opt: New option mstack-protector-guard=.
821         * config/i386/i386-opts.h: Add enum stack_protector_guard.
822         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
823         TARGET_SSP_TLS_GUARD.
824         * config/i386/i386.c (ix86_option_override_internal): Set
825         ix86_stack_protector_guard.
826         * config/i386/i386.md (stack_protect_set): Enable for
827         TARGET_SSP_TLS_GUARD only.
828         (stack_protect_set_<mode>): Ditto.
829         (stack_protect_test): Ditto.
830         (stack_protect_test_<mode>): Ditto.
831         * doc/invoke.texi (i386 Option): Document.
833 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
835         PR target/56890
836         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
837         (S_MODES): Set H_MODE bit.
838         (SF_MODES): Set only S_MODE and SF_MODE bits.
839         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
840         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
841         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
842         <MODE_FLOAT>: Likewise.
844 2013-04-15  Joey Ye  <joey.ye@arm.com>
846         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
848 2013-04-15  Joey Ye  <joey.ye@arm.com>
850         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
851         for real far jump.
852         (thumb_far_jump_used_p): Count instruction size and set
853         far_jump_used.
855 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
857         * reorg.c (fill_simple_delay_slots): Reindent block of code.
858         * resource.c (mark_target_live_regs): Reformat conditional block.
860 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
862         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
863         notes, they are emitted only just before final.
864         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
866 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
868         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
869         * cfgrtl.c (delete_insn): Call it here instead.
870         * lra-spills.c (lra_final_code_change): Use delete_insn.
871         * haifa-sched.c (sched_remove_insn): Likewise.
872         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
873         returning to the nop pool.
874         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
875         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
877 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
879         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
880         * doc/tm.texi: Regenerated.
882 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
884         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
885         QImode checks.
887 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
889         * df-core.c (df_find_def): Compare register numbers.
890         (df_find_use): Likewise.
892 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
894         PR target/56903
895         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
896         lra_in_progress for return.
898 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
900         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
901         define_insn into define_insn_and_split and emit movsicc patterns.
903 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
905         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
907 2013-04-12  Richard Biener  <rguenther@suse.de>
909         * tree-pass.h (TODO_do_not_ggc_collect): New.
910         * passes.c (execute_one_ipa_transform_pass): Honor
911         TODO_do_not_ggc_collect.
912         (execute_one_pass): Likewise.
914         Revert
915         2013-04-10  Richard Biener  <rguenther@suse.de>
917         * passes.c (init_optimization_passes): Remove reload pass.
918         * ira.c (do_reload): Merge into ...
919         (ira): ... this.
920         (rest_of_handle_reload): Remove.
921         (pass_reload): Likewise.
922         * config/i386/i386.c (ix86_option_override): Refer to ira instead
923         of reload for vzeroupper pass placement.
925 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
927         PR tree-optimization/56918
928         PR tree-optimization/56920
929         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
930         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
931         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
932         use wide_mul_with_sign method.
934 2013-04-12  Richard Biener  <rguenther@suse.de>
936         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
937         not be considered a gimple constant.
939 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
941         * fold-const.c (const_binop): Handle vector shifts by a scalar.
942         (fold_binary_loc): Call const_binop also for mixed vector-scalar
943         operations.
945 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
946             Jakub Jelinek  <jakub@redhat.com>
948         * opts.c: Include diagnostic-color.h.
949         (common_handle_option): Handle OPT_fdiagnostics_color_.
950         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
951         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
952         (diagnostic-color.o): New.
953         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
954         (diagnostic_color_rule): New enum.
955         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
956         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
957         the location string.
958         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
959         either NULL, or color kind.
960         * diagnostic-color.c: New file.
961         * diagnostic-color.h: New file.
962         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
963         arguments.
964         * doc/invoke.texi (-fdiagnostics-color): Document.
965         * pretty-print.h (pp_show_color): Define.
966         (struct pretty_print_info): Add show_color field.
967         * diagnostic.c: Include diagnostic-color.h.
968         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
969         macros.  Colorize error:, warning: etc. strings and also the location
970         string.
971         (diagnostic_show_locus): Colorize the caret line.
972         * pretty-print.c: Include diagnostic-color.h.
973         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
974         inside of %< %> quotes or quoted through q format modifier.
976 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
978         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
980 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
982         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
983         code in CC_NZ mode.
984         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
985         pattern.
987 2013-04-11  Marek Polacek  <polacek@redhat.com>
989         PR tree-optimization/48184
990         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
992 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
994         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
995         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
996         (skip_simple_arithmetic): Tidy up.
997         * tree.h (skip_simple_constant_arithmetic): Declare.
999 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
1001         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
1003 2013-04-11  Richard Biener  <rguenther@suse.de>
1005         * tree-vect-loop.c (get_initial_def_for_induction): Properly
1006         generate vector constants.
1008 2013-04-11  Richard Biener  <rguenther@suse.de>
1010         PR tree-optimization/56878
1011         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
1012         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
1013         New function.
1014         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1015         Prefer to align the DR with the most invariant base address.
1017 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1019         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
1020         comment.
1022 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
1024         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
1025         floating-point vector comparisons against 0.
1027 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
1029         PR tree-optimization/56899
1030         * fold-const.c (extract_muldiv_1): Apply distributive law
1031         only if TYPE_OVERFLOW_WRAPS (ctype).
1033 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
1035         PR target/56124
1036         * ira-costs.c (scan_one_insn): Check whether the source rtx of
1037         loading has side effect.
1039 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
1041         * config/sparc/sparc.c: Include tree-pass.h.
1042         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
1043         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
1044         head of file.  Change return type.  Split off gate function.
1045         (sparc_gate_work_around_errata): New function.
1046         (pass_work_around_errata): New pass definition.
1047         (insert_pass_work_around_errata) New pass insert definition to
1048         insert pass_work_around_errata just after delayed-branch scheduling.
1049         (sparc_option_override): Insert the pass.
1050         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
1052 2013-04-10  David S. Miller  <davem@davemloft.net>
1054         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
1055         or -mcpu=hypersparc.
1057         * target.def (cstore_mode): New hook.
1058         * target.h: Include insn-codes.h
1059         * targhooks.c: Likewise.
1060         (default_cstore_mode): New function.
1061         * targhooks.h: Declare it.
1062         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
1063         * doc/tm.texi: Rebuild.
1064         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
1065         target hook, rather than inspecting the insn_data.
1066         * config/sparc/sparc.c (sparc_cstore_mode): New function.
1067         (TARGET_CSTORE_MODE): Redefine.
1068         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
1069         result patterns.
1070         * config/sparc/predicates.md (cstore_result_operand): New special
1071         predicate.
1072         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
1073         Use it for operand 0.
1074         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
1075         (*snesi_special): Likewise.
1076         (*snesi_zero): Likewise.
1077         (*seqsi_zero): Likewise.
1078         (*sltu_insn): Likewise.
1079         (*sgeu_insn): Likewise.
1080         (*seqdi_special): Make operand 0 and comparison operation be of
1081         DImode.
1082         (*snedi_special): Likewise.
1083         (*snedi_special_vis3): Likewise.
1084         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
1085         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
1086         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
1087         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
1088         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
1089         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
1090         (*sltu_extend_sp64): Likewise.
1091         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
1092         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
1093         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
1094         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
1095         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
1097 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
1099         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
1100         (aarch64_start_file): Use the new function.
1102 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1103             Jason Merrill  <jason@redhat.com>
1105         * common.opt: Add -gdwarf.
1106         * opts.c (common_handle_option): Handle it.
1107         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
1109 2013-04-10  Richard Biener  <rguenther@suse.de>
1111         * passes.c (execute_todo): Do not call ggc_collect conditional here.
1112         (execute_one_ipa_transform_pass): But unconditionally here.
1113         (execute_one_pass): And here.
1114         (init_optimization_passes): Remove reload pass.
1115         * tree-pass.h (TODO_ggc_collect): Remove.
1116         (pass_reload): Likewise.
1117         * ira.c (do_reload): Merge into ...
1118         (ira): ... this.
1119         (rest_of_handle_reload): Remove.
1120         (pass_reload): Likewise.
1121         * config/i386/i386.c (ix86_option_override): Refer to ira instead
1122         of reload for vzeroupper pass placement.
1123         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
1124         and todo_flags_finish of all passes.
1126 2013-04-10  Richard Biener  <rguenther@suse.de>
1128         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
1129         first_const_oprnd field, rename first_def_type to first_op_type.
1130         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
1131         (vect_get_and_check_slp_defs): Always use the type of the
1132         operand.  Allow mixed vect_external_def, vect_constant_def types.
1133         (vect_get_constant_vectors): Handle mixed vect_external_def,
1134         vect_constant_def types.
1136 2013-04-10  Joern Rennecke <joern.rennecke@embecosm.com>
1138         PR tree-optimization/55524
1139         * tree-ssa-math-opts.c
1140         (convert_mult_to_fma): Don't use an fms construct
1141         when we don't have an fms operation, but fnma, and it looks
1142         likely that we'll be able to use the latter.
1144 2013-04-10  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
1146         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
1147         function.
1148         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
1149         inline fail caused by overwritable functions.
1151 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
1153         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
1154         unnecessary bits in the constant power of two case.
1156 2013-04-10  Richard Biener  <rguenther@suse.de>
1158         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
1159         broken code swapping operands.
1160         (vect_build_slp_tree): Do not compute load permutations here.
1161         (vect_analyze_slp_instance): Compute load permutations here,
1162         after building the SLP tree.
1164 2013-04-09  Christian Bruel  <christian.bruel@st.com>
1166         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
1167         of next/prev_real_insn.
1169 2013-04-09  Jan Hubicka  <jh@suse.cz>
1171         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
1172         Drop aliased parameter.
1173         (function_and_variable_visibility): Do not handle alias pairs.
1174         * cgraph.c (varpool_externally_visible_p): Update prototype.
1175         * varpool.c (varpool_add_new_variable): Update.
1177 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1179         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
1181 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
1183         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
1185         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
1187 2013-04-09  Marek Polacek  <polacek@redhat.com>
1189         PR tree-optimization/48762
1190         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
1192 2013-04-09  Richard Biener  <rguenther@suse.de>
1194         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
1195         dealing with cost.
1196         (vect_build_slp_tree): Likewise.
1197         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
1198         calculating the cost of a SLP instance.
1199         (vect_analyze_slp_instance): Use it from here, after building
1200         the SLP tree.
1202 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
1204         PR middle-end/56883
1205         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
1206         expand_omp_for_static_chunk): Use simple_p = true in
1207         force_gimple_operand_gsi calls when assigning to addressable decls.
1209 2013-04-09  Jeff Law  <law@redhat.com>
1211         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
1212         when the boolean was created by converting a wider object which
1213         had a boolean range.
1215 2013-04-09  Richard Biener  <rguenther@suse.de>
1217         * tree-vectorizer.h (slp_void_p): Remove.
1218         (slp_tree): Typedef before _slp_tree declaration.
1219         (struct _slp_tree): Use a vector of slp_tree as children.
1220         (vect_get_place_in_interleaving_chain): Remove.
1221         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
1222         Move ...
1223         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
1224         and make static.
1225         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
1226         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
1227         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
1228         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
1229         Use slp_node instead of slp_void_p and adjust.
1231 2013-04-09  Richard Biener  <rguenther@suse.de>
1233         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
1234         work that is not necessary.
1236 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
1238         PR tree-optimization/56854
1239         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
1240         forward into clobber stmts if it would change MEM_REF lhs into
1241         non-MEM_REF.
1243 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
1245         * tree.c (type_hash_lookup, type_hash_add): Make static.
1246         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
1248 2013-04-09  Richard Biener  <rguenther@suse.de>
1250         * tree.h (unsave_expr_now): Remove.
1251         * tree-inline.c (mark_local_for_remap_r): Remove.
1252         (unsave_expr_1): Likewise.
1253         (unsave_r): Likewise.
1254         (unsave_expr_now): Likewise.
1255         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
1256         (propagate_tree_value): Likewise.
1258 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
1260         * doc/rtl.texi (sequence): Rewrite documentation to match the
1261         current use of SEQUENCE rtl objects.
1262         * rtl.def (SEQUENCE): Likewise.
1264         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
1265         Update documentation.
1266         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
1267         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
1269         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
1271 2013-04-08  Teresa Johnson  <tejohnson@google.com>
1273         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
1274         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
1275         methods.
1276         (estimate_edge_size_and_time): Add comment to suggest using rounding
1277         methods.
1278         (estimate_node_size_and_time): Ditto.
1279         (remap_edge_change_prob): Use helper rounding divide methods.
1280         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
1281         (gimple_mod_pow2_value_transform): Ditto.
1282         (gimple_mod_subtract_transform): Ditto.
1283         (gimple_ic_transform): Ditto.
1284         (gimple_stringops_transform): Ditto.
1285         * stmt.c (conditional_probability): Ditto.
1286         (emit_case_dispatch_table): Ditto.
1287         * lto-cgraph.c (merge_profile_summaries): Ditto.
1288         * tree-optimize.c (execute_fixup_cfg): Ditto.
1289         * cfgcleanup.c (try_forward_edges): Ditto.
1290         * cfgloopmanip.c (scale_loop_profile): Ditto.
1291         (loopify): Ditto.
1292         (duplicate_loop_to_header_edge): Ditto.
1293         (lv_adjust_loop_entry_edge): Ditto.
1294         * tree-vect-loop.c (vect_transform_loop): Ditto.
1295         * profile.c (compute_branch_probabilities): Ditto.
1296         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
1297         * lto-streamer-in.c (input_cfg): Ditto.
1298         * gimple-streamer-in.c (input_bb): Ditto.
1299         * ipa-cp.c (update_profiling_info): Ditto.
1300         (update_specialized_profile): Ditto.
1301         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
1302         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
1303         rounding methods.
1304         * sched-rgn.c (compute_dom_prob_ps): Ditto.
1305         (compute_trg_info): Ditto.
1306         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
1307         (purge_dead_edges): Ditto.
1308         * loop-unswitch.c (unswitch_loop): Ditto.
1309         * cgraphclones.c (cgraph_clone_edge): Ditto.
1310         (cgraph_clone_node): Ditto.
1311         * tree-inline.c (copy_bb): Ditto.
1312         (copy_edges_for_bb): Ditto.
1313         (initialize_cfun): Ditto.
1314         (copy_cfg_body): Ditto.
1315         (expand_call_inline): Ditto.
1317 2013-04-08  Kai Tietz  <ktietz@redhat.com>
1319         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
1320         TARGET_CYGWIN64 by TARGET_64BIT.
1322 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
1324         * config/epiphany/epiphany.md (GPR_1): New constant.
1325         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
1326         * config/epiphany/epiphany.c (gen_compare_reg):
1327         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
1328         is already in place.
1329         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
1330         Don't require being called during rtl expansion; If y operlaps r0,
1331         return 0.
1332         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
1333         (epiphany_expand_epilogue): Likewise.
1335         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
1336         Don't use CC_FPmode for ORDERED / UNORDERED.
1337         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
1339         * config/epiphany/constraints.md (CnL): New constraint.
1340         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
1341         * config/epiphany/predicates.md (add_operand): Allow 1024.
1343         * config/epiphany/epiphany.md (logical_op): New code iterator.
1344         (op_mnc): New code attribute.
1345         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
1346         (mov_f+1, mov_f+2): New peephole2 patterns.
1348         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
1349         (cstoresi4): Also allow re-use of zero result when doing a NE
1350         comparison to a non-zero operand.
1351         Use (clobber (scratch)) for first insn if the gpr output is not needed.
1353         * config/epiphany/epiphany.md (<insn_opname>v2si3):
1354         Use gen_addsi3_i / gen_subsi3_i.
1356 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
1358         PR c++/34949
1359         PR c++/50243
1360         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
1361         contain anything but clobbers, at most one __builtin_stack_restore,
1362         optionally debug stmts and final resx, and if it has at least one
1363         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
1364         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
1365         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
1366         which isn't defaut definition, remove them.
1367         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
1368         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
1369         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
1370         with MEM_REF LHS with SSA_NAME address.
1372 2013-04-08  Jeff Law  <law@redhat.com>
1374         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
1376 2013-04-08  Richard Biener  <rguenther@suse.de>
1378         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
1379         extra newline.
1380         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
1381         determined vector type.
1382         (vect_analyze_data_refs): Likewise.
1383         (vect_get_new_vect_var): Adjust.
1384         (vect_create_destination_var): Preserve SSA name versions.
1385         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
1386         not dump anything here.
1388 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
1390         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
1391         Add member lr_slot_known.
1392         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
1393         if necessary.
1394         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
1395         Remove code that sets lr_slot_offset according to what a previous
1396         version of epiphany_emit_save_restore used to do.
1397         (epiphany_emit_save_restore): When doing an lr save or restore,
1398         set/verify lr_slot_known and lr_slot_offset.
1400 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
1402         PR target/54338
1403         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
1404         in ALL_REGS.
1406 2013-04-08  Richard Biener  <rguenther@suse.de>
1408         * alias.c (find_base_term): Fix thinko in previous change.
1410 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
1412         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
1413         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
1414         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
1415         if possible to compute val.
1416         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
1417         For QImode integers don't require anything about precision.  Use
1418         const_with_all_bytes_same to find out if the constant doesn't have
1419         repeated bytes in it.
1421 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1423         * config/s390/s390.c (s390_expand_insv): Only accept insertions
1424         within mode size.
1426 2013-04-08  Marek Polacek  <polacek@redhat.com>
1428         PR rtl-optimization/48182
1429         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
1430         value to 1.
1432 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1434         PR target/55487
1435         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
1436         nuses, make sure we have a label.
1438 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1440         PR target/56843
1441         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
1442         (rs6000_emit_swdiv_low_precision): Remove.
1443         (rs6000_emit_swdiv): Rewrite to handle between one and four
1444         iterations of Newton-Raphson generally; modify required number of
1445         iterations for some cases.
1446         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
1448 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
1450         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
1451         set-but-unused variable.
1453         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
1454         basic blocks of released function bodies garbage-collectable.
1456         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
1457         (struct rtl_opt_pass): Add TODO_df_finish.
1459         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
1461 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
1463         * config/arm/constraints.md (q): New constraint.
1464         * config/arm/ldrdstrd.md: New file.
1465         * config/arm/arm.md (ldrdstrd.md) New include.
1466         (arm_movdi): Use "q" instead of "r" constraint
1467         for double-word memory access.
1468         (movdf_soft_insn): Likewise.
1469         * config/arm/vfp.md (movdi_vfp): Likewise.
1470         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
1471         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
1472         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
1473         (mem_ok_for_ldrd_strd): Likewise.
1474         (output_move_double): Update assertion.
1476 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
1478         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
1480 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
1482         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
1483         define_insn_and_split.
1484         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
1486 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
1488         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
1489         define_insn_and_split.
1490         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
1491         (shiftsi3_compare): New pattern.
1492         (rrx): New pattern.
1493         * config/arm/unspecs.md (UNSPEC_RRX): New.
1495 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
1497         * config/arm/arm.md (negdi_extendsidi): New pattern.
1498         (negdi_zero_extendsidi): Likewise.
1500 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
1502         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
1503         define_insn_and_split.
1504         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
1505         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
1507 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
1509         * config/arm/arm.md (arm_subdi3): Convert define_insn into
1510         define_insn_and_split.
1511         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
1512         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
1514 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
1516         * config/arm/arm.md (subsi3_carryin): New pattern.
1517         (subsi3_carryin_const): Likewise.
1518         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
1519         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
1521 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
1523         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
1525 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
1527         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
1528         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
1530 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1532         * config/arm/arm.c (arm_expand_builtin): Change fcode
1533         type to unsigned int.
1535 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1537         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
1539 2013-04-04  Ian Lance Taylor  <iant@google.com>
1541         * doc/standards.texi (Standards): The Go frontend supports the Go 1
1542         language standard.
1544 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
1546         PR middle-end/56729
1547         * df-scan.c (df_insn_delete): Disable failing assert.
1549 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1551         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
1552         New function prototype.
1553         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
1554         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
1555         (arm_builtin_vectorized_function): New function.
1557 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1559         * config/arm/arm_neon_builtins.def: New file.
1560         * config/arm/arm.c (neon_builtin_data): Move contents to
1561         arm_neon_builtins.def.
1562         (enum arm_builtins): Include neon builtin definitions.
1563         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
1564         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
1566 2013-04-04  Marek Polacek  <polacek@redhat.com>
1568         PR tree-optimization/48186
1569         * predict.c (maybe_hot_frequency_p): Return false if
1570         HOT_BB_FREQUENCY_FRACTION is 0.
1571         (cgraph_maybe_hot_edge_p): Likewise.
1573 2013-04-04  Richard Biener  <rguenther@suse.de>
1575         PR tree-optimization/56826
1576         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
1577         more accurately.
1579 2013-04-04  Richard Biener  <rguenther@suse.de>
1581         PR tree-optimization/56213
1582         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
1583         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
1585 2013-04-04  Richard Biener  <rguenther@suse.de>
1587         PR tree-optimization/56837
1588         * tree-loop-distribution.c (classify_partition): For non-zero
1589         values require that the value has the same precision as its
1590         mode to be useful as memset value.
1592 2013-04-03  Nick Clifton  <nickc@redhat.com>
1594         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
1595         (fmssf4): Use fmsf.s on E3V5 architectures.
1596         (fnmasf4): Use fnmaf.s on E3V5 architectures.
1597         (fnmssf4): Use fnmsf.s on E3V5 architectures.
1599 2013-04-03  Jeff Law  <law@redhat.com>
1601         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
1602         (lra-eliminations.o): Likewise.
1604 2013-04-03  Teresa Johnson  <tejohnson@google.com>
1606         * gcov-io.c (compute_working_sets): Moved most of body of old
1607         compute_working_sets here from profile.c.
1608         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
1609         (gcov_working_set_t): Moved typedef here from basic-block.h
1610         (compute_working_set): Declare.
1611         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
1612         (get_working_sets): Renamed from compute_working_set,
1613         replace most of body with call to new compute_working_sets.
1614         (get_exec_counts): Replace call to compute_working_sets
1615         to get_working_sets.
1616         * profile.h (get_working_sets): Renamed from compute_working_set.
1617         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
1618         to get_working_sets.
1619         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
1620         * gcov-dump.c (dump_working_sets): New function.
1622 2013-04-03  Kenneth Zadeck <zadeck@naturalbridge.com>
1624         * hwint.c (sext_hwi, zext_hwi): New functions.
1625         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
1626         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
1627         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
1628         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
1629         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
1630         (sext_hwi, zext_hwi): New functions.
1632 2013-04-03  Jeff Law  <law@redhat.com>
1634         PR tree-optimization/56799
1635         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
1636         back test for widening conversion erroneously dropped in prior change.
1638 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1640         PR target/56809
1641         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
1642         instead of next_real_insn.
1644 2013-04-03  Marek Polacek  <polacek@redhat.com>
1646         PR sanitizer/55702
1647         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
1649 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1651         PR target/56809
1652         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
1653         next_real_insn.
1654         (thumb1_output_casesi): Likewise.
1655         (thumb2_output_casesi): Likewise.
1657 2013-04-03  Richard Biener  <rguenther@suse.de>
1659         PR tree-optimization/56817
1660         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
1661         Split out ...
1662         (tree_unroll_loops_completely_1): ... new function to manually
1663         walk the loop tree, properly defering outer loops of unrolled
1664         loops to later iterations.
1666 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
1668         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
1669         (vectorizable_load): Likewise.
1670         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
1671         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
1673 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
1675         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
1676         BIT_FIELD_REF.
1678 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1680         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
1682 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
1684         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
1686 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
1688         PR tree-optimization/56790
1689         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
1690         folding.
1692 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
1694         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
1695         Handle VEC_MERGE.
1696         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
1697         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
1698         equal arguments.
1700 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
1702         PR c/19449
1703         * tree.h (force_folding_builtin_constant_p): New decl.
1704         * builtins.c (force_folding_builtin_constant_p): New variable.
1705         (fold_builtin_constant_p): Fold immediately also if
1706         force_folding_builtin_constant_p.
1708 2013-04-03  Richard Biener  <rguenther@suse.de>
1710         PR tree-optimization/56812
1711         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
1712         DRs of the same interleaving chain are independent.
1714 2013-04-02  Jason Merrill  <jason@redhat.com>
1716         * gdbinit.in (pbb): Use debug fn.
1718 2013-04-02  Lawrence Crowl  <crowl@google.com>
1720         * sese.h (struct ivtype_map_elt_s): Remove unused.
1721         (extern debug_ivtype_map): Remove unused.
1722         (extern eq_ivtype_map_elts): Remove unused.
1723         * sese.c (debug_ivtype_map): Removed unused.
1724         (debug_ivtype_map_1): Removed unused.
1725         (debug_ivtype_elt): Remove unused.
1726         (eq_ivtype_map_elts): Remove unused.
1729 2013-04-02  Kai Tietz  <ktietz@redhat.com>
1731         PR target/52790
1732         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
1733         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
1734         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
1735         function.
1736         (legitimize_pe_coff_symbol): Likewise.
1737         (is_imported_p): New helper-function.
1738         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
1739         for Windows x64 targets.
1740         (ix86_expand_prologue): Optimize for pe-coff targets.
1741         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
1742         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
1743         medium/large code-model.
1744         (legitimize_pic_address): Likewise.
1745         (legitimize_tls_address): Likewise.
1746         (ix86_expand_call): Likewise.
1747         (x86_output_mi_thunk): Likewise.
1748         (get_dllimport_decl): Add new beimport argument.
1749         (construct_plt_address): Don't assert for x64 pe-coff targets.
1750         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
1751         targets.
1752         (SYMBOL_FLAG_STUBVAR): New macro.
1753         (SYMBOL_REF_STUBVAR_P): Likewise.
1754         * config/i386/winnt.c (stub_list): New structure.
1755         (stub_head): New local variable.
1756         (i386_pe_record_stub): New function.
1757         (i386_pe_file_end): Emit refptr-stubs.
1759 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
1761         PR rtl-optimization/56745
1762         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
1763         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
1765         PR c++/34949
1766         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
1767         and both of them are MEM_REFs, just compare first argument for
1768         equality and attempt to deal even with differing offsets.
1770         PR c++/34949
1771         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
1772         of gimple_clobber_p to be MEM_REF.
1773         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
1774         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
1775         after gimplification.
1776         * asan.c (get_mem_ref_of_assignment): Don't instrument
1777         gimple_clobber_p stmts.
1778         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
1779         gimple_clobber_p stmt if they have MEM_REF lhs and
1780         are dead because of another gimple_clobber_p stmt.
1781         * tree-ssa-live.c (clear_unused_block_pointer): Treat
1782         gimple_clobber_p stmts like debug stmts.
1783         (remove_unused_locals): Remove clobbers with MEM_REF lhs
1784         that refer to unused VAR_DECLs or uninitialized values.
1785         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
1786         gimple_clobber_p stmts if they refer to removed parameters.
1787         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
1788         formatting.
1790 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
1792         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
1793         using SWI48 mode attribute.
1795 2013-04-02  Wei Mi  <wmi@google.com>
1797         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
1798         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
1799         *<rotate_insn><mode>3_mask in i386.md.
1801 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1803         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
1805 2013-04-02  Richard Biener  <rguenther@suse.de>
1807         PR tree-optimization/56778
1808         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
1809         Runtime alias tests are not supported for gather loads.
1810         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
1811         stmts referenced from SSA operands before updating SSA form.
1813 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
1814             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1816         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
1817         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
1818         * config/arm/cortex-a53.md: New file.
1819         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
1820         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
1821         * config/arm/arm.c (arm_issue_rate): Likewise.
1822         * config/arm/arm-tune.md: Regenerate
1823         * config/arm/arm-tables.opt: Regenerate.
1824         * config/arm/arm-cores.def: Add cortex-a53.
1826 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
1828         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
1829         non-static link.
1831 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
1833         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
1834         scalar load/store operations using B/H registers.
1835         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
1837 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
1839         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
1840         scalar move.
1841         * config/aarch64/aarch64.c
1842         (aarch64_simd_scalar_immediate_valid_for_move): New.
1843         * config/aarch64/aarch64-protos.h
1844         (aarch64_simd_scalar_immediate_valid_for_move): New.
1845         * config/aarch64/constraints.md (Dh, Dq): New.
1846         * config/aarch64/iterators.md (hq): New.
1848 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
1850         * reorg.c (get_branch_condition): Deal with conditional returns.
1851         (fill_simple_delay_slots): Remove dead code dealing with jumps.
1853 2013-04-01  Wei Mi  <wmi@google.com>
1855         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
1856         Truncate operand 2 using %b asm operand modifier.
1857         (*<shift_insn><mode>3_mask): Ditto.
1858         (*<rotate_insn><mode>3_mask): Ditto.
1860 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
1862         PR middle-end/56798
1863         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
1865 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
1867         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
1868         of next_real_insn.
1869         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
1871 2013-03-30  Lawrence Crowl  <crowl@google.com>
1873         * dse.c (clear_alias_sets): Remove never set.
1874         (disqualified_clear_alias_sets): Remove never set.
1875         (clear_alias_mode_pool): Remove never set.
1876         (dse_step0): Remove condition that is never true.
1877         (canon_address): Remove condition that is never true.
1878         (dse_step7): Remove condition that is never true.
1879         (rest_of_handle_dse): Remove condition that is never true.
1880         (rest_of_handle_dse::did_global): Remove never read from above.
1881         (dse_step2_spill): Remove never called from above.
1882         (dse_step5_spill): Remove never called from above.
1884 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
1886         * doc/md.texi (Standard Names) <casesi>: Update documentation for
1887         JUMP_TABLE_DATA changes.
1888         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
1889         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
1890         (Insns) <jump_table_data>: New entry.
1891         * doc/tm.texi: Regenerate.
1893         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
1895         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
1896         for table jump at the end of a basic block using tablejump_p.
1897         * targhooks.c (default_invalid_within_doloop): Likewise.
1898         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
1899         target hook implementation that is identical to the default hook.
1900         (rs6000_invalid_within_doloop): Remove.
1902         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
1903         unused variable from tablejump_p call.
1905         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
1906         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
1907         (INSN_DELETED_P): Likewise.
1908         (emit_jump_table_data): New prototype.
1909         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
1910         after 4th as unused.
1911         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
1912         * sched-vis.c (print_insn): Likewise.
1913         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
1914         insn for compatibility with back ends that use next_active_insn to
1915         identify jump table data.
1916         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
1917         (remove_insn): Likewise.
1918         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
1919         to be emitted.
1920         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
1921         (emit_jump_table_data): New function.
1923         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
1924         basic block, a JUMP_TABLE_DATA never is.
1925         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
1926         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
1927         off from code handling real insns.
1928         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
1929         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
1930         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
1931         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
1932         is not a NONDEBUG_INSN_P.
1933         * ira-costs.c (scan_one_insn): Likewise.
1934         * jump.c (mark_all_labels): Likewise.
1935         (mark_jump_label_1): Likewise.
1936         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
1937         * lra.c (get_insn_freq): Expect all insns reaching here to be in
1938         a basic block.
1939         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
1940         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
1941         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
1942         JUMP_TABLE_DATA_P insns.
1943         (calculate_elim_costs_all_insns): Likewise.
1944         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
1945         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
1946         (delete_output_reload): Code style fixups.
1947         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
1948         insn flags on this non-insn.
1949         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
1950         as scheduling barriers, for pre-change compatibility.
1951         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
1952         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
1954         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
1955         redundant JUMP_TABLE_DATA_P test.
1956         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
1957         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
1958         (frv_for_each_packet): Likewise.
1959         * config/i386/i386.c (min_insn_size): Likewise.
1960         (ix86_avoid_jump_mispredicts): Likewise.
1961         * config/m32r/m32r.c (m32r_is_insn): Likewise.
1962         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
1963         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
1964         (mips16_insn_length): Robustify.
1965         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
1966         (mips16_split_long_branches): Likewise.
1967         * config/pa/pa.c (pa_combine_instructions): Likewise.
1968         * config/rs6000/rs6000.c (get_next_active_insn): Treat
1969         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
1970         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
1971         as contributing to pool range lengths.
1972         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
1973         Remove redundant JUMP_TABLE_DATA_P test.
1974         (sh_loop_align): Likewise.
1975         (split_branches): Likewise.
1976         (sh_insn_length_adjustment): Likewise.
1977         * config/spu/spu.c (get_branch_target): Likewise.
1979 2013-03-29  Jan Hubicka  <jh@suse.cz>
1981         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
1982         gcov streaming; stream hot bb threshold to ltrans.
1983         * predict.c (get_hot_bb_threshold): Break out from ....
1984         (maybe_hot_count_p): ... here.
1985         (set_hot_bb_threshold): New function.
1986         * lto-section-in.c (lto_section_name): Add profile.
1987         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
1988         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
1989         and data-streamer.h
1990         (histogram_entry): New structure.
1991         (histogram, histogram_pool): New global vars.
1992         (histogram_hash): New structure.
1993         (histogram_hash::hash): New method.
1994         (histogram_hash::equal): Likewise.
1995         (account_time_size): New function.
1996         (cmp_counts): New function.
1997         (dump_histogram): New function.
1998         (ipa_profile_generate_summary): New function.
1999         (ipa_profile_write_summary): New function.
2000         (ipa_profile_read_summary): New function.
2001         (ipa_profile): Decide on threshold.
2002         (pass_ipa_profile): Add ipa_profile_write_summary and
2003         ipa_profile_read_summary.
2004         * Makefile.in (ipa.o): Update dependencies.
2005         * lto-streamer.h (LTO_section_ipa_profile): New section.
2007 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2009         * tree.h (VAR_P): New.
2011 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
2013         PR lto/56777
2014         * doc/invoke.texi ([-fwhole-program]): Fix typo.
2016 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
2018         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
2019         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
2020         (control_flow_insn_p): Likewise.
2021         * cfgrtl.c (duplicate_insn_chain): Likewise.
2022         * final.c (get_attr_length_1): Likewise.
2023         (shorten_branches): Likewise.
2024         (final_scan_insn): Likewise.
2025         * function.c (instantiate_virtual_regs): Likewise.
2026         * gcse.c (insert_insn_end_basic_block): Likewise.
2027         * ira-costs.c (scan_one_insn): Likewise.
2028         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
2029         * lra.c (check_rtl): Likewise.
2030         * reload1.c (elimination_costs_in_insn): Likewise.
2031         * reorg.c (follow_jumps): Likewise.
2033         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
2034         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
2035         (thumb_far_jump_used_p): Likewise.
2036         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
2037         (workaround_speculation): Likewise.
2038         (add_sched_insns_for_speculation): Likewise.
2039         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
2040         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
2041         (frv_for_each_packet): Likewise.
2042         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
2043         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
2044         (final_emit_insn_group_barriers): Likewise.
2045         * config/m32r/m32r.c (m32r_is_insn): Likewise.
2046         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
2047         (mips16_insn_length): Likewise.
2048         * config/pa/pa.c (pa_reorg): Likewise.
2049         (pa_combine_instructions): Likewise.
2050         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
2051         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
2052         (sh_reorg): Likewise.
2053         (split_branches): Likewise.
2054         * config/spu/spu.c (get_branch_target): Likewise.
2056         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
2057         JUMP_TABLE_DATA_P.
2059 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
2061         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
2062         Fix declaration name.
2064 2013-03-28  Lawrence Crowl  <crowl@google.com>
2066         * graphds.h (struct graph.indicies): Remove unused.
2067         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
2068         (SCOP_ORIGINAL_PDDRS): Remove unused.
2069         * sese.h (extern insert_loop_close_phis): Removed unused.
2070         (extern insert_guard_phis): Removed unused.
2071         (extern ivtype_map_elt_info): Removed unused.
2072         (new_ivtype_map_elt): Removed unused.
2073         * sese.c (ivtype_map_elt_info): Removed unused.
2075 2013-03-28  Lawrence Crowl  <crowl@google.com>
2077         * Makefile.in: Add several missing include dependences.
2078         (DUMPFILE_H): New.
2079         (test-dump.o): New.  This object is not added to any executable,
2080         but is present for ad-hoc testing.
2081         * bitmap.c
2082         (debug (const bitmap_head_def &)): New.
2083         (debug (const bitmap_head_def *)): New.
2084         * bitmap.h
2085         (extern debug (const bitmap_head_def &)): New.
2086         (extern debug (const bitmap_head_def *)): New.
2087         * cfg.c
2088         (debug (edge_def &)): New.
2089         (debug (edge_def *)): New.
2090         * cfghooks.c
2091         (debug (basic_block_def &)): New.
2092         (debug (basic_block_def *)): New.
2093         * dumpfile.h
2094         (dump_node (const_tree, int, FILE *)): Correct source file.
2095         * dwarf2out.c
2096         (debug (die_struct &)): New.
2097         (debug (die_struct *)): New.
2098         * dwarf2out.h
2099         (extern debug (die_struct &)): New.
2100         (extern debug (die_struct *)): New.
2101         * gimple-pretty-print.c
2102         (debug (gimple_statement_d &)): New.
2103         (debug (gimple_statement_d *)): New.
2104         * gimple-pretty-print.h
2105         (extern debug (gimple_statement_d &)): New.
2106         (extern debug (gimple_statement_d *)): New.
2107         * ira-build.c
2108         (debug (ira_allocno_copy &)): New.
2109         (debug (ira_allocno_copy *)): New.
2110         (debug (ira_allocno &)): New.
2111         (debug (ira_allocno *)): New.
2112         * ira-int.h
2113         (extern debug (ira_allocno_copy &)): New.
2114         (extern debug (ira_allocno_copy *)): New.
2115         (extern debug (ira_allocno &)): New.
2116         (extern debug (ira_allocno *)): New.
2117         * ira-lives.c
2118         (debug (live_range &)): New.
2119         (debug (live_range *)): New.
2120         * lra-int.h
2121         (debug (lra_live_range &)): New.
2122         (debug (lra_live_range *)): New.
2123         * lra-lives.c
2124         (debug (lra_live_range &)): New.
2125         (debug (lra_live_range *)): New.
2126         * omega.c
2127         (debug (omega_pb_d &)): New.
2128         (debug (omega_pb_d *)): New.
2129         * omega.h
2130         (extern debug (omega_pb_d &)): New.
2131         (extern debug (omega_pb_d *)): New.
2132         * print-rtl.c
2133         (debug (const rtx_def &)): New.
2134         (debug (const rtx_def *)): New.
2135         * print-tree.c
2136         (debug_tree (tree): Move within file.
2137         (debug_raw (const tree_node &)): New.
2138         (debug_raw (const tree_node *)): New.
2139         (dump_tree_via_hooks (const tree_node *, int)): New.
2140         (debug (const tree_node &)): New.
2141         (debug (const tree_node *)): New.
2142         (debug_verbose (const tree_node &)): New.
2143         (debug_verbose (const tree_node *)): New.
2144         (debug_head (const tree_node &)): New.
2145         (debug_head (const tree_node *)): New.
2146         (debug_body (const tree_node &)): New.
2147         (debug_body (const tree_node *)): New.
2148         (debug_vec_tree (tree): Move and reimplement in terms of dump.
2149         (debug (vec<tree, va_gc> &)): New.
2150         (debug (vec<tree, va_gc> *)): New.
2151         * rtl.h
2152         (extern debug (const rtx_def &)): New.
2153         (extern debug (const rtx_def *)): New.
2154         * sbitmap.c
2155         (debug_raw (simple_bitmap_def &)): New.
2156         (debug_raw (simple_bitmap_def *)): New.
2157         (debug (simple_bitmap_def &)): New.
2158         (debug (simple_bitmap_def *)): New.
2159         * sbitmap.h
2160         (extern debug (simple_bitmap_def &)): New.
2161         (extern debug (simple_bitmap_def *)): New.
2162         (extern debug_raw (simple_bitmap_def &)): New.
2163         (extern debug_raw (simple_bitmap_def *)): New.
2164         * sel-sched-dump.c
2165         (debug (vinsn_def &)): New.
2166         (debug (vinsn_def *)): New.
2167         (debug_verbose (vinsn_def &)): New.
2168         (debug_verbose (vinsn_def *)): New.
2169         (debug (expr_def &)): New.
2170         (debug (expr_def *)): New.
2171         (debug_verbose (expr_def &)): New.
2172         (debug_verbose (expr_def *)): New.
2173         (debug (vec<rtx> &)): New.
2174         (debug (vec<rtx> *)): New.
2175         * sel-sched-dump.h
2176         (extern debug (vinsn_def &)): New.
2177         (extern debug (vinsn_def *)): New.
2178         (extern debug_verbose (vinsn_def &)): New.
2179         (extern debug_verbose (vinsn_def *)): New.
2180         (extern debug (expr_def &)): New.
2181         (extern debug (expr_def *)): New.
2182         (extern debug_verbose (expr_def &)): New.
2183         (extern debug_verbose (expr_def *)): New.
2184         (extern debug (vec<rtx> &)): New.
2185         (extern debug (vec<rtx> *)): New.
2186         * sel-sched-ir.h
2187         (_list_iter_cond_expr): Make inline instead of static.
2188         * sreal.c
2189         (debug (sreal &)): New.
2190         (debug (sreal *)): New.
2191         * sreal.h
2192         (extern debug (sreal &)): New.
2193         (extern debug (sreal *)): New.
2194         * tree.h
2195         (extern debug_raw (const tree_node &)): New.
2196         (extern debug_raw (const tree_node *)): New.
2197         (extern debug (const tree_node &)): New.
2198         (extern debug (const tree_node *)): New.
2199         (extern debug_verbose (const tree_node &)): New.
2200         (extern debug_verbose (const tree_node *)): New.
2201         (extern debug_head (const tree_node &)): New.
2202         (extern debug_head (const tree_node *)): New.
2203         (extern debug_body (const tree_node &)): New.
2204         (extern debug_body (const tree_node *)): New.
2205         (extern debug (vec<tree, va_gc> &)): New.
2206         (extern debug (vec<tree, va_gc> *)): New.
2207         * tree-cfg.c
2208         (debug (struct loop &)): New.
2209         (debug (struct loop *)): New.
2210         (debug_verbose (struct loop &)): New.
2211         (debug_verbose (struct loop *)): New.
2212         * tree-dump.c: Add header dependence.
2213         * tree-flow.h
2214         (extern debug (struct loop &)): New.
2215         (extern debug (struct loop *)): New.
2216         (extern debug_verbose (struct loop &)): New.
2217         (extern debug_verbose (struct loop *)): New.
2218         * tree-data-ref.c
2219         (debug (data_reference &)): New.
2220         (debug (data_reference *)): New.
2221         (debug (vec<data_reference_p> &)): New.
2222         (debug (vec<data_reference_p> *)): New.
2223         (debug (vec<ddr_p> &)): New.
2224         (debug (vec<ddr_p> *)): New.
2225         * tree-data-ref.h
2226         (extern debug (data_reference &)): New.
2227         (extern debug (data_reference *)): New.
2228         (extern debug (vec<data_reference_p> &)): New.
2229         (extern debug (vec<data_reference_p> *)): New.
2230         (extern debug (vec<ddr_p> &)): New.
2231         (extern debug (vec<ddr_p> *)): New.
2232         * tree-ssa-alias.c
2233         (debug (pt_solution &)): New.
2234         (debug (pt_solution *)): New.
2235         * tree-ssa-alias.h
2236         (extern debug (pt_solution &)): New.
2237         (extern debug (pt_solution *)): New.
2238         * tree-ssa-alias.c
2239         (debug (_var_map &)): New.
2240         (debug (_var_map *)): New.
2241         (debug (tree_live_info_d &)): New.
2242         (debug (tree_live_info_d *)): New.
2243         * tree-ssa-alias.h
2244         (extern debug (_var_map &)): New.
2245         (extern debug (_var_map *)): New.
2246         (extern debug (tree_live_info_d &)): New.
2247         (extern debug (tree_live_info_d *)): New.
2249 2013-03-28  Jan Hubicka  <jh@suse.cz>
2251         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
2253 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
2255         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
2256         record only when desired or required.
2258 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
2260         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
2261         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
2263 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
2265         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
2266         (*andsi3_compare0_uxtw): New pattern.
2267         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
2268         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
2270 2013-03-28  Jan Hubicka  <jh@suse.cz>
2272         * data-streamer-in.c (streamer_read_gcov_count): New function.
2273         * gimple-streamer-out.c: Include value-prof.h.
2274         (output_gimple_stmt): Output histogram.
2275         (output_bb): Use streamer_write_gcov_count.
2276         * value-prof.c: Include data-streamer.h
2277         (dump_histogram_value): Add HIST_TYPE_MAX.
2278         (stream_out_histogram_value): New function.
2279         (stream_in_histogram_value): New function.
2280         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
2281         (stream_out_histogram_value, stream_in_histogram_value): Declare.
2282         * data-streamer-out.c (streamer_write_gcov_count): New function.
2283         (streamer_write_gcov_count_stream): New function.
2284         * lto-cgraph.c (lto_output_edge): Update counter streaming.
2285         (lto_output_node): Likewise.
2286         (input_node, input_edge): Likewise.
2287         * lto-streamer-out.c (output_cfg): Update streaming.
2288         * lto-streamer-in.c (input_cfg): Likewise.
2289         * data-streamer.h (streamer_write_gcov_count,
2290         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
2291         * gimple-streamer-in.c: Include value-prof.h
2292         (input_gimple_stmt): Input histograms.
2293         (input_bb): Update profile streaming.
2295 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
2297         * genmodes.c (emit_max_int): New function.
2298         (emit_insn_modes_h): Added call to emit_max_function.
2299         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
2300         Added doc.
2301         * machmode.def: Fixed comment.
2303 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
2305         * combine.c (try_combine): Removed useless assert.
2306         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
2308 2013-03-28  Marek Polacek  <polacek@redhat.com>
2309             Richard Biener  <rguenther@suse.de>
2311         PR tree-optimization/56695
2312         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
2313         build signed result of a vector comparison.
2314         * tree-cfg.c (verify_gimple_comparison): Check that a result
2315         of a vector comparison has signed type.
2317 2013-03-28  Richard Biener  <rguenther@suse.de>
2319         PR tree-optimization/37021
2320         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
2321         do not restrict gaps between groups.
2322         * tree-vect-stmts.c (vectorizable_load): Properly account for
2323         a gap between groups.
2325 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
2327         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
2328         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
2329         is not enabled.
2331 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
2333         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
2334         * doc/extend.texi (Named Address Spaces): Ditto.
2335         (Variable Attributes): Ditto.
2337 2013-03-27  Kai Tietz  <ktietz@redhat.com>
2339         * config.build: Add support for cygwin x64 target.
2340         * config.gcc: Likewise.
2341         * config.host: Likewise.
2342         * configure.ac: Likewise
2343         * configure: Regenerated.
2345 2013-03-27 Kai Tietz  <ktietz@redhat.com>
2347         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
2348         * config/i386/t-cygwin-w64: New file.
2349         * config/i386/cygwin-w64.h: New file.
2350         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
2351         and add support for x64-cygwin target.
2352         (CPP_SPEC): Likewise.
2353         (CXX_WRAP_SPEC_LIST): Undefine before define.
2354         (LIBGCJ_SONAME): Use 15 as version.
2356 2013-03-27  Richard Biener  <rguenther@suse.de>
2358         PR tree-optimization/56716
2359         * tree-ssa-structalias.c (perform_var_substitution): Adjust
2360         dumping for ref nodes.
2362 2013-03-27  Martin Jambor  <mjambor@suse.cz>
2364         PR tree-optimization/55334
2365         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
2366         restricted pointers to arrays.
2368 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2370         * Makefile.in (.SUFFIXES): Add .cc.
2371         (.c.o): Apply same recipe for implicit rule .cc.o.
2373 2013-03-27  Richard Biener  <rguenther@suse.de>
2375         PR tree-optimization/37021
2376         * tree-vect-data-refs.c (vect_check_strided_load): Allow
2377         REALPART/IMAGPART_EXPRs around the supported refs.
2378         * tree-ssa-structalias.c (find_func_aliases): Assume that
2379         floating-point values are not used to transfer pointers.
2381 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2383         * target.def (TARGET_HAS_IFUNC_P): New target hook.
2384         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
2385         * doc/tm.texi: Regenerate.
2386         * targhooks.h (default_has_ifunc_p): New.
2387         * targhooks.c (default_has_ifunc_p): Ditto.
2388         * config/linux-protos.h: New file.
2389         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
2390         this hook for linux which disables support of indirect functions in
2391         android.
2392         * config/linux-android.c: New file.
2393         * config/t-linux-android.c: Ditto.
2394         * config.gcc: Added new object file linux-android.o.
2395         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
2396         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
2397         * varasm.c (do_assemble_alias): Likewise.
2398         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
2399         doesn't support indirect functions.
2400         * configure: Regenerate.
2402 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
2404         PR target/56102
2405         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
2406         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
2407         mult-word mode.
2409 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2411         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
2413 2013-03-27  Terry Guo  <terry.guo@arm.com>
2415         * config/arm/arm-cores.def: Added core cortex-r7.
2416         * config/arm/arm-tune.md: Regenerated.
2417         * config/arm/arm-tables.opt: Regenerated.
2418         * doc/invoke.texi: Added entry for core cortex-r7.
2420 2013-03-27  Walter Lee  <walt@tilera.com>
2422         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
2423         double-decrement of next_scratch_regno.
2425 2013-03-27  Walter Lee  <walt@tilera.com>
2427         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
2428         input operands.
2429         (insn_v1mulus): Ditto.
2430         (insn_v2muls): Ditto.
2432 2013-03-27  Walter Lee  <walt@tilera.com>
2434         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
2435         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
2437 2013-03-27  Walter Lee  <walt@tilera.com>
2439         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
2440         (*sibcall_value): Ditto.
2442 2013-03-27  Walter Lee  <walt@tilera.com>
2444         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
2445         (insn_mnz_v8qi): ... this ...
2446         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
2447         vector equivalent.
2448         (insn_v<n>mnz): Replaced by ...
2449         (insn_v1mnz): ... this ...
2450         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
2451         equivalent.
2452         (insn_mz_<mode>): Replaced by ...
2453         (insn_mz_v8qi): ... this ...
2454         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
2455         vector equivalent.
2456         (insn_v<n>mz): Replaced by ...
2457         (insn_v1mz): ... this ...
2458         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
2459         equivalent.
2461 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
2463         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
2465 2013-03-26  Roland McGrath  <mcgrathr@google.com>
2467         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
2468         than fprintf with a non-constant, non-format string.
2470 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
2472         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
2473         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
2474         operand 0 predicate.
2475         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
2476         attribute.  Use general_x64nomem_operand as operand 1 predicate.
2477         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
2478         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
2479         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
2480         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
2481         (mov<mode>_insv_1): Remove expander.  Merge insn with
2482         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
2483         Use general_x64nomem_operand as operand 1 predicate.
2484         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
2485         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
2486         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
2487         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
2488         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
2489         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
2490         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
2491         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
2492         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
2493         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
2494         (general_x64nomem_operand): Ditto.
2496 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
2498         * config/rtems.opt: Add -pthread option.
2500 2013-03-26  Richard Biener  <rguenther@suse.de>
2502         * alias.c (find_base_term): Avoid redundant and not used recursion.
2503         (base_alias_check): Get the initial base term from the caller.
2504         (true_dependence_1): Compute and pass base terms to base_alias_check.
2505         (write_dependence_p): Likewise.
2506         (may_alias_p): Likewise.
2508 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
2510         * config/aarch64/aarch64.c (aarch64_classify_address): Support
2511         PC-relative load in SI modes and above only.
2513 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
2515         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
2516         * config/arm/iwmmxt.md (WCGR0): Update.
2517         (WCGR1, WCGR2, WCGR3): Likewise.
2519 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
2521         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
2522         Use x64 and nox64 isa attributes.
2524 2013-03-26  Richard Biener  <rguenther@suse.de>
2526         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
2527         alignment computations and rely on get_object_alignment_1
2528         for the !TYPE_P case.
2529         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
2531 2013-03-26  Walter Lee  <walt@tilera.com>
2533         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
2534         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
2536 2013-03-25  Jeff Law  <law@redhat.com>
2538         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
2539         check for INTEGRAL_TYPE_P that was missing due to checking in
2540         wrong version of prior patch.
2542 2013-03-25  Walter Lee  <walt@tilera.com>
2544         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
2545         TILEGX_INSN_SHUFFLEBYTES1.
2546         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
2547         shufflebytes1.
2548         (tilegx_builtins): Ditto.
2549         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
2551 2013-03-25  Walter Lee  <walt@tilera.com>
2553         * config/tilegx/tilegx.md (floatsisf2): New pattern.
2554         (floatunssisf2): New pattern.
2555         (floatsidf2): New pattern.
2556         (floatunssidf2): New pattern.
2558 2013-03-25  Walter Lee  <walt@tilera.com>
2560         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
2561         tests for constraint J, K, N, P.
2563 2013-03-25  Walter Lee  <walt@tilera.com>
2565         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
2566         Use indirect/pcrel encoding.
2567         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
2568         Ditto.
2570 2013-03-25  Steve Ellcey  <sellcey@mips.com>
2572         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
2573         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
2574         * config/mips/mips.c (mips_option_override): Set IMADD default.
2575         * config/mips/mips.h (PTF_AVOID_IMADD): New.
2576         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
2577         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
2578         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
2579         * doc/invoke.texi (-mimadd/-mno-imadd): New.
2581 2013-03-25  Jeff Law  <law@redhat.com>
2583         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
2584         slightly to avoid creating and folding useless trees.  Simplify
2585         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
2587 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
2589         * config/i386/i386.md (*zero_extendsidi2): Merge with
2590         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
2591         * config/i386/predicates.md (x86_64_zext_operand): Rename from
2592         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
2593         targets.  Clarify comment.
2595 2013-03-25  Martin Jambor  <mjambor@suse.cz>
2597         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
2598         pass-through jump functions differently.
2599         (ipa_read_jump_function): Likewise.  Also use setter functions to set
2600         up jump functions.
2602 2013-03-25  Martin Jambor  <mjambor@suse.cz>
2604         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
2605         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
2606         process it.
2607         (ipa_get_indirect_edge_target): New function.
2608         (devirtualization_time_bonus): New parameter known_aggs, pass it to
2609         ipa_get_indirect_edge_target.  Update all callers.
2610         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
2611         ipa_get_indirect_edge_target_1 instead of calling
2612         ipa_get_indirect_edge_target.
2613         (create_specialized_node): Pass aggvlas to
2614         ipcp_discover_new_direct_edges.
2616 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2618         * config/arm/arm.md (f_sels, f_seld): New types.
2619         (*cmov<mode>): New pattern.
2620         * config/arm/predicates.md (arm_vsel_comparison_operator): New
2621         predicate.
2623 2013-03-25  Kai Tietz  <ktietz@redhat.com>
2625         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
2626         POSIX-printf for mingw-hosted  builds.
2628 2013-03-25  Richard Biener  <rguenther@suse.de>
2630         PR middle-end/56694
2631         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
2632         must-not-throw stmt location.
2634 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2636         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
2637         Emit load-acquire versions when acq is true.
2638         (arm_emit_store_exclusive): Add rel parameter.
2639         Emit store-release versions when rel is true.
2640         (arm_split_compare_and_swap): Use acquire-release instructions
2641         instead.
2642         of barriers when appropriate.
2643         (arm_split_atomic_op): Likewise.
2644         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
2645         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
2646         (VUNSPEC_SLX): Likewise.
2647         (VUNSPEC_LDA): Likewise.
2648         (VUNSPEC_STL): Likewise.
2649         * config/arm/sync.md (atomic_load<mode>): New pattern.
2650         (atomic_store<mode>): Likewise.
2651         (arm_load_acquire_exclusive<mode>): Likewise.
2652         (arm_load_acquire_exclusivesi): Likewise.
2653         (arm_load_acquire_exclusivedi): Likewise.
2654         (arm_store_release_exclusive<mode>): Likewise.
2656 2013-03-25  Catherine Moore  <clm@codesourcery.com>
2658         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
2659         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
2660         * config/mip/predicates.md (lwsp_swsp_operand,
2661         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
2662         sb16_operand, db4_operand, db7_operand, ib3_operand,
2663         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
2664         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
2665         andi16_operand): New predicates.
2666         * config/mips/mips.md (compression): New attribute.
2667         (enabled): New attribute.
2668         (length): Consider compression in computing length.
2669         (shift_compression): New code attribute.
2670         (*add<mode>3): New operands. Record compression.
2671         (sub<mode>3): Likewise.
2672         (one_cmpl<mode>2): Likewise.
2673         (*and<mode>3): Likewise.
2674         (*ior<mode>3): Likewise.
2675         (unnamed pattern for xor): Likewise.
2676         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
2677         (*<optab><mode>3): Likewise.
2678         (*mov<mode>_internal: Likewise.
2679         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
2680         (mips_unsigned_immediate_p): New.
2681         (umips_lwsp_swsp_address_p): New.
2682         (m16_based_address_p): New.
2683         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
2684         (mips_unsigned_immediate_p): New prototype.
2685         (lwsp_swsp_address_p): New prototype.
2686         (m16_based_address_p): New prototype.
2687         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
2688         (mips_signed_immediate_p): New function.
2689         (m16_based_address_p): New function.
2690         (lwsp_swsp_address_p): New function.
2691         (mips_print_operand_punctuation): Recognize short delay slot insns
2692         for microMIPS.add<mode>3"
2694 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2696         PR target/56720
2697         * config/arm/iterators.md (v_cmp_result): New mode attribute.
2698         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
2700 2013-03-25  Richard Biener  <rguenther@suse.de>
2702         PR tree-optimization/56689
2703         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
2704         any edge.
2706 2013-03-25  Richard Biener  <rguenther@suse.de>
2708         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
2709         of bitmap.
2710         (memory_references): Likewise.
2711         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
2712         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
2713         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
2714         (gather_mem_refs_in_loops): Fold into ...
2715         (analyze_memory_references): ... this.  Move initialization
2716         to tree_ssa_lim_initialize.
2717         (fill_always_executed_in): Rename to ...
2718         (fill_always_executed_in_1): ... this.
2719         (fill_always_executed_in): Move contains_call computation to
2720         this new function from ...
2721         (tree_ssa_lim_initialize): ... here.
2722         (tree_ssa_lim): Call fill_always_executed_in.
2724 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
2726         * postreload.c (reload_combine): Fix code detecting returns.
2728 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
2730         * function.c (emit_use_return_register_into_block): On cc0 targets,
2731         do not emit the sequence between cc0 setter and user.
2733 2013-03-25  Kai Tietz  <ktietz@redhat.com>
2735         * config/i386/predicates.md (local_symbolic_operand): Interpret
2736         dll-imported symbols as none-local.
2738 2013-03-25  Richard Biener  <rguenther@suse.de>
2740         * tree-ssa-loop-im.c (struct depend): Remove.
2741         (struct lim_aux_data): Make depends a vec of gimples.
2742         (free_lim_aux_data): Adjust.
2743         (add_dependency): Likewise.
2744         (set_level): Likewise.
2746 2013-03-25  Richard Biener  <rguenther@suse.de>
2748         PR middle-end/56434
2749         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
2750         the pointer returned by calls with ECF_MALLOC set.
2752 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
2754         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
2756 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
2758         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
2759         using MMXMODE mode iterator.
2760         (*move<mode>_internal): Merge with *movv2sf_internal and
2761         *movv2sf_internal_rex64 using MMXMODE mode iterator.
2763 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
2765         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
2766         (record_last_mem_set_info): Likewise.
2768         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
2769         of XNEWVEC followed by memset.
2770         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
2772 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
2774         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
2775         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
2776         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
2777         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
2778         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
2779         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
2780         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
2781         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
2782         BARRIER_P instead of GET_CODE.
2784 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
2786         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
2787         inaccuracy in the probing code.
2789         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
2790         (ctrapdi4): Likewise.
2792 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
2794         * calls.c (expand_call): Add missing guard to code handling return
2795         of non-BLKmode structures in MSB.
2796         * function.c (expand_function_end): Likewise.
2798 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
2800         * combine.c (try_combine): Adjust comment.  Do not add the set of
2801         insn #0 if the destination indirectly is set or dies in insn #2.
2802         Tidy up code to distribute a new note.
2804 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
2806         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
2807         also for alternatives 16 and 17.
2809 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
2811         * config/i386/sse.md (*mov<mode>_internal): Merge with
2812         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
2813         Emit insn template depending on type attribute.  Use
2814         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
2815         movd instead of movq mnemonic for interunit moves.  Rewrite mode
2816         attribute calculation.  Remove unit attribute calculation.
2817         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
2818         Set prefix_data16 attribute for DImode ssemov types.
2819         Use Ym instead of y for SSE-MMX conversion alternatives.
2820         Reorder operand constraints.
2822 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
2824         * df.h (df_insn_delete): Adjust prototype.
2825         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
2826         and let it decide whether mark the basic block dirty.
2827         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
2828         * df-scan.c (df_insn_info_delete): New helper function, split
2829         off from df_insn_delete.
2830         (df_scan_free_bb_info): Use it.
2831         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
2832         Likewise.
2833         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
2834         that the insn is actually an insn and it has a non-NULL basic block.
2835         Do not mark basic block dirty if only deleting a DEBUG_INSN.
2837 2013-03-22  Richard Biener  <rguenther@suse.de>
2839         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
2840         dep_ref members.
2841         (mem_ref_alloc): Do not allocate them.
2842         (refs_independent_p): Do not query or maintain a cache.
2844 2013-03-22  Richard Biener  <rguenther@suse.de>
2846         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
2847         (gather_mem_refs_in_loops): Do not compute it.
2848         (analyze_memory_references): Do not allocate it.
2849         (tree_ssa_lim_finalize): Do not free it.
2850         (for_all_locs_in_loop): Do not query all_refs_in_loop.
2852 2013-03-22  Richard Biener  <rguenther@suse.de>
2854         * is-a.h (as_a): Use gcc_checking_assert.
2856 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
2858         * config/aarch64/aarch64.c (aarch64_print_operand): New
2859         format specifier for printing a constant in hex.
2860         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
2861         format specifier for printing second operand.
2863 2013-03-22  Richard Biener  <rguenther@suse.de>
2865         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
2866         bitmaps.
2867         (gather_mem_refs_in_loops): Perform store accumulation here.
2868         (create_vop_ref_mapping_loop): Remove.
2869         (create_vop_ref_mapping): Likewise.
2870         (analyze_memory_references): Initialize refs_stored_in_loop.
2871         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
2872         (record_indep_loop): Remove.
2873         (record_dep_loop): New function.
2874         (ref_indep_loop_p_1): Adjust to only walk over references
2875         in the loop, not its subloops.
2876         (ref_indep_loop_p): Rename to ...
2877         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
2878         maintaining a more fine-grained cache.
2879         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
2880         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
2882 2013-03-22  Richard Biener  <rguenther@suse.de>
2884         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
2885         (struct mem_ref): Make accesses_in_loop a vec of a vec of
2886         aggregate mem_ref_loc.
2887         (free_mem_ref_locs): Inline into ...
2888         (memref_free): ... this and adjust.
2889         (mem_ref_alloc): Adjust.
2890         (mem_ref_locs_alloc): Remove.
2891         (record_mem_ref_loc): Adjust.
2892         (get_all_locs_in_loop): Rewrite into ...
2893         (for_all_locs_in_loop): ... this iterator.
2894         (rewrite_mem_ref_loc): New functor.
2895         (rewrite_mem_refs): Use for_all_locs_in_loop.
2896         (sm_set_flag_if_changed): New functor.
2897         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
2898         (ref_always_accessed): New functor.
2899         (ref_always_accessed_p): Use for_all_locs_in_loop.
2901 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
2903         * tree-pass.h (PROP_gimple_lvec): New.
2904         * passes.c (dump_properties): Handle PROP_gimple_lvec.
2905         (init_optimization_passes): Move pass_lower_vector.
2906         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
2907         PROP_gimple_lvec.
2908         (pass_lower_vector): Provide PROP_gimple_lvec.
2909         (pass_lower_vector_ssa): Likewise.
2910         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
2912 2013-03-21  Mark Wielaard  <mjw@redhat.com>
2914         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
2916 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
2918         * config/i386/i386.md (*movdi_internal): Disparage slightly
2919         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
2920         conversion alternatives.
2922 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
2924         PR middle-end/48087
2925         * diagnostic.def (DK_WERROR): New kind.
2926         * diagnostic.h (werrorcount): Define.
2927         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
2928         promoted to DK_ERROR, increment DK_WERROR counter instead of
2929         DK_ERROR counter.
2930         * toplev.c (toplev_main): Call print_ignored_options even if
2931         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
2932         even if just werrorcount is non-zero.
2934         PR debug/55608
2935         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
2936         on failure.
2937         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
2938         (string_cst_pool_decl): New function.
2939         (optimize_one_addr_into_implicit_ptr): New function.
2940         (resolve_addr_in_expr): Optimize DWARF location expression
2941         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
2942         which doesn't live in memory, but has DW_AT_location or
2943         DW_AT_const_value, or refers to a string literal, into
2944         DW_OP_GNU_implicit_pointer.
2945         (optimize_location_into_implicit_ptr): New function.
2946         (resolve_addr): If removing DW_AT_location of a variable because
2947         it was DW_OP_addr of address of the variable, but the variable doesn't
2948         live in memory, try to emit const value attribute for the initializer.
2950 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
2952         * tree.h (VECTOR_TYPE_P): New macro.
2953         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
2954         TYPE_MODE): Use it.
2955         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
2956         VEC_COND_EXPR cannot be lvalues.
2957         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
2959 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
2961         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
2962         Restrict the transformation to equal modes.
2964 2013-03-21  Richard Biener  <rguenther@suse.de>
2966         PR tree-optimization/39326
2967         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
2968         (MEM_ANALYZABLE): Adjust.
2969         (record_mem_ref_loc): Move bitmap ops ...
2970         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
2971         unanalyzable refs, do not record locations for it.
2972         (analyze_memory_references): Allocate ref zero as shared
2973         unanalyzable ref.
2974         (refs_independent_p): Do not test for unanalyzed mems here.
2975         (ref_indep_loop_p_1): Special-case disambiguation against
2976         the unanalyzed ref.
2977         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
2979 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
2981         * config/arm/arm-protos.h (tune_params): Add
2982         prefer_neon_for_64bits field.
2983         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
2984         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
2985         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
2986         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
2987         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
2988         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
2989         (arm_option_override): Handle -mneon-for-64bits new option.
2990         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
2991         (prefer_neon_for_64bits): Declare new variable.
2992         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
2993         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
2994         (arch_enabled): Handle new arch types. Remove support for onlya8
2995         and nota8.
2996         (one_cmpldi2): Use new arch names.
2997         (zero_extend<mode>di2, extend<mode>di2): Ditto.
2998         * config/arm/arm.opt (mneon-for-64bits): Add option.
2999         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
3000         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
3001         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
3002         of onlya8.
3003         * doc/invoke.texi (-mneon-for-64bits): Document.
3005 2013-03-21  Richard Biener  <rguenther@suse.de>
3007         PR tree-optimization/39326
3008         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
3009         (sort_bbs_in_loop_postorder_cmp): New function.
3010         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
3012 2013-03-21  Richard Biener  <rguenther@suse.de>
3014         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
3015         (vect_insert_into_interleaving_chain): Likewise.
3016         (vect_drs_dependent_in_basic_block): Inline ...
3017         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
3018         split out from ...
3019         (vect_analyze_data_ref_dependence): ... here.  Simplify.
3020         (vect_check_interleaving): Simplify.
3021         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
3022         (vect_slp_analyze_data_ref_dependences): ... this new function.
3023         (dr_group_sort_cmp): New function.
3024         (vect_analyze_data_ref_accesses): Compute data-reference groups
3025         here instead of in vect_analyze_data_ref_dependence.  Use
3026         a more efficient algorithm.
3027         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
3028         vect_slp_analyze_data_ref_dependences.  Call
3029         vect_analyze_data_ref_accesses earlier.
3030         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
3031         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
3032         (vect_slp_analyze_data_ref_dependences): New prototype.
3034 2013-03-21  Richard Biener  <rguenther@suse.de>
3036         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
3037         ref is stored in the loop.
3038         (find_refs_for_sm): Walk only over all stores.
3039         (store_motion_loop): Allocate from lim_bitmap_obstack.
3040         (store_motion): Likewise.
3042 2013-03-21  Richard Biener  <rguenther@suse.de>
3044         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
3045         Update virtual SSA form.
3047 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3049         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
3050         * configure: Regenerate.
3051         * config.in: Regenerate.
3052         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
3053         if !HAVE_LD_EH_FRAME_CIEV3.
3055 2013-03-21  Richard Biener  <rguenther@suse.de>
3057         * tree-cfg.c (verify_expr_no_block): New function.
3058         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
3059         nor DECL_VALUE_EXPR have locations with associated blocks.
3060         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
3061         (clear_unused_block_pointer): Remove code dealing with
3062         blocks in DECL_DEBUG_EXPR locations.
3064 2013-03-21  Richard Biener  <rguenther@suse.de>
3066         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
3067         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
3068         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
3069         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
3070         instead of DECL_DEBUG_EXPR_IS_FROM.
3071         * gimplify.c (gimplify_modify_expr): Likewise.
3072         * tree-cfg.c (verify_expr_location_1): Likewise.
3073         * tree-complex.c (create_one_component_var): Likewise.
3074         * tree-sra.c (create_access_replacement): Likewise.
3075         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
3076         (clear_unused_block_pointer): Likewise.
3077         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
3078         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
3079         * var-tracking.c (var_debug_decl): Likewise.
3080         (track_expr_p): Likewise.
3081         * tree-inline.c (add_local_variables): Likewise.  Set
3082         DECL_HAS_DEBUG_EXPR_P after copying it.
3083         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
3084         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
3086 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
3088         PR bootstrap/56656
3089         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
3090         * configure: Regenerate.
3091         * config.in: Regenerate.
3092         * config/i386/i386.md (*movdf_internal): Use
3093         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
3094         movd instead of movq mnemonic for interunit moves.
3095         (*movdi_internal): Ditto.
3097 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
3099         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
3100         (abd<mode>_3): New pattern.
3101         (aba<mode>_3): New pattern.
3102         (fabd<mode>_3): New pattern.
3104 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
3106         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
3107         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
3108         occurrence of REGISTER_PREFIX as its empty string.
3110 2013-03-20  Jeff Law  <law@redhat.com>
3112         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
3113         addititional equivalences for equality comparisons between an SSA_NAME
3114         and a constant where the SSA_NAME was set from a widening conversion.
3116 2013-03-20  Walter Lee  <walt@tilera.com>
3118         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
3120 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
3122         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
3123         depending on type attribute.
3124         (*movti_internal): Ditto.
3125         (*movtf_internal): Ditto.
3126         (*movxf_internal): Ditto.
3127         (*movdf_internal): Ditto.
3128         (*movsf_internal): Ditto.
3130 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
3132         * config/i386/i386.md (*movti_internal): Set prefix attribute to
3133         maybe_vex for sselog1 and ssemov types.
3134         (*movdi_internal): Reorder operand constraints.
3135         (*movsi_internal): Ditto.  Set prefix attribute to
3136         maybe_vex for sselog1 and ssemov types.
3137         (*movtf_internal): Set prefix attribute to maybe_vex
3138         for sselog1 and ssemov types.
3139         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
3140         DImode ssemov types.  Reorder operand constraints.
3141         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
3142         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
3143         attribute for SImode ssemov types.  Reorder operand constraints.
3145 2013-03-20  Martin Jambor  <mjambor@suse.cz>
3147         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
3148         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
3150 2013-03-20  Pat Haugen <pthaugen@us.ibm.com>
3152         * config/rs6000/predicates.md (indexed_address, update_address_mem
3153         update_indexed_address_mem): New predicates.
3154         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
3155         attribute for load/store instructions.
3156         * config/rs6000/dfp.md (movsd_store): Likewise.
3157         (movsd_load): Likewise.
3158         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
3159         (unnamed HI->DI extend define_insn): Likewise.
3160         (unnamed SI->DI extend define_insn): Likewise.
3161         (unnamed QI->SI extend define_insn): Likewise.
3162         (unnamed QI->HI extend define_insn): Likewise.
3163         (unnamed HI->SI extend define_insn): Likewise.
3164         (unnamed HI->SI extend define_insn): Likewise.
3165         (extendsfdf2_fpr): Likewise.
3166         (movsi_internal1): Likewise.
3167         (movsi_internal1_single): Likewise.
3168         (movhi_internal): Likewise.
3169         (movqi_internal): Likewise.
3170         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
3171         attribute for load/store instructions.
3172         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
3173         instructions.
3174         (mov<mode>_softfloat): Likewise.
3175         (mov<mode>_hardfloat32): Likewise.
3176         (mov<mode>_hardfloat64): Likewise.
3177         (mov<mode>_softfloat64): Likewise.
3178         (movdi_internal32): Likewise.
3179         (movdi_internal64): Likewise.
3180         (probe_stack_<mode>): Likewise.
3182 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
3184         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
3185         floating point, and decimal floating point to reload iterator.
3187         * config/rs6000/constraints.md (wl constraint): New constraints to
3188         return FLOAT_REGS if certain options are used to reduce the number
3189         of separate patterns that exist in the file.
3190         (wx constraint): Likewise.
3191         (wz constraint): Likewise.
3193         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
3194         -mdebug=reg, print wg, wl, wx, and wz constraints.
3195         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
3196         Initialize the reload functions for 64-bit binary/decimal floating
3197         point types.
3198         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
3199         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
3200         create the buffer on the stack to overcome not having a 32-bit
3201         load and store.
3202         (rs6000_emit_move): Likewise.
3203         (rs6000_secondary_memory_needed_rtx): Likewise.
3204         (rs6000_alloc_sdmode_stack_slot): Likewise.
3205         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
3206         via xxlxor, just like DFmode 0.0.
3208         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
3209         define as 1 if we are running on a power7 or newer.
3210         (enum r6000_reg_class_enum): Add new constraints.
3212         * config/rs6000/dfp.md (movsd): Delete, combine with binary
3213         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
3214         with other moves by using conditional constraits (wg).  Use LFIWZX
3215         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
3216         (movsd splitter): Likewise.
3217         (movsd_hardfloat): Likewise.
3218         (movsd_softfloat): Likewise.
3220         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
3221         binary and decimal floating point moves.
3222         (fmove_ok): New attributes to combine binary and decimal floating
3223         point moves, and to combine power6x (mfpgpr) moves along normal
3224         floating moves.
3225         (real_value_to_target): Likewise.
3226         (f32_lr): Likewise.
3227         (f32_lm): Likewise.
3228         (f32_li): Likewise.
3229         (f32_sr): Likewise.
3230         (f32_sm): Likewise.
3231         (f32_si): Likewise.
3232         (movsf): Combine binary and decimal floating point moves.  Combine
3233         power6x (mfpgpr) moves with other moves by using conditional
3234         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
3235         (mov<mode> for SFmode/SDmode); Likewise.
3236         (SFmode/SDmode splitters): Likewise.
3237         (movsf_hardfloat): Likewise.
3238         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
3239         (movsf_softfloat): Likewise.
3240         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
3242         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
3243         wx and wz constraints.
3245         * config/rs6000/constraints.md (wg constraint): New constraint to
3246         return FLOAT_REGS if -mmfpgpr (power6x) was used.
3248         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
3249         constraint.
3251         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
3252         -mdebug=reg, print wg, wl, wx, and wz constraints.
3253         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
3254         Initialize the reload functions for 64-bit binary/decimal floating
3255         point types.
3256         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
3257         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
3258         create the buffer on the stack to overcome not having a 32-bit
3259         load and store.
3260         (rs6000_emit_move): Likewise.
3261         (rs6000_secondary_memory_needed_rtx): Likewise.
3262         (rs6000_alloc_sdmode_stack_slot): Likewise.
3263         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
3264         via xxlxor, just like DFmode 0.0.
3266         * config/rs6000/dfp.md (movdd): Delete, combine with binary
3267         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
3268         with other moves by using conditional constraits (wg).  Use LFIWZX
3269         and STFIWX for loading SDmode on power7.
3270         (movdd splitters): Likewise.
3271         (movdd_hardfloat32): Likewise.
3272         (movdd_softfloat32): Likewise.
3273         (movdd_hardfloat64_mfpgpr): Likewise.
3274         (movdd_hardfloat64): Likewise.
3275         (movdd_softfloat64): Likewise.
3277         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
3278         64-bit binary and decimal floating point moves.
3279         (FMOVE64X): Likewise.
3280         (movdf): Combine 64-bit binary and decimal floating point moves.
3281         Combine power6x (mfpgpr) moves with other moves by using
3282         conditional constraits (wg).
3283         (mov<mode> for DFmode/DDmode): Likewise.
3284         (DFmode/DDmode splitters): Likewise.
3285         (movdf_hardfloat32): Likewise.
3286         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
3287         (movdf_softfloat32): Likewise.
3288         (movdf_hardfloat64_mfpgpr): Likewise.
3289         (movdf_hardfloat64): Likewise.
3290         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
3291         (movdf_softfloat64): Likewise.
3292         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
3293         (reload_<mode>_load): Move to later in the file so they aren't in
3294         the middle of the floating point move insns.
3295         (reload_<mode>_store): Likewise.
3297         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
3298         constraint.
3300         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
3301         constraint if -mdebug=reg.
3302         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
3303         Enable using dd reload support if needed.
3305         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
3306         binary and decimal floating point moves in rs6000.md.
3307         (movtd_internal): Likewise.
3309         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
3310         decimal floating point moves.
3311         (movtf): Likewise.
3312         (movtf_internal): Likewise.
3313         (mov<mode>_internal, TDmode/TFmode): Likewise.
3314         (movtf_softfloat): Likewise.
3315         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
3317         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
3318         movdi_internal64, using wg constraint for move direct operations.
3319         (movdi_internal64): Likewise.
3321         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
3322         MODES_TIEABLE_P for selected modes.  Print the numerical value of
3323         the various virtual registers. Use GPR/FPR first/last values,
3324         instead of hard coding the register numbers.  Print which modes
3325         have reload functions registered.
3326         (rs6000_option_override_internal): If -mdebug=reg, trace the options
3327         settings before/after setting cpu, target and subtarget settings.
3328         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
3329         and for secondary reload failures in rs6000_secondary_reload_inner.
3330         (rs6000_secondary_reload_fail): Likewise.
3331         (rs6000_secondary_reload_inner): Likewise.
3333         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
3334         macros for first/last GPR and FPR registers.
3335         (LAST_GPR_REGNO): Likewise.
3336         (FIRST_FPR_REGNO): Likewise.
3337         (LAST_FPR_REGNO): Likewise.
3339         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
3340         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
3341         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
3342         (vcond<mode><mode>): Likewise.
3343         (vcondu<mode><mode>): Likewise.
3344         (vector_gtu<mode>): Likewise.
3345         (vector_gte<mode>): Likewise.
3346         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
3347         to prevent the compiler from converting DImode operations to TImode.
3348         (ior<mode>3): Likewise.
3349         (and<mode>3): Likewise.
3350         (one_cmpl<mode>2): Likewise.
3351         (nor<mode>3): Likewise.
3352         (andc<mode>3): Likewise.
3354         * config/rs6000/constraints.md (wt constraint): New constraint
3355         that returns VSX_REGS if TImode is allowed in VSX registers.
3357         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
3358         constant under VSX.
3360         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
3361         similar to TImode, but it is restricted to being in the GPRs.
3363         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
3364         TImode to occupy a single VSX register.
3366         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
3367         -mvsx-timode for power7/power8.
3368         (power7 cpu): Likewise.
3369         (power8 cpu): Likewise.
3371         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
3372         sure that TFmode/TDmode take up two registers if they are ever
3373         allowed in the upper VSX registers.
3374         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
3375         registers.
3376         (rs6000_init_hard_regno_mode_ok): Likewise.
3377         (rs6000_debug_reg_global): Add debugging for PTImode and wt
3378         constraint.  Print if LRA is turned on.
3379         (rs6000_option_override_internal): Give an error if -mvsx-timode
3380         and VSX is not enabled.
3381         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
3382         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
3383         to reg+offset addressing.  Use PTImode when checking offset
3384         addresses for validity.
3385         (reg_offset_addressing_ok_p): Likewise.
3386         (rs6000_legitimate_offset_address_p): Likewise.
3387         (rs6000_legitimize_address): Likewise.
3388         (rs6000_legitimize_reload_address): Likewise.
3389         (rs6000_legitimate_address_p): Likewise.
3390         (rs6000_eliminate_indexed_memrefs): Likewise.
3391         (rs6000_emit_move): Likewise.
3392         (rs6000_secondary_reload): Likewise.
3393         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
3394         reloads to fpr registers to continue to use reg+offset addressing,
3395         but 64-bit reloads to altivec registers need reg+reg addressing.
3396         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
3397         it.  Treat LO_SUM like a PLUS operation.
3398         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
3399         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
3400         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
3401         registers to share a register with a smaller sized type, since VSX
3402         puts scalars in the upper 64-bits.
3403         (print_operand): Add support for PTImode.
3404         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
3405         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
3406         registers, but don't have arithmetic support.
3407         (rs6000_memory_move_cost): Add test for VSX.
3408         (rs6000_opt_masks): Add -mvsx-timode.
3410         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
3411         for TImode.
3412         (VSs): Likewise.
3413         (VSr): Use wt constraint for TImode.
3414         (VSv): Drop TImode support.
3415         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
3416         (vsx_movti_64bit): Likewise.
3417         (vsx_movti_32bit): Likewise.
3418         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
3419         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
3420         one '?' on the appropriate output constraint.  Do not allow TImode
3421         logical operations on 32-bit systems.
3422         (vsx_ior<mode>3): Likewise.
3423         (vsx_xor<mode>3): Likewise.
3424         (vsx_one_cmpl<mode>2): Likewise.
3425         (vsx_nor<mode>3): Likewise.
3426         (vsx_andc<mode>3): Likewise.
3427         (vsx_concat_<mode>): Likewise.
3428         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
3430         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
3431         OPTION_MASK_VSX_TIMODE.
3432         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
3433         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
3435         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
3436         (TI2 iterator): New iterator for TImode, PTImode.
3437         (wd mode attribute): Add values for vector types.
3438         (movti_string): Replace TI move operations with operations for TImode
3439         and PTImode.  Add support for TImode being allowed in VSX registers.
3440         (mov<mode>_string, TImode/PTImode): Likewise.
3441         (movti_ppc64): Likewise.
3442         (mov<mode>_ppc64, TImode/PTImode): Likewise.
3443         (TI mode splitters): Likewise.
3445         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
3446         constraint.
3448 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
3450         PR tree-optimization/56355
3451         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
3452         Also handle integers with undefined overflow.
3454 2013-03-20  Catherine Moore  <clm@codesourcery.com>
3455             Maciej W. Rozycki  <macro@codesourcery.com>
3456             Tom de Vries  <tom@codesourcery.com>
3457             Nathan Sidwell <nathan@codesourcery.com>
3458             Iain Sandoe  <iain@codesourcery.com>
3459             Nathan Froyd  <froydnj@codesourcery.com>
3460             Chao-ying Fu <fu@mips.com>
3462         * doc/extend.texi: (micromips, nomicromips, nocompression):
3463         Document new function attributes.
3464         * doc/invoke.texi (minterlink-compressed, mmicromips,
3465         m14k, m14ke, m14kec): Document new options.
3466         (minterlink-mips16): Update documentation.
3467         * doc/md.texi (ZC, ZD): Document new constraints.
3468         * configure.ac (gcc_cv_as_micromips): Check if linker
3469         supports the .set micromips directive.
3470         * configure: Regenerate.
3471         * config.in: Regenerate.
3472         * config/mips/mips-tables.opt: Regenerate.
3473         * config/mips/micromips.md: New file.
3474         * constraints.md (ZC, ZD): New constraints.
3475         * config/mips/predicates.md (movep_src_register): New predicate.
3476         (movep_src_operand): New predicate.
3477         (non_volatile_mem_operand): New predicate.
3478         * config/mips/mips.md (multimem): New type.
3479         (length): Differentiate between 17-bit and 18-bit branch offsets.
3480         (MOVEP1, MOVEP2): New mode iterator.
3481         (mov_<load>l): Use ZC constraint.
3482         (mov_<load>r): Likewise.
3483         (mov_<store>l): Likewise.
3484         (mov_<store>r): Likewise.
3485         (*branch_equality<mode>_inverted): Add microMIPS support.
3486         (*branch_equality<mode>): Likewise.
3487         (*jump_absolute): Likewise.
3488         (indirect_jump_<mode>): Likewise.
3489         (tablejump_<mode>): Likewise.
3490         (<optab>_internal): Likewise.
3491         (sibcall_internal): Likewise.
3492         (sibcall_value_internal): Likewise.
3493         (prefetch): Use constraint ZD.
3494         * config/mips/mips.opt (minterlink-compressed): New option.
3495         (minterlink-mips16): Now an alias for minterlink-compressed.
3496         (mmicromips): New option.
3497         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
3498         (compare_and_swap_12): Likewise.
3499         (sync_add<mode>): Likewise.
3500         (sync_<optab>_12): Likewise.
3501         (sync_old_<optab>_12): Likewise.
3502         (sync_new_<optab>_12): Likewise.
3503         (sync_nand_12): Likewise.
3504         (sync_old_nand_12): Likewise.
3505         (sync_new_nand_12): Likewise.
3506         (sync_sub<mode>): Likewise.
3507         (sync_old_add<mode>): Likewise.
3508         (sync_old_sub<mode>): Likewise.
3509         (sync_new_add<mode>): Likewise.
3510         (sync_new_sub<mode>): Likewise.
3511         (sync_<optab><mode>): Likewise.
3512         (sync_old_<optab><mode>): Likewise.
3513         (sync_new_<optab><mode>): Likewise.
3514         (sync_nand<mode>): Likewise.
3515         (sync_old_nand<mode>): Likewise.
3516         (sync_new_nand<mode>): Likewise.
3517         (sync_lock_test_and_set<mode>): Likewise.
3518         (test_and_set_12): Likewise.
3519         (atomic_compare_and_swap<mode>): Likewise.
3520         (atomic_exchange<mode>_llsc): Likewise.
3521         (atomic_fetch_add<mode>_llsc): Likewise.
3522         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
3523         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
3524         (umips_save_restore_pattern_p): Likewise.
3525         (umips_load_store_pair_p): Likewise.
3526         (umips_output_load_store_pair): Likewise.
3527         (umips_movep_target_p): Likewise.
3528         (umips_12bit_offset_address_p): Likewise.
3529         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
3530         (mips_base_mips16): Rename this...
3531         (mips_base_compression_flags): ...to this. Update all uses.
3532         (mips_attribute_table): Add micromips, nomicromips and nocompression.
3533         (mips_mips16_decl_p): Delete.
3534         (mips_nomips16_decl_p): Delete.
3535         (mips_get_compress_on_flags): New function.
3536         (mips_get_compress_off_flags): New function.
3537         (mips_get_compress_mode): New function.
3538         (mips_get_compress_on_name): New function.
3539         (mips_get_compress_off_name): New function.
3540         (mips_insert_attributes): Support multiple compression types.
3541         (mips_merge_decl_attributes): Likewise.
3542         (umips_12bit_offset_address_p): New function.
3543         (mips_start_function_definition): Emit .set micromips directive.
3544         (mips_call_may_need_jalx_p): New function.
3545         (mips_function_ok_for_sibcall): Add microMIPS support.
3546         (mips_print_operand_punctuation): Support short delay slots and
3547         compact jumps.
3548         (umips_swm_mask, umips_swm_encoding): New.
3549         (umips_build_save_restore): New function.
3550         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
3551         (was_mips16_p): Remove.
3552         (old_compression_mode): New.
3553         (mips_set_compression_mode): New function.
3554         (mips_set_current_function): Add microMIPS support.
3555         (mips_option_override): Likewise.
3556         (umips_save_restore_pattern_p): New function.
3557         (umips_output_save_restore): New function.
3558         (umips_load_store_pair_p_1): New function.
3559         (umips_load_store_pair_p): New function.
3560         (umips_output_load_store_pair_1): New function.
3561         (umips_output_load_store_pair): New function.
3562         (umips_movep_target_p) New function.
3563         (mips_prepare_pch_save): Add microMIPS support.
3564         * config/mips/mips.h (TARGET_COMPRESSION): New.
3565         (TARGET_CPU_CPP_BUILTINS): Update macro
3566         to use new compression flags and to support microMIPS.
3567         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
3568         (MIPS_ARCH_FLOAT_SPEC): Likewise.
3569         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
3570         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
3571         (ASM_SPEC): Support mmicromips and mno-micromips.
3572         (M16STORE_REG_P): New macro.
3573         (MIPS_CALL): Support TARGET_MICROMIPS.
3574         (MICROMIPS_J): New macro.
3575         (mips_base_mips16): Rename this...
3576         (mips_base_compression_flags): ...to this.
3577         (UMIPS_12BIT_OFFSET_P): New macro.
3578         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
3579         (MULTILIB_DIRNAMES): Likewise.
3580 2013-03-20  Richard Biener  <rguenther@suse.de>
3582         PR tree-optimization/56661
3583         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
3584         the result does not have to be distinct.
3586 2013-03-20  Richard Biener  <rguenther@suse.de>
3588         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
3589         remap_gimple_op_r.
3591 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3592             Steven Bosscher <steven@gcc.gnu.org>
3594         PR rtl-optimization/56605
3595         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
3597 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
3599         PR bootstrap/56656
3600         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
3601         that require movd instead of movq.
3603 2013-03-20  Richard Biener  <rguenther@suse.de>
3605         * tree-ssa-structalias.c (struct variable_info): Add pointer
3606         to the first field of an aggregate with sub-vars.  Make
3607         this and the pointer to the next subfield its ID.
3608         (vi_next): New function.
3609         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
3610         storedanything_id, integer_id): Increment by one.
3611         (new_var_info, get_call_vi, lookup_call_clobber_vi,
3612         get_call_clobber_vi): Adjust.
3613         (solution_set_expand): Simplify and speedup.
3614         (solution_set_add): Inline into ...
3615         (set_union_with_increment): ... this.  Adjust accordingly.
3616         (do_sd_constraint): Likewise.
3617         (do_ds_constraint): Likewise.
3618         (do_complex_constraint): Simplify.
3619         (build_pred_graph): Adjust.
3620         (solve_graph): Likewise.  Simplify and speedup.
3621         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
3622         get_constraint_for_component_ref, get_constraint_for_1,
3623         first_vi_for_offset, first_or_preceding_vi_for_offset,
3624         create_function_info_for, create_variable_info_for_1,
3625         create_variable_info_for, intra_create_variable_infos): Adjust.
3626         (init_base_vars): Push NULL for ID zero.
3627         (compute_points_to_sets): Adjust.
3629 2013-03-20  Richard Biener  <rguenther@suse.de>
3631         * cfgloop.c (verify_loop_structure): Streamline and avoid
3632         ICEing on corrupt loop tree.
3633         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
3634         loop tree.
3636 2013-03-20  Richard Biener  <rguenther@suse.de>
3638         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
3639         check whether an SSA update is needed.
3641 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
3643         * config/mips/constraints.md (T): Rename to...
3644         (Yf): ...this.
3645         (U): Rename to...
3646         (Yd): ...this.
3647         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
3648         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
3650 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
3652         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
3653         (*subsi3_carryin_uxtw): Likewise.
3655 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
3657         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
3658         (*rorsi3_insn_uxtw): Likewise.
3660 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
3662         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
3663         (*extrsi5_insn_uxtw): Likewise.
3665 2013-03-19  Richard Biener  <rguenther@suse.de>
3667         PR tree-optimization/56273
3668         * passes.c (init_optimization_passes): Move second VRP after DOM.
3670 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
3672         * config/i386/i386.md (*movti_internal): Merge from
3673         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
3674         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
3675         nox64 isa attributes.
3677 2013-03-18  Richard Biener  <rguenther@suse.de>
3679         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
3680         (unite): Likewise.
3681         (merge_node_constraints): Likewise.
3682         (build_succ_graph): Likewise.
3683         (valid_graph_edge): Inline into single caller.
3684         (unify_nodes): Likewise.  Use bitmap_set_bit return value
3685         and cache varinfo.
3686         (scc_visit): Fix formatting and variable use.
3687         (do_sd_constraint): Use gcc_checking_assert.
3688         (do_ds_constraint): Likewise.
3689         (do_complex_constraint): Likewise.
3690         (condense_visit): Likewise.  Cleanup.
3691         (dump_pred_graph): New function.
3692         (perform_var_substitution): Dump the pred-graph before
3693         variable substitution.
3694         (find_equivalent_node): Use gcc_checking_assert.
3695         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
3697 2013-03-18  Richard Biener  <rguenther@suse.de>
3699         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
3700         Remove cond_expr_stmt_list argument and do not gimplify the
3701         built expression.
3702         (vect_loop_versioning): Adjust.
3703         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
3704         Cleanup to use less temporaries.
3705         (vect_create_data_ref_ptr): Cleanup.
3707 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
3709         PR tree-optimization/56635
3710         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
3711         require types_compatible_p types.
3713 2013-03-18  Nick Clifton  <nickc@redhat.com>
3715         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
3716         spurious backslash.
3718         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
3719         Add missing line to comment describing function.
3721 2013-03-18  Richard Biener  <rguenther@suse.de>
3723         PR tree-optimization/56210
3724         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3725         Handle string / character search functions.
3726         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
3728 2013-03-18  Richard Biener  <rguenther@suse.de>
3730         PR middle-end/56483
3731         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
3732         and implement properly.
3733         * gimple.h (gimple_cond_single_var_p): Remove.
3735 2013-03-18  Richard Biener  <rguenther@suse.de>
3737         * tree-data-ref.h (find_data_references_in_loop): Declare.
3738         * tree-data-ref.c (get_references_in_stmt): Use a stack
3739         vector pre-allocated in the callers.
3740         (find_data_references_in_stmt): Adjust.
3741         (graphite_find_data_references_in_stmt): Likewise.
3742         (create_rdg_vertices): Likewise.
3743         (find_data_references_in_loop): Export.
3744         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
3745         Compute dependences here...
3746         (vect_analyze_data_refs): ...not here.  When we encounter
3747         a non-vectorizable data reference in basic-block vectorization
3748         truncate the data reference vector.  Do not bother to
3749         fixup data-dependence information for gather loads.
3750         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
3751         of data references, as reported.
3753 2013-03-18  Richard Biener  <rguenther@suse.de>
3755         PR tree-optimization/3713
3756         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
3757         has_constants and expr.
3758         (stmt_has_constants): Properly valueize SSA names when deciding
3759         whether the stmt has constants.
3761 2013-03-18  Richard Biener  <rguenther@suse.de>
3763         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
3764         whole function when there is nothing to do.
3765         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
3766         * tree-vectorizer.c (vectorize_loops): Update virtual and
3767         loop-closed SSA once.
3768         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
3770 2013-03-18  Richard Biener  <rguenther@suse.de>
3772         PR middle-end/56113
3773         * domwalk.c (bb_postorder): New global static.
3774         (cmp_bb_postorder): New function.
3775         (walk_dominator_tree): Replace scheme imposing an order for
3776         visiting dominator sons by one sorting them at the time they
3777         are pushed on the stack.
3779 2013-03-18  Richard Biener  <rguenther@suse.de>
3781         PR tree-optimization/39326
3782         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
3783         (struct mem_ref): Replace mem member with ao_ref typed member.
3784         (MEM_ANALYZABLE): Adjust.
3785         (memref_eq): Likewise.
3786         (mem_ref_alloc): Likewise.
3787         (gather_mem_refs_stmt): Likewise.
3788         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
3789         (execute_sm_if_changed_flag_set): Adjust.
3790         (execute_sm): Likewise.
3791         (ref_always_accessed_p): Likewise.
3792         (refs_independent_p): Likewise.
3793         (can_sm_ref_p): Likewise.
3795 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
3797         PR c/56566
3798         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
3799         return 1 even for !unsignedp.
3801 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
3803         * config/i386/i386.md (isa): Add x64 and nox64.
3804         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
3805         (*pushtf): Enable *roF alternative for x64 isa only.
3806         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
3807         mode attribute of integer alternatives to DImode for TARGET_64BIT.
3808         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
3809         (*movtf_internal): Merge from *movtf_internal_rex64 and
3810         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
3811         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
3812         nox64 isa attributes.
3813         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
3814         nox64 isa attributes.
3815         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
3817 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
3819         * config/alpha/alpha.c (TARGET_LRA_P): New define.
3821 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
3823         PR target/56640
3824         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
3825         class names.  Remove trailing comma after "ALL_REGS".
3827 2013-03-16  Jan Hubicka  <jh@suse.cz>
3829         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
3830         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
3831         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
3832         of cgraph_get_create_node.
3833         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
3835 2013-03-16  Jason Merrill  <jason@redhat.com>
3837         PR debug/49090
3838         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
3839         with DW_AT_default_value.
3841 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
3843         * BASE-VER: Set to 4.9.0.
3845 2013-03-14  Andi Kleen  <ak@linux.intel.com>
3847         PR target/56619
3848         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
3849         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
3850         Document _x* TSX intrinsics.
3852 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
3853             David Holsgrove  <david.holsgrove@xilinx.com>
3855         * configure.ac: Add MicroBlaze TLS support detection.
3856         * configure: Regenerate.
3857         * config/microblaze/microblaze-protos.h
3858         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
3859         symbol_mentioned_p, label_mentioned_p): Add prototypes.
3860         * config/microblaze/microblaze.c (microblaze_address_type): Add
3861         ADDRESS_TLS and tls_reloc address types.
3862         (microblaze_address_info): Add tls_reloc.
3863         (TARGET_HAVE_TLS): Define.
3864         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
3865          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
3866          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
3867         load_tls_operand,  microblaze_call_tls_get_addr,
3868         microblaze_legitimize_tls_address): New functions.
3869         (microblaze_classify_unspec): Handle UNSPEC_TLS.
3870         (get_base_reg): Use microblaze_tls_symbol_p.
3871         (microblaze_classify_address): Handle TLS.
3872         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
3873         label_mentioned_p and microblaze_tls_referenced_p.
3874         (microblaze_legitimize_address): Handle TLS.
3875         (microblaze_address_insns): Handle ADDRESS_TLS.
3876         (pic_address_needs_scratch): Handle TLS.
3877         (print_operand_address): Handle TLS.
3878         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
3879         (microblaze_expand_move): Handle TLS.
3880         (microblaze_legitimate_constant_p): Check
3881         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
3882         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
3883         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
3884         (PIC_OFFSET_TABLE_REGNUM): Set.
3885         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
3886         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
3887         (addsi3, movsi_internal2, movdf_internal): Update constraints
3888         * config/microblaze/predicates.md (arith_plus_operand): Define
3889         (move_operand): Redefine as move_src_operand,
3890         check microblaze_tls_referenced_p.
3892 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
3894         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
3895         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
3897 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
3899         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
3900         CC mode for AND.
3902 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
3904         PR tree-optimization/53265
3905         * common.opt (Waggressive-loop-optimizations): New option.
3906         * tree-ssa-loop-niter.c: Include tree-pass.h.
3907         (do_warn_aggressive_loop_optimizations): New function.
3908         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
3909         if number_of_latch_executions returned constant.
3910         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
3911         early.  If number_of_latch_executions returned constant, set
3912         nb_iterations_upper_bound back to it.
3913         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
3914         field.
3915         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
3916         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
3918         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
3919         (MULTILIB_OSDIRNAMES): Set.
3920         * genmultilib: If defaultosdirname doesn't start with :: , set
3921         defaultosdirname2 instead, clear it and emit two . multilib_raw
3922         entries instead of just one.
3924 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
3926         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
3927         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
3928         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
3929         (SUBTARGET_OVERRIDE_OPTIONS): New.
3931 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
3933         PR target/49880
3934         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
3935         (musermode): Convert to Var(TARGET_USERMODE).
3936         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
3937         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
3938         * config/sh/sh.c (sh_option_override): Use
3939         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
3940         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
3941         condition.
3942         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
3943         TARGET_SH4.
3944         (udivsi3_i4_single, divsi3_i4_single): Use
3945         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
3947 2013-03-13  Dave Korn  <dave.korn.cygwin@....>
3949         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
3950         default setting.
3952 2013-03-13  Richard Biener  <rguenther@suse.de>
3954         PR tree-optimization/56608
3955         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
3956         calls when vectorizing basic-blocks.
3958 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
3960         PR plugins/45078
3961         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
3962         tm_file.
3964 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
3966         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
3968 2013-03-11  Jan Hubicka  <jh@suse.cz>
3970         PR lto/56557
3971         * lto-streamer-out.c (output_symbol_p): Skip references from
3972         constructors of external variables.
3974 2013-03-11  Jan Hubicka  <jh@suse.cz>
3976         PR middle-end/56571
3977         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
3978         from pseudos.
3979         * emit-rtl.c (verify_rtx_sharing): Likewise.
3980         (copy_insn_1): Likewise.
3981         * rtl.c (copy_rtx): Likewise.
3983 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
3985         PR target/56591
3986         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
3987         output_operand_lossage message.
3989 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
3991         PR target/56470
3992         * arm.c (shift_op): Validate RTL pattern on the fly.
3993         (arm_print_operand, case 'S'): Don't use shift_operator to validate
3994         the RTL.
3996 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3998         PR target/56347
3999         * config/pa/pa.md (call_value): Check for calls to powf and direct to
4000         new call patterns that clobber %fr12.
4001         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
4002         split and postreload patterns.
4003         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
4004         registers %fr12 and %fr12R as call used.
4006 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
4008         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
4009         (canon_address, record_store, replace_read, check_mem_read_rtx,
4010         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
4011         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
4012         rest_of_handle_dse): Likewise.
4014 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
4016         PR middle-end/56524
4017         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
4018         Add base_optabs.
4019         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
4020         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
4021         (save_optabs_if_changed): Replace with...
4022         (init_tree_optimization_optabs): ...this.
4023         * optabs.c (save_optabs_if_changed): Rename to...
4024         (init_tree_optimization_optabs): ...this.  Take the optimization node
4025         as argument.  Do nothing if the base optabs are already correct.
4026         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
4027         to recompute optabs.
4028         * function.h (function): Remove optabs field.
4029         * function.c (invoke_set_current_function_hook): Call
4030         init_tree_optimization_optabs.  Use the result to initialize
4031         this_fn_optabs.
4033 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
4035         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
4036         if GTMA_HAS_NO_INSTRUMENTATION.
4037         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
4038         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
4039         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
4040         * gimple-pretty-print.c (dump_gimple_transaction): Handle
4041         GTMA_HAS_NO_INSTRUMENTATION.
4043 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
4045         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
4046         libasan_preinit.o.
4048 2013-03-08  Marek Polacek  <polacek@redhat.com>
4049             Jakub Jelinek  <jakub@redhat.com>
4051         PR tree-optimization/56478
4052         * predict.c (is_comparison_with_loop_invariant_p): Change the
4053         type of loop_step to tree.
4054         (predict_loops): Adjust.
4055         (predict_iv_comparison): Perform the computations on double_ints.
4057 2013-03-08  Richard Biener  <rguenther@suse.de>
4059         PR tree-optimization/56570
4060         * tree-cfg.c (verify_expr_location_1): Verify locations for
4061         DECL_DEBUG_EXPR.
4062         * tree-sra.c (create_access_replacement): Strip locations
4063         from DECL_DEBUG_EXPRs.
4065 2013-03-08  Richard Biener  <rguenther@suse.de>
4067         * tree-inline.c (expand_call_inline): Do not associate
4068         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
4069         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
4071 2013-03-08  Richard Biener  <rguenther@suse.de>
4073         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
4074         or block changes with -Og.  Fix for location / block encoding
4075         changes and PHI arguments with locations.
4077 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
4079         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
4080         for all counters.
4081         (struct output_info): Likewise.
4082         (register_overhead): Remove bad gcc_assert.
4083         (bitmap_find_bit): If there is only a single bitmap element, do not
4084         count a miss as a search.
4085         (print_statistics): Update for counter type changes.
4086         (dump_bitmap_statistics): Likewise.  Print headers such that they
4087         are properly lined up with the printed counters.
4089 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
4091         PR tree-optimization/56559
4092         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
4093         check that it has only a single use.
4095 2013-03-07  Richard Biener  <rguenther@suse.de>
4097         * doc/invoke.texi (fwhole-program): Discourage use in combination
4098         with -flto.
4100 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
4102         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
4104         PR tree-optimization/56539
4105         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
4106         instead of GSI_CONTINUE_LINKING as last argument to
4107         force_gimple_operand_gsi.  Adjust function comment.
4109         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
4110         aarch64-cores.def.
4112         PR middle-end/56548
4113         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
4114         promoted mode, convert the result back to the original mode.
4116 2013-03-06  Richard Biener  <rguenther@suse.de>
4118         PR middle-end/56294
4119         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
4120         (insert_updated_phi_nodes_compare_uids): New function.
4121         (update_ssa): Sort symbols_to_rename after UID before
4122         traversing it to insert PHI nodes.
4124 2013-03-06  Richard Biener  <rguenther@suse.de>
4126         PR middle-end/50494
4127         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
4128         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
4130         Revert
4131         2013-02-13  Richard Biener  <rguenther@suse.de>
4133         PR lto/50494
4134         * varasm.c (output_constant_def_1): Get the decl representing
4135         the constant as argument.
4136         (output_constant_def): Wrap output_constant_def_1.
4137         (make_decl_rtl): Use output_constant_def_1 with the decl
4138         representing the constant.
4139         (build_constant_desc): Optionally re-use a decl already
4140         representing the constant.
4141         (tree_output_constant_def): Adjust.
4143 2013-03-06  Joey Ye  <joey.ye@arm.com>
4145         PR lto/50293
4146         * gcc.c (convert_white_space): New function.
4147         (main): Handles white space in function name.
4149 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
4151         PR target/56529
4152         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
4153         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
4154         to SH_DIV_CALL_TABLE for TARGET_SH2.
4155         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
4156         list.
4157         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
4158         call-table options.
4160 2013-03-05  Sterling Augustine  <saugustine@google.com>
4161             Cary Coutant  <ccoutant@google.com>
4163         PR debug/55364
4164         * dwarf2out.c (resolve_addr): Don't call
4165         remove_loc_list_addr_table_entries a second time for the same
4166         expression.
4168 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
4170         PR debug/56510
4171         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
4172         (avoid_complex_debug_insns): New function.
4173         (expand_debug_locations): Call it.
4175         PR rtl-optimization/56484
4176         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
4177         lifetimes of hard registers on small register class machines.
4179 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
4181         * config/microblaze/microblaze-protos.h: Rename
4182         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
4183         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
4184         fast_interrupt.
4185         (microblaze_fast_interrupt_function_p): New function.
4186         (microblaze_is_interrupt_handler): Rename to
4187         microblaze_is_interrupt_variant and add fast_interrupt check.
4188         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
4189         (save_restore_insns): Likewise.
4190         (compute_frame_size): Likewise.
4191         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
4192         (microblaze_globalize_label): Likewise.
4193         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
4194         * config/microblaze/microblaze.md: Use wrapper
4195         microblaze_is_interrupt_variant.
4197 2013-03-05  Kai Tietz  <ktietz@redhat.com>
4199         * sdbout.c (sdbout_one_type): Switch to current function's section
4200         supporting cold/hot.
4202 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
4204         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
4205         -mxl-reorder.
4207 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
4209         PR middle-end/56461
4210         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
4211         if VALGRIND_GET_VBITS is defined, temporarily make object
4212         memory all defined, and restore previous valgrind addressability
4213         and definability afterwards.  Free this_object at the end.
4215         PR middle-end/56461
4216         * lra.c (lra): Call lra_clear_live_ranges if live_p,
4217         right before calling lra_create_live_ranges, also call it
4218         when clearing live_p.  Only call lra_clear_live_ranges
4219         at the end if live_p.
4221         PR middle-end/56461
4222         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
4224 2013-03-05  Richard Biener  <rguenther@suse.de>
4226         PR tree-optimization/56521
4227         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
4228         value-id.
4230 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
4232         PR c++/55135
4233         * except.h (remove_unreachable_eh_regions): New prototype.
4234         * except.c (remove_eh_handler_splicer): New function, split out
4235         of remove_eh_handler.
4236         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
4237         warning about running it on many EH regions one at a time.
4238         (remove_unreachable_eh_regions_worker): New function, walk the
4239         EH tree in depth-first order and remove non-marked regions.
4240         (remove_unreachable_eh_regions): New function.
4241         * tree-eh.c (mark_reachable_handlers): New function, split out
4242         from remove_unreachable_handlers.
4243         (remove_unreachable_handlers): Use mark_reachable_handlers and
4244         remove_unreachable_eh_regions.
4245         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
4246         and remove_unreachable_eh_regions.
4248 2013-03-05  Richard Biener  <rguenther@suse.de>
4250         PR middle-end/56525
4251         * loop-init.c (fix_loop_structure): Remove loops in two stages,
4252         not freeing them until the end.
4254 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4256         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
4258 2013-03-05  Richard Biener  <rguenther@suse.de>
4260         PR tree-optimization/56270
4261         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
4262         of loads after scheduling an SLP instance.
4264 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
4266         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
4267         tic6x.exp.
4268         (check_gcc_parallelize): Run guality.exp as a separate job from
4269         vect.exp with unsorted.exp and $(dg_target_exps) separately from
4270         struct-layout-1.exp with stackalign.exp.
4272         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
4274         PR middle-end/56461
4275         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
4276         load_index sbitmap even if some bit in it isn't set.
4278         PR middle-end/56461
4279         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
4280         (discover_iteration_bound_by_body_walk): Change queues to
4281         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
4282         spelling in comment.  Call safe_push on queues[bound_index] directly.
4283         Release queues[queue_index] in every iteration unconditionally.
4284         Release bounds vector.
4286         PR middle-end/56461
4287         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
4288         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
4289         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
4290         inner_phis vector.
4292 2013-03-05  Richard Biener  <rguenther@suse.de>
4294         PR lto/56515
4295         * tree-inline.c (remap_blocks_to_null): New function.
4296         (expand_call_inline): When expanding a call stmt without
4297         an associated block inline remap all callee blocks to NULL.
4299 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
4301         PR rtl-optimization/56494
4302         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
4303         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
4304         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
4306         PR middle-end/56461
4307         * sel-sched-ir.c (free_sched_pools): Release
4308         succs_info_pool.stack[succs_info_pool.max_top] vectors too
4309         if succs_info_pool.max_top isn't -1.
4311         PR bootstrap/56509
4312         * opts.c (opts_obstack, opts_concat): Moved to...
4313         * opts-common.c (opts_obstack, opts_concat): ... here.
4315 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
4317         PR middle-end/56461
4318         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
4320 2013-03-04  Martin Jambor  <mjambor@suse.cz>
4322         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
4323         all appropriate places.
4325 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
4327         PR tree-optimization/56424
4328         * ipa-split.c (split_function): Do not set the RSO flag if result is
4329         not by reference and its type is a register type.
4331 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
4333         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
4334         (microblaze_legitimate_pic_operand): Likewise
4335         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
4336         new function microblaze_legitimate_pic_operand
4337         * config/microblaze/microblaze-protos.h
4338         (microblaze_legitimate_pic_operand): Declare.
4340 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
4342         * config/microblaze/predicates.md (call_insn_simple_operand):
4343         New predicate for supported rtx code types.
4344         * config/microblaze/microblaze.md (call_internal1): Use
4345         call_insn_simple_operand predicate.
4347 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
4349         PR middle-end/56461
4350         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
4351         partitions.ordered_remove.
4353         PR middle-end/56461
4354         * tree-vect-stmts.c (vectorizable_conversion): Don't call
4355         vec_oprnds0.create (1) for modifier == NONE.
4357         PR middle-end/56461
4358         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
4359         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
4360         vec_oprnds1 right before pushing anything to it for
4361         scalar_shift_arg.
4363         PR middle-end/56461
4364         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
4365         set nbbs to 0 instead of having separate code path.
4366         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
4367         instead of false as last argument if returning NULL.
4369 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
4371         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
4372         the attribute is now called "target" instead of "option".
4373         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
4374         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
4375         attribute/pragma name for TARGET_OPTION_VALID_P and
4376         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
4377         * doc/tm.texi: Regenerated.
4379 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
4381         * config/microblaze/microblaze.c:
4382         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
4383         * config/microblaze/microblaze.h: Add -mxl-reorder to
4384         DRIVER_SELF_SPECS.
4385         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
4386         instructions emitted if TARGET_REORDER.
4387         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
4388         or 0 for -m/-mno case, but initialises as 2 to detect default use case
4389         separately.
4391 2013-03-01  Xinliang David Li  <davidxl@google.com>
4393         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
4394         walk length.
4396 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
4398         PR middle-end/56461
4399         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
4400         vector even when returning true.  Fix up function comment formatting.
4402         PR middle-end/56461
4403         * ira-build.c (ira_loop_nodes_count): New variable.
4404         (create_loop_tree_nodes): Initialize it.
4405         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
4407         PR middle-end/56461
4408         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
4409         method on dr_chain and result_chain.
4410         * tree-vect-stmts.c (vectorizable_store): Only call
4411         result_chain.create if j == 0.
4413         PR middle-end/56461
4414         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
4415         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
4416         before overwriting it.
4418 2013-03-01  Tobias Burnus  <burnus@net-b.de>
4420         * doc/extended.texi (C Extensions): Change order in @menu
4421         to match @node.
4422         (Other MIPS Built-in Functions): Move last MIPS entry before
4423         "picoChip Built-in Functions".
4424         (SH Built-in Functions): Move after RX Built-in Functions.
4425         * doc/gcc.texi (Introduction): Change order in @menu
4426         to match @node.
4427         * doc/md.texi (Constraints): Ditto.
4428         * gty.texi (Type Information): Ditto.
4429         (User-provided marking routines for template types): Make
4430         subsection.
4431         * doc/invoke.texi (AArch64 Options): Move before
4432         "Adapteva Epiphany Options".
4434 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
4435             Jakub Jelinek  <jakub@redhat.com>
4437         PR sanitizer/56454
4438         * asan.c (gate_asan): Lookup no_sanitize_address instead of
4439         no_address_safety_analysis attribute.
4440         * doc/extend.texi (no_address_safety_attribute): Rename to
4441         no_sanitize_address attribute, mention no_address_safety_analysis
4442         attribute as deprecated alias.
4444 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
4446         PR middle-end/56461
4447         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
4448         type to vec<vec<tree> > *.
4449         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
4450         to be vec<tree> instead of vec<tree> *, set vec_defs
4451         to vNULL and call vec_defs.create (number_of_vects), adjust other
4452         uses of vec_defs.
4453         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
4454         vectorizable_condition): Adjust vect_get_slp_defs callers.
4456 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
4458         * config/aarch64/aarch64.c
4459         (aarch64_float_const_representable): Remove unused variable.
4461 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
4463         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
4465 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
4467         * config/aarch64/aarch64-builtins.c
4468         (aarch64_init_simd_builtins): Make static.
4470 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
4472         * config/aarch64/aarch64.c
4473         (aarch64_simd_make_constant): Make static.
4475 2013-02-28  Martin Jambor  <mjambor@suse.cz>
4477         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
4478         with no initialization to the RHS of debug statements.
4480 2013-02-28  Martin Jambor  <mjambor@suse.cz>
4482         PR tree-optimization/56294
4483         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
4484         Adjust dumping.
4485         (get_access_replacement): Do not call create_access_replacement.
4486         Assert a replacement exists.
4487         (get_repl_default_def_ssa_name): Create the replacement declaration
4488         itself.
4490 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4492         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
4493         final_end_function.
4495 2013-02-28  Marek Polacek  <polacek@redhat.com>
4497         PR rtl-optimization/56466
4498         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
4499         if we're changing a loop.
4500         (peel_loops_completely): Likewise.
4502 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
4504         PR c++/55813
4505         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
4507 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
4509         PR target/56445
4510         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
4511         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
4512         INTX_FTYPE_FX, FX_FTYPE_INTX.
4513         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
4515 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
4517         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
4518         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
4519         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
4520         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
4521         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
4522         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
4523         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
4524         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
4525         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
4526         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
4527         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
4528         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
4529         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
4530         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
4531         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
4532         (avrxmega6): Increase max flash segments from 5 to 6.
4533         * config/avr/t-multilib: Regenerate.
4534         * config/avr/avr-tables.opt: Regenerate.
4535         * doc/avr-mmcu.texi: Regenerate.
4537 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
4539         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
4540         (avr_device_to_arch): Rename to avr_device_to_ld.
4541         (avr_device_to_as): New prototype.
4542         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
4543         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
4544         * config/avr/driver-avr.c (avr_device_to_as): New.
4545         (avr_device_to_arch): Rename to avr_device_to_ld.
4547 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
4549         PR middle-end/56461
4550         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
4551         method on dr_chain and result_chain.
4553         PR middle-end/56461
4554         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
4555         pointer_set_destroy on not_executed_last_iteration.
4557         PR middle-end/56461
4558         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
4560         PR middle-end/56461
4561         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
4562         FOR_EACH_DEFINED_FUNCTION when freeing state.
4564         PR middle-end/56461
4565         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
4566         pool_free.
4567         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
4568         overwriting it.
4570         PR middle-end/56461
4571         * ipa-cp.c (decide_whether_version_node): Call vec_free on
4572         known_aggs[i].items and release known_aggs vector.
4574         PR middle-end/56461
4575         * ipa-reference.c (propagate): Free node_info even for alias nodes.
4577 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
4579         * config/microblaze/microblaze.c (microblaze_emit_compare):
4580         Use xor for EQ/NE comparisions.
4581         * config/microblaze/microblaze.md (cstoresf4): Add constraints
4582         (cbranchsf4): Adjust operator to comparison_operator.
4584 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
4586         PR middle-end/56461
4587         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
4588         vector.
4589         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
4590         vec_safe_push, always update *slot.
4591         (redirect_edge_var_map_clear): Use vec_free.
4592         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
4593         (free_var_map_entry): Use vec_free.
4594         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
4595         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
4597 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
4599         PR middle-end/45472
4600         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
4601         when the may_trap_p bit of the exprs being merged differs.
4602         Reorder tests for speculativeness in the logical and operator.
4604 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
4606         * incpath.c (add_standard_paths): Use reconcat instead of concat
4607         where appropriate and avoid leaking memory.
4609         * opts.h: Include obstack.h.
4610         (opts_concat): New prototype.
4611         (opts_obstack): New declaration.
4612         * opts.c (opts_concat): New function.
4613         (opts_obstack): New variable.
4614         (init_options_struct): Call gcc_init_obstack on opts_obstack.
4615         (finish_options): Use opts_concat instead of concat
4616         and XOBNEWVEC instead of XNEWVEC.
4617         * opts-common.c (generate_canonical_option, decode_cmdline_option,
4618         generate_option): Likewise.
4619         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
4620         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
4622         PR target/56455
4623         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
4624         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
4626 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
4628         PR middle-end/56461
4629         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
4631 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
4633         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
4634         (arm_block_move_unaligned_straight): Likewise.
4635         (arm_adjust_block_mem): Likewise.
4637 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
4639         PR target/48901
4640         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
4641         temp, cond and label.
4642         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
4644         PR target/52500
4645         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
4646         * config/c6x/c6x.h (dbx_register_map): Update declaration.
4648         PR target/52501
4649         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
4650         of prologue/epilogue functions.
4652         PR target/52550
4653         * config/tilegx/tilegx.c (tilegx_expand_prologue):
4654         Remove unused variable cfa_offset.
4655         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
4657         PR target/54639
4658         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
4659         type promotion to unsigned.
4661         PR target/54640
4662         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
4663         for HOST_WIDE_INT of 32 bit / same size as int.
4664         (arm_block_move_unaligned_straight): Likewise.
4665         (arm_adjust_block_mem): Likewise.
4667         PR target/54662
4668         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
4669         ALL_CFLAGS.
4671 2013-02-26  Marek Polacek  <polacek@redhat.com>
4673         PR tree-optimization/56426
4674         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
4676 2013-02-26  Richard Biener  <rguenther@suse.de>
4678         PR target/56444
4679         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
4680         unused variable loops.
4682 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
4684         PR tree-optimization/56448
4685         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
4686         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
4687         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
4688         later operands of the references, or even first operand for
4689         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
4691         PR tree-optimization/56443
4692         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
4693         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
4694         to type_for_mode langhook.
4696 2013-02-25  Matt Turner  <mattst88@gmail.com>
4698         * doc/invoke.texi: Document r4700.
4700 2013-02-25  Richard Biener  <rguenther@suse.de>
4702         PR tree-optimization/56175
4703         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
4704         split out from ...
4705         (simplify_bitwise_binary): ... here.  Also guard the conversion
4706         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
4708 2013-02-25  Catherine Moore  <clm@codesourcery.com>
4710         Revert:
4711         2013-02-24  Catherine Moore  <clm@codesourcery.com>
4712             Maciej W. Rozycki  <macro@codesourcery.com>
4713             Tom de Vries  <tom@codesourcery.com>
4714             Nathan Sidwell  <nathan@codesourcery.com>
4715             Iain Sandoe  <iain@codesourcery.com>
4716             Nathan Froyd  <froydnj@codesourcery.com>
4717             Chao-ying Fu  <fu@mips.com>
4719         * doc/extend.texi: (micromips, nomicromips, nocompression):
4720         Document new function attributes.
4721         * doc/invoke.texi (minterlink-compressed, mmicromips,
4722         m14k, m14ke, m14kec): Document new options.
4723         (minterlink-mips16): Update documentation.
4724         * doc/md.texi (ZC, ZD): Document new constraints.
4725         * configure.ac (gcc_cv_as_micromips): Check if linker
4726         supports the .set micromips directive.
4727         * configure: Regenerate.
4728         * config.in: Regenerate.
4729         * config/mips/mips-tables.opt: Regenerate.
4730         * config/mips/micromips.md: New file.
4731         * constraints.md (ZC, AD): New constraints.
4732         * config/mips/predicates.md (movep_src_register): New predicate.
4733         (movep_src_operand): New predicate.
4734         (non_volatile_mem_operand): New predicate.
4735         * config/mips/mips.md (multimem): New type.
4736         (length): Differentiate between 17-bit and 18-bit branch offsets.
4737         (MOVEP1, MOVEP2): New mode iterator.
4738         (mov_<load>l): Use ZC constraint.
4739         (mov_<load>r): Likewise.
4740         (mov_<store>l): Likewise.
4741         (mov_<store>r): Likewise.
4742         (*branch_equality<mode>_inverted): Add microMIPS support.
4743         (*branch_equality<mode>): Likewise.
4744         (*jump_absolute): Likewise.
4745         (indirect_jump_<mode>): Likewise.
4746         (tablejump_<mode>): Likewise.
4747         (<optab>_internal): Likewise.
4748         (sibcall_internal): Likewise.
4749         (sibcall_value_internal): Likewise.
4750         (prefetch): Use constraint ZD.
4751         * config/mips/mips.opt (minterlink-compressed): New option.
4752         (minterlink-mips16): Now an alias for minterlink-compressed.
4753         (mmicromips): New option.
4754         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
4755         (compare_and_swap_12): Likewise.
4756         (sync_add<mode>): Likewise.
4757         (sync_<optab>_12): Likewise.
4758         (sync_old_<optab>_12): Likewise.
4759         (sync_new_<optab>_12): Likewise.
4760         (sync_nand_12): Likewise.
4761         (sync_old_nand_12): Likewise.
4762         (sync_new_nand_12): Likewise.
4763         (sync_sub<mode>): Likewise.
4764         (sync_old_add<mode>): Likewise.
4765         (sync_old_sub<mode>): Likewise.
4766         (sync_new_add<mode>): Likewise.
4767         (sync_new_sub<mode>): Likewise.
4768         (sync_<optab><mode>): Likewise.
4769         (sync_old_<optab><mode>): Likewise.
4770         (sync_new_<optab><mode>): Likewise.
4771         (sync_nand<mode>): Likewise.
4772         (sync_old_nand<mode>): Likewise.
4773         (sync_new_nand<mode>): Likewise.
4774         (sync_lock_test_and_set<mode>): Likewise.
4775         (test_and_set_12): Likewise.
4776         (atomic_compare_and_swap<mode>): Likewise.
4777         (atomic_exchange<mode>_llsc): Likewise.
4778         (atomic_fetch_add<mode>_llsc): Likewise.
4779         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
4780         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
4781         (umips_save_restore_pattern_p): Likewise.
4782         (umips_load_store_pair_p): Likewise.
4783         (umips_output_load_store_pair): Likewise.
4784         (umips_movep_target_p): Likewise.
4785         (umips_12bit_offset_address_p): Likewise.
4786         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
4787         (mips_base_mips16): Rename this...
4788         (mips_base_compression_flags): ...to this. Update all uses.
4789         (mips_attribute_table): Add micromips, nomicromips and nocompression.
4790         (mips_mips16_decl_p): Delete.
4791         (mips_nomips16_decl_p): Delete.
4792         (mips_get_compress_on_flags): New function.
4793         (mips_get_compress_off_flags): New function.
4794         (mips_get_compress_mode): New function.
4795         (mips_get_compress_on_name): New function.
4796         (mips_get_compress_off_name): New function.
4797         (mips_insert_attributes): Support multiple compression types.
4798         (mips_merge_decl_attributes): Likewise.
4799         (umips_12bit_offset_address_p): New function.
4800         (mips_start_function_definition): Emit .set micromips directive.
4801         (mips_call_may_need_jalx_p): New function.
4802         (mips_function_ok_for_sibcall): Add microMIPS support.
4803         (mips_print_operand_punctuation): Support short delay slots and
4804         compact jumps.
4805         (umips_swm_mask, umips_swm_encoding): New.
4806         (umips_build_save_restore): New function.
4807         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
4808         (was_mips16_p): Remove.
4809         (old_compression_mode): New.
4810         (mips_set_compression_mode): New function.
4811         (mips_set_current_function): Add microMIPS support.
4812         (mips_option_override): Likewise.
4813         (umips_save_restore_pattern_p): New function.
4814         (umips_output_save_restore): New function.
4815         (umips_load_store_pair_p_1): New function.
4816         (umips_load_store_pair_p): New function.
4817         (umips_output_load_store_pair_1): New function.
4818         (umips_output_load_store_pair): New function.
4819         (umips_movep_target_p) New function.
4820         (mips_prepare_pch_save): Add microMIPS support.
4821         * config/mips/mips.h (TARGET_COMPRESSION): New.
4822         (TARGET_CPU_CPP_BUILTINS): Update macro
4823         to use new compression flags and to support microMIPS.
4824         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
4825         (MIPS_ARCH_FLOAT_SPEC): Likewise.
4826         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
4827         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
4828         (ASM_SPEC): Support mmicromips and mno-micromips.
4829         (M16STORE_REG_P): New macro.
4830         (MIPS_CALL): Support TARGET_MICROMIPS.
4831         (MICROMIPS_J): New macro.
4832         (mips_base_mips16): Rename this...
4833         (mips_base_compression_flags): ...to this.
4834         (UMIPS_12BIT_OFFSET_P): New macro.
4835         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
4836         (MULTILIB_DIRNAMES): Likewise.
4838 2013-02-25  Tom de Vries  <tom@codesourcery.com>
4840         PR rtl-optimization/56131
4841         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
4842         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
4843         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
4845 2013-02-25  Tobias Burnus  <burnus@net-b.de>
4847         * doc/invoke.texi (-fsanitize=): Move from optimization
4848         to debugging options.
4850 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
4852         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
4854 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
4855             Alexander Monakov  <amonakov@ispras.ru>
4857         PR middle-end/56077
4858         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
4859         flush pending lists also on non-jumps.  Adjust comment.
4861 2013-02-24  Catherine Moore  <clm@codesourcery.com>
4862             Maciej W. Rozycki  <macro@codesourcery.com>
4863             Tom de Vries  <tom@codesourcery.com>
4864             Nathan Sidwell  <nathan@codesourcery.com>
4865             Iain Sandoe  <iain@codesourcery.com>
4866             Nathan Froyd  <froydnj@codesourcery.com>
4867             Chao-ying Fu  <fu@mips.com>
4869         * doc/extend.texi: (micromips, nomicromips, nocompression):
4870         Document new function attributes.
4871         * doc/invoke.texi (minterlink-compressed, mmicromips,
4872         m14k, m14ke, m14kec): Document new options.
4873         (minterlink-mips16): Update documentation.
4874         * doc/md.texi (ZC, ZD): Document new constraints.
4875         * configure.ac (gcc_cv_as_micromips): Check if linker
4876         supports the .set micromips directive.
4877         * configure: Regenerate.
4878         * config.in: Regenerate.
4879         * config/mips/mips-tables.opt: Regenerate.
4880         * config/mips/micromips.md: New file.
4881         * constraints.md (ZC, AD): New constraints.
4882         * config/mips/predicates.md (movep_src_register): New predicate.
4883         (movep_src_operand): New predicate.
4884         (non_volatile_mem_operand): New predicate.
4885         * config/mips/mips.md (multimem): New type.
4886         (length): Differentiate between 17-bit and 18-bit branch offsets.
4887         (MOVEP1, MOVEP2): New mode iterator.
4888         (mov_<load>l): Use ZC constraint.
4889         (mov_<load>r): Likewise.
4890         (mov_<store>l): Likewise.
4891         (mov_<store>r): Likewise.
4892         (*branch_equality<mode>_inverted): Add microMIPS support.
4893         (*branch_equality<mode>): Likewise.
4894         (*jump_absolute): Likewise.
4895         (indirect_jump_<mode>): Likewise.
4896         (tablejump_<mode>): Likewise.
4897         (<optab>_internal): Likewise.
4898         (sibcall_internal): Likewise.
4899         (sibcall_value_internal): Likewise.
4900         (prefetch): Use constraint ZD.
4901         * config/mips/mips.opt (minterlink-compressed): New option.
4902         (minterlink-mips16): Now an alias for minterlink-compressed.
4903         (mmicromips): New option.
4904         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
4905         (compare_and_swap_12): Likewise.
4906         (sync_add<mode>): Likewise.
4907         (sync_<optab>_12): Likewise.
4908         (sync_old_<optab>_12): Likewise.
4909         (sync_new_<optab>_12): Likewise.
4910         (sync_nand_12): Likewise.
4911         (sync_old_nand_12): Likewise.
4912         (sync_new_nand_12): Likewise.
4913         (sync_sub<mode>): Likewise.
4914         (sync_old_add<mode>): Likewise.
4915         (sync_old_sub<mode>): Likewise.
4916         (sync_new_add<mode>): Likewise.
4917         (sync_new_sub<mode>): Likewise.
4918         (sync_<optab><mode>): Likewise.
4919         (sync_old_<optab><mode>): Likewise.
4920         (sync_new_<optab><mode>): Likewise.
4921         (sync_nand<mode>): Likewise.
4922         (sync_old_nand<mode>): Likewise.
4923         (sync_new_nand<mode>): Likewise.
4924         (sync_lock_test_and_set<mode>): Likewise.
4925         (test_and_set_12): Likewise.
4926         (atomic_compare_and_swap<mode>): Likewise.
4927         (atomic_exchange<mode>_llsc): Likewise.
4928         (atomic_fetch_add<mode>_llsc): Likewise.
4929         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
4930         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
4931         (umips_save_restore_pattern_p): Likewise.
4932         (umips_load_store_pair_p): Likewise.
4933         (umips_output_load_store_pair): Likewise.
4934         (umips_movep_target_p): Likewise.
4935         (umips_12bit_offset_address_p): Likewise.
4936         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
4937         (mips_base_mips16): Rename this...
4938         (mips_base_compression_flags): ...to this. Update all uses.
4939         (mips_attribute_table): Add micromips, nomicromips and nocompression.
4940         (mips_mips16_decl_p): Delete.
4941         (mips_nomips16_decl_p): Delete.
4942         (mips_get_compress_on_flags): New function.
4943         (mips_get_compress_off_flags): New function.
4944         (mips_get_compress_mode): New function.
4945         (mips_get_compress_on_name): New function.
4946         (mips_get_compress_off_name): New function.
4947         (mips_insert_attributes): Support multiple compression types.
4948         (mips_merge_decl_attributes): Likewise.
4949         (umips_12bit_offset_address_p): New function.
4950         (mips_start_function_definition): Emit .set micromips directive.
4951         (mips_call_may_need_jalx_p): New function.
4952         (mips_function_ok_for_sibcall): Add microMIPS support.
4953         (mips_print_operand_punctuation): Support short delay slots and
4954         compact jumps.
4955         (umips_swm_mask, umips_swm_encoding): New.
4956         (umips_build_save_restore): New function.
4957         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
4958         (was_mips16_p): Remove.
4959         (old_compression_mode): New.
4960         (mips_set_compression_mode): New function.
4961         (mips_set_current_function): Add microMIPS support.
4962         (mips_option_override): Likewise.
4963         (umips_save_restore_pattern_p): New function.
4964         (umips_output_save_restore): New function.
4965         (umips_load_store_pair_p_1): New function.
4966         (umips_load_store_pair_p): New function.
4967         (umips_output_load_store_pair_1): New function.
4968         (umips_output_load_store_pair): New function.
4969         (umips_movep_target_p) New function.
4970         (mips_prepare_pch_save): Add microMIPS support.
4971         * config/mips/mips.h (TARGET_COMPRESSION): New.
4972         (TARGET_CPU_CPP_BUILTINS): Update macro
4973         to use new compression flags and to support microMIPS.
4974         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
4975         (MIPS_ARCH_FLOAT_SPEC): Likewise.
4976         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
4977         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
4978         (ASM_SPEC): Support mmicromips and mno-micromips.
4979         (M16STORE_REG_P): New macro.
4980         (MIPS_CALL): Support TARGET_MICROMIPS.
4981         (MICROMIPS_J): New macro.
4982         (mips_base_mips16): Rename this...
4983         (mips_base_compression_flags): ...to this.
4984         (UMIPS_12BIT_OFFSET_P): New macro.
4985         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
4986         (MULTILIB_DIRNAMES): Likewise.
4988 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
4990         PR target/52555
4991         * target-globals.c (save_target_globals): For init_reg_sets and
4992         target_reinit remporarily set this_fn_optabs to this_target_optabs.
4994 2013-02-22  James Grennahlgh  <james.greenhalgh@arm.com>
4996         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
4997         * config/aarch64/t-aarch64
4998         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
5000 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
5002         PR inline-asm/56148
5003         * lra-constraints.c (process_alt_operands): Reload operand
5004         conflicting with earlier clobber only if no more other conflicting
5005         operands.
5007 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
5009         PR sanitizer/56393
5010         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
5011         if not linking a shared library.
5013 2013-02-22  Seth LaForge  <sethml@google.com>
5015         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
5017 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
5019         * config/arm/arm.md (split for extendsidi): Update condition.
5020         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
5021         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
5022         (qhs_zextenddi_cstr): Likewise.
5024 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
5026         PR middle-end/56420
5027         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
5028         avoid signed wrapping.
5029         (expand_mult): Handle properly multiplication by
5030         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
5031         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
5032         in the compiler if coeff is HOST_WIDE_INT_MIN.
5033         (expand_divmod): Don't make ext_op1 static, change it's type to
5034         uhwi.  Avoid undefined behavior in -INTVAL (op1).
5036         PR rtl-optimization/50339
5037         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
5038         field.
5039         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
5040         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
5041         into splitting_ashiftrt field.
5042         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
5043         ASHIFTRT.
5044         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
5045         choices.
5047 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
5049         PR middle-end/56108
5050         * trans-mem.c (execute_tm_mark): Do not expand transactions that
5051         are sure to go irrevocable.
5053 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
5055         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
5056         scalars are valid operands.
5058 2013-02-21  Martin Jambor  <mjambor@suse.cz>
5060         PR tree-optimization/56310
5061         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
5062         only matching indices and non-negative final offsets.
5063         (intersect_aggregates_with_edge): Pass src_idx to
5064         agg_replacements_to_vector.  Pass src_idx insstead of index to
5065         intersect_with_agg_replacements.
5067 2013-02-21  Martin Jambor  <mjambor@suse.cz>
5069         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
5070         instead of hard-wired defaults.
5072 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
5074         * doc/invoke.texi (MIPS Options): Update documentation of the
5075         floating-point multiply-accumulate instruction restrictions.
5077 2013-02-21  Kostya Serebryany  <kcc@google.com>
5079         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
5080         asan_shadow_offset on x86_64 linux.
5082 2013-02-21  Richard Biener  <rguenther@suse.de>
5084         PR tree-optimization/56415
5085         Revert
5086         2013-02-11  Richard Biener  <rguenther@suse.de>
5088         PR tree-optimization/56273
5089         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
5090         first VRP run.
5092 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
5094         PR bootstrap/56258
5095         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
5096         instead of @itemx.
5098         PR inline-asm/56405
5099         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
5100         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
5102 2013-02-20  Jan Hubicka  <jh@suse.cz>
5104         PR tree-optimization/56265
5105         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
5106         when target is referenced for first time.
5108 2013-02-20  Richard Biener  <rguenther@suse.de>
5110         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
5111         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
5112         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
5113         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
5114         not return anything.
5115         (rename_ssa_copies): Do not remove unused locals.
5116         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
5117         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
5118         * passes.c (execute_function_todo): Do not schedule unused locals
5119         removal if cleanup_tree_cfg did something.
5120         * tree-ssa-live.c (remove_unused_locals): Dump statistics
5121         about the number of removed locals.
5123 2013-02-20  Richard Biener  <rguenther@suse.de>
5125         PR tree-optimization/56398
5126         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
5128 2013-02-20  Martin Jambor  <mjambor@suse.cz>
5130         PR tree-optimization/55334
5131         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
5132         restricted pointers to arrays.
5134 2013-02-20  Richard Biener  <rguenther@suse.de>
5135             Jakub Jelinek  <jakub@redhat.com>
5137         PR tree-optimization/56396
5138         * tree-ssa-ccp.c (n_const_val): New static variable.
5139         (get_value): Return NULL for SSA names we don't have a lattice
5140         entry for.
5141         (ccp_initialize): Initialize n_const_val.
5142         * tree-ssa-copy.c (n_copy_of): New static variable.
5143         (init_copy_prop): Initialize n_copy_of.
5144         (get_value): Return NULL_TREE for SSA names we don't have a
5145         lattice entry for.
5147 2013-02-20  Martin Jambor  <mjambor@suse.cz>
5149         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
5151 2013-02-20  Richard Biener  <rguenther@suse.de>
5153         * genpreds.c (write_lookup_constraint): Do not compare first
5154         letter of the constraint again.
5156 2013-02-20  Richard Biener  <rguenther@suse.de>
5158         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
5159         and ceil_log2.
5160         (get_use_iv_cost): Terminate hashtable walk when coming across
5161         an empty entry.
5163 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
5165         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
5166         reassociation for avx2 targets.
5168 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
5170         * config/microblaze/microblaze.c: microblaze_has_clz = 0
5171         Add version check for v8.10.a to enable microblaze_has_clz
5172         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
5173         version and TARGET_PATTERN_COMPARE check
5174         * config/microblaze/microblaze.md: New clzsi2 instruction
5176 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
5178         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
5179         function before branching.
5181 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
5183         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
5184         DUMP_INSN_RTX_UID.
5185         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
5187 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
5189         PR middle-end/55889
5190         * sel-sched.c: Include ira.h.
5191         (implicit_clobber_conflict_p): New function.
5192         (moveup_expr): Use it.
5193         * Makefile.in (sel-sched.o): Depend on ira.h.
5195 2013-02-19  Richard Biener  <rguenther@suse.de>
5197         PR tree-optimization/56384
5198         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
5199         (vn_hash_type): Split out from ...
5200         (vn_hash_constant_with_type): ... here.
5201         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
5202         (vn_phi_eq): Compare types from vn_phi_s structure.
5203         (vn_phi_lookup): Populate vn_phi_s type.
5204         (vn_phi_insert): Likewise.
5206 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
5208         PR tree-optimization/56350
5209         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
5210         if haven't found reduction or nested cycle operand, rather than
5211         asserting we must find it.
5213         PR tree-optimization/56381
5214         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
5215         to fold_build3.
5217 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
5218             Jakub Jelinek  <jakub@redhat.com>
5220         PR target/52555
5221         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
5222         (swap_optab_enable): Same.
5223         (init_all_optabs): Use argument instead of global.
5224         * tree.h (struct tree_optimization_option): New field target_optabs.
5225         * expr.h (init_all_optabs): Add argument to prototype.
5226         (TREE_OPTIMIZATION_OPTABS): New.
5227         (save_optabs_if_changed): Protoize.
5228         * optabs.h: Declare this_fn_optabs.
5229         * optabs.c (save_optabs_if_changed): New.
5230         Declare this_fn_optabs.
5231         (init_optabs): Add argument to init_all_optabs() call.
5232         * function.c (invoke_set_current_function_hook): Handle per
5233         function optabs.
5234         * function.h (struct function): New field optabs.
5235         * config/mips/mips.c (mips_set_mips16_mode): Handle when
5236         optimization_current_node has changed.
5237         * target-globals.h (save_target_globals_default_opts): Protoize.
5238         * target-globals.c (save_target_globals_default_opts): New.
5240 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5242         PR target/56347
5243         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
5244         registers %fr12 and %fr12R as call used.
5246         PR target/56214
5247         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
5248         and HImode, require all displacements to be an integer multiple of
5249         their mode size.
5250         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
5251         only allow QImode and HImode when reload is in progress and strict is
5252         true.  Likewise for symbolic addresses.  Use base14_operand to check
5253         displacements in REG+BASE addresses.
5255 2013-02-18  Richard Biener  <rguenther@suse.de>
5257         PR tree-optimization/56366
5258         * tree-vect-loop.c (get_initial_def_for_induction): Properly
5259         handle sign-conversion of outer-loop initial induction value.
5261 2013-02-18  Richard Biener  <rguenther@suse.de>
5263         PR middle-end/56349
5264         * cfghooks.c (merge_blocks): If we merge a latch into another
5265         block adjust references to it.
5266         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
5267         (verify_loop_structure): Verify that a recorded latch is in fact
5268         a latch.
5270 2013-02-18  Richard Biener  <rguenther@suse.de>
5272         PR tree-optimization/56321
5273         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
5274         order SSA name release and virtual operand unlinking.
5276 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
5278         * config/microblaze/microblaze.md (save_stack_block): Define.
5279         (restore_stack_block): Likewise.
5281 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
5283         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
5284         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
5285         * config/microblaze/microblaze.c (microblaze_option_override):
5286         Bail out early for PIC modes when target does not support PIC.
5288 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
5290         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
5291         Replace with a microblaze version.
5292         (microblaze_trampoline_init): Adapt for microblaze.
5293         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
5294         microblaze.
5296 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
5297             Dodji Seketeli  <dodji@redhat.com>
5299         PR asan/56330
5300         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
5301         (instrument_mem_region_access): Do not forget to always put
5302         instrumentation of the of 'base' and 'base + len' in a "if (len !=
5303         0) statement, even for cases where either 'base' or 'base + len'
5304         are not instrumented -- because they have been previously
5305         instrumented.  Simplify the logic by putting all the statements
5306         instrument 'base + len' inside a sequence, and then insert that
5307         sequence right before the current insertion point.  Then, to
5308         instrument 'base + len', just get an iterator on that statement.
5309         And do not forget to update the pointer to iterator the function
5310         received as argument.
5312 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
5314         PR rtl-optimization/56348
5315         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
5317 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
5319         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
5320         (clean_graph_dump_file): Pass base to start_graph_dump.
5322 2013-02-14  Richard Henderson  <rth@redhat.com>
5324         PR target/55941
5325         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
5327 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
5329         * collect2-aix.h: Define F_LOADONLY.
5331 2013-02-14  Richard Biener  <rguenther@suse.de>
5333         PR lto/50494
5334         * varasm.c (output_constant_def_1): Get the decl representing
5335         the constant as argument.
5336         (output_constant_def): Wrap output_constant_def_1.
5337         (make_decl_rtl): Use output_constant_def_1 with the decl
5338         representing the constant.
5339         (build_constant_desc): Optionally re-use a decl already
5340         representing the constant.
5341         (tree_output_constant_def): Adjust.
5343 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
5345         Fix an asan crash
5346         * asan.c (instrument_builtin_call):  Really put the length of the
5347         second source argument into src1_len.
5349 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
5351         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
5352         argument.  If it is false, don't create edge from then_bb to
5353         fallthru_bb.
5354         (insert_if_then_before_iter): Pass true to it.
5355         (build_check_stmt): Pass false to it.
5356         (transform_statements): Flush hash table only on extended basic
5357         block boundaries, rather than at the beginning of every bb.
5358         Don't flush hash table on nonfreeing_call_p calls.
5359         * tree-flow.h (nonfreeing_call_p): New prototype.
5360         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
5362 2013-02-13  David S. Miller  <davem@davemloft.net>
5364         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
5366 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
5368         PR target/56184
5369         * ira.c (max_regno_before_ira): Move from ...
5370         (ira): ... here.
5371         (fix_reg_equiv_init): Use max_regno_before_ira instead of
5372         vec_safe_length.
5374 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
5376         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
5378 2013-02-13  Richard Biener  <rguenther@suse.de>
5380         PR lto/56295
5381         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
5382         globals in MEM_REFs.
5384 2013-02-13  Richard Biener  <rguenther@suse.de>
5386         * loop-init.c (loop_optimizer_init): Clear loop state when
5387         re-initializing preserved loops.
5388         * loop-unswitch.c (unswitch_single_loop): Return whether
5389         we unswitched the loop.  Do not verify loop state here.
5390         (unswitch_loops): When we unswitched a loop discover new loops.
5392 2013-02-13  Kostya Serebryany  <kcc@google.com>
5394         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
5395         on x86_64 linux.
5396         * sanitizer.def: Rename __asan_init to __asan_init_v1.
5398 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
5400         Avoid instrumenting duplicated memory access in the same basic block
5401         * Makefile.in (asan.o): Add new dependency on hash-table.h
5402         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
5403         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
5404         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
5405         (free_mem_ref_resources, has_mem_ref_been_instrumented)
5406         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
5407         (get_mem_ref_of_assignment): New functions.
5408         (get_mem_refs_of_builtin_call): Extract from
5409         instrument_builtin_call and tweak a little bit to make it fit with
5410         the new signature.
5411         (instrument_builtin_call): Use the new
5412         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
5413         of is_gimple_builtin_call.
5414         (instrument_derefs, instrument_mem_region_access): Insert the
5415         instrumented memory reference into the hash table.
5416         (maybe_instrument_assignment): Renamed instrument_assignment into
5417         this, and change it to advance the iterator when instrumentation
5418         actually happened and return true in that case.  This makes it
5419         homogeneous with maybe_instrument_assignment, and thus give a
5420         chance to callers to be more 'regular'.
5421         (transform_statements): Clear the memory reference hash table
5422         whenever we enter a new BB, when we cross a function call, or when
5423         we are done transforming statements.  Use
5424         maybe_instrument_assignment instead of instrumentation.  No more
5425         need to special case maybe_instrument_assignment and advance the
5426         iterator after calling it; it's now handled just like
5427         maybe_instrument_call.  Update comment.
5429 2013-02-13  Richard Biener  <rguenther@suse.de>
5431         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
5432         Fix loop discovery code.
5434 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
5436         PR inline-asm/56148
5437         * lra-constraints.c (process_alt_operands): Match early clobber
5438         operand with itself.  Check conflicts with earlyclobber only if
5439         the operand is not reloaded.  Prefer to reload conflicting operand
5440         if earlyclobber and matching operands are the same.
5442 2013-02-12  Richard Biener  <rguenther@suse.de>
5444         PR lto/56297
5445         * lto-streamer-out.c (write_symbol): Do not output symbols
5446         for hard register variables.
5448 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
5450         PR target/54222
5451         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
5452         (umulsidi3_insn, mulsidi3_insn): New insns.
5454 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
5456         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
5457         (struct tune_params): Add vec_costs field.
5458         * config/arm/arm.c (arm_builtin_vectorization_cost)
5459         (arm_add_stmt_cost): New functions.
5460         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
5461         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
5462         (arm_default_vec_cost): New struct of type cpu_vec_costs.
5463         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
5464         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
5465         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
5466         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
5468 2013-02-12  Richard Biener  <rguenther@suse.de>
5470         PR lto/56295
5471         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
5472         decls again if possible.
5474 2013-02-12  Richard Biener  <rguenther@suse.de>
5476         PR middle-end/56288
5477         * tree-ssa.c (verify_ssa_name): Fix check, move
5478         SSA_NAME_IN_FREE_LIST check up.
5480 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
5481             Steven Bosscher   <steven@gcc.gnu.org>
5483         PR rtl-optimization/56151
5484         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
5485         equal to op0 or op1, and last_insn pattern is CODE operation
5486         with MEM dest and one of the operands matches that MEM.
5488 2013-02-11  Sriraman Tallam  <tmsriramgoogle.com>
5490         * doc/extend.texi: Document Function Multiversioning and "default"
5491         parameter string to target attribute.
5492         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
5493         target attribute parameter is "default".
5494         (ix86_compare_version_priority): Remove checks for target attribute.
5495         (ix86_mangle_function_version_assembler_name): Change error to sorry.
5496         Remove check for target attribute equal to NULL. Add assert.
5497         (ix86_generate_version_dispatcher_body): Change error to sorry.
5499 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
5500             Jack Howarth  <howarth@bromo.med.uc.edu>
5501             Patrick Marlier  <patrick.marlier@gmail.com>
5503         PR libitm/55693
5504         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
5505         define ENDFILE_SPEC as TM_DESTRUCTOR.
5506         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
5508 2013-02-11  Alexander Potapenko  <glider@google.com>
5509             Jack Howarth  <howarth@bromo.med.uc.edu>
5510             Jakub Jelinek  <jakub@redhat.com>
5512         PR sanitizer/55617
5513         * config/darwin.c (cdtor_record): Rename ctor_record.
5514         (sort_cdtor_records): Rename sort_ctor_records.
5515         (finalize_dtors): New routine to sort destructors by
5516         priority before use in assemble_integer.
5517         (machopic_asm_out_destructor): Use finalize_dtors if needed.
5519 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
5521         PR rtl-optimization/56275
5522         * simplify-rtx.c (avoid_constant_pool_reference): Check that
5523         offset is non-negative and less than cmode size before
5524         calling simplify_subreg.
5526 2013-02-11  Richard Biener  <rguenther@suse.de>
5528         PR tree-optimization/56264
5529         * cfgloop.h (fix_loop_structure): Adjust prototype.
5530         * loop-init.c (fix_loop_structure): Return the number of
5531         newly discovered loops.
5532         * tree-cfgcleanup.c (repair_loop_structures): When new loops
5533         are discovered, do a full loop-closed SSA rewrite.
5535 2013-02-11  Richard Biener  <rguenther@suse.de>
5537         PR tree-optimization/56273
5538         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
5539         first VRP run.
5540         (check_array_ref): Fix missing newline in dumps.
5541         (search_for_addr_array): Likewise.
5543 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
5545         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
5547 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
5549         PR target/56256
5550         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
5552 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
5554         PR rtl-optimization/56246
5555         * lra-constraints.c (simplify_operand_subreg): Try to reuse
5556         reload pseudo.
5557         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
5558         constraints are satisfied.
5560 2013-02-08  Jeff Law  <law@redhat.com>
5562         PR debug/53948
5563         * emit-rtl.c (reg_is_parm_p): New function.
5564         * regs.h (reg_is_parm_p): New prototype.
5565         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
5566         callee-clobbered registers.
5568 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
5570         PR target/56043
5571         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
5572         If there is no implicit builtin declaration, just return NULL.
5574 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
5576         * config/i386/sse.md (FMAMODEM): New mode iterator.
5577         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
5578         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
5580 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
5582         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
5583         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
5584         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
5586 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
5588         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
5589         (microblaze*-*-elf): Likewise.
5590         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
5591         LINK_SPEC.
5592         * config/microblaze/microblaze-c.c: Add builtin defines for
5593         _LITTLE_ENDIAN and _BIG_ENDIAN.
5594         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
5595         add to TARGET_DEFAULT flags.
5596         Expand ASM_SPEC and LINK_SPEC.
5597         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
5598         * config/microblaze/microblaze.md: Update extendsidi2 and
5599         movdi_internal instructions to use low-order / high-order reg
5600         print_operands.
5601         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
5602         options and inversemask / mask of LITTLE_ENDIAN.
5603         * config/microblaze/t-microblaze: Expand multilib options to
5604         include mlittle-endian (le) and update exceptions patterns.
5606 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
5608         PR rtl-optimization/56195
5609         * lra-constraints.c (get_reload_reg): Don't reuse regs
5610         if they have smaller mode than requested, if they have
5611         wider mode than requested, try to return a SUBREG.
5613         PR tree-optimization/56250
5614         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
5615         if type is unsigned and code isn't MULT_EXPR.
5617 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
5619         PR tree-optimization/56064
5620         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
5621         bits according to mode.
5622         * fixed-value.h (fixed_from_double_int)
5623         (const_fixed_from_double_int): Adjust comments.
5625 2013-02-08  Richard Biener  <rguenther@suse.de>
5627         PR lto/56231
5628         * lto-streamer.h (struct data_in): Remove current_file, current_line
5629         and current_col members.
5630         * lto-streamer-out.c (lto_output_location): Stream changed bits
5631         en-block for efficiency.
5632         * lto-streamer-in.c (clear_line_info): Remove.
5633         (lto_input_location): Cache current file, line and column
5634         globally via local statics.  Read changed bits en-block.
5635         (input_function): Do not call clear_line_info.
5636         (lto_read_body): Likewise.
5637         (lto_input_toplevel_asms): Likewise.
5639 2013-02-08  Michael Matz  <matz@suse.de>
5641         PR tree-optimization/52448
5642         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
5643         (nt_call_phase): New static.
5644         (add_or_mark_expr): Only mark accesses with newer phase than any
5645         call seen.
5646         (nonfreeing_call_p): New.
5647         (nt_init_block): Update nt_call_phase, mark blocks as visited.
5648         (nt_fini_block): Keep blocks marked as visited.
5649         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
5651 2013-02-08  Richard Biener  <rguenther@suse.de>
5653         * ira.c (ira): Free broken dominator information.
5655 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
5657         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
5659 2013-02-08  Marek Polacek  <polacek@redhat.com>
5661         * cfgloop.c (verify_loop_structure): Add more checking of headers.
5663 2013-02-08  Richard Biener  <rguenther@suse.de>
5665         PR middle-end/56181
5666         * cfgloop.h (flow_loops_find): Adjust.
5667         (bb_loop_header_p): Declare.
5668         * cfgloop.c (bb_loop_header_p): New function split out from ...
5669         (flow_loops_find): ... here.  Adjust function signature,
5670         support incremental loop structure update.
5671         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
5672         * cfgloopmanip.c (fix_loop_structure): Move ...
5673         * loop-init.c (fix_loop_structure): ... here.
5674         (apply_loop_flags): Split out from ...
5675         (loop_optimizer_init): ... here.
5676         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
5677         in incremental mode, only remove dead loops here.
5679 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
5681         PR target/54222
5682         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
5683         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
5684         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
5685         (*round<mode>3.libgcc): New insns for fixed-modes.
5686         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
5687         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
5688         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
5689         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
5690         implementations.  Define to __builtin_avr_absFX,
5691         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
5692         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
5693         __builtin_avr_countlsFX, respectively.
5694         * config/avr/avr-c.c (target.h): Include it.
5695         (enum avr_builtin_id): New enum.
5696         (avr_resolve_overloaded_builtin): New static function.
5697         (avr_register_target_pragmas): Use it to set
5698         targetm.resolve_overloaded_builtin.
5699         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
5700         tree nodes used by DEF_BUILTIN.
5701         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
5702         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
5703         <AVR_BUILTIN_xxBITS>: Same.
5705 2013-02-08  Richard Biener  <rguenther@suse.de>
5707         * cfgloop.c (verify_loop_structure): Properly handle
5708         a loop exiting to another loop header.
5709         * ira-int.h (ira_loops): Remove.
5710         * ira.c (ira_loops): Remove.
5711         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
5712         (do_reload): Use loop_optimizer_finalize.
5713         * ira-build.c (create_loop_tree_nodes): Use get_loops and
5714         number_of_loops to access the loop tree.
5715         (more_one_region_p): Likewise.
5716         (finish_loop_tree_nodes): Likewise.
5717         (rebuild_regno_allocno_maps): Likewise.
5718         (mark_loops_for_removal): Likewise.
5719         (mark_all_loops_for_removal): Likewise.
5720         (remove_unnecessary_regions): Likewise.
5721         (ira_build): Likewise.
5722         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
5724 2013-02-08  Richard Biener  <rguenther@suse.de>
5726         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
5727         * ipa-pure-const.c (analyze_function): Avoid calling
5728         mark_irreducible_loops twice.
5729         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
5731 2013-02-07  David S. Miller  <davem@davemloft.net>
5733         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
5734         on 'reg'.
5735         * var-tracking.c (vt_add_function_parameter): Test the presence of
5736         HAVE_window_save properly and do not remap argument registers when
5737         we have a leaf function.
5739 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
5741         PR bootstrap/56227
5742         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
5743         instead of "ll".
5744         * config/i386/i386.c (ix86_print_operand): Ditto.
5746 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
5748         * lra-constraints.c (process_alt_operands): Fix recently added comment.
5750 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
5752         PR rtl-optimization/56225
5753         * lra-constraints.c (process_alt_operands): Check that reload hard
5754         reg can hold value for strict_low_part.
5756 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
5758         PR debug/56154
5759         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
5760         dwarf2out_end_function.
5761         (in_first_function_p, maybe_at_text_label_p,
5762         first_loclabel_num_not_at_text_label): New variables.
5763         (dwarf2out_var_location): In the first function find out
5764         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
5765         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
5766         functions.
5768 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
5770         PR rtl-optimization/56178
5771         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
5772         SUBREG of a register.  Tidy up related block of code.
5773         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
5774         note if the source is a register or a SUBREG of a register.
5776 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
5778         PR target/56228
5779         * config/rs6000/rs6000.md (ptrm): New mode attr.
5780         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
5781         call_value_indirect_aix<pttrsize>,
5782         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
5783         m in constraints.
5785 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
5787         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
5788         if -bnortl. Convert to strcmp and strncmp.
5790 2013-02-07  Alan Modra  <amodra@gmail.com>
5792         PR target/54009
5793         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
5794         addresses won't wrap when offsetting.
5795         (rs6000_secondary_reload): Provide secondary reloads needed for
5796         wrapping LO_SUM addresses.
5798 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
5800         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
5801         MACH, just __MACH__.
5803 2013-02-06  Richard Biener  <rguenther@suse.de>
5805         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
5806         instead of calling fix_loop_structure.
5808 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
5810         PR middle-end/56217
5811         * omp-low.c (use_pointer_for_field): Return false if
5812         lower_send_shared_vars doesn't generate any copy-out code.
5814 2013-02-06  Tom de Vries  <tom@codesourcery.com>
5816         PR rtl-optimization/56131
5817         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
5818         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
5819         of the label is NULL.  Add comment.
5821 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
5823         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
5825         PR sanitizer/55374
5826         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
5827         (STATIC_LIBTSAN_LIBS): Likewise.
5828         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
5829         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
5830         is defined, don't add anything else beyond that.
5831         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
5832         (LINK_COMMAND_SPEC): Use them.
5834         PR tree-optimization/56205
5835         * tree-stdarg.c (check_all_va_list_escapes): Return true if
5836         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
5837         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
5839 2013-02-05  Richard Biener  <rguenther@suse.de>
5841         PR tree-optimization/53342
5842         PR tree-optimization/53185
5843         * tree-vectorizer.h (vect_check_strided_load): Remove.
5844         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
5845         not disallow peeling for vectorized strided loads.
5846         (vect_check_strided_load): Make static and simplify.
5847         (vect_analyze_data_refs): Adjust.
5848         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
5849         correctly when vectorizing strided loads.
5851 2013-02-05  Richard Biener  <rguenther@suse.de>
5853         * doc/install.texi: Refer to ISL, not PPL.
5855 2013-02-05  Jan Hubicka  <jh@suse.cz>
5857         PR tree-optimization/55789
5858         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
5860 2013-02-05  Jan Hubicka  <jh@suse.cz>
5862         PR tree-optimization/55789
5863         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
5864         the dead call anyway.
5866 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
5868         PR sanitizer/55374
5869         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
5871 2013-02-04  Alexander Potapenko  <glider@google.com>
5872             Jack Howarth  <howarth@bromo.med.uc.edu>
5873             Jakub Jelinek  <jakub@redhat.com>
5875         PR sanitizer/55617
5876         * config/darwin.c (sort_ctor_records): Stabilized qsort
5877         on constructor priority by using original position.
5878         (finalize_ctors): New routine to sort constructors by
5879         priority before use in assemble_integer.
5880         (machopic_asm_out_constructor): Use finalize_ctors if needed.
5882 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
5884         PR libstdc++/54314
5885         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
5886         about visibility on artificial decls.
5887         * config/sol2.c (solaris_assemble_visibility): Likewise.
5889 2013-02-04  Kai Tietz  <ktietz@redhat.com>
5891         PR target/56186
5892         * config/i386/i386.c (function_value_ms_64): Add additional valtype
5893         argument and improve checking of return-argument types for 16-byte
5894         modes.
5895         (ix86_function_value_1): Add additional valtype argument on call
5896         of function_value_64.
5897         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
5898         handling infunction_value_64 function.
5900 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
5902         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
5904 2013-02-04  Richard Biener  <rguenther@suse.de>
5906         PR tree-optimization/56188
5907         * tree-ssa-structalias.c (label_visit): Consider case with
5908         initially non-empty points-to set.
5909         (perform_var_substitution): Dump node mapping and clean up.
5911 2013-02-04  Richard Guenther  <rguenther@suse.de>
5913         PR lto/56168
5914         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
5915         node prevail as last resort.
5916         (lto_symtab_merge_decls): Remove guard on LTRANS here.
5917         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
5919 2013-02-04  Richard Biener  <rguenther@suse.de>
5921         PR tree-optimization/56113
5922         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
5923         Merge into ...
5924         (equiv_class_lookup_or_add): ... this.
5925         (label_visit): Adjust and fix error in previous patch.
5926         (perform_var_substitution): Adjust.
5928 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
5930         * config/sh/divtab.c: Fix formatting and comments throughout the file.
5931         * config/sh/sh4-300.md: Likewise.
5932         * config/sh/sh4a.md: Likewise.
5933         * config/sh/constraints.md: Likewise.
5934         * config/sh/sh.md: Likewise.
5935         * config/sh/netbsd-elf.h: Likewise.
5936         * config/sh/predicates.md: Likewise.
5937         * config/sh/sh-protos.h: Likewise.
5938         * config/sh/ushmedia.h: Likewise.
5939         * config/sh/linux.h: Likewise.
5940         * config/sh/sh.c: Likewise.
5941         * config/sh/superh.h: Likewise.
5942         * config/sh/elf.h: Likewise.
5943         * config/sh/sh4.md: Likewise.
5944         * config/sh/sh.h: Likewise.
5946 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5948         * config/pa/constraints.md: Adjust unused letters.  Change "T"
5949         constraint to match_test floating_point_store_memory_operand().
5950         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
5951         (base14_operand): New.
5952         (floating_point_store_memory_operand): New.
5953         (integer_store_memory_operand): Revise to use base14_operand and
5954         reg_plus_base_memory_operand.
5955         (move_dest_operand): Allow symbolic_memory_operands.
5956         (symbolic_memory_operand): Check for LO_SOM.
5957         (symbolic_operand): Change default case to break.
5958         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
5959         CONST_DOUBLE values to be reloaded by putting them into memory when
5960         the destination is a floating point register.
5961         (movdf): Remove code to handle CONST_DOUBLE.
5962         (movsf): Likewise.
5963         (reload_indf_r1): New.
5964         (reload_insf_r1): New.
5965         Consistently use "Q" and "T" constraints with integer and floating
5966         point move instructions, respectively.
5967         (movdi): Remove FAIL.
5968         Change predicate for source operand unamed DImode move from
5969         general_operand to move_src_operand.
5970         (umulsidi3): Change predicate for destination operand to
5971         register_operand.
5972         Likewise for similar unamed patterns.
5973         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
5974         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
5975         (hppa_legitimize_address): Simplify mask calculation.
5976         (pa_emit_move_sequence): Revised handling of secondary reloads from
5977         REG+D addresses for floating point loads and stores.  Directly handle
5978         loading CONST0_RTX (mode) to a floating point register.
5979         (pa_secondary_reload): Handle reloading DF and SFmode constant values
5980         to floating point registers.  Don't restrict secondary reloads to
5981         floating point registers to integer modes.  Revise some comments and
5982         cleanup some code.
5983         (TARGET_LEGITIMATE_ADDRESS_P): Define.
5984         (pa_legitimate_address_p): New.
5985         (pa_legitimize_reload_address): New.
5986         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
5987         (STRICT_REG_OK_FOR_BASE_P): New.
5988         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
5989         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
5991 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
5992             Andrew Dixie  <andrewd@gentrack.com>
5994         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
5995         flag set.
5997 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
5999         * expmed.c (extract_bit_field_1): Pass the full width of the
6000         structure to get_best_reg_extraction_insn.
6002 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
6004         PR target/54601
6005         * configure.ac (use_cxa_atexit): Add AIX.
6006         * configure: Regenerate.
6008         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
6010 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
6012         PR debug/54793
6013         * final.c (need_profile_function): New variable.
6014         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
6015         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
6016         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
6017         notes, targetm.asm_out.function_prologue doesn't emit anything,
6018         HAVE_prologue and profiler should be emitted before prologue,
6019         set need_profile_function instead of emitting it.
6020         (final_scan_insn): If need_profile_function, emit
6021         profile_function on the first NOTE_INSN_BASIC_BLOCK or
6022         NOTE_INSN_FUNCTION_BEG note.
6024 2013-02-01  Richard Henderson  <rth@redhat.com>
6026         * config/rs6000/rs6000.md (smulditi3): New.
6027         (umulditi3): New.
6029         * config/alpha/alpha.md (umulditi3): New.
6031 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
6033         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
6034         (ASM_OUTPUT_ALIGNED_LOCAL): New.
6036 2013-02-01  Richard Biener  <rguenther@suse.de>
6038         PR tree-optimization/56113
6039         * tree-ssa-structalias.c (label_visit): Reduce work for
6040         single-predecessor nodes.
6042 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
6044         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
6045         range isn't testing for zero.
6047 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
6049         PR middle-end/56113
6050         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
6052 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
6053             Nick Clifton  <nickc@redhat.com>
6055         * config/v850/constraints.md (Q): Define as a memory constraint.
6056         * config/v850/predicates.md (label_ref_operand): New predicate.
6057         (e3v5_shift_operand): New predicate.
6058         (ior_operator): New predicate.
6059         * config/v850/t-v850: Add e3v5 multilib.
6060         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
6061         (v850_gen_movdi): Prototype.
6062         * config/v850/v850.c: Add support for e3v5 architecture.
6063         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
6064         TARGET_V850E_UP.
6065         (construct_save_jarl): Add e3v5 long JARL support.
6066         (v850_adjust_insn_length): New function.  Adjust length of call
6067         insns when using e3v5 instructions.
6068         (v850_gen_movdi): New function: Generate instructions to move a
6069         DImode value.
6070         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
6071         (CPP_SPEC): Define __v850e3v5__ as appropriate.
6072         (TARGET_USE_FPU): Enable for e3v5.
6073         (CONST_OK_FOR_W): New macro.
6074         (ADJUST_INSN_LENGTH): Define.
6075         * config/v850/v850.md (UNSPEC_LOOP): Define.
6076         (attr cpu): Add v850e3v5.
6077         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
6078         (movdi): New pattern.
6079         (movdi_internal): New pattern.
6080         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
6081         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
6082         (cstoresf4): Likewise.
6083         (cstoredf4): Likewise.
6084         (insv): New pattern.
6085         (rotlso3_a): New pattern.
6086         (rotlsi3_b): New pattern
6087         (rotlsi3_v850e3v5): New pattern.
6088         (doloop_begin): New pattern.
6089         (fix_loop_counter): New pattern.
6090         (doloop_end): New pattern.
6091         (branch_normal): Add e3v5 long branch support.
6092         (branch_invert): Likewise.
6093         (branch_z_normal): Likewise.
6094         (branch_z_invert): Likewise.
6095         (branch_nz_normal): Likewise.
6096         (branch_nz_invert): Likewise.
6097         (call_internal_short): Add e3v5 register-indirect JARL support.
6098         (call_internal_long): Likewise.
6099         (call_value_internal_short): Likewise.
6100         (call_value_internal_long): Likewise.
6101         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
6102         (mloop): New option.
6103         * config.gcc: Add support for configuring v840e3v5 target.
6104         * doc/invoke.texi: Document new v850 specific command line options.
6106 2013-01-31  Paul Koning  <ni1d@arrl.net>
6108         PR debug/55059
6109         PR debug/54508
6110         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
6111         children if parent is a class.
6112         (prune_unused_types_prune): Don't add DW_AT_declaration.
6114 2013-01-31  Richard Biener  <rguenther@suse.de>
6116         PR tree-optimization/56157
6117         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
6118         match up operand with SLP child.
6120 2013-01-31  Jason Merrill  <jason@redhat.com>
6122         PR debug/54410
6123         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
6124         parameters the first time.
6125         (gen_scheduled_generic_parms_dies): Check completeness here.
6127 2013-01-31  Richard Biener  <rguenther@suse.de>
6129         PR middle-end/53073
6130         * common.opt (faggressive-loop-optimizations): New flag,
6131         enabled by default.
6132         * doc/invoke.texi (faggressive-loop-optimizations): Document.
6133         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
6134         infer_loop_bounds_from_undefined by it.
6136 2013-01-31  Richard Biener  <rguenther@suse.de>
6138         PR tree-optimization/56150
6139         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
6140         visit virtual operands.
6141         (find_uses_to_rename_bb): Likewise.
6143 2013-01-31  Richard Biener  <rguenther@suse.de>
6145         PR tree-optimization/56150
6146         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
6147         mixed store non-store stmts.
6149 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
6151         PR sanitizer/55374
6152         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
6153         LIBASAN_EARLY_SPEC is defined.
6154         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
6155         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
6156         before %o.
6157         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
6159         PR c++/55742
6160         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
6161         invalid args instead of ICEing on it.
6162         (ix86_valid_target_attribute_tree): Return error_mark_node if
6163         ix86_valid_target_attribute_inner_p failed.
6164         (ix86_valid_target_attribute_p): Return false only if
6165         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
6166         target("default") attribute.
6167         (sorted_attr_string): Change argument from const char * to tree,
6168         merge in all target attribute arguments rather than just one.
6169         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
6170         instead of free.  Avoid using strcat.
6171         (ix86_mangle_function_version_assembler_name): Mangle
6172         target("default") as if no target attribute is present.  Adjust
6173         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
6174         instead of xmalloc and XDELETEVEC instead of free.
6175         (ix86_function_versions): Don't return true if one of the decls
6176         doesn't have target attribute.  If they don't and one of the decls
6177         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
6178         sorted_attr_string caller.  Use XDELETEVEC instead of free.
6179         (ix86_supports_function_versions): Remove.
6180         (make_name): Fix up formatting.
6181         (make_dispatcher_decl): Remove resolver_name and its initialization.
6182         Avoid leaking memory.
6183         (is_function_default_version): Return true if there is
6184         target("default") attribute rather than no target attribute at all.
6185         (make_resolver_func): Avoid leaking memory.
6186         (ix86_generate_version_dispatcher_body): Likewise.
6187         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
6188         * target.def (supports_function_versions): Remove.
6189         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
6190         * doc/tm.texi: Regenerated.
6192 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
6194         PR rtl-optimization/56144
6195         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
6196         for values with side effects.
6198 2013-01-30  Richard Biener  <rguenther@suse.de>
6200         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
6201         (sparseset_pop): Likewise.
6202         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
6203         to be able to use quick_push in the worker loop.
6205 2013-01-30  Marek Polacek  <polacek@redhat.com>
6207         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
6209 2013-01-30  Richard Biener  <rguenther@suse.de>
6211         PR lto/56147
6212         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
6214 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
6216         PR tree-optimization/56064
6217         * fixed-value.c (fixed_from_double_int): New function.
6218         * fixed-value.h (fixed_from_double_int): New prototype.
6219         (const_fixed_from_double_int): New static inline function.
6220         * fold-const.c (native_interpret_fixed): New static function.
6221         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
6222         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
6223         (native_encode_fixed): New static function.
6224         (native_encode_expr) <FIXED_CST>: Use it.
6225         (native_interpret_int): Move double_int worker code to...
6226         * double-int.c (double_int::from_buffer): ...this new static method.
6227         * double-int.h (double_int::from_buffer): Prototype it.
6229 2013-01-30  Richard Biener  <rguenther@suse.de>
6231         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
6232         New pointer-map and obstack.
6233         (init_alias_vars): Allocate pointer-map and obstack.
6234         (delete_points_to_sets): Free them.
6235         (find_what_var_points_to): Cache result.
6236         (find_what_p_points_to): Adjust for changed interface of
6237         find_what_var_points_to.
6238         (compute_points_to_sets): Likewise.
6239         (ipa_pta_execute): Likewise.
6241 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6243         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
6244         * configure: Regenerate.
6245         * config.in: Regenerate.
6246         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
6247         #nobits/#progbits if supported.
6249 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
6251         PR target/56121
6252         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
6253         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
6254         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
6256 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
6258         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
6259         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
6261 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
6263         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
6264         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
6266 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
6268         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
6269         declaration.
6270         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
6271         * config/arm/cortex-a7.md: New bypasses using
6272         arm_mac_accumulator_is_result.
6274 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
6276         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
6277         (cortex_a7_neon_mla): Likewise.
6278         (cortex_a7_fpfmad): New reservation.
6279         (cortex_a7_fpmacs): Use ffmas and update required units.
6280         (cortex_a7_fpmuld): Update required units and latency.
6281         (cortex_a7_fpmacd): Likewise.
6282         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
6283         (cortex_a7_neon). Likewise.
6284         (bypass) Update participating units.
6286 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
6288         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
6289         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
6290         from fmac to ffma.
6291         * config/arm/vfp11.md (vfp_farith): Use ffmas.
6292         (vfp_fmul): Use ffmad.
6293         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
6294         (cortex_r4_fmacd): Use ffmad.
6295         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
6296         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
6297         (cortex_a9_fmacd): Use ffmad.
6298         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
6299         (cortex_a8_vfp_macd): Use ffmad.
6300         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
6301         (cortex_a5_fpmacd): Use ffmad.
6302         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
6303         (cortex_a15_vfp_macd): Use ffmad.
6304         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
6306 2013-01-29  Jason Merrill  <jason@redhat.com>
6308         PR libstdc++/54314
6309         * varasm.c (default_assemble_visibility): Don't warn about
6310         visibility on artificial decls.
6312 2013-01-29  Richard Biener  <rguenther@suse.de>
6314         PR tree-optimization/56113
6315         * tree-ssa-structalias.c (equiv_class_lookup): Also return
6316         the bitmap leader.
6317         (label_visit): Free duplicate bitmaps and record the leader instead.
6318         (perform_var_substitution): Adjust.
6320 2013-01-29  Richard Biener  <rguenther@suse.de>
6322         PR tree-optimization/55270
6323         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
6324         the CFG, schedule loops for fixup.
6326 2013-01-29  Nick Clifton  <nickc@redhat.com>
6328         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
6329         SP_REG.
6331 2013-01-28  Leif Ekblad  <leif@rdos.net>
6333         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
6334         * config/i386/i386.h (TARGET_RDOS): New macro.
6335         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
6336         * config/i386/i386.c (ix86_option_override_internal): For 64bit
6337         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
6338         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
6339         DEFAULT_LARGE_SECTION_THRESHOLD.
6340         * config/i386/i386.md (R14_REG, R15_REG): New constants.
6341         * config/i386/rdos.h: New file.
6342         * config/i386/rdos64.h: New file.
6344 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
6346         PR other/54814
6347         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
6348         TEST_HARD_REG_BIT.
6350 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
6352         PR rtl-optimization/56117
6353         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
6354         call cselib_lookup_from_insn on the MEM before calling
6355         add_insn_mem_dependence.
6357 2013-01-28  Richard Biener  <rguenther@suse.de>
6359         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
6360         to a stmt that didn't have one.
6361         (copy_phis_for_bb): Likewise for PHI arguments.
6362         (copy_debug_stmt): Likewise for debug stmts.
6364 2013-01-28  Richard Biener  <rguenther@suse.de>
6366         PR tree-optimization/56034
6367         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
6368         (partition_builtin_p): Adjust.
6369         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
6370         it is the last partition.
6371         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
6372         up the vertex for the definition.
6373         (classify_partition): Classify whether a partition is a
6374         PKIND_REDUCTION, thus has uses outside of the loop.
6375         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
6376         Merge all PKIND_REDUCTION partitions into the last partition.
6377         (tree_loop_distribution): Seed partitions from reductions as well.
6379 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
6381         PR tree-optimization/56125
6382         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
6383         pow(x,c) into sqrt(x) * powi(x, n/2) or
6384         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
6385         optimizing for size.
6386         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
6387         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
6388         integer.
6390         PR tree-optimization/56094
6391         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
6392         to UNKNOWN_LOCATION while gimplifying expr.
6394 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
6396         PR target/56114
6397         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
6398         operand 0 in movabs insn template for -masm=intel asm alternative.
6399         (*movabs<mode>_2): Ditto for operand 1.
6401 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
6403         PR target/54663
6404         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
6405         of microblaze-c.o
6407 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
6409         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
6410         tm_file.
6412 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6414         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
6415         Undef to avoid warning.
6417 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
6419         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
6420         * configure: Regenerate.
6422 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
6424         PR tree-optimization/56098
6425         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
6426         for stmts with volatile ops.
6427         (cond_store_replacement): Don't optimize if assign has volatile ops.
6428         (cond_if_else_store_replacement_1): Don't optimize if either
6429         then_assign or else_assign have volatile ops.
6430         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
6431         volatile ops.
6433 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
6435         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
6437 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
6439         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
6440         missing ':' in asm example.
6442 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
6444         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
6445         entries into lane and laneq entries.
6446         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
6447         Remove AdvSIMD scalar modes.
6448         (aarch64_sq<r>dmulh_laneq<mode>): New.
6449         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
6450         modes.
6451         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
6452         builtin implementations to relfect changes in RTL in aarch64-simd.md.
6453         * config/aarch64/iterators.md (VCOND): New.
6454         (VCONQ): New.
6456 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
6458         PR target/54222
6459         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
6460         Add NULL LIBNAME argument to existing definitions.
6461         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
6462         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
6463         * config/avr/avr.c (DEF_BUILTIN): Same.
6464         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
6465         (avr_expand_builtin): Expand to a vanilla call if a libgcc
6466         implementation is available (DECL_ASSEMBLER_NAME is set).
6467         (avr_fold_absfx): New static function.
6468         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
6469         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
6470         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
6471         AVR_BUILTIN_ABSLLK.
6472         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
6473         (abshk, absk, abslk, absllk): Provide as static inline functions.
6475 2013-01-25  Marek Polacek  <polacek@redhat.com>
6477         PR tree-optimization/56035
6478         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
6480 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
6482         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
6483         (*movtf_internal_rex64): Add (!o,C) alternative
6484         (*movxf_internal_rex64): Ditto.
6485         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
6487 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
6489         * doc/invoke.texi: fix typo.
6490         * doc/objc.texi: fix typo.
6492 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
6494         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
6495         for the first two alternatives.
6497 2013-01-24  Diego Novillo  <dnovillo@google.com>
6499         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
6500         (ggc-zone.o): Remove.
6501         * configure.ac: Remove option --with-gc.
6502         * configure: Re-generate.
6503         * doc/install.texi: Remove documentation for --with-gc.
6504         * gengtype.c (write_enum_defn): Remove.  Update all users.
6505         (write_Types_process_field): Remove generation of gt_e_* argument.
6506         (output_type_enum): Remove.  Update all users.
6507         (write_enum_defn): Remove.  Update all users.
6508         (enum alloc_zone): Remove.  Update all users.
6509         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
6510         * ggc-common.c (ggc_splay_alloc): Remove first argument.
6511         Update all callers.
6512         (struct ptr_data): Remove field TYPE.  Update all users.
6513         (gt_pch_note_object): Remove argument TYPE.  Update all users.
6514         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
6515         Update all users.
6516         * ggc-none.c (ggc_alloc_typed_stat): Remove.
6517         (struct alloc_zone): Remove.
6518         (ggc_internal_alloc_zone_stat): Remove.
6519         (ggc_internal_cleared_alloc_zone_stat): Remove.
6520         * ggc-page.c (ggc_alloc_typed_stat): Remove.
6521         (ggc_pch_count_object): Remove last argument.  Update all users.
6522         (ggc_pch_alloc_object): Remove last argument.  Update all users.
6523         (struct alloc_zone): Remove.
6524         * ggc-zone.c: Remove.
6525         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
6526         (struct alloc_zone): Remove.
6527         (ggc_alloc_typed_stat): Remove.
6528         (ggc_alloc_typed): Remove.
6529         (ggc_splay_alloc): Remove first argument.
6530         (rtl_zone): Remove.  Update all users.
6531         (tree_zone): Remove.  Update all users.
6532         (tree_id_zone): Remove.  Update all users.
6533         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
6534         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
6535         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
6536         * tree-ssanames.c: Remove references to zone allocator in comments.
6538 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
6540         * config/avr/avr.c (avr_out_fract): Make register numbers that
6541         might be outside of source operand signed.
6543 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
6545         * config/i386/constraints.md (Yf): New constraint.
6546         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
6547         of f constraint to conditionaly disable x87 register preferences.
6548         (*movdf_internal): Ditto.
6549         (*movsf_internal): Ditto.
6551 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
6553         PR inline-asm/55934
6554         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
6555         that have operands with impossible constraints.
6556         Add a FIXME for a speed-up opportunity.
6557         * lra-constraints.c (process_alt_operands): Verify that a class
6558         selected from constraints on asms is valid for the operand mode.
6559         (curr_insn_transform): Remove incorrect comment.
6561 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
6563         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
6564         TOC operand is a valid symbol ref in the constant pool.
6566 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
6568         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
6570 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
6572         PR target/54222
6573         * config/avr/stdfix.h: New file.
6574         * t-avr (stdfix-gcc.h): New rule to build it.
6575         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
6577 2013-01-23  Kostya Serebryany  <kcc@google.com>
6579         * config/darwin.h: remove dependency on
6580         CoreFoundation (asan on Mac OS).
6582 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
6584         PR target/49069
6585         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
6586         instead of cmpdi_operand for first comparison operand.
6587         Don't assert that comparison operands aren't both constants.
6589 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
6591         * doc/install.texi (Downloading the Source): Update references to
6592         downloading separate components.
6594 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
6596         * doc/extend.texi (__int128): Improve grammar.
6598 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
6600         PR target/56028
6601         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
6602         alternative to (o,r).
6603         (*movdi_internal_rex64): Remove (!o,n) alternative.
6604         (DImode immediate->memory splitter): Remove.
6605         (DImode immediate->memory peephole2): Remove.
6606         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
6607         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
6608         alternative to (!o,*r).
6609         (*movtf_internal_sse): New pattern.
6610         (*movxf_internal_rex64): New pattern.
6611         (*movxf_internal): Disable for TARGET_64BIT.
6612         (*movdf_internal_rex64): Remove (!o,F) alternative.
6614 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
6616         PR middle-end/56074
6617         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
6618         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
6619         * tree-vect-loop-manip.c (find_loop_location): Also ignore
6620         stmt locations where LOCATION_LOCUS of the stmt location is
6621         UNKNOWN_LOCATION or BUILTINS_LOCATION.
6623         PR target/55686
6624         * config/i386/i386.md (UNSPEC_STOS): New.
6625         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
6626         *strsetqi_1): Add UNSPEC_STOS.
6628 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
6630         PR c++/56067
6631         * doc/invoke.texi: Remove left over -Wsynth example.
6633 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
6635         PR tree-optimization/56051
6636         * fold-const.c (fold_binary_loc): Don't fold
6637         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
6638         a narrowing conversion, or widening conversion from signed
6639         to unsigned.
6641 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
6643         PR rtl-optimization/56023
6644         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
6645         dependent on debug instruction.
6647 2013-01-21  Martin Jambor  <mjambor@suse.cz>
6649         PR middle-end/56022
6650         * function.c (allocate_struct_function): Call
6651         invoke_set_current_function_hook earlier.
6653 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
6655         * reload1.c (init_reload): Only initialize reload_obstack
6656         during the first call.
6658 2013-01-21  Marek Polacek  <polacek@redhat.com>
6660         * cfgloop.c (verify_loop_structure): Fix up grammar.
6662 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
6664         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
6665         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
6667 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6669         PR target/56058
6670         * config/arm/marvell-pj4.md: Update copyright year.
6671         Fix up use of alu to alu_reg and simple_alu_imm.
6673 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
6675         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
6677 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
6679         PR target/55433
6680         * lra-constraints.c (curr_insn_transform): Don't reuse original
6681         insn for secondary memory move when memory mode should be different.
6683 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6685         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
6686         atomic_storedi_1): New patterns.
6688 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
6690         btver2 pipeline descriptions.
6691         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
6692         descriptions.
6693         * config/i386/i386.md (btver2_decode): New type attributes.
6694         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
6695         type attributes.
6696         * config/i386/btver2.md: New file describing btver2 pipelines.
6698 2013-01-19  Andrew Pinski  <apinski@cavium.com>
6700         PR tree-optimization/52631
6701         * tree-ssa-sccvn (visit_use): Before looking up the original
6702         statement, try looking up the simplified expression.
6704 2013-01-19  Anthony Green  <green@moxielogic.com>
6706         * config/moxie/moxie.c (moxie_expand_prologue): Set
6707         current_function_static_stack_size.
6709 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
6711         PR tree-optimization/56029
6712         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
6713         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
6715 2013-01-18  Sharad Singhai  <singhai@google.com>
6717         PR tree-optimization/55995
6718         * dumpfile.c (dump_loc): Print location only if available.
6719         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
6721 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
6723         PR target/55433
6724         * lra-constraints.c (curr_insn_transform): Reuse original insn for
6725         secondary memory move.
6726         (inherit_reload_reg): Use rclass instead of cl for
6727         check_secondary_memory_needed_p.
6729 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
6731         PR middle-end/56015
6732         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
6733         the case where writing real complex part of target modifies op1.
6735 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
6737         * config/aarch64/aarch64-simd.md
6738         (aarch64_vcond_internal<mode>): Handle unordered cases.
6739         * config/aarch64/iterators.md (v_cmp_result): New.
6741 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
6742             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6744         * config/arm/marvell-pj4.md: New file.
6745         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
6746         * config/arm/arm.md (generic_sched): Add marvell_pj4.
6747         (generic_vfp): Likewise.
6748         * config/arm/arm-cores.def: Add marvell-pj4.
6749         * config/arm/arm-tune.md: Regenerate.
6750         * config/arm/arm-tables.opt: Regenerate.
6751         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
6752         * doc/invoke.texi: Document marvell-pj4.
6754 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
6756         * config/aarch64/arm_neon.h: Map scalar types to standard types.
6758 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
6760         PR debug/54114
6761         PR debug/54402
6762         PR debug/49888
6763         * var-tracking.c (negative_power_of_two_p): New.
6764         (global_get_addr_cache, local_get_addr_cache): New.
6765         (get_addr_from_global_cache, get_addr_from_local_cache): New.
6766         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
6767         heading comment.
6768         (vt_stack_offset_p): Remove.
6769         (vt_canon_true_dep): Always canonicalize loc's address.
6770         (clobber_overlapping_mems): Make sure we have a MEM.
6771         (local_get_addr_clear_given_value): New.
6772         (val_reset): Clear local cached entries.
6773         (compute_bb_dataflow): Create and release the local cache.
6774         Disable duplicate MEMs clobbering.
6775         (emit_notes_in_bb): Clobber MEMs likewise.
6776         (vt_emit_notes): Create and release the local cache.
6777         (vt_initialize, vt_finalize): Create and release the global
6778         cache, respectively.
6779         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
6781 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
6783         PR libmudflap/53359
6784         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
6785         not found in the symtab.
6787 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
6789         PR debug/56006
6790         PR rtl-optimization/55547
6791         PR rtl-optimization/53827
6792         PR debug/53671
6793         PR debug/49888
6794         * alias.c (offset_overlap_p): New, factored out of...
6795         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
6796         the conservative special case for symbolic constants.  Don't
6797         adjust zero sizes on alignment.
6799 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
6801         PR rtl-optimization/52573
6802         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
6803         REG_UNUSED for the same register.
6805 2013-01-17  Richard Biener  <rguenther@suse.de>
6806             Marek Polacek  <polacek@redhat.com>
6808         PR rtl-optimization/55833
6809         * loop-unswitch.c (unswitch_loops): Move loop verification...
6810         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
6811         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
6812         Set it to true when we're removing a loop from hierarchy tree in
6813         an irreducible region.
6814         (fix_bb_placements): Adjust caller.
6815         (fix_loop_placements): Likewise.
6817 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
6819         * config/avr/builtins.def (DEF_BUILTIN): Factor out
6820         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
6821         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
6822         Remove ID.  Adjust comments.
6823         * config/avr/avr-c.c (avr_builtin_name): Remove.
6824         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
6825         * config/avr/avr.c (avr_tolower): New static function.
6826         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
6827         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
6828         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
6829         default expansion.
6831 2013-01-17  Jan Hubicka  <jh@suse.cz>
6833         PR tree-optimization/55273
6834         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
6836 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
6838         PR target/55981
6839         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
6840         store through atomic_store<mode>_1.
6841         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
6843 2013-01-17  Martin Jambor  <mjambor@suse.cz>
6845         PR tree-optimizations/55264
6846         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
6847         for virtual methods.
6848         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
6849         virtual methods before inlining is over.
6850         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
6851         virtual functions.
6852         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
6853         non-virtual.
6855 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
6857         PR rtl-optimization/56005
6858         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
6859         pending reads for prefetch.
6861 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
6863         * config/aarch64/aarch64.md
6864         (*cstoresi_neg_uxtw): New pattern.
6865         (*cmovsi_insn_uxtw): New pattern.
6866         (*<optab>si3_uxtw): New pattern.
6867         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
6868         (*<optab>si3_insn_uxtw): New pattern.
6869         (*bswapsi2_uxtw): New pattern.
6871 2013-01-16  Richard Biener  <rguenther@suse.de>
6873         * tree-inline.c (tree_function_versioning): Remove set but
6874         never used variable.
6876 2013-01-16  Richard Biener  <rguenther@suse.de>
6878         PR tree-optimization/55964
6879         * tree-flow.h (rename_variables_in_loop): Remove.
6880         (rename_variables_in_bb): Likewise.
6881         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
6882         (copy_loop_before): Adjust and delete update-ssa status.
6883         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
6884         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
6885         (rename_variables_in_loop): Remove.
6886         (slpeel_update_phis_for_duplicate_loop): Likewise.
6887         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
6888         use available cfg machinery instead of duplicating it.
6889         Update PHI nodes and perform poor-mans SSA update here.
6890         (slpeel_tree_peel_loop_to_edge): Adjust.
6892 2013-01-16  Richard Biener  <rguenther@suse.de>
6894         PR tree-optimization/54767
6895         PR tree-optimization/53465
6896         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
6897         (vrp_visit_phi_node): For PHI arguments coming via backedges
6898         drop all symbolical range information.
6899         (execute_vrp): Compute backedges.
6901 2013-01-16  Richard Biener  <rguenther@suse.de>
6903         * doc/install.texi: Update CLooG and ISL requirements to
6904         0.18.0 and 0.11.1.
6906 2013-01-16  Christian Bruel  <christian.bruel@st.com>
6908         PR target/55301
6909         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
6910         (broken_move): Handle UNSPECV_SP_SWITCH_B.
6911         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
6913 2013-01-16  DJ Delorie  <dj@redhat.com>
6915         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
6916         (UNSPECV_SP_SWITCH_E): New.
6917         (sp_switch_1): Change to an unspec.
6918         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
6919         replace $r15.
6921 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
6923         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
6924         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
6925         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
6926         (expand_mem_thread_fence): Ditto.
6927         (expand_mem_signal_fence): Ditto.
6928         (expand_atomic_load): Ditto.
6929         (expand_atomic_store): Ditto.
6931 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
6933         PR rtl-optimization/55547
6934         PR rtl-optimization/53827
6935         PR debug/53671
6936         PR debug/49888
6937         * alias.c (memrefs_conflict_p): Set sizes to negative after
6938         AND adjustments.
6940 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
6942         PR target/55940
6943         * function.c (thread_prologue_and_epilogue_insns): Always
6944         add crtl->drap_reg to set_up_by_prologue.set, even if
6945         stack_realign_drap is false.
6947 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
6949         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
6950         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
6951         *call): Fix indention.
6953 2013-01-15  Tom de Vries  <tom@codesourcery.com>
6955         PR target/55876
6956         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
6957         Update comment.
6959 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
6961         PR rtl-optimization/55153
6962         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
6964 2013-01-15  Martin Jambor  <mjambor@suse.cz>
6966         PR tree-optimization/55920
6967         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
6968         accesses as grp_to_be_debug_replaced.
6970 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
6972         PR tree-optimization/55920
6973         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
6974         there is non-useless type conversion needed from debug rhs to lhs,
6975         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
6977 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
6978             Mikael Pettersson  <mikpe@it.uu.se>
6980         PR target/43961
6981         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
6982         Thumb.
6983         (ASM_OUTPUT_CASE_LABEL): Remove.
6984         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
6985         * final.c (shorten_branches): Update alignment of labels before
6986         jump tables if CASE_VECTOR_SHORTEN_MODE.
6988 2013-01-15  Richard Biener  <rguenther@suse.de>
6990         PR bootstrap/55961
6991         * system.h: Do not include gmp.h for building host tools.
6993 2013-01-15  Richard Biener  <rguenther@suse.de>
6995         PR middle-end/55882
6996         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
6997         account for bitpos when computing alignment.
6999 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
7001         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
7002         (ix86_target_macros_internal): Likewise.
7004         * config/i386/i386.c (m_CORE2I7): Removed.
7005         (m_CORE_HASWELL): New macro.
7006         (m_CORE_ALL): Likewise.
7007         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
7008         (initial_ix86_arch_features): Likewise.
7009         (processor_target_table): Initializations for Core avx2.
7010         (cpu_names): New names "core-avx2".
7011         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
7012         PROCESSOR_CORE_HASWELL.
7013         (ix86_issue_rate): New case.
7014         (ia32_multipass_dfa_lookahead): Likewise.
7015         (ix86_sched_init_global): Likewise.
7017         * config/i386/i386.h (TARGET_HASWELL): New macro.
7018         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
7019         (processor_type): New PROCESSOR_HASWELL.
7021 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
7023         PR tree-optimization/55955
7024         * tree-vect-loop.c (vectorizable_reduction): Give up early on
7025         *SHIFT_EXPR and *ROTATE_EXPR codes.
7027         PR tree-optimization/48766
7028         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
7029         -ftrapv disable -fwrapv.
7031 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
7033         PR target/55974
7034         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
7035         etc. to 1 and not to __flash.
7036         Use LL suffix for __INT24_MAX__ with -mint8.
7037         Use ULL suffix for __UINT24_MAX__ with -mint8.
7039 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
7041         * config/avr/avr-arch.h
7042         (struct base_arch_s): Use typedef avr_arch_t instead.
7043         (struct arch_info_s): Use typedef avr_arch_info_t instead.
7044         (struct mcu_type_s): Use typedef avr_mcu_t instead.
7045         * config/avr/avr.c: Same.
7046         * config/avr/avr-devices.c: Same.
7047         * config/avr/driver-avr.c: Same.
7048         * config/avr/gen-avr-mmcu-texi.c: Same.
7049         * config/avr/avr-mcus.def: Adjust comment.
7051 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
7053         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
7054         * config/aarch64/iterators.md (VALLDI): New.
7056 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
7057             Andi Kleen  <ak@linux.intel.com>
7059         PR target/55948
7060         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
7061         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
7062         memmodel flag.
7064 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
7066         * config/avr/avr-stdint.h: Remove trailing blanks.
7067         * config/avr/avr-log.h: Same.
7068         * config/avr/avr-arch.h: Same.
7069         * config/avr/avr-devices.c: Same.
7070         * config/avr/avr-dimode.md: Same.
7071         * config/avr/predicates.md: Same.
7072         * config/avr/avr-c.c: Same.  And fix typo.
7074         * config/avr/avr-protos.h: Same.  And:
7075         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
7076         (init_cumulative_args): Rename to avr_init_cumulative_args.
7077         (expand_prologue): Rename to avr_expand_prologue.
7078         (expand_epilogue): Rename to avr_expand_epilogue.
7079         (adjust_insn_length): Rename to avr_adjust_insn_length.
7080         (notice_update_cc): Rename to avr_notice_update_cc.
7081         (final_prescan_insn): Rename to avr_final_prescan_insn.
7082         * config/avr/avr.c: Same.
7083         * config/avr/avr.h: Same.
7084         * config/avr/avr.md: Remove trailing blanks.
7085         (prologue): Use avr_expand_prologue.
7086         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
7088 2013-01-14  Richard Biener  <rguenther@suse.de>
7090         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
7091         verify_location, collect_subblocks): New functions.
7092         (verify_gimple_in_cfg): Verify that locations only reference
7093         BLOCKs in the functions BLOCK tree.
7095 2013-01-14  Richard Biener  <rguenther@suse.de>
7097         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
7098         PHI argument.
7099         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
7100         unshare reference.
7101         (insert_out_of_ssa_copy_on_edge): Likewise.
7102         (rewrite_close_phi_out_of_ssa): Likewise.
7103         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
7104         debug expressions.
7105         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
7106         propagated constants.
7107         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
7108         can not be shared.
7110 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
7112         * config/avr/avr-modes.def: Add GPL copyright notice.
7114 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
7116         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
7117         MEMMODEL_MASK to determine memory model.
7118         (atomic_store<mode>): Ditto from operands[2].
7119         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
7121 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
7123         PR fortran/55935
7124         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
7125         (fold_gimple_assign): Don't call unshare_expr here.
7126         (fold_ctor_reference): Call unshare_expr.
7128 2013-01-13  Terry Guo  <terry.guo@arm.com>
7130         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
7131         * doc/fragments.texi: Document MULTILIB_REUSE.
7132         * gcc.c (multilib_reuse): New internal spec.
7133         (set_multilib_dir): Also search multilib from multilib_reuse.
7134         * genmultilib (tmpmultilib3): Refactor code.
7135         (tmpmultilib4): Ditto.
7136         (multilib_reuse): New multilib argument.
7138 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
7140         * Makefile.in: Update copyright.
7142 2013-01-12  Tom de Vries  <tom@codesourcery.com>
7144         PR middle-end/55890
7145         * calls.c (expand_call): Check if arg_nr is valid.
7147 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
7149         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
7150         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
7151         documentation.  Add missing '__' in front of
7152         __builtin_ia32_packssdw256.
7154 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7156         PR target/55719
7157         * config/s390/s390.c (s390_preferred_reload_class): Do not return
7158         NO_REGS for larl operands.
7159         (s390_reload_larl_operand): Use s390_load_address instead of
7160         emit_move_insn.
7162 2013-01-11  Richard Biener  <rguenther@suse.de>
7164         * tree-cfg.c (verify_node_sharing_1): Split out from ...
7165         (verify_node_sharing): ... here.
7166         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
7168 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
7170         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
7171         Substitute TREECHECKING.
7172         * configure: Regenerate.
7173         * Makefile.in (TREECHECKING): New.
7175 2013-01-11  Richard Guenther  <rguenther@suse.de>
7177         PR tree-optimization/44061
7178         * tree-vrp.c (extract_range_basic): Compute zero as
7179         value-range for __builtin_constant_p of function parameters.
7181 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
7183         Update copyright years.
7185 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
7187         PR rtl-optimization/55672
7188         * lra-eliminations.c (mark_not_eliminable): Permit addition with
7189         const to be eliminable.
7191 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
7193         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
7194         * configure: Regenerate.
7196 2013-01-10  Richard Biener  <rguenther@suse.de>
7198         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
7200 2013-01-10  Richard Biener  <rguenther@suse.de>
7202         PR bootstrap/55792
7203         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
7204         locations for virtual PHI arguments.
7205         (rewrite_update_phi_arguments): Likewise.
7207 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
7209         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
7210         on to assembler.
7212 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
7214         PR tree-optimization/55921
7215         * tree-complex.c (expand_complex_asm): New function.
7216         (expand_complex_operations_1): Call it for GIMPLE_ASM.
7218 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7220         PR target/55718
7221         * config/s390/s390.c (s390_symref_operand_p)
7222         (s390_loadrelative_operand_p): Merge the two functions.
7223         (s390_check_qrst_address, print_operand_address): Add parameters
7224         to s390_loadrelative_operand_p invokation.
7225         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
7226         (s390_reload_larl_operand, s390_secondary_reload): Use
7227         s390_loadrelative_operand_p instead of s390_symref_operand_p.
7228         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
7230 2013-01-09  Mike Stump  <mikestump@comcast.net>
7232         * dse.c (record_store): Remove unnecessary assert.
7234 2013-01-09  Jan Hubicka  <jh@suse.cz>
7236         PR tree-optimization/55569
7237         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
7238         * cfgloop.h (scale_loop_profile): Likewise.
7240 2013-01-09  Jan Hubicka  <jh@suse.cz>
7242         PR lto/45375
7243         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
7244         functions.
7245         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
7247 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
7249         PR middle-end/55114
7250         * expr.h (maybe_emit_group_store): Declare.
7251         * expr.c (maybe_emit_group_store): New function.
7252         * builtins.c (expand_builtin_int_roundingfn): Call it.
7253         (expand_builtin_int_roundingfn_2): Likewise.
7255 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
7257         PR rtl-optimization/55829
7258         * lra-constraints.c (match_reload): Add code for absent output.
7259         (curr_insn_transform): Add code for reloads of matched inputs
7260         without output.
7262 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
7264         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
7265         attribute of movddup insn to DF.
7266         (*vec_interleave_lowv2df): Ditto.
7267         (vec_dupv2df): Ditto.
7269 2013-01-09  Jan Hubicka  <jh@suse.cz>
7271         PR tree-optimiation/55875
7272         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
7273         EVERY_ITERATION parameter.
7274         (number_of_iterations_exit): Check if exit is executed every iteration.
7275         (idx_infer_loop_bounds): Similarly here.
7276         (n_of_executions_at_most): Simplify
7277         to only test for cases where statement is dominated by the
7278         particular bound; handle correctly the "postdominance" test.
7279         (scev_probably_wraps_p): Use max loop iterations info
7280         as a global bound first.
7282 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
7283             Nick Clifton  <nickc@redhat.com>
7285         * config/v850/v850.md (cbranchsf4): New pattern.
7286         (cstoresf4): New pattern.
7287         (cbranchdf4): New pattern.
7288         (cstoredf4): New pattern.
7289         (movsicc): Disallow floating point comparisons.
7290         (cmpsf_le_insn): Fix order of operators.
7291         (cmpsf_lt_insn): Likewise.
7292         (cmpsf_eq_insn): Likewise.
7293         (cmpdf_le_insn): Likewise.
7294         (cmpdf_lt_insn): Likewise.
7295         (cmpdf_eq_insn): Likewise.
7296         (cmpsf_ge_insn): Use LE comparison.
7297         (cmpdf_ge_insn): Likewise.
7298         (cmpsf_gt_insn): Use LT comparison.
7299         (cmpdf_gt_insn): Likewise.
7300         (cmpsf_ne_insn): Delete pattern.
7301         (cmpdf_ne_insn): Delete pattern.
7302         * config/v850/v850.c (v850_gen_float_compare): Use
7303         gen_cmpdf_eq_insn for NE comparison.
7304         (v850_float_z_comparison_operator)
7305         (v850_float_nz_comparison_operator): Move from here ...
7306         * config/v850/predicates.md: ... to here.  Move GT and GE
7307         comparisons into v850_float_z_comparison_operator.
7308         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
7309         Delete prototype.
7310         (v850_float_nz_comparison_operator): Likewise.
7312 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7314         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
7315         with calls to gen_insvsi/gen_insvdi.
7317 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
7319         * config/i386/i386.c (initial_ix86_tune_features): Set up
7320         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
7322 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
7323             Jakub Jelinek  <jakub@redhat.com>
7325         PR tree-optimization/48189
7326         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
7327         If nitercst is 0, don't predict the exit edge.
7329 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7331         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
7332         in asm_fprintf with reg_names.
7333         (aarch64_print_operand_address): Likewise.
7334         (aarch64_return_addr): Likewise.
7335         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
7337 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7339         * config/pa/pa.h (VAL_U6_BITS_P): Define.
7340         (INT_U6_BITS): Likewise.
7341         * config/pa/predicates.md (uint6_operand): New predicate.
7342         (shift5_operand, shift6_operand): Likewise.
7343         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
7344         arith32_operand.
7345         (lshrdi3): Use shift6_operand.
7346         (shrpsi4, shrpdi4): New insn patterns.
7347         (extzv): Delete expander.
7348         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
7349         predicates in unamed zero extract patterns.  Tighten common constraint.
7350         (extv): Delete expander.
7351         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
7352         predicates in unamed sign extract patterns.  Tighten common constraint.
7353         (insv): Delete expander.
7354         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
7355         predicates in unamed insert patterns.  Tighten common constraint.
7356         Change uint32_operand predicate to uint6_operand predicate in unamed
7357         DImode pattern to insert constant values of type 1...1xxxx.
7359 2013-01-04  Jan Hubicka  <jh@suse.cz>
7361         PR tree-optimization/55823
7362         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
7363         issue.
7365 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
7366             Uros Bizjak  <ubizjak@gmail.com>
7368         PR rtl-optimization/55845
7369         * df-problems.c (can_move_insns_across): Stop scanning at
7370         volatile_insn_p source instruction or give up if
7371         across_from .. across_to range contains any volatile_insn_p
7372         instructions.
7374 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
7376         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
7377         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
7378         Declare.
7379         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
7380         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
7382 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
7384         PR fortran/55341
7385         * asan.c (asan_clear_shadow): New function.
7386         (asan_emit_stack_protection): Use it.
7388 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
7390         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
7391         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
7392         with tab instead of space.
7394 2013-01-08  Nick Clifton  <nickc@redhat.com>
7396         * config/rl78/rl78.c (rl78_expand_prologue): Always select
7397         register bank 0 at the start of an interrupt handler.
7398         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
7399         MDBH registers.
7401 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
7403         * config/aarch64/aarch64-simd.md
7404         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
7405         (aarch64_simd_bsl): Likewise.
7406         (aarch64_vcond_internal<mode>): Likewise.
7407         (vcond<mode><mode>): Likewise.
7408         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
7409         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
7411 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
7413         * config/aarch64/aarch64-builtins.c
7414         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
7416 2013-01-08  Martin Jambor  <mjambor@suse.cz>
7418         PR debug/55579
7419         * tree-sra.c (analyze_access_subtree): Return true also after
7420         potentially creating a debug-only replacement.
7422 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
7424         PR middle-end/55890
7425         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
7427         PR tree-optimization/54120
7428         * tree-vrp.c (range_fits_type_p): Don't allow
7429         src_precision < precision from signed vr to unsigned_p
7430         if vr->min or vr->max is negative.
7431         (simplify_float_conversion_using_ranges): Test can_float_p
7432         against CODE_FOR_nothing.
7434 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
7435             Richard Biener  <rguenther@suse.de>
7437         PR middle-end/55851
7438         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
7439         types instead of just INTEGER_TYPE types.
7441 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
7443         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
7444         TF_SIZE): Define.
7446 2013-01-07  Steve Ellcey  <sellcey@mips.com>
7448         PR target/42661
7449         * config/mips/mips.opt: Change mad to mmad to match documentation.
7451 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
7453         PR target/55897
7454         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
7455         .progmemx.data now.
7457 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
7459         PR target/55897
7460         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
7461         (avr_addrspace_t): Add .section_name field.
7462         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
7463         array size.
7464         (avr_addrspace): Same.  Initialize .section_name.  Remove last
7465         NULL entry.  Put __memx into .progmemx.data.
7466         (progmem_section_prefix): Remove.
7467         (avr_asm_init_sections): No need to initialize progmem_section.
7468         (avr_asm_named_section): Use avr_addrspace[].section_name to get
7469         section name prefix.
7470         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
7471         retrieve the progmem section.
7472         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
7473         boundary to run over avr_addrspace[].
7474         (avr_register_target_pragmas): Ditto.
7476 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
7478         * varasm.c (output_constant_def_contents): For asan_protect_global
7479         protected strings, adjust DECL_ALIGN if needed, before testing for
7480         anchored symbols.
7481         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
7482         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
7483         normal decls.
7484         (output_object_block): For asan protected decls, emit asan padding
7485         after their contents.
7486         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
7487         (asan_finish_file): Test it here instead.
7489 2013-01-07  Nick Clifton  <nickc@redhat.com>
7490             Matthias Klose  <doko@debian.org>
7491             Doug Kwan  <dougkwan@google.com>
7492             H.J. Lu  <hongjiu.lu@intel.com>
7494         PR driver/55470
7495         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
7497         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
7499         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
7501         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
7503         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
7505 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
7507         PR target/54461
7508         * doc/install.texi (Cross-Compiler-Specific Options): Document
7509         --with-avrlibc.
7511 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
7513         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
7514         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
7515         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
7516         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
7517         vqmovun_high_s64): Fix source operand number and update copyright.
7519 2013-01-07  Richard Biener  <rguenther@suse.de>
7521         PR middle-end/55890
7522         * gimple.h (gimple_call_builtin_p): New overload.
7523         * gimple.c (validate_call): New function.
7524         (gimple_call_builtin_p): Likewise.
7525         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7526         Use gimple_call_builtin_p.
7527         (find_func_clobbers): Likewise.
7528         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
7529         (strlen_optimize_stmt): Likewise.
7531 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
7533         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
7534         (vld1q_dup_*): Likewise.
7535         (vld1_*): Likewise.
7536         (vld1q_*): Likewise.
7537         (vld1_lane_*): Likewise.
7538         (vld1q_lane_*): Likewise.
7540 2013-01-07  Richard Biener  <rguenther@suse.de>
7542         * lto-streamer.h (LTO_minor_version): Bump to 2.
7544 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
7546         * config/aarch64/aarch64-protos.h
7547         (aarch64_const_double_zero_rtx_p): Rename to...
7548         (aarch64_float_const_zero_rtx_p): ...this.
7549         (aarch64_float_const_representable_p): New.
7550         (aarch64_output_simd_mov_immediate): Likewise.
7551         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
7552         move immediate case.
7553         * config/aarch64/aarch64.c
7554         (aarch64_const_double_zero_rtx_p): Rename to...
7555         (aarch64_float_const_zero_rtx_p): ...this.
7556         (aarch64_print_operand): Allow printing of new constants.
7557         (aarch64_valid_floating_const): New.
7558         (aarch64_legitimate_constant_p): Check for valid floating-point
7559         constants.
7560         (aarch64_simd_valid_immediate): Likewise.
7561         (aarch64_vect_float_const_representable_p): New.
7562         (aarch64_float_const_representable_p): Likewise.
7563         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
7564         (aarch64_output_simd_mov_immediate): New.
7565         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
7566         (*movdf_aarch64): Likewise.
7567         * config/aarch64/constraints.md (Ufc): New.
7568         (Y): call aarch64_float_const_zero_rtx.
7569         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
7571 2013-01-07  Richard Biener  <rguenther@suse.de>
7573         PR tree-optimization/55888
7574         PR tree-optimization/55862
7575         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
7576         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
7577         not if it is contained therein.
7579 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
7581         * config/avr/t-avr: Typo.
7583 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
7585         PR55243
7586         * config/avr/t-avr: Don't automatically rebuild
7587         $(srcdir)/config/avr/t-multilib
7588         $(srcdir)/config/avr/avr-tables.opt
7589         $(srcdir)/doc/avr-mmcu.texi
7590         (avr-mcus): New phony target to build them on request.
7591         (s-avr-mlib, s-avr-mmcu-texi): Remove.
7592         * avr/avr-mcus.def: Adjust comments.
7594 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
7596         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
7598 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
7600         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
7602 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
7604         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
7606 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
7608         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
7609         to generate profiling.
7610         * config/rs6000/aix64.h (LIB_SPEC): Same.
7612 2013-01-04  Andrew Pinski  <apinski@cavium.com>
7614         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
7615         New function.
7616         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
7618 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
7620         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
7621         unconditionally.
7622         (ix86_expand_move): Ditto.
7623         (ix86_zero_extend_to_Pmode): Ditto.
7624         (ix86_expand_call): Ditto.
7625         (ix86_expand_special_args_builtin): Ditto.
7626         (ix86_expand_builtin): Ditto.
7628 2013-01-04  Richard Biener  <rguenther@suse.de>
7630         PR tree-optimization/55862
7631         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
7632         translating them through PHI nodes.
7634 2013-01-04  Martin Jambor  <mjambor@suse.cz>
7636         PR tree-optimization/55755
7637         * tree-sra.c (sra_modify_assign): Do not check that an access has no
7638         children when trying to avoid producing a VIEW_CONVERT_EXPR.
7640 2013-01-04  Marek Polacek  <polacek@redhat.com>
7642         PR middle-end/55859
7643         * opts.c (default_options_optimization): Clarify error message.
7645 2013-01-04  Richard Biener  <rguenther@suse.de>
7647         PR middle-end/55863
7648         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
7649         reassociation.
7651 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7653         PR target/53789
7654         * config/pa/pa.md (movsi): Revert previous change.
7655         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
7656         references.
7658 2013-01-03  Richard Henderson  <rth@redhat.com>
7660         * config/i386/i386.c (ix86_expand_move): Always assign to op1
7661         after eliminating TLS symbols.
7663 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
7665         PR bootstrap/50167
7666         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
7667         * graphite-poly.c (debug_gmp_value): Likewise.
7669 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
7671         PR target/55712
7672         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
7673         selected code model, define __code_mode_small__, __code_model_medium__,
7674         __code_model_large__, __code_model_32__ or __code_model_kernel__.
7675         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
7676         xchg temporary register with %k.  Declare temporary register as
7677         early clobbered.
7678         [__x86_64__]: For medium and large code models, preserve %rbx register.
7680 2013-01-03  Richard Biener  <rguenther@suse.de>
7682         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
7683         (dump_subscript): Adjust.
7684         (finalize_ddr_dependent): Do not dump redundant info.
7685         (analyze_siv_subscript): Adjust.
7686         (subscript_dependence_tester): Likewise.
7687         (compute_affine_dependence): Likewise.
7689 2013-01-03  Richard Biener  <rguenther@suse.de>
7691         Revert
7692         2013-01-03  Richard Biener  <rguenther@suse.de>
7694         PR tree-optimization/55857
7695         * tree-vect-stmts.c (vectorizable_load): Do not setup
7696         re-alignment for invariant loads.
7698         2013-01-02  Richard Biener  <rguenther@suse.de>
7700         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
7701         invariant load do not generate a vector load from the scalar location.
7703 2013-01-03  Richard Biener  <rguenther@suse.de>
7705         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
7706         for not vectorizing.
7707         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
7708         not build INDIRECT_REFs, call get_name once only.
7709         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
7710         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
7712 2013-01-03  Richard Biener  <rguenther@suse.de>
7714         PR tree-optimization/55857
7715         * tree-vect-stmts.c (vectorizable_load): Do not setup
7716         re-alignment for invariant loads.
7718 2013-01-03  Richard Biener  <rguenther@suse.de>
7720         PR lto/55848
7721         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
7722         prefer a built-in decl.
7724 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
7726         * gcc.c (process_command): Update copyright notice dates.
7727         * gcov.c (print_version): Likewise.
7728         * gcov-dump.c (print_version): Likewise.
7730         PR rtl-optimization/55838
7731         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
7732         iv0.step, iv1.step and step.
7734 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
7735             Marc Glisse  <marc.glisse@inria.fr>
7737         PR tree-optimization/55832
7738         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
7739         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
7740         integer_{one,zero}_node.
7742 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
7744         PR debug/54402
7745         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
7746         * var-tracking.c (reverse_op): Don't add reverse ops to
7747         VALUEs that have already
7748         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
7750 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
7752         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
7754 2013-01-02  Teresa Johnson  <tejohnson@google.com>
7756         * dumpfile.c (dump_loc): Print filename with location.
7757         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
7758         new location_t parameter to emit complete unroll message with
7759         new dump framework.
7760         (canonicalize_loop_induction_variables): Compute loops location
7761         and pass to try_unroll_loop_completely.
7762         * loop-unroll.c (report_unroll_peel): New function.
7763         (peel_loops_completely): Use new dump format with location
7764         for main dumpfile message, and invoke report_unroll_peel on success.
7765         (decide_unrolling_and_peeling): Ditto.
7766         (decide_peel_once_rolling): Remove old dumpfile message subsumed
7767         by report_unroll_peel.
7768         (decide_peel_completely): Ditto.
7769         (decide_unroll_constant_iterations): Ditto.
7770         (decide_unroll_runtime_iterations): Ditto.
7771         (decide_peel_simple): Ditto.
7772         (decide_unroll_stupid): Ditto.
7773         * cfgloop.c (get_loop_location): New function.
7774         * cfgloop.h (get_loop_location): Declare.
7776 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
7778         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
7779         NULL.
7781 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7783         PR middle-end/55198
7784         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
7785         BLKmode objects when EXPAND_MEMORY is specified.
7787 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
7789         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
7790         in loop predicate.
7791         (fold_builtin_cpu): Do not share cpu model decls across statements.
7793 2013-01-02  Jason Merrill  <jason@redhat.com>
7795         PR c++/55804
7796         * tree.c (build_array_type_1): Revert earlier change.
7798 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
7800         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
7801         "cortex-a57".
7802         * config/aarch64/aarch64-tune.md: Re-generate.
7804 2013-01-02  Richard Biener  <rguenther@suse.de>
7806         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
7807         invariant load do not generate a vector load from the scalar location.
7809 2013-01-02  Richard Biener  <rguenther@suse.de>
7811         PR bootstrap/55784
7812         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
7813         * configure: Regenerate.
7815 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
7817         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
7818         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
7819         (expand_builtin_int_roundingfn_2): Keep the original target around
7820         for the fallback case.
7822 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
7824         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
7825         to be clear for sign changes.
7827 2013-01-01  Jan Hubicka  <jh@suse.cz>
7829         * ipa-inline-analysis.c: Fix formatting.
7831 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
7833         PR tree-optimization/55831
7834         * tree-vect-loop.c (get_initial_def_for_induction): Use
7835         gsi_after_labels instead of gsi_start_bb.
7837 Copyright (C) 2013 Free Software Foundation, Inc.
7839 Copying and distribution of this file, with or without modification,
7840 are permitted in any medium without royalty provided the copyright
7841 notice and this notice are preserved.