2013-04-23 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / ChangeLog
blobca931ae03749e6bfedb02da258f5b5477aeb9e8c
1 2013-04-23  Richard Biener  <rguenther@suse.de>
3         PR middle-end/57036
4         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
5         parameter, only add abnormal goto edges from the copied body
6         if the call could perform abnormal gotos.
7         (copy_cfg_body): Adjust.
9 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
11         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
13 2013-04-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15         * config/s390/sjlj.S: New file.
16         * config/s390/target.h: New file.
17         * configure.tgt: Set options for S/390.
19 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
21         * coretypes.h (gimple_stmt_iterator): Add struct to make
22         compatible with C.
24 2013-04-23  Richard Biener  <rguenther@suse.de>
26         PR tree-optimization/57026
27         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
28         from SSA names occuring in abnormal PHI nodes.
30 2013-04-22  Andi Kleen  <ak@linux.intel.com>
32         * lto/lto.c (print_lto_report_1): Fix LTO report names.
34 2013-04-22  Andi Kleen  <ak@linux.intel.com>
36         * lto/lto.c (print_lto_report_1): Declare early.
37         (read_cgraph_and_symbols): Call print_lto_report_1 early.
39 2013-04-22  Andi Kleen  <ak@linux.intel.com>
41         * common.opt (-flto-report-wpa): Add.
42         * doc/invoke.texi (-flto-report-wpa): Add.
43         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
44         (lto_main): dito.
46 2013-04-22  Xinliang David Li  <davidxl@google.com>
48         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
49         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
50         * Makefile.in: New dependency
52 2013-04-22  Catherine Moore  <clm@codesourcery.com>
53             David Daney <ddaney.cavm@gmail.com>
55         * configure.ac (gcc_cv_as_micromips_support):  Use the
56         --fatal-warnings option.
57         * configure: Regenerate.
59 2013-04-22  Marek Polacek  <polacek@redhat.com>
61         PR sanitizer/56990
62         * tsan.c (instrument_expr): Don't instrument expression
63         in case its size is zero.
65 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
67         PR target/57032
68         Revert:
69         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
71         * config/alpha/alpha.c (TARGET_LRA_P): New define.
73 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
75         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
76         (gimple_stmt_iterator): New typedef.
77         * gimple.h (gimple_stmt_iterator): Rename to...
78         (gimple_stmt_iterator_d): ... This.
79         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
80         trees be valid for GIMPLE and GENERIC.
81         (TARGET_GIMPLE_FOLD_BUILTIN): New.
82         * gimple-fold.c (gimple_fold_call): Call target hook
83         gimple_fold_builtin.
84         * hooks.c (hook_bool_gsiptr_false): New.
85         * hooks.h (hook_bool_gsiptr_false): New.
86         * target.def (fold_stmt): New.
87         * doc/tm.texi: Regenerate.
89 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
91         PR target/57018
92         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
93         a set sp if no stack realignment.
95 2013-04-22  Nick Clifton  <nickc@redhat.com>
97         * config.gcc (tilegx-linux): Extend extra_objs rather than
98         overwriting it.
99         (tilepro-linux): Likewise.
101 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
103         * config/aarch64/aarch64-builtins.c
104         (CF): Remove.
105         (CF0, CF1, CF2, CF3, CF4, CF10): New.
106         (VAR<1-12>): Add MAP parameter.
107         (BUILTIN_*): Likewise.
108         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
109         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
110         (aarch64_ushl_n<mode>): Likewise.
111         (aarch64_sshr_n<mode>): Likewise.
112         (aarch64_ushr_n<mode>): Likewise.
113         (aarch64_<maxmin><mode>): Likewise.
114         (aarch64_sqrt<mode>): Likewise.
115         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
116         (vshr<q>_n_*): Likewise.
118 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
120         * config/aarch64/aarch64-builtins.c
121         (aarch64_simd_builtin_type_mode): Handle SF types.
122         (sf_UP): Define.
123         (BUILTIN_GPF): Define.
124         (aarch64_init_simd_builtins): Handle SF types.
125         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
126         (frecps): Likewise.
127         (frecpx): Likewise.
128         * config/aarch64/aarch64-simd.md
129         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
130         (aarch64_frecpe<mode>): New.
131         (aarch64_frecps<mode>): Likewise.
132         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
133         (v8type): Add frecp<esx>.
134         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
135         (aarch64_frecps<mode>): Likewise.
136         * config/aarch64/iterators.md (FRECP): New.
137         (frecp_suffix): Likewise.
138         * config/aarch64/arm_neon.h
139         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
141 2013-04-22  Christian Bruel  <christian.bruel@st.com>
143         PR target/56995
144         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
145         (REG_CLASS_NAMES): Idem.
146         (REG_CLASS_CONTENTS): Idem.
147         (REGCLASS_HAS_FP_REG): Idem.
148         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
149         (sh_conditional_register_usage): Idem.
151 2013-04-21  Jeff Law  <law@redhat.com>
153         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
154         (ssa_forward_propagate_and_combine): Use it.
156 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
158         * lra.c: Update the flow chart diagram.
160 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
162         PR rtl-optimization/56847
163         * lra-constraints.c (process_alt_operands): Discourage alternative
164         with non-matche doffsettable memory constraint fro memory with
165         known offset.
167 2013-04-19  Richard Biener  <rguenther@suse.de>
169         PR tree-optimization/56982
170         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
171         function.
172         * gimplify.c (gimplify_call_expr): Notice special calls.
173         (gimplify_modify_expr): Likewise.
174         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
175         abnormal control flow receivers.
176         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
177         in the same way as cfun->has_nonlocal_labels.
178         (gimple_purge_dead_abnormal_call_edges): Likewise.
179         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
180         receivers start a basic-block.
182 2013-04-19  Richard Biener  <rguenther@suse.de>
184         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
185         member ...
186         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
187         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
188         (SLP_TREE_LOAD_PERMUTATION): Add.
189         (vect_transform_slp_perm_load): Adjust prototype.
190         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
191         (vect_free_slp_instance): Likewise.
192         (vect_create_new_slp_node): Likewise.
193         (vect_supported_slp_permutation_p): Remove.
194         (vect_slp_rearrange_stmts): Adjust.
195         (vect_supported_load_permutation_p): Likewise.  Inline
196         vect_supported_slp_permutation_p here.
197         (vect_analyze_slp_instance): Compute load permutations per
198         slp node instead of per instance.
199         (vect_get_slp_defs): Adjust.
200         (vect_transform_slp_perm_load): Likewise.
201         (vect_schedule_slp_instance): Remove redundant code.
202         (vect_schedule_slp): Remove hack for PR56270, add it ...
203         * tree-vect-stmts.c (vectorizable_load): ... here, do not
204         CSE loads for SLP.  Adjust.
206 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
208         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
209         spelling in two comments.
211 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
213         PR target/56797
214         * config/arm/arm.c (load_multiple_sequence): Require SP
215         as base register for loads if SP is in the register list.
217 2013-04-19  Martin Jambor  <mjambor@suse.cz>
219         PR tree-optimization/56718
220         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
221         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
222         and made public.  Adjusted all callers.
223         (ipa_intraprocedural_devirtualization): New function.
224         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
225         (ipa_intraprocedural_devirtualization): Likewise.
226         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
228 2013-04-19  Richard Biener  <rguenther@suse.de>
230         PR tree-optimization/57000
231         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
233 2013-04-19  Terry Guo  <terry.guo@arm.com>
235         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
236         Replace with ...
237         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
238         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
239         (cortex_m4_fmacs): Use new reservations.
240         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
242 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
244         PR rtl-optimization/56999
245         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
246         related code.
247         (lra_coalesce): Remove split_origin_bitmap and related code.
248         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
249         ranges if necessary.
251 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
253         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
254         New array.
255         (ix86_expand_call): Remove clobbered_registers array and use
256         x86_64_ms_sysv_extra_clobbered_registers instead.
257         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
258         Declare here.
259         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
260         predicate.
261         * config/i386/i386.md (*call_rex64_ms_sysv): Use
262         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
263         (*call_value_rex64_ms_sysv): Ditto.
265 2013-04-18  Cary Coutant  <ccoutant@google.com>
267         * dwarf2out.c (output_pubnames): Check die_perennial_p of
268         parent instead of die_mark.
270 2013-04-18  Diego Novillo  <dnovillo@google.com>
272         * gimple.c (create_gimple_tmp): New.
273         (get_expr_type): New.
274         (build_assign): New.
275         (build_type_cast): New.
276         * gimple.h (enum ssa_mode): Define.
277         (gimple_seq_set_location): New.
278         * asan.c (build_check_stmt): Change some gimple_build_* calls
279         to use build_assign and build_type_cast.
281 2013-04-18  Richard Biener  <rguenther@suse.de>
283         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
284         handle negative step.  Remove redundant checks.
285         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
286         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
287         for negative step and grouped loads fail to vectorize.
289 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
291         * emit-rtl.c (reset_insn_used_flags): New function.
292         (reset_all_used_flags): Use it.
293         (verify_insn_sharing): New function.
294         (verify_rtl_sharing): Fix verification for SEQUENCEs.
296 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
298         PR tree-optimization/56984
299         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
300         and (x >> M) >= N don't register any assertion if N << M is the
301         minimum value.
303 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
305         * lower-subreg.c (resolve_simple_move): If called self-recursive,
306         do not delete_insn insns that have not yet been emitted, only
307         unlink them with remove_insn.
308         * df-scan.c (df_insn_delete): Revert r197492.
310 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
312         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
313         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
315 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
317         * config/arm/arm.md (movsicc_insn): Convert define_insn into
318         define_insn_and_split.
319         (and_scc,ior_scc,negscc): Likewise.
320         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
322 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
324         * config/arm/arm.c (use_return_insn): Return 0 for targets that
325         can benefit from using a sequence of LDRD instructions in epilogue
326         instead of a single LDM instruction.
328 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
330         PR 45688
331         * doc/extend.texi: Fix typo.
333 2013-04-17  Richard Biener  <rguenther@suse.de>
335         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
336         (vect_build_slp_tree): ... here.
337         (vect_build_slp_tree_1): Compute which stmts of the SLP group
338         match.  Remove special-casing of mismatched complex loads.
339         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
340         re-try the match with swapped commutative operands.
341         (vect_supported_load_permutation_p): Remove special-casing of
342         mismatched complex loads.
343         (vect_analyze_slp_instance): Adjust.
345 2013-04-17  Richard Biener  <rguenther@suse.de>
347         PR rtl-optimization/56921
348         * cfgloop.h (struct loop): Add simple_loop_desc member.
349         (struct niter_desc): Mark with GTY(()).
350         (simple_loop_desc): Do not use aux field but simple_loop_desc.
351         * loop-iv.c (get_simple_loop_desc): Likewise.
352         (free_simple_loop_desc): Likewise.
354         Revert
355         2013-04-16  Richard Biener  <rguenther@suse.de>
357         PR rtl-optimization/56921
358         * loop-init.c (pass_rtl_move_loop_invariants): Add
359         TODO_do_not_ggc_collect to todo_flags_finish.
360         (pass_rtl_unswitch): Same.
361         (pass_rtl_unroll_and_peel_loops): Same.
362         (pass_rtl_doloop): Same.
364 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
366         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
367         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
368         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
369         references.
370         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
371         * tree-streamer.c (record_common_node): Adjust reference in comment.
373 2013-04-17  Terry Guo  <terry.guo@arm.com>
375         * config/arm/cortex-m4.md: Add a new bypass.
377 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
379         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
380         New pattern.
381         (*subs_<optab><mode>_multp2): New pattern.
382         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
383         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
385 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
387         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
388         (*subs_mul_imm_<mode>): New pattern.
390 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
392         PR target/56948
393         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
394         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
395         (vsx_movti_32bit): Change j->wa to O->wa.
397 2013-04-16  Richard Biener  <rguenther@suse.de>
399         PR rtl-optimization/56921
400         * loop-init.c (pass_rtl_move_loop_invariants): Add
401         TODO_do_not_ggc_collect to todo_flags_finish.
402         (pass_rtl_unswitch): Same.
403         (pass_rtl_unroll_and_peel_loops): Same.
404         (pass_rtl_doloop): Same.
406 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
408         * config/arm/arm.c (emit_multi_reg_push): New declaration
409         for an existing function.
410         (arm_emit_strd_push): New function.
411         (arm_expand_prologue): Used here.
412         (arm_emit_ldrd_pop): New function.
413         (arm_expand_epilogue): Used here.
414         (arm_get_frame_offsets): Update condition.
415         (arm_emit_multi_reg_pop): Add a special case for load of a single
416         register with writeback.
418 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
420         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
421         description.
423 2013-04-16  Richard Biener  <rguenther@suse.de>
425         PR tree-optimization/56756
426         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
427         (first_mem_ref_loc): New.
428         (execute_sm): Place the load temporarily before a previous
429         access instead of in the latch edge to ensure its SSA dependencies
430         are defined at points dominating the load.
432 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
434         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
435         correct fix by moving header and footer insn to the footer of
436         the merged basic block.  Clear BB_END of the merged-away block.
438         PR middle-end/43631
439         * emit-rtl.c (make_note_raw): New function.
440         (link_insn_into_chain): New static inline function.
441         (add_insn): Use it.
442         (add_insn_before, add_insn_after): Factor insn chain linking code...
443         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
444         using link_insn_into_chain.
445         (note_outside_basic_block_p): New helper function for emit_note_after
446         and emit_note_before.
447         (emit_note_after): Use nobb variant of add_insn_after if the note
448         should not be contained in a basic block.
449         (emit_note_before): Use nobb variant of add_insn_before if the note
450         should not be contained in a basic block.
451         (emit_note_copy): Use make_note_raw.
452         (emit_note): Likewise.
453         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
454         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
455         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
456         the moved barrier the tail of the basic block it follows.
457         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
459 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
461         PR tree-optimization/56962
462         * gimple-ssa-strength-reduction.c (record_increment): Only set
463         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
464         either rhs1 or rhs2 is equal to c->base_expr.
466 2013-04-15  Richard Biener  <rguenther@suse.de>
468         PR tree-optimization/56933
469         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
470         member.
471         (GROUP_READ_WRITE_DEPENDENCE): Remove.
472         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
473         * tree-vect-data-refs.c (vect_analyze_group_access): Move
474         dependence check ...
475         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
476         ... here.
477         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
478         GROUP_READ_WRITE_DEPENDENCE.
480 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
482         * emit-rtl.c (reset_all_used_flags): New function.
483         (verify_rtl_sharing): Call reset_all_used_flags before and after
484         performing the checks.
486 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
488         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
489         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
490         * config/arm/constraints.md (De): New constraint.
491         * config/arm/neon.md (anddi3_neon): Delete.
492         (neon_vand<mode>): Expand to standard anddi3 pattern.
493         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
494         Move earlier in the file.
495         (neon_inv_logic_op2): Likewise.
496         (arm_anddi_operand_neon): New predicate.
498 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
500         * configure.ac (gcc_cv_ld_as_needed): Set
501         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
502         Use -z ignore, -z record on *-*-solaris2*.
503         (HAVE_LD_AS_NEEDED): Update comment.
504         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
505         * configure: Regenerate.
506         * config.in: Regenerate.
507         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
508         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
509         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
510         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
511         equivalents.  Fix markup.
512         * doc/tm.texi: Regenerate.
514 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
516         * config/i386/i386.opt: New option mstack-protector-guard=.
517         * config/i386/i386-opts.h: Add enum stack_protector_guard.
518         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
519         TARGET_SSP_TLS_GUARD.
520         * config/i386/i386.c (ix86_option_override_internal): Set
521         ix86_stack_protector_guard.
522         * config/i386/i386.md (stack_protect_set): Enable for
523         TARGET_SSP_TLS_GUARD only.
524         (stack_protect_set_<mode>): Ditto.
525         (stack_protect_test): Ditto.
526         (stack_protect_test_<mode>): Ditto.
527         * doc/invoke.texi (i386 Option): Document.
529 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
531         PR target/56890
532         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
533         (S_MODES): Set H_MODE bit.
534         (SF_MODES): Set only S_MODE and SF_MODE bits.
535         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
536         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
537         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
538         <MODE_FLOAT>: Likewise.
540 2013-04-15  Joey Ye  <joey.ye@arm.com>
542         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
544 2013-04-15  Joey Ye  <joey.ye@arm.com>
546         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
547         for real far jump.
548         (thumb_far_jump_used_p): Count instruction size and set
549         far_jump_used.
551 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
553         * reorg.c (fill_simple_delay_slots): Reindent block of code.
554         * resource.c (mark_target_live_regs): Reformat conditional block.
556 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
558         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
559         notes, they are emitted only just before final.
560         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
562 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
564         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
565         * cfgrtl.c (delete_insn): Call it here instead.
566         * lra-spills.c (lra_final_code_change): Use delete_insn.
567         * haifa-sched.c (sched_remove_insn): Likewise.
568         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
569         returning to the nop pool.
570         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
571         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
573 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
575         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
576         * doc/tm.texi: Regenerated.
578 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
580         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
581         QImode checks.
583 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
585         * df-core.c (df_find_def): Compare register numbers.
586         (df_find_use): Likewise.
588 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
590         PR target/56903
591         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
592         lra_in_progress for return.
594 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
596         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
597         define_insn into define_insn_and_split and emit movsicc patterns.
599 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
601         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
603 2013-04-12  Richard Biener  <rguenther@suse.de>
605         * tree-pass.h (TODO_do_not_ggc_collect): New.
606         * passes.c (execute_one_ipa_transform_pass): Honor
607         TODO_do_not_ggc_collect.
608         (execute_one_pass): Likewise.
610         Revert
611         2013-04-10  Richard Biener  <rguenther@suse.de>
613         * passes.c (init_optimization_passes): Remove reload pass.
614         * ira.c (do_reload): Merge into ...
615         (ira): ... this.
616         (rest_of_handle_reload): Remove.
617         (pass_reload): Likewise.
618         * config/i386/i386.c (ix86_option_override): Refer to ira instead
619         of reload for vzeroupper pass placement.
621 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
623         PR tree-optimization/56918
624         PR tree-optimization/56920
625         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
626         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
627         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
628         use wide_mul_with_sign method.
630 2013-04-12  Richard Biener  <rguenther@suse.de>
632         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
633         not be considered a gimple constant.
635 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
637         * fold-const.c (const_binop): Handle vector shifts by a scalar.
638         (fold_binary_loc): Call const_binop also for mixed vector-scalar
639         operations.
641 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
642             Jakub Jelinek  <jakub@redhat.com>
644         * opts.c: Include diagnostic-color.h.
645         (common_handle_option): Handle OPT_fdiagnostics_color_.
646         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
647         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
648         (diagnostic-color.o): New.
649         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
650         (diagnostic_color_rule): New enum.
651         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
652         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
653         the location string.
654         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
655         either NULL, or color kind.
656         * diagnostic-color.c: New file.
657         * diagnostic-color.h: New file.
658         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
659         arguments.
660         * doc/invoke.texi (-fdiagnostics-color): Document.
661         * pretty-print.h (pp_show_color): Define.
662         (struct pretty_print_info): Add show_color field.
663         * diagnostic.c: Include diagnostic-color.h.
664         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
665         macros.  Colorize error:, warning: etc. strings and also the location
666         string.
667         (diagnostic_show_locus): Colorize the caret line.
668         * pretty-print.c: Include diagnostic-color.h.
669         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
670         inside of %< %> quotes or quoted through q format modifier.
672 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
674         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
676 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
678         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
679         code in CC_NZ mode.
680         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
681         pattern.
683 2013-04-11  Marek Polacek  <polacek@redhat.com>
685         PR tree-optimization/48184
686         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
688 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
690         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
691         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
692         (skip_simple_arithmetic): Tidy up.
693         * tree.h (skip_simple_constant_arithmetic): Declare.
695 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
697         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
699 2013-04-11  Richard Biener  <rguenther@suse.de>
701         * tree-vect-loop.c (get_initial_def_for_induction): Properly
702         generate vector constants.
704 2013-04-11  Richard Biener  <rguenther@suse.de>
706         PR tree-optimization/56878
707         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
708         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
709         New function.
710         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
711         Prefer to align the DR with the most invariant base address.
713 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
715         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
716         comment.
718 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
720         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
721         floating-point vector comparisons against 0.
723 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
725         PR tree-optimization/56899
726         * fold-const.c (extract_muldiv_1): Apply distributive law
727         only if TYPE_OVERFLOW_WRAPS (ctype).
729 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
731         PR target/56124
732         * ira-costs.c (scan_one_insn): Check whether the source rtx of
733         loading has side effect.
735 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
737         * config/sparc/sparc.c: Include tree-pass.h.
738         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
739         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
740         head of file.  Change return type.  Split off gate function.
741         (sparc_gate_work_around_errata): New function.
742         (pass_work_around_errata): New pass definition.
743         (insert_pass_work_around_errata) New pass insert definition to
744         insert pass_work_around_errata just after delayed-branch scheduling.
745         (sparc_option_override): Insert the pass.
746         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
748 2013-04-10  David S. Miller  <davem@davemloft.net>
750         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
751         or -mcpu=hypersparc.
753         * target.def (cstore_mode): New hook.
754         * target.h: Include insn-codes.h
755         * targhooks.c: Likewise.
756         (default_cstore_mode): New function.
757         * targhooks.h: Declare it.
758         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
759         * doc/tm.texi: Rebuild.
760         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
761         target hook, rather than inspecting the insn_data.
762         * config/sparc/sparc.c (sparc_cstore_mode): New function.
763         (TARGET_CSTORE_MODE): Redefine.
764         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
765         result patterns.
766         * config/sparc/predicates.md (cstore_result_operand): New special
767         predicate.
768         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
769         Use it for operand 0.
770         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
771         (*snesi_special): Likewise.
772         (*snesi_zero): Likewise.
773         (*seqsi_zero): Likewise.
774         (*sltu_insn): Likewise.
775         (*sgeu_insn): Likewise.
776         (*seqdi_special): Make operand 0 and comparison operation be of
777         DImode.
778         (*snedi_special): Likewise.
779         (*snedi_special_vis3): Likewise.
780         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
781         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
782         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
783         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
784         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
785         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
786         (*sltu_extend_sp64): Likewise.
787         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
788         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
789         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
790         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
791         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
793 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
795         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
796         (aarch64_start_file): Use the new function.
798 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
799             Jason Merrill  <jason@redhat.com>
801         * common.opt: Add -gdwarf.
802         * opts.c (common_handle_option): Handle it.
803         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
805 2013-04-10  Richard Biener  <rguenther@suse.de>
807         * passes.c (execute_todo): Do not call ggc_collect conditional here.
808         (execute_one_ipa_transform_pass): But unconditionally here.
809         (execute_one_pass): And here.
810         (init_optimization_passes): Remove reload pass.
811         * tree-pass.h (TODO_ggc_collect): Remove.
812         (pass_reload): Likewise.
813         * ira.c (do_reload): Merge into ...
814         (ira): ... this.
815         (rest_of_handle_reload): Remove.
816         (pass_reload): Likewise.
817         * config/i386/i386.c (ix86_option_override): Refer to ira instead
818         of reload for vzeroupper pass placement.
819         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
820         and todo_flags_finish of all passes.
822 2013-04-10  Richard Biener  <rguenther@suse.de>
824         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
825         first_const_oprnd field, rename first_def_type to first_op_type.
826         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
827         (vect_get_and_check_slp_defs): Always use the type of the
828         operand.  Allow mixed vect_external_def, vect_constant_def types.
829         (vect_get_constant_vectors): Handle mixed vect_external_def,
830         vect_constant_def types.
832 2013-04-10  Joern Rennecke <joern.rennecke@embecosm.com>
834         PR tree-optimization/55524
835         * tree-ssa-math-opts.c
836         (convert_mult_to_fma): Don't use an fms construct
837         when we don't have an fms operation, but fnma, and it looks
838         likely that we'll be able to use the latter.
840 2013-04-10  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
842         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
843         function.
844         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
845         inline fail caused by overwritable functions.
847 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
849         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
850         unnecessary bits in the constant power of two case.
852 2013-04-10  Richard Biener  <rguenther@suse.de>
854         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
855         broken code swapping operands.
856         (vect_build_slp_tree): Do not compute load permutations here.
857         (vect_analyze_slp_instance): Compute load permutations here,
858         after building the SLP tree.
860 2013-04-09  Christian Bruel  <christian.bruel@st.com>
862         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
863         of next/prev_real_insn.
865 2013-04-09  Jan Hubicka  <jh@suse.cz>
867         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
868         Drop aliased parameter.
869         (function_and_variable_visibility): Do not handle alias pairs.
870         * cgraph.c (varpool_externally_visible_p): Update prototype.
871         * varpool.c (varpool_add_new_variable): Update.
873 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
875         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
877 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
879         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
881         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
883 2013-04-09  Marek Polacek  <polacek@redhat.com>
885         PR tree-optimization/48762
886         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
888 2013-04-09  Richard Biener  <rguenther@suse.de>
890         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
891         dealing with cost.
892         (vect_build_slp_tree): Likewise.
893         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
894         calculating the cost of a SLP instance.
895         (vect_analyze_slp_instance): Use it from here, after building
896         the SLP tree.
898 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
900         PR middle-end/56883
901         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
902         expand_omp_for_static_chunk): Use simple_p = true in
903         force_gimple_operand_gsi calls when assigning to addressable decls.
905 2013-04-09  Jeff Law  <law@redhat.com>
907         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
908         when the boolean was created by converting a wider object which
909         had a boolean range.
911 2013-04-09  Richard Biener  <rguenther@suse.de>
913         * tree-vectorizer.h (slp_void_p): Remove.
914         (slp_tree): Typedef before _slp_tree declaration.
915         (struct _slp_tree): Use a vector of slp_tree as children.
916         (vect_get_place_in_interleaving_chain): Remove.
917         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
918         Move ...
919         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
920         and make static.
921         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
922         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
923         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
924         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
925         Use slp_node instead of slp_void_p and adjust.
927 2013-04-09  Richard Biener  <rguenther@suse.de>
929         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
930         work that is not necessary.
932 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
934         PR tree-optimization/56854
935         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
936         forward into clobber stmts if it would change MEM_REF lhs into
937         non-MEM_REF.
939 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
941         * tree.c (type_hash_lookup, type_hash_add): Make static.
942         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
944 2013-04-09  Richard Biener  <rguenther@suse.de>
946         * tree.h (unsave_expr_now): Remove.
947         * tree-inline.c (mark_local_for_remap_r): Remove.
948         (unsave_expr_1): Likewise.
949         (unsave_r): Likewise.
950         (unsave_expr_now): Likewise.
951         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
952         (propagate_tree_value): Likewise.
954 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
956         * doc/rtl.texi (sequence): Rewrite documentation to match the
957         current use of SEQUENCE rtl objects.
958         * rtl.def (SEQUENCE): Likewise.
960         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
961         Update documentation.
962         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
963         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
965         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
967 2013-04-08  Teresa Johnson  <tejohnson@google.com>
969         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
970         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
971         methods.
972         (estimate_edge_size_and_time): Add comment to suggest using rounding
973         methods.
974         (estimate_node_size_and_time): Ditto.
975         (remap_edge_change_prob): Use helper rounding divide methods.
976         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
977         (gimple_mod_pow2_value_transform): Ditto.
978         (gimple_mod_subtract_transform): Ditto.
979         (gimple_ic_transform): Ditto.
980         (gimple_stringops_transform): Ditto.
981         * stmt.c (conditional_probability): Ditto.
982         (emit_case_dispatch_table): Ditto.
983         * lto-cgraph.c (merge_profile_summaries): Ditto.
984         * tree-optimize.c (execute_fixup_cfg): Ditto.
985         * cfgcleanup.c (try_forward_edges): Ditto.
986         * cfgloopmanip.c (scale_loop_profile): Ditto.
987         (loopify): Ditto.
988         (duplicate_loop_to_header_edge): Ditto.
989         (lv_adjust_loop_entry_edge): Ditto.
990         * tree-vect-loop.c (vect_transform_loop): Ditto.
991         * profile.c (compute_branch_probabilities): Ditto.
992         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
993         * lto-streamer-in.c (input_cfg): Ditto.
994         * gimple-streamer-in.c (input_bb): Ditto.
995         * ipa-cp.c (update_profiling_info): Ditto.
996         (update_specialized_profile): Ditto.
997         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
998         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
999         rounding methods.
1000         * sched-rgn.c (compute_dom_prob_ps): Ditto.
1001         (compute_trg_info): Ditto.
1002         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
1003         (purge_dead_edges): Ditto.
1004         * loop-unswitch.c (unswitch_loop): Ditto.
1005         * cgraphclones.c (cgraph_clone_edge): Ditto.
1006         (cgraph_clone_node): Ditto.
1007         * tree-inline.c (copy_bb): Ditto.
1008         (copy_edges_for_bb): Ditto.
1009         (initialize_cfun): Ditto.
1010         (copy_cfg_body): Ditto.
1011         (expand_call_inline): Ditto.
1013 2013-04-08  Kai Tietz  <ktietz@redhat.com>
1015         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
1016         TARGET_CYGWIN64 by TARGET_64BIT.
1018 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
1020         * config/epiphany/epiphany.md (GPR_1): New constant.
1021         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
1022         * config/epiphany/epiphany.c (gen_compare_reg):
1023         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
1024         is already in place.
1025         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
1026         Don't require being called during rtl expansion; If y operlaps r0,
1027         return 0.
1028         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
1029         (epiphany_expand_epilogue): Likewise.
1031         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
1032         Don't use CC_FPmode for ORDERED / UNORDERED.
1033         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
1035         * config/epiphany/constraints.md (CnL): New constraint.
1036         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
1037         * config/epiphany/predicates.md (add_operand): Allow 1024.
1039         * config/epiphany/epiphany.md (logical_op): New code iterator.
1040         (op_mnc): New code attribute.
1041         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
1042         (mov_f+1, mov_f+2): New peephole2 patterns.
1044         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
1045         (cstoresi4): Also allow re-use of zero result when doing a NE
1046         comparison to a non-zero operand.
1047         Use (clobber (scratch)) for first insn if the gpr output is not needed.
1049         * config/epiphany/epiphany.md (<insn_opname>v2si3):
1050         Use gen_addsi3_i / gen_subsi3_i.
1052 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
1054         PR c++/34949
1055         PR c++/50243
1056         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
1057         contain anything but clobbers, at most one __builtin_stack_restore,
1058         optionally debug stmts and final resx, and if it has at least one
1059         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
1060         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
1061         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
1062         which isn't defaut definition, remove them.
1063         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
1064         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
1065         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
1066         with MEM_REF LHS with SSA_NAME address.
1068 2013-04-08  Jeff Law  <law@redhat.com>
1070         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
1072 2013-04-08  Richard Biener  <rguenther@suse.de>
1074         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
1075         extra newline.
1076         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
1077         determined vector type.
1078         (vect_analyze_data_refs): Likewise.
1079         (vect_get_new_vect_var): Adjust.
1080         (vect_create_destination_var): Preserve SSA name versions.
1081         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
1082         not dump anything here.
1084 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
1086         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
1087         Add member lr_slot_known.
1088         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
1089         if necessary.
1090         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
1091         Remove code that sets lr_slot_offset according to what a previous
1092         version of epiphany_emit_save_restore used to do.
1093         (epiphany_emit_save_restore): When doing an lr save or restore,
1094         set/verify lr_slot_known and lr_slot_offset.
1096 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
1098         PR target/54338
1099         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
1100         in ALL_REGS.
1102 2013-04-08  Richard Biener  <rguenther@suse.de>
1104         * alias.c (find_base_term): Fix thinko in previous change.
1106 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
1108         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
1109         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
1110         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
1111         if possible to compute val.
1112         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
1113         For QImode integers don't require anything about precision.  Use
1114         const_with_all_bytes_same to find out if the constant doesn't have
1115         repeated bytes in it.
1117 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1119         * config/s390/s390.c (s390_expand_insv): Only accept insertions
1120         within mode size.
1122 2013-04-08  Marek Polacek  <polacek@redhat.com>
1124         PR rtl-optimization/48182
1125         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
1126         value to 1.
1128 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1130         PR target/55487
1131         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
1132         nuses, make sure we have a label.
1134 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1136         PR target/56843
1137         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
1138         (rs6000_emit_swdiv_low_precision): Remove.
1139         (rs6000_emit_swdiv): Rewrite to handle between one and four
1140         iterations of Newton-Raphson generally; modify required number of
1141         iterations for some cases.
1142         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
1144 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
1146         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
1147         set-but-unused variable.
1149         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
1150         basic blocks of released function bodies garbage-collectable.
1152         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
1153         (struct rtl_opt_pass): Add TODO_df_finish.
1155         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
1157 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
1159         * config/arm/constraints.md (q): New constraint.
1160         * config/arm/ldrdstrd.md: New file.
1161         * config/arm/arm.md (ldrdstrd.md) New include.
1162         (arm_movdi): Use "q" instead of "r" constraint
1163         for double-word memory access.
1164         (movdf_soft_insn): Likewise.
1165         * config/arm/vfp.md (movdi_vfp): Likewise.
1166         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
1167         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
1168         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
1169         (mem_ok_for_ldrd_strd): Likewise.
1170         (output_move_double): Update assertion.
1172 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
1174         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
1176 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
1178         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
1179         define_insn_and_split.
1180         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
1182 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
1184         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
1185         define_insn_and_split.
1186         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
1187         (shiftsi3_compare): New pattern.
1188         (rrx): New pattern.
1189         * config/arm/unspecs.md (UNSPEC_RRX): New.
1191 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
1193         * config/arm/arm.md (negdi_extendsidi): New pattern.
1194         (negdi_zero_extendsidi): Likewise.
1196 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
1198         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
1199         define_insn_and_split.
1200         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
1201         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
1203 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
1205         * config/arm/arm.md (arm_subdi3): Convert define_insn into
1206         define_insn_and_split.
1207         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
1208         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
1210 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
1212         * config/arm/arm.md (subsi3_carryin): New pattern.
1213         (subsi3_carryin_const): Likewise.
1214         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
1215         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
1217 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
1219         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
1221 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
1223         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
1224         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
1226 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1228         * config/arm/arm.c (arm_expand_builtin): Change fcode
1229         type to unsigned int.
1231 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1233         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
1235 2013-04-04  Ian Lance Taylor  <iant@google.com>
1237         * doc/standards.texi (Standards): The Go frontend supports the Go 1
1238         language standard.
1240 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
1242         PR middle-end/56729
1243         * df-scan.c (df_insn_delete): Disable failing assert.
1245 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1247         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
1248         New function prototype.
1249         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
1250         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
1251         (arm_builtin_vectorized_function): New function.
1253 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1255         * config/arm/arm_neon_builtins.def: New file.
1256         * config/arm/arm.c (neon_builtin_data): Move contents to
1257         arm_neon_builtins.def.
1258         (enum arm_builtins): Include neon builtin definitions.
1259         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
1260         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
1262 2013-04-04  Marek Polacek  <polacek@redhat.com>
1264         PR tree-optimization/48186
1265         * predict.c (maybe_hot_frequency_p): Return false if
1266         HOT_BB_FREQUENCY_FRACTION is 0.
1267         (cgraph_maybe_hot_edge_p): Likewise.
1269 2013-04-04  Richard Biener  <rguenther@suse.de>
1271         PR tree-optimization/56826
1272         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
1273         more accurately.
1275 2013-04-04  Richard Biener  <rguenther@suse.de>
1277         PR tree-optimization/56213
1278         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
1279         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
1281 2013-04-04  Richard Biener  <rguenther@suse.de>
1283         PR tree-optimization/56837
1284         * tree-loop-distribution.c (classify_partition): For non-zero
1285         values require that the value has the same precision as its
1286         mode to be useful as memset value.
1288 2013-04-03  Nick Clifton  <nickc@redhat.com>
1290         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
1291         (fmssf4): Use fmsf.s on E3V5 architectures.
1292         (fnmasf4): Use fnmaf.s on E3V5 architectures.
1293         (fnmssf4): Use fnmsf.s on E3V5 architectures.
1295 2013-04-03  Jeff Law  <law@redhat.com>
1297         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
1298         (lra-eliminations.o): Likewise.
1300 2013-04-03  Teresa Johnson  <tejohnson@google.com>
1302         * gcov-io.c (compute_working_sets): Moved most of body of old
1303         compute_working_sets here from profile.c.
1304         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
1305         (gcov_working_set_t): Moved typedef here from basic-block.h
1306         (compute_working_set): Declare.
1307         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
1308         (get_working_sets): Renamed from compute_working_set,
1309         replace most of body with call to new compute_working_sets.
1310         (get_exec_counts): Replace call to compute_working_sets
1311         to get_working_sets.
1312         * profile.h (get_working_sets): Renamed from compute_working_set.
1313         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
1314         to get_working_sets.
1315         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
1316         * gcov-dump.c (dump_working_sets): New function.
1318 2013-04-03  Kenneth Zadeck <zadeck@naturalbridge.com>
1320         * hwint.c (sext_hwi, zext_hwi): New functions.
1321         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
1322         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
1323         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
1324         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
1325         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
1326         (sext_hwi, zext_hwi): New functions.
1328 2013-04-03  Jeff Law  <law@redhat.com>
1330         PR tree-optimization/56799
1331         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
1332         back test for widening conversion erroneously dropped in prior change.
1334 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1336         PR target/56809
1337         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
1338         instead of next_real_insn.
1340 2013-04-03  Marek Polacek  <polacek@redhat.com>
1342         PR sanitizer/55702
1343         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
1345 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1347         PR target/56809
1348         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
1349         next_real_insn.
1350         (thumb1_output_casesi): Likewise.
1351         (thumb2_output_casesi): Likewise.
1353 2013-04-03  Richard Biener  <rguenther@suse.de>
1355         PR tree-optimization/56817
1356         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
1357         Split out ...
1358         (tree_unroll_loops_completely_1): ... new function to manually
1359         walk the loop tree, properly defering outer loops of unrolled
1360         loops to later iterations.
1362 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
1364         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
1365         (vectorizable_load): Likewise.
1366         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
1367         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
1369 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
1371         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
1372         BIT_FIELD_REF.
1374 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1376         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
1378 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
1380         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
1382 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
1384         PR tree-optimization/56790
1385         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
1386         folding.
1388 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
1390         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
1391         Handle VEC_MERGE.
1392         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
1393         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
1394         equal arguments.
1396 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
1398         PR c/19449
1399         * tree.h (force_folding_builtin_constant_p): New decl.
1400         * builtins.c (force_folding_builtin_constant_p): New variable.
1401         (fold_builtin_constant_p): Fold immediately also if
1402         force_folding_builtin_constant_p.
1404 2013-04-03  Richard Biener  <rguenther@suse.de>
1406         PR tree-optimization/56812
1407         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
1408         DRs of the same interleaving chain are independent.
1410 2013-04-02  Jason Merrill  <jason@redhat.com>
1412         * gdbinit.in (pbb): Use debug fn.
1414 2013-04-02  Lawrence Crowl  <crowl@google.com>
1416         * sese.h (struct ivtype_map_elt_s): Remove unused.
1417         (extern debug_ivtype_map): Remove unused.
1418         (extern eq_ivtype_map_elts): Remove unused.
1419         * sese.c (debug_ivtype_map): Removed unused.
1420         (debug_ivtype_map_1): Removed unused.
1421         (debug_ivtype_elt): Remove unused.
1422         (eq_ivtype_map_elts): Remove unused.
1425 2013-04-02  Kai Tietz  <ktietz@redhat.com>
1427         PR target/52790
1428         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
1429         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
1430         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
1431         function.
1432         (legitimize_pe_coff_symbol): Likewise.
1433         (is_imported_p): New helper-function.
1434         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
1435         for Windows x64 targets.
1436         (ix86_expand_prologue): Optimize for pe-coff targets.
1437         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
1438         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
1439         medium/large code-model.
1440         (legitimize_pic_address): Likewise.
1441         (legitimize_tls_address): Likewise.
1442         (ix86_expand_call): Likewise.
1443         (x86_output_mi_thunk): Likewise.
1444         (get_dllimport_decl): Add new beimport argument.
1445         (construct_plt_address): Don't assert for x64 pe-coff targets.
1446         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
1447         targets.
1448         (SYMBOL_FLAG_STUBVAR): New macro.
1449         (SYMBOL_REF_STUBVAR_P): Likewise.
1450         * config/i386/winnt.c (stub_list): New structure.
1451         (stub_head): New local variable.
1452         (i386_pe_record_stub): New function.
1453         (i386_pe_file_end): Emit refptr-stubs.
1455 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
1457         PR rtl-optimization/56745
1458         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
1459         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
1461         PR c++/34949
1462         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
1463         and both of them are MEM_REFs, just compare first argument for
1464         equality and attempt to deal even with differing offsets.
1466         PR c++/34949
1467         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
1468         of gimple_clobber_p to be MEM_REF.
1469         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
1470         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
1471         after gimplification.
1472         * asan.c (get_mem_ref_of_assignment): Don't instrument
1473         gimple_clobber_p stmts.
1474         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
1475         gimple_clobber_p stmt if they have MEM_REF lhs and
1476         are dead because of another gimple_clobber_p stmt.
1477         * tree-ssa-live.c (clear_unused_block_pointer): Treat
1478         gimple_clobber_p stmts like debug stmts.
1479         (remove_unused_locals): Remove clobbers with MEM_REF lhs
1480         that refer to unused VAR_DECLs or uninitialized values.
1481         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
1482         gimple_clobber_p stmts if they refer to removed parameters.
1483         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
1484         formatting.
1486 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
1488         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
1489         using SWI48 mode attribute.
1491 2013-04-02  Wei Mi  <wmi@google.com>
1493         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
1494         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
1495         *<rotate_insn><mode>3_mask in i386.md.
1497 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1499         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
1501 2013-04-02  Richard Biener  <rguenther@suse.de>
1503         PR tree-optimization/56778
1504         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
1505         Runtime alias tests are not supported for gather loads.
1506         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
1507         stmts referenced from SSA operands before updating SSA form.
1509 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
1510             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1512         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
1513         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
1514         * config/arm/cortex-a53.md: New file.
1515         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
1516         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
1517         * config/arm/arm.c (arm_issue_rate): Likewise.
1518         * config/arm/arm-tune.md: Regenerate
1519         * config/arm/arm-tables.opt: Regenerate.
1520         * config/arm/arm-cores.def: Add cortex-a53.
1522 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
1524         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
1525         non-static link.
1527 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
1529         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
1530         scalar load/store operations using B/H registers.
1531         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
1533 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
1535         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
1536         scalar move.
1537         * config/aarch64/aarch64.c
1538         (aarch64_simd_scalar_immediate_valid_for_move): New.
1539         * config/aarch64/aarch64-protos.h
1540         (aarch64_simd_scalar_immediate_valid_for_move): New.
1541         * config/aarch64/constraints.md (Dh, Dq): New.
1542         * config/aarch64/iterators.md (hq): New.
1544 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
1546         * reorg.c (get_branch_condition): Deal with conditional returns.
1547         (fill_simple_delay_slots): Remove dead code dealing with jumps.
1549 2013-04-01  Wei Mi  <wmi@google.com>
1551         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
1552         Truncate operand 2 using %b asm operand modifier.
1553         (*<shift_insn><mode>3_mask): Ditto.
1554         (*<rotate_insn><mode>3_mask): Ditto.
1556 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
1558         PR middle-end/56798
1559         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
1561 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
1563         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
1564         of next_real_insn.
1565         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
1567 2013-03-30  Lawrence Crowl  <crowl@google.com>
1569         * dse.c (clear_alias_sets): Remove never set.
1570         (disqualified_clear_alias_sets): Remove never set.
1571         (clear_alias_mode_pool): Remove never set.
1572         (dse_step0): Remove condition that is never true.
1573         (canon_address): Remove condition that is never true.
1574         (dse_step7): Remove condition that is never true.
1575         (rest_of_handle_dse): Remove condition that is never true.
1576         (rest_of_handle_dse::did_global): Remove never read from above.
1577         (dse_step2_spill): Remove never called from above.
1578         (dse_step5_spill): Remove never called from above.
1580 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
1582         * doc/md.texi (Standard Names) <casesi>: Update documentation for
1583         JUMP_TABLE_DATA changes.
1584         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
1585         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
1586         (Insns) <jump_table_data>: New entry.
1587         * doc/tm.texi: Regenerate.
1589         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
1591         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
1592         for table jump at the end of a basic block using tablejump_p.
1593         * targhooks.c (default_invalid_within_doloop): Likewise.
1594         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
1595         target hook implementation that is identical to the default hook.
1596         (rs6000_invalid_within_doloop): Remove.
1598         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
1599         unused variable from tablejump_p call.
1601         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
1602         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
1603         (INSN_DELETED_P): Likewise.
1604         (emit_jump_table_data): New prototype.
1605         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
1606         after 4th as unused.
1607         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
1608         * sched-vis.c (print_insn): Likewise.
1609         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
1610         insn for compatibility with back ends that use next_active_insn to
1611         identify jump table data.
1612         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
1613         (remove_insn): Likewise.
1614         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
1615         to be emitted.
1616         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
1617         (emit_jump_table_data): New function.
1619         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
1620         basic block, a JUMP_TABLE_DATA never is.
1621         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
1622         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
1623         off from code handling real insns.
1624         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
1625         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
1626         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
1627         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
1628         is not a NONDEBUG_INSN_P.
1629         * ira-costs.c (scan_one_insn): Likewise.
1630         * jump.c (mark_all_labels): Likewise.
1631         (mark_jump_label_1): Likewise.
1632         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
1633         * lra.c (get_insn_freq): Expect all insns reaching here to be in
1634         a basic block.
1635         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
1636         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
1637         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
1638         JUMP_TABLE_DATA_P insns.
1639         (calculate_elim_costs_all_insns): Likewise.
1640         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
1641         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
1642         (delete_output_reload): Code style fixups.
1643         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
1644         insn flags on this non-insn.
1645         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
1646         as scheduling barriers, for pre-change compatibility.
1647         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
1648         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
1650         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
1651         redundant JUMP_TABLE_DATA_P test.
1652         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
1653         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
1654         (frv_for_each_packet): Likewise.
1655         * config/i386/i386.c (min_insn_size): Likewise.
1656         (ix86_avoid_jump_mispredicts): Likewise.
1657         * config/m32r/m32r.c (m32r_is_insn): Likewise.
1658         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
1659         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
1660         (mips16_insn_length): Robustify.
1661         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
1662         (mips16_split_long_branches): Likewise.
1663         * config/pa/pa.c (pa_combine_instructions): Likewise.
1664         * config/rs6000/rs6000.c (get_next_active_insn): Treat
1665         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
1666         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
1667         as contributing to pool range lengths.
1668         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
1669         Remove redundant JUMP_TABLE_DATA_P test.
1670         (sh_loop_align): Likewise.
1671         (split_branches): Likewise.
1672         (sh_insn_length_adjustment): Likewise.
1673         * config/spu/spu.c (get_branch_target): Likewise.
1675 2013-03-29  Jan Hubicka  <jh@suse.cz>
1677         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
1678         gcov streaming; stream hot bb threshold to ltrans.
1679         * predict.c (get_hot_bb_threshold): Break out from ....
1680         (maybe_hot_count_p): ... here.
1681         (set_hot_bb_threshold): New function.
1682         * lto-section-in.c (lto_section_name): Add profile.
1683         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
1684         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
1685         and data-streamer.h
1686         (histogram_entry): New structure.
1687         (histogram, histogram_pool): New global vars.
1688         (histogram_hash): New structure.
1689         (histogram_hash::hash): New method.
1690         (histogram_hash::equal): Likewise.
1691         (account_time_size): New function.
1692         (cmp_counts): New function.
1693         (dump_histogram): New function.
1694         (ipa_profile_generate_summary): New function.
1695         (ipa_profile_write_summary): New function.
1696         (ipa_profile_read_summary): New function.
1697         (ipa_profile): Decide on threshold.
1698         (pass_ipa_profile): Add ipa_profile_write_summary and
1699         ipa_profile_read_summary.
1700         * Makefile.in (ipa.o): Update dependencies.
1701         * lto-streamer.h (LTO_section_ipa_profile): New section.
1703 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1705         * tree.h (VAR_P): New.
1707 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
1709         PR lto/56777
1710         * doc/invoke.texi ([-fwhole-program]): Fix typo.
1712 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
1714         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
1715         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
1716         (control_flow_insn_p): Likewise.
1717         * cfgrtl.c (duplicate_insn_chain): Likewise.
1718         * final.c (get_attr_length_1): Likewise.
1719         (shorten_branches): Likewise.
1720         (final_scan_insn): Likewise.
1721         * function.c (instantiate_virtual_regs): Likewise.
1722         * gcse.c (insert_insn_end_basic_block): Likewise.
1723         * ira-costs.c (scan_one_insn): Likewise.
1724         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
1725         * lra.c (check_rtl): Likewise.
1726         * reload1.c (elimination_costs_in_insn): Likewise.
1727         * reorg.c (follow_jumps): Likewise.
1729         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
1730         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
1731         (thumb_far_jump_used_p): Likewise.
1732         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
1733         (workaround_speculation): Likewise.
1734         (add_sched_insns_for_speculation): Likewise.
1735         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
1736         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
1737         (frv_for_each_packet): Likewise.
1738         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
1739         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
1740         (final_emit_insn_group_barriers): Likewise.
1741         * config/m32r/m32r.c (m32r_is_insn): Likewise.
1742         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
1743         (mips16_insn_length): Likewise.
1744         * config/pa/pa.c (pa_reorg): Likewise.
1745         (pa_combine_instructions): Likewise.
1746         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
1747         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
1748         (sh_reorg): Likewise.
1749         (split_branches): Likewise.
1750         * config/spu/spu.c (get_branch_target): Likewise.
1752         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
1753         JUMP_TABLE_DATA_P.
1755 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
1757         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
1758         Fix declaration name.
1760 2013-03-28  Lawrence Crowl  <crowl@google.com>
1762         * graphds.h (struct graph.indicies): Remove unused.
1763         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
1764         (SCOP_ORIGINAL_PDDRS): Remove unused.
1765         * sese.h (extern insert_loop_close_phis): Removed unused.
1766         (extern insert_guard_phis): Removed unused.
1767         (extern ivtype_map_elt_info): Removed unused.
1768         (new_ivtype_map_elt): Removed unused.
1769         * sese.c (ivtype_map_elt_info): Removed unused.
1771 2013-03-28  Lawrence Crowl  <crowl@google.com>
1773         * Makefile.in: Add several missing include dependences.
1774         (DUMPFILE_H): New.
1775         (test-dump.o): New.  This object is not added to any executable,
1776         but is present for ad-hoc testing.
1777         * bitmap.c
1778         (debug (const bitmap_head_def &)): New.
1779         (debug (const bitmap_head_def *)): New.
1780         * bitmap.h
1781         (extern debug (const bitmap_head_def &)): New.
1782         (extern debug (const bitmap_head_def *)): New.
1783         * cfg.c
1784         (debug (edge_def &)): New.
1785         (debug (edge_def *)): New.
1786         * cfghooks.c
1787         (debug (basic_block_def &)): New.
1788         (debug (basic_block_def *)): New.
1789         * dumpfile.h
1790         (dump_node (const_tree, int, FILE *)): Correct source file.
1791         * dwarf2out.c
1792         (debug (die_struct &)): New.
1793         (debug (die_struct *)): New.
1794         * dwarf2out.h
1795         (extern debug (die_struct &)): New.
1796         (extern debug (die_struct *)): New.
1797         * gimple-pretty-print.c
1798         (debug (gimple_statement_d &)): New.
1799         (debug (gimple_statement_d *)): New.
1800         * gimple-pretty-print.h
1801         (extern debug (gimple_statement_d &)): New.
1802         (extern debug (gimple_statement_d *)): New.
1803         * ira-build.c
1804         (debug (ira_allocno_copy &)): New.
1805         (debug (ira_allocno_copy *)): New.
1806         (debug (ira_allocno &)): New.
1807         (debug (ira_allocno *)): New.
1808         * ira-int.h
1809         (extern debug (ira_allocno_copy &)): New.
1810         (extern debug (ira_allocno_copy *)): New.
1811         (extern debug (ira_allocno &)): New.
1812         (extern debug (ira_allocno *)): New.
1813         * ira-lives.c
1814         (debug (live_range &)): New.
1815         (debug (live_range *)): New.
1816         * lra-int.h
1817         (debug (lra_live_range &)): New.
1818         (debug (lra_live_range *)): New.
1819         * lra-lives.c
1820         (debug (lra_live_range &)): New.
1821         (debug (lra_live_range *)): New.
1822         * omega.c
1823         (debug (omega_pb_d &)): New.
1824         (debug (omega_pb_d *)): New.
1825         * omega.h
1826         (extern debug (omega_pb_d &)): New.
1827         (extern debug (omega_pb_d *)): New.
1828         * print-rtl.c
1829         (debug (const rtx_def &)): New.
1830         (debug (const rtx_def *)): New.
1831         * print-tree.c
1832         (debug_tree (tree): Move within file.
1833         (debug_raw (const tree_node &)): New.
1834         (debug_raw (const tree_node *)): New.
1835         (dump_tree_via_hooks (const tree_node *, int)): New.
1836         (debug (const tree_node &)): New.
1837         (debug (const tree_node *)): New.
1838         (debug_verbose (const tree_node &)): New.
1839         (debug_verbose (const tree_node *)): New.
1840         (debug_head (const tree_node &)): New.
1841         (debug_head (const tree_node *)): New.
1842         (debug_body (const tree_node &)): New.
1843         (debug_body (const tree_node *)): New.
1844         (debug_vec_tree (tree): Move and reimplement in terms of dump.
1845         (debug (vec<tree, va_gc> &)): New.
1846         (debug (vec<tree, va_gc> *)): New.
1847         * rtl.h
1848         (extern debug (const rtx_def &)): New.
1849         (extern debug (const rtx_def *)): New.
1850         * sbitmap.c
1851         (debug_raw (simple_bitmap_def &)): New.
1852         (debug_raw (simple_bitmap_def *)): New.
1853         (debug (simple_bitmap_def &)): New.
1854         (debug (simple_bitmap_def *)): New.
1855         * sbitmap.h
1856         (extern debug (simple_bitmap_def &)): New.
1857         (extern debug (simple_bitmap_def *)): New.
1858         (extern debug_raw (simple_bitmap_def &)): New.
1859         (extern debug_raw (simple_bitmap_def *)): New.
1860         * sel-sched-dump.c
1861         (debug (vinsn_def &)): New.
1862         (debug (vinsn_def *)): New.
1863         (debug_verbose (vinsn_def &)): New.
1864         (debug_verbose (vinsn_def *)): New.
1865         (debug (expr_def &)): New.
1866         (debug (expr_def *)): New.
1867         (debug_verbose (expr_def &)): New.
1868         (debug_verbose (expr_def *)): New.
1869         (debug (vec<rtx> &)): New.
1870         (debug (vec<rtx> *)): New.
1871         * sel-sched-dump.h
1872         (extern debug (vinsn_def &)): New.
1873         (extern debug (vinsn_def *)): New.
1874         (extern debug_verbose (vinsn_def &)): New.
1875         (extern debug_verbose (vinsn_def *)): New.
1876         (extern debug (expr_def &)): New.
1877         (extern debug (expr_def *)): New.
1878         (extern debug_verbose (expr_def &)): New.
1879         (extern debug_verbose (expr_def *)): New.
1880         (extern debug (vec<rtx> &)): New.
1881         (extern debug (vec<rtx> *)): New.
1882         * sel-sched-ir.h
1883         (_list_iter_cond_expr): Make inline instead of static.
1884         * sreal.c
1885         (debug (sreal &)): New.
1886         (debug (sreal *)): New.
1887         * sreal.h
1888         (extern debug (sreal &)): New.
1889         (extern debug (sreal *)): New.
1890         * tree.h
1891         (extern debug_raw (const tree_node &)): New.
1892         (extern debug_raw (const tree_node *)): New.
1893         (extern debug (const tree_node &)): New.
1894         (extern debug (const tree_node *)): New.
1895         (extern debug_verbose (const tree_node &)): New.
1896         (extern debug_verbose (const tree_node *)): New.
1897         (extern debug_head (const tree_node &)): New.
1898         (extern debug_head (const tree_node *)): New.
1899         (extern debug_body (const tree_node &)): New.
1900         (extern debug_body (const tree_node *)): New.
1901         (extern debug (vec<tree, va_gc> &)): New.
1902         (extern debug (vec<tree, va_gc> *)): New.
1903         * tree-cfg.c
1904         (debug (struct loop &)): New.
1905         (debug (struct loop *)): New.
1906         (debug_verbose (struct loop &)): New.
1907         (debug_verbose (struct loop *)): New.
1908         * tree-dump.c: Add header dependence.
1909         * tree-flow.h
1910         (extern debug (struct loop &)): New.
1911         (extern debug (struct loop *)): New.
1912         (extern debug_verbose (struct loop &)): New.
1913         (extern debug_verbose (struct loop *)): New.
1914         * tree-data-ref.c
1915         (debug (data_reference &)): New.
1916         (debug (data_reference *)): New.
1917         (debug (vec<data_reference_p> &)): New.
1918         (debug (vec<data_reference_p> *)): New.
1919         (debug (vec<ddr_p> &)): New.
1920         (debug (vec<ddr_p> *)): New.
1921         * tree-data-ref.h
1922         (extern debug (data_reference &)): New.
1923         (extern debug (data_reference *)): New.
1924         (extern debug (vec<data_reference_p> &)): New.
1925         (extern debug (vec<data_reference_p> *)): New.
1926         (extern debug (vec<ddr_p> &)): New.
1927         (extern debug (vec<ddr_p> *)): New.
1928         * tree-ssa-alias.c
1929         (debug (pt_solution &)): New.
1930         (debug (pt_solution *)): New.
1931         * tree-ssa-alias.h
1932         (extern debug (pt_solution &)): New.
1933         (extern debug (pt_solution *)): New.
1934         * tree-ssa-alias.c
1935         (debug (_var_map &)): New.
1936         (debug (_var_map *)): New.
1937         (debug (tree_live_info_d &)): New.
1938         (debug (tree_live_info_d *)): New.
1939         * tree-ssa-alias.h
1940         (extern debug (_var_map &)): New.
1941         (extern debug (_var_map *)): New.
1942         (extern debug (tree_live_info_d &)): New.
1943         (extern debug (tree_live_info_d *)): New.
1945 2013-03-28  Jan Hubicka  <jh@suse.cz>
1947         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
1949 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
1951         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
1952         record only when desired or required.
1954 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
1956         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
1957         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
1959 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
1961         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
1962         (*andsi3_compare0_uxtw): New pattern.
1963         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
1964         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
1966 2013-03-28  Jan Hubicka  <jh@suse.cz>
1968         * data-streamer-in.c (streamer_read_gcov_count): New function.
1969         * gimple-streamer-out.c: Include value-prof.h.
1970         (output_gimple_stmt): Output histogram.
1971         (output_bb): Use streamer_write_gcov_count.
1972         * value-prof.c: Include data-streamer.h
1973         (dump_histogram_value): Add HIST_TYPE_MAX.
1974         (stream_out_histogram_value): New function.
1975         (stream_in_histogram_value): New function.
1976         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
1977         (stream_out_histogram_value, stream_in_histogram_value): Declare.
1978         * data-streamer-out.c (streamer_write_gcov_count): New function.
1979         (streamer_write_gcov_count_stream): New function.
1980         * lto-cgraph.c (lto_output_edge): Update counter streaming.
1981         (lto_output_node): Likewise.
1982         (input_node, input_edge): Likewise.
1983         * lto-streamer-out.c (output_cfg): Update streaming.
1984         * lto-streamer-in.c (input_cfg): Likewise.
1985         * data-streamer.h (streamer_write_gcov_count,
1986         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
1987         * gimple-streamer-in.c: Include value-prof.h
1988         (input_gimple_stmt): Input histograms.
1989         (input_bb): Update profile streaming.
1991 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
1993         * genmodes.c (emit_max_int): New function.
1994         (emit_insn_modes_h): Added call to emit_max_function.
1995         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
1996         Added doc.
1997         * machmode.def: Fixed comment.
1999 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
2001         * combine.c (try_combine): Removed useless assert.
2002         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
2004 2013-03-28  Marek Polacek  <polacek@redhat.com>
2005             Richard Biener  <rguenther@suse.de>
2007         PR tree-optimization/56695
2008         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
2009         build signed result of a vector comparison.
2010         * tree-cfg.c (verify_gimple_comparison): Check that a result
2011         of a vector comparison has signed type.
2013 2013-03-28  Richard Biener  <rguenther@suse.de>
2015         PR tree-optimization/37021
2016         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
2017         do not restrict gaps between groups.
2018         * tree-vect-stmts.c (vectorizable_load): Properly account for
2019         a gap between groups.
2021 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
2023         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
2024         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
2025         is not enabled.
2027 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
2029         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
2030         * doc/extend.texi (Named Address Spaces): Ditto.
2031         (Variable Attributes): Ditto.
2033 2013-03-27  Kai Tietz  <ktietz@redhat.com>
2035         * config.build: Add support for cygwin x64 target.
2036         * config.gcc: Likewise.
2037         * config.host: Likewise.
2038         * configure.ac: Likewise
2039         * configure: Regenerated.
2041 2013-03-27 Kai Tietz  <ktietz@redhat.com>
2043         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
2044         * config/i386/t-cygwin-w64: New file.
2045         * config/i386/cygwin-w64.h: New file.
2046         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
2047         and add support for x64-cygwin target.
2048         (CPP_SPEC): Likewise.
2049         (CXX_WRAP_SPEC_LIST): Undefine before define.
2050         (LIBGCJ_SONAME): Use 15 as version.
2052 2013-03-27  Richard Biener  <rguenther@suse.de>
2054         PR tree-optimization/56716
2055         * tree-ssa-structalias.c (perform_var_substitution): Adjust
2056         dumping for ref nodes.
2058 2013-03-27  Martin Jambor  <mjambor@suse.cz>
2060         PR tree-optimization/55334
2061         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
2062         restricted pointers to arrays.
2064 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2066         * Makefile.in (.SUFFIXES): Add .cc.
2067         (.c.o): Apply same recipe for implicit rule .cc.o.
2069 2013-03-27  Richard Biener  <rguenther@suse.de>
2071         PR tree-optimization/37021
2072         * tree-vect-data-refs.c (vect_check_strided_load): Allow
2073         REALPART/IMAGPART_EXPRs around the supported refs.
2074         * tree-ssa-structalias.c (find_func_aliases): Assume that
2075         floating-point values are not used to transfer pointers.
2077 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2079         * target.def (TARGET_HAS_IFUNC_P): New target hook.
2080         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
2081         * doc/tm.texi: Regenerate.
2082         * targhooks.h (default_has_ifunc_p): New.
2083         * targhooks.c (default_has_ifunc_p): Ditto.
2084         * config/linux-protos.h: New file.
2085         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
2086         this hook for linux which disables support of indirect functions in
2087         android.
2088         * config/linux-android.c: New file.
2089         * config/t-linux-android.c: Ditto.
2090         * config.gcc: Added new object file linux-android.o.
2091         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
2092         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
2093         * varasm.c (do_assemble_alias): Likewise.
2094         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
2095         doesn't support indirect functions.
2096         * configure: Regenerate.
2098 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
2100         PR target/56102
2101         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
2102         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
2103         mult-word mode.
2105 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2107         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
2109 2013-03-27  Terry Guo  <terry.guo@arm.com>
2111         * config/arm/arm-cores.def: Added core cortex-r7.
2112         * config/arm/arm-tune.md: Regenerated.
2113         * config/arm/arm-tables.opt: Regenerated.
2114         * doc/invoke.texi: Added entry for core cortex-r7.
2116 2013-03-27  Walter Lee  <walt@tilera.com>
2118         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
2119         double-decrement of next_scratch_regno.
2121 2013-03-27  Walter Lee  <walt@tilera.com>
2123         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
2124         input operands.
2125         (insn_v1mulus): Ditto.
2126         (insn_v2muls): Ditto.
2128 2013-03-27  Walter Lee  <walt@tilera.com>
2130         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
2131         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
2133 2013-03-27  Walter Lee  <walt@tilera.com>
2135         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
2136         (*sibcall_value): Ditto.
2138 2013-03-27  Walter Lee  <walt@tilera.com>
2140         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
2141         (insn_mnz_v8qi): ... this ...
2142         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
2143         vector equivalent.
2144         (insn_v<n>mnz): Replaced by ...
2145         (insn_v1mnz): ... this ...
2146         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
2147         equivalent.
2148         (insn_mz_<mode>): Replaced by ...
2149         (insn_mz_v8qi): ... this ...
2150         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
2151         vector equivalent.
2152         (insn_v<n>mz): Replaced by ...
2153         (insn_v1mz): ... this ...
2154         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
2155         equivalent.
2157 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
2159         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
2161 2013-03-26  Roland McGrath  <mcgrathr@google.com>
2163         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
2164         than fprintf with a non-constant, non-format string.
2166 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
2168         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
2169         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
2170         operand 0 predicate.
2171         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
2172         attribute.  Use general_x64nomem_operand as operand 1 predicate.
2173         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
2174         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
2175         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
2176         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
2177         (mov<mode>_insv_1): Remove expander.  Merge insn with
2178         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
2179         Use general_x64nomem_operand as operand 1 predicate.
2180         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
2181         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
2182         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
2183         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
2184         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
2185         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
2186         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
2187         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
2188         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
2189         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
2190         (general_x64nomem_operand): Ditto.
2192 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
2194         * config/rtems.opt: Add -pthread option.
2196 2013-03-26  Richard Biener  <rguenther@suse.de>
2198         * alias.c (find_base_term): Avoid redundant and not used recursion.
2199         (base_alias_check): Get the initial base term from the caller.
2200         (true_dependence_1): Compute and pass base terms to base_alias_check.
2201         (write_dependence_p): Likewise.
2202         (may_alias_p): Likewise.
2204 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
2206         * config/aarch64/aarch64.c (aarch64_classify_address): Support
2207         PC-relative load in SI modes and above only.
2209 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
2211         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
2212         * config/arm/iwmmxt.md (WCGR0): Update.
2213         (WCGR1, WCGR2, WCGR3): Likewise.
2215 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
2217         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
2218         Use x64 and nox64 isa attributes.
2220 2013-03-26  Richard Biener  <rguenther@suse.de>
2222         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
2223         alignment computations and rely on get_object_alignment_1
2224         for the !TYPE_P case.
2225         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
2227 2013-03-26  Walter Lee  <walt@tilera.com>
2229         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
2230         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
2232 2013-03-25  Jeff Law  <law@redhat.com>
2234         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
2235         check for INTEGRAL_TYPE_P that was missing due to checking in
2236         wrong version of prior patch.
2238 2013-03-25  Walter Lee  <walt@tilera.com>
2240         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
2241         TILEGX_INSN_SHUFFLEBYTES1.
2242         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
2243         shufflebytes1.
2244         (tilegx_builtins): Ditto.
2245         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
2247 2013-03-25  Walter Lee  <walt@tilera.com>
2249         * config/tilegx/tilegx.md (floatsisf2): New pattern.
2250         (floatunssisf2): New pattern.
2251         (floatsidf2): New pattern.
2252         (floatunssidf2): New pattern.
2254 2013-03-25  Walter Lee  <walt@tilera.com>
2256         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
2257         tests for constraint J, K, N, P.
2259 2013-03-25  Walter Lee  <walt@tilera.com>
2261         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
2262         Use indirect/pcrel encoding.
2263         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
2264         Ditto.
2266 2013-03-25  Steve Ellcey  <sellcey@mips.com>
2268         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
2269         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
2270         * config/mips/mips.c (mips_option_override): Set IMADD default.
2271         * config/mips/mips.h (PTF_AVOID_IMADD): New.
2272         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
2273         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
2274         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
2275         * doc/invoke.texi (-mimadd/-mno-imadd): New.
2277 2013-03-25  Jeff Law  <law@redhat.com>
2279         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
2280         slightly to avoid creating and folding useless trees.  Simplify
2281         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
2283 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
2285         * config/i386/i386.md (*zero_extendsidi2): Merge with
2286         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
2287         * config/i386/predicates.md (x86_64_zext_operand): Rename from
2288         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
2289         targets.  Clarify comment.
2291 2013-03-25  Martin Jambor  <mjambor@suse.cz>
2293         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
2294         pass-through jump functions differently.
2295         (ipa_read_jump_function): Likewise.  Also use setter functions to set
2296         up jump functions.
2298 2013-03-25  Martin Jambor  <mjambor@suse.cz>
2300         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
2301         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
2302         process it.
2303         (ipa_get_indirect_edge_target): New function.
2304         (devirtualization_time_bonus): New parameter known_aggs, pass it to
2305         ipa_get_indirect_edge_target.  Update all callers.
2306         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
2307         ipa_get_indirect_edge_target_1 instead of calling
2308         ipa_get_indirect_edge_target.
2309         (create_specialized_node): Pass aggvlas to
2310         ipcp_discover_new_direct_edges.
2312 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2314         * config/arm/arm.md (f_sels, f_seld): New types.
2315         (*cmov<mode>): New pattern.
2316         * config/arm/predicates.md (arm_vsel_comparison_operator): New
2317         predicate.
2319 2013-03-25  Kai Tietz  <ktietz@redhat.com>
2321         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
2322         POSIX-printf for mingw-hosted  builds.
2324 2013-03-25  Richard Biener  <rguenther@suse.de>
2326         PR middle-end/56694
2327         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
2328         must-not-throw stmt location.
2330 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2332         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
2333         Emit load-acquire versions when acq is true.
2334         (arm_emit_store_exclusive): Add rel parameter.
2335         Emit store-release versions when rel is true.
2336         (arm_split_compare_and_swap): Use acquire-release instructions
2337         instead.
2338         of barriers when appropriate.
2339         (arm_split_atomic_op): Likewise.
2340         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
2341         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
2342         (VUNSPEC_SLX): Likewise.
2343         (VUNSPEC_LDA): Likewise.
2344         (VUNSPEC_STL): Likewise.
2345         * config/arm/sync.md (atomic_load<mode>): New pattern.
2346         (atomic_store<mode>): Likewise.
2347         (arm_load_acquire_exclusive<mode>): Likewise.
2348         (arm_load_acquire_exclusivesi): Likewise.
2349         (arm_load_acquire_exclusivedi): Likewise.
2350         (arm_store_release_exclusive<mode>): Likewise.
2352 2013-03-25  Catherine Moore  <clm@codesourcery.com>
2354         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
2355         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
2356         * config/mip/predicates.md (lwsp_swsp_operand,
2357         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
2358         sb16_operand, db4_operand, db7_operand, ib3_operand,
2359         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
2360         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
2361         andi16_operand): New predicates.
2362         * config/mips/mips.md (compression): New attribute.
2363         (enabled): New attribute.
2364         (length): Consider compression in computing length.
2365         (shift_compression): New code attribute.
2366         (*add<mode>3): New operands. Record compression.
2367         (sub<mode>3): Likewise.
2368         (one_cmpl<mode>2): Likewise.
2369         (*and<mode>3): Likewise.
2370         (*ior<mode>3): Likewise.
2371         (unnamed pattern for xor): Likewise.
2372         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
2373         (*<optab><mode>3): Likewise.
2374         (*mov<mode>_internal: Likewise.
2375         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
2376         (mips_unsigned_immediate_p): New.
2377         (umips_lwsp_swsp_address_p): New.
2378         (m16_based_address_p): New.
2379         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
2380         (mips_unsigned_immediate_p): New prototype.
2381         (lwsp_swsp_address_p): New prototype.
2382         (m16_based_address_p): New prototype.
2383         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
2384         (mips_signed_immediate_p): New function.
2385         (m16_based_address_p): New function.
2386         (lwsp_swsp_address_p): New function.
2387         (mips_print_operand_punctuation): Recognize short delay slot insns
2388         for microMIPS.add<mode>3"
2390 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2392         PR target/56720
2393         * config/arm/iterators.md (v_cmp_result): New mode attribute.
2394         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
2396 2013-03-25  Richard Biener  <rguenther@suse.de>
2398         PR tree-optimization/56689
2399         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
2400         any edge.
2402 2013-03-25  Richard Biener  <rguenther@suse.de>
2404         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
2405         of bitmap.
2406         (memory_references): Likewise.
2407         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
2408         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
2409         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
2410         (gather_mem_refs_in_loops): Fold into ...
2411         (analyze_memory_references): ... this.  Move initialization
2412         to tree_ssa_lim_initialize.
2413         (fill_always_executed_in): Rename to ...
2414         (fill_always_executed_in_1): ... this.
2415         (fill_always_executed_in): Move contains_call computation to
2416         this new function from ...
2417         (tree_ssa_lim_initialize): ... here.
2418         (tree_ssa_lim): Call fill_always_executed_in.
2420 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
2422         * postreload.c (reload_combine): Fix code detecting returns.
2424 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
2426         * function.c (emit_use_return_register_into_block): On cc0 targets,
2427         do not emit the sequence between cc0 setter and user.
2429 2013-03-25  Kai Tietz  <ktietz@redhat.com>
2431         * config/i386/predicates.md (local_symbolic_operand): Interpret
2432         dll-imported symbols as none-local.
2434 2013-03-25  Richard Biener  <rguenther@suse.de>
2436         * tree-ssa-loop-im.c (struct depend): Remove.
2437         (struct lim_aux_data): Make depends a vec of gimples.
2438         (free_lim_aux_data): Adjust.
2439         (add_dependency): Likewise.
2440         (set_level): Likewise.
2442 2013-03-25  Richard Biener  <rguenther@suse.de>
2444         PR middle-end/56434
2445         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
2446         the pointer returned by calls with ECF_MALLOC set.
2448 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
2450         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
2452 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
2454         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
2455         using MMXMODE mode iterator.
2456         (*move<mode>_internal): Merge with *movv2sf_internal and
2457         *movv2sf_internal_rex64 using MMXMODE mode iterator.
2459 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
2461         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
2462         (record_last_mem_set_info): Likewise.
2464         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
2465         of XNEWVEC followed by memset.
2466         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
2468 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
2470         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
2471         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
2472         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
2473         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
2474         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
2475         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
2476         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
2477         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
2478         BARRIER_P instead of GET_CODE.
2480 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
2482         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
2483         inaccuracy in the probing code.
2485         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
2486         (ctrapdi4): Likewise.
2488 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
2490         * calls.c (expand_call): Add missing guard to code handling return
2491         of non-BLKmode structures in MSB.
2492         * function.c (expand_function_end): Likewise.
2494 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
2496         * combine.c (try_combine): Adjust comment.  Do not add the set of
2497         insn #0 if the destination indirectly is set or dies in insn #2.
2498         Tidy up code to distribute a new note.
2500 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
2502         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
2503         also for alternatives 16 and 17.
2505 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
2507         * config/i386/sse.md (*mov<mode>_internal): Merge with
2508         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
2509         Emit insn template depending on type attribute.  Use
2510         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
2511         movd instead of movq mnemonic for interunit moves.  Rewrite mode
2512         attribute calculation.  Remove unit attribute calculation.
2513         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
2514         Set prefix_data16 attribute for DImode ssemov types.
2515         Use Ym instead of y for SSE-MMX conversion alternatives.
2516         Reorder operand constraints.
2518 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
2520         * df.h (df_insn_delete): Adjust prototype.
2521         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
2522         and let it decide whether mark the basic block dirty.
2523         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
2524         * df-scan.c (df_insn_info_delete): New helper function, split
2525         off from df_insn_delete.
2526         (df_scan_free_bb_info): Use it.
2527         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
2528         Likewise.
2529         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
2530         that the insn is actually an insn and it has a non-NULL basic block.
2531         Do not mark basic block dirty if only deleting a DEBUG_INSN.
2533 2013-03-22  Richard Biener  <rguenther@suse.de>
2535         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
2536         dep_ref members.
2537         (mem_ref_alloc): Do not allocate them.
2538         (refs_independent_p): Do not query or maintain a cache.
2540 2013-03-22  Richard Biener  <rguenther@suse.de>
2542         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
2543         (gather_mem_refs_in_loops): Do not compute it.
2544         (analyze_memory_references): Do not allocate it.
2545         (tree_ssa_lim_finalize): Do not free it.
2546         (for_all_locs_in_loop): Do not query all_refs_in_loop.
2548 2013-03-22  Richard Biener  <rguenther@suse.de>
2550         * is-a.h (as_a): Use gcc_checking_assert.
2552 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
2554         * config/aarch64/aarch64.c (aarch64_print_operand): New
2555         format specifier for printing a constant in hex.
2556         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
2557         format specifier for printing second operand.
2559 2013-03-22  Richard Biener  <rguenther@suse.de>
2561         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
2562         bitmaps.
2563         (gather_mem_refs_in_loops): Perform store accumulation here.
2564         (create_vop_ref_mapping_loop): Remove.
2565         (create_vop_ref_mapping): Likewise.
2566         (analyze_memory_references): Initialize refs_stored_in_loop.
2567         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
2568         (record_indep_loop): Remove.
2569         (record_dep_loop): New function.
2570         (ref_indep_loop_p_1): Adjust to only walk over references
2571         in the loop, not its subloops.
2572         (ref_indep_loop_p): Rename to ...
2573         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
2574         maintaining a more fine-grained cache.
2575         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
2576         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
2578 2013-03-22  Richard Biener  <rguenther@suse.de>
2580         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
2581         (struct mem_ref): Make accesses_in_loop a vec of a vec of
2582         aggregate mem_ref_loc.
2583         (free_mem_ref_locs): Inline into ...
2584         (memref_free): ... this and adjust.
2585         (mem_ref_alloc): Adjust.
2586         (mem_ref_locs_alloc): Remove.
2587         (record_mem_ref_loc): Adjust.
2588         (get_all_locs_in_loop): Rewrite into ...
2589         (for_all_locs_in_loop): ... this iterator.
2590         (rewrite_mem_ref_loc): New functor.
2591         (rewrite_mem_refs): Use for_all_locs_in_loop.
2592         (sm_set_flag_if_changed): New functor.
2593         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
2594         (ref_always_accessed): New functor.
2595         (ref_always_accessed_p): Use for_all_locs_in_loop.
2597 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
2599         * tree-pass.h (PROP_gimple_lvec): New.
2600         * passes.c (dump_properties): Handle PROP_gimple_lvec.
2601         (init_optimization_passes): Move pass_lower_vector.
2602         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
2603         PROP_gimple_lvec.
2604         (pass_lower_vector): Provide PROP_gimple_lvec.
2605         (pass_lower_vector_ssa): Likewise.
2606         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
2608 2013-03-21  Mark Wielaard  <mjw@redhat.com>
2610         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
2612 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
2614         * config/i386/i386.md (*movdi_internal): Disparage slightly
2615         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
2616         conversion alternatives.
2618 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
2620         PR middle-end/48087
2621         * diagnostic.def (DK_WERROR): New kind.
2622         * diagnostic.h (werrorcount): Define.
2623         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
2624         promoted to DK_ERROR, increment DK_WERROR counter instead of
2625         DK_ERROR counter.
2626         * toplev.c (toplev_main): Call print_ignored_options even if
2627         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
2628         even if just werrorcount is non-zero.
2630         PR debug/55608
2631         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
2632         on failure.
2633         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
2634         (string_cst_pool_decl): New function.
2635         (optimize_one_addr_into_implicit_ptr): New function.
2636         (resolve_addr_in_expr): Optimize DWARF location expression
2637         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
2638         which doesn't live in memory, but has DW_AT_location or
2639         DW_AT_const_value, or refers to a string literal, into
2640         DW_OP_GNU_implicit_pointer.
2641         (optimize_location_into_implicit_ptr): New function.
2642         (resolve_addr): If removing DW_AT_location of a variable because
2643         it was DW_OP_addr of address of the variable, but the variable doesn't
2644         live in memory, try to emit const value attribute for the initializer.
2646 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
2648         * tree.h (VECTOR_TYPE_P): New macro.
2649         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
2650         TYPE_MODE): Use it.
2651         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
2652         VEC_COND_EXPR cannot be lvalues.
2653         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
2655 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
2657         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
2658         Restrict the transformation to equal modes.
2660 2013-03-21  Richard Biener  <rguenther@suse.de>
2662         PR tree-optimization/39326
2663         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
2664         (MEM_ANALYZABLE): Adjust.
2665         (record_mem_ref_loc): Move bitmap ops ...
2666         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
2667         unanalyzable refs, do not record locations for it.
2668         (analyze_memory_references): Allocate ref zero as shared
2669         unanalyzable ref.
2670         (refs_independent_p): Do not test for unanalyzed mems here.
2671         (ref_indep_loop_p_1): Special-case disambiguation against
2672         the unanalyzed ref.
2673         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
2675 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
2677         * config/arm/arm-protos.h (tune_params): Add
2678         prefer_neon_for_64bits field.
2679         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
2680         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
2681         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
2682         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
2683         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
2684         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
2685         (arm_option_override): Handle -mneon-for-64bits new option.
2686         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
2687         (prefer_neon_for_64bits): Declare new variable.
2688         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
2689         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
2690         (arch_enabled): Handle new arch types. Remove support for onlya8
2691         and nota8.
2692         (one_cmpldi2): Use new arch names.
2693         (zero_extend<mode>di2, extend<mode>di2): Ditto.
2694         * config/arm/arm.opt (mneon-for-64bits): Add option.
2695         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
2696         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
2697         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
2698         of onlya8.
2699         * doc/invoke.texi (-mneon-for-64bits): Document.
2701 2013-03-21  Richard Biener  <rguenther@suse.de>
2703         PR tree-optimization/39326
2704         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
2705         (sort_bbs_in_loop_postorder_cmp): New function.
2706         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
2708 2013-03-21  Richard Biener  <rguenther@suse.de>
2710         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
2711         (vect_insert_into_interleaving_chain): Likewise.
2712         (vect_drs_dependent_in_basic_block): Inline ...
2713         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
2714         split out from ...
2715         (vect_analyze_data_ref_dependence): ... here.  Simplify.
2716         (vect_check_interleaving): Simplify.
2717         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
2718         (vect_slp_analyze_data_ref_dependences): ... this new function.
2719         (dr_group_sort_cmp): New function.
2720         (vect_analyze_data_ref_accesses): Compute data-reference groups
2721         here instead of in vect_analyze_data_ref_dependence.  Use
2722         a more efficient algorithm.
2723         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
2724         vect_slp_analyze_data_ref_dependences.  Call
2725         vect_analyze_data_ref_accesses earlier.
2726         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
2727         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
2728         (vect_slp_analyze_data_ref_dependences): New prototype.
2730 2013-03-21  Richard Biener  <rguenther@suse.de>
2732         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
2733         ref is stored in the loop.
2734         (find_refs_for_sm): Walk only over all stores.
2735         (store_motion_loop): Allocate from lim_bitmap_obstack.
2736         (store_motion): Likewise.
2738 2013-03-21  Richard Biener  <rguenther@suse.de>
2740         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
2741         Update virtual SSA form.
2743 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2745         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
2746         * configure: Regenerate.
2747         * config.in: Regenerate.
2748         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
2749         if !HAVE_LD_EH_FRAME_CIEV3.
2751 2013-03-21  Richard Biener  <rguenther@suse.de>
2753         * tree-cfg.c (verify_expr_no_block): New function.
2754         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
2755         nor DECL_VALUE_EXPR have locations with associated blocks.
2756         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
2757         (clear_unused_block_pointer): Remove code dealing with
2758         blocks in DECL_DEBUG_EXPR locations.
2760 2013-03-21  Richard Biener  <rguenther@suse.de>
2762         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
2763         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
2764         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
2765         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
2766         instead of DECL_DEBUG_EXPR_IS_FROM.
2767         * gimplify.c (gimplify_modify_expr): Likewise.
2768         * tree-cfg.c (verify_expr_location_1): Likewise.
2769         * tree-complex.c (create_one_component_var): Likewise.
2770         * tree-sra.c (create_access_replacement): Likewise.
2771         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
2772         (clear_unused_block_pointer): Likewise.
2773         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
2774         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2775         * var-tracking.c (var_debug_decl): Likewise.
2776         (track_expr_p): Likewise.
2777         * tree-inline.c (add_local_variables): Likewise.  Set
2778         DECL_HAS_DEBUG_EXPR_P after copying it.
2779         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
2780         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
2782 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
2784         PR bootstrap/56656
2785         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
2786         * configure: Regenerate.
2787         * config.in: Regenerate.
2788         * config/i386/i386.md (*movdf_internal): Use
2789         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
2790         movd instead of movq mnemonic for interunit moves.
2791         (*movdi_internal): Ditto.
2793 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
2795         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
2796         (abd<mode>_3): New pattern.
2797         (aba<mode>_3): New pattern.
2798         (fabd<mode>_3): New pattern.
2800 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
2802         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
2803         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
2804         occurrence of REGISTER_PREFIX as its empty string.
2806 2013-03-20  Jeff Law  <law@redhat.com>
2808         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
2809         addititional equivalences for equality comparisons between an SSA_NAME
2810         and a constant where the SSA_NAME was set from a widening conversion.
2812 2013-03-20  Walter Lee  <walt@tilera.com>
2814         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
2816 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
2818         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
2819         depending on type attribute.
2820         (*movti_internal): Ditto.
2821         (*movtf_internal): Ditto.
2822         (*movxf_internal): Ditto.
2823         (*movdf_internal): Ditto.
2824         (*movsf_internal): Ditto.
2826 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
2828         * config/i386/i386.md (*movti_internal): Set prefix attribute to
2829         maybe_vex for sselog1 and ssemov types.
2830         (*movdi_internal): Reorder operand constraints.
2831         (*movsi_internal): Ditto.  Set prefix attribute to
2832         maybe_vex for sselog1 and ssemov types.
2833         (*movtf_internal): Set prefix attribute to maybe_vex
2834         for sselog1 and ssemov types.
2835         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
2836         DImode ssemov types.  Reorder operand constraints.
2837         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
2838         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
2839         attribute for SImode ssemov types.  Reorder operand constraints.
2841 2013-03-20  Martin Jambor  <mjambor@suse.cz>
2843         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
2844         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
2846 2013-03-20  Pat Haugen <pthaugen@us.ibm.com>
2848         * config/rs6000/predicates.md (indexed_address, update_address_mem
2849         update_indexed_address_mem): New predicates.
2850         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
2851         attribute for load/store instructions.
2852         * config/rs6000/dfp.md (movsd_store): Likewise.
2853         (movsd_load): Likewise.
2854         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
2855         (unnamed HI->DI extend define_insn): Likewise.
2856         (unnamed SI->DI extend define_insn): Likewise.
2857         (unnamed QI->SI extend define_insn): Likewise.
2858         (unnamed QI->HI extend define_insn): Likewise.
2859         (unnamed HI->SI extend define_insn): Likewise.
2860         (unnamed HI->SI extend define_insn): Likewise.
2861         (extendsfdf2_fpr): Likewise.
2862         (movsi_internal1): Likewise.
2863         (movsi_internal1_single): Likewise.
2864         (movhi_internal): Likewise.
2865         (movqi_internal): Likewise.
2866         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
2867         attribute for load/store instructions.
2868         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
2869         instructions.
2870         (mov<mode>_softfloat): Likewise.
2871         (mov<mode>_hardfloat32): Likewise.
2872         (mov<mode>_hardfloat64): Likewise.
2873         (mov<mode>_softfloat64): Likewise.
2874         (movdi_internal32): Likewise.
2875         (movdi_internal64): Likewise.
2876         (probe_stack_<mode>): Likewise.
2878 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
2880         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
2881         floating point, and decimal floating point to reload iterator.
2883         * config/rs6000/constraints.md (wl constraint): New constraints to
2884         return FLOAT_REGS if certain options are used to reduce the number
2885         of separate patterns that exist in the file.
2886         (wx constraint): Likewise.
2887         (wz constraint): Likewise.
2889         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
2890         -mdebug=reg, print wg, wl, wx, and wz constraints.
2891         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
2892         Initialize the reload functions for 64-bit binary/decimal floating
2893         point types.
2894         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
2895         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
2896         create the buffer on the stack to overcome not having a 32-bit
2897         load and store.
2898         (rs6000_emit_move): Likewise.
2899         (rs6000_secondary_memory_needed_rtx): Likewise.
2900         (rs6000_alloc_sdmode_stack_slot): Likewise.
2901         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
2902         via xxlxor, just like DFmode 0.0.
2904         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
2905         define as 1 if we are running on a power7 or newer.
2906         (enum r6000_reg_class_enum): Add new constraints.
2908         * config/rs6000/dfp.md (movsd): Delete, combine with binary
2909         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
2910         with other moves by using conditional constraits (wg).  Use LFIWZX
2911         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
2912         (movsd splitter): Likewise.
2913         (movsd_hardfloat): Likewise.
2914         (movsd_softfloat): Likewise.
2916         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
2917         binary and decimal floating point moves.
2918         (fmove_ok): New attributes to combine binary and decimal floating
2919         point moves, and to combine power6x (mfpgpr) moves along normal
2920         floating moves.
2921         (real_value_to_target): Likewise.
2922         (f32_lr): Likewise.
2923         (f32_lm): Likewise.
2924         (f32_li): Likewise.
2925         (f32_sr): Likewise.
2926         (f32_sm): Likewise.
2927         (f32_si): Likewise.
2928         (movsf): Combine binary and decimal floating point moves.  Combine
2929         power6x (mfpgpr) moves with other moves by using conditional
2930         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
2931         (mov<mode> for SFmode/SDmode); Likewise.
2932         (SFmode/SDmode splitters): Likewise.
2933         (movsf_hardfloat): Likewise.
2934         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
2935         (movsf_softfloat): Likewise.
2936         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
2938         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
2939         wx and wz constraints.
2941         * config/rs6000/constraints.md (wg constraint): New constraint to
2942         return FLOAT_REGS if -mmfpgpr (power6x) was used.
2944         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
2945         constraint.
2947         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
2948         -mdebug=reg, print wg, wl, wx, and wz constraints.
2949         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
2950         Initialize the reload functions for 64-bit binary/decimal floating
2951         point types.
2952         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
2953         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
2954         create the buffer on the stack to overcome not having a 32-bit
2955         load and store.
2956         (rs6000_emit_move): Likewise.
2957         (rs6000_secondary_memory_needed_rtx): Likewise.
2958         (rs6000_alloc_sdmode_stack_slot): Likewise.
2959         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
2960         via xxlxor, just like DFmode 0.0.
2962         * config/rs6000/dfp.md (movdd): Delete, combine with binary
2963         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
2964         with other moves by using conditional constraits (wg).  Use LFIWZX
2965         and STFIWX for loading SDmode on power7.
2966         (movdd splitters): Likewise.
2967         (movdd_hardfloat32): Likewise.
2968         (movdd_softfloat32): Likewise.
2969         (movdd_hardfloat64_mfpgpr): Likewise.
2970         (movdd_hardfloat64): Likewise.
2971         (movdd_softfloat64): Likewise.
2973         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
2974         64-bit binary and decimal floating point moves.
2975         (FMOVE64X): Likewise.
2976         (movdf): Combine 64-bit binary and decimal floating point moves.
2977         Combine power6x (mfpgpr) moves with other moves by using
2978         conditional constraits (wg).
2979         (mov<mode> for DFmode/DDmode): Likewise.
2980         (DFmode/DDmode splitters): Likewise.
2981         (movdf_hardfloat32): Likewise.
2982         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
2983         (movdf_softfloat32): Likewise.
2984         (movdf_hardfloat64_mfpgpr): Likewise.
2985         (movdf_hardfloat64): Likewise.
2986         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
2987         (movdf_softfloat64): Likewise.
2988         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
2989         (reload_<mode>_load): Move to later in the file so they aren't in
2990         the middle of the floating point move insns.
2991         (reload_<mode>_store): Likewise.
2993         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
2994         constraint.
2996         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
2997         constraint if -mdebug=reg.
2998         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
2999         Enable using dd reload support if needed.
3001         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
3002         binary and decimal floating point moves in rs6000.md.
3003         (movtd_internal): Likewise.
3005         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
3006         decimal floating point moves.
3007         (movtf): Likewise.
3008         (movtf_internal): Likewise.
3009         (mov<mode>_internal, TDmode/TFmode): Likewise.
3010         (movtf_softfloat): Likewise.
3011         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
3013         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
3014         movdi_internal64, using wg constraint for move direct operations.
3015         (movdi_internal64): Likewise.
3017         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
3018         MODES_TIEABLE_P for selected modes.  Print the numerical value of
3019         the various virtual registers. Use GPR/FPR first/last values,
3020         instead of hard coding the register numbers.  Print which modes
3021         have reload functions registered.
3022         (rs6000_option_override_internal): If -mdebug=reg, trace the options
3023         settings before/after setting cpu, target and subtarget settings.
3024         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
3025         and for secondary reload failures in rs6000_secondary_reload_inner.
3026         (rs6000_secondary_reload_fail): Likewise.
3027         (rs6000_secondary_reload_inner): Likewise.
3029         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
3030         macros for first/last GPR and FPR registers.
3031         (LAST_GPR_REGNO): Likewise.
3032         (FIRST_FPR_REGNO): Likewise.
3033         (LAST_FPR_REGNO): Likewise.
3035         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
3036         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
3037         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
3038         (vcond<mode><mode>): Likewise.
3039         (vcondu<mode><mode>): Likewise.
3040         (vector_gtu<mode>): Likewise.
3041         (vector_gte<mode>): Likewise.
3042         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
3043         to prevent the compiler from converting DImode operations to TImode.
3044         (ior<mode>3): Likewise.
3045         (and<mode>3): Likewise.
3046         (one_cmpl<mode>2): Likewise.
3047         (nor<mode>3): Likewise.
3048         (andc<mode>3): Likewise.
3050         * config/rs6000/constraints.md (wt constraint): New constraint
3051         that returns VSX_REGS if TImode is allowed in VSX registers.
3053         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
3054         constant under VSX.
3056         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
3057         similar to TImode, but it is restricted to being in the GPRs.
3059         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
3060         TImode to occupy a single VSX register.
3062         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
3063         -mvsx-timode for power7/power8.
3064         (power7 cpu): Likewise.
3065         (power8 cpu): Likewise.
3067         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
3068         sure that TFmode/TDmode take up two registers if they are ever
3069         allowed in the upper VSX registers.
3070         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
3071         registers.
3072         (rs6000_init_hard_regno_mode_ok): Likewise.
3073         (rs6000_debug_reg_global): Add debugging for PTImode and wt
3074         constraint.  Print if LRA is turned on.
3075         (rs6000_option_override_internal): Give an error if -mvsx-timode
3076         and VSX is not enabled.
3077         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
3078         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
3079         to reg+offset addressing.  Use PTImode when checking offset
3080         addresses for validity.
3081         (reg_offset_addressing_ok_p): Likewise.
3082         (rs6000_legitimate_offset_address_p): Likewise.
3083         (rs6000_legitimize_address): Likewise.
3084         (rs6000_legitimize_reload_address): Likewise.
3085         (rs6000_legitimate_address_p): Likewise.
3086         (rs6000_eliminate_indexed_memrefs): Likewise.
3087         (rs6000_emit_move): Likewise.
3088         (rs6000_secondary_reload): Likewise.
3089         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
3090         reloads to fpr registers to continue to use reg+offset addressing,
3091         but 64-bit reloads to altivec registers need reg+reg addressing.
3092         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
3093         it.  Treat LO_SUM like a PLUS operation.
3094         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
3095         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
3096         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
3097         registers to share a register with a smaller sized type, since VSX
3098         puts scalars in the upper 64-bits.
3099         (print_operand): Add support for PTImode.
3100         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
3101         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
3102         registers, but don't have arithmetic support.
3103         (rs6000_memory_move_cost): Add test for VSX.
3104         (rs6000_opt_masks): Add -mvsx-timode.
3106         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
3107         for TImode.
3108         (VSs): Likewise.
3109         (VSr): Use wt constraint for TImode.
3110         (VSv): Drop TImode support.
3111         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
3112         (vsx_movti_64bit): Likewise.
3113         (vsx_movti_32bit): Likewise.
3114         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
3115         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
3116         one '?' on the appropriate output constraint.  Do not allow TImode
3117         logical operations on 32-bit systems.
3118         (vsx_ior<mode>3): Likewise.
3119         (vsx_xor<mode>3): Likewise.
3120         (vsx_one_cmpl<mode>2): Likewise.
3121         (vsx_nor<mode>3): Likewise.
3122         (vsx_andc<mode>3): Likewise.
3123         (vsx_concat_<mode>): Likewise.
3124         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
3126         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
3127         OPTION_MASK_VSX_TIMODE.
3128         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
3129         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
3131         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
3132         (TI2 iterator): New iterator for TImode, PTImode.
3133         (wd mode attribute): Add values for vector types.
3134         (movti_string): Replace TI move operations with operations for TImode
3135         and PTImode.  Add support for TImode being allowed in VSX registers.
3136         (mov<mode>_string, TImode/PTImode): Likewise.
3137         (movti_ppc64): Likewise.
3138         (mov<mode>_ppc64, TImode/PTImode): Likewise.
3139         (TI mode splitters): Likewise.
3141         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
3142         constraint.
3144 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
3146         PR tree-optimization/56355
3147         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
3148         Also handle integers with undefined overflow.
3150 2013-03-20  Catherine Moore  <clm@codesourcery.com>
3151             Maciej W. Rozycki  <macro@codesourcery.com>
3152             Tom de Vries  <tom@codesourcery.com>
3153             Nathan Sidwell <nathan@codesourcery.com>
3154             Iain Sandoe  <iain@codesourcery.com>
3155             Nathan Froyd  <froydnj@codesourcery.com>
3156             Chao-ying Fu <fu@mips.com>
3158         * doc/extend.texi: (micromips, nomicromips, nocompression):
3159         Document new function attributes.
3160         * doc/invoke.texi (minterlink-compressed, mmicromips,
3161         m14k, m14ke, m14kec): Document new options.
3162         (minterlink-mips16): Update documentation.
3163         * doc/md.texi (ZC, ZD): Document new constraints.
3164         * configure.ac (gcc_cv_as_micromips): Check if linker
3165         supports the .set micromips directive.
3166         * configure: Regenerate.
3167         * config.in: Regenerate.
3168         * config/mips/mips-tables.opt: Regenerate.
3169         * config/mips/micromips.md: New file.
3170         * constraints.md (ZC, ZD): New constraints.
3171         * config/mips/predicates.md (movep_src_register): New predicate.
3172         (movep_src_operand): New predicate.
3173         (non_volatile_mem_operand): New predicate.
3174         * config/mips/mips.md (multimem): New type.
3175         (length): Differentiate between 17-bit and 18-bit branch offsets.
3176         (MOVEP1, MOVEP2): New mode iterator.
3177         (mov_<load>l): Use ZC constraint.
3178         (mov_<load>r): Likewise.
3179         (mov_<store>l): Likewise.
3180         (mov_<store>r): Likewise.
3181         (*branch_equality<mode>_inverted): Add microMIPS support.
3182         (*branch_equality<mode>): Likewise.
3183         (*jump_absolute): Likewise.
3184         (indirect_jump_<mode>): Likewise.
3185         (tablejump_<mode>): Likewise.
3186         (<optab>_internal): Likewise.
3187         (sibcall_internal): Likewise.
3188         (sibcall_value_internal): Likewise.
3189         (prefetch): Use constraint ZD.
3190         * config/mips/mips.opt (minterlink-compressed): New option.
3191         (minterlink-mips16): Now an alias for minterlink-compressed.
3192         (mmicromips): New option.
3193         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
3194         (compare_and_swap_12): Likewise.
3195         (sync_add<mode>): Likewise.
3196         (sync_<optab>_12): Likewise.
3197         (sync_old_<optab>_12): Likewise.
3198         (sync_new_<optab>_12): Likewise.
3199         (sync_nand_12): Likewise.
3200         (sync_old_nand_12): Likewise.
3201         (sync_new_nand_12): Likewise.
3202         (sync_sub<mode>): Likewise.
3203         (sync_old_add<mode>): Likewise.
3204         (sync_old_sub<mode>): Likewise.
3205         (sync_new_add<mode>): Likewise.
3206         (sync_new_sub<mode>): Likewise.
3207         (sync_<optab><mode>): Likewise.
3208         (sync_old_<optab><mode>): Likewise.
3209         (sync_new_<optab><mode>): Likewise.
3210         (sync_nand<mode>): Likewise.
3211         (sync_old_nand<mode>): Likewise.
3212         (sync_new_nand<mode>): Likewise.
3213         (sync_lock_test_and_set<mode>): Likewise.
3214         (test_and_set_12): Likewise.
3215         (atomic_compare_and_swap<mode>): Likewise.
3216         (atomic_exchange<mode>_llsc): Likewise.
3217         (atomic_fetch_add<mode>_llsc): Likewise.
3218         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
3219         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
3220         (umips_save_restore_pattern_p): Likewise.
3221         (umips_load_store_pair_p): Likewise.
3222         (umips_output_load_store_pair): Likewise.
3223         (umips_movep_target_p): Likewise.
3224         (umips_12bit_offset_address_p): Likewise.
3225         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
3226         (mips_base_mips16): Rename this...
3227         (mips_base_compression_flags): ...to this. Update all uses.
3228         (mips_attribute_table): Add micromips, nomicromips and nocompression.
3229         (mips_mips16_decl_p): Delete.
3230         (mips_nomips16_decl_p): Delete.
3231         (mips_get_compress_on_flags): New function.
3232         (mips_get_compress_off_flags): New function.
3233         (mips_get_compress_mode): New function.
3234         (mips_get_compress_on_name): New function.
3235         (mips_get_compress_off_name): New function.
3236         (mips_insert_attributes): Support multiple compression types.
3237         (mips_merge_decl_attributes): Likewise.
3238         (umips_12bit_offset_address_p): New function.
3239         (mips_start_function_definition): Emit .set micromips directive.
3240         (mips_call_may_need_jalx_p): New function.
3241         (mips_function_ok_for_sibcall): Add microMIPS support.
3242         (mips_print_operand_punctuation): Support short delay slots and
3243         compact jumps.
3244         (umips_swm_mask, umips_swm_encoding): New.
3245         (umips_build_save_restore): New function.
3246         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
3247         (was_mips16_p): Remove.
3248         (old_compression_mode): New.
3249         (mips_set_compression_mode): New function.
3250         (mips_set_current_function): Add microMIPS support.
3251         (mips_option_override): Likewise.
3252         (umips_save_restore_pattern_p): New function.
3253         (umips_output_save_restore): New function.
3254         (umips_load_store_pair_p_1): New function.
3255         (umips_load_store_pair_p): New function.
3256         (umips_output_load_store_pair_1): New function.
3257         (umips_output_load_store_pair): New function.
3258         (umips_movep_target_p) New function.
3259         (mips_prepare_pch_save): Add microMIPS support.
3260         * config/mips/mips.h (TARGET_COMPRESSION): New.
3261         (TARGET_CPU_CPP_BUILTINS): Update macro
3262         to use new compression flags and to support microMIPS.
3263         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
3264         (MIPS_ARCH_FLOAT_SPEC): Likewise.
3265         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
3266         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
3267         (ASM_SPEC): Support mmicromips and mno-micromips.
3268         (M16STORE_REG_P): New macro.
3269         (MIPS_CALL): Support TARGET_MICROMIPS.
3270         (MICROMIPS_J): New macro.
3271         (mips_base_mips16): Rename this...
3272         (mips_base_compression_flags): ...to this.
3273         (UMIPS_12BIT_OFFSET_P): New macro.
3274         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
3275         (MULTILIB_DIRNAMES): Likewise.
3276 2013-03-20  Richard Biener  <rguenther@suse.de>
3278         PR tree-optimization/56661
3279         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
3280         the result does not have to be distinct.
3282 2013-03-20  Richard Biener  <rguenther@suse.de>
3284         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
3285         remap_gimple_op_r.
3287 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3288             Steven Bosscher <steven@gcc.gnu.org>
3290         PR rtl-optimization/56605
3291         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
3293 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
3295         PR bootstrap/56656
3296         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
3297         that require movd instead of movq.
3299 2013-03-20  Richard Biener  <rguenther@suse.de>
3301         * tree-ssa-structalias.c (struct variable_info): Add pointer
3302         to the first field of an aggregate with sub-vars.  Make
3303         this and the pointer to the next subfield its ID.
3304         (vi_next): New function.
3305         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
3306         storedanything_id, integer_id): Increment by one.
3307         (new_var_info, get_call_vi, lookup_call_clobber_vi,
3308         get_call_clobber_vi): Adjust.
3309         (solution_set_expand): Simplify and speedup.
3310         (solution_set_add): Inline into ...
3311         (set_union_with_increment): ... this.  Adjust accordingly.
3312         (do_sd_constraint): Likewise.
3313         (do_ds_constraint): Likewise.
3314         (do_complex_constraint): Simplify.
3315         (build_pred_graph): Adjust.
3316         (solve_graph): Likewise.  Simplify and speedup.
3317         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
3318         get_constraint_for_component_ref, get_constraint_for_1,
3319         first_vi_for_offset, first_or_preceding_vi_for_offset,
3320         create_function_info_for, create_variable_info_for_1,
3321         create_variable_info_for, intra_create_variable_infos): Adjust.
3322         (init_base_vars): Push NULL for ID zero.
3323         (compute_points_to_sets): Adjust.
3325 2013-03-20  Richard Biener  <rguenther@suse.de>
3327         * cfgloop.c (verify_loop_structure): Streamline and avoid
3328         ICEing on corrupt loop tree.
3329         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
3330         loop tree.
3332 2013-03-20  Richard Biener  <rguenther@suse.de>
3334         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
3335         check whether an SSA update is needed.
3337 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
3339         * config/mips/constraints.md (T): Rename to...
3340         (Yf): ...this.
3341         (U): Rename to...
3342         (Yd): ...this.
3343         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
3344         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
3346 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
3348         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
3349         (*subsi3_carryin_uxtw): Likewise.
3351 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
3353         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
3354         (*rorsi3_insn_uxtw): Likewise.
3356 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
3358         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
3359         (*extrsi5_insn_uxtw): Likewise.
3361 2013-03-19  Richard Biener  <rguenther@suse.de>
3363         PR tree-optimization/56273
3364         * passes.c (init_optimization_passes): Move second VRP after DOM.
3366 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
3368         * config/i386/i386.md (*movti_internal): Merge from
3369         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
3370         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
3371         nox64 isa attributes.
3373 2013-03-18  Richard Biener  <rguenther@suse.de>
3375         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
3376         (unite): Likewise.
3377         (merge_node_constraints): Likewise.
3378         (build_succ_graph): Likewise.
3379         (valid_graph_edge): Inline into single caller.
3380         (unify_nodes): Likewise.  Use bitmap_set_bit return value
3381         and cache varinfo.
3382         (scc_visit): Fix formatting and variable use.
3383         (do_sd_constraint): Use gcc_checking_assert.
3384         (do_ds_constraint): Likewise.
3385         (do_complex_constraint): Likewise.
3386         (condense_visit): Likewise.  Cleanup.
3387         (dump_pred_graph): New function.
3388         (perform_var_substitution): Dump the pred-graph before
3389         variable substitution.
3390         (find_equivalent_node): Use gcc_checking_assert.
3391         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
3393 2013-03-18  Richard Biener  <rguenther@suse.de>
3395         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
3396         Remove cond_expr_stmt_list argument and do not gimplify the
3397         built expression.
3398         (vect_loop_versioning): Adjust.
3399         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
3400         Cleanup to use less temporaries.
3401         (vect_create_data_ref_ptr): Cleanup.
3403 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
3405         PR tree-optimization/56635
3406         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
3407         require types_compatible_p types.
3409 2013-03-18  Nick Clifton  <nickc@redhat.com>
3411         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
3412         spurious backslash.
3414         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
3415         Add missing line to comment describing function.
3417 2013-03-18  Richard Biener  <rguenther@suse.de>
3419         PR tree-optimization/56210
3420         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3421         Handle string / character search functions.
3422         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
3424 2013-03-18  Richard Biener  <rguenther@suse.de>
3426         PR middle-end/56483
3427         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
3428         and implement properly.
3429         * gimple.h (gimple_cond_single_var_p): Remove.
3431 2013-03-18  Richard Biener  <rguenther@suse.de>
3433         * tree-data-ref.h (find_data_references_in_loop): Declare.
3434         * tree-data-ref.c (get_references_in_stmt): Use a stack
3435         vector pre-allocated in the callers.
3436         (find_data_references_in_stmt): Adjust.
3437         (graphite_find_data_references_in_stmt): Likewise.
3438         (create_rdg_vertices): Likewise.
3439         (find_data_references_in_loop): Export.
3440         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
3441         Compute dependences here...
3442         (vect_analyze_data_refs): ...not here.  When we encounter
3443         a non-vectorizable data reference in basic-block vectorization
3444         truncate the data reference vector.  Do not bother to
3445         fixup data-dependence information for gather loads.
3446         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
3447         of data references, as reported.
3449 2013-03-18  Richard Biener  <rguenther@suse.de>
3451         PR tree-optimization/3713
3452         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
3453         has_constants and expr.
3454         (stmt_has_constants): Properly valueize SSA names when deciding
3455         whether the stmt has constants.
3457 2013-03-18  Richard Biener  <rguenther@suse.de>
3459         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
3460         whole function when there is nothing to do.
3461         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
3462         * tree-vectorizer.c (vectorize_loops): Update virtual and
3463         loop-closed SSA once.
3464         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
3466 2013-03-18  Richard Biener  <rguenther@suse.de>
3468         PR middle-end/56113
3469         * domwalk.c (bb_postorder): New global static.
3470         (cmp_bb_postorder): New function.
3471         (walk_dominator_tree): Replace scheme imposing an order for
3472         visiting dominator sons by one sorting them at the time they
3473         are pushed on the stack.
3475 2013-03-18  Richard Biener  <rguenther@suse.de>
3477         PR tree-optimization/39326
3478         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
3479         (struct mem_ref): Replace mem member with ao_ref typed member.
3480         (MEM_ANALYZABLE): Adjust.
3481         (memref_eq): Likewise.
3482         (mem_ref_alloc): Likewise.
3483         (gather_mem_refs_stmt): Likewise.
3484         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
3485         (execute_sm_if_changed_flag_set): Adjust.
3486         (execute_sm): Likewise.
3487         (ref_always_accessed_p): Likewise.
3488         (refs_independent_p): Likewise.
3489         (can_sm_ref_p): Likewise.
3491 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
3493         PR c/56566
3494         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
3495         return 1 even for !unsignedp.
3497 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
3499         * config/i386/i386.md (isa): Add x64 and nox64.
3500         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
3501         (*pushtf): Enable *roF alternative for x64 isa only.
3502         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
3503         mode attribute of integer alternatives to DImode for TARGET_64BIT.
3504         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
3505         (*movtf_internal): Merge from *movtf_internal_rex64 and
3506         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
3507         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
3508         nox64 isa attributes.
3509         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
3510         nox64 isa attributes.
3511         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
3513 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
3515         * config/alpha/alpha.c (TARGET_LRA_P): New define.
3517 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
3519         PR target/56640
3520         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
3521         class names.  Remove trailing comma after "ALL_REGS".
3523 2013-03-16  Jan Hubicka  <jh@suse.cz>
3525         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
3526         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
3527         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
3528         of cgraph_get_create_node.
3529         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
3531 2013-03-16  Jason Merrill  <jason@redhat.com>
3533         PR debug/49090
3534         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
3535         with DW_AT_default_value.
3537 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
3539         * BASE-VER: Set to 4.9.0.
3541 2013-03-14  Andi Kleen  <ak@linux.intel.com>
3543         PR target/56619
3544         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
3545         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
3546         Document _x* TSX intrinsics.
3548 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
3549             David Holsgrove  <david.holsgrove@xilinx.com>
3551         * configure.ac: Add MicroBlaze TLS support detection.
3552         * configure: Regenerate.
3553         * config/microblaze/microblaze-protos.h
3554         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
3555         symbol_mentioned_p, label_mentioned_p): Add prototypes.
3556         * config/microblaze/microblaze.c (microblaze_address_type): Add
3557         ADDRESS_TLS and tls_reloc address types.
3558         (microblaze_address_info): Add tls_reloc.
3559         (TARGET_HAVE_TLS): Define.
3560         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
3561          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
3562          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
3563         load_tls_operand,  microblaze_call_tls_get_addr,
3564         microblaze_legitimize_tls_address): New functions.
3565         (microblaze_classify_unspec): Handle UNSPEC_TLS.
3566         (get_base_reg): Use microblaze_tls_symbol_p.
3567         (microblaze_classify_address): Handle TLS.
3568         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
3569         label_mentioned_p and microblaze_tls_referenced_p.
3570         (microblaze_legitimize_address): Handle TLS.
3571         (microblaze_address_insns): Handle ADDRESS_TLS.
3572         (pic_address_needs_scratch): Handle TLS.
3573         (print_operand_address): Handle TLS.
3574         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
3575         (microblaze_expand_move): Handle TLS.
3576         (microblaze_legitimate_constant_p): Check
3577         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
3578         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
3579         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
3580         (PIC_OFFSET_TABLE_REGNUM): Set.
3581         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
3582         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
3583         (addsi3, movsi_internal2, movdf_internal): Update constraints
3584         * config/microblaze/predicates.md (arith_plus_operand): Define
3585         (move_operand): Redefine as move_src_operand,
3586         check microblaze_tls_referenced_p.
3588 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
3590         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
3591         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
3593 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
3595         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
3596         CC mode for AND.
3598 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
3600         PR tree-optimization/53265
3601         * common.opt (Waggressive-loop-optimizations): New option.
3602         * tree-ssa-loop-niter.c: Include tree-pass.h.
3603         (do_warn_aggressive_loop_optimizations): New function.
3604         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
3605         if number_of_latch_executions returned constant.
3606         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
3607         early.  If number_of_latch_executions returned constant, set
3608         nb_iterations_upper_bound back to it.
3609         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
3610         field.
3611         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
3612         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
3614         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
3615         (MULTILIB_OSDIRNAMES): Set.
3616         * genmultilib: If defaultosdirname doesn't start with :: , set
3617         defaultosdirname2 instead, clear it and emit two . multilib_raw
3618         entries instead of just one.
3620 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
3622         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
3623         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
3624         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
3625         (SUBTARGET_OVERRIDE_OPTIONS): New.
3627 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
3629         PR target/49880
3630         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
3631         (musermode): Convert to Var(TARGET_USERMODE).
3632         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
3633         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
3634         * config/sh/sh.c (sh_option_override): Use
3635         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
3636         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
3637         condition.
3638         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
3639         TARGET_SH4.
3640         (udivsi3_i4_single, divsi3_i4_single): Use
3641         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
3643 2013-03-13  Dave Korn  <dave.korn.cygwin@....>
3645         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
3646         default setting.
3648 2013-03-13  Richard Biener  <rguenther@suse.de>
3650         PR tree-optimization/56608
3651         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
3652         calls when vectorizing basic-blocks.
3654 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
3656         PR plugins/45078
3657         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
3658         tm_file.
3660 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
3662         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
3664 2013-03-11  Jan Hubicka  <jh@suse.cz>
3666         PR lto/56557
3667         * lto-streamer-out.c (output_symbol_p): Skip references from
3668         constructors of external variables.
3670 2013-03-11  Jan Hubicka  <jh@suse.cz>
3672         PR middle-end/56571
3673         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
3674         from pseudos.
3675         * emit-rtl.c (verify_rtx_sharing): Likewise.
3676         (copy_insn_1): Likewise.
3677         * rtl.c (copy_rtx): Likewise.
3679 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
3681         PR target/56591
3682         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
3683         output_operand_lossage message.
3685 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
3687         PR target/56470
3688         * arm.c (shift_op): Validate RTL pattern on the fly.
3689         (arm_print_operand, case 'S'): Don't use shift_operator to validate
3690         the RTL.
3692 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3694         PR target/56347
3695         * config/pa/pa.md (call_value): Check for calls to powf and direct to
3696         new call patterns that clobber %fr12.
3697         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
3698         split and postreload patterns.
3699         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
3700         registers %fr12 and %fr12R as call used.
3702 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
3704         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
3705         (canon_address, record_store, replace_read, check_mem_read_rtx,
3706         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
3707         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
3708         rest_of_handle_dse): Likewise.
3710 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
3712         PR middle-end/56524
3713         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
3714         Add base_optabs.
3715         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
3716         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
3717         (save_optabs_if_changed): Replace with...
3718         (init_tree_optimization_optabs): ...this.
3719         * optabs.c (save_optabs_if_changed): Rename to...
3720         (init_tree_optimization_optabs): ...this.  Take the optimization node
3721         as argument.  Do nothing if the base optabs are already correct.
3722         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
3723         to recompute optabs.
3724         * function.h (function): Remove optabs field.
3725         * function.c (invoke_set_current_function_hook): Call
3726         init_tree_optimization_optabs.  Use the result to initialize
3727         this_fn_optabs.
3729 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
3731         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
3732         if GTMA_HAS_NO_INSTRUMENTATION.
3733         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
3734         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
3735         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
3736         * gimple-pretty-print.c (dump_gimple_transaction): Handle
3737         GTMA_HAS_NO_INSTRUMENTATION.
3739 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
3741         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
3742         libasan_preinit.o.
3744 2013-03-08  Marek Polacek  <polacek@redhat.com>
3745             Jakub Jelinek  <jakub@redhat.com>
3747         PR tree-optimization/56478
3748         * predict.c (is_comparison_with_loop_invariant_p): Change the
3749         type of loop_step to tree.
3750         (predict_loops): Adjust.
3751         (predict_iv_comparison): Perform the computations on double_ints.
3753 2013-03-08  Richard Biener  <rguenther@suse.de>
3755         PR tree-optimization/56570
3756         * tree-cfg.c (verify_expr_location_1): Verify locations for
3757         DECL_DEBUG_EXPR.
3758         * tree-sra.c (create_access_replacement): Strip locations
3759         from DECL_DEBUG_EXPRs.
3761 2013-03-08  Richard Biener  <rguenther@suse.de>
3763         * tree-inline.c (expand_call_inline): Do not associate
3764         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
3765         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
3767 2013-03-08  Richard Biener  <rguenther@suse.de>
3769         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
3770         or block changes with -Og.  Fix for location / block encoding
3771         changes and PHI arguments with locations.
3773 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
3775         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
3776         for all counters.
3777         (struct output_info): Likewise.
3778         (register_overhead): Remove bad gcc_assert.
3779         (bitmap_find_bit): If there is only a single bitmap element, do not
3780         count a miss as a search.
3781         (print_statistics): Update for counter type changes.
3782         (dump_bitmap_statistics): Likewise.  Print headers such that they
3783         are properly lined up with the printed counters.
3785 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
3787         PR tree-optimization/56559
3788         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
3789         check that it has only a single use.
3791 2013-03-07  Richard Biener  <rguenther@suse.de>
3793         * doc/invoke.texi (fwhole-program): Discourage use in combination
3794         with -flto.
3796 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
3798         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
3800         PR tree-optimization/56539
3801         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
3802         instead of GSI_CONTINUE_LINKING as last argument to
3803         force_gimple_operand_gsi.  Adjust function comment.
3805         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
3806         aarch64-cores.def.
3808         PR middle-end/56548
3809         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
3810         promoted mode, convert the result back to the original mode.
3812 2013-03-06  Richard Biener  <rguenther@suse.de>
3814         PR middle-end/56294
3815         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
3816         (insert_updated_phi_nodes_compare_uids): New function.
3817         (update_ssa): Sort symbols_to_rename after UID before
3818         traversing it to insert PHI nodes.
3820 2013-03-06  Richard Biener  <rguenther@suse.de>
3822         PR middle-end/50494
3823         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
3824         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
3826         Revert
3827         2013-02-13  Richard Biener  <rguenther@suse.de>
3829         PR lto/50494
3830         * varasm.c (output_constant_def_1): Get the decl representing
3831         the constant as argument.
3832         (output_constant_def): Wrap output_constant_def_1.
3833         (make_decl_rtl): Use output_constant_def_1 with the decl
3834         representing the constant.
3835         (build_constant_desc): Optionally re-use a decl already
3836         representing the constant.
3837         (tree_output_constant_def): Adjust.
3839 2013-03-06  Joey Ye  <joey.ye@arm.com>
3841         PR lto/50293
3842         * gcc.c (convert_white_space): New function.
3843         (main): Handles white space in function name.
3845 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
3847         PR target/56529
3848         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
3849         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
3850         to SH_DIV_CALL_TABLE for TARGET_SH2.
3851         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
3852         list.
3853         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
3854         call-table options.
3856 2013-03-05  Sterling Augustine  <saugustine@google.com>
3857             Cary Coutant  <ccoutant@google.com>
3859         PR debug/55364
3860         * dwarf2out.c (resolve_addr): Don't call
3861         remove_loc_list_addr_table_entries a second time for the same
3862         expression.
3864 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
3866         PR debug/56510
3867         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
3868         (avoid_complex_debug_insns): New function.
3869         (expand_debug_locations): Call it.
3871         PR rtl-optimization/56484
3872         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
3873         lifetimes of hard registers on small register class machines.
3875 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
3877         * config/microblaze/microblaze-protos.h: Rename
3878         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
3879         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
3880         fast_interrupt.
3881         (microblaze_fast_interrupt_function_p): New function.
3882         (microblaze_is_interrupt_handler): Rename to
3883         microblaze_is_interrupt_variant and add fast_interrupt check.
3884         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
3885         (save_restore_insns): Likewise.
3886         (compute_frame_size): Likewise.
3887         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
3888         (microblaze_globalize_label): Likewise.
3889         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
3890         * config/microblaze/microblaze.md: Use wrapper
3891         microblaze_is_interrupt_variant.
3893 2013-03-05  Kai Tietz  <ktietz@redhat.com>
3895         * sdbout.c (sdbout_one_type): Switch to current function's section
3896         supporting cold/hot.
3898 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
3900         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
3901         -mxl-reorder.
3903 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
3905         PR middle-end/56461
3906         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
3907         if VALGRIND_GET_VBITS is defined, temporarily make object
3908         memory all defined, and restore previous valgrind addressability
3909         and definability afterwards.  Free this_object at the end.
3911         PR middle-end/56461
3912         * lra.c (lra): Call lra_clear_live_ranges if live_p,
3913         right before calling lra_create_live_ranges, also call it
3914         when clearing live_p.  Only call lra_clear_live_ranges
3915         at the end if live_p.
3917         PR middle-end/56461
3918         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
3920 2013-03-05  Richard Biener  <rguenther@suse.de>
3922         PR tree-optimization/56521
3923         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
3924         value-id.
3926 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
3928         PR c++/55135
3929         * except.h (remove_unreachable_eh_regions): New prototype.
3930         * except.c (remove_eh_handler_splicer): New function, split out
3931         of remove_eh_handler.
3932         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
3933         warning about running it on many EH regions one at a time.
3934         (remove_unreachable_eh_regions_worker): New function, walk the
3935         EH tree in depth-first order and remove non-marked regions.
3936         (remove_unreachable_eh_regions): New function.
3937         * tree-eh.c (mark_reachable_handlers): New function, split out
3938         from remove_unreachable_handlers.
3939         (remove_unreachable_handlers): Use mark_reachable_handlers and
3940         remove_unreachable_eh_regions.
3941         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
3942         and remove_unreachable_eh_regions.
3944 2013-03-05  Richard Biener  <rguenther@suse.de>
3946         PR middle-end/56525
3947         * loop-init.c (fix_loop_structure): Remove loops in two stages,
3948         not freeing them until the end.
3950 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3952         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
3954 2013-03-05  Richard Biener  <rguenther@suse.de>
3956         PR tree-optimization/56270
3957         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
3958         of loads after scheduling an SLP instance.
3960 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
3962         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
3963         tic6x.exp.
3964         (check_gcc_parallelize): Run guality.exp as a separate job from
3965         vect.exp with unsorted.exp and $(dg_target_exps) separately from
3966         struct-layout-1.exp with stackalign.exp.
3968         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
3970         PR middle-end/56461
3971         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
3972         load_index sbitmap even if some bit in it isn't set.
3974         PR middle-end/56461
3975         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
3976         (discover_iteration_bound_by_body_walk): Change queues to
3977         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
3978         spelling in comment.  Call safe_push on queues[bound_index] directly.
3979         Release queues[queue_index] in every iteration unconditionally.
3980         Release bounds vector.
3982         PR middle-end/56461
3983         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
3984         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
3985         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
3986         inner_phis vector.
3988 2013-03-05  Richard Biener  <rguenther@suse.de>
3990         PR lto/56515
3991         * tree-inline.c (remap_blocks_to_null): New function.
3992         (expand_call_inline): When expanding a call stmt without
3993         an associated block inline remap all callee blocks to NULL.
3995 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
3997         PR rtl-optimization/56494
3998         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
3999         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
4000         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
4002         PR middle-end/56461
4003         * sel-sched-ir.c (free_sched_pools): Release
4004         succs_info_pool.stack[succs_info_pool.max_top] vectors too
4005         if succs_info_pool.max_top isn't -1.
4007         PR bootstrap/56509
4008         * opts.c (opts_obstack, opts_concat): Moved to...
4009         * opts-common.c (opts_obstack, opts_concat): ... here.
4011 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
4013         PR middle-end/56461
4014         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
4016 2013-03-04  Martin Jambor  <mjambor@suse.cz>
4018         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
4019         all appropriate places.
4021 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
4023         PR tree-optimization/56424
4024         * ipa-split.c (split_function): Do not set the RSO flag if result is
4025         not by reference and its type is a register type.
4027 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
4029         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
4030         (microblaze_legitimate_pic_operand): Likewise
4031         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
4032         new function microblaze_legitimate_pic_operand
4033         * config/microblaze/microblaze-protos.h
4034         (microblaze_legitimate_pic_operand): Declare.
4036 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
4038         * config/microblaze/predicates.md (call_insn_simple_operand):
4039         New predicate for supported rtx code types.
4040         * config/microblaze/microblaze.md (call_internal1): Use
4041         call_insn_simple_operand predicate.
4043 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
4045         PR middle-end/56461
4046         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
4047         partitions.ordered_remove.
4049         PR middle-end/56461
4050         * tree-vect-stmts.c (vectorizable_conversion): Don't call
4051         vec_oprnds0.create (1) for modifier == NONE.
4053         PR middle-end/56461
4054         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
4055         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
4056         vec_oprnds1 right before pushing anything to it for
4057         scalar_shift_arg.
4059         PR middle-end/56461
4060         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
4061         set nbbs to 0 instead of having separate code path.
4062         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
4063         instead of false as last argument if returning NULL.
4065 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
4067         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
4068         the attribute is now called "target" instead of "option".
4069         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
4070         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
4071         attribute/pragma name for TARGET_OPTION_VALID_P and
4072         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
4073         * doc/tm.texi: Regenerated.
4075 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
4077         * config/microblaze/microblaze.c:
4078         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
4079         * config/microblaze/microblaze.h: Add -mxl-reorder to
4080         DRIVER_SELF_SPECS.
4081         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
4082         instructions emitted if TARGET_REORDER.
4083         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
4084         or 0 for -m/-mno case, but initialises as 2 to detect default use case
4085         separately.
4087 2013-03-01  Xinliang David Li  <davidxl@google.com>
4089         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
4090         walk length.
4092 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
4094         PR middle-end/56461
4095         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
4096         vector even when returning true.  Fix up function comment formatting.
4098         PR middle-end/56461
4099         * ira-build.c (ira_loop_nodes_count): New variable.
4100         (create_loop_tree_nodes): Initialize it.
4101         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
4103         PR middle-end/56461
4104         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
4105         method on dr_chain and result_chain.
4106         * tree-vect-stmts.c (vectorizable_store): Only call
4107         result_chain.create if j == 0.
4109         PR middle-end/56461
4110         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
4111         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
4112         before overwriting it.
4114 2013-03-01  Tobias Burnus  <burnus@net-b.de>
4116         * doc/extended.texi (C Extensions): Change order in @menu
4117         to match @node.
4118         (Other MIPS Built-in Functions): Move last MIPS entry before
4119         "picoChip Built-in Functions".
4120         (SH Built-in Functions): Move after RX Built-in Functions.
4121         * doc/gcc.texi (Introduction): Change order in @menu
4122         to match @node.
4123         * doc/md.texi (Constraints): Ditto.
4124         * gty.texi (Type Information): Ditto.
4125         (User-provided marking routines for template types): Make
4126         subsection.
4127         * doc/invoke.texi (AArch64 Options): Move before
4128         "Adapteva Epiphany Options".
4130 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
4131             Jakub Jelinek  <jakub@redhat.com>
4133         PR sanitizer/56454
4134         * asan.c (gate_asan): Lookup no_sanitize_address instead of
4135         no_address_safety_analysis attribute.
4136         * doc/extend.texi (no_address_safety_attribute): Rename to
4137         no_sanitize_address attribute, mention no_address_safety_analysis
4138         attribute as deprecated alias.
4140 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
4142         PR middle-end/56461
4143         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
4144         type to vec<vec<tree> > *.
4145         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
4146         to be vec<tree> instead of vec<tree> *, set vec_defs
4147         to vNULL and call vec_defs.create (number_of_vects), adjust other
4148         uses of vec_defs.
4149         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
4150         vectorizable_condition): Adjust vect_get_slp_defs callers.
4152 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
4154         * config/aarch64/aarch64.c
4155         (aarch64_float_const_representable): Remove unused variable.
4157 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
4159         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
4161 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
4163         * config/aarch64/aarch64-builtins.c
4164         (aarch64_init_simd_builtins): Make static.
4166 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
4168         * config/aarch64/aarch64.c
4169         (aarch64_simd_make_constant): Make static.
4171 2013-02-28  Martin Jambor  <mjambor@suse.cz>
4173         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
4174         with no initialization to the RHS of debug statements.
4176 2013-02-28  Martin Jambor  <mjambor@suse.cz>
4178         PR tree-optimization/56294
4179         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
4180         Adjust dumping.
4181         (get_access_replacement): Do not call create_access_replacement.
4182         Assert a replacement exists.
4183         (get_repl_default_def_ssa_name): Create the replacement declaration
4184         itself.
4186 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4188         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
4189         final_end_function.
4191 2013-02-28  Marek Polacek  <polacek@redhat.com>
4193         PR rtl-optimization/56466
4194         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
4195         if we're changing a loop.
4196         (peel_loops_completely): Likewise.
4198 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
4200         PR c++/55813
4201         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
4203 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
4205         PR target/56445
4206         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
4207         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
4208         INTX_FTYPE_FX, FX_FTYPE_INTX.
4209         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
4211 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
4213         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
4214         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
4215         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
4216         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
4217         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
4218         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
4219         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
4220         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
4221         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
4222         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
4223         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
4224         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
4225         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
4226         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
4227         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
4228         (avrxmega6): Increase max flash segments from 5 to 6.
4229         * config/avr/t-multilib: Regenerate.
4230         * config/avr/avr-tables.opt: Regenerate.
4231         * doc/avr-mmcu.texi: Regenerate.
4233 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
4235         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
4236         (avr_device_to_arch): Rename to avr_device_to_ld.
4237         (avr_device_to_as): New prototype.
4238         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
4239         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
4240         * config/avr/driver-avr.c (avr_device_to_as): New.
4241         (avr_device_to_arch): Rename to avr_device_to_ld.
4243 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
4245         PR middle-end/56461
4246         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
4247         method on dr_chain and result_chain.
4249         PR middle-end/56461
4250         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
4251         pointer_set_destroy on not_executed_last_iteration.
4253         PR middle-end/56461
4254         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
4256         PR middle-end/56461
4257         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
4258         FOR_EACH_DEFINED_FUNCTION when freeing state.
4260         PR middle-end/56461
4261         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
4262         pool_free.
4263         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
4264         overwriting it.
4266         PR middle-end/56461
4267         * ipa-cp.c (decide_whether_version_node): Call vec_free on
4268         known_aggs[i].items and release known_aggs vector.
4270         PR middle-end/56461
4271         * ipa-reference.c (propagate): Free node_info even for alias nodes.
4273 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
4275         * config/microblaze/microblaze.c (microblaze_emit_compare):
4276         Use xor for EQ/NE comparisions.
4277         * config/microblaze/microblaze.md (cstoresf4): Add constraints
4278         (cbranchsf4): Adjust operator to comparison_operator.
4280 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
4282         PR middle-end/56461
4283         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
4284         vector.
4285         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
4286         vec_safe_push, always update *slot.
4287         (redirect_edge_var_map_clear): Use vec_free.
4288         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
4289         (free_var_map_entry): Use vec_free.
4290         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
4291         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
4293 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
4295         PR middle-end/45472
4296         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
4297         when the may_trap_p bit of the exprs being merged differs.
4298         Reorder tests for speculativeness in the logical and operator.
4300 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
4302         * incpath.c (add_standard_paths): Use reconcat instead of concat
4303         where appropriate and avoid leaking memory.
4305         * opts.h: Include obstack.h.
4306         (opts_concat): New prototype.
4307         (opts_obstack): New declaration.
4308         * opts.c (opts_concat): New function.
4309         (opts_obstack): New variable.
4310         (init_options_struct): Call gcc_init_obstack on opts_obstack.
4311         (finish_options): Use opts_concat instead of concat
4312         and XOBNEWVEC instead of XNEWVEC.
4313         * opts-common.c (generate_canonical_option, decode_cmdline_option,
4314         generate_option): Likewise.
4315         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
4316         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
4318         PR target/56455
4319         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
4320         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
4322 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
4324         PR middle-end/56461
4325         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
4327 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
4329         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
4330         (arm_block_move_unaligned_straight): Likewise.
4331         (arm_adjust_block_mem): Likewise.
4333 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
4335         PR target/48901
4336         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
4337         temp, cond and label.
4338         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
4340         PR target/52500
4341         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
4342         * config/c6x/c6x.h (dbx_register_map): Update declaration.
4344         PR target/52501
4345         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
4346         of prologue/epilogue functions.
4348         PR target/52550
4349         * config/tilegx/tilegx.c (tilegx_expand_prologue):
4350         Remove unused variable cfa_offset.
4351         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
4353         PR target/54639
4354         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
4355         type promotion to unsigned.
4357         PR target/54640
4358         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
4359         for HOST_WIDE_INT of 32 bit / same size as int.
4360         (arm_block_move_unaligned_straight): Likewise.
4361         (arm_adjust_block_mem): Likewise.
4363         PR target/54662
4364         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
4365         ALL_CFLAGS.
4367 2013-02-26  Marek Polacek  <polacek@redhat.com>
4369         PR tree-optimization/56426
4370         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
4372 2013-02-26  Richard Biener  <rguenther@suse.de>
4374         PR target/56444
4375         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
4376         unused variable loops.
4378 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
4380         PR tree-optimization/56448
4381         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
4382         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
4383         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
4384         later operands of the references, or even first operand for
4385         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
4387         PR tree-optimization/56443
4388         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
4389         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
4390         to type_for_mode langhook.
4392 2013-02-25  Matt Turner  <mattst88@gmail.com>
4394         * doc/invoke.texi: Document r4700.
4396 2013-02-25  Richard Biener  <rguenther@suse.de>
4398         PR tree-optimization/56175
4399         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
4400         split out from ...
4401         (simplify_bitwise_binary): ... here.  Also guard the conversion
4402         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
4404 2013-02-25  Catherine Moore  <clm@codesourcery.com>
4406         Revert:
4407         2013-02-24  Catherine Moore  <clm@codesourcery.com>
4408             Maciej W. Rozycki  <macro@codesourcery.com>
4409             Tom de Vries  <tom@codesourcery.com>
4410             Nathan Sidwell  <nathan@codesourcery.com>
4411             Iain Sandoe  <iain@codesourcery.com>
4412             Nathan Froyd  <froydnj@codesourcery.com>
4413             Chao-ying Fu  <fu@mips.com>
4415         * doc/extend.texi: (micromips, nomicromips, nocompression):
4416         Document new function attributes.
4417         * doc/invoke.texi (minterlink-compressed, mmicromips,
4418         m14k, m14ke, m14kec): Document new options.
4419         (minterlink-mips16): Update documentation.
4420         * doc/md.texi (ZC, ZD): Document new constraints.
4421         * configure.ac (gcc_cv_as_micromips): Check if linker
4422         supports the .set micromips directive.
4423         * configure: Regenerate.
4424         * config.in: Regenerate.
4425         * config/mips/mips-tables.opt: Regenerate.
4426         * config/mips/micromips.md: New file.
4427         * constraints.md (ZC, AD): New constraints.
4428         * config/mips/predicates.md (movep_src_register): New predicate.
4429         (movep_src_operand): New predicate.
4430         (non_volatile_mem_operand): New predicate.
4431         * config/mips/mips.md (multimem): New type.
4432         (length): Differentiate between 17-bit and 18-bit branch offsets.
4433         (MOVEP1, MOVEP2): New mode iterator.
4434         (mov_<load>l): Use ZC constraint.
4435         (mov_<load>r): Likewise.
4436         (mov_<store>l): Likewise.
4437         (mov_<store>r): Likewise.
4438         (*branch_equality<mode>_inverted): Add microMIPS support.
4439         (*branch_equality<mode>): Likewise.
4440         (*jump_absolute): Likewise.
4441         (indirect_jump_<mode>): Likewise.
4442         (tablejump_<mode>): Likewise.
4443         (<optab>_internal): Likewise.
4444         (sibcall_internal): Likewise.
4445         (sibcall_value_internal): Likewise.
4446         (prefetch): Use constraint ZD.
4447         * config/mips/mips.opt (minterlink-compressed): New option.
4448         (minterlink-mips16): Now an alias for minterlink-compressed.
4449         (mmicromips): New option.
4450         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
4451         (compare_and_swap_12): Likewise.
4452         (sync_add<mode>): Likewise.
4453         (sync_<optab>_12): Likewise.
4454         (sync_old_<optab>_12): Likewise.
4455         (sync_new_<optab>_12): Likewise.
4456         (sync_nand_12): Likewise.
4457         (sync_old_nand_12): Likewise.
4458         (sync_new_nand_12): Likewise.
4459         (sync_sub<mode>): Likewise.
4460         (sync_old_add<mode>): Likewise.
4461         (sync_old_sub<mode>): Likewise.
4462         (sync_new_add<mode>): Likewise.
4463         (sync_new_sub<mode>): Likewise.
4464         (sync_<optab><mode>): Likewise.
4465         (sync_old_<optab><mode>): Likewise.
4466         (sync_new_<optab><mode>): Likewise.
4467         (sync_nand<mode>): Likewise.
4468         (sync_old_nand<mode>): Likewise.
4469         (sync_new_nand<mode>): Likewise.
4470         (sync_lock_test_and_set<mode>): Likewise.
4471         (test_and_set_12): Likewise.
4472         (atomic_compare_and_swap<mode>): Likewise.
4473         (atomic_exchange<mode>_llsc): Likewise.
4474         (atomic_fetch_add<mode>_llsc): Likewise.
4475         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
4476         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
4477         (umips_save_restore_pattern_p): Likewise.
4478         (umips_load_store_pair_p): Likewise.
4479         (umips_output_load_store_pair): Likewise.
4480         (umips_movep_target_p): Likewise.
4481         (umips_12bit_offset_address_p): Likewise.
4482         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
4483         (mips_base_mips16): Rename this...
4484         (mips_base_compression_flags): ...to this. Update all uses.
4485         (mips_attribute_table): Add micromips, nomicromips and nocompression.
4486         (mips_mips16_decl_p): Delete.
4487         (mips_nomips16_decl_p): Delete.
4488         (mips_get_compress_on_flags): New function.
4489         (mips_get_compress_off_flags): New function.
4490         (mips_get_compress_mode): New function.
4491         (mips_get_compress_on_name): New function.
4492         (mips_get_compress_off_name): New function.
4493         (mips_insert_attributes): Support multiple compression types.
4494         (mips_merge_decl_attributes): Likewise.
4495         (umips_12bit_offset_address_p): New function.
4496         (mips_start_function_definition): Emit .set micromips directive.
4497         (mips_call_may_need_jalx_p): New function.
4498         (mips_function_ok_for_sibcall): Add microMIPS support.
4499         (mips_print_operand_punctuation): Support short delay slots and
4500         compact jumps.
4501         (umips_swm_mask, umips_swm_encoding): New.
4502         (umips_build_save_restore): New function.
4503         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
4504         (was_mips16_p): Remove.
4505         (old_compression_mode): New.
4506         (mips_set_compression_mode): New function.
4507         (mips_set_current_function): Add microMIPS support.
4508         (mips_option_override): Likewise.
4509         (umips_save_restore_pattern_p): New function.
4510         (umips_output_save_restore): New function.
4511         (umips_load_store_pair_p_1): New function.
4512         (umips_load_store_pair_p): New function.
4513         (umips_output_load_store_pair_1): New function.
4514         (umips_output_load_store_pair): New function.
4515         (umips_movep_target_p) New function.
4516         (mips_prepare_pch_save): Add microMIPS support.
4517         * config/mips/mips.h (TARGET_COMPRESSION): New.
4518         (TARGET_CPU_CPP_BUILTINS): Update macro
4519         to use new compression flags and to support microMIPS.
4520         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
4521         (MIPS_ARCH_FLOAT_SPEC): Likewise.
4522         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
4523         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
4524         (ASM_SPEC): Support mmicromips and mno-micromips.
4525         (M16STORE_REG_P): New macro.
4526         (MIPS_CALL): Support TARGET_MICROMIPS.
4527         (MICROMIPS_J): New macro.
4528         (mips_base_mips16): Rename this...
4529         (mips_base_compression_flags): ...to this.
4530         (UMIPS_12BIT_OFFSET_P): New macro.
4531         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
4532         (MULTILIB_DIRNAMES): Likewise.
4534 2013-02-25  Tom de Vries  <tom@codesourcery.com>
4536         PR rtl-optimization/56131
4537         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
4538         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
4539         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
4541 2013-02-25  Tobias Burnus  <burnus@net-b.de>
4543         * doc/invoke.texi (-fsanitize=): Move from optimization
4544         to debugging options.
4546 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
4548         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
4550 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
4551             Alexander Monakov  <amonakov@ispras.ru>
4553         PR middle-end/56077
4554         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
4555         flush pending lists also on non-jumps.  Adjust comment.
4557 2013-02-24  Catherine Moore  <clm@codesourcery.com>
4558             Maciej W. Rozycki  <macro@codesourcery.com>
4559             Tom de Vries  <tom@codesourcery.com>
4560             Nathan Sidwell  <nathan@codesourcery.com>
4561             Iain Sandoe  <iain@codesourcery.com>
4562             Nathan Froyd  <froydnj@codesourcery.com>
4563             Chao-ying Fu  <fu@mips.com>
4565         * doc/extend.texi: (micromips, nomicromips, nocompression):
4566         Document new function attributes.
4567         * doc/invoke.texi (minterlink-compressed, mmicromips,
4568         m14k, m14ke, m14kec): Document new options.
4569         (minterlink-mips16): Update documentation.
4570         * doc/md.texi (ZC, ZD): Document new constraints.
4571         * configure.ac (gcc_cv_as_micromips): Check if linker
4572         supports the .set micromips directive.
4573         * configure: Regenerate.
4574         * config.in: Regenerate.
4575         * config/mips/mips-tables.opt: Regenerate.
4576         * config/mips/micromips.md: New file.
4577         * constraints.md (ZC, AD): New constraints.
4578         * config/mips/predicates.md (movep_src_register): New predicate.
4579         (movep_src_operand): New predicate.
4580         (non_volatile_mem_operand): New predicate.
4581         * config/mips/mips.md (multimem): New type.
4582         (length): Differentiate between 17-bit and 18-bit branch offsets.
4583         (MOVEP1, MOVEP2): New mode iterator.
4584         (mov_<load>l): Use ZC constraint.
4585         (mov_<load>r): Likewise.
4586         (mov_<store>l): Likewise.
4587         (mov_<store>r): Likewise.
4588         (*branch_equality<mode>_inverted): Add microMIPS support.
4589         (*branch_equality<mode>): Likewise.
4590         (*jump_absolute): Likewise.
4591         (indirect_jump_<mode>): Likewise.
4592         (tablejump_<mode>): Likewise.
4593         (<optab>_internal): Likewise.
4594         (sibcall_internal): Likewise.
4595         (sibcall_value_internal): Likewise.
4596         (prefetch): Use constraint ZD.
4597         * config/mips/mips.opt (minterlink-compressed): New option.
4598         (minterlink-mips16): Now an alias for minterlink-compressed.
4599         (mmicromips): New option.
4600         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
4601         (compare_and_swap_12): Likewise.
4602         (sync_add<mode>): Likewise.
4603         (sync_<optab>_12): Likewise.
4604         (sync_old_<optab>_12): Likewise.
4605         (sync_new_<optab>_12): Likewise.
4606         (sync_nand_12): Likewise.
4607         (sync_old_nand_12): Likewise.
4608         (sync_new_nand_12): Likewise.
4609         (sync_sub<mode>): Likewise.
4610         (sync_old_add<mode>): Likewise.
4611         (sync_old_sub<mode>): Likewise.
4612         (sync_new_add<mode>): Likewise.
4613         (sync_new_sub<mode>): Likewise.
4614         (sync_<optab><mode>): Likewise.
4615         (sync_old_<optab><mode>): Likewise.
4616         (sync_new_<optab><mode>): Likewise.
4617         (sync_nand<mode>): Likewise.
4618         (sync_old_nand<mode>): Likewise.
4619         (sync_new_nand<mode>): Likewise.
4620         (sync_lock_test_and_set<mode>): Likewise.
4621         (test_and_set_12): Likewise.
4622         (atomic_compare_and_swap<mode>): Likewise.
4623         (atomic_exchange<mode>_llsc): Likewise.
4624         (atomic_fetch_add<mode>_llsc): Likewise.
4625         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
4626         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
4627         (umips_save_restore_pattern_p): Likewise.
4628         (umips_load_store_pair_p): Likewise.
4629         (umips_output_load_store_pair): Likewise.
4630         (umips_movep_target_p): Likewise.
4631         (umips_12bit_offset_address_p): Likewise.
4632         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
4633         (mips_base_mips16): Rename this...
4634         (mips_base_compression_flags): ...to this. Update all uses.
4635         (mips_attribute_table): Add micromips, nomicromips and nocompression.
4636         (mips_mips16_decl_p): Delete.
4637         (mips_nomips16_decl_p): Delete.
4638         (mips_get_compress_on_flags): New function.
4639         (mips_get_compress_off_flags): New function.
4640         (mips_get_compress_mode): New function.
4641         (mips_get_compress_on_name): New function.
4642         (mips_get_compress_off_name): New function.
4643         (mips_insert_attributes): Support multiple compression types.
4644         (mips_merge_decl_attributes): Likewise.
4645         (umips_12bit_offset_address_p): New function.
4646         (mips_start_function_definition): Emit .set micromips directive.
4647         (mips_call_may_need_jalx_p): New function.
4648         (mips_function_ok_for_sibcall): Add microMIPS support.
4649         (mips_print_operand_punctuation): Support short delay slots and
4650         compact jumps.
4651         (umips_swm_mask, umips_swm_encoding): New.
4652         (umips_build_save_restore): New function.
4653         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
4654         (was_mips16_p): Remove.
4655         (old_compression_mode): New.
4656         (mips_set_compression_mode): New function.
4657         (mips_set_current_function): Add microMIPS support.
4658         (mips_option_override): Likewise.
4659         (umips_save_restore_pattern_p): New function.
4660         (umips_output_save_restore): New function.
4661         (umips_load_store_pair_p_1): New function.
4662         (umips_load_store_pair_p): New function.
4663         (umips_output_load_store_pair_1): New function.
4664         (umips_output_load_store_pair): New function.
4665         (umips_movep_target_p) New function.
4666         (mips_prepare_pch_save): Add microMIPS support.
4667         * config/mips/mips.h (TARGET_COMPRESSION): New.
4668         (TARGET_CPU_CPP_BUILTINS): Update macro
4669         to use new compression flags and to support microMIPS.
4670         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
4671         (MIPS_ARCH_FLOAT_SPEC): Likewise.
4672         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
4673         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
4674         (ASM_SPEC): Support mmicromips and mno-micromips.
4675         (M16STORE_REG_P): New macro.
4676         (MIPS_CALL): Support TARGET_MICROMIPS.
4677         (MICROMIPS_J): New macro.
4678         (mips_base_mips16): Rename this...
4679         (mips_base_compression_flags): ...to this.
4680         (UMIPS_12BIT_OFFSET_P): New macro.
4681         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
4682         (MULTILIB_DIRNAMES): Likewise.
4684 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
4686         PR target/52555
4687         * target-globals.c (save_target_globals): For init_reg_sets and
4688         target_reinit remporarily set this_fn_optabs to this_target_optabs.
4690 2013-02-22  James Grennahlgh  <james.greenhalgh@arm.com>
4692         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
4693         * config/aarch64/t-aarch64
4694         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
4696 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
4698         PR inline-asm/56148
4699         * lra-constraints.c (process_alt_operands): Reload operand
4700         conflicting with earlier clobber only if no more other conflicting
4701         operands.
4703 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
4705         PR sanitizer/56393
4706         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
4707         if not linking a shared library.
4709 2013-02-22  Seth LaForge  <sethml@google.com>
4711         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
4713 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
4715         * config/arm/arm.md (split for extendsidi): Update condition.
4716         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
4717         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
4718         (qhs_zextenddi_cstr): Likewise.
4720 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
4722         PR middle-end/56420
4723         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
4724         avoid signed wrapping.
4725         (expand_mult): Handle properly multiplication by
4726         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
4727         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
4728         in the compiler if coeff is HOST_WIDE_INT_MIN.
4729         (expand_divmod): Don't make ext_op1 static, change it's type to
4730         uhwi.  Avoid undefined behavior in -INTVAL (op1).
4732         PR rtl-optimization/50339
4733         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
4734         field.
4735         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
4736         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
4737         into splitting_ashiftrt field.
4738         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
4739         ASHIFTRT.
4740         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
4741         choices.
4743 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
4745         PR middle-end/56108
4746         * trans-mem.c (execute_tm_mark): Do not expand transactions that
4747         are sure to go irrevocable.
4749 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
4751         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
4752         scalars are valid operands.
4754 2013-02-21  Martin Jambor  <mjambor@suse.cz>
4756         PR tree-optimization/56310
4757         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
4758         only matching indices and non-negative final offsets.
4759         (intersect_aggregates_with_edge): Pass src_idx to
4760         agg_replacements_to_vector.  Pass src_idx insstead of index to
4761         intersect_with_agg_replacements.
4763 2013-02-21  Martin Jambor  <mjambor@suse.cz>
4765         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
4766         instead of hard-wired defaults.
4768 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
4770         * doc/invoke.texi (MIPS Options): Update documentation of the
4771         floating-point multiply-accumulate instruction restrictions.
4773 2013-02-21  Kostya Serebryany  <kcc@google.com>
4775         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
4776         asan_shadow_offset on x86_64 linux.
4778 2013-02-21  Richard Biener  <rguenther@suse.de>
4780         PR tree-optimization/56415
4781         Revert
4782         2013-02-11  Richard Biener  <rguenther@suse.de>
4784         PR tree-optimization/56273
4785         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
4786         first VRP run.
4788 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
4790         PR bootstrap/56258
4791         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
4792         instead of @itemx.
4794         PR inline-asm/56405
4795         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
4796         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
4798 2013-02-20  Jan Hubicka  <jh@suse.cz>
4800         PR tree-optimization/56265
4801         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
4802         when target is referenced for first time.
4804 2013-02-20  Richard Biener  <rguenther@suse.de>
4806         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
4807         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
4808         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
4809         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
4810         not return anything.
4811         (rename_ssa_copies): Do not remove unused locals.
4812         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
4813         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
4814         * passes.c (execute_function_todo): Do not schedule unused locals
4815         removal if cleanup_tree_cfg did something.
4816         * tree-ssa-live.c (remove_unused_locals): Dump statistics
4817         about the number of removed locals.
4819 2013-02-20  Richard Biener  <rguenther@suse.de>
4821         PR tree-optimization/56398
4822         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
4824 2013-02-20  Martin Jambor  <mjambor@suse.cz>
4826         PR tree-optimization/55334
4827         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
4828         restricted pointers to arrays.
4830 2013-02-20  Richard Biener  <rguenther@suse.de>
4831             Jakub Jelinek  <jakub@redhat.com>
4833         PR tree-optimization/56396
4834         * tree-ssa-ccp.c (n_const_val): New static variable.
4835         (get_value): Return NULL for SSA names we don't have a lattice
4836         entry for.
4837         (ccp_initialize): Initialize n_const_val.
4838         * tree-ssa-copy.c (n_copy_of): New static variable.
4839         (init_copy_prop): Initialize n_copy_of.
4840         (get_value): Return NULL_TREE for SSA names we don't have a
4841         lattice entry for.
4843 2013-02-20  Martin Jambor  <mjambor@suse.cz>
4845         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
4847 2013-02-20  Richard Biener  <rguenther@suse.de>
4849         * genpreds.c (write_lookup_constraint): Do not compare first
4850         letter of the constraint again.
4852 2013-02-20  Richard Biener  <rguenther@suse.de>
4854         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
4855         and ceil_log2.
4856         (get_use_iv_cost): Terminate hashtable walk when coming across
4857         an empty entry.
4859 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
4861         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
4862         reassociation for avx2 targets.
4864 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
4866         * config/microblaze/microblaze.c: microblaze_has_clz = 0
4867         Add version check for v8.10.a to enable microblaze_has_clz
4868         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
4869         version and TARGET_PATTERN_COMPARE check
4870         * config/microblaze/microblaze.md: New clzsi2 instruction
4872 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
4874         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
4875         function before branching.
4877 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
4879         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
4880         DUMP_INSN_RTX_UID.
4881         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
4883 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
4885         PR middle-end/55889
4886         * sel-sched.c: Include ira.h.
4887         (implicit_clobber_conflict_p): New function.
4888         (moveup_expr): Use it.
4889         * Makefile.in (sel-sched.o): Depend on ira.h.
4891 2013-02-19  Richard Biener  <rguenther@suse.de>
4893         PR tree-optimization/56384
4894         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
4895         (vn_hash_type): Split out from ...
4896         (vn_hash_constant_with_type): ... here.
4897         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
4898         (vn_phi_eq): Compare types from vn_phi_s structure.
4899         (vn_phi_lookup): Populate vn_phi_s type.
4900         (vn_phi_insert): Likewise.
4902 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
4904         PR tree-optimization/56350
4905         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
4906         if haven't found reduction or nested cycle operand, rather than
4907         asserting we must find it.
4909         PR tree-optimization/56381
4910         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
4911         to fold_build3.
4913 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
4914             Jakub Jelinek  <jakub@redhat.com>
4916         PR target/52555
4917         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
4918         (swap_optab_enable): Same.
4919         (init_all_optabs): Use argument instead of global.
4920         * tree.h (struct tree_optimization_option): New field target_optabs.
4921         * expr.h (init_all_optabs): Add argument to prototype.
4922         (TREE_OPTIMIZATION_OPTABS): New.
4923         (save_optabs_if_changed): Protoize.
4924         * optabs.h: Declare this_fn_optabs.
4925         * optabs.c (save_optabs_if_changed): New.
4926         Declare this_fn_optabs.
4927         (init_optabs): Add argument to init_all_optabs() call.
4928         * function.c (invoke_set_current_function_hook): Handle per
4929         function optabs.
4930         * function.h (struct function): New field optabs.
4931         * config/mips/mips.c (mips_set_mips16_mode): Handle when
4932         optimization_current_node has changed.
4933         * target-globals.h (save_target_globals_default_opts): Protoize.
4934         * target-globals.c (save_target_globals_default_opts): New.
4936 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4938         PR target/56347
4939         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
4940         registers %fr12 and %fr12R as call used.
4942         PR target/56214
4943         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
4944         and HImode, require all displacements to be an integer multiple of
4945         their mode size.
4946         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
4947         only allow QImode and HImode when reload is in progress and strict is
4948         true.  Likewise for symbolic addresses.  Use base14_operand to check
4949         displacements in REG+BASE addresses.
4951 2013-02-18  Richard Biener  <rguenther@suse.de>
4953         PR tree-optimization/56366
4954         * tree-vect-loop.c (get_initial_def_for_induction): Properly
4955         handle sign-conversion of outer-loop initial induction value.
4957 2013-02-18  Richard Biener  <rguenther@suse.de>
4959         PR middle-end/56349
4960         * cfghooks.c (merge_blocks): If we merge a latch into another
4961         block adjust references to it.
4962         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
4963         (verify_loop_structure): Verify that a recorded latch is in fact
4964         a latch.
4966 2013-02-18  Richard Biener  <rguenther@suse.de>
4968         PR tree-optimization/56321
4969         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
4970         order SSA name release and virtual operand unlinking.
4972 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
4974         * config/microblaze/microblaze.md (save_stack_block): Define.
4975         (restore_stack_block): Likewise.
4977 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
4979         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
4980         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
4981         * config/microblaze/microblaze.c (microblaze_option_override):
4982         Bail out early for PIC modes when target does not support PIC.
4984 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
4986         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
4987         Replace with a microblaze version.
4988         (microblaze_trampoline_init): Adapt for microblaze.
4989         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
4990         microblaze.
4992 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
4993             Dodji Seketeli  <dodji@redhat.com>
4995         PR asan/56330
4996         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
4997         (instrument_mem_region_access): Do not forget to always put
4998         instrumentation of the of 'base' and 'base + len' in a "if (len !=
4999         0) statement, even for cases where either 'base' or 'base + len'
5000         are not instrumented -- because they have been previously
5001         instrumented.  Simplify the logic by putting all the statements
5002         instrument 'base + len' inside a sequence, and then insert that
5003         sequence right before the current insertion point.  Then, to
5004         instrument 'base + len', just get an iterator on that statement.
5005         And do not forget to update the pointer to iterator the function
5006         received as argument.
5008 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
5010         PR rtl-optimization/56348
5011         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
5013 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
5015         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
5016         (clean_graph_dump_file): Pass base to start_graph_dump.
5018 2013-02-14  Richard Henderson  <rth@redhat.com>
5020         PR target/55941
5021         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
5023 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
5025         * collect2-aix.h: Define F_LOADONLY.
5027 2013-02-14  Richard Biener  <rguenther@suse.de>
5029         PR lto/50494
5030         * varasm.c (output_constant_def_1): Get the decl representing
5031         the constant as argument.
5032         (output_constant_def): Wrap output_constant_def_1.
5033         (make_decl_rtl): Use output_constant_def_1 with the decl
5034         representing the constant.
5035         (build_constant_desc): Optionally re-use a decl already
5036         representing the constant.
5037         (tree_output_constant_def): Adjust.
5039 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
5041         Fix an asan crash
5042         * asan.c (instrument_builtin_call):  Really put the length of the
5043         second source argument into src1_len.
5045 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
5047         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
5048         argument.  If it is false, don't create edge from then_bb to
5049         fallthru_bb.
5050         (insert_if_then_before_iter): Pass true to it.
5051         (build_check_stmt): Pass false to it.
5052         (transform_statements): Flush hash table only on extended basic
5053         block boundaries, rather than at the beginning of every bb.
5054         Don't flush hash table on nonfreeing_call_p calls.
5055         * tree-flow.h (nonfreeing_call_p): New prototype.
5056         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
5058 2013-02-13  David S. Miller  <davem@davemloft.net>
5060         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
5062 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
5064         PR target/56184
5065         * ira.c (max_regno_before_ira): Move from ...
5066         (ira): ... here.
5067         (fix_reg_equiv_init): Use max_regno_before_ira instead of
5068         vec_safe_length.
5070 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
5072         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
5074 2013-02-13  Richard Biener  <rguenther@suse.de>
5076         PR lto/56295
5077         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
5078         globals in MEM_REFs.
5080 2013-02-13  Richard Biener  <rguenther@suse.de>
5082         * loop-init.c (loop_optimizer_init): Clear loop state when
5083         re-initializing preserved loops.
5084         * loop-unswitch.c (unswitch_single_loop): Return whether
5085         we unswitched the loop.  Do not verify loop state here.
5086         (unswitch_loops): When we unswitched a loop discover new loops.
5088 2013-02-13  Kostya Serebryany  <kcc@google.com>
5090         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
5091         on x86_64 linux.
5092         * sanitizer.def: Rename __asan_init to __asan_init_v1.
5094 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
5096         Avoid instrumenting duplicated memory access in the same basic block
5097         * Makefile.in (asan.o): Add new dependency on hash-table.h
5098         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
5099         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
5100         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
5101         (free_mem_ref_resources, has_mem_ref_been_instrumented)
5102         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
5103         (get_mem_ref_of_assignment): New functions.
5104         (get_mem_refs_of_builtin_call): Extract from
5105         instrument_builtin_call and tweak a little bit to make it fit with
5106         the new signature.
5107         (instrument_builtin_call): Use the new
5108         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
5109         of is_gimple_builtin_call.
5110         (instrument_derefs, instrument_mem_region_access): Insert the
5111         instrumented memory reference into the hash table.
5112         (maybe_instrument_assignment): Renamed instrument_assignment into
5113         this, and change it to advance the iterator when instrumentation
5114         actually happened and return true in that case.  This makes it
5115         homogeneous with maybe_instrument_assignment, and thus give a
5116         chance to callers to be more 'regular'.
5117         (transform_statements): Clear the memory reference hash table
5118         whenever we enter a new BB, when we cross a function call, or when
5119         we are done transforming statements.  Use
5120         maybe_instrument_assignment instead of instrumentation.  No more
5121         need to special case maybe_instrument_assignment and advance the
5122         iterator after calling it; it's now handled just like
5123         maybe_instrument_call.  Update comment.
5125 2013-02-13  Richard Biener  <rguenther@suse.de>
5127         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
5128         Fix loop discovery code.
5130 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
5132         PR inline-asm/56148
5133         * lra-constraints.c (process_alt_operands): Match early clobber
5134         operand with itself.  Check conflicts with earlyclobber only if
5135         the operand is not reloaded.  Prefer to reload conflicting operand
5136         if earlyclobber and matching operands are the same.
5138 2013-02-12  Richard Biener  <rguenther@suse.de>
5140         PR lto/56297
5141         * lto-streamer-out.c (write_symbol): Do not output symbols
5142         for hard register variables.
5144 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
5146         PR target/54222
5147         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
5148         (umulsidi3_insn, mulsidi3_insn): New insns.
5150 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
5152         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
5153         (struct tune_params): Add vec_costs field.
5154         * config/arm/arm.c (arm_builtin_vectorization_cost)
5155         (arm_add_stmt_cost): New functions.
5156         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
5157         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
5158         (arm_default_vec_cost): New struct of type cpu_vec_costs.
5159         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
5160         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
5161         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
5162         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
5164 2013-02-12  Richard Biener  <rguenther@suse.de>
5166         PR lto/56295
5167         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
5168         decls again if possible.
5170 2013-02-12  Richard Biener  <rguenther@suse.de>
5172         PR middle-end/56288
5173         * tree-ssa.c (verify_ssa_name): Fix check, move
5174         SSA_NAME_IN_FREE_LIST check up.
5176 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
5177             Steven Bosscher   <steven@gcc.gnu.org>
5179         PR rtl-optimization/56151
5180         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
5181         equal to op0 or op1, and last_insn pattern is CODE operation
5182         with MEM dest and one of the operands matches that MEM.
5184 2013-02-11  Sriraman Tallam  <tmsriramgoogle.com>
5186         * doc/extend.texi: Document Function Multiversioning and "default"
5187         parameter string to target attribute.
5188         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
5189         target attribute parameter is "default".
5190         (ix86_compare_version_priority): Remove checks for target attribute.
5191         (ix86_mangle_function_version_assembler_name): Change error to sorry.
5192         Remove check for target attribute equal to NULL. Add assert.
5193         (ix86_generate_version_dispatcher_body): Change error to sorry.
5195 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
5196             Jack Howarth  <howarth@bromo.med.uc.edu>
5197             Patrick Marlier  <patrick.marlier@gmail.com>
5199         PR libitm/55693
5200         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
5201         define ENDFILE_SPEC as TM_DESTRUCTOR.
5202         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
5204 2013-02-11  Alexander Potapenko  <glider@google.com>
5205             Jack Howarth  <howarth@bromo.med.uc.edu>
5206             Jakub Jelinek  <jakub@redhat.com>
5208         PR sanitizer/55617
5209         * config/darwin.c (cdtor_record): Rename ctor_record.
5210         (sort_cdtor_records): Rename sort_ctor_records.
5211         (finalize_dtors): New routine to sort destructors by
5212         priority before use in assemble_integer.
5213         (machopic_asm_out_destructor): Use finalize_dtors if needed.
5215 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
5217         PR rtl-optimization/56275
5218         * simplify-rtx.c (avoid_constant_pool_reference): Check that
5219         offset is non-negative and less than cmode size before
5220         calling simplify_subreg.
5222 2013-02-11  Richard Biener  <rguenther@suse.de>
5224         PR tree-optimization/56264
5225         * cfgloop.h (fix_loop_structure): Adjust prototype.
5226         * loop-init.c (fix_loop_structure): Return the number of
5227         newly discovered loops.
5228         * tree-cfgcleanup.c (repair_loop_structures): When new loops
5229         are discovered, do a full loop-closed SSA rewrite.
5231 2013-02-11  Richard Biener  <rguenther@suse.de>
5233         PR tree-optimization/56273
5234         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
5235         first VRP run.
5236         (check_array_ref): Fix missing newline in dumps.
5237         (search_for_addr_array): Likewise.
5239 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
5241         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
5243 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
5245         PR target/56256
5246         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
5248 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
5250         PR rtl-optimization/56246
5251         * lra-constraints.c (simplify_operand_subreg): Try to reuse
5252         reload pseudo.
5253         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
5254         constraints are satisfied.
5256 2013-02-08  Jeff Law  <law@redhat.com>
5258         PR debug/53948
5259         * emit-rtl.c (reg_is_parm_p): New function.
5260         * regs.h (reg_is_parm_p): New prototype.
5261         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
5262         callee-clobbered registers.
5264 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
5266         PR target/56043
5267         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
5268         If there is no implicit builtin declaration, just return NULL.
5270 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
5272         * config/i386/sse.md (FMAMODEM): New mode iterator.
5273         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
5274         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
5276 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
5278         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
5279         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
5280         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
5282 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
5284         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
5285         (microblaze*-*-elf): Likewise.
5286         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
5287         LINK_SPEC.
5288         * config/microblaze/microblaze-c.c: Add builtin defines for
5289         _LITTLE_ENDIAN and _BIG_ENDIAN.
5290         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
5291         add to TARGET_DEFAULT flags.
5292         Expand ASM_SPEC and LINK_SPEC.
5293         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
5294         * config/microblaze/microblaze.md: Update extendsidi2 and
5295         movdi_internal instructions to use low-order / high-order reg
5296         print_operands.
5297         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
5298         options and inversemask / mask of LITTLE_ENDIAN.
5299         * config/microblaze/t-microblaze: Expand multilib options to
5300         include mlittle-endian (le) and update exceptions patterns.
5302 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
5304         PR rtl-optimization/56195
5305         * lra-constraints.c (get_reload_reg): Don't reuse regs
5306         if they have smaller mode than requested, if they have
5307         wider mode than requested, try to return a SUBREG.
5309         PR tree-optimization/56250
5310         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
5311         if type is unsigned and code isn't MULT_EXPR.
5313 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
5315         PR tree-optimization/56064
5316         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
5317         bits according to mode.
5318         * fixed-value.h (fixed_from_double_int)
5319         (const_fixed_from_double_int): Adjust comments.
5321 2013-02-08  Richard Biener  <rguenther@suse.de>
5323         PR lto/56231
5324         * lto-streamer.h (struct data_in): Remove current_file, current_line
5325         and current_col members.
5326         * lto-streamer-out.c (lto_output_location): Stream changed bits
5327         en-block for efficiency.
5328         * lto-streamer-in.c (clear_line_info): Remove.
5329         (lto_input_location): Cache current file, line and column
5330         globally via local statics.  Read changed bits en-block.
5331         (input_function): Do not call clear_line_info.
5332         (lto_read_body): Likewise.
5333         (lto_input_toplevel_asms): Likewise.
5335 2013-02-08  Michael Matz  <matz@suse.de>
5337         PR tree-optimization/52448
5338         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
5339         (nt_call_phase): New static.
5340         (add_or_mark_expr): Only mark accesses with newer phase than any
5341         call seen.
5342         (nonfreeing_call_p): New.
5343         (nt_init_block): Update nt_call_phase, mark blocks as visited.
5344         (nt_fini_block): Keep blocks marked as visited.
5345         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
5347 2013-02-08  Richard Biener  <rguenther@suse.de>
5349         * ira.c (ira): Free broken dominator information.
5351 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
5353         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
5355 2013-02-08  Marek Polacek  <polacek@redhat.com>
5357         * cfgloop.c (verify_loop_structure): Add more checking of headers.
5359 2013-02-08  Richard Biener  <rguenther@suse.de>
5361         PR middle-end/56181
5362         * cfgloop.h (flow_loops_find): Adjust.
5363         (bb_loop_header_p): Declare.
5364         * cfgloop.c (bb_loop_header_p): New function split out from ...
5365         (flow_loops_find): ... here.  Adjust function signature,
5366         support incremental loop structure update.
5367         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
5368         * cfgloopmanip.c (fix_loop_structure): Move ...
5369         * loop-init.c (fix_loop_structure): ... here.
5370         (apply_loop_flags): Split out from ...
5371         (loop_optimizer_init): ... here.
5372         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
5373         in incremental mode, only remove dead loops here.
5375 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
5377         PR target/54222
5378         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
5379         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
5380         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
5381         (*round<mode>3.libgcc): New insns for fixed-modes.
5382         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
5383         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
5384         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
5385         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
5386         implementations.  Define to __builtin_avr_absFX,
5387         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
5388         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
5389         __builtin_avr_countlsFX, respectively.
5390         * config/avr/avr-c.c (target.h): Include it.
5391         (enum avr_builtin_id): New enum.
5392         (avr_resolve_overloaded_builtin): New static function.
5393         (avr_register_target_pragmas): Use it to set
5394         targetm.resolve_overloaded_builtin.
5395         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
5396         tree nodes used by DEF_BUILTIN.
5397         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
5398         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
5399         <AVR_BUILTIN_xxBITS>: Same.
5401 2013-02-08  Richard Biener  <rguenther@suse.de>
5403         * cfgloop.c (verify_loop_structure): Properly handle
5404         a loop exiting to another loop header.
5405         * ira-int.h (ira_loops): Remove.
5406         * ira.c (ira_loops): Remove.
5407         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
5408         (do_reload): Use loop_optimizer_finalize.
5409         * ira-build.c (create_loop_tree_nodes): Use get_loops and
5410         number_of_loops to access the loop tree.
5411         (more_one_region_p): Likewise.
5412         (finish_loop_tree_nodes): Likewise.
5413         (rebuild_regno_allocno_maps): Likewise.
5414         (mark_loops_for_removal): Likewise.
5415         (mark_all_loops_for_removal): Likewise.
5416         (remove_unnecessary_regions): Likewise.
5417         (ira_build): Likewise.
5418         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
5420 2013-02-08  Richard Biener  <rguenther@suse.de>
5422         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
5423         * ipa-pure-const.c (analyze_function): Avoid calling
5424         mark_irreducible_loops twice.
5425         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
5427 2013-02-07  David S. Miller  <davem@davemloft.net>
5429         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
5430         on 'reg'.
5431         * var-tracking.c (vt_add_function_parameter): Test the presence of
5432         HAVE_window_save properly and do not remap argument registers when
5433         we have a leaf function.
5435 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
5437         PR bootstrap/56227
5438         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
5439         instead of "ll".
5440         * config/i386/i386.c (ix86_print_operand): Ditto.
5442 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
5444         * lra-constraints.c (process_alt_operands): Fix recently added comment.
5446 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
5448         PR rtl-optimization/56225
5449         * lra-constraints.c (process_alt_operands): Check that reload hard
5450         reg can hold value for strict_low_part.
5452 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
5454         PR debug/56154
5455         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
5456         dwarf2out_end_function.
5457         (in_first_function_p, maybe_at_text_label_p,
5458         first_loclabel_num_not_at_text_label): New variables.
5459         (dwarf2out_var_location): In the first function find out
5460         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
5461         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
5462         functions.
5464 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
5466         PR rtl-optimization/56178
5467         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
5468         SUBREG of a register.  Tidy up related block of code.
5469         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
5470         note if the source is a register or a SUBREG of a register.
5472 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
5474         PR target/56228
5475         * config/rs6000/rs6000.md (ptrm): New mode attr.
5476         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
5477         call_value_indirect_aix<pttrsize>,
5478         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
5479         m in constraints.
5481 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
5483         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
5484         if -bnortl. Convert to strcmp and strncmp.
5486 2013-02-07  Alan Modra  <amodra@gmail.com>
5488         PR target/54009
5489         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
5490         addresses won't wrap when offsetting.
5491         (rs6000_secondary_reload): Provide secondary reloads needed for
5492         wrapping LO_SUM addresses.
5494 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
5496         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
5497         MACH, just __MACH__.
5499 2013-02-06  Richard Biener  <rguenther@suse.de>
5501         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
5502         instead of calling fix_loop_structure.
5504 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
5506         PR middle-end/56217
5507         * omp-low.c (use_pointer_for_field): Return false if
5508         lower_send_shared_vars doesn't generate any copy-out code.
5510 2013-02-06  Tom de Vries  <tom@codesourcery.com>
5512         PR rtl-optimization/56131
5513         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
5514         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
5515         of the label is NULL.  Add comment.
5517 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
5519         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
5521         PR sanitizer/55374
5522         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
5523         (STATIC_LIBTSAN_LIBS): Likewise.
5524         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
5525         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
5526         is defined, don't add anything else beyond that.
5527         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
5528         (LINK_COMMAND_SPEC): Use them.
5530         PR tree-optimization/56205
5531         * tree-stdarg.c (check_all_va_list_escapes): Return true if
5532         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
5533         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
5535 2013-02-05  Richard Biener  <rguenther@suse.de>
5537         PR tree-optimization/53342
5538         PR tree-optimization/53185
5539         * tree-vectorizer.h (vect_check_strided_load): Remove.
5540         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
5541         not disallow peeling for vectorized strided loads.
5542         (vect_check_strided_load): Make static and simplify.
5543         (vect_analyze_data_refs): Adjust.
5544         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
5545         correctly when vectorizing strided loads.
5547 2013-02-05  Richard Biener  <rguenther@suse.de>
5549         * doc/install.texi: Refer to ISL, not PPL.
5551 2013-02-05  Jan Hubicka  <jh@suse.cz>
5553         PR tree-optimization/55789
5554         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
5556 2013-02-05  Jan Hubicka  <jh@suse.cz>
5558         PR tree-optimization/55789
5559         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
5560         the dead call anyway.
5562 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
5564         PR sanitizer/55374
5565         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
5567 2013-02-04  Alexander Potapenko  <glider@google.com>
5568             Jack Howarth  <howarth@bromo.med.uc.edu>
5569             Jakub Jelinek  <jakub@redhat.com>
5571         PR sanitizer/55617
5572         * config/darwin.c (sort_ctor_records): Stabilized qsort
5573         on constructor priority by using original position.
5574         (finalize_ctors): New routine to sort constructors by
5575         priority before use in assemble_integer.
5576         (machopic_asm_out_constructor): Use finalize_ctors if needed.
5578 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
5580         PR libstdc++/54314
5581         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
5582         about visibility on artificial decls.
5583         * config/sol2.c (solaris_assemble_visibility): Likewise.
5585 2013-02-04  Kai Tietz  <ktietz@redhat.com>
5587         PR target/56186
5588         * config/i386/i386.c (function_value_ms_64): Add additional valtype
5589         argument and improve checking of return-argument types for 16-byte
5590         modes.
5591         (ix86_function_value_1): Add additional valtype argument on call
5592         of function_value_64.
5593         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
5594         handling infunction_value_64 function.
5596 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
5598         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
5600 2013-02-04  Richard Biener  <rguenther@suse.de>
5602         PR tree-optimization/56188
5603         * tree-ssa-structalias.c (label_visit): Consider case with
5604         initially non-empty points-to set.
5605         (perform_var_substitution): Dump node mapping and clean up.
5607 2013-02-04  Richard Guenther  <rguenther@suse.de>
5609         PR lto/56168
5610         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
5611         node prevail as last resort.
5612         (lto_symtab_merge_decls): Remove guard on LTRANS here.
5613         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
5615 2013-02-04  Richard Biener  <rguenther@suse.de>
5617         PR tree-optimization/56113
5618         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
5619         Merge into ...
5620         (equiv_class_lookup_or_add): ... this.
5621         (label_visit): Adjust and fix error in previous patch.
5622         (perform_var_substitution): Adjust.
5624 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
5626         * config/sh/divtab.c: Fix formatting and comments throughout the file.
5627         * config/sh/sh4-300.md: Likewise.
5628         * config/sh/sh4a.md: Likewise.
5629         * config/sh/constraints.md: Likewise.
5630         * config/sh/sh.md: Likewise.
5631         * config/sh/netbsd-elf.h: Likewise.
5632         * config/sh/predicates.md: Likewise.
5633         * config/sh/sh-protos.h: Likewise.
5634         * config/sh/ushmedia.h: Likewise.
5635         * config/sh/linux.h: Likewise.
5636         * config/sh/sh.c: Likewise.
5637         * config/sh/superh.h: Likewise.
5638         * config/sh/elf.h: Likewise.
5639         * config/sh/sh4.md: Likewise.
5640         * config/sh/sh.h: Likewise.
5642 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5644         * config/pa/constraints.md: Adjust unused letters.  Change "T"
5645         constraint to match_test floating_point_store_memory_operand().
5646         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
5647         (base14_operand): New.
5648         (floating_point_store_memory_operand): New.
5649         (integer_store_memory_operand): Revise to use base14_operand and
5650         reg_plus_base_memory_operand.
5651         (move_dest_operand): Allow symbolic_memory_operands.
5652         (symbolic_memory_operand): Check for LO_SOM.
5653         (symbolic_operand): Change default case to break.
5654         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
5655         CONST_DOUBLE values to be reloaded by putting them into memory when
5656         the destination is a floating point register.
5657         (movdf): Remove code to handle CONST_DOUBLE.
5658         (movsf): Likewise.
5659         (reload_indf_r1): New.
5660         (reload_insf_r1): New.
5661         Consistently use "Q" and "T" constraints with integer and floating
5662         point move instructions, respectively.
5663         (movdi): Remove FAIL.
5664         Change predicate for source operand unamed DImode move from
5665         general_operand to move_src_operand.
5666         (umulsidi3): Change predicate for destination operand to
5667         register_operand.
5668         Likewise for similar unamed patterns.
5669         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
5670         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
5671         (hppa_legitimize_address): Simplify mask calculation.
5672         (pa_emit_move_sequence): Revised handling of secondary reloads from
5673         REG+D addresses for floating point loads and stores.  Directly handle
5674         loading CONST0_RTX (mode) to a floating point register.
5675         (pa_secondary_reload): Handle reloading DF and SFmode constant values
5676         to floating point registers.  Don't restrict secondary reloads to
5677         floating point registers to integer modes.  Revise some comments and
5678         cleanup some code.
5679         (TARGET_LEGITIMATE_ADDRESS_P): Define.
5680         (pa_legitimate_address_p): New.
5681         (pa_legitimize_reload_address): New.
5682         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
5683         (STRICT_REG_OK_FOR_BASE_P): New.
5684         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
5685         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
5687 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
5688             Andrew Dixie  <andrewd@gentrack.com>
5690         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
5691         flag set.
5693 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
5695         * expmed.c (extract_bit_field_1): Pass the full width of the
5696         structure to get_best_reg_extraction_insn.
5698 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
5700         PR target/54601
5701         * configure.ac (use_cxa_atexit): Add AIX.
5702         * configure: Regenerate.
5704         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
5706 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
5708         PR debug/54793
5709         * final.c (need_profile_function): New variable.
5710         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
5711         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
5712         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
5713         notes, targetm.asm_out.function_prologue doesn't emit anything,
5714         HAVE_prologue and profiler should be emitted before prologue,
5715         set need_profile_function instead of emitting it.
5716         (final_scan_insn): If need_profile_function, emit
5717         profile_function on the first NOTE_INSN_BASIC_BLOCK or
5718         NOTE_INSN_FUNCTION_BEG note.
5720 2013-02-01  Richard Henderson  <rth@redhat.com>
5722         * config/rs6000/rs6000.md (smulditi3): New.
5723         (umulditi3): New.
5725         * config/alpha/alpha.md (umulditi3): New.
5727 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
5729         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
5730         (ASM_OUTPUT_ALIGNED_LOCAL): New.
5732 2013-02-01  Richard Biener  <rguenther@suse.de>
5734         PR tree-optimization/56113
5735         * tree-ssa-structalias.c (label_visit): Reduce work for
5736         single-predecessor nodes.
5738 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
5740         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
5741         range isn't testing for zero.
5743 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
5745         PR middle-end/56113
5746         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
5748 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
5749             Nick Clifton  <nickc@redhat.com>
5751         * config/v850/constraints.md (Q): Define as a memory constraint.
5752         * config/v850/predicates.md (label_ref_operand): New predicate.
5753         (e3v5_shift_operand): New predicate.
5754         (ior_operator): New predicate.
5755         * config/v850/t-v850: Add e3v5 multilib.
5756         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
5757         (v850_gen_movdi): Prototype.
5758         * config/v850/v850.c: Add support for e3v5 architecture.
5759         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
5760         TARGET_V850E_UP.
5761         (construct_save_jarl): Add e3v5 long JARL support.
5762         (v850_adjust_insn_length): New function.  Adjust length of call
5763         insns when using e3v5 instructions.
5764         (v850_gen_movdi): New function: Generate instructions to move a
5765         DImode value.
5766         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
5767         (CPP_SPEC): Define __v850e3v5__ as appropriate.
5768         (TARGET_USE_FPU): Enable for e3v5.
5769         (CONST_OK_FOR_W): New macro.
5770         (ADJUST_INSN_LENGTH): Define.
5771         * config/v850/v850.md (UNSPEC_LOOP): Define.
5772         (attr cpu): Add v850e3v5.
5773         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
5774         (movdi): New pattern.
5775         (movdi_internal): New pattern.
5776         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
5777         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
5778         (cstoresf4): Likewise.
5779         (cstoredf4): Likewise.
5780         (insv): New pattern.
5781         (rotlso3_a): New pattern.
5782         (rotlsi3_b): New pattern
5783         (rotlsi3_v850e3v5): New pattern.
5784         (doloop_begin): New pattern.
5785         (fix_loop_counter): New pattern.
5786         (doloop_end): New pattern.
5787         (branch_normal): Add e3v5 long branch support.
5788         (branch_invert): Likewise.
5789         (branch_z_normal): Likewise.
5790         (branch_z_invert): Likewise.
5791         (branch_nz_normal): Likewise.
5792         (branch_nz_invert): Likewise.
5793         (call_internal_short): Add e3v5 register-indirect JARL support.
5794         (call_internal_long): Likewise.
5795         (call_value_internal_short): Likewise.
5796         (call_value_internal_long): Likewise.
5797         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
5798         (mloop): New option.
5799         * config.gcc: Add support for configuring v840e3v5 target.
5800         * doc/invoke.texi: Document new v850 specific command line options.
5802 2013-01-31  Paul Koning  <ni1d@arrl.net>
5804         PR debug/55059
5805         PR debug/54508
5806         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
5807         children if parent is a class.
5808         (prune_unused_types_prune): Don't add DW_AT_declaration.
5810 2013-01-31  Richard Biener  <rguenther@suse.de>
5812         PR tree-optimization/56157
5813         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
5814         match up operand with SLP child.
5816 2013-01-31  Jason Merrill  <jason@redhat.com>
5818         PR debug/54410
5819         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
5820         parameters the first time.
5821         (gen_scheduled_generic_parms_dies): Check completeness here.
5823 2013-01-31  Richard Biener  <rguenther@suse.de>
5825         PR middle-end/53073
5826         * common.opt (faggressive-loop-optimizations): New flag,
5827         enabled by default.
5828         * doc/invoke.texi (faggressive-loop-optimizations): Document.
5829         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
5830         infer_loop_bounds_from_undefined by it.
5832 2013-01-31  Richard Biener  <rguenther@suse.de>
5834         PR tree-optimization/56150
5835         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
5836         visit virtual operands.
5837         (find_uses_to_rename_bb): Likewise.
5839 2013-01-31  Richard Biener  <rguenther@suse.de>
5841         PR tree-optimization/56150
5842         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
5843         mixed store non-store stmts.
5845 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
5847         PR sanitizer/55374
5848         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
5849         LIBASAN_EARLY_SPEC is defined.
5850         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
5851         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
5852         before %o.
5853         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
5855         PR c++/55742
5856         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
5857         invalid args instead of ICEing on it.
5858         (ix86_valid_target_attribute_tree): Return error_mark_node if
5859         ix86_valid_target_attribute_inner_p failed.
5860         (ix86_valid_target_attribute_p): Return false only if
5861         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
5862         target("default") attribute.
5863         (sorted_attr_string): Change argument from const char * to tree,
5864         merge in all target attribute arguments rather than just one.
5865         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
5866         instead of free.  Avoid using strcat.
5867         (ix86_mangle_function_version_assembler_name): Mangle
5868         target("default") as if no target attribute is present.  Adjust
5869         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
5870         instead of xmalloc and XDELETEVEC instead of free.
5871         (ix86_function_versions): Don't return true if one of the decls
5872         doesn't have target attribute.  If they don't and one of the decls
5873         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
5874         sorted_attr_string caller.  Use XDELETEVEC instead of free.
5875         (ix86_supports_function_versions): Remove.
5876         (make_name): Fix up formatting.
5877         (make_dispatcher_decl): Remove resolver_name and its initialization.
5878         Avoid leaking memory.
5879         (is_function_default_version): Return true if there is
5880         target("default") attribute rather than no target attribute at all.
5881         (make_resolver_func): Avoid leaking memory.
5882         (ix86_generate_version_dispatcher_body): Likewise.
5883         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
5884         * target.def (supports_function_versions): Remove.
5885         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
5886         * doc/tm.texi: Regenerated.
5888 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
5890         PR rtl-optimization/56144
5891         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
5892         for values with side effects.
5894 2013-01-30  Richard Biener  <rguenther@suse.de>
5896         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
5897         (sparseset_pop): Likewise.
5898         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
5899         to be able to use quick_push in the worker loop.
5901 2013-01-30  Marek Polacek  <polacek@redhat.com>
5903         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
5905 2013-01-30  Richard Biener  <rguenther@suse.de>
5907         PR lto/56147
5908         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
5910 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
5912         PR tree-optimization/56064
5913         * fixed-value.c (fixed_from_double_int): New function.
5914         * fixed-value.h (fixed_from_double_int): New prototype.
5915         (const_fixed_from_double_int): New static inline function.
5916         * fold-const.c (native_interpret_fixed): New static function.
5917         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
5918         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
5919         (native_encode_fixed): New static function.
5920         (native_encode_expr) <FIXED_CST>: Use it.
5921         (native_interpret_int): Move double_int worker code to...
5922         * double-int.c (double_int::from_buffer): ...this new static method.
5923         * double-int.h (double_int::from_buffer): Prototype it.
5925 2013-01-30  Richard Biener  <rguenther@suse.de>
5927         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
5928         New pointer-map and obstack.
5929         (init_alias_vars): Allocate pointer-map and obstack.
5930         (delete_points_to_sets): Free them.
5931         (find_what_var_points_to): Cache result.
5932         (find_what_p_points_to): Adjust for changed interface of
5933         find_what_var_points_to.
5934         (compute_points_to_sets): Likewise.
5935         (ipa_pta_execute): Likewise.
5937 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5939         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
5940         * configure: Regenerate.
5941         * config.in: Regenerate.
5942         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
5943         #nobits/#progbits if supported.
5945 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
5947         PR target/56121
5948         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
5949         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
5950         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
5952 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
5954         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
5955         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
5957 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
5959         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
5960         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
5962 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
5964         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
5965         declaration.
5966         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
5967         * config/arm/cortex-a7.md: New bypasses using
5968         arm_mac_accumulator_is_result.
5970 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
5972         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
5973         (cortex_a7_neon_mla): Likewise.
5974         (cortex_a7_fpfmad): New reservation.
5975         (cortex_a7_fpmacs): Use ffmas and update required units.
5976         (cortex_a7_fpmuld): Update required units and latency.
5977         (cortex_a7_fpmacd): Likewise.
5978         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
5979         (cortex_a7_neon). Likewise.
5980         (bypass) Update participating units.
5982 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
5984         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
5985         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
5986         from fmac to ffma.
5987         * config/arm/vfp11.md (vfp_farith): Use ffmas.
5988         (vfp_fmul): Use ffmad.
5989         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
5990         (cortex_r4_fmacd): Use ffmad.
5991         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
5992         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
5993         (cortex_a9_fmacd): Use ffmad.
5994         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
5995         (cortex_a8_vfp_macd): Use ffmad.
5996         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
5997         (cortex_a5_fpmacd): Use ffmad.
5998         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
5999         (cortex_a15_vfp_macd): Use ffmad.
6000         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
6002 2013-01-29  Jason Merrill  <jason@redhat.com>
6004         PR libstdc++/54314
6005         * varasm.c (default_assemble_visibility): Don't warn about
6006         visibility on artificial decls.
6008 2013-01-29  Richard Biener  <rguenther@suse.de>
6010         PR tree-optimization/56113
6011         * tree-ssa-structalias.c (equiv_class_lookup): Also return
6012         the bitmap leader.
6013         (label_visit): Free duplicate bitmaps and record the leader instead.
6014         (perform_var_substitution): Adjust.
6016 2013-01-29  Richard Biener  <rguenther@suse.de>
6018         PR tree-optimization/55270
6019         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
6020         the CFG, schedule loops for fixup.
6022 2013-01-29  Nick Clifton  <nickc@redhat.com>
6024         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
6025         SP_REG.
6027 2013-01-28  Leif Ekblad  <leif@rdos.net>
6029         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
6030         * config/i386/i386.h (TARGET_RDOS): New macro.
6031         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
6032         * config/i386/i386.c (ix86_option_override_internal): For 64bit
6033         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
6034         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
6035         DEFAULT_LARGE_SECTION_THRESHOLD.
6036         * config/i386/i386.md (R14_REG, R15_REG): New constants.
6037         * config/i386/rdos.h: New file.
6038         * config/i386/rdos64.h: New file.
6040 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
6042         PR other/54814
6043         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
6044         TEST_HARD_REG_BIT.
6046 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
6048         PR rtl-optimization/56117
6049         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
6050         call cselib_lookup_from_insn on the MEM before calling
6051         add_insn_mem_dependence.
6053 2013-01-28  Richard Biener  <rguenther@suse.de>
6055         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
6056         to a stmt that didn't have one.
6057         (copy_phis_for_bb): Likewise for PHI arguments.
6058         (copy_debug_stmt): Likewise for debug stmts.
6060 2013-01-28  Richard Biener  <rguenther@suse.de>
6062         PR tree-optimization/56034
6063         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
6064         (partition_builtin_p): Adjust.
6065         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
6066         it is the last partition.
6067         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
6068         up the vertex for the definition.
6069         (classify_partition): Classify whether a partition is a
6070         PKIND_REDUCTION, thus has uses outside of the loop.
6071         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
6072         Merge all PKIND_REDUCTION partitions into the last partition.
6073         (tree_loop_distribution): Seed partitions from reductions as well.
6075 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
6077         PR tree-optimization/56125
6078         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
6079         pow(x,c) into sqrt(x) * powi(x, n/2) or
6080         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
6081         optimizing for size.
6082         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
6083         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
6084         integer.
6086         PR tree-optimization/56094
6087         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
6088         to UNKNOWN_LOCATION while gimplifying expr.
6090 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
6092         PR target/56114
6093         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
6094         operand 0 in movabs insn template for -masm=intel asm alternative.
6095         (*movabs<mode>_2): Ditto for operand 1.
6097 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
6099         PR target/54663
6100         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
6101         of microblaze-c.o
6103 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
6105         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
6106         tm_file.
6108 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6110         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
6111         Undef to avoid warning.
6113 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
6115         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
6116         * configure: Regenerate.
6118 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
6120         PR tree-optimization/56098
6121         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
6122         for stmts with volatile ops.
6123         (cond_store_replacement): Don't optimize if assign has volatile ops.
6124         (cond_if_else_store_replacement_1): Don't optimize if either
6125         then_assign or else_assign have volatile ops.
6126         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
6127         volatile ops.
6129 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
6131         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
6133 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
6135         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
6136         missing ':' in asm example.
6138 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
6140         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
6141         entries into lane and laneq entries.
6142         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
6143         Remove AdvSIMD scalar modes.
6144         (aarch64_sq<r>dmulh_laneq<mode>): New.
6145         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
6146         modes.
6147         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
6148         builtin implementations to relfect changes in RTL in aarch64-simd.md.
6149         * config/aarch64/iterators.md (VCOND): New.
6150         (VCONQ): New.
6152 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
6154         PR target/54222
6155         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
6156         Add NULL LIBNAME argument to existing definitions.
6157         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
6158         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
6159         * config/avr/avr.c (DEF_BUILTIN): Same.
6160         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
6161         (avr_expand_builtin): Expand to a vanilla call if a libgcc
6162         implementation is available (DECL_ASSEMBLER_NAME is set).
6163         (avr_fold_absfx): New static function.
6164         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
6165         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
6166         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
6167         AVR_BUILTIN_ABSLLK.
6168         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
6169         (abshk, absk, abslk, absllk): Provide as static inline functions.
6171 2013-01-25  Marek Polacek  <polacek@redhat.com>
6173         PR tree-optimization/56035
6174         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
6176 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
6178         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
6179         (*movtf_internal_rex64): Add (!o,C) alternative
6180         (*movxf_internal_rex64): Ditto.
6181         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
6183 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
6185         * doc/invoke.texi: fix typo.
6186         * doc/objc.texi: fix typo.
6188 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
6190         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
6191         for the first two alternatives.
6193 2013-01-24  Diego Novillo  <dnovillo@google.com>
6195         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
6196         (ggc-zone.o): Remove.
6197         * configure.ac: Remove option --with-gc.
6198         * configure: Re-generate.
6199         * doc/install.texi: Remove documentation for --with-gc.
6200         * gengtype.c (write_enum_defn): Remove.  Update all users.
6201         (write_Types_process_field): Remove generation of gt_e_* argument.
6202         (output_type_enum): Remove.  Update all users.
6203         (write_enum_defn): Remove.  Update all users.
6204         (enum alloc_zone): Remove.  Update all users.
6205         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
6206         * ggc-common.c (ggc_splay_alloc): Remove first argument.
6207         Update all callers.
6208         (struct ptr_data): Remove field TYPE.  Update all users.
6209         (gt_pch_note_object): Remove argument TYPE.  Update all users.
6210         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
6211         Update all users.
6212         * ggc-none.c (ggc_alloc_typed_stat): Remove.
6213         (struct alloc_zone): Remove.
6214         (ggc_internal_alloc_zone_stat): Remove.
6215         (ggc_internal_cleared_alloc_zone_stat): Remove.
6216         * ggc-page.c (ggc_alloc_typed_stat): Remove.
6217         (ggc_pch_count_object): Remove last argument.  Update all users.
6218         (ggc_pch_alloc_object): Remove last argument.  Update all users.
6219         (struct alloc_zone): Remove.
6220         * ggc-zone.c: Remove.
6221         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
6222         (struct alloc_zone): Remove.
6223         (ggc_alloc_typed_stat): Remove.
6224         (ggc_alloc_typed): Remove.
6225         (ggc_splay_alloc): Remove first argument.
6226         (rtl_zone): Remove.  Update all users.
6227         (tree_zone): Remove.  Update all users.
6228         (tree_id_zone): Remove.  Update all users.
6229         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
6230         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
6231         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
6232         * tree-ssanames.c: Remove references to zone allocator in comments.
6234 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
6236         * config/avr/avr.c (avr_out_fract): Make register numbers that
6237         might be outside of source operand signed.
6239 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
6241         * config/i386/constraints.md (Yf): New constraint.
6242         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
6243         of f constraint to conditionaly disable x87 register preferences.
6244         (*movdf_internal): Ditto.
6245         (*movsf_internal): Ditto.
6247 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
6249         PR inline-asm/55934
6250         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
6251         that have operands with impossible constraints.
6252         Add a FIXME for a speed-up opportunity.
6253         * lra-constraints.c (process_alt_operands): Verify that a class
6254         selected from constraints on asms is valid for the operand mode.
6255         (curr_insn_transform): Remove incorrect comment.
6257 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
6259         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
6260         TOC operand is a valid symbol ref in the constant pool.
6262 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
6264         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
6266 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
6268         PR target/54222
6269         * config/avr/stdfix.h: New file.
6270         * t-avr (stdfix-gcc.h): New rule to build it.
6271         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
6273 2013-01-23  Kostya Serebryany  <kcc@google.com>
6275         * config/darwin.h: remove dependency on
6276         CoreFoundation (asan on Mac OS).
6278 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
6280         PR target/49069
6281         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
6282         instead of cmpdi_operand for first comparison operand.
6283         Don't assert that comparison operands aren't both constants.
6285 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
6287         * doc/install.texi (Downloading the Source): Update references to
6288         downloading separate components.
6290 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
6292         * doc/extend.texi (__int128): Improve grammar.
6294 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
6296         PR target/56028
6297         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
6298         alternative to (o,r).
6299         (*movdi_internal_rex64): Remove (!o,n) alternative.
6300         (DImode immediate->memory splitter): Remove.
6301         (DImode immediate->memory peephole2): Remove.
6302         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
6303         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
6304         alternative to (!o,*r).
6305         (*movtf_internal_sse): New pattern.
6306         (*movxf_internal_rex64): New pattern.
6307         (*movxf_internal): Disable for TARGET_64BIT.
6308         (*movdf_internal_rex64): Remove (!o,F) alternative.
6310 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
6312         PR middle-end/56074
6313         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
6314         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
6315         * tree-vect-loop-manip.c (find_loop_location): Also ignore
6316         stmt locations where LOCATION_LOCUS of the stmt location is
6317         UNKNOWN_LOCATION or BUILTINS_LOCATION.
6319         PR target/55686
6320         * config/i386/i386.md (UNSPEC_STOS): New.
6321         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
6322         *strsetqi_1): Add UNSPEC_STOS.
6324 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
6326         PR c++/56067
6327         * doc/invoke.texi: Remove left over -Wsynth example.
6329 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
6331         PR tree-optimization/56051
6332         * fold-const.c (fold_binary_loc): Don't fold
6333         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
6334         a narrowing conversion, or widening conversion from signed
6335         to unsigned.
6337 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
6339         PR rtl-optimization/56023
6340         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
6341         dependent on debug instruction.
6343 2013-01-21  Martin Jambor  <mjambor@suse.cz>
6345         PR middle-end/56022
6346         * function.c (allocate_struct_function): Call
6347         invoke_set_current_function_hook earlier.
6349 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
6351         * reload1.c (init_reload): Only initialize reload_obstack
6352         during the first call.
6354 2013-01-21  Marek Polacek  <polacek@redhat.com>
6356         * cfgloop.c (verify_loop_structure): Fix up grammar.
6358 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
6360         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
6361         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
6363 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6365         PR target/56058
6366         * config/arm/marvell-pj4.md: Update copyright year.
6367         Fix up use of alu to alu_reg and simple_alu_imm.
6369 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
6371         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
6373 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
6375         PR target/55433
6376         * lra-constraints.c (curr_insn_transform): Don't reuse original
6377         insn for secondary memory move when memory mode should be different.
6379 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6381         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
6382         atomic_storedi_1): New patterns.
6384 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
6386         btver2 pipeline descriptions.
6387         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
6388         descriptions.
6389         * config/i386/i386.md (btver2_decode): New type attributes.
6390         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
6391         type attributes.
6392         * config/i386/btver2.md: New file describing btver2 pipelines.
6394 2013-01-19  Andrew Pinski  <apinski@cavium.com>
6396         PR tree-optimization/52631
6397         * tree-ssa-sccvn (visit_use): Before looking up the original
6398         statement, try looking up the simplified expression.
6400 2013-01-19  Anthony Green  <green@moxielogic.com>
6402         * config/moxie/moxie.c (moxie_expand_prologue): Set
6403         current_function_static_stack_size.
6405 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
6407         PR tree-optimization/56029
6408         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
6409         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
6411 2013-01-18  Sharad Singhai  <singhai@google.com>
6413         PR tree-optimization/55995
6414         * dumpfile.c (dump_loc): Print location only if available.
6415         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
6417 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
6419         PR target/55433
6420         * lra-constraints.c (curr_insn_transform): Reuse original insn for
6421         secondary memory move.
6422         (inherit_reload_reg): Use rclass instead of cl for
6423         check_secondary_memory_needed_p.
6425 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
6427         PR middle-end/56015
6428         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
6429         the case where writing real complex part of target modifies op1.
6431 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
6433         * config/aarch64/aarch64-simd.md
6434         (aarch64_vcond_internal<mode>): Handle unordered cases.
6435         * config/aarch64/iterators.md (v_cmp_result): New.
6437 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
6438             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6440         * config/arm/marvell-pj4.md: New file.
6441         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
6442         * config/arm/arm.md (generic_sched): Add marvell_pj4.
6443         (generic_vfp): Likewise.
6444         * config/arm/arm-cores.def: Add marvell-pj4.
6445         * config/arm/arm-tune.md: Regenerate.
6446         * config/arm/arm-tables.opt: Regenerate.
6447         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
6448         * doc/invoke.texi: Document marvell-pj4.
6450 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
6452         * config/aarch64/arm_neon.h: Map scalar types to standard types.
6454 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
6456         PR debug/54114
6457         PR debug/54402
6458         PR debug/49888
6459         * var-tracking.c (negative_power_of_two_p): New.
6460         (global_get_addr_cache, local_get_addr_cache): New.
6461         (get_addr_from_global_cache, get_addr_from_local_cache): New.
6462         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
6463         heading comment.
6464         (vt_stack_offset_p): Remove.
6465         (vt_canon_true_dep): Always canonicalize loc's address.
6466         (clobber_overlapping_mems): Make sure we have a MEM.
6467         (local_get_addr_clear_given_value): New.
6468         (val_reset): Clear local cached entries.
6469         (compute_bb_dataflow): Create and release the local cache.
6470         Disable duplicate MEMs clobbering.
6471         (emit_notes_in_bb): Clobber MEMs likewise.
6472         (vt_emit_notes): Create and release the local cache.
6473         (vt_initialize, vt_finalize): Create and release the global
6474         cache, respectively.
6475         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
6477 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
6479         PR libmudflap/53359
6480         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
6481         not found in the symtab.
6483 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
6485         PR debug/56006
6486         PR rtl-optimization/55547
6487         PR rtl-optimization/53827
6488         PR debug/53671
6489         PR debug/49888
6490         * alias.c (offset_overlap_p): New, factored out of...
6491         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
6492         the conservative special case for symbolic constants.  Don't
6493         adjust zero sizes on alignment.
6495 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
6497         PR rtl-optimization/52573
6498         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
6499         REG_UNUSED for the same register.
6501 2013-01-17  Richard Biener  <rguenther@suse.de>
6502             Marek Polacek  <polacek@redhat.com>
6504         PR rtl-optimization/55833
6505         * loop-unswitch.c (unswitch_loops): Move loop verification...
6506         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
6507         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
6508         Set it to true when we're removing a loop from hierarchy tree in
6509         an irreducible region.
6510         (fix_bb_placements): Adjust caller.
6511         (fix_loop_placements): Likewise.
6513 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
6515         * config/avr/builtins.def (DEF_BUILTIN): Factor out
6516         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
6517         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
6518         Remove ID.  Adjust comments.
6519         * config/avr/avr-c.c (avr_builtin_name): Remove.
6520         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
6521         * config/avr/avr.c (avr_tolower): New static function.
6522         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
6523         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
6524         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
6525         default expansion.
6527 2013-01-17  Jan Hubicka  <jh@suse.cz>
6529         PR tree-optimization/55273
6530         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
6532 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
6534         PR target/55981
6535         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
6536         store through atomic_store<mode>_1.
6537         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
6539 2013-01-17  Martin Jambor  <mjambor@suse.cz>
6541         PR tree-optimizations/55264
6542         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
6543         for virtual methods.
6544         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
6545         virtual methods before inlining is over.
6546         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
6547         virtual functions.
6548         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
6549         non-virtual.
6551 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
6553         PR rtl-optimization/56005
6554         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
6555         pending reads for prefetch.
6557 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
6559         * config/aarch64/aarch64.md
6560         (*cstoresi_neg_uxtw): New pattern.
6561         (*cmovsi_insn_uxtw): New pattern.
6562         (*<optab>si3_uxtw): New pattern.
6563         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
6564         (*<optab>si3_insn_uxtw): New pattern.
6565         (*bswapsi2_uxtw): New pattern.
6567 2013-01-16  Richard Biener  <rguenther@suse.de>
6569         * tree-inline.c (tree_function_versioning): Remove set but
6570         never used variable.
6572 2013-01-16  Richard Biener  <rguenther@suse.de>
6574         PR tree-optimization/55964
6575         * tree-flow.h (rename_variables_in_loop): Remove.
6576         (rename_variables_in_bb): Likewise.
6577         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
6578         (copy_loop_before): Adjust and delete update-ssa status.
6579         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
6580         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
6581         (rename_variables_in_loop): Remove.
6582         (slpeel_update_phis_for_duplicate_loop): Likewise.
6583         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
6584         use available cfg machinery instead of duplicating it.
6585         Update PHI nodes and perform poor-mans SSA update here.
6586         (slpeel_tree_peel_loop_to_edge): Adjust.
6588 2013-01-16  Richard Biener  <rguenther@suse.de>
6590         PR tree-optimization/54767
6591         PR tree-optimization/53465
6592         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
6593         (vrp_visit_phi_node): For PHI arguments coming via backedges
6594         drop all symbolical range information.
6595         (execute_vrp): Compute backedges.
6597 2013-01-16  Richard Biener  <rguenther@suse.de>
6599         * doc/install.texi: Update CLooG and ISL requirements to
6600         0.18.0 and 0.11.1.
6602 2013-01-16  Christian Bruel  <christian.bruel@st.com>
6604         PR target/55301
6605         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
6606         (broken_move): Handle UNSPECV_SP_SWITCH_B.
6607         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
6609 2013-01-16  DJ Delorie  <dj@redhat.com>
6611         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
6612         (UNSPECV_SP_SWITCH_E): New.
6613         (sp_switch_1): Change to an unspec.
6614         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
6615         replace $r15.
6617 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
6619         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
6620         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
6621         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
6622         (expand_mem_thread_fence): Ditto.
6623         (expand_mem_signal_fence): Ditto.
6624         (expand_atomic_load): Ditto.
6625         (expand_atomic_store): Ditto.
6627 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
6629         PR rtl-optimization/55547
6630         PR rtl-optimization/53827
6631         PR debug/53671
6632         PR debug/49888
6633         * alias.c (memrefs_conflict_p): Set sizes to negative after
6634         AND adjustments.
6636 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
6638         PR target/55940
6639         * function.c (thread_prologue_and_epilogue_insns): Always
6640         add crtl->drap_reg to set_up_by_prologue.set, even if
6641         stack_realign_drap is false.
6643 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
6645         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
6646         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
6647         *call): Fix indention.
6649 2013-01-15  Tom de Vries  <tom@codesourcery.com>
6651         PR target/55876
6652         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
6653         Update comment.
6655 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
6657         PR rtl-optimization/55153
6658         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
6660 2013-01-15  Martin Jambor  <mjambor@suse.cz>
6662         PR tree-optimization/55920
6663         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
6664         accesses as grp_to_be_debug_replaced.
6666 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
6668         PR tree-optimization/55920
6669         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
6670         there is non-useless type conversion needed from debug rhs to lhs,
6671         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
6673 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
6674             Mikael Pettersson  <mikpe@it.uu.se>
6676         PR target/43961
6677         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
6678         Thumb.
6679         (ASM_OUTPUT_CASE_LABEL): Remove.
6680         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
6681         * final.c (shorten_branches): Update alignment of labels before
6682         jump tables if CASE_VECTOR_SHORTEN_MODE.
6684 2013-01-15  Richard Biener  <rguenther@suse.de>
6686         PR bootstrap/55961
6687         * system.h: Do not include gmp.h for building host tools.
6689 2013-01-15  Richard Biener  <rguenther@suse.de>
6691         PR middle-end/55882
6692         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
6693         account for bitpos when computing alignment.
6695 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
6697         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
6698         (ix86_target_macros_internal): Likewise.
6700         * config/i386/i386.c (m_CORE2I7): Removed.
6701         (m_CORE_HASWELL): New macro.
6702         (m_CORE_ALL): Likewise.
6703         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
6704         (initial_ix86_arch_features): Likewise.
6705         (processor_target_table): Initializations for Core avx2.
6706         (cpu_names): New names "core-avx2".
6707         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
6708         PROCESSOR_CORE_HASWELL.
6709         (ix86_issue_rate): New case.
6710         (ia32_multipass_dfa_lookahead): Likewise.
6711         (ix86_sched_init_global): Likewise.
6713         * config/i386/i386.h (TARGET_HASWELL): New macro.
6714         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
6715         (processor_type): New PROCESSOR_HASWELL.
6717 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
6719         PR tree-optimization/55955
6720         * tree-vect-loop.c (vectorizable_reduction): Give up early on
6721         *SHIFT_EXPR and *ROTATE_EXPR codes.
6723         PR tree-optimization/48766
6724         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
6725         -ftrapv disable -fwrapv.
6727 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
6729         PR target/55974
6730         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
6731         etc. to 1 and not to __flash.
6732         Use LL suffix for __INT24_MAX__ with -mint8.
6733         Use ULL suffix for __UINT24_MAX__ with -mint8.
6735 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
6737         * config/avr/avr-arch.h
6738         (struct base_arch_s): Use typedef avr_arch_t instead.
6739         (struct arch_info_s): Use typedef avr_arch_info_t instead.
6740         (struct mcu_type_s): Use typedef avr_mcu_t instead.
6741         * config/avr/avr.c: Same.
6742         * config/avr/avr-devices.c: Same.
6743         * config/avr/driver-avr.c: Same.
6744         * config/avr/gen-avr-mmcu-texi.c: Same.
6745         * config/avr/avr-mcus.def: Adjust comment.
6747 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
6749         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
6750         * config/aarch64/iterators.md (VALLDI): New.
6752 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
6753             Andi Kleen  <ak@linux.intel.com>
6755         PR target/55948
6756         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
6757         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
6758         memmodel flag.
6760 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
6762         * config/avr/avr-stdint.h: Remove trailing blanks.
6763         * config/avr/avr-log.h: Same.
6764         * config/avr/avr-arch.h: Same.
6765         * config/avr/avr-devices.c: Same.
6766         * config/avr/avr-dimode.md: Same.
6767         * config/avr/predicates.md: Same.
6768         * config/avr/avr-c.c: Same.  And fix typo.
6770         * config/avr/avr-protos.h: Same.  And:
6771         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
6772         (init_cumulative_args): Rename to avr_init_cumulative_args.
6773         (expand_prologue): Rename to avr_expand_prologue.
6774         (expand_epilogue): Rename to avr_expand_epilogue.
6775         (adjust_insn_length): Rename to avr_adjust_insn_length.
6776         (notice_update_cc): Rename to avr_notice_update_cc.
6777         (final_prescan_insn): Rename to avr_final_prescan_insn.
6778         * config/avr/avr.c: Same.
6779         * config/avr/avr.h: Same.
6780         * config/avr/avr.md: Remove trailing blanks.
6781         (prologue): Use avr_expand_prologue.
6782         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
6784 2013-01-14  Richard Biener  <rguenther@suse.de>
6786         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
6787         verify_location, collect_subblocks): New functions.
6788         (verify_gimple_in_cfg): Verify that locations only reference
6789         BLOCKs in the functions BLOCK tree.
6791 2013-01-14  Richard Biener  <rguenther@suse.de>
6793         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
6794         PHI argument.
6795         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
6796         unshare reference.
6797         (insert_out_of_ssa_copy_on_edge): Likewise.
6798         (rewrite_close_phi_out_of_ssa): Likewise.
6799         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
6800         debug expressions.
6801         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
6802         propagated constants.
6803         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
6804         can not be shared.
6806 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
6808         * config/avr/avr-modes.def: Add GPL copyright notice.
6810 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
6812         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
6813         MEMMODEL_MASK to determine memory model.
6814         (atomic_store<mode>): Ditto from operands[2].
6815         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
6817 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
6819         PR fortran/55935
6820         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
6821         (fold_gimple_assign): Don't call unshare_expr here.
6822         (fold_ctor_reference): Call unshare_expr.
6824 2013-01-13  Terry Guo  <terry.guo@arm.com>
6826         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
6827         * doc/fragments.texi: Document MULTILIB_REUSE.
6828         * gcc.c (multilib_reuse): New internal spec.
6829         (set_multilib_dir): Also search multilib from multilib_reuse.
6830         * genmultilib (tmpmultilib3): Refactor code.
6831         (tmpmultilib4): Ditto.
6832         (multilib_reuse): New multilib argument.
6834 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
6836         * Makefile.in: Update copyright.
6838 2013-01-12  Tom de Vries  <tom@codesourcery.com>
6840         PR middle-end/55890
6841         * calls.c (expand_call): Check if arg_nr is valid.
6843 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
6845         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
6846         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
6847         documentation.  Add missing '__' in front of
6848         __builtin_ia32_packssdw256.
6850 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6852         PR target/55719
6853         * config/s390/s390.c (s390_preferred_reload_class): Do not return
6854         NO_REGS for larl operands.
6855         (s390_reload_larl_operand): Use s390_load_address instead of
6856         emit_move_insn.
6858 2013-01-11  Richard Biener  <rguenther@suse.de>
6860         * tree-cfg.c (verify_node_sharing_1): Split out from ...
6861         (verify_node_sharing): ... here.
6862         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
6864 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
6866         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
6867         Substitute TREECHECKING.
6868         * configure: Regenerate.
6869         * Makefile.in (TREECHECKING): New.
6871 2013-01-11  Richard Guenther  <rguenther@suse.de>
6873         PR tree-optimization/44061
6874         * tree-vrp.c (extract_range_basic): Compute zero as
6875         value-range for __builtin_constant_p of function parameters.
6877 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
6879         Update copyright years.
6881 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
6883         PR rtl-optimization/55672
6884         * lra-eliminations.c (mark_not_eliminable): Permit addition with
6885         const to be eliminable.
6887 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
6889         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
6890         * configure: Regenerate.
6892 2013-01-10  Richard Biener  <rguenther@suse.de>
6894         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
6896 2013-01-10  Richard Biener  <rguenther@suse.de>
6898         PR bootstrap/55792
6899         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
6900         locations for virtual PHI arguments.
6901         (rewrite_update_phi_arguments): Likewise.
6903 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
6905         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
6906         on to assembler.
6908 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
6910         PR tree-optimization/55921
6911         * tree-complex.c (expand_complex_asm): New function.
6912         (expand_complex_operations_1): Call it for GIMPLE_ASM.
6914 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6916         PR target/55718
6917         * config/s390/s390.c (s390_symref_operand_p)
6918         (s390_loadrelative_operand_p): Merge the two functions.
6919         (s390_check_qrst_address, print_operand_address): Add parameters
6920         to s390_loadrelative_operand_p invokation.
6921         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
6922         (s390_reload_larl_operand, s390_secondary_reload): Use
6923         s390_loadrelative_operand_p instead of s390_symref_operand_p.
6924         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
6926 2013-01-09  Mike Stump  <mikestump@comcast.net>
6928         * dse.c (record_store): Remove unnecessary assert.
6930 2013-01-09  Jan Hubicka  <jh@suse.cz>
6932         PR tree-optimization/55569
6933         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
6934         * cfgloop.h (scale_loop_profile): Likewise.
6936 2013-01-09  Jan Hubicka  <jh@suse.cz>
6938         PR lto/45375
6939         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
6940         functions.
6941         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
6943 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
6945         PR middle-end/55114
6946         * expr.h (maybe_emit_group_store): Declare.
6947         * expr.c (maybe_emit_group_store): New function.
6948         * builtins.c (expand_builtin_int_roundingfn): Call it.
6949         (expand_builtin_int_roundingfn_2): Likewise.
6951 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
6953         PR rtl-optimization/55829
6954         * lra-constraints.c (match_reload): Add code for absent output.
6955         (curr_insn_transform): Add code for reloads of matched inputs
6956         without output.
6958 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
6960         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
6961         attribute of movddup insn to DF.
6962         (*vec_interleave_lowv2df): Ditto.
6963         (vec_dupv2df): Ditto.
6965 2013-01-09  Jan Hubicka  <jh@suse.cz>
6967         PR tree-optimiation/55875
6968         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
6969         EVERY_ITERATION parameter.
6970         (number_of_iterations_exit): Check if exit is executed every iteration.
6971         (idx_infer_loop_bounds): Similarly here.
6972         (n_of_executions_at_most): Simplify
6973         to only test for cases where statement is dominated by the
6974         particular bound; handle correctly the "postdominance" test.
6975         (scev_probably_wraps_p): Use max loop iterations info
6976         as a global bound first.
6978 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
6979             Nick Clifton  <nickc@redhat.com>
6981         * config/v850/v850.md (cbranchsf4): New pattern.
6982         (cstoresf4): New pattern.
6983         (cbranchdf4): New pattern.
6984         (cstoredf4): New pattern.
6985         (movsicc): Disallow floating point comparisons.
6986         (cmpsf_le_insn): Fix order of operators.
6987         (cmpsf_lt_insn): Likewise.
6988         (cmpsf_eq_insn): Likewise.
6989         (cmpdf_le_insn): Likewise.
6990         (cmpdf_lt_insn): Likewise.
6991         (cmpdf_eq_insn): Likewise.
6992         (cmpsf_ge_insn): Use LE comparison.
6993         (cmpdf_ge_insn): Likewise.
6994         (cmpsf_gt_insn): Use LT comparison.
6995         (cmpdf_gt_insn): Likewise.
6996         (cmpsf_ne_insn): Delete pattern.
6997         (cmpdf_ne_insn): Delete pattern.
6998         * config/v850/v850.c (v850_gen_float_compare): Use
6999         gen_cmpdf_eq_insn for NE comparison.
7000         (v850_float_z_comparison_operator)
7001         (v850_float_nz_comparison_operator): Move from here ...
7002         * config/v850/predicates.md: ... to here.  Move GT and GE
7003         comparisons into v850_float_z_comparison_operator.
7004         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
7005         Delete prototype.
7006         (v850_float_nz_comparison_operator): Likewise.
7008 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7010         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
7011         with calls to gen_insvsi/gen_insvdi.
7013 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
7015         * config/i386/i386.c (initial_ix86_tune_features): Set up
7016         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
7018 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
7019             Jakub Jelinek  <jakub@redhat.com>
7021         PR tree-optimization/48189
7022         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
7023         If nitercst is 0, don't predict the exit edge.
7025 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7027         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
7028         in asm_fprintf with reg_names.
7029         (aarch64_print_operand_address): Likewise.
7030         (aarch64_return_addr): Likewise.
7031         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
7033 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7035         * config/pa/pa.h (VAL_U6_BITS_P): Define.
7036         (INT_U6_BITS): Likewise.
7037         * config/pa/predicates.md (uint6_operand): New predicate.
7038         (shift5_operand, shift6_operand): Likewise.
7039         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
7040         arith32_operand.
7041         (lshrdi3): Use shift6_operand.
7042         (shrpsi4, shrpdi4): New insn patterns.
7043         (extzv): Delete expander.
7044         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
7045         predicates in unamed zero extract patterns.  Tighten common constraint.
7046         (extv): Delete expander.
7047         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
7048         predicates in unamed sign extract patterns.  Tighten common constraint.
7049         (insv): Delete expander.
7050         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
7051         predicates in unamed insert patterns.  Tighten common constraint.
7052         Change uint32_operand predicate to uint6_operand predicate in unamed
7053         DImode pattern to insert constant values of type 1...1xxxx.
7055 2013-01-04  Jan Hubicka  <jh@suse.cz>
7057         PR tree-optimization/55823
7058         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
7059         issue.
7061 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
7062             Uros Bizjak  <ubizjak@gmail.com>
7064         PR rtl-optimization/55845
7065         * df-problems.c (can_move_insns_across): Stop scanning at
7066         volatile_insn_p source instruction or give up if
7067         across_from .. across_to range contains any volatile_insn_p
7068         instructions.
7070 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
7072         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
7073         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
7074         Declare.
7075         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
7076         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
7078 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
7080         PR fortran/55341
7081         * asan.c (asan_clear_shadow): New function.
7082         (asan_emit_stack_protection): Use it.
7084 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
7086         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
7087         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
7088         with tab instead of space.
7090 2013-01-08  Nick Clifton  <nickc@redhat.com>
7092         * config/rl78/rl78.c (rl78_expand_prologue): Always select
7093         register bank 0 at the start of an interrupt handler.
7094         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
7095         MDBH registers.
7097 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
7099         * config/aarch64/aarch64-simd.md
7100         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
7101         (aarch64_simd_bsl): Likewise.
7102         (aarch64_vcond_internal<mode>): Likewise.
7103         (vcond<mode><mode>): Likewise.
7104         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
7105         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
7107 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
7109         * config/aarch64/aarch64-builtins.c
7110         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
7112 2013-01-08  Martin Jambor  <mjambor@suse.cz>
7114         PR debug/55579
7115         * tree-sra.c (analyze_access_subtree): Return true also after
7116         potentially creating a debug-only replacement.
7118 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
7120         PR middle-end/55890
7121         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
7123         PR tree-optimization/54120
7124         * tree-vrp.c (range_fits_type_p): Don't allow
7125         src_precision < precision from signed vr to unsigned_p
7126         if vr->min or vr->max is negative.
7127         (simplify_float_conversion_using_ranges): Test can_float_p
7128         against CODE_FOR_nothing.
7130 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
7131             Richard Biener  <rguenther@suse.de>
7133         PR middle-end/55851
7134         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
7135         types instead of just INTEGER_TYPE types.
7137 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
7139         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
7140         TF_SIZE): Define.
7142 2013-01-07  Steve Ellcey  <sellcey@mips.com>
7144         PR target/42661
7145         * config/mips/mips.opt: Change mad to mmad to match documentation.
7147 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
7149         PR target/55897
7150         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
7151         .progmemx.data now.
7153 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
7155         PR target/55897
7156         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
7157         (avr_addrspace_t): Add .section_name field.
7158         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
7159         array size.
7160         (avr_addrspace): Same.  Initialize .section_name.  Remove last
7161         NULL entry.  Put __memx into .progmemx.data.
7162         (progmem_section_prefix): Remove.
7163         (avr_asm_init_sections): No need to initialize progmem_section.
7164         (avr_asm_named_section): Use avr_addrspace[].section_name to get
7165         section name prefix.
7166         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
7167         retrieve the progmem section.
7168         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
7169         boundary to run over avr_addrspace[].
7170         (avr_register_target_pragmas): Ditto.
7172 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
7174         * varasm.c (output_constant_def_contents): For asan_protect_global
7175         protected strings, adjust DECL_ALIGN if needed, before testing for
7176         anchored symbols.
7177         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
7178         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
7179         normal decls.
7180         (output_object_block): For asan protected decls, emit asan padding
7181         after their contents.
7182         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
7183         (asan_finish_file): Test it here instead.
7185 2013-01-07  Nick Clifton  <nickc@redhat.com>
7186             Matthias Klose  <doko@debian.org>
7187             Doug Kwan  <dougkwan@google.com>
7188             H.J. Lu  <hongjiu.lu@intel.com>
7190         PR driver/55470
7191         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
7193         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
7195         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
7197         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
7199         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
7201 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
7203         PR target/54461
7204         * doc/install.texi (Cross-Compiler-Specific Options): Document
7205         --with-avrlibc.
7207 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
7209         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
7210         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
7211         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
7212         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
7213         vqmovun_high_s64): Fix source operand number and update copyright.
7215 2013-01-07  Richard Biener  <rguenther@suse.de>
7217         PR middle-end/55890
7218         * gimple.h (gimple_call_builtin_p): New overload.
7219         * gimple.c (validate_call): New function.
7220         (gimple_call_builtin_p): Likewise.
7221         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7222         Use gimple_call_builtin_p.
7223         (find_func_clobbers): Likewise.
7224         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
7225         (strlen_optimize_stmt): Likewise.
7227 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
7229         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
7230         (vld1q_dup_*): Likewise.
7231         (vld1_*): Likewise.
7232         (vld1q_*): Likewise.
7233         (vld1_lane_*): Likewise.
7234         (vld1q_lane_*): Likewise.
7236 2013-01-07  Richard Biener  <rguenther@suse.de>
7238         * lto-streamer.h (LTO_minor_version): Bump to 2.
7240 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
7242         * config/aarch64/aarch64-protos.h
7243         (aarch64_const_double_zero_rtx_p): Rename to...
7244         (aarch64_float_const_zero_rtx_p): ...this.
7245         (aarch64_float_const_representable_p): New.
7246         (aarch64_output_simd_mov_immediate): Likewise.
7247         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
7248         move immediate case.
7249         * config/aarch64/aarch64.c
7250         (aarch64_const_double_zero_rtx_p): Rename to...
7251         (aarch64_float_const_zero_rtx_p): ...this.
7252         (aarch64_print_operand): Allow printing of new constants.
7253         (aarch64_valid_floating_const): New.
7254         (aarch64_legitimate_constant_p): Check for valid floating-point
7255         constants.
7256         (aarch64_simd_valid_immediate): Likewise.
7257         (aarch64_vect_float_const_representable_p): New.
7258         (aarch64_float_const_representable_p): Likewise.
7259         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
7260         (aarch64_output_simd_mov_immediate): New.
7261         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
7262         (*movdf_aarch64): Likewise.
7263         * config/aarch64/constraints.md (Ufc): New.
7264         (Y): call aarch64_float_const_zero_rtx.
7265         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
7267 2013-01-07  Richard Biener  <rguenther@suse.de>
7269         PR tree-optimization/55888
7270         PR tree-optimization/55862
7271         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
7272         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
7273         not if it is contained therein.
7275 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
7277         * config/avr/t-avr: Typo.
7279 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
7281         PR55243
7282         * config/avr/t-avr: Don't automatically rebuild
7283         $(srcdir)/config/avr/t-multilib
7284         $(srcdir)/config/avr/avr-tables.opt
7285         $(srcdir)/doc/avr-mmcu.texi
7286         (avr-mcus): New phony target to build them on request.
7287         (s-avr-mlib, s-avr-mmcu-texi): Remove.
7288         * avr/avr-mcus.def: Adjust comments.
7290 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
7292         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
7294 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
7296         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
7298 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
7300         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
7302 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
7304         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
7305         to generate profiling.
7306         * config/rs6000/aix64.h (LIB_SPEC): Same.
7308 2013-01-04  Andrew Pinski  <apinski@cavium.com>
7310         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
7311         New function.
7312         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
7314 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
7316         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
7317         unconditionally.
7318         (ix86_expand_move): Ditto.
7319         (ix86_zero_extend_to_Pmode): Ditto.
7320         (ix86_expand_call): Ditto.
7321         (ix86_expand_special_args_builtin): Ditto.
7322         (ix86_expand_builtin): Ditto.
7324 2013-01-04  Richard Biener  <rguenther@suse.de>
7326         PR tree-optimization/55862
7327         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
7328         translating them through PHI nodes.
7330 2013-01-04  Martin Jambor  <mjambor@suse.cz>
7332         PR tree-optimization/55755
7333         * tree-sra.c (sra_modify_assign): Do not check that an access has no
7334         children when trying to avoid producing a VIEW_CONVERT_EXPR.
7336 2013-01-04  Marek Polacek  <polacek@redhat.com>
7338         PR middle-end/55859
7339         * opts.c (default_options_optimization): Clarify error message.
7341 2013-01-04  Richard Biener  <rguenther@suse.de>
7343         PR middle-end/55863
7344         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
7345         reassociation.
7347 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7349         PR target/53789
7350         * config/pa/pa.md (movsi): Revert previous change.
7351         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
7352         references.
7354 2013-01-03  Richard Henderson  <rth@redhat.com>
7356         * config/i386/i386.c (ix86_expand_move): Always assign to op1
7357         after eliminating TLS symbols.
7359 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
7361         PR bootstrap/50167
7362         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
7363         * graphite-poly.c (debug_gmp_value): Likewise.
7365 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
7367         PR target/55712
7368         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
7369         selected code model, define __code_mode_small__, __code_model_medium__,
7370         __code_model_large__, __code_model_32__ or __code_model_kernel__.
7371         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
7372         xchg temporary register with %k.  Declare temporary register as
7373         early clobbered.
7374         [__x86_64__]: For medium and large code models, preserve %rbx register.
7376 2013-01-03  Richard Biener  <rguenther@suse.de>
7378         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
7379         (dump_subscript): Adjust.
7380         (finalize_ddr_dependent): Do not dump redundant info.
7381         (analyze_siv_subscript): Adjust.
7382         (subscript_dependence_tester): Likewise.
7383         (compute_affine_dependence): Likewise.
7385 2013-01-03  Richard Biener  <rguenther@suse.de>
7387         Revert
7388         2013-01-03  Richard Biener  <rguenther@suse.de>
7390         PR tree-optimization/55857
7391         * tree-vect-stmts.c (vectorizable_load): Do not setup
7392         re-alignment for invariant loads.
7394         2013-01-02  Richard Biener  <rguenther@suse.de>
7396         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
7397         invariant load do not generate a vector load from the scalar location.
7399 2013-01-03  Richard Biener  <rguenther@suse.de>
7401         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
7402         for not vectorizing.
7403         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
7404         not build INDIRECT_REFs, call get_name once only.
7405         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
7406         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
7408 2013-01-03  Richard Biener  <rguenther@suse.de>
7410         PR tree-optimization/55857
7411         * tree-vect-stmts.c (vectorizable_load): Do not setup
7412         re-alignment for invariant loads.
7414 2013-01-03  Richard Biener  <rguenther@suse.de>
7416         PR lto/55848
7417         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
7418         prefer a built-in decl.
7420 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
7422         * gcc.c (process_command): Update copyright notice dates.
7423         * gcov.c (print_version): Likewise.
7424         * gcov-dump.c (print_version): Likewise.
7426         PR rtl-optimization/55838
7427         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
7428         iv0.step, iv1.step and step.
7430 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
7431             Marc Glisse  <marc.glisse@inria.fr>
7433         PR tree-optimization/55832
7434         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
7435         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
7436         integer_{one,zero}_node.
7438 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
7440         PR debug/54402
7441         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
7442         * var-tracking.c (reverse_op): Don't add reverse ops to
7443         VALUEs that have already
7444         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
7446 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
7448         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
7450 2013-01-02  Teresa Johnson  <tejohnson@google.com>
7452         * dumpfile.c (dump_loc): Print filename with location.
7453         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
7454         new location_t parameter to emit complete unroll message with
7455         new dump framework.
7456         (canonicalize_loop_induction_variables): Compute loops location
7457         and pass to try_unroll_loop_completely.
7458         * loop-unroll.c (report_unroll_peel): New function.
7459         (peel_loops_completely): Use new dump format with location
7460         for main dumpfile message, and invoke report_unroll_peel on success.
7461         (decide_unrolling_and_peeling): Ditto.
7462         (decide_peel_once_rolling): Remove old dumpfile message subsumed
7463         by report_unroll_peel.
7464         (decide_peel_completely): Ditto.
7465         (decide_unroll_constant_iterations): Ditto.
7466         (decide_unroll_runtime_iterations): Ditto.
7467         (decide_peel_simple): Ditto.
7468         (decide_unroll_stupid): Ditto.
7469         * cfgloop.c (get_loop_location): New function.
7470         * cfgloop.h (get_loop_location): Declare.
7472 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
7474         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
7475         NULL.
7477 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7479         PR middle-end/55198
7480         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
7481         BLKmode objects when EXPAND_MEMORY is specified.
7483 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
7485         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
7486         in loop predicate.
7487         (fold_builtin_cpu): Do not share cpu model decls across statements.
7489 2013-01-02  Jason Merrill  <jason@redhat.com>
7491         PR c++/55804
7492         * tree.c (build_array_type_1): Revert earlier change.
7494 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
7496         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
7497         "cortex-a57".
7498         * config/aarch64/aarch64-tune.md: Re-generate.
7500 2013-01-02  Richard Biener  <rguenther@suse.de>
7502         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
7503         invariant load do not generate a vector load from the scalar location.
7505 2013-01-02  Richard Biener  <rguenther@suse.de>
7507         PR bootstrap/55784
7508         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
7509         * configure: Regenerate.
7511 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
7513         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
7514         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
7515         (expand_builtin_int_roundingfn_2): Keep the original target around
7516         for the fallback case.
7518 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
7520         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
7521         to be clear for sign changes.
7523 2013-01-01  Jan Hubicka  <jh@suse.cz>
7525         * ipa-inline-analysis.c: Fix formatting.
7527 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
7529         PR tree-optimization/55831
7530         * tree-vect-loop.c (get_initial_def_for_induction): Use
7531         gsi_after_labels instead of gsi_start_bb.
7533 Copyright (C) 2013 Free Software Foundation, Inc.
7535 Copying and distribution of this file, with or without modification,
7536 are permitted in any medium without royalty provided the copyright
7537 notice and this notice are preserved.