2013-04-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / ChangeLog
blob416871c8fe3c911e18a9864ccfc496fe42170152
1 2013-04-17  Richard Biener  <rguenther@suse.de>
3         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
4         (vect_build_slp_tree): ... here.
5         (vect_build_slp_tree_1): Compute which stmts of the SLP group
6         match.  Remove special-casing of mismatched complex loads.
7         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
8         re-try the match with swapped commutative operands.
9         (vect_supported_load_permutation_p): Remove special-casing of
10         mismatched complex loads.
11         (vect_analyze_slp_instance): Adjust.
13 2013-04-17  Richard Biener  <rguenther@suse.de>
15         PR rtl-optimization/56921
16         * cfgloop.h (struct loop): Add simple_loop_desc member.
17         (struct niter_desc): Mark with GTY(()).
18         (simple_loop_desc): Do not use aux field but simple_loop_desc.
19         * loop-iv.c (get_simple_loop_desc): Likewise.
20         (free_simple_loop_desc): Likewise.
22         Revert
23         2013-04-16  Richard Biener  <rguenther@suse.de>
25         PR rtl-optimization/56921
26         * loop-init.c (pass_rtl_move_loop_invariants): Add
27         TODO_do_not_ggc_collect to todo_flags_finish.
28         (pass_rtl_unswitch): Same.
29         (pass_rtl_unroll_and_peel_loops): Same.
30         (pass_rtl_doloop): Same.
32 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
34         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
35         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
36         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
37         references.
38         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
39         * tree-streamer.c (record_common_node): Adjust reference in comment.
41 2013-04-17  Terry Guo  <terry.guo@arm.com>
43         * config/arm/cortex-m4.md: Add a new bypass.
45 2013-04-16   Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
47         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
48         New pattern.
49         (*subs_<optab><mode>_multp2): New pattern.
50         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
51         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
53 2013-04-16   Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
55         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
56         (*subs_mul_imm_<mode>): New pattern.
58 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
60         PR target/56948
61         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
62         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
63         (vsx_movti_32bit): Change j->wa to O->wa.
65 2013-04-16  Richard Biener  <rguenther@suse.de>
67         PR rtl-optimization/56921
68         * loop-init.c (pass_rtl_move_loop_invariants): Add
69         TODO_do_not_ggc_collect to todo_flags_finish.
70         (pass_rtl_unswitch): Same.
71         (pass_rtl_unroll_and_peel_loops): Same.
72         (pass_rtl_doloop): Same.
74 2013-04-16  Greta Yorsh  <Greta.Yorsh at arm.com>
76         * config/arm/arm.c (emit_multi_reg_push): New declaration
77         for an existing function.
78         (arm_emit_strd_push): New function.
79         (arm_expand_prologue): Used here.
80         (arm_emit_ldrd_pop): New function.
81         (arm_expand_epilogue): Used here.
82         (arm_get_frame_offsets): Update condition.
83         (arm_emit_multi_reg_pop): Add a special case for load of a single
84         register with writeback.
86 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
88         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
89         description.
91 2013-04-16  Richard Biener  <rguenther@suse.de>
93         PR tree-optimization/56756
94         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
95         (first_mem_ref_loc): New.
96         (execute_sm): Place the load temporarily before a previous
97         access instead of in the latch edge to ensure its SSA dependencies
98         are defined at points dominating the load.
100 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
102         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
103         correct fix by moving header and footer insn to the footer of
104         the merged basic block.  Clear BB_END of the merged-away block.
106         PR middle-end/43631
107         * emit-rtl.c (make_note_raw): New function.
108         (link_insn_into_chain): New static inline function.
109         (add_insn): Use it.
110         (add_insn_before, add_insn_after): Factor insn chain linking code...
111         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
112         using link_insn_into_chain.
113         (note_outside_basic_block_p): New helper function for emit_note_after
114         and emit_note_before.
115         (emit_note_after): Use nobb variant of add_insn_after if the note
116         should not be contained in a basic block.
117         (emit_note_before): Use nobb variant of add_insn_before if the note
118         should not be contained in a basic block.
119         (emit_note_copy): Use make_note_raw.
120         (emit_note): Likewise.
121         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
122         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
123         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
124         the moved barrier the tail of the basic block it follows.
125         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
127 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
129         PR tree-optimization/56962
130         * gimple-ssa-strength-reduction.c (record_increment): Only set
131         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
132         either rhs1 or rhs2 is equal to c->base_expr.
134 2013-04-15  Richard Biener  <rguenther@suse.de>
136         PR tree-optimization/56933
137         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
138         member.
139         (GROUP_READ_WRITE_DEPENDENCE): Remove.
140         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
141         * tree-vect-data-refs.c (vect_analyze_group_access): Move
142         dependence check ...
143         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
144         ... here.
145         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
146         GROUP_READ_WRITE_DEPENDENCE.
148 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
150         * emit-rtl.c (reset_all_used_flags): New function.
151         (verify_rtl_sharing): Call reset_all_used_flags before and after
152         performing the checks.
154 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
156         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
157         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
158         * config/arm/constraints.md (De): New constraint.
159         * config/arm/neon.md (anddi3_neon): Delete.
160         (neon_vand<mode>): Expand to standard anddi3 pattern.
161         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
162         Move earlier in the file.
163         (neon_inv_logic_op2): Likewise.
164         (arm_anddi_operand_neon): New predicate.
166 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
168         * configure.ac (gcc_cv_ld_as_needed): Set
169         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
170         Use -z ignore, -z record on *-*-solaris2*.
171         (HAVE_LD_AS_NEEDED): Update comment.
172         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
173         * configure: Regenerate.
174         * config.in: Regenerate.
175         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
176         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
177         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
178         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
179         equivalents.  Fix markup.
180         * doc/tm.texi: Regenerate.
182 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
184         * config/i386/i386.opt: New option mstack-protector-guard=.
185         * config/i386/i386-opts.h: Add enum stack_protector_guard.
186         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
187         TARGET_SSP_TLS_GUARD.
188         * config/i386/i386.c (ix86_option_override_internal): Set
189         ix86_stack_protector_guard.
190         * config/i386/i386.md (stack_protect_set): Enable for
191         TARGET_SSP_TLS_GUARD only.
192         (stack_protect_set_<mode>): Ditto.
193         (stack_protect_test): Ditto.
194         (stack_protect_test_<mode>): Ditto.
195         * doc/invoke.texi (i386 Option): Document.
197 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
199         PR target/56890
200         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
201         (S_MODES): Set H_MODE bit.
202         (SF_MODES): Set only S_MODE and SF_MODE bits.
203         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
204         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
205         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
206         <MODE_FLOAT>: Likewise.
208 2013-04-15  Joey Ye  <joey.ye@arm.com>
210         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
212 2013-04-15  Joey Ye  <joey.ye@arm.com>
214         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
215         for real far jump.
216         (thumb_far_jump_used_p): Count instruction size and set
217         far_jump_used.
219 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
221         * reorg.c (fill_simple_delay_slots): Reindent block of code.
222         * resource.c (mark_target_live_regs): Reformat conditional block.
224 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
226         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
227         notes, they are emitted only just before final.
228         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
230 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
232         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
233         * cfgrtl.c (delete_insn): Call it here instead.
234         * lra-spills.c (lra_final_code_change): Use delete_insn.
235         * haifa-sched.c (sched_remove_insn): Likewise.
236         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
237         returning to the nop pool.
238         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
239         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
241 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
243         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
244         * doc/tm.texi: Regenerated.
246 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
248         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
249         QImode checks.
251 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
253         * df-core.c (df_find_def): Compare register numbers.
254         (df_find_use): Likewise.
256 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
258         PR target/56903
259         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
260         lra_in_progress for return.
262 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
264         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
265         define_insn into define_insn_and_split and emit movsicc patterns.
267 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
269         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
271 2013-04-12  Richard Biener  <rguenther@suse.de>
273         * tree-pass.h (TODO_do_not_ggc_collect): New.
274         * passes.c (execute_one_ipa_transform_pass): Honor
275         TODO_do_not_ggc_collect.
276         (execute_one_pass): Likewise.
278         Revert
279         2013-04-10  Richard Biener  <rguenther@suse.de>
281         * passes.c (init_optimization_passes): Remove reload pass.
282         * ira.c (do_reload): Merge into ...
283         (ira): ... this.
284         (rest_of_handle_reload): Remove.
285         (pass_reload): Likewise.
286         * config/i386/i386.c (ix86_option_override): Refer to ira instead
287         of reload for vzeroupper pass placement.
289 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
291         PR tree-optimization/56918
292         PR tree-optimization/56920
293         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
294         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
295         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
296         use wide_mul_with_sign method.
298 2013-04-12  Richard Biener  <rguenther@suse.de>
300         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
301         not be considered a gimple constant.
303 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
305         * fold-const.c (const_binop): Handle vector shifts by a scalar.
306         (fold_binary_loc): Call const_binop also for mixed vector-scalar
307         operations.
309 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
310             Jakub Jelinek  <jakub@redhat.com>
312         * opts.c: Include diagnostic-color.h.
313         (common_handle_option): Handle OPT_fdiagnostics_color_.
314         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
315         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
316         (diagnostic-color.o): New.
317         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
318         (diagnostic_color_rule): New enum.
319         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
320         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
321         the location string.
322         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
323         either NULL, or color kind.
324         * diagnostic-color.c: New file.
325         * diagnostic-color.h: New file.
326         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
327         arguments.
328         * doc/invoke.texi (-fdiagnostics-color): Document.
329         * pretty-print.h (pp_show_color): Define.
330         (struct pretty_print_info): Add show_color field.
331         * diagnostic.c: Include diagnostic-color.h.
332         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
333         macros.  Colorize error:, warning: etc. strings and also the location
334         string.
335         (diagnostic_show_locus): Colorize the caret line.
336         * pretty-print.c: Include diagnostic-color.h.
337         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
338         inside of %< %> quotes or quoted through q format modifier.
340 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
342         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
344 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
346         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
347         code in CC_NZ mode.
348         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
349         pattern.
351 2013-04-11  Marek Polacek  <polacek@redhat.com>
353         PR tree-optimization/48184
354         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
356 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
358         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
359         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
360         (skip_simple_arithmetic): Tidy up.
361         * tree.h (skip_simple_constant_arithmetic): Declare.
363 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
365         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
367 2013-04-11  Richard Biener  <rguenther@suse.de>
369         * tree-vect-loop.c (get_initial_def_for_induction): Properly
370         generate vector constants.
372 2013-04-11  Richard Biener  <rguenther@suse.de>
374         PR tree-optimization/56878
375         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
376         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
377         New function.
378         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
379         Prefer to align the DR with the most invariant base address.
381 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
383         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
384         comment.
386 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
388         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
389         floating-point vector comparisons against 0.
391 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
393         PR tree-optimization/56899
394         * fold-const.c (extract_muldiv_1): Apply distributive law
395         only if TYPE_OVERFLOW_WRAPS (ctype).
397 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
399         PR target/56124
400         * ira-costs.c (scan_one_insn): Check whether the source rtx of
401         loading has side effect.
403 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
405         * config/sparc/sparc.c: Include tree-pass.h.
406         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
407         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
408         head of file.  Change return type.  Split off gate function.
409         (sparc_gate_work_around_errata): New function.
410         (pass_work_around_errata): New pass definition.
411         (insert_pass_work_around_errata) New pass insert definition to
412         insert pass_work_around_errata just after delayed-branch scheduling.
413         (sparc_option_override): Insert the pass.
414         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
416 2013-04-10  David S. Miller  <davem@davemloft.net>
418         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
419         or -mcpu=hypersparc.
421         * target.def (cstore_mode): New hook.
422         * target.h: Include insn-codes.h
423         * targhooks.c: Likewise.
424         (default_cstore_mode): New function.
425         * targhooks.h: Declare it.
426         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
427         * doc/tm.texi: Rebuild.
428         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
429         target hook, rather than inspecting the insn_data.
430         * config/sparc/sparc.c (sparc_cstore_mode): New function.
431         (TARGET_CSTORE_MODE): Redefine.
432         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
433         result patterns.
434         * config/sparc/predicates.md (cstore_result_operand): New special
435         predicate.
436         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
437         Use it for operand 0.
438         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
439         (*snesi_special): Likewise.
440         (*snesi_zero): Likewise.
441         (*seqsi_zero): Likewise.
442         (*sltu_insn): Likewise.
443         (*sgeu_insn): Likewise.
444         (*seqdi_special): Make operand 0 and comparison operation be of
445         DImode.
446         (*snedi_special): Likewise.
447         (*snedi_special_vis3): Likewise.
448         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
449         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
450         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
451         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
452         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
453         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
454         (*sltu_extend_sp64): Likewise.
455         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
456         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
457         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
458         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
459         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
461 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
463         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
464         (aarch64_start_file): Use the new function.
466 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
467             Jason Merrill  <jason@redhat.com>
469         * common.opt: Add -gdwarf.
470         * opts.c (common_handle_option): Handle it.
471         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
473 2013-04-10  Richard Biener  <rguenther@suse.de>
475         * passes.c (execute_todo): Do not call ggc_collect conditional here.
476         (execute_one_ipa_transform_pass): But unconditionally here.
477         (execute_one_pass): And here.
478         (init_optimization_passes): Remove reload pass.
479         * tree-pass.h (TODO_ggc_collect): Remove.
480         (pass_reload): Likewise.
481         * ira.c (do_reload): Merge into ...
482         (ira): ... this.
483         (rest_of_handle_reload): Remove.
484         (pass_reload): Likewise.
485         * config/i386/i386.c (ix86_option_override): Refer to ira instead
486         of reload for vzeroupper pass placement.
487         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
488         and todo_flags_finish of all passes.
490 2013-04-10  Richard Biener  <rguenther@suse.de>
492         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
493         first_const_oprnd field, rename first_def_type to first_op_type.
494         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
495         (vect_get_and_check_slp_defs): Always use the type of the
496         operand.  Allow mixed vect_external_def, vect_constant_def types.
497         (vect_get_constant_vectors): Handle mixed vect_external_def,
498         vect_constant_def types.
500 2013-04-10  Joern Rennecke <joern.rennecke@embecosm.com>
502         PR tree-optimization/55524
503         * tree-ssa-math-opts.c
504         (convert_mult_to_fma): Don't use an fms construct
505         when we don't have an fms operation, but fnma, and it looks
506         likely that we'll be able to use the latter.
508 2013-04-10  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
510         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
511         function.
512         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
513         inline fail caused by overwritable functions.
515 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
517         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
518         unnecessary bits in the constant power of two case.
520 2013-04-10  Richard Biener  <rguenther@suse.de>
522         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
523         broken code swapping operands.
524         (vect_build_slp_tree): Do not compute load permutations here.
525         (vect_analyze_slp_instance): Compute load permutations here,
526         after building the SLP tree.
528 2013-04-09  Christian Bruel  <christian.bruel@st.com>
530         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
531         of next/prev_real_insn.
533 2013-04-09  Jan Hubicka  <jh@suse.cz>
535         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
536         Drop aliased parameter.
537         (function_and_variable_visibility): Do not handle alias pairs.
538         * cgraph.c (varpool_externally_visible_p): Update prototype.
539         * varpool.c (varpool_add_new_variable): Update.
541 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
543         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
545 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
547         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
549         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
551 2013-04-09  Marek Polacek  <polacek@redhat.com>
553         PR tree-optimization/48762
554         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
556 2013-04-09  Richard Biener  <rguenther@suse.de>
558         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
559         dealing with cost.
560         (vect_build_slp_tree): Likewise.
561         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
562         calculating the cost of a SLP instance.
563         (vect_analyze_slp_instance): Use it from here, after building
564         the SLP tree.
566 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
568         PR middle-end/56883
569         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
570         expand_omp_for_static_chunk): Use simple_p = true in
571         force_gimple_operand_gsi calls when assigning to addressable decls.
573 2013-04-09  Jeff Law  <law@redhat.com>
575         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
576         when the boolean was created by converting a wider object which
577         had a boolean range.
579 2013-04-09  Richard Biener  <rguenther@suse.de>
581         * tree-vectorizer.h (slp_void_p): Remove.
582         (slp_tree): Typedef before _slp_tree declaration.
583         (struct _slp_tree): Use a vector of slp_tree as children.
584         (vect_get_place_in_interleaving_chain): Remove.
585         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
586         Move ...
587         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
588         and make static.
589         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
590         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
591         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
592         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
593         Use slp_node instead of slp_void_p and adjust.
595 2013-04-09  Richard Biener  <rguenther@suse.de>
597         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
598         work that is not necessary.
600 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
602         PR tree-optimization/56854
603         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
604         forward into clobber stmts if it would change MEM_REF lhs into
605         non-MEM_REF.
607 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
609         * tree.c (type_hash_lookup, type_hash_add): Make static.
610         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
612 2013-04-09  Richard Biener  <rguenther@suse.de>
614         * tree.h (unsave_expr_now): Remove.
615         * tree-inline.c (mark_local_for_remap_r): Remove.
616         (unsave_expr_1): Likewise.
617         (unsave_r): Likewise.
618         (unsave_expr_now): Likewise.
619         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
620         (propagate_tree_value): Likewise.
622 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
624         * doc/rtl.texi (sequence): Rewrite documentation to match the
625         current use of SEQUENCE rtl objects.
626         * rtl.def (SEQUENCE): Likewise.
628         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
629         Update documentation.
630         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
631         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
633         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
635 2013-04-08  Teresa Johnson  <tejohnson@google.com>
637         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
638         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
639         methods.
640         (estimate_edge_size_and_time): Add comment to suggest using rounding
641         methods.
642         (estimate_node_size_and_time): Ditto.
643         (remap_edge_change_prob): Use helper rounding divide methods.
644         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
645         (gimple_mod_pow2_value_transform): Ditto.
646         (gimple_mod_subtract_transform): Ditto.
647         (gimple_ic_transform): Ditto.
648         (gimple_stringops_transform): Ditto.
649         * stmt.c (conditional_probability): Ditto.
650         (emit_case_dispatch_table): Ditto.
651         * lto-cgraph.c (merge_profile_summaries): Ditto.
652         * tree-optimize.c (execute_fixup_cfg): Ditto.
653         * cfgcleanup.c (try_forward_edges): Ditto.
654         * cfgloopmanip.c (scale_loop_profile): Ditto.
655         (loopify): Ditto.
656         (duplicate_loop_to_header_edge): Ditto.
657         (lv_adjust_loop_entry_edge): Ditto.
658         * tree-vect-loop.c (vect_transform_loop): Ditto.
659         * profile.c (compute_branch_probabilities): Ditto.
660         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
661         * lto-streamer-in.c (input_cfg): Ditto.
662         * gimple-streamer-in.c (input_bb): Ditto.
663         * ipa-cp.c (update_profiling_info): Ditto.
664         (update_specialized_profile): Ditto.
665         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
666         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
667         rounding methods.
668         * sched-rgn.c (compute_dom_prob_ps): Ditto.
669         (compute_trg_info): Ditto.
670         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
671         (purge_dead_edges): Ditto.
672         * loop-unswitch.c (unswitch_loop): Ditto.
673         * cgraphclones.c (cgraph_clone_edge): Ditto.
674         (cgraph_clone_node): Ditto.
675         * tree-inline.c (copy_bb): Ditto.
676         (copy_edges_for_bb): Ditto.
677         (initialize_cfun): Ditto.
678         (copy_cfg_body): Ditto.
679         (expand_call_inline): Ditto.
681 2013-04-08  Kai Tietz  <ktietz@redhat.com>
683         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
684         TARGET_CYGWIN64 by TARGET_64BIT.
686 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
688         * config/epiphany/epiphany.md (GPR_1): New constant.
689         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
690         * config/epiphany/epiphany.c (gen_compare_reg):
691         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
692         is already in place.
693         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
694         Don't require being called during rtl expansion; If y operlaps r0,
695         return 0.
696         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
697         (epiphany_expand_epilogue): Likewise.
699         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
700         Don't use CC_FPmode for ORDERED / UNORDERED.
701         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
703         * config/epiphany/constraints.md (CnL): New constraint.
704         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
705         * config/epiphany/predicates.md (add_operand): Allow 1024.
707         * config/epiphany/epiphany.md (logical_op): New code iterator.
708         (op_mnc): New code attribute.
709         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
710         (mov_f+1, mov_f+2): New peephole2 patterns.
712         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
713         (cstoresi4): Also allow re-use of zero result when doing a NE
714         comparison to a non-zero operand.
715         Use (clobber (scratch)) for first insn if the gpr output is not needed.
717         * config/epiphany/epiphany.md (<insn_opname>v2si3):
718         Use gen_addsi3_i / gen_subsi3_i.
720 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
722         PR c++/34949
723         PR c++/50243
724         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
725         contain anything but clobbers, at most one __builtin_stack_restore,
726         optionally debug stmts and final resx, and if it has at least one
727         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
728         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
729         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
730         which isn't defaut definition, remove them.
731         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
732         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
733         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
734         with MEM_REF LHS with SSA_NAME address.
736 2013-04-08  Jeff Law  <law@redhat.com>
738         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
740 2013-04-08  Richard Biener  <rguenther@suse.de>
742         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
743         extra newline.
744         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
745         determined vector type.
746         (vect_analyze_data_refs): Likewise.
747         (vect_get_new_vect_var): Adjust.
748         (vect_create_destination_var): Preserve SSA name versions.
749         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
750         not dump anything here.
752 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
754         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
755         Add member lr_slot_known.
756         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
757         if necessary.
758         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
759         Remove code that sets lr_slot_offset according to what a previous
760         version of epiphany_emit_save_restore used to do.
761         (epiphany_emit_save_restore): When doing an lr save or restore,
762         set/verify lr_slot_known and lr_slot_offset.
764 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
766         PR target/54338
767         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
768         in ALL_REGS.
770 2013-04-08  Richard Biener  <rguenther@suse.de>
772         * alias.c (find_base_term): Fix thinko in previous change.
774 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
776         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
777         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
778         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
779         if possible to compute val.
780         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
781         For QImode integers don't require anything about precision.  Use
782         const_with_all_bytes_same to find out if the constant doesn't have
783         repeated bytes in it.
785 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
787         * config/s390/s390.c (s390_expand_insv): Only accept insertions
788         within mode size.
790 2013-04-08  Marek Polacek  <polacek@redhat.com>
792         PR rtl-optimization/48182
793         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
794         value to 1.
796 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
798         PR target/55487
799         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
800         nuses, make sure we have a label.
802 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
804         PR target/56843
805         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
806         (rs6000_emit_swdiv_low_precision): Remove.
807         (rs6000_emit_swdiv): Rewrite to handle between one and four
808         iterations of Newton-Raphson generally; modify required number of
809         iterations for some cases.
810         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
812 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
814         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
815         set-but-unused variable.
817         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
818         basic blocks of released function bodies garbage-collectable.
820         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
821         (struct rtl_opt_pass): Add TODO_df_finish.
823         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
825 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
827         * config/arm/constraints.md (q): New constraint.
828         * config/arm/ldrdstrd.md: New file.
829         * config/arm/arm.md (ldrdstrd.md) New include.
830         (arm_movdi): Use "q" instead of "r" constraint
831         for double-word memory access.
832         (movdf_soft_insn): Likewise.
833         * config/arm/vfp.md (movdi_vfp): Likewise.
834         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
835         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
836         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
837         (mem_ok_for_ldrd_strd): Likewise.
838         (output_move_double): Update assertion.
840 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
842         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
844 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
846         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
847         define_insn_and_split.
848         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
850 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
852         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
853         define_insn_and_split.
854         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
855         (shiftsi3_compare): New pattern.
856         (rrx): New pattern.
857         * config/arm/unspecs.md (UNSPEC_RRX): New.
859 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
861         * config/arm/arm.md (negdi_extendsidi): New pattern.
862         (negdi_zero_extendsidi): Likewise.
864 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
866         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
867         define_insn_and_split.
868         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
869         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
871 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
873         * config/arm/arm.md (arm_subdi3): Convert define_insn into
874         define_insn_and_split.
875         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
876         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
878 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
880         * config/arm/arm.md (subsi3_carryin): New pattern.
881         (subsi3_carryin_const): Likewise.
882         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
883         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
885 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
887         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
889 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
891         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
892         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
894 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
896         * config/arm/arm.c (arm_expand_builtin): Change fcode
897         type to unsigned int.
899 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
901         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
903 2013-04-04  Ian Lance Taylor  <iant@google.com>
905         * doc/standards.texi (Standards): The Go frontend supports the Go 1
906         language standard.
908 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
910         PR middle-end/56729
911         * df-scan.c (df_insn_delete): Disable failing assert.
913 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
915         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
916         New function prototype.
917         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
918         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
919         (arm_builtin_vectorized_function): New function.
921 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
923         * config/arm/arm_neon_builtins.def: New file.
924         * config/arm/arm.c (neon_builtin_data): Move contents to
925         arm_neon_builtins.def.
926         (enum arm_builtins): Include neon builtin definitions.
927         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
928         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
930 2013-04-04  Marek Polacek  <polacek@redhat.com>
932         PR tree-optimization/48186
933         * predict.c (maybe_hot_frequency_p): Return false if
934         HOT_BB_FREQUENCY_FRACTION is 0.
935         (cgraph_maybe_hot_edge_p): Likewise.
937 2013-04-04  Richard Biener  <rguenther@suse.de>
939         PR tree-optimization/56826
940         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
941         more accurately.
943 2013-04-04  Richard Biener  <rguenther@suse.de>
945         PR tree-optimization/56213
946         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
947         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
949 2013-04-04  Richard Biener  <rguenther@suse.de>
951         PR tree-optimization/56837
952         * tree-loop-distribution.c (classify_partition): For non-zero
953         values require that the value has the same precision as its
954         mode to be useful as memset value.
956 2013-04-03  Nick Clifton  <nickc@redhat.com>
958         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
959         (fmssf4): Use fmsf.s on E3V5 architectures.
960         (fnmasf4): Use fnmaf.s on E3V5 architectures.
961         (fnmssf4): Use fnmsf.s on E3V5 architectures.
963 2013-04-03  Jeff Law  <law@redhat.com>
965         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
966         (lra-eliminations.o): Likewise.
968 2013-04-03  Teresa Johnson  <tejohnson@google.com>
970         * gcov-io.c (compute_working_sets): Moved most of body of old
971         compute_working_sets here from profile.c.
972         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
973         (gcov_working_set_t): Moved typedef here from basic-block.h
974         (compute_working_set): Declare.
975         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
976         (get_working_sets): Renamed from compute_working_set,
977         replace most of body with call to new compute_working_sets.
978         (get_exec_counts): Replace call to compute_working_sets
979         to get_working_sets.
980         * profile.h (get_working_sets): Renamed from compute_working_set.
981         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
982         to get_working_sets.
983         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
984         * gcov-dump.c (dump_working_sets): New function.
986 2013-04-03  Kenneth Zadeck <zadeck@naturalbridge.com>
988         * hwint.c (sext_hwi, zext_hwi): New functions.
989         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
990         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
991         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
992         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
993         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
994         (sext_hwi, zext_hwi): New functions.
996 2013-04-03  Jeff Law  <law@redhat.com>
998         PR tree-optimization/56799
999         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
1000         back test for widening conversion erroneously dropped in prior change.
1002 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1004         PR target/56809
1005         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
1006         instead of next_real_insn.
1008 2013-04-03  Marek Polacek  <polacek@redhat.com>
1010         PR sanitizer/55702
1011         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
1013 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1015         PR target/56809
1016         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
1017         next_real_insn.
1018         (thumb1_output_casesi): Likewise.
1019         (thumb2_output_casesi): Likewise.
1021 2013-04-03  Richard Biener  <rguenther@suse.de>
1023         PR tree-optimization/56817
1024         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
1025         Split out ...
1026         (tree_unroll_loops_completely_1): ... new function to manually
1027         walk the loop tree, properly defering outer loops of unrolled
1028         loops to later iterations.
1030 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
1032         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
1033         (vectorizable_load): Likewise.
1034         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
1035         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
1037 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
1039         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
1040         BIT_FIELD_REF.
1042 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1044         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
1046 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
1048         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
1050 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
1052         PR tree-optimization/56790
1053         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
1054         folding.
1056 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
1058         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
1059         Handle VEC_MERGE.
1060         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
1061         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
1062         equal arguments.
1064 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
1066         PR c/19449
1067         * tree.h (force_folding_builtin_constant_p): New decl.
1068         * builtins.c (force_folding_builtin_constant_p): New variable.
1069         (fold_builtin_constant_p): Fold immediately also if
1070         force_folding_builtin_constant_p.
1072 2013-04-03  Richard Biener  <rguenther@suse.de>
1074         PR tree-optimization/56812
1075         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
1076         DRs of the same interleaving chain are independent.
1078 2013-04-02  Jason Merrill  <jason@redhat.com>
1080         * gdbinit.in (pbb): Use debug fn.
1082 2013-04-02  Lawrence Crowl  <crowl@google.com>
1084         * sese.h (struct ivtype_map_elt_s): Remove unused.
1085         (extern debug_ivtype_map): Remove unused.
1086         (extern eq_ivtype_map_elts): Remove unused.
1087         * sese.c (debug_ivtype_map): Removed unused.
1088         (debug_ivtype_map_1): Removed unused.
1089         (debug_ivtype_elt): Remove unused.
1090         (eq_ivtype_map_elts): Remove unused.
1093 2013-04-02  Kai Tietz  <ktietz@redhat.com>
1095         PR target/52790
1096         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
1097         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
1098         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
1099         function.
1100         (legitimize_pe_coff_symbol): Likewise.
1101         (is_imported_p): New helper-function.
1102         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
1103         for Windows x64 targets.
1104         (ix86_expand_prologue): Optimize for pe-coff targets.
1105         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
1106         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
1107         medium/large code-model.
1108         (legitimize_pic_address): Likewise.
1109         (legitimize_tls_address): Likewise.
1110         (ix86_expand_call): Likewise.
1111         (x86_output_mi_thunk): Likewise.
1112         (get_dllimport_decl): Add new beimport argument.
1113         (construct_plt_address): Don't assert for x64 pe-coff targets.
1114         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
1115         targets.
1116         (SYMBOL_FLAG_STUBVAR): New macro.
1117         (SYMBOL_REF_STUBVAR_P): Likewise.
1118         * config/i386/winnt.c (stub_list): New structure.
1119         (stub_head): New local variable.
1120         (i386_pe_record_stub): New function.
1121         (i386_pe_file_end): Emit refptr-stubs.
1123 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
1125         PR rtl-optimization/56745
1126         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
1127         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
1129         PR c++/34949
1130         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
1131         and both of them are MEM_REFs, just compare first argument for
1132         equality and attempt to deal even with differing offsets.
1134         PR c++/34949
1135         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
1136         of gimple_clobber_p to be MEM_REF.
1137         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
1138         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
1139         after gimplification.
1140         * asan.c (get_mem_ref_of_assignment): Don't instrument
1141         gimple_clobber_p stmts.
1142         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
1143         gimple_clobber_p stmt if they have MEM_REF lhs and
1144         are dead because of another gimple_clobber_p stmt.
1145         * tree-ssa-live.c (clear_unused_block_pointer): Treat
1146         gimple_clobber_p stmts like debug stmts.
1147         (remove_unused_locals): Remove clobbers with MEM_REF lhs
1148         that refer to unused VAR_DECLs or uninitialized values.
1149         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
1150         gimple_clobber_p stmts if they refer to removed parameters.
1151         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
1152         formatting.
1154 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
1156         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
1157         using SWI48 mode attribute.
1159 2013-04-02  Wei Mi  <wmi@google.com>
1161         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
1162         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
1163         *<rotate_insn><mode>3_mask in i386.md.
1165 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1167         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
1169 2013-04-02  Richard Biener  <rguenther@suse.de>
1171         PR tree-optimization/56778
1172         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
1173         Runtime alias tests are not supported for gather loads.
1174         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
1175         stmts referenced from SSA operands before updating SSA form.
1177 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
1178             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1180         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
1181         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
1182         * config/arm/cortex-a53.md: New file.
1183         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
1184         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
1185         * config/arm/arm.c (arm_issue_rate): Likewise.
1186         * config/arm/arm-tune.md: Regenerate
1187         * config/arm/arm-tables.opt: Regenerate.
1188         * config/arm/arm-cores.def: Add cortex-a53.
1190 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
1192         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
1193         non-static link.
1195 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
1197         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
1198         scalar load/store operations using B/H registers.
1199         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
1201 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
1203         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
1204         scalar move.
1205         * config/aarch64/aarch64.c
1206         (aarch64_simd_scalar_immediate_valid_for_move): New.
1207         * config/aarch64/aarch64-protos.h
1208         (aarch64_simd_scalar_immediate_valid_for_move): New.
1209         * config/aarch64/constraints.md (Dh, Dq): New.
1210         * config/aarch64/iterators.md (hq): New.
1212 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
1214         * reorg.c (get_branch_condition): Deal with conditional returns.
1215         (fill_simple_delay_slots): Remove dead code dealing with jumps.
1217 2013-04-01  Wei Mi  <wmi@google.com>
1219         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
1220         Truncate operand 2 using %b asm operand modifier.
1221         (*<shift_insn><mode>3_mask): Ditto.
1222         (*<rotate_insn><mode>3_mask): Ditto.
1224 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
1226         PR middle-end/56798
1227         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
1229 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
1231         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
1232         of next_real_insn.
1233         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
1235 2013-03-30  Lawrence Crowl  <crowl@google.com>
1237         * dse.c (clear_alias_sets): Remove never set.
1238         (disqualified_clear_alias_sets): Remove never set.
1239         (clear_alias_mode_pool): Remove never set.
1240         (dse_step0): Remove condition that is never true.
1241         (canon_address): Remove condition that is never true.
1242         (dse_step7): Remove condition that is never true.
1243         (rest_of_handle_dse): Remove condition that is never true.
1244         (rest_of_handle_dse::did_global): Remove never read from above.
1245         (dse_step2_spill): Remove never called from above.
1246         (dse_step5_spill): Remove never called from above.
1248 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
1250         * doc/md.texi (Standard Names) <casesi>: Update documentation for
1251         JUMP_TABLE_DATA changes.
1252         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
1253         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
1254         (Insns) <jump_table_data>: New entry.
1255         * doc/tm.texi: Regenerate.
1257         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
1259         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
1260         for table jump at the end of a basic block using tablejump_p.
1261         * targhooks.c (default_invalid_within_doloop): Likewise.
1262         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
1263         target hook implementation that is identical to the default hook.
1264         (rs6000_invalid_within_doloop): Remove.
1266         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
1267         unused variable from tablejump_p call.
1269         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
1270         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
1271         (INSN_DELETED_P): Likewise.
1272         (emit_jump_table_data): New prototype.
1273         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
1274         after 4th as unused.
1275         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
1276         * sched-vis.c (print_insn): Likewise.
1277         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
1278         insn for compatibility with back ends that use next_active_insn to
1279         identify jump table data.
1280         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
1281         (remove_insn): Likewise.
1282         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
1283         to be emitted.
1284         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
1285         (emit_jump_table_data): New function.
1287         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
1288         basic block, a JUMP_TABLE_DATA never is.
1289         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
1290         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
1291         off from code handling real insns.
1292         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
1293         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
1294         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
1295         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
1296         is not a NONDEBUG_INSN_P.
1297         * ira-costs.c (scan_one_insn): Likewise.
1298         * jump.c (mark_all_labels): Likewise.
1299         (mark_jump_label_1): Likewise.
1300         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
1301         * lra.c (get_insn_freq): Expect all insns reaching here to be in
1302         a basic block.
1303         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
1304         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
1305         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
1306         JUMP_TABLE_DATA_P insns.
1307         (calculate_elim_costs_all_insns): Likewise.
1308         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
1309         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
1310         (delete_output_reload): Code style fixups.
1311         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
1312         insn flags on this non-insn.
1313         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
1314         as scheduling barriers, for pre-change compatibility.
1315         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
1316         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
1318         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
1319         redundant JUMP_TABLE_DATA_P test.
1320         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
1321         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
1322         (frv_for_each_packet): Likewise.
1323         * config/i386/i386.c (min_insn_size): Likewise.
1324         (ix86_avoid_jump_mispredicts): Likewise.
1325         * config/m32r/m32r.c (m32r_is_insn): Likewise.
1326         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
1327         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
1328         (mips16_insn_length): Robustify.
1329         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
1330         (mips16_split_long_branches): Likewise.
1331         * config/pa/pa.c (pa_combine_instructions): Likewise.
1332         * config/rs6000/rs6000.c (get_next_active_insn): Treat
1333         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
1334         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
1335         as contributing to pool range lengths.
1336         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
1337         Remove redundant JUMP_TABLE_DATA_P test.
1338         (sh_loop_align): Likewise.
1339         (split_branches): Likewise.
1340         (sh_insn_length_adjustment): Likewise.
1341         * config/spu/spu.c (get_branch_target): Likewise.
1343 2013-03-29  Jan Hubicka  <jh@suse.cz>
1345         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
1346         gcov streaming; stream hot bb threshold to ltrans.
1347         * predict.c (get_hot_bb_threshold): Break out from ....
1348         (maybe_hot_count_p): ... here.
1349         (set_hot_bb_threshold): New function.
1350         * lto-section-in.c (lto_section_name): Add profile.
1351         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
1352         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
1353         and data-streamer.h
1354         (histogram_entry): New structure.
1355         (histogram, histogram_pool): New global vars.
1356         (histogram_hash): New structure.
1357         (histogram_hash::hash): New method.
1358         (histogram_hash::equal): Likewise.
1359         (account_time_size): New function.
1360         (cmp_counts): New function.
1361         (dump_histogram): New function.
1362         (ipa_profile_generate_summary): New function.
1363         (ipa_profile_write_summary): New function.
1364         (ipa_profile_read_summary): New function.
1365         (ipa_profile): Decide on threshold.
1366         (pass_ipa_profile): Add ipa_profile_write_summary and
1367         ipa_profile_read_summary.
1368         * Makefile.in (ipa.o): Update dependencies.
1369         * lto-streamer.h (LTO_section_ipa_profile): New section.
1371 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1373         * tree.h (VAR_P): New.
1375 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
1377         PR lto/56777
1378         * doc/invoke.texi ([-fwhole-program]): Fix typo.
1380 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
1382         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
1383         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
1384         (control_flow_insn_p): Likewise.
1385         * cfgrtl.c (duplicate_insn_chain): Likewise.
1386         * final.c (get_attr_length_1): Likewise.
1387         (shorten_branches): Likewise.
1388         (final_scan_insn): Likewise.
1389         * function.c (instantiate_virtual_regs): Likewise.
1390         * gcse.c (insert_insn_end_basic_block): Likewise.
1391         * ira-costs.c (scan_one_insn): Likewise.
1392         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
1393         * lra.c (check_rtl): Likewise.
1394         * reload1.c (elimination_costs_in_insn): Likewise.
1395         * reorg.c (follow_jumps): Likewise.
1397         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
1398         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
1399         (thumb_far_jump_used_p): Likewise.
1400         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
1401         (workaround_speculation): Likewise.
1402         (add_sched_insns_for_speculation): Likewise.
1403         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
1404         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
1405         (frv_for_each_packet): Likewise.
1406         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
1407         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
1408         (final_emit_insn_group_barriers): Likewise.
1409         * config/m32r/m32r.c (m32r_is_insn): Likewise.
1410         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
1411         (mips16_insn_length): Likewise.
1412         * config/pa/pa.c (pa_reorg): Likewise.
1413         (pa_combine_instructions): Likewise.
1414         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
1415         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
1416         (sh_reorg): Likewise.
1417         (split_branches): Likewise.
1418         * config/spu/spu.c (get_branch_target): Likewise.
1420         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
1421         JUMP_TABLE_DATA_P.
1423 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
1425         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
1426         Fix declaration name.
1428 2013-03-28  Lawrence Crowl  <crowl@google.com>
1430         * graphds.h (struct graph.indicies): Remove unused.
1431         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
1432         (SCOP_ORIGINAL_PDDRS): Remove unused.
1433         * sese.h (extern insert_loop_close_phis): Removed unused.
1434         (extern insert_guard_phis): Removed unused.
1435         (extern ivtype_map_elt_info): Removed unused.
1436         (new_ivtype_map_elt): Removed unused.
1437         * sese.c (ivtype_map_elt_info): Removed unused.
1439 2013-03-28  Lawrence Crowl  <crowl@google.com>
1441         * Makefile.in: Add several missing include dependences.
1442         (DUMPFILE_H): New.
1443         (test-dump.o): New.  This object is not added to any executable,
1444         but is present for ad-hoc testing.
1445         * bitmap.c
1446         (debug (const bitmap_head_def &)): New.
1447         (debug (const bitmap_head_def *)): New.
1448         * bitmap.h
1449         (extern debug (const bitmap_head_def &)): New.
1450         (extern debug (const bitmap_head_def *)): New.
1451         * cfg.c
1452         (debug (edge_def &)): New.
1453         (debug (edge_def *)): New.
1454         * cfghooks.c
1455         (debug (basic_block_def &)): New.
1456         (debug (basic_block_def *)): New.
1457         * dumpfile.h
1458         (dump_node (const_tree, int, FILE *)): Correct source file.
1459         * dwarf2out.c
1460         (debug (die_struct &)): New.
1461         (debug (die_struct *)): New.
1462         * dwarf2out.h
1463         (extern debug (die_struct &)): New.
1464         (extern debug (die_struct *)): New.
1465         * gimple-pretty-print.c
1466         (debug (gimple_statement_d &)): New.
1467         (debug (gimple_statement_d *)): New.
1468         * gimple-pretty-print.h
1469         (extern debug (gimple_statement_d &)): New.
1470         (extern debug (gimple_statement_d *)): New.
1471         * ira-build.c
1472         (debug (ira_allocno_copy &)): New.
1473         (debug (ira_allocno_copy *)): New.
1474         (debug (ira_allocno &)): New.
1475         (debug (ira_allocno *)): New.
1476         * ira-int.h
1477         (extern debug (ira_allocno_copy &)): New.
1478         (extern debug (ira_allocno_copy *)): New.
1479         (extern debug (ira_allocno &)): New.
1480         (extern debug (ira_allocno *)): New.
1481         * ira-lives.c
1482         (debug (live_range &)): New.
1483         (debug (live_range *)): New.
1484         * lra-int.h
1485         (debug (lra_live_range &)): New.
1486         (debug (lra_live_range *)): New.
1487         * lra-lives.c
1488         (debug (lra_live_range &)): New.
1489         (debug (lra_live_range *)): New.
1490         * omega.c
1491         (debug (omega_pb_d &)): New.
1492         (debug (omega_pb_d *)): New.
1493         * omega.h
1494         (extern debug (omega_pb_d &)): New.
1495         (extern debug (omega_pb_d *)): New.
1496         * print-rtl.c
1497         (debug (const rtx_def &)): New.
1498         (debug (const rtx_def *)): New.
1499         * print-tree.c
1500         (debug_tree (tree): Move within file.
1501         (debug_raw (const tree_node &)): New.
1502         (debug_raw (const tree_node *)): New.
1503         (dump_tree_via_hooks (const tree_node *, int)): New.
1504         (debug (const tree_node &)): New.
1505         (debug (const tree_node *)): New.
1506         (debug_verbose (const tree_node &)): New.
1507         (debug_verbose (const tree_node *)): New.
1508         (debug_head (const tree_node &)): New.
1509         (debug_head (const tree_node *)): New.
1510         (debug_body (const tree_node &)): New.
1511         (debug_body (const tree_node *)): New.
1512         (debug_vec_tree (tree): Move and reimplement in terms of dump.
1513         (debug (vec<tree, va_gc> &)): New.
1514         (debug (vec<tree, va_gc> *)): New.
1515         * rtl.h
1516         (extern debug (const rtx_def &)): New.
1517         (extern debug (const rtx_def *)): New.
1518         * sbitmap.c
1519         (debug_raw (simple_bitmap_def &)): New.
1520         (debug_raw (simple_bitmap_def *)): New.
1521         (debug (simple_bitmap_def &)): New.
1522         (debug (simple_bitmap_def *)): New.
1523         * sbitmap.h
1524         (extern debug (simple_bitmap_def &)): New.
1525         (extern debug (simple_bitmap_def *)): New.
1526         (extern debug_raw (simple_bitmap_def &)): New.
1527         (extern debug_raw (simple_bitmap_def *)): New.
1528         * sel-sched-dump.c
1529         (debug (vinsn_def &)): New.
1530         (debug (vinsn_def *)): New.
1531         (debug_verbose (vinsn_def &)): New.
1532         (debug_verbose (vinsn_def *)): New.
1533         (debug (expr_def &)): New.
1534         (debug (expr_def *)): New.
1535         (debug_verbose (expr_def &)): New.
1536         (debug_verbose (expr_def *)): New.
1537         (debug (vec<rtx> &)): New.
1538         (debug (vec<rtx> *)): New.
1539         * sel-sched-dump.h
1540         (extern debug (vinsn_def &)): New.
1541         (extern debug (vinsn_def *)): New.
1542         (extern debug_verbose (vinsn_def &)): New.
1543         (extern debug_verbose (vinsn_def *)): New.
1544         (extern debug (expr_def &)): New.
1545         (extern debug (expr_def *)): New.
1546         (extern debug_verbose (expr_def &)): New.
1547         (extern debug_verbose (expr_def *)): New.
1548         (extern debug (vec<rtx> &)): New.
1549         (extern debug (vec<rtx> *)): New.
1550         * sel-sched-ir.h
1551         (_list_iter_cond_expr): Make inline instead of static.
1552         * sreal.c
1553         (debug (sreal &)): New.
1554         (debug (sreal *)): New.
1555         * sreal.h
1556         (extern debug (sreal &)): New.
1557         (extern debug (sreal *)): New.
1558         * tree.h
1559         (extern debug_raw (const tree_node &)): New.
1560         (extern debug_raw (const tree_node *)): New.
1561         (extern debug (const tree_node &)): New.
1562         (extern debug (const tree_node *)): New.
1563         (extern debug_verbose (const tree_node &)): New.
1564         (extern debug_verbose (const tree_node *)): New.
1565         (extern debug_head (const tree_node &)): New.
1566         (extern debug_head (const tree_node *)): New.
1567         (extern debug_body (const tree_node &)): New.
1568         (extern debug_body (const tree_node *)): New.
1569         (extern debug (vec<tree, va_gc> &)): New.
1570         (extern debug (vec<tree, va_gc> *)): New.
1571         * tree-cfg.c
1572         (debug (struct loop &)): New.
1573         (debug (struct loop *)): New.
1574         (debug_verbose (struct loop &)): New.
1575         (debug_verbose (struct loop *)): New.
1576         * tree-dump.c: Add header dependence.
1577         * tree-flow.h
1578         (extern debug (struct loop &)): New.
1579         (extern debug (struct loop *)): New.
1580         (extern debug_verbose (struct loop &)): New.
1581         (extern debug_verbose (struct loop *)): New.
1582         * tree-data-ref.c
1583         (debug (data_reference &)): New.
1584         (debug (data_reference *)): New.
1585         (debug (vec<data_reference_p> &)): New.
1586         (debug (vec<data_reference_p> *)): New.
1587         (debug (vec<ddr_p> &)): New.
1588         (debug (vec<ddr_p> *)): New.
1589         * tree-data-ref.h
1590         (extern debug (data_reference &)): New.
1591         (extern debug (data_reference *)): New.
1592         (extern debug (vec<data_reference_p> &)): New.
1593         (extern debug (vec<data_reference_p> *)): New.
1594         (extern debug (vec<ddr_p> &)): New.
1595         (extern debug (vec<ddr_p> *)): New.
1596         * tree-ssa-alias.c
1597         (debug (pt_solution &)): New.
1598         (debug (pt_solution *)): New.
1599         * tree-ssa-alias.h
1600         (extern debug (pt_solution &)): New.
1601         (extern debug (pt_solution *)): New.
1602         * tree-ssa-alias.c
1603         (debug (_var_map &)): New.
1604         (debug (_var_map *)): New.
1605         (debug (tree_live_info_d &)): New.
1606         (debug (tree_live_info_d *)): New.
1607         * tree-ssa-alias.h
1608         (extern debug (_var_map &)): New.
1609         (extern debug (_var_map *)): New.
1610         (extern debug (tree_live_info_d &)): New.
1611         (extern debug (tree_live_info_d *)): New.
1613 2013-03-28  Jan Hubicka  <jh@suse.cz>
1615         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
1617 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
1619         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
1620         record only when desired or required.
1622 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
1624         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
1625         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
1627 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
1629         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
1630         (*andsi3_compare0_uxtw): New pattern.
1631         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
1632         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
1634 2013-03-28  Jan Hubicka  <jh@suse.cz>
1636         * data-streamer-in.c (streamer_read_gcov_count): New function.
1637         * gimple-streamer-out.c: Include value-prof.h.
1638         (output_gimple_stmt): Output histogram.
1639         (output_bb): Use streamer_write_gcov_count.
1640         * value-prof.c: Include data-streamer.h
1641         (dump_histogram_value): Add HIST_TYPE_MAX.
1642         (stream_out_histogram_value): New function.
1643         (stream_in_histogram_value): New function.
1644         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
1645         (stream_out_histogram_value, stream_in_histogram_value): Declare.
1646         * data-streamer-out.c (streamer_write_gcov_count): New function.
1647         (streamer_write_gcov_count_stream): New function.
1648         * lto-cgraph.c (lto_output_edge): Update counter streaming.
1649         (lto_output_node): Likewise.
1650         (input_node, input_edge): Likewise.
1651         * lto-streamer-out.c (output_cfg): Update streaming.
1652         * lto-streamer-in.c (input_cfg): Likewise.
1653         * data-streamer.h (streamer_write_gcov_count,
1654         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
1655         * gimple-streamer-in.c: Include value-prof.h
1656         (input_gimple_stmt): Input histograms.
1657         (input_bb): Update profile streaming.
1659 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
1661         * genmodes.c (emit_max_int): New function.
1662         (emit_insn_modes_h): Added call to emit_max_function.
1663         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
1664         Added doc.
1665         * machmode.def: Fixed comment.
1667 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
1669         * combine.c (try_combine): Removed useless assert.
1670         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
1672 2013-03-28  Marek Polacek  <polacek@redhat.com>
1673             Richard Biener  <rguenther@suse.de>
1675         PR tree-optimization/56695
1676         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
1677         build signed result of a vector comparison.
1678         * tree-cfg.c (verify_gimple_comparison): Check that a result
1679         of a vector comparison has signed type.
1681 2013-03-28  Richard Biener  <rguenther@suse.de>
1683         PR tree-optimization/37021
1684         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
1685         do not restrict gaps between groups.
1686         * tree-vect-stmts.c (vectorizable_load): Properly account for
1687         a gap between groups.
1689 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
1691         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
1692         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
1693         is not enabled.
1695 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
1697         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
1698         * doc/extend.texi (Named Address Spaces): Ditto.
1699         (Variable Attributes): Ditto.
1701 2013-03-27  Kai Tietz  <ktietz@redhat.com>
1703         * config.build: Add support for cygwin x64 target.
1704         * config.gcc: Likewise.
1705         * config.host: Likewise.
1706         * configure.ac: Likewise
1707         * configure: Regenerated.
1709 2013-03-27 Kai Tietz  <ktietz@redhat.com>
1711         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
1712         * config/i386/t-cygwin-w64: New file.
1713         * config/i386/cygwin-w64.h: New file.
1714         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
1715         and add support for x64-cygwin target.
1716         (CPP_SPEC): Likewise.
1717         (CXX_WRAP_SPEC_LIST): Undefine before define.
1718         (LIBGCJ_SONAME): Use 15 as version.
1720 2013-03-27  Richard Biener  <rguenther@suse.de>
1722         PR tree-optimization/56716
1723         * tree-ssa-structalias.c (perform_var_substitution): Adjust
1724         dumping for ref nodes.
1726 2013-03-27  Martin Jambor  <mjambor@suse.cz>
1728         PR tree-optimization/55334
1729         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
1730         restricted pointers to arrays.
1732 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1734         * Makefile.in (.SUFFIXES): Add .cc.
1735         (.c.o): Apply same recipe for implicit rule .cc.o.
1737 2013-03-27  Richard Biener  <rguenther@suse.de>
1739         PR tree-optimization/37021
1740         * tree-vect-data-refs.c (vect_check_strided_load): Allow
1741         REALPART/IMAGPART_EXPRs around the supported refs.
1742         * tree-ssa-structalias.c (find_func_aliases): Assume that
1743         floating-point values are not used to transfer pointers.
1745 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1747         * target.def (TARGET_HAS_IFUNC_P): New target hook.
1748         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
1749         * doc/tm.texi: Regenerate.
1750         * targhooks.h (default_has_ifunc_p): New.
1751         * targhooks.c (default_has_ifunc_p): Ditto.
1752         * config/linux-protos.h: New file.
1753         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
1754         this hook for linux which disables support of indirect functions in
1755         android.
1756         * config/linux-android.c: New file.
1757         * config/t-linux-android.c: Ditto.
1758         * config.gcc: Added new object file linux-android.o.
1759         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
1760         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
1761         * varasm.c (do_assemble_alias): Likewise.
1762         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
1763         doesn't support indirect functions.
1764         * configure: Regenerate.
1766 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
1768         PR target/56102
1769         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
1770         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
1771         mult-word mode.
1773 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1775         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
1777 2013-03-27  Terry Guo  <terry.guo@arm.com>
1779         * config/arm/arm-cores.def: Added core cortex-r7.
1780         * config/arm/arm-tune.md: Regenerated.
1781         * config/arm/arm-tables.opt: Regenerated.
1782         * doc/invoke.texi: Added entry for core cortex-r7.
1784 2013-03-27  Walter Lee  <walt@tilera.com>
1786         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
1787         double-decrement of next_scratch_regno.
1789 2013-03-27  Walter Lee  <walt@tilera.com>
1791         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
1792         input operands.
1793         (insn_v1mulus): Ditto.
1794         (insn_v2muls): Ditto.
1796 2013-03-27  Walter Lee  <walt@tilera.com>
1798         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
1799         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
1801 2013-03-27  Walter Lee  <walt@tilera.com>
1803         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
1804         (*sibcall_value): Ditto.
1806 2013-03-27  Walter Lee  <walt@tilera.com>
1808         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
1809         (insn_mnz_v8qi): ... this ...
1810         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
1811         vector equivalent.
1812         (insn_v<n>mnz): Replaced by ...
1813         (insn_v1mnz): ... this ...
1814         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
1815         equivalent.
1816         (insn_mz_<mode>): Replaced by ...
1817         (insn_mz_v8qi): ... this ...
1818         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
1819         vector equivalent.
1820         (insn_v<n>mz): Replaced by ...
1821         (insn_v1mz): ... this ...
1822         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
1823         equivalent.
1825 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
1827         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
1829 2013-03-26  Roland McGrath  <mcgrathr@google.com>
1831         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
1832         than fprintf with a non-constant, non-format string.
1834 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
1836         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
1837         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
1838         operand 0 predicate.
1839         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
1840         attribute.  Use general_x64nomem_operand as operand 1 predicate.
1841         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
1842         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
1843         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
1844         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
1845         (mov<mode>_insv_1): Remove expander.  Merge insn with
1846         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
1847         Use general_x64nomem_operand as operand 1 predicate.
1848         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
1849         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
1850         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
1851         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
1852         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
1853         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
1854         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
1855         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
1856         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
1857         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
1858         (general_x64nomem_operand): Ditto.
1860 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1862         * config/rtems.opt: Add -pthread option.
1864 2013-03-26  Richard Biener  <rguenther@suse.de>
1866         * alias.c (find_base_term): Avoid redundant and not used recursion.
1867         (base_alias_check): Get the initial base term from the caller.
1868         (true_dependence_1): Compute and pass base terms to base_alias_check.
1869         (write_dependence_p): Likewise.
1870         (may_alias_p): Likewise.
1872 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
1874         * config/aarch64/aarch64.c (aarch64_classify_address): Support
1875         PC-relative load in SI modes and above only.
1877 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
1879         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
1880         * config/arm/iwmmxt.md (WCGR0): Update.
1881         (WCGR1, WCGR2, WCGR3): Likewise.
1883 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
1885         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
1886         Use x64 and nox64 isa attributes.
1888 2013-03-26  Richard Biener  <rguenther@suse.de>
1890         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
1891         alignment computations and rely on get_object_alignment_1
1892         for the !TYPE_P case.
1893         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
1895 2013-03-26  Walter Lee  <walt@tilera.com>
1897         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
1898         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
1900 2013-03-25  Jeff Law  <law@redhat.com>
1902         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
1903         check for INTEGRAL_TYPE_P that was missing due to checking in
1904         wrong version of prior patch.
1906 2013-03-25  Walter Lee  <walt@tilera.com>
1908         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
1909         TILEGX_INSN_SHUFFLEBYTES1.
1910         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
1911         shufflebytes1.
1912         (tilegx_builtins): Ditto.
1913         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
1915 2013-03-25  Walter Lee  <walt@tilera.com>
1917         * config/tilegx/tilegx.md (floatsisf2): New pattern.
1918         (floatunssisf2): New pattern.
1919         (floatsidf2): New pattern.
1920         (floatunssidf2): New pattern.
1922 2013-03-25  Walter Lee  <walt@tilera.com>
1924         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
1925         tests for constraint J, K, N, P.
1927 2013-03-25  Walter Lee  <walt@tilera.com>
1929         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
1930         Use indirect/pcrel encoding.
1931         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
1932         Ditto.
1934 2013-03-25  Steve Ellcey  <sellcey@mips.com>
1936         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
1937         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
1938         * config/mips/mips.c (mips_option_override): Set IMADD default.
1939         * config/mips/mips.h (PTF_AVOID_IMADD): New.
1940         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
1941         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
1942         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
1943         * doc/invoke.texi (-mimadd/-mno-imadd): New.
1945 2013-03-25  Jeff Law  <law@redhat.com>
1947         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
1948         slightly to avoid creating and folding useless trees.  Simplify
1949         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
1951 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
1953         * config/i386/i386.md (*zero_extendsidi2): Merge with
1954         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
1955         * config/i386/predicates.md (x86_64_zext_operand): Rename from
1956         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
1957         targets.  Clarify comment.
1959 2013-03-25  Martin Jambor  <mjambor@suse.cz>
1961         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
1962         pass-through jump functions differently.
1963         (ipa_read_jump_function): Likewise.  Also use setter functions to set
1964         up jump functions.
1966 2013-03-25  Martin Jambor  <mjambor@suse.cz>
1968         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
1969         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
1970         process it.
1971         (ipa_get_indirect_edge_target): New function.
1972         (devirtualization_time_bonus): New parameter known_aggs, pass it to
1973         ipa_get_indirect_edge_target.  Update all callers.
1974         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
1975         ipa_get_indirect_edge_target_1 instead of calling
1976         ipa_get_indirect_edge_target.
1977         (create_specialized_node): Pass aggvlas to
1978         ipcp_discover_new_direct_edges.
1980 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1982         * config/arm/arm.md (f_sels, f_seld): New types.
1983         (*cmov<mode>): New pattern.
1984         * config/arm/predicates.md (arm_vsel_comparison_operator): New
1985         predicate.
1987 2013-03-25  Kai Tietz  <ktietz@redhat.com>
1989         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
1990         POSIX-printf for mingw-hosted  builds.
1992 2013-03-25  Richard Biener  <rguenther@suse.de>
1994         PR middle-end/56694
1995         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
1996         must-not-throw stmt location.
1998 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2000         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
2001         Emit load-acquire versions when acq is true.
2002         (arm_emit_store_exclusive): Add rel parameter.
2003         Emit store-release versions when rel is true.
2004         (arm_split_compare_and_swap): Use acquire-release instructions
2005         instead.
2006         of barriers when appropriate.
2007         (arm_split_atomic_op): Likewise.
2008         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
2009         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
2010         (VUNSPEC_SLX): Likewise.
2011         (VUNSPEC_LDA): Likewise.
2012         (VUNSPEC_STL): Likewise.
2013         * config/arm/sync.md (atomic_load<mode>): New pattern.
2014         (atomic_store<mode>): Likewise.
2015         (arm_load_acquire_exclusive<mode>): Likewise.
2016         (arm_load_acquire_exclusivesi): Likewise.
2017         (arm_load_acquire_exclusivedi): Likewise.
2018         (arm_store_release_exclusive<mode>): Likewise.
2020 2013-03-25  Catherine Moore  <clm@codesourcery.com>
2022         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
2023         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
2024         * config/mip/predicates.md (lwsp_swsp_operand,
2025         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
2026         sb16_operand, db4_operand, db7_operand, ib3_operand,
2027         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
2028         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
2029         andi16_operand): New predicates.
2030         * config/mips/mips.md (compression): New attribute.
2031         (enabled): New attribute.
2032         (length): Consider compression in computing length.
2033         (shift_compression): New code attribute.
2034         (*add<mode>3): New operands. Record compression.
2035         (sub<mode>3): Likewise.
2036         (one_cmpl<mode>2): Likewise.
2037         (*and<mode>3): Likewise.
2038         (*ior<mode>3): Likewise.
2039         (unnamed pattern for xor): Likewise.
2040         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
2041         (*<optab><mode>3): Likewise.
2042         (*mov<mode>_internal: Likewise.
2043         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
2044         (mips_unsigned_immediate_p): New.
2045         (umips_lwsp_swsp_address_p): New.
2046         (m16_based_address_p): New.
2047         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
2048         (mips_unsigned_immediate_p): New prototype.
2049         (lwsp_swsp_address_p): New prototype.
2050         (m16_based_address_p): New prototype.
2051         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
2052         (mips_signed_immediate_p): New function.
2053         (m16_based_address_p): New function.
2054         (lwsp_swsp_address_p): New function.
2055         (mips_print_operand_punctuation): Recognize short delay slot insns
2056         for microMIPS.add<mode>3"
2058 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2060         PR target/56720
2061         * config/arm/iterators.md (v_cmp_result): New mode attribute.
2062         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
2064 2013-03-25  Richard Biener  <rguenther@suse.de>
2066         PR tree-optimization/56689
2067         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
2068         any edge.
2070 2013-03-25  Richard Biener  <rguenther@suse.de>
2072         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
2073         of bitmap.
2074         (memory_references): Likewise.
2075         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
2076         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
2077         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
2078         (gather_mem_refs_in_loops): Fold into ...
2079         (analyze_memory_references): ... this.  Move initialization
2080         to tree_ssa_lim_initialize.
2081         (fill_always_executed_in): Rename to ...
2082         (fill_always_executed_in_1): ... this.
2083         (fill_always_executed_in): Move contains_call computation to
2084         this new function from ...
2085         (tree_ssa_lim_initialize): ... here.
2086         (tree_ssa_lim): Call fill_always_executed_in.
2088 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
2090         * postreload.c (reload_combine): Fix code detecting returns.
2092 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
2094         * function.c (emit_use_return_register_into_block): On cc0 targets,
2095         do not emit the sequence between cc0 setter and user.
2097 2013-03-25  Kai Tietz  <ktietz@redhat.com>
2099         * config/i386/predicates.md (local_symbolic_operand): Interpret
2100         dll-imported symbols as none-local.
2102 2013-03-25  Richard Biener  <rguenther@suse.de>
2104         * tree-ssa-loop-im.c (struct depend): Remove.
2105         (struct lim_aux_data): Make depends a vec of gimples.
2106         (free_lim_aux_data): Adjust.
2107         (add_dependency): Likewise.
2108         (set_level): Likewise.
2110 2013-03-25  Richard Biener  <rguenther@suse.de>
2112         PR middle-end/56434
2113         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
2114         the pointer returned by calls with ECF_MALLOC set.
2116 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
2118         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
2120 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
2122         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
2123         using MMXMODE mode iterator.
2124         (*move<mode>_internal): Merge with *movv2sf_internal and
2125         *movv2sf_internal_rex64 using MMXMODE mode iterator.
2127 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
2129         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
2130         (record_last_mem_set_info): Likewise.
2132         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
2133         of XNEWVEC followed by memset.
2134         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
2136 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
2138         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
2139         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
2140         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
2141         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
2142         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
2143         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
2144         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
2145         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
2146         BARRIER_P instead of GET_CODE.
2148 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
2150         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
2151         inaccuracy in the probing code.
2153         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
2154         (ctrapdi4): Likewise.
2156 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
2158         * calls.c (expand_call): Add missing guard to code handling return
2159         of non-BLKmode structures in MSB.
2160         * function.c (expand_function_end): Likewise.
2162 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
2164         * combine.c (try_combine): Adjust comment.  Do not add the set of
2165         insn #0 if the destination indirectly is set or dies in insn #2.
2166         Tidy up code to distribute a new note.
2168 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
2170         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
2171         also for alternatives 16 and 17.
2173 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
2175         * config/i386/sse.md (*mov<mode>_internal): Merge with
2176         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
2177         Emit insn template depending on type attribute.  Use
2178         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
2179         movd instead of movq mnemonic for interunit moves.  Rewrite mode
2180         attribute calculation.  Remove unit attribute calculation.
2181         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
2182         Set prefix_data16 attribute for DImode ssemov types.
2183         Use Ym instead of y for SSE-MMX conversion alternatives.
2184         Reorder operand constraints.
2186 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
2188         * df.h (df_insn_delete): Adjust prototype.
2189         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
2190         and let it decide whether mark the basic block dirty.
2191         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
2192         * df-scan.c (df_insn_info_delete): New helper function, split
2193         off from df_insn_delete.
2194         (df_scan_free_bb_info): Use it.
2195         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
2196         Likewise.
2197         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
2198         that the insn is actually an insn and it has a non-NULL basic block.
2199         Do not mark basic block dirty if only deleting a DEBUG_INSN.
2201 2013-03-22  Richard Biener  <rguenther@suse.de>
2203         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
2204         dep_ref members.
2205         (mem_ref_alloc): Do not allocate them.
2206         (refs_independent_p): Do not query or maintain a cache.
2208 2013-03-22  Richard Biener  <rguenther@suse.de>
2210         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
2211         (gather_mem_refs_in_loops): Do not compute it.
2212         (analyze_memory_references): Do not allocate it.
2213         (tree_ssa_lim_finalize): Do not free it.
2214         (for_all_locs_in_loop): Do not query all_refs_in_loop.
2216 2013-03-22  Richard Biener  <rguenther@suse.de>
2218         * is-a.h (as_a): Use gcc_checking_assert.
2220 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
2222         * config/aarch64/aarch64.c (aarch64_print_operand): New
2223         format specifier for printing a constant in hex.
2224         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
2225         format specifier for printing second operand.
2227 2013-03-22  Richard Biener  <rguenther@suse.de>
2229         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
2230         bitmaps.
2231         (gather_mem_refs_in_loops): Perform store accumulation here.
2232         (create_vop_ref_mapping_loop): Remove.
2233         (create_vop_ref_mapping): Likewise.
2234         (analyze_memory_references): Initialize refs_stored_in_loop.
2235         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
2236         (record_indep_loop): Remove.
2237         (record_dep_loop): New function.
2238         (ref_indep_loop_p_1): Adjust to only walk over references
2239         in the loop, not its subloops.
2240         (ref_indep_loop_p): Rename to ...
2241         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
2242         maintaining a more fine-grained cache.
2243         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
2244         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
2246 2013-03-22  Richard Biener  <rguenther@suse.de>
2248         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
2249         (struct mem_ref): Make accesses_in_loop a vec of a vec of
2250         aggregate mem_ref_loc.
2251         (free_mem_ref_locs): Inline into ...
2252         (memref_free): ... this and adjust.
2253         (mem_ref_alloc): Adjust.
2254         (mem_ref_locs_alloc): Remove.
2255         (record_mem_ref_loc): Adjust.
2256         (get_all_locs_in_loop): Rewrite into ...
2257         (for_all_locs_in_loop): ... this iterator.
2258         (rewrite_mem_ref_loc): New functor.
2259         (rewrite_mem_refs): Use for_all_locs_in_loop.
2260         (sm_set_flag_if_changed): New functor.
2261         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
2262         (ref_always_accessed): New functor.
2263         (ref_always_accessed_p): Use for_all_locs_in_loop.
2265 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
2267         * tree-pass.h (PROP_gimple_lvec): New.
2268         * passes.c (dump_properties): Handle PROP_gimple_lvec.
2269         (init_optimization_passes): Move pass_lower_vector.
2270         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
2271         PROP_gimple_lvec.
2272         (pass_lower_vector): Provide PROP_gimple_lvec.
2273         (pass_lower_vector_ssa): Likewise.
2274         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
2276 2013-03-21  Mark Wielaard  <mjw@redhat.com>
2278         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
2280 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
2282         * config/i386/i386.md (*movdi_internal): Disparage slightly
2283         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
2284         conversion alternatives.
2286 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
2288         PR middle-end/48087
2289         * diagnostic.def (DK_WERROR): New kind.
2290         * diagnostic.h (werrorcount): Define.
2291         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
2292         promoted to DK_ERROR, increment DK_WERROR counter instead of
2293         DK_ERROR counter.
2294         * toplev.c (toplev_main): Call print_ignored_options even if
2295         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
2296         even if just werrorcount is non-zero.
2298         PR debug/55608
2299         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
2300         on failure.
2301         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
2302         (string_cst_pool_decl): New function.
2303         (optimize_one_addr_into_implicit_ptr): New function.
2304         (resolve_addr_in_expr): Optimize DWARF location expression
2305         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
2306         which doesn't live in memory, but has DW_AT_location or
2307         DW_AT_const_value, or refers to a string literal, into
2308         DW_OP_GNU_implicit_pointer.
2309         (optimize_location_into_implicit_ptr): New function.
2310         (resolve_addr): If removing DW_AT_location of a variable because
2311         it was DW_OP_addr of address of the variable, but the variable doesn't
2312         live in memory, try to emit const value attribute for the initializer.
2314 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
2316         * tree.h (VECTOR_TYPE_P): New macro.
2317         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
2318         TYPE_MODE): Use it.
2319         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
2320         VEC_COND_EXPR cannot be lvalues.
2321         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
2323 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
2325         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
2326         Restrict the transformation to equal modes.
2328 2013-03-21  Richard Biener  <rguenther@suse.de>
2330         PR tree-optimization/39326
2331         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
2332         (MEM_ANALYZABLE): Adjust.
2333         (record_mem_ref_loc): Move bitmap ops ...
2334         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
2335         unanalyzable refs, do not record locations for it.
2336         (analyze_memory_references): Allocate ref zero as shared
2337         unanalyzable ref.
2338         (refs_independent_p): Do not test for unanalyzed mems here.
2339         (ref_indep_loop_p_1): Special-case disambiguation against
2340         the unanalyzed ref.
2341         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
2343 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
2345         * config/arm/arm-protos.h (tune_params): Add
2346         prefer_neon_for_64bits field.
2347         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
2348         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
2349         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
2350         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
2351         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
2352         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
2353         (arm_option_override): Handle -mneon-for-64bits new option.
2354         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
2355         (prefer_neon_for_64bits): Declare new variable.
2356         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
2357         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
2358         (arch_enabled): Handle new arch types. Remove support for onlya8
2359         and nota8.
2360         (one_cmpldi2): Use new arch names.
2361         (zero_extend<mode>di2, extend<mode>di2): Ditto.
2362         * config/arm/arm.opt (mneon-for-64bits): Add option.
2363         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
2364         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
2365         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
2366         of onlya8.
2367         * doc/invoke.texi (-mneon-for-64bits): Document.
2369 2013-03-21  Richard Biener  <rguenther@suse.de>
2371         PR tree-optimization/39326
2372         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
2373         (sort_bbs_in_loop_postorder_cmp): New function.
2374         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
2376 2013-03-21  Richard Biener  <rguenther@suse.de>
2378         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
2379         (vect_insert_into_interleaving_chain): Likewise.
2380         (vect_drs_dependent_in_basic_block): Inline ...
2381         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
2382         split out from ...
2383         (vect_analyze_data_ref_dependence): ... here.  Simplify.
2384         (vect_check_interleaving): Simplify.
2385         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
2386         (vect_slp_analyze_data_ref_dependences): ... this new function.
2387         (dr_group_sort_cmp): New function.
2388         (vect_analyze_data_ref_accesses): Compute data-reference groups
2389         here instead of in vect_analyze_data_ref_dependence.  Use
2390         a more efficient algorithm.
2391         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
2392         vect_slp_analyze_data_ref_dependences.  Call
2393         vect_analyze_data_ref_accesses earlier.
2394         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
2395         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
2396         (vect_slp_analyze_data_ref_dependences): New prototype.
2398 2013-03-21  Richard Biener  <rguenther@suse.de>
2400         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
2401         ref is stored in the loop.
2402         (find_refs_for_sm): Walk only over all stores.
2403         (store_motion_loop): Allocate from lim_bitmap_obstack.
2404         (store_motion): Likewise.
2406 2013-03-21  Richard Biener  <rguenther@suse.de>
2408         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
2409         Update virtual SSA form.
2411 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2413         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
2414         * configure: Regenerate.
2415         * config.in: Regenerate.
2416         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
2417         if !HAVE_LD_EH_FRAME_CIEV3.
2419 2013-03-21  Richard Biener  <rguenther@suse.de>
2421         * tree-cfg.c (verify_expr_no_block): New function.
2422         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
2423         nor DECL_VALUE_EXPR have locations with associated blocks.
2424         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
2425         (clear_unused_block_pointer): Remove code dealing with
2426         blocks in DECL_DEBUG_EXPR locations.
2428 2013-03-21  Richard Biener  <rguenther@suse.de>
2430         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
2431         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
2432         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
2433         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
2434         instead of DECL_DEBUG_EXPR_IS_FROM.
2435         * gimplify.c (gimplify_modify_expr): Likewise.
2436         * tree-cfg.c (verify_expr_location_1): Likewise.
2437         * tree-complex.c (create_one_component_var): Likewise.
2438         * tree-sra.c (create_access_replacement): Likewise.
2439         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
2440         (clear_unused_block_pointer): Likewise.
2441         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
2442         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2443         * var-tracking.c (var_debug_decl): Likewise.
2444         (track_expr_p): Likewise.
2445         * tree-inline.c (add_local_variables): Likewise.  Set
2446         DECL_HAS_DEBUG_EXPR_P after copying it.
2447         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
2448         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
2450 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
2452         PR bootstrap/56656
2453         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
2454         * configure: Regenerate.
2455         * config.in: Regenerate.
2456         * config/i386/i386.md (*movdf_internal): Use
2457         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
2458         movd instead of movq mnemonic for interunit moves.
2459         (*movdi_internal): Ditto.
2461 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
2463         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
2464         (abd<mode>_3): New pattern.
2465         (aba<mode>_3): New pattern.
2466         (fabd<mode>_3): New pattern.
2468 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
2470         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
2471         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
2472         occurrence of REGISTER_PREFIX as its empty string.
2474 2013-03-20  Jeff Law  <law@redhat.com>
2476         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
2477         addititional equivalences for equality comparisons between an SSA_NAME
2478         and a constant where the SSA_NAME was set from a widening conversion.
2480 2013-03-20  Walter Lee  <walt@tilera.com>
2482         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
2484 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
2486         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
2487         depending on type attribute.
2488         (*movti_internal): Ditto.
2489         (*movtf_internal): Ditto.
2490         (*movxf_internal): Ditto.
2491         (*movdf_internal): Ditto.
2492         (*movsf_internal): Ditto.
2494 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
2496         * config/i386/i386.md (*movti_internal): Set prefix attribute to
2497         maybe_vex for sselog1 and ssemov types.
2498         (*movdi_internal): Reorder operand constraints.
2499         (*movsi_internal): Ditto.  Set prefix attribute to
2500         maybe_vex for sselog1 and ssemov types.
2501         (*movtf_internal): Set prefix attribute to maybe_vex
2502         for sselog1 and ssemov types.
2503         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
2504         DImode ssemov types.  Reorder operand constraints.
2505         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
2506         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
2507         attribute for SImode ssemov types.  Reorder operand constraints.
2509 2013-03-20  Martin Jambor  <mjambor@suse.cz>
2511         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
2512         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
2514 2013-03-20  Pat Haugen <pthaugen@us.ibm.com>
2516         * config/rs6000/predicates.md (indexed_address, update_address_mem
2517         update_indexed_address_mem): New predicates.
2518         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
2519         attribute for load/store instructions.
2520         * config/rs6000/dfp.md (movsd_store): Likewise.
2521         (movsd_load): Likewise.
2522         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
2523         (unnamed HI->DI extend define_insn): Likewise.
2524         (unnamed SI->DI extend define_insn): Likewise.
2525         (unnamed QI->SI extend define_insn): Likewise.
2526         (unnamed QI->HI extend define_insn): Likewise.
2527         (unnamed HI->SI extend define_insn): Likewise.
2528         (unnamed HI->SI extend define_insn): Likewise.
2529         (extendsfdf2_fpr): Likewise.
2530         (movsi_internal1): Likewise.
2531         (movsi_internal1_single): Likewise.
2532         (movhi_internal): Likewise.
2533         (movqi_internal): Likewise.
2534         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
2535         attribute for load/store instructions.
2536         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
2537         instructions.
2538         (mov<mode>_softfloat): Likewise.
2539         (mov<mode>_hardfloat32): Likewise.
2540         (mov<mode>_hardfloat64): Likewise.
2541         (mov<mode>_softfloat64): Likewise.
2542         (movdi_internal32): Likewise.
2543         (movdi_internal64): Likewise.
2544         (probe_stack_<mode>): Likewise.
2546 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
2548         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
2549         floating point, and decimal floating point to reload iterator.
2551         * config/rs6000/constraints.md (wl constraint): New constraints to
2552         return FLOAT_REGS if certain options are used to reduce the number
2553         of separate patterns that exist in the file.
2554         (wx constraint): Likewise.
2555         (wz constraint): Likewise.
2557         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
2558         -mdebug=reg, print wg, wl, wx, and wz constraints.
2559         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
2560         Initialize the reload functions for 64-bit binary/decimal floating
2561         point types.
2562         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
2563         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
2564         create the buffer on the stack to overcome not having a 32-bit
2565         load and store.
2566         (rs6000_emit_move): Likewise.
2567         (rs6000_secondary_memory_needed_rtx): Likewise.
2568         (rs6000_alloc_sdmode_stack_slot): Likewise.
2569         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
2570         via xxlxor, just like DFmode 0.0.
2572         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
2573         define as 1 if we are running on a power7 or newer.
2574         (enum r6000_reg_class_enum): Add new constraints.
2576         * config/rs6000/dfp.md (movsd): Delete, combine with binary
2577         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
2578         with other moves by using conditional constraits (wg).  Use LFIWZX
2579         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
2580         (movsd splitter): Likewise.
2581         (movsd_hardfloat): Likewise.
2582         (movsd_softfloat): Likewise.
2584         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
2585         binary and decimal floating point moves.
2586         (fmove_ok): New attributes to combine binary and decimal floating
2587         point moves, and to combine power6x (mfpgpr) moves along normal
2588         floating moves.
2589         (real_value_to_target): Likewise.
2590         (f32_lr): Likewise.
2591         (f32_lm): Likewise.
2592         (f32_li): Likewise.
2593         (f32_sr): Likewise.
2594         (f32_sm): Likewise.
2595         (f32_si): Likewise.
2596         (movsf): Combine binary and decimal floating point moves.  Combine
2597         power6x (mfpgpr) moves with other moves by using conditional
2598         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
2599         (mov<mode> for SFmode/SDmode); Likewise.
2600         (SFmode/SDmode splitters): Likewise.
2601         (movsf_hardfloat): Likewise.
2602         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
2603         (movsf_softfloat): Likewise.
2604         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
2606         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
2607         wx and wz constraints.
2609         * config/rs6000/constraints.md (wg constraint): New constraint to
2610         return FLOAT_REGS if -mmfpgpr (power6x) was used.
2612         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
2613         constraint.
2615         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
2616         -mdebug=reg, print wg, wl, wx, and wz constraints.
2617         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
2618         Initialize the reload functions for 64-bit binary/decimal floating
2619         point types.
2620         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
2621         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
2622         create the buffer on the stack to overcome not having a 32-bit
2623         load and store.
2624         (rs6000_emit_move): Likewise.
2625         (rs6000_secondary_memory_needed_rtx): Likewise.
2626         (rs6000_alloc_sdmode_stack_slot): Likewise.
2627         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
2628         via xxlxor, just like DFmode 0.0.
2630         * config/rs6000/dfp.md (movdd): Delete, combine with binary
2631         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
2632         with other moves by using conditional constraits (wg).  Use LFIWZX
2633         and STFIWX for loading SDmode on power7.
2634         (movdd splitters): Likewise.
2635         (movdd_hardfloat32): Likewise.
2636         (movdd_softfloat32): Likewise.
2637         (movdd_hardfloat64_mfpgpr): Likewise.
2638         (movdd_hardfloat64): Likewise.
2639         (movdd_softfloat64): Likewise.
2641         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
2642         64-bit binary and decimal floating point moves.
2643         (FMOVE64X): Likewise.
2644         (movdf): Combine 64-bit binary and decimal floating point moves.
2645         Combine power6x (mfpgpr) moves with other moves by using
2646         conditional constraits (wg).
2647         (mov<mode> for DFmode/DDmode): Likewise.
2648         (DFmode/DDmode splitters): Likewise.
2649         (movdf_hardfloat32): Likewise.
2650         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
2651         (movdf_softfloat32): Likewise.
2652         (movdf_hardfloat64_mfpgpr): Likewise.
2653         (movdf_hardfloat64): Likewise.
2654         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
2655         (movdf_softfloat64): Likewise.
2656         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
2657         (reload_<mode>_load): Move to later in the file so they aren't in
2658         the middle of the floating point move insns.
2659         (reload_<mode>_store): Likewise.
2661         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
2662         constraint.
2664         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
2665         constraint if -mdebug=reg.
2666         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
2667         Enable using dd reload support if needed.
2669         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
2670         binary and decimal floating point moves in rs6000.md.
2671         (movtd_internal): Likewise.
2673         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
2674         decimal floating point moves.
2675         (movtf): Likewise.
2676         (movtf_internal): Likewise.
2677         (mov<mode>_internal, TDmode/TFmode): Likewise.
2678         (movtf_softfloat): Likewise.
2679         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
2681         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
2682         movdi_internal64, using wg constraint for move direct operations.
2683         (movdi_internal64): Likewise.
2685         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
2686         MODES_TIEABLE_P for selected modes.  Print the numerical value of
2687         the various virtual registers. Use GPR/FPR first/last values,
2688         instead of hard coding the register numbers.  Print which modes
2689         have reload functions registered.
2690         (rs6000_option_override_internal): If -mdebug=reg, trace the options
2691         settings before/after setting cpu, target and subtarget settings.
2692         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
2693         and for secondary reload failures in rs6000_secondary_reload_inner.
2694         (rs6000_secondary_reload_fail): Likewise.
2695         (rs6000_secondary_reload_inner): Likewise.
2697         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
2698         macros for first/last GPR and FPR registers.
2699         (LAST_GPR_REGNO): Likewise.
2700         (FIRST_FPR_REGNO): Likewise.
2701         (LAST_FPR_REGNO): Likewise.
2703         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
2704         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
2705         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
2706         (vcond<mode><mode>): Likewise.
2707         (vcondu<mode><mode>): Likewise.
2708         (vector_gtu<mode>): Likewise.
2709         (vector_gte<mode>): Likewise.
2710         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
2711         to prevent the compiler from converting DImode operations to TImode.
2712         (ior<mode>3): Likewise.
2713         (and<mode>3): Likewise.
2714         (one_cmpl<mode>2): Likewise.
2715         (nor<mode>3): Likewise.
2716         (andc<mode>3): Likewise.
2718         * config/rs6000/constraints.md (wt constraint): New constraint
2719         that returns VSX_REGS if TImode is allowed in VSX registers.
2721         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
2722         constant under VSX.
2724         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
2725         similar to TImode, but it is restricted to being in the GPRs.
2727         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
2728         TImode to occupy a single VSX register.
2730         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
2731         -mvsx-timode for power7/power8.
2732         (power7 cpu): Likewise.
2733         (power8 cpu): Likewise.
2735         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
2736         sure that TFmode/TDmode take up two registers if they are ever
2737         allowed in the upper VSX registers.
2738         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
2739         registers.
2740         (rs6000_init_hard_regno_mode_ok): Likewise.
2741         (rs6000_debug_reg_global): Add debugging for PTImode and wt
2742         constraint.  Print if LRA is turned on.
2743         (rs6000_option_override_internal): Give an error if -mvsx-timode
2744         and VSX is not enabled.
2745         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
2746         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
2747         to reg+offset addressing.  Use PTImode when checking offset
2748         addresses for validity.
2749         (reg_offset_addressing_ok_p): Likewise.
2750         (rs6000_legitimate_offset_address_p): Likewise.
2751         (rs6000_legitimize_address): Likewise.
2752         (rs6000_legitimize_reload_address): Likewise.
2753         (rs6000_legitimate_address_p): Likewise.
2754         (rs6000_eliminate_indexed_memrefs): Likewise.
2755         (rs6000_emit_move): Likewise.
2756         (rs6000_secondary_reload): Likewise.
2757         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
2758         reloads to fpr registers to continue to use reg+offset addressing,
2759         but 64-bit reloads to altivec registers need reg+reg addressing.
2760         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
2761         it.  Treat LO_SUM like a PLUS operation.
2762         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
2763         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
2764         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
2765         registers to share a register with a smaller sized type, since VSX
2766         puts scalars in the upper 64-bits.
2767         (print_operand): Add support for PTImode.
2768         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
2769         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
2770         registers, but don't have arithmetic support.
2771         (rs6000_memory_move_cost): Add test for VSX.
2772         (rs6000_opt_masks): Add -mvsx-timode.
2774         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
2775         for TImode.
2776         (VSs): Likewise.
2777         (VSr): Use wt constraint for TImode.
2778         (VSv): Drop TImode support.
2779         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
2780         (vsx_movti_64bit): Likewise.
2781         (vsx_movti_32bit): Likewise.
2782         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
2783         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
2784         one '?' on the appropriate output constraint.  Do not allow TImode
2785         logical operations on 32-bit systems.
2786         (vsx_ior<mode>3): Likewise.
2787         (vsx_xor<mode>3): Likewise.
2788         (vsx_one_cmpl<mode>2): Likewise.
2789         (vsx_nor<mode>3): Likewise.
2790         (vsx_andc<mode>3): Likewise.
2791         (vsx_concat_<mode>): Likewise.
2792         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
2794         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
2795         OPTION_MASK_VSX_TIMODE.
2796         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
2797         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
2799         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
2800         (TI2 iterator): New iterator for TImode, PTImode.
2801         (wd mode attribute): Add values for vector types.
2802         (movti_string): Replace TI move operations with operations for TImode
2803         and PTImode.  Add support for TImode being allowed in VSX registers.
2804         (mov<mode>_string, TImode/PTImode): Likewise.
2805         (movti_ppc64): Likewise.
2806         (mov<mode>_ppc64, TImode/PTImode): Likewise.
2807         (TI mode splitters): Likewise.
2809         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
2810         constraint.
2812 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
2814         PR tree-optimization/56355
2815         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
2816         Also handle integers with undefined overflow.
2818 2013-03-20  Catherine Moore  <clm@codesourcery.com>
2819             Maciej W. Rozycki  <macro@codesourcery.com>
2820             Tom de Vries  <tom@codesourcery.com>
2821             Nathan Sidwell <nathan@codesourcery.com>
2822             Iain Sandoe  <iain@codesourcery.com>
2823             Nathan Froyd  <froydnj@codesourcery.com>
2824             Chao-ying Fu <fu@mips.com>
2826         * doc/extend.texi: (micromips, nomicromips, nocompression):
2827         Document new function attributes.
2828         * doc/invoke.texi (minterlink-compressed, mmicromips,
2829         m14k, m14ke, m14kec): Document new options.
2830         (minterlink-mips16): Update documentation.
2831         * doc/md.texi (ZC, ZD): Document new constraints.
2832         * configure.ac (gcc_cv_as_micromips): Check if linker
2833         supports the .set micromips directive.
2834         * configure: Regenerate.
2835         * config.in: Regenerate.
2836         * config/mips/mips-tables.opt: Regenerate.
2837         * config/mips/micromips.md: New file.
2838         * constraints.md (ZC, ZD): New constraints.
2839         * config/mips/predicates.md (movep_src_register): New predicate.
2840         (movep_src_operand): New predicate.
2841         (non_volatile_mem_operand): New predicate.
2842         * config/mips/mips.md (multimem): New type.
2843         (length): Differentiate between 17-bit and 18-bit branch offsets.
2844         (MOVEP1, MOVEP2): New mode iterator.
2845         (mov_<load>l): Use ZC constraint.
2846         (mov_<load>r): Likewise.
2847         (mov_<store>l): Likewise.
2848         (mov_<store>r): Likewise.
2849         (*branch_equality<mode>_inverted): Add microMIPS support.
2850         (*branch_equality<mode>): Likewise.
2851         (*jump_absolute): Likewise.
2852         (indirect_jump_<mode>): Likewise.
2853         (tablejump_<mode>): Likewise.
2854         (<optab>_internal): Likewise.
2855         (sibcall_internal): Likewise.
2856         (sibcall_value_internal): Likewise.
2857         (prefetch): Use constraint ZD.
2858         * config/mips/mips.opt (minterlink-compressed): New option.
2859         (minterlink-mips16): Now an alias for minterlink-compressed.
2860         (mmicromips): New option.
2861         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
2862         (compare_and_swap_12): Likewise.
2863         (sync_add<mode>): Likewise.
2864         (sync_<optab>_12): Likewise.
2865         (sync_old_<optab>_12): Likewise.
2866         (sync_new_<optab>_12): Likewise.
2867         (sync_nand_12): Likewise.
2868         (sync_old_nand_12): Likewise.
2869         (sync_new_nand_12): Likewise.
2870         (sync_sub<mode>): Likewise.
2871         (sync_old_add<mode>): Likewise.
2872         (sync_old_sub<mode>): Likewise.
2873         (sync_new_add<mode>): Likewise.
2874         (sync_new_sub<mode>): Likewise.
2875         (sync_<optab><mode>): Likewise.
2876         (sync_old_<optab><mode>): Likewise.
2877         (sync_new_<optab><mode>): Likewise.
2878         (sync_nand<mode>): Likewise.
2879         (sync_old_nand<mode>): Likewise.
2880         (sync_new_nand<mode>): Likewise.
2881         (sync_lock_test_and_set<mode>): Likewise.
2882         (test_and_set_12): Likewise.
2883         (atomic_compare_and_swap<mode>): Likewise.
2884         (atomic_exchange<mode>_llsc): Likewise.
2885         (atomic_fetch_add<mode>_llsc): Likewise.
2886         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
2887         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
2888         (umips_save_restore_pattern_p): Likewise.
2889         (umips_load_store_pair_p): Likewise.
2890         (umips_output_load_store_pair): Likewise.
2891         (umips_movep_target_p): Likewise.
2892         (umips_12bit_offset_address_p): Likewise.
2893         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
2894         (mips_base_mips16): Rename this...
2895         (mips_base_compression_flags): ...to this. Update all uses.
2896         (mips_attribute_table): Add micromips, nomicromips and nocompression.
2897         (mips_mips16_decl_p): Delete.
2898         (mips_nomips16_decl_p): Delete.
2899         (mips_get_compress_on_flags): New function.
2900         (mips_get_compress_off_flags): New function.
2901         (mips_get_compress_mode): New function.
2902         (mips_get_compress_on_name): New function.
2903         (mips_get_compress_off_name): New function.
2904         (mips_insert_attributes): Support multiple compression types.
2905         (mips_merge_decl_attributes): Likewise.
2906         (umips_12bit_offset_address_p): New function.
2907         (mips_start_function_definition): Emit .set micromips directive.
2908         (mips_call_may_need_jalx_p): New function.
2909         (mips_function_ok_for_sibcall): Add microMIPS support.
2910         (mips_print_operand_punctuation): Support short delay slots and
2911         compact jumps.
2912         (umips_swm_mask, umips_swm_encoding): New.
2913         (umips_build_save_restore): New function.
2914         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
2915         (was_mips16_p): Remove.
2916         (old_compression_mode): New.
2917         (mips_set_compression_mode): New function.
2918         (mips_set_current_function): Add microMIPS support.
2919         (mips_option_override): Likewise.
2920         (umips_save_restore_pattern_p): New function.
2921         (umips_output_save_restore): New function.
2922         (umips_load_store_pair_p_1): New function.
2923         (umips_load_store_pair_p): New function.
2924         (umips_output_load_store_pair_1): New function.
2925         (umips_output_load_store_pair): New function.
2926         (umips_movep_target_p) New function.
2927         (mips_prepare_pch_save): Add microMIPS support.
2928         * config/mips/mips.h (TARGET_COMPRESSION): New.
2929         (TARGET_CPU_CPP_BUILTINS): Update macro
2930         to use new compression flags and to support microMIPS.
2931         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
2932         (MIPS_ARCH_FLOAT_SPEC): Likewise.
2933         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
2934         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
2935         (ASM_SPEC): Support mmicromips and mno-micromips.
2936         (M16STORE_REG_P): New macro.
2937         (MIPS_CALL): Support TARGET_MICROMIPS.
2938         (MICROMIPS_J): New macro.
2939         (mips_base_mips16): Rename this...
2940         (mips_base_compression_flags): ...to this.
2941         (UMIPS_12BIT_OFFSET_P): New macro.
2942         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
2943         (MULTILIB_DIRNAMES): Likewise.
2944 2013-03-20  Richard Biener  <rguenther@suse.de>
2946         PR tree-optimization/56661
2947         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
2948         the result does not have to be distinct.
2950 2013-03-20  Richard Biener  <rguenther@suse.de>
2952         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
2953         remap_gimple_op_r.
2955 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2956             Steven Bosscher <steven@gcc.gnu.org>
2958         PR rtl-optimization/56605
2959         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
2961 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
2963         PR bootstrap/56656
2964         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
2965         that require movd instead of movq.
2967 2013-03-20  Richard Biener  <rguenther@suse.de>
2969         * tree-ssa-structalias.c (struct variable_info): Add pointer
2970         to the first field of an aggregate with sub-vars.  Make
2971         this and the pointer to the next subfield its ID.
2972         (vi_next): New function.
2973         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
2974         storedanything_id, integer_id): Increment by one.
2975         (new_var_info, get_call_vi, lookup_call_clobber_vi,
2976         get_call_clobber_vi): Adjust.
2977         (solution_set_expand): Simplify and speedup.
2978         (solution_set_add): Inline into ...
2979         (set_union_with_increment): ... this.  Adjust accordingly.
2980         (do_sd_constraint): Likewise.
2981         (do_ds_constraint): Likewise.
2982         (do_complex_constraint): Simplify.
2983         (build_pred_graph): Adjust.
2984         (solve_graph): Likewise.  Simplify and speedup.
2985         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
2986         get_constraint_for_component_ref, get_constraint_for_1,
2987         first_vi_for_offset, first_or_preceding_vi_for_offset,
2988         create_function_info_for, create_variable_info_for_1,
2989         create_variable_info_for, intra_create_variable_infos): Adjust.
2990         (init_base_vars): Push NULL for ID zero.
2991         (compute_points_to_sets): Adjust.
2993 2013-03-20  Richard Biener  <rguenther@suse.de>
2995         * cfgloop.c (verify_loop_structure): Streamline and avoid
2996         ICEing on corrupt loop tree.
2997         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
2998         loop tree.
3000 2013-03-20  Richard Biener  <rguenther@suse.de>
3002         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
3003         check whether an SSA update is needed.
3005 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
3007         * config/mips/constraints.md (T): Rename to...
3008         (Yf): ...this.
3009         (U): Rename to...
3010         (Yd): ...this.
3011         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
3012         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
3014 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
3016         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
3017         (*subsi3_carryin_uxtw): Likewise.
3019 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
3021         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
3022         (*rorsi3_insn_uxtw): Likewise.
3024 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
3026         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
3027         (*extrsi5_insn_uxtw): Likewise.
3029 2013-03-19  Richard Biener  <rguenther@suse.de>
3031         PR tree-optimization/56273
3032         * passes.c (init_optimization_passes): Move second VRP after DOM.
3034 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
3036         * config/i386/i386.md (*movti_internal): Merge from
3037         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
3038         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
3039         nox64 isa attributes.
3041 2013-03-18  Richard Biener  <rguenther@suse.de>
3043         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
3044         (unite): Likewise.
3045         (merge_node_constraints): Likewise.
3046         (build_succ_graph): Likewise.
3047         (valid_graph_edge): Inline into single caller.
3048         (unify_nodes): Likewise.  Use bitmap_set_bit return value
3049         and cache varinfo.
3050         (scc_visit): Fix formatting and variable use.
3051         (do_sd_constraint): Use gcc_checking_assert.
3052         (do_ds_constraint): Likewise.
3053         (do_complex_constraint): Likewise.
3054         (condense_visit): Likewise.  Cleanup.
3055         (dump_pred_graph): New function.
3056         (perform_var_substitution): Dump the pred-graph before
3057         variable substitution.
3058         (find_equivalent_node): Use gcc_checking_assert.
3059         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
3061 2013-03-18  Richard Biener  <rguenther@suse.de>
3063         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
3064         Remove cond_expr_stmt_list argument and do not gimplify the
3065         built expression.
3066         (vect_loop_versioning): Adjust.
3067         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
3068         Cleanup to use less temporaries.
3069         (vect_create_data_ref_ptr): Cleanup.
3071 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
3073         PR tree-optimization/56635
3074         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
3075         require types_compatible_p types.
3077 2013-03-18  Nick Clifton  <nickc@redhat.com>
3079         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
3080         spurious backslash.
3082         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
3083         Add missing line to comment describing function.
3085 2013-03-18  Richard Biener  <rguenther@suse.de>
3087         PR tree-optimization/56210
3088         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3089         Handle string / character search functions.
3090         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
3092 2013-03-18  Richard Biener  <rguenther@suse.de>
3094         PR middle-end/56483
3095         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
3096         and implement properly.
3097         * gimple.h (gimple_cond_single_var_p): Remove.
3099 2013-03-18  Richard Biener  <rguenther@suse.de>
3101         * tree-data-ref.h (find_data_references_in_loop): Declare.
3102         * tree-data-ref.c (get_references_in_stmt): Use a stack
3103         vector pre-allocated in the callers.
3104         (find_data_references_in_stmt): Adjust.
3105         (graphite_find_data_references_in_stmt): Likewise.
3106         (create_rdg_vertices): Likewise.
3107         (find_data_references_in_loop): Export.
3108         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
3109         Compute dependences here...
3110         (vect_analyze_data_refs): ...not here.  When we encounter
3111         a non-vectorizable data reference in basic-block vectorization
3112         truncate the data reference vector.  Do not bother to
3113         fixup data-dependence information for gather loads.
3114         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
3115         of data references, as reported.
3117 2013-03-18  Richard Biener  <rguenther@suse.de>
3119         PR tree-optimization/3713
3120         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
3121         has_constants and expr.
3122         (stmt_has_constants): Properly valueize SSA names when deciding
3123         whether the stmt has constants.
3125 2013-03-18  Richard Biener  <rguenther@suse.de>
3127         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
3128         whole function when there is nothing to do.
3129         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
3130         * tree-vectorizer.c (vectorize_loops): Update virtual and
3131         loop-closed SSA once.
3132         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
3134 2013-03-18  Richard Biener  <rguenther@suse.de>
3136         PR middle-end/56113
3137         * domwalk.c (bb_postorder): New global static.
3138         (cmp_bb_postorder): New function.
3139         (walk_dominator_tree): Replace scheme imposing an order for
3140         visiting dominator sons by one sorting them at the time they
3141         are pushed on the stack.
3143 2013-03-18  Richard Biener  <rguenther@suse.de>
3145         PR tree-optimization/39326
3146         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
3147         (struct mem_ref): Replace mem member with ao_ref typed member.
3148         (MEM_ANALYZABLE): Adjust.
3149         (memref_eq): Likewise.
3150         (mem_ref_alloc): Likewise.
3151         (gather_mem_refs_stmt): Likewise.
3152         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
3153         (execute_sm_if_changed_flag_set): Adjust.
3154         (execute_sm): Likewise.
3155         (ref_always_accessed_p): Likewise.
3156         (refs_independent_p): Likewise.
3157         (can_sm_ref_p): Likewise.
3159 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
3161         PR c/56566
3162         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
3163         return 1 even for !unsignedp.
3165 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
3167         * config/i386/i386.md (isa): Add x64 and nox64.
3168         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
3169         (*pushtf): Enable *roF alternative for x64 isa only.
3170         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
3171         mode attribute of integer alternatives to DImode for TARGET_64BIT.
3172         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
3173         (*movtf_internal): Merge from *movtf_internal_rex64 and
3174         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
3175         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
3176         nox64 isa attributes.
3177         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
3178         nox64 isa attributes.
3179         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
3181 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
3183         * config/alpha/alpha.c (TARGET_LRA_P): New define.
3185 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
3187         PR target/56640
3188         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
3189         class names.  Remove trailing comma after "ALL_REGS".
3191 2013-03-16  Jan Hubicka  <jh@suse.cz>
3193         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
3194         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
3195         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
3196         of cgraph_get_create_node.
3197         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
3199 2013-03-16  Jason Merrill  <jason@redhat.com>
3201         PR debug/49090
3202         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
3203         with DW_AT_default_value.
3205 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
3207         * BASE-VER: Set to 4.9.0.
3209 2013-03-14  Andi Kleen  <ak@linux.intel.com>
3211         PR target/56619
3212         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
3213         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
3214         Document _x* TSX intrinsics.
3216 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
3217             David Holsgrove  <david.holsgrove@xilinx.com>
3219         * configure.ac: Add MicroBlaze TLS support detection.
3220         * configure: Regenerate.
3221         * config/microblaze/microblaze-protos.h
3222         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
3223         symbol_mentioned_p, label_mentioned_p): Add prototypes.
3224         * config/microblaze/microblaze.c (microblaze_address_type): Add
3225         ADDRESS_TLS and tls_reloc address types.
3226         (microblaze_address_info): Add tls_reloc.
3227         (TARGET_HAVE_TLS): Define.
3228         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
3229          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
3230          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
3231         load_tls_operand,  microblaze_call_tls_get_addr,
3232         microblaze_legitimize_tls_address): New functions.
3233         (microblaze_classify_unspec): Handle UNSPEC_TLS.
3234         (get_base_reg): Use microblaze_tls_symbol_p.
3235         (microblaze_classify_address): Handle TLS.
3236         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
3237         label_mentioned_p and microblaze_tls_referenced_p.
3238         (microblaze_legitimize_address): Handle TLS.
3239         (microblaze_address_insns): Handle ADDRESS_TLS.
3240         (pic_address_needs_scratch): Handle TLS.
3241         (print_operand_address): Handle TLS.
3242         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
3243         (microblaze_expand_move): Handle TLS.
3244         (microblaze_legitimate_constant_p): Check
3245         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
3246         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
3247         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
3248         (PIC_OFFSET_TABLE_REGNUM): Set.
3249         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
3250         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
3251         (addsi3, movsi_internal2, movdf_internal): Update constraints
3252         * config/microblaze/predicates.md (arith_plus_operand): Define
3253         (move_operand): Redefine as move_src_operand,
3254         check microblaze_tls_referenced_p.
3256 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
3258         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
3259         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
3261 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
3263         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
3264         CC mode for AND.
3266 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
3268         PR tree-optimization/53265
3269         * common.opt (Waggressive-loop-optimizations): New option.
3270         * tree-ssa-loop-niter.c: Include tree-pass.h.
3271         (do_warn_aggressive_loop_optimizations): New function.
3272         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
3273         if number_of_latch_executions returned constant.
3274         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
3275         early.  If number_of_latch_executions returned constant, set
3276         nb_iterations_upper_bound back to it.
3277         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
3278         field.
3279         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
3280         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
3282         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
3283         (MULTILIB_OSDIRNAMES): Set.
3284         * genmultilib: If defaultosdirname doesn't start with :: , set
3285         defaultosdirname2 instead, clear it and emit two . multilib_raw
3286         entries instead of just one.
3288 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
3290         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
3291         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
3292         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
3293         (SUBTARGET_OVERRIDE_OPTIONS): New.
3295 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
3297         PR target/49880
3298         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
3299         (musermode): Convert to Var(TARGET_USERMODE).
3300         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
3301         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
3302         * config/sh/sh.c (sh_option_override): Use
3303         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
3304         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
3305         condition.
3306         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
3307         TARGET_SH4.
3308         (udivsi3_i4_single, divsi3_i4_single): Use
3309         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
3311 2013-03-13  Dave Korn  <dave.korn.cygwin@....>
3313         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
3314         default setting.
3316 2013-03-13  Richard Biener  <rguenther@suse.de>
3318         PR tree-optimization/56608
3319         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
3320         calls when vectorizing basic-blocks.
3322 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
3324         PR plugins/45078
3325         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
3326         tm_file.
3328 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
3330         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
3332 2013-03-11  Jan Hubicka  <jh@suse.cz>
3334         PR lto/56557
3335         * lto-streamer-out.c (output_symbol_p): Skip references from
3336         constructors of external variables.
3338 2013-03-11  Jan Hubicka  <jh@suse.cz>
3340         PR middle-end/56571
3341         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
3342         from pseudos.
3343         * emit-rtl.c (verify_rtx_sharing): Likewise.
3344         (copy_insn_1): Likewise.
3345         * rtl.c (copy_rtx): Likewise.
3347 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
3349         PR target/56591
3350         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
3351         output_operand_lossage message.
3353 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
3355         PR target/56470
3356         * arm.c (shift_op): Validate RTL pattern on the fly.
3357         (arm_print_operand, case 'S'): Don't use shift_operator to validate
3358         the RTL.
3360 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3362         PR target/56347
3363         * config/pa/pa.md (call_value): Check for calls to powf and direct to
3364         new call patterns that clobber %fr12.
3365         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
3366         split and postreload patterns.
3367         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
3368         registers %fr12 and %fr12R as call used.
3370 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
3372         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
3373         (canon_address, record_store, replace_read, check_mem_read_rtx,
3374         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
3375         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
3376         rest_of_handle_dse): Likewise.
3378 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
3380         PR middle-end/56524
3381         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
3382         Add base_optabs.
3383         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
3384         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
3385         (save_optabs_if_changed): Replace with...
3386         (init_tree_optimization_optabs): ...this.
3387         * optabs.c (save_optabs_if_changed): Rename to...
3388         (init_tree_optimization_optabs): ...this.  Take the optimization node
3389         as argument.  Do nothing if the base optabs are already correct.
3390         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
3391         to recompute optabs.
3392         * function.h (function): Remove optabs field.
3393         * function.c (invoke_set_current_function_hook): Call
3394         init_tree_optimization_optabs.  Use the result to initialize
3395         this_fn_optabs.
3397 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
3399         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
3400         if GTMA_HAS_NO_INSTRUMENTATION.
3401         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
3402         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
3403         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
3404         * gimple-pretty-print.c (dump_gimple_transaction): Handle
3405         GTMA_HAS_NO_INSTRUMENTATION.
3407 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
3409         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
3410         libasan_preinit.o.
3412 2013-03-08  Marek Polacek  <polacek@redhat.com>
3413             Jakub Jelinek  <jakub@redhat.com>
3415         PR tree-optimization/56478
3416         * predict.c (is_comparison_with_loop_invariant_p): Change the
3417         type of loop_step to tree.
3418         (predict_loops): Adjust.
3419         (predict_iv_comparison): Perform the computations on double_ints.
3421 2013-03-08  Richard Biener  <rguenther@suse.de>
3423         PR tree-optimization/56570
3424         * tree-cfg.c (verify_expr_location_1): Verify locations for
3425         DECL_DEBUG_EXPR.
3426         * tree-sra.c (create_access_replacement): Strip locations
3427         from DECL_DEBUG_EXPRs.
3429 2013-03-08  Richard Biener  <rguenther@suse.de>
3431         * tree-inline.c (expand_call_inline): Do not associate
3432         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
3433         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
3435 2013-03-08  Richard Biener  <rguenther@suse.de>
3437         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
3438         or block changes with -Og.  Fix for location / block encoding
3439         changes and PHI arguments with locations.
3441 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
3443         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
3444         for all counters.
3445         (struct output_info): Likewise.
3446         (register_overhead): Remove bad gcc_assert.
3447         (bitmap_find_bit): If there is only a single bitmap element, do not
3448         count a miss as a search.
3449         (print_statistics): Update for counter type changes.
3450         (dump_bitmap_statistics): Likewise.  Print headers such that they
3451         are properly lined up with the printed counters.
3453 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
3455         PR tree-optimization/56559
3456         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
3457         check that it has only a single use.
3459 2013-03-07  Richard Biener  <rguenther@suse.de>
3461         * doc/invoke.texi (fwhole-program): Discourage use in combination
3462         with -flto.
3464 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
3466         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
3468         PR tree-optimization/56539
3469         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
3470         instead of GSI_CONTINUE_LINKING as last argument to
3471         force_gimple_operand_gsi.  Adjust function comment.
3473         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
3474         aarch64-cores.def.
3476         PR middle-end/56548
3477         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
3478         promoted mode, convert the result back to the original mode.
3480 2013-03-06  Richard Biener  <rguenther@suse.de>
3482         PR middle-end/56294
3483         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
3484         (insert_updated_phi_nodes_compare_uids): New function.
3485         (update_ssa): Sort symbols_to_rename after UID before
3486         traversing it to insert PHI nodes.
3488 2013-03-06  Richard Biener  <rguenther@suse.de>
3490         PR middle-end/50494
3491         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
3492         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
3494         Revert
3495         2013-02-13  Richard Biener  <rguenther@suse.de>
3497         PR lto/50494
3498         * varasm.c (output_constant_def_1): Get the decl representing
3499         the constant as argument.
3500         (output_constant_def): Wrap output_constant_def_1.
3501         (make_decl_rtl): Use output_constant_def_1 with the decl
3502         representing the constant.
3503         (build_constant_desc): Optionally re-use a decl already
3504         representing the constant.
3505         (tree_output_constant_def): Adjust.
3507 2013-03-06  Joey Ye  <joey.ye@arm.com>
3509         PR lto/50293
3510         * gcc.c (convert_white_space): New function.
3511         (main): Handles white space in function name.
3513 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
3515         PR target/56529
3516         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
3517         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
3518         to SH_DIV_CALL_TABLE for TARGET_SH2.
3519         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
3520         list.
3521         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
3522         call-table options.
3524 2013-03-05  Sterling Augustine  <saugustine@google.com>
3525             Cary Coutant  <ccoutant@google.com>
3527         PR debug/55364
3528         * dwarf2out.c (resolve_addr): Don't call
3529         remove_loc_list_addr_table_entries a second time for the same
3530         expression.
3532 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
3534         PR debug/56510
3535         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
3536         (avoid_complex_debug_insns): New function.
3537         (expand_debug_locations): Call it.
3539         PR rtl-optimization/56484
3540         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
3541         lifetimes of hard registers on small register class machines.
3543 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
3545         * config/microblaze/microblaze-protos.h: Rename
3546         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
3547         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
3548         fast_interrupt.
3549         (microblaze_fast_interrupt_function_p): New function.
3550         (microblaze_is_interrupt_handler): Rename to
3551         microblaze_is_interrupt_variant and add fast_interrupt check.
3552         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
3553         (save_restore_insns): Likewise.
3554         (compute_frame_size): Likewise.
3555         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
3556         (microblaze_globalize_label): Likewise.
3557         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
3558         * config/microblaze/microblaze.md: Use wrapper
3559         microblaze_is_interrupt_variant.
3561 2013-03-05  Kai Tietz  <ktietz@redhat.com>
3563         * sdbout.c (sdbout_one_type): Switch to current function's section
3564         supporting cold/hot.
3566 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
3568         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
3569         -mxl-reorder.
3571 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
3573         PR middle-end/56461
3574         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
3575         if VALGRIND_GET_VBITS is defined, temporarily make object
3576         memory all defined, and restore previous valgrind addressability
3577         and definability afterwards.  Free this_object at the end.
3579         PR middle-end/56461
3580         * lra.c (lra): Call lra_clear_live_ranges if live_p,
3581         right before calling lra_create_live_ranges, also call it
3582         when clearing live_p.  Only call lra_clear_live_ranges
3583         at the end if live_p.
3585         PR middle-end/56461
3586         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
3588 2013-03-05  Richard Biener  <rguenther@suse.de>
3590         PR tree-optimization/56521
3591         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
3592         value-id.
3594 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
3596         PR c++/55135
3597         * except.h (remove_unreachable_eh_regions): New prototype.
3598         * except.c (remove_eh_handler_splicer): New function, split out
3599         of remove_eh_handler.
3600         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
3601         warning about running it on many EH regions one at a time.
3602         (remove_unreachable_eh_regions_worker): New function, walk the
3603         EH tree in depth-first order and remove non-marked regions.
3604         (remove_unreachable_eh_regions): New function.
3605         * tree-eh.c (mark_reachable_handlers): New function, split out
3606         from remove_unreachable_handlers.
3607         (remove_unreachable_handlers): Use mark_reachable_handlers and
3608         remove_unreachable_eh_regions.
3609         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
3610         and remove_unreachable_eh_regions.
3612 2013-03-05  Richard Biener  <rguenther@suse.de>
3614         PR middle-end/56525
3615         * loop-init.c (fix_loop_structure): Remove loops in two stages,
3616         not freeing them until the end.
3618 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3620         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
3622 2013-03-05  Richard Biener  <rguenther@suse.de>
3624         PR tree-optimization/56270
3625         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
3626         of loads after scheduling an SLP instance.
3628 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
3630         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
3631         tic6x.exp.
3632         (check_gcc_parallelize): Run guality.exp as a separate job from
3633         vect.exp with unsorted.exp and $(dg_target_exps) separately from
3634         struct-layout-1.exp with stackalign.exp.
3636         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
3638         PR middle-end/56461
3639         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
3640         load_index sbitmap even if some bit in it isn't set.
3642         PR middle-end/56461
3643         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
3644         (discover_iteration_bound_by_body_walk): Change queues to
3645         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
3646         spelling in comment.  Call safe_push on queues[bound_index] directly.
3647         Release queues[queue_index] in every iteration unconditionally.
3648         Release bounds vector.
3650         PR middle-end/56461
3651         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
3652         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
3653         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
3654         inner_phis vector.
3656 2013-03-05  Richard Biener  <rguenther@suse.de>
3658         PR lto/56515
3659         * tree-inline.c (remap_blocks_to_null): New function.
3660         (expand_call_inline): When expanding a call stmt without
3661         an associated block inline remap all callee blocks to NULL.
3663 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
3665         PR rtl-optimization/56494
3666         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
3667         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
3668         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
3670         PR middle-end/56461
3671         * sel-sched-ir.c (free_sched_pools): Release
3672         succs_info_pool.stack[succs_info_pool.max_top] vectors too
3673         if succs_info_pool.max_top isn't -1.
3675         PR bootstrap/56509
3676         * opts.c (opts_obstack, opts_concat): Moved to...
3677         * opts-common.c (opts_obstack, opts_concat): ... here.
3679 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
3681         PR middle-end/56461
3682         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
3684 2013-03-04  Martin Jambor  <mjambor@suse.cz>
3686         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
3687         all appropriate places.
3689 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
3691         PR tree-optimization/56424
3692         * ipa-split.c (split_function): Do not set the RSO flag if result is
3693         not by reference and its type is a register type.
3695 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
3697         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
3698         (microblaze_legitimate_pic_operand): Likewise
3699         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
3700         new function microblaze_legitimate_pic_operand
3701         * config/microblaze/microblaze-protos.h
3702         (microblaze_legitimate_pic_operand): Declare.
3704 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
3706         * config/microblaze/predicates.md (call_insn_simple_operand):
3707         New predicate for supported rtx code types.
3708         * config/microblaze/microblaze.md (call_internal1): Use
3709         call_insn_simple_operand predicate.
3711 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
3713         PR middle-end/56461
3714         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
3715         partitions.ordered_remove.
3717         PR middle-end/56461
3718         * tree-vect-stmts.c (vectorizable_conversion): Don't call
3719         vec_oprnds0.create (1) for modifier == NONE.
3721         PR middle-end/56461
3722         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
3723         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
3724         vec_oprnds1 right before pushing anything to it for
3725         scalar_shift_arg.
3727         PR middle-end/56461
3728         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
3729         set nbbs to 0 instead of having separate code path.
3730         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
3731         instead of false as last argument if returning NULL.
3733 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
3735         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
3736         the attribute is now called "target" instead of "option".
3737         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
3738         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
3739         attribute/pragma name for TARGET_OPTION_VALID_P and
3740         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
3741         * doc/tm.texi: Regenerated.
3743 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
3745         * config/microblaze/microblaze.c:
3746         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
3747         * config/microblaze/microblaze.h: Add -mxl-reorder to
3748         DRIVER_SELF_SPECS.
3749         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
3750         instructions emitted if TARGET_REORDER.
3751         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
3752         or 0 for -m/-mno case, but initialises as 2 to detect default use case
3753         separately.
3755 2013-03-01  Xinliang David Li  <davidxl@google.com>
3757         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
3758         walk length.
3760 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
3762         PR middle-end/56461
3763         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
3764         vector even when returning true.  Fix up function comment formatting.
3766         PR middle-end/56461
3767         * ira-build.c (ira_loop_nodes_count): New variable.
3768         (create_loop_tree_nodes): Initialize it.
3769         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
3771         PR middle-end/56461
3772         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
3773         method on dr_chain and result_chain.
3774         * tree-vect-stmts.c (vectorizable_store): Only call
3775         result_chain.create if j == 0.
3777         PR middle-end/56461
3778         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
3779         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
3780         before overwriting it.
3782 2013-03-01  Tobias Burnus  <burnus@net-b.de>
3784         * doc/extended.texi (C Extensions): Change order in @menu
3785         to match @node.
3786         (Other MIPS Built-in Functions): Move last MIPS entry before
3787         "picoChip Built-in Functions".
3788         (SH Built-in Functions): Move after RX Built-in Functions.
3789         * doc/gcc.texi (Introduction): Change order in @menu
3790         to match @node.
3791         * doc/md.texi (Constraints): Ditto.
3792         * gty.texi (Type Information): Ditto.
3793         (User-provided marking routines for template types): Make
3794         subsection.
3795         * doc/invoke.texi (AArch64 Options): Move before
3796         "Adapteva Epiphany Options".
3798 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
3799             Jakub Jelinek  <jakub@redhat.com>
3801         PR sanitizer/56454
3802         * asan.c (gate_asan): Lookup no_sanitize_address instead of
3803         no_address_safety_analysis attribute.
3804         * doc/extend.texi (no_address_safety_attribute): Rename to
3805         no_sanitize_address attribute, mention no_address_safety_analysis
3806         attribute as deprecated alias.
3808 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
3810         PR middle-end/56461
3811         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
3812         type to vec<vec<tree> > *.
3813         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
3814         to be vec<tree> instead of vec<tree> *, set vec_defs
3815         to vNULL and call vec_defs.create (number_of_vects), adjust other
3816         uses of vec_defs.
3817         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
3818         vectorizable_condition): Adjust vect_get_slp_defs callers.
3820 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
3822         * config/aarch64/aarch64.c
3823         (aarch64_float_const_representable): Remove unused variable.
3825 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
3827         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
3829 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
3831         * config/aarch64/aarch64-builtins.c
3832         (aarch64_init_simd_builtins): Make static.
3834 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
3836         * config/aarch64/aarch64.c
3837         (aarch64_simd_make_constant): Make static.
3839 2013-02-28  Martin Jambor  <mjambor@suse.cz>
3841         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
3842         with no initialization to the RHS of debug statements.
3844 2013-02-28  Martin Jambor  <mjambor@suse.cz>
3846         PR tree-optimization/56294
3847         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
3848         Adjust dumping.
3849         (get_access_replacement): Do not call create_access_replacement.
3850         Assert a replacement exists.
3851         (get_repl_default_def_ssa_name): Create the replacement declaration
3852         itself.
3854 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3856         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
3857         final_end_function.
3859 2013-02-28  Marek Polacek  <polacek@redhat.com>
3861         PR rtl-optimization/56466
3862         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
3863         if we're changing a loop.
3864         (peel_loops_completely): Likewise.
3866 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
3868         PR c++/55813
3869         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
3871 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
3873         PR target/56445
3874         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
3875         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
3876         INTX_FTYPE_FX, FX_FTYPE_INTX.
3877         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
3879 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
3881         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
3882         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
3883         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
3884         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
3885         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
3886         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
3887         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
3888         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
3889         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
3890         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
3891         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
3892         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
3893         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
3894         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
3895         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
3896         (avrxmega6): Increase max flash segments from 5 to 6.
3897         * config/avr/t-multilib: Regenerate.
3898         * config/avr/avr-tables.opt: Regenerate.
3899         * doc/avr-mmcu.texi: Regenerate.
3901 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
3903         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
3904         (avr_device_to_arch): Rename to avr_device_to_ld.
3905         (avr_device_to_as): New prototype.
3906         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
3907         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
3908         * config/avr/driver-avr.c (avr_device_to_as): New.
3909         (avr_device_to_arch): Rename to avr_device_to_ld.
3911 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
3913         PR middle-end/56461
3914         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
3915         method on dr_chain and result_chain.
3917         PR middle-end/56461
3918         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
3919         pointer_set_destroy on not_executed_last_iteration.
3921         PR middle-end/56461
3922         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
3924         PR middle-end/56461
3925         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
3926         FOR_EACH_DEFINED_FUNCTION when freeing state.
3928         PR middle-end/56461
3929         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
3930         pool_free.
3931         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
3932         overwriting it.
3934         PR middle-end/56461
3935         * ipa-cp.c (decide_whether_version_node): Call vec_free on
3936         known_aggs[i].items and release known_aggs vector.
3938         PR middle-end/56461
3939         * ipa-reference.c (propagate): Free node_info even for alias nodes.
3941 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
3943         * config/microblaze/microblaze.c (microblaze_emit_compare):
3944         Use xor for EQ/NE comparisions.
3945         * config/microblaze/microblaze.md (cstoresf4): Add constraints
3946         (cbranchsf4): Adjust operator to comparison_operator.
3948 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
3950         PR middle-end/56461
3951         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
3952         vector.
3953         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
3954         vec_safe_push, always update *slot.
3955         (redirect_edge_var_map_clear): Use vec_free.
3956         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
3957         (free_var_map_entry): Use vec_free.
3958         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
3959         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
3961 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
3963         PR middle-end/45472
3964         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
3965         when the may_trap_p bit of the exprs being merged differs.
3966         Reorder tests for speculativeness in the logical and operator.
3968 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
3970         * incpath.c (add_standard_paths): Use reconcat instead of concat
3971         where appropriate and avoid leaking memory.
3973         * opts.h: Include obstack.h.
3974         (opts_concat): New prototype.
3975         (opts_obstack): New declaration.
3976         * opts.c (opts_concat): New function.
3977         (opts_obstack): New variable.
3978         (init_options_struct): Call gcc_init_obstack on opts_obstack.
3979         (finish_options): Use opts_concat instead of concat
3980         and XOBNEWVEC instead of XNEWVEC.
3981         * opts-common.c (generate_canonical_option, decode_cmdline_option,
3982         generate_option): Likewise.
3983         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
3984         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
3986         PR target/56455
3987         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
3988         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
3990 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
3992         PR middle-end/56461
3993         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
3995 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
3997         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
3998         (arm_block_move_unaligned_straight): Likewise.
3999         (arm_adjust_block_mem): Likewise.
4001 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
4003         PR target/48901
4004         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
4005         temp, cond and label.
4006         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
4008         PR target/52500
4009         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
4010         * config/c6x/c6x.h (dbx_register_map): Update declaration.
4012         PR target/52501
4013         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
4014         of prologue/epilogue functions.
4016         PR target/52550
4017         * config/tilegx/tilegx.c (tilegx_expand_prologue):
4018         Remove unused variable cfa_offset.
4019         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
4021         PR target/54639
4022         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
4023         type promotion to unsigned.
4025         PR target/54640
4026         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
4027         for HOST_WIDE_INT of 32 bit / same size as int.
4028         (arm_block_move_unaligned_straight): Likewise.
4029         (arm_adjust_block_mem): Likewise.
4031         PR target/54662
4032         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
4033         ALL_CFLAGS.
4035 2013-02-26  Marek Polacek  <polacek@redhat.com>
4037         PR tree-optimization/56426
4038         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
4040 2013-02-26  Richard Biener  <rguenther@suse.de>
4042         PR target/56444
4043         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
4044         unused variable loops.
4046 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
4048         PR tree-optimization/56448
4049         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
4050         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
4051         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
4052         later operands of the references, or even first operand for
4053         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
4055         PR tree-optimization/56443
4056         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
4057         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
4058         to type_for_mode langhook.
4060 2013-02-25  Matt Turner  <mattst88@gmail.com>
4062         * doc/invoke.texi: Document r4700.
4064 2013-02-25  Richard Biener  <rguenther@suse.de>
4066         PR tree-optimization/56175
4067         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
4068         split out from ...
4069         (simplify_bitwise_binary): ... here.  Also guard the conversion
4070         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
4072 2013-02-25  Catherine Moore  <clm@codesourcery.com>
4074         Revert:
4075         2013-02-24  Catherine Moore  <clm@codesourcery.com>
4076             Maciej W. Rozycki  <macro@codesourcery.com>
4077             Tom de Vries  <tom@codesourcery.com>
4078             Nathan Sidwell  <nathan@codesourcery.com>
4079             Iain Sandoe  <iain@codesourcery.com>
4080             Nathan Froyd  <froydnj@codesourcery.com>
4081             Chao-ying Fu  <fu@mips.com>
4083         * doc/extend.texi: (micromips, nomicromips, nocompression):
4084         Document new function attributes.
4085         * doc/invoke.texi (minterlink-compressed, mmicromips,
4086         m14k, m14ke, m14kec): Document new options.
4087         (minterlink-mips16): Update documentation.
4088         * doc/md.texi (ZC, ZD): Document new constraints.
4089         * configure.ac (gcc_cv_as_micromips): Check if linker
4090         supports the .set micromips directive.
4091         * configure: Regenerate.
4092         * config.in: Regenerate.
4093         * config/mips/mips-tables.opt: Regenerate.
4094         * config/mips/micromips.md: New file.
4095         * constraints.md (ZC, AD): New constraints.
4096         * config/mips/predicates.md (movep_src_register): New predicate.
4097         (movep_src_operand): New predicate.
4098         (non_volatile_mem_operand): New predicate.
4099         * config/mips/mips.md (multimem): New type.
4100         (length): Differentiate between 17-bit and 18-bit branch offsets.
4101         (MOVEP1, MOVEP2): New mode iterator.
4102         (mov_<load>l): Use ZC constraint.
4103         (mov_<load>r): Likewise.
4104         (mov_<store>l): Likewise.
4105         (mov_<store>r): Likewise.
4106         (*branch_equality<mode>_inverted): Add microMIPS support.
4107         (*branch_equality<mode>): Likewise.
4108         (*jump_absolute): Likewise.
4109         (indirect_jump_<mode>): Likewise.
4110         (tablejump_<mode>): Likewise.
4111         (<optab>_internal): Likewise.
4112         (sibcall_internal): Likewise.
4113         (sibcall_value_internal): Likewise.
4114         (prefetch): Use constraint ZD.
4115         * config/mips/mips.opt (minterlink-compressed): New option.
4116         (minterlink-mips16): Now an alias for minterlink-compressed.
4117         (mmicromips): New option.
4118         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
4119         (compare_and_swap_12): Likewise.
4120         (sync_add<mode>): Likewise.
4121         (sync_<optab>_12): Likewise.
4122         (sync_old_<optab>_12): Likewise.
4123         (sync_new_<optab>_12): Likewise.
4124         (sync_nand_12): Likewise.
4125         (sync_old_nand_12): Likewise.
4126         (sync_new_nand_12): Likewise.
4127         (sync_sub<mode>): Likewise.
4128         (sync_old_add<mode>): Likewise.
4129         (sync_old_sub<mode>): Likewise.
4130         (sync_new_add<mode>): Likewise.
4131         (sync_new_sub<mode>): Likewise.
4132         (sync_<optab><mode>): Likewise.
4133         (sync_old_<optab><mode>): Likewise.
4134         (sync_new_<optab><mode>): Likewise.
4135         (sync_nand<mode>): Likewise.
4136         (sync_old_nand<mode>): Likewise.
4137         (sync_new_nand<mode>): Likewise.
4138         (sync_lock_test_and_set<mode>): Likewise.
4139         (test_and_set_12): Likewise.
4140         (atomic_compare_and_swap<mode>): Likewise.
4141         (atomic_exchange<mode>_llsc): Likewise.
4142         (atomic_fetch_add<mode>_llsc): Likewise.
4143         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
4144         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
4145         (umips_save_restore_pattern_p): Likewise.
4146         (umips_load_store_pair_p): Likewise.
4147         (umips_output_load_store_pair): Likewise.
4148         (umips_movep_target_p): Likewise.
4149         (umips_12bit_offset_address_p): Likewise.
4150         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
4151         (mips_base_mips16): Rename this...
4152         (mips_base_compression_flags): ...to this. Update all uses.
4153         (mips_attribute_table): Add micromips, nomicromips and nocompression.
4154         (mips_mips16_decl_p): Delete.
4155         (mips_nomips16_decl_p): Delete.
4156         (mips_get_compress_on_flags): New function.
4157         (mips_get_compress_off_flags): New function.
4158         (mips_get_compress_mode): New function.
4159         (mips_get_compress_on_name): New function.
4160         (mips_get_compress_off_name): New function.
4161         (mips_insert_attributes): Support multiple compression types.
4162         (mips_merge_decl_attributes): Likewise.
4163         (umips_12bit_offset_address_p): New function.
4164         (mips_start_function_definition): Emit .set micromips directive.
4165         (mips_call_may_need_jalx_p): New function.
4166         (mips_function_ok_for_sibcall): Add microMIPS support.
4167         (mips_print_operand_punctuation): Support short delay slots and
4168         compact jumps.
4169         (umips_swm_mask, umips_swm_encoding): New.
4170         (umips_build_save_restore): New function.
4171         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
4172         (was_mips16_p): Remove.
4173         (old_compression_mode): New.
4174         (mips_set_compression_mode): New function.
4175         (mips_set_current_function): Add microMIPS support.
4176         (mips_option_override): Likewise.
4177         (umips_save_restore_pattern_p): New function.
4178         (umips_output_save_restore): New function.
4179         (umips_load_store_pair_p_1): New function.
4180         (umips_load_store_pair_p): New function.
4181         (umips_output_load_store_pair_1): New function.
4182         (umips_output_load_store_pair): New function.
4183         (umips_movep_target_p) New function.
4184         (mips_prepare_pch_save): Add microMIPS support.
4185         * config/mips/mips.h (TARGET_COMPRESSION): New.
4186         (TARGET_CPU_CPP_BUILTINS): Update macro
4187         to use new compression flags and to support microMIPS.
4188         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
4189         (MIPS_ARCH_FLOAT_SPEC): Likewise.
4190         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
4191         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
4192         (ASM_SPEC): Support mmicromips and mno-micromips.
4193         (M16STORE_REG_P): New macro.
4194         (MIPS_CALL): Support TARGET_MICROMIPS.
4195         (MICROMIPS_J): New macro.
4196         (mips_base_mips16): Rename this...
4197         (mips_base_compression_flags): ...to this.
4198         (UMIPS_12BIT_OFFSET_P): New macro.
4199         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
4200         (MULTILIB_DIRNAMES): Likewise.
4202 2013-02-25  Tom de Vries  <tom@codesourcery.com>
4204         PR rtl-optimization/56131
4205         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
4206         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
4207         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
4209 2013-02-25  Tobias Burnus  <burnus@net-b.de>
4211         * doc/invoke.texi (-fsanitize=): Move from optimization
4212         to debugging options.
4214 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
4216         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
4218 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
4219             Alexander Monakov  <amonakov@ispras.ru>
4221         PR middle-end/56077
4222         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
4223         flush pending lists also on non-jumps.  Adjust comment.
4225 2013-02-24  Catherine Moore  <clm@codesourcery.com>
4226             Maciej W. Rozycki  <macro@codesourcery.com>
4227             Tom de Vries  <tom@codesourcery.com>
4228             Nathan Sidwell  <nathan@codesourcery.com>
4229             Iain Sandoe  <iain@codesourcery.com>
4230             Nathan Froyd  <froydnj@codesourcery.com>
4231             Chao-ying Fu  <fu@mips.com>
4233         * doc/extend.texi: (micromips, nomicromips, nocompression):
4234         Document new function attributes.
4235         * doc/invoke.texi (minterlink-compressed, mmicromips,
4236         m14k, m14ke, m14kec): Document new options.
4237         (minterlink-mips16): Update documentation.
4238         * doc/md.texi (ZC, ZD): Document new constraints.
4239         * configure.ac (gcc_cv_as_micromips): Check if linker
4240         supports the .set micromips directive.
4241         * configure: Regenerate.
4242         * config.in: Regenerate.
4243         * config/mips/mips-tables.opt: Regenerate.
4244         * config/mips/micromips.md: New file.
4245         * constraints.md (ZC, AD): New constraints.
4246         * config/mips/predicates.md (movep_src_register): New predicate.
4247         (movep_src_operand): New predicate.
4248         (non_volatile_mem_operand): New predicate.
4249         * config/mips/mips.md (multimem): New type.
4250         (length): Differentiate between 17-bit and 18-bit branch offsets.
4251         (MOVEP1, MOVEP2): New mode iterator.
4252         (mov_<load>l): Use ZC constraint.
4253         (mov_<load>r): Likewise.
4254         (mov_<store>l): Likewise.
4255         (mov_<store>r): Likewise.
4256         (*branch_equality<mode>_inverted): Add microMIPS support.
4257         (*branch_equality<mode>): Likewise.
4258         (*jump_absolute): Likewise.
4259         (indirect_jump_<mode>): Likewise.
4260         (tablejump_<mode>): Likewise.
4261         (<optab>_internal): Likewise.
4262         (sibcall_internal): Likewise.
4263         (sibcall_value_internal): Likewise.
4264         (prefetch): Use constraint ZD.
4265         * config/mips/mips.opt (minterlink-compressed): New option.
4266         (minterlink-mips16): Now an alias for minterlink-compressed.
4267         (mmicromips): New option.
4268         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
4269         (compare_and_swap_12): Likewise.
4270         (sync_add<mode>): Likewise.
4271         (sync_<optab>_12): Likewise.
4272         (sync_old_<optab>_12): Likewise.
4273         (sync_new_<optab>_12): Likewise.
4274         (sync_nand_12): Likewise.
4275         (sync_old_nand_12): Likewise.
4276         (sync_new_nand_12): Likewise.
4277         (sync_sub<mode>): Likewise.
4278         (sync_old_add<mode>): Likewise.
4279         (sync_old_sub<mode>): Likewise.
4280         (sync_new_add<mode>): Likewise.
4281         (sync_new_sub<mode>): Likewise.
4282         (sync_<optab><mode>): Likewise.
4283         (sync_old_<optab><mode>): Likewise.
4284         (sync_new_<optab><mode>): Likewise.
4285         (sync_nand<mode>): Likewise.
4286         (sync_old_nand<mode>): Likewise.
4287         (sync_new_nand<mode>): Likewise.
4288         (sync_lock_test_and_set<mode>): Likewise.
4289         (test_and_set_12): Likewise.
4290         (atomic_compare_and_swap<mode>): Likewise.
4291         (atomic_exchange<mode>_llsc): Likewise.
4292         (atomic_fetch_add<mode>_llsc): Likewise.
4293         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
4294         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
4295         (umips_save_restore_pattern_p): Likewise.
4296         (umips_load_store_pair_p): Likewise.
4297         (umips_output_load_store_pair): Likewise.
4298         (umips_movep_target_p): Likewise.
4299         (umips_12bit_offset_address_p): Likewise.
4300         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
4301         (mips_base_mips16): Rename this...
4302         (mips_base_compression_flags): ...to this. Update all uses.
4303         (mips_attribute_table): Add micromips, nomicromips and nocompression.
4304         (mips_mips16_decl_p): Delete.
4305         (mips_nomips16_decl_p): Delete.
4306         (mips_get_compress_on_flags): New function.
4307         (mips_get_compress_off_flags): New function.
4308         (mips_get_compress_mode): New function.
4309         (mips_get_compress_on_name): New function.
4310         (mips_get_compress_off_name): New function.
4311         (mips_insert_attributes): Support multiple compression types.
4312         (mips_merge_decl_attributes): Likewise.
4313         (umips_12bit_offset_address_p): New function.
4314         (mips_start_function_definition): Emit .set micromips directive.
4315         (mips_call_may_need_jalx_p): New function.
4316         (mips_function_ok_for_sibcall): Add microMIPS support.
4317         (mips_print_operand_punctuation): Support short delay slots and
4318         compact jumps.
4319         (umips_swm_mask, umips_swm_encoding): New.
4320         (umips_build_save_restore): New function.
4321         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
4322         (was_mips16_p): Remove.
4323         (old_compression_mode): New.
4324         (mips_set_compression_mode): New function.
4325         (mips_set_current_function): Add microMIPS support.
4326         (mips_option_override): Likewise.
4327         (umips_save_restore_pattern_p): New function.
4328         (umips_output_save_restore): New function.
4329         (umips_load_store_pair_p_1): New function.
4330         (umips_load_store_pair_p): New function.
4331         (umips_output_load_store_pair_1): New function.
4332         (umips_output_load_store_pair): New function.
4333         (umips_movep_target_p) New function.
4334         (mips_prepare_pch_save): Add microMIPS support.
4335         * config/mips/mips.h (TARGET_COMPRESSION): New.
4336         (TARGET_CPU_CPP_BUILTINS): Update macro
4337         to use new compression flags and to support microMIPS.
4338         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
4339         (MIPS_ARCH_FLOAT_SPEC): Likewise.
4340         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
4341         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
4342         (ASM_SPEC): Support mmicromips and mno-micromips.
4343         (M16STORE_REG_P): New macro.
4344         (MIPS_CALL): Support TARGET_MICROMIPS.
4345         (MICROMIPS_J): New macro.
4346         (mips_base_mips16): Rename this...
4347         (mips_base_compression_flags): ...to this.
4348         (UMIPS_12BIT_OFFSET_P): New macro.
4349         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
4350         (MULTILIB_DIRNAMES): Likewise.
4352 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
4354         PR target/52555
4355         * target-globals.c (save_target_globals): For init_reg_sets and
4356         target_reinit remporarily set this_fn_optabs to this_target_optabs.
4358 2013-02-22  James Grennahlgh  <james.greenhalgh@arm.com>
4360         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
4361         * config/aarch64/t-aarch64
4362         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
4364 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
4366         PR inline-asm/56148
4367         * lra-constraints.c (process_alt_operands): Reload operand
4368         conflicting with earlier clobber only if no more other conflicting
4369         operands.
4371 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
4373         PR sanitizer/56393
4374         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
4375         if not linking a shared library.
4377 2013-02-22  Seth LaForge  <sethml@google.com>
4379         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
4381 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
4383         * config/arm/arm.md (split for extendsidi): Update condition.
4384         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
4385         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
4386         (qhs_zextenddi_cstr): Likewise.
4388 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
4390         PR middle-end/56420
4391         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
4392         avoid signed wrapping.
4393         (expand_mult): Handle properly multiplication by
4394         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
4395         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
4396         in the compiler if coeff is HOST_WIDE_INT_MIN.
4397         (expand_divmod): Don't make ext_op1 static, change it's type to
4398         uhwi.  Avoid undefined behavior in -INTVAL (op1).
4400         PR rtl-optimization/50339
4401         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
4402         field.
4403         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
4404         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
4405         into splitting_ashiftrt field.
4406         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
4407         ASHIFTRT.
4408         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
4409         choices.
4411 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
4413         PR middle-end/56108
4414         * trans-mem.c (execute_tm_mark): Do not expand transactions that
4415         are sure to go irrevocable.
4417 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
4419         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
4420         scalars are valid operands.
4422 2013-02-21  Martin Jambor  <mjambor@suse.cz>
4424         PR tree-optimization/56310
4425         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
4426         only matching indices and non-negative final offsets.
4427         (intersect_aggregates_with_edge): Pass src_idx to
4428         agg_replacements_to_vector.  Pass src_idx insstead of index to
4429         intersect_with_agg_replacements.
4431 2013-02-21  Martin Jambor  <mjambor@suse.cz>
4433         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
4434         instead of hard-wired defaults.
4436 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
4438         * doc/invoke.texi (MIPS Options): Update documentation of the
4439         floating-point multiply-accumulate instruction restrictions.
4441 2013-02-21  Kostya Serebryany  <kcc@google.com>
4443         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
4444         asan_shadow_offset on x86_64 linux.
4446 2013-02-21  Richard Biener  <rguenther@suse.de>
4448         PR tree-optimization/56415
4449         Revert
4450         2013-02-11  Richard Biener  <rguenther@suse.de>
4452         PR tree-optimization/56273
4453         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
4454         first VRP run.
4456 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
4458         PR bootstrap/56258
4459         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
4460         instead of @itemx.
4462         PR inline-asm/56405
4463         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
4464         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
4466 2013-02-20  Jan Hubicka  <jh@suse.cz>
4468         PR tree-optimization/56265
4469         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
4470         when target is referenced for first time.
4472 2013-02-20  Richard Biener  <rguenther@suse.de>
4474         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
4475         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
4476         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
4477         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
4478         not return anything.
4479         (rename_ssa_copies): Do not remove unused locals.
4480         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
4481         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
4482         * passes.c (execute_function_todo): Do not schedule unused locals
4483         removal if cleanup_tree_cfg did something.
4484         * tree-ssa-live.c (remove_unused_locals): Dump statistics
4485         about the number of removed locals.
4487 2013-02-20  Richard Biener  <rguenther@suse.de>
4489         PR tree-optimization/56398
4490         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
4492 2013-02-20  Martin Jambor  <mjambor@suse.cz>
4494         PR tree-optimization/55334
4495         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
4496         restricted pointers to arrays.
4498 2013-02-20  Richard Biener  <rguenther@suse.de>
4499             Jakub Jelinek  <jakub@redhat.com>
4501         PR tree-optimization/56396
4502         * tree-ssa-ccp.c (n_const_val): New static variable.
4503         (get_value): Return NULL for SSA names we don't have a lattice
4504         entry for.
4505         (ccp_initialize): Initialize n_const_val.
4506         * tree-ssa-copy.c (n_copy_of): New static variable.
4507         (init_copy_prop): Initialize n_copy_of.
4508         (get_value): Return NULL_TREE for SSA names we don't have a
4509         lattice entry for.
4511 2013-02-20  Martin Jambor  <mjambor@suse.cz>
4513         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
4515 2013-02-20  Richard Biener  <rguenther@suse.de>
4517         * genpreds.c (write_lookup_constraint): Do not compare first
4518         letter of the constraint again.
4520 2013-02-20  Richard Biener  <rguenther@suse.de>
4522         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
4523         and ceil_log2.
4524         (get_use_iv_cost): Terminate hashtable walk when coming across
4525         an empty entry.
4527 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
4529         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
4530         reassociation for avx2 targets.
4532 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
4534         * config/microblaze/microblaze.c: microblaze_has_clz = 0
4535         Add version check for v8.10.a to enable microblaze_has_clz
4536         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
4537         version and TARGET_PATTERN_COMPARE check
4538         * config/microblaze/microblaze.md: New clzsi2 instruction
4540 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
4542         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
4543         function before branching.
4545 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
4547         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
4548         DUMP_INSN_RTX_UID.
4549         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
4551 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
4553         PR middle-end/55889
4554         * sel-sched.c: Include ira.h.
4555         (implicit_clobber_conflict_p): New function.
4556         (moveup_expr): Use it.
4557         * Makefile.in (sel-sched.o): Depend on ira.h.
4559 2013-02-19  Richard Biener  <rguenther@suse.de>
4561         PR tree-optimization/56384
4562         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
4563         (vn_hash_type): Split out from ...
4564         (vn_hash_constant_with_type): ... here.
4565         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
4566         (vn_phi_eq): Compare types from vn_phi_s structure.
4567         (vn_phi_lookup): Populate vn_phi_s type.
4568         (vn_phi_insert): Likewise.
4570 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
4572         PR tree-optimization/56350
4573         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
4574         if haven't found reduction or nested cycle operand, rather than
4575         asserting we must find it.
4577         PR tree-optimization/56381
4578         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
4579         to fold_build3.
4581 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
4582             Jakub Jelinek  <jakub@redhat.com>
4584         PR target/52555
4585         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
4586         (swap_optab_enable): Same.
4587         (init_all_optabs): Use argument instead of global.
4588         * tree.h (struct tree_optimization_option): New field target_optabs.
4589         * expr.h (init_all_optabs): Add argument to prototype.
4590         (TREE_OPTIMIZATION_OPTABS): New.
4591         (save_optabs_if_changed): Protoize.
4592         * optabs.h: Declare this_fn_optabs.
4593         * optabs.c (save_optabs_if_changed): New.
4594         Declare this_fn_optabs.
4595         (init_optabs): Add argument to init_all_optabs() call.
4596         * function.c (invoke_set_current_function_hook): Handle per
4597         function optabs.
4598         * function.h (struct function): New field optabs.
4599         * config/mips/mips.c (mips_set_mips16_mode): Handle when
4600         optimization_current_node has changed.
4601         * target-globals.h (save_target_globals_default_opts): Protoize.
4602         * target-globals.c (save_target_globals_default_opts): New.
4604 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4606         PR target/56347
4607         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
4608         registers %fr12 and %fr12R as call used.
4610         PR target/56214
4611         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
4612         and HImode, require all displacements to be an integer multiple of
4613         their mode size.
4614         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
4615         only allow QImode and HImode when reload is in progress and strict is
4616         true.  Likewise for symbolic addresses.  Use base14_operand to check
4617         displacements in REG+BASE addresses.
4619 2013-02-18  Richard Biener  <rguenther@suse.de>
4621         PR tree-optimization/56366
4622         * tree-vect-loop.c (get_initial_def_for_induction): Properly
4623         handle sign-conversion of outer-loop initial induction value.
4625 2013-02-18  Richard Biener  <rguenther@suse.de>
4627         PR middle-end/56349
4628         * cfghooks.c (merge_blocks): If we merge a latch into another
4629         block adjust references to it.
4630         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
4631         (verify_loop_structure): Verify that a recorded latch is in fact
4632         a latch.
4634 2013-02-18  Richard Biener  <rguenther@suse.de>
4636         PR tree-optimization/56321
4637         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
4638         order SSA name release and virtual operand unlinking.
4640 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
4642         * config/microblaze/microblaze.md (save_stack_block): Define.
4643         (restore_stack_block): Likewise.
4645 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
4647         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
4648         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
4649         * config/microblaze/microblaze.c (microblaze_option_override):
4650         Bail out early for PIC modes when target does not support PIC.
4652 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
4654         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
4655         Replace with a microblaze version.
4656         (microblaze_trampoline_init): Adapt for microblaze.
4657         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
4658         microblaze.
4660 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
4661             Dodji Seketeli  <dodji@redhat.com>
4663         PR asan/56330
4664         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
4665         (instrument_mem_region_access): Do not forget to always put
4666         instrumentation of the of 'base' and 'base + len' in a "if (len !=
4667         0) statement, even for cases where either 'base' or 'base + len'
4668         are not instrumented -- because they have been previously
4669         instrumented.  Simplify the logic by putting all the statements
4670         instrument 'base + len' inside a sequence, and then insert that
4671         sequence right before the current insertion point.  Then, to
4672         instrument 'base + len', just get an iterator on that statement.
4673         And do not forget to update the pointer to iterator the function
4674         received as argument.
4676 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
4678         PR rtl-optimization/56348
4679         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
4681 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
4683         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
4684         (clean_graph_dump_file): Pass base to start_graph_dump.
4686 2013-02-14  Richard Henderson  <rth@redhat.com>
4688         PR target/55941
4689         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
4691 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
4693         * collect2-aix.h: Define F_LOADONLY.
4695 2013-02-14  Richard Biener  <rguenther@suse.de>
4697         PR lto/50494
4698         * varasm.c (output_constant_def_1): Get the decl representing
4699         the constant as argument.
4700         (output_constant_def): Wrap output_constant_def_1.
4701         (make_decl_rtl): Use output_constant_def_1 with the decl
4702         representing the constant.
4703         (build_constant_desc): Optionally re-use a decl already
4704         representing the constant.
4705         (tree_output_constant_def): Adjust.
4707 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
4709         Fix an asan crash
4710         * asan.c (instrument_builtin_call):  Really put the length of the
4711         second source argument into src1_len.
4713 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
4715         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
4716         argument.  If it is false, don't create edge from then_bb to
4717         fallthru_bb.
4718         (insert_if_then_before_iter): Pass true to it.
4719         (build_check_stmt): Pass false to it.
4720         (transform_statements): Flush hash table only on extended basic
4721         block boundaries, rather than at the beginning of every bb.
4722         Don't flush hash table on nonfreeing_call_p calls.
4723         * tree-flow.h (nonfreeing_call_p): New prototype.
4724         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
4726 2013-02-13  David S. Miller  <davem@davemloft.net>
4728         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
4730 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
4732         PR target/56184
4733         * ira.c (max_regno_before_ira): Move from ...
4734         (ira): ... here.
4735         (fix_reg_equiv_init): Use max_regno_before_ira instead of
4736         vec_safe_length.
4738 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
4740         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
4742 2013-02-13  Richard Biener  <rguenther@suse.de>
4744         PR lto/56295
4745         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
4746         globals in MEM_REFs.
4748 2013-02-13  Richard Biener  <rguenther@suse.de>
4750         * loop-init.c (loop_optimizer_init): Clear loop state when
4751         re-initializing preserved loops.
4752         * loop-unswitch.c (unswitch_single_loop): Return whether
4753         we unswitched the loop.  Do not verify loop state here.
4754         (unswitch_loops): When we unswitched a loop discover new loops.
4756 2013-02-13  Kostya Serebryany  <kcc@google.com>
4758         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
4759         on x86_64 linux.
4760         * sanitizer.def: Rename __asan_init to __asan_init_v1.
4762 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
4764         Avoid instrumenting duplicated memory access in the same basic block
4765         * Makefile.in (asan.o): Add new dependency on hash-table.h
4766         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
4767         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
4768         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
4769         (free_mem_ref_resources, has_mem_ref_been_instrumented)
4770         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
4771         (get_mem_ref_of_assignment): New functions.
4772         (get_mem_refs_of_builtin_call): Extract from
4773         instrument_builtin_call and tweak a little bit to make it fit with
4774         the new signature.
4775         (instrument_builtin_call): Use the new
4776         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
4777         of is_gimple_builtin_call.
4778         (instrument_derefs, instrument_mem_region_access): Insert the
4779         instrumented memory reference into the hash table.
4780         (maybe_instrument_assignment): Renamed instrument_assignment into
4781         this, and change it to advance the iterator when instrumentation
4782         actually happened and return true in that case.  This makes it
4783         homogeneous with maybe_instrument_assignment, and thus give a
4784         chance to callers to be more 'regular'.
4785         (transform_statements): Clear the memory reference hash table
4786         whenever we enter a new BB, when we cross a function call, or when
4787         we are done transforming statements.  Use
4788         maybe_instrument_assignment instead of instrumentation.  No more
4789         need to special case maybe_instrument_assignment and advance the
4790         iterator after calling it; it's now handled just like
4791         maybe_instrument_call.  Update comment.
4793 2013-02-13  Richard Biener  <rguenther@suse.de>
4795         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
4796         Fix loop discovery code.
4798 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
4800         PR inline-asm/56148
4801         * lra-constraints.c (process_alt_operands): Match early clobber
4802         operand with itself.  Check conflicts with earlyclobber only if
4803         the operand is not reloaded.  Prefer to reload conflicting operand
4804         if earlyclobber and matching operands are the same.
4806 2013-02-12  Richard Biener  <rguenther@suse.de>
4808         PR lto/56297
4809         * lto-streamer-out.c (write_symbol): Do not output symbols
4810         for hard register variables.
4812 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
4814         PR target/54222
4815         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
4816         (umulsidi3_insn, mulsidi3_insn): New insns.
4818 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
4820         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
4821         (struct tune_params): Add vec_costs field.
4822         * config/arm/arm.c (arm_builtin_vectorization_cost)
4823         (arm_add_stmt_cost): New functions.
4824         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
4825         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
4826         (arm_default_vec_cost): New struct of type cpu_vec_costs.
4827         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
4828         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
4829         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
4830         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
4832 2013-02-12  Richard Biener  <rguenther@suse.de>
4834         PR lto/56295
4835         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
4836         decls again if possible.
4838 2013-02-12  Richard Biener  <rguenther@suse.de>
4840         PR middle-end/56288
4841         * tree-ssa.c (verify_ssa_name): Fix check, move
4842         SSA_NAME_IN_FREE_LIST check up.
4844 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
4845             Steven Bosscher   <steven@gcc.gnu.org>
4847         PR rtl-optimization/56151
4848         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
4849         equal to op0 or op1, and last_insn pattern is CODE operation
4850         with MEM dest and one of the operands matches that MEM.
4852 2013-02-11  Sriraman Tallam  <tmsriramgoogle.com>
4854         * doc/extend.texi: Document Function Multiversioning and "default"
4855         parameter string to target attribute.
4856         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
4857         target attribute parameter is "default".
4858         (ix86_compare_version_priority): Remove checks for target attribute.
4859         (ix86_mangle_function_version_assembler_name): Change error to sorry.
4860         Remove check for target attribute equal to NULL. Add assert.
4861         (ix86_generate_version_dispatcher_body): Change error to sorry.
4863 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
4864             Jack Howarth  <howarth@bromo.med.uc.edu>
4865             Patrick Marlier  <patrick.marlier@gmail.com>
4867         PR libitm/55693
4868         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
4869         define ENDFILE_SPEC as TM_DESTRUCTOR.
4870         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
4872 2013-02-11  Alexander Potapenko  <glider@google.com>
4873             Jack Howarth  <howarth@bromo.med.uc.edu>
4874             Jakub Jelinek  <jakub@redhat.com>
4876         PR sanitizer/55617
4877         * config/darwin.c (cdtor_record): Rename ctor_record.
4878         (sort_cdtor_records): Rename sort_ctor_records.
4879         (finalize_dtors): New routine to sort destructors by
4880         priority before use in assemble_integer.
4881         (machopic_asm_out_destructor): Use finalize_dtors if needed.
4883 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
4885         PR rtl-optimization/56275
4886         * simplify-rtx.c (avoid_constant_pool_reference): Check that
4887         offset is non-negative and less than cmode size before
4888         calling simplify_subreg.
4890 2013-02-11  Richard Biener  <rguenther@suse.de>
4892         PR tree-optimization/56264
4893         * cfgloop.h (fix_loop_structure): Adjust prototype.
4894         * loop-init.c (fix_loop_structure): Return the number of
4895         newly discovered loops.
4896         * tree-cfgcleanup.c (repair_loop_structures): When new loops
4897         are discovered, do a full loop-closed SSA rewrite.
4899 2013-02-11  Richard Biener  <rguenther@suse.de>
4901         PR tree-optimization/56273
4902         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
4903         first VRP run.
4904         (check_array_ref): Fix missing newline in dumps.
4905         (search_for_addr_array): Likewise.
4907 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
4909         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
4911 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
4913         PR target/56256
4914         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
4916 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
4918         PR rtl-optimization/56246
4919         * lra-constraints.c (simplify_operand_subreg): Try to reuse
4920         reload pseudo.
4921         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
4922         constraints are satisfied.
4924 2013-02-08  Jeff Law  <law@redhat.com>
4926         PR debug/53948
4927         * emit-rtl.c (reg_is_parm_p): New function.
4928         * regs.h (reg_is_parm_p): New prototype.
4929         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
4930         callee-clobbered registers.
4932 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
4934         PR target/56043
4935         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
4936         If there is no implicit builtin declaration, just return NULL.
4938 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
4940         * config/i386/sse.md (FMAMODEM): New mode iterator.
4941         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
4942         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
4944 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
4946         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
4947         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
4948         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
4950 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
4952         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
4953         (microblaze*-*-elf): Likewise.
4954         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
4955         LINK_SPEC.
4956         * config/microblaze/microblaze-c.c: Add builtin defines for
4957         _LITTLE_ENDIAN and _BIG_ENDIAN.
4958         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
4959         add to TARGET_DEFAULT flags.
4960         Expand ASM_SPEC and LINK_SPEC.
4961         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
4962         * config/microblaze/microblaze.md: Update extendsidi2 and
4963         movdi_internal instructions to use low-order / high-order reg
4964         print_operands.
4965         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
4966         options and inversemask / mask of LITTLE_ENDIAN.
4967         * config/microblaze/t-microblaze: Expand multilib options to
4968         include mlittle-endian (le) and update exceptions patterns.
4970 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
4972         PR rtl-optimization/56195
4973         * lra-constraints.c (get_reload_reg): Don't reuse regs
4974         if they have smaller mode than requested, if they have
4975         wider mode than requested, try to return a SUBREG.
4977         PR tree-optimization/56250
4978         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
4979         if type is unsigned and code isn't MULT_EXPR.
4981 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
4983         PR tree-optimization/56064
4984         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
4985         bits according to mode.
4986         * fixed-value.h (fixed_from_double_int)
4987         (const_fixed_from_double_int): Adjust comments.
4989 2013-02-08  Richard Biener  <rguenther@suse.de>
4991         PR lto/56231
4992         * lto-streamer.h (struct data_in): Remove current_file, current_line
4993         and current_col members.
4994         * lto-streamer-out.c (lto_output_location): Stream changed bits
4995         en-block for efficiency.
4996         * lto-streamer-in.c (clear_line_info): Remove.
4997         (lto_input_location): Cache current file, line and column
4998         globally via local statics.  Read changed bits en-block.
4999         (input_function): Do not call clear_line_info.
5000         (lto_read_body): Likewise.
5001         (lto_input_toplevel_asms): Likewise.
5003 2013-02-08  Michael Matz  <matz@suse.de>
5005         PR tree-optimization/52448
5006         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
5007         (nt_call_phase): New static.
5008         (add_or_mark_expr): Only mark accesses with newer phase than any
5009         call seen.
5010         (nonfreeing_call_p): New.
5011         (nt_init_block): Update nt_call_phase, mark blocks as visited.
5012         (nt_fini_block): Keep blocks marked as visited.
5013         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
5015 2013-02-08  Richard Biener  <rguenther@suse.de>
5017         * ira.c (ira): Free broken dominator information.
5019 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
5021         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
5023 2013-02-08  Marek Polacek  <polacek@redhat.com>
5025         * cfgloop.c (verify_loop_structure): Add more checking of headers.
5027 2013-02-08  Richard Biener  <rguenther@suse.de>
5029         PR middle-end/56181
5030         * cfgloop.h (flow_loops_find): Adjust.
5031         (bb_loop_header_p): Declare.
5032         * cfgloop.c (bb_loop_header_p): New function split out from ...
5033         (flow_loops_find): ... here.  Adjust function signature,
5034         support incremental loop structure update.
5035         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
5036         * cfgloopmanip.c (fix_loop_structure): Move ...
5037         * loop-init.c (fix_loop_structure): ... here.
5038         (apply_loop_flags): Split out from ...
5039         (loop_optimizer_init): ... here.
5040         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
5041         in incremental mode, only remove dead loops here.
5043 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
5045         PR target/54222
5046         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
5047         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
5048         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
5049         (*round<mode>3.libgcc): New insns for fixed-modes.
5050         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
5051         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
5052         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
5053         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
5054         implementations.  Define to __builtin_avr_absFX,
5055         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
5056         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
5057         __builtin_avr_countlsFX, respectively.
5058         * config/avr/avr-c.c (target.h): Include it.
5059         (enum avr_builtin_id): New enum.
5060         (avr_resolve_overloaded_builtin): New static function.
5061         (avr_register_target_pragmas): Use it to set
5062         targetm.resolve_overloaded_builtin.
5063         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
5064         tree nodes used by DEF_BUILTIN.
5065         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
5066         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
5067         <AVR_BUILTIN_xxBITS>: Same.
5069 2013-02-08  Richard Biener  <rguenther@suse.de>
5071         * cfgloop.c (verify_loop_structure): Properly handle
5072         a loop exiting to another loop header.
5073         * ira-int.h (ira_loops): Remove.
5074         * ira.c (ira_loops): Remove.
5075         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
5076         (do_reload): Use loop_optimizer_finalize.
5077         * ira-build.c (create_loop_tree_nodes): Use get_loops and
5078         number_of_loops to access the loop tree.
5079         (more_one_region_p): Likewise.
5080         (finish_loop_tree_nodes): Likewise.
5081         (rebuild_regno_allocno_maps): Likewise.
5082         (mark_loops_for_removal): Likewise.
5083         (mark_all_loops_for_removal): Likewise.
5084         (remove_unnecessary_regions): Likewise.
5085         (ira_build): Likewise.
5086         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
5088 2013-02-08  Richard Biener  <rguenther@suse.de>
5090         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
5091         * ipa-pure-const.c (analyze_function): Avoid calling
5092         mark_irreducible_loops twice.
5093         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
5095 2013-02-07  David S. Miller  <davem@davemloft.net>
5097         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
5098         on 'reg'.
5099         * var-tracking.c (vt_add_function_parameter): Test the presence of
5100         HAVE_window_save properly and do not remap argument registers when
5101         we have a leaf function.
5103 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
5105         PR bootstrap/56227
5106         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
5107         instead of "ll".
5108         * config/i386/i386.c (ix86_print_operand): Ditto.
5110 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
5112         * lra-constraints.c (process_alt_operands): Fix recently added comment.
5114 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
5116         PR rtl-optimization/56225
5117         * lra-constraints.c (process_alt_operands): Check that reload hard
5118         reg can hold value for strict_low_part.
5120 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
5122         PR debug/56154
5123         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
5124         dwarf2out_end_function.
5125         (in_first_function_p, maybe_at_text_label_p,
5126         first_loclabel_num_not_at_text_label): New variables.
5127         (dwarf2out_var_location): In the first function find out
5128         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
5129         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
5130         functions.
5132 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
5134         PR rtl-optimization/56178
5135         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
5136         SUBREG of a register.  Tidy up related block of code.
5137         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
5138         note if the source is a register or a SUBREG of a register.
5140 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
5142         PR target/56228
5143         * config/rs6000/rs6000.md (ptrm): New mode attr.
5144         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
5145         call_value_indirect_aix<pttrsize>,
5146         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
5147         m in constraints.
5149 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
5151         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
5152         if -bnortl. Convert to strcmp and strncmp.
5154 2013-02-07  Alan Modra  <amodra@gmail.com>
5156         PR target/54009
5157         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
5158         addresses won't wrap when offsetting.
5159         (rs6000_secondary_reload): Provide secondary reloads needed for
5160         wrapping LO_SUM addresses.
5162 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
5164         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
5165         MACH, just __MACH__.
5167 2013-02-06  Richard Biener  <rguenther@suse.de>
5169         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
5170         instead of calling fix_loop_structure.
5172 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
5174         PR middle-end/56217
5175         * omp-low.c (use_pointer_for_field): Return false if
5176         lower_send_shared_vars doesn't generate any copy-out code.
5178 2013-02-06  Tom de Vries  <tom@codesourcery.com>
5180         PR rtl-optimization/56131
5181         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
5182         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
5183         of the label is NULL.  Add comment.
5185 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
5187         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
5189         PR sanitizer/55374
5190         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
5191         (STATIC_LIBTSAN_LIBS): Likewise.
5192         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
5193         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
5194         is defined, don't add anything else beyond that.
5195         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
5196         (LINK_COMMAND_SPEC): Use them.
5198         PR tree-optimization/56205
5199         * tree-stdarg.c (check_all_va_list_escapes): Return true if
5200         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
5201         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
5203 2013-02-05  Richard Biener  <rguenther@suse.de>
5205         PR tree-optimization/53342
5206         PR tree-optimization/53185
5207         * tree-vectorizer.h (vect_check_strided_load): Remove.
5208         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
5209         not disallow peeling for vectorized strided loads.
5210         (vect_check_strided_load): Make static and simplify.
5211         (vect_analyze_data_refs): Adjust.
5212         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
5213         correctly when vectorizing strided loads.
5215 2013-02-05  Richard Biener  <rguenther@suse.de>
5217         * doc/install.texi: Refer to ISL, not PPL.
5219 2013-02-05  Jan Hubicka  <jh@suse.cz>
5221         PR tree-optimization/55789
5222         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
5224 2013-02-05  Jan Hubicka  <jh@suse.cz>
5226         PR tree-optimization/55789
5227         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
5228         the dead call anyway.
5230 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
5232         PR sanitizer/55374
5233         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
5235 2013-02-04  Alexander Potapenko  <glider@google.com>
5236             Jack Howarth  <howarth@bromo.med.uc.edu>
5237             Jakub Jelinek  <jakub@redhat.com>
5239         PR sanitizer/55617
5240         * config/darwin.c (sort_ctor_records): Stabilized qsort
5241         on constructor priority by using original position.
5242         (finalize_ctors): New routine to sort constructors by
5243         priority before use in assemble_integer.
5244         (machopic_asm_out_constructor): Use finalize_ctors if needed.
5246 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
5248         PR libstdc++/54314
5249         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
5250         about visibility on artificial decls.
5251         * config/sol2.c (solaris_assemble_visibility): Likewise.
5253 2013-02-04  Kai Tietz  <ktietz@redhat.com>
5255         PR target/56186
5256         * config/i386/i386.c (function_value_ms_64): Add additional valtype
5257         argument and improve checking of return-argument types for 16-byte
5258         modes.
5259         (ix86_function_value_1): Add additional valtype argument on call
5260         of function_value_64.
5261         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
5262         handling infunction_value_64 function.
5264 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
5266         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
5268 2013-02-04  Richard Biener  <rguenther@suse.de>
5270         PR tree-optimization/56188
5271         * tree-ssa-structalias.c (label_visit): Consider case with
5272         initially non-empty points-to set.
5273         (perform_var_substitution): Dump node mapping and clean up.
5275 2013-02-04  Richard Guenther  <rguenther@suse.de>
5277         PR lto/56168
5278         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
5279         node prevail as last resort.
5280         (lto_symtab_merge_decls): Remove guard on LTRANS here.
5281         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
5283 2013-02-04  Richard Biener  <rguenther@suse.de>
5285         PR tree-optimization/56113
5286         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
5287         Merge into ...
5288         (equiv_class_lookup_or_add): ... this.
5289         (label_visit): Adjust and fix error in previous patch.
5290         (perform_var_substitution): Adjust.
5292 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
5294         * config/sh/divtab.c: Fix formatting and comments throughout the file.
5295         * config/sh/sh4-300.md: Likewise.
5296         * config/sh/sh4a.md: Likewise.
5297         * config/sh/constraints.md: Likewise.
5298         * config/sh/sh.md: Likewise.
5299         * config/sh/netbsd-elf.h: Likewise.
5300         * config/sh/predicates.md: Likewise.
5301         * config/sh/sh-protos.h: Likewise.
5302         * config/sh/ushmedia.h: Likewise.
5303         * config/sh/linux.h: Likewise.
5304         * config/sh/sh.c: Likewise.
5305         * config/sh/superh.h: Likewise.
5306         * config/sh/elf.h: Likewise.
5307         * config/sh/sh4.md: Likewise.
5308         * config/sh/sh.h: Likewise.
5310 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5312         * config/pa/constraints.md: Adjust unused letters.  Change "T"
5313         constraint to match_test floating_point_store_memory_operand().
5314         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
5315         (base14_operand): New.
5316         (floating_point_store_memory_operand): New.
5317         (integer_store_memory_operand): Revise to use base14_operand and
5318         reg_plus_base_memory_operand.
5319         (move_dest_operand): Allow symbolic_memory_operands.
5320         (symbolic_memory_operand): Check for LO_SOM.
5321         (symbolic_operand): Change default case to break.
5322         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
5323         CONST_DOUBLE values to be reloaded by putting them into memory when
5324         the destination is a floating point register.
5325         (movdf): Remove code to handle CONST_DOUBLE.
5326         (movsf): Likewise.
5327         (reload_indf_r1): New.
5328         (reload_insf_r1): New.
5329         Consistently use "Q" and "T" constraints with integer and floating
5330         point move instructions, respectively.
5331         (movdi): Remove FAIL.
5332         Change predicate for source operand unamed DImode move from
5333         general_operand to move_src_operand.
5334         (umulsidi3): Change predicate for destination operand to
5335         register_operand.
5336         Likewise for similar unamed patterns.
5337         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
5338         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
5339         (hppa_legitimize_address): Simplify mask calculation.
5340         (pa_emit_move_sequence): Revised handling of secondary reloads from
5341         REG+D addresses for floating point loads and stores.  Directly handle
5342         loading CONST0_RTX (mode) to a floating point register.
5343         (pa_secondary_reload): Handle reloading DF and SFmode constant values
5344         to floating point registers.  Don't restrict secondary reloads to
5345         floating point registers to integer modes.  Revise some comments and
5346         cleanup some code.
5347         (TARGET_LEGITIMATE_ADDRESS_P): Define.
5348         (pa_legitimate_address_p): New.
5349         (pa_legitimize_reload_address): New.
5350         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
5351         (STRICT_REG_OK_FOR_BASE_P): New.
5352         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
5353         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
5355 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
5356             Andrew Dixie  <andrewd@gentrack.com>
5358         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
5359         flag set.
5361 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
5363         * expmed.c (extract_bit_field_1): Pass the full width of the
5364         structure to get_best_reg_extraction_insn.
5366 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
5368         PR target/54601
5369         * configure.ac (use_cxa_atexit): Add AIX.
5370         * configure: Regenerate.
5372         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
5374 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
5376         PR debug/54793
5377         * final.c (need_profile_function): New variable.
5378         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
5379         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
5380         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
5381         notes, targetm.asm_out.function_prologue doesn't emit anything,
5382         HAVE_prologue and profiler should be emitted before prologue,
5383         set need_profile_function instead of emitting it.
5384         (final_scan_insn): If need_profile_function, emit
5385         profile_function on the first NOTE_INSN_BASIC_BLOCK or
5386         NOTE_INSN_FUNCTION_BEG note.
5388 2013-02-01  Richard Henderson  <rth@redhat.com>
5390         * config/rs6000/rs6000.md (smulditi3): New.
5391         (umulditi3): New.
5393         * config/alpha/alpha.md (umulditi3): New.
5395 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
5397         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
5398         (ASM_OUTPUT_ALIGNED_LOCAL): New.
5400 2013-02-01  Richard Biener  <rguenther@suse.de>
5402         PR tree-optimization/56113
5403         * tree-ssa-structalias.c (label_visit): Reduce work for
5404         single-predecessor nodes.
5406 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
5408         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
5409         range isn't testing for zero.
5411 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
5413         PR middle-end/56113
5414         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
5416 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
5417             Nick Clifton  <nickc@redhat.com>
5419         * config/v850/constraints.md (Q): Define as a memory constraint.
5420         * config/v850/predicates.md (label_ref_operand): New predicate.
5421         (e3v5_shift_operand): New predicate.
5422         (ior_operator): New predicate.
5423         * config/v850/t-v850: Add e3v5 multilib.
5424         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
5425         (v850_gen_movdi): Prototype.
5426         * config/v850/v850.c: Add support for e3v5 architecture.
5427         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
5428         TARGET_V850E_UP.
5429         (construct_save_jarl): Add e3v5 long JARL support.
5430         (v850_adjust_insn_length): New function.  Adjust length of call
5431         insns when using e3v5 instructions.
5432         (v850_gen_movdi): New function: Generate instructions to move a
5433         DImode value.
5434         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
5435         (CPP_SPEC): Define __v850e3v5__ as appropriate.
5436         (TARGET_USE_FPU): Enable for e3v5.
5437         (CONST_OK_FOR_W): New macro.
5438         (ADJUST_INSN_LENGTH): Define.
5439         * config/v850/v850.md (UNSPEC_LOOP): Define.
5440         (attr cpu): Add v850e3v5.
5441         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
5442         (movdi): New pattern.
5443         (movdi_internal): New pattern.
5444         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
5445         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
5446         (cstoresf4): Likewise.
5447         (cstoredf4): Likewise.
5448         (insv): New pattern.
5449         (rotlso3_a): New pattern.
5450         (rotlsi3_b): New pattern
5451         (rotlsi3_v850e3v5): New pattern.
5452         (doloop_begin): New pattern.
5453         (fix_loop_counter): New pattern.
5454         (doloop_end): New pattern.
5455         (branch_normal): Add e3v5 long branch support.
5456         (branch_invert): Likewise.
5457         (branch_z_normal): Likewise.
5458         (branch_z_invert): Likewise.
5459         (branch_nz_normal): Likewise.
5460         (branch_nz_invert): Likewise.
5461         (call_internal_short): Add e3v5 register-indirect JARL support.
5462         (call_internal_long): Likewise.
5463         (call_value_internal_short): Likewise.
5464         (call_value_internal_long): Likewise.
5465         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
5466         (mloop): New option.
5467         * config.gcc: Add support for configuring v840e3v5 target.
5468         * doc/invoke.texi: Document new v850 specific command line options.
5470 2013-01-31  Paul Koning  <ni1d@arrl.net>
5472         PR debug/55059
5473         PR debug/54508
5474         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
5475         children if parent is a class.
5476         (prune_unused_types_prune): Don't add DW_AT_declaration.
5478 2013-01-31  Richard Biener  <rguenther@suse.de>
5480         PR tree-optimization/56157
5481         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
5482         match up operand with SLP child.
5484 2013-01-31  Jason Merrill  <jason@redhat.com>
5486         PR debug/54410
5487         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
5488         parameters the first time.
5489         (gen_scheduled_generic_parms_dies): Check completeness here.
5491 2013-01-31  Richard Biener  <rguenther@suse.de>
5493         PR middle-end/53073
5494         * common.opt (faggressive-loop-optimizations): New flag,
5495         enabled by default.
5496         * doc/invoke.texi (faggressive-loop-optimizations): Document.
5497         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
5498         infer_loop_bounds_from_undefined by it.
5500 2013-01-31  Richard Biener  <rguenther@suse.de>
5502         PR tree-optimization/56150
5503         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
5504         visit virtual operands.
5505         (find_uses_to_rename_bb): Likewise.
5507 2013-01-31  Richard Biener  <rguenther@suse.de>
5509         PR tree-optimization/56150
5510         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
5511         mixed store non-store stmts.
5513 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
5515         PR sanitizer/55374
5516         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
5517         LIBASAN_EARLY_SPEC is defined.
5518         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
5519         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
5520         before %o.
5521         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
5523         PR c++/55742
5524         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
5525         invalid args instead of ICEing on it.
5526         (ix86_valid_target_attribute_tree): Return error_mark_node if
5527         ix86_valid_target_attribute_inner_p failed.
5528         (ix86_valid_target_attribute_p): Return false only if
5529         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
5530         target("default") attribute.
5531         (sorted_attr_string): Change argument from const char * to tree,
5532         merge in all target attribute arguments rather than just one.
5533         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
5534         instead of free.  Avoid using strcat.
5535         (ix86_mangle_function_version_assembler_name): Mangle
5536         target("default") as if no target attribute is present.  Adjust
5537         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
5538         instead of xmalloc and XDELETEVEC instead of free.
5539         (ix86_function_versions): Don't return true if one of the decls
5540         doesn't have target attribute.  If they don't and one of the decls
5541         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
5542         sorted_attr_string caller.  Use XDELETEVEC instead of free.
5543         (ix86_supports_function_versions): Remove.
5544         (make_name): Fix up formatting.
5545         (make_dispatcher_decl): Remove resolver_name and its initialization.
5546         Avoid leaking memory.
5547         (is_function_default_version): Return true if there is
5548         target("default") attribute rather than no target attribute at all.
5549         (make_resolver_func): Avoid leaking memory.
5550         (ix86_generate_version_dispatcher_body): Likewise.
5551         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
5552         * target.def (supports_function_versions): Remove.
5553         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
5554         * doc/tm.texi: Regenerated.
5556 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
5558         PR rtl-optimization/56144
5559         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
5560         for values with side effects.
5562 2013-01-30  Richard Biener  <rguenther@suse.de>
5564         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
5565         (sparseset_pop): Likewise.
5566         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
5567         to be able to use quick_push in the worker loop.
5569 2013-01-30  Marek Polacek  <polacek@redhat.com>
5571         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
5573 2013-01-30  Richard Biener  <rguenther@suse.de>
5575         PR lto/56147
5576         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
5578 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
5580         PR tree-optimization/56064
5581         * fixed-value.c (fixed_from_double_int): New function.
5582         * fixed-value.h (fixed_from_double_int): New prototype.
5583         (const_fixed_from_double_int): New static inline function.
5584         * fold-const.c (native_interpret_fixed): New static function.
5585         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
5586         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
5587         (native_encode_fixed): New static function.
5588         (native_encode_expr) <FIXED_CST>: Use it.
5589         (native_interpret_int): Move double_int worker code to...
5590         * double-int.c (double_int::from_buffer): ...this new static method.
5591         * double-int.h (double_int::from_buffer): Prototype it.
5593 2013-01-30  Richard Biener  <rguenther@suse.de>
5595         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
5596         New pointer-map and obstack.
5597         (init_alias_vars): Allocate pointer-map and obstack.
5598         (delete_points_to_sets): Free them.
5599         (find_what_var_points_to): Cache result.
5600         (find_what_p_points_to): Adjust for changed interface of
5601         find_what_var_points_to.
5602         (compute_points_to_sets): Likewise.
5603         (ipa_pta_execute): Likewise.
5605 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5607         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
5608         * configure: Regenerate.
5609         * config.in: Regenerate.
5610         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
5611         #nobits/#progbits if supported.
5613 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
5615         PR target/56121
5616         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
5617         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
5618         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
5620 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
5622         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
5623         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
5625 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
5627         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
5628         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
5630 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
5632         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
5633         declaration.
5634         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
5635         * config/arm/cortex-a7.md: New bypasses using
5636         arm_mac_accumulator_is_result.
5638 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
5640         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
5641         (cortex_a7_neon_mla): Likewise.
5642         (cortex_a7_fpfmad): New reservation.
5643         (cortex_a7_fpmacs): Use ffmas and update required units.
5644         (cortex_a7_fpmuld): Update required units and latency.
5645         (cortex_a7_fpmacd): Likewise.
5646         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
5647         (cortex_a7_neon). Likewise.
5648         (bypass) Update participating units.
5650 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
5652         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
5653         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
5654         from fmac to ffma.
5655         * config/arm/vfp11.md (vfp_farith): Use ffmas.
5656         (vfp_fmul): Use ffmad.
5657         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
5658         (cortex_r4_fmacd): Use ffmad.
5659         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
5660         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
5661         (cortex_a9_fmacd): Use ffmad.
5662         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
5663         (cortex_a8_vfp_macd): Use ffmad.
5664         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
5665         (cortex_a5_fpmacd): Use ffmad.
5666         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
5667         (cortex_a15_vfp_macd): Use ffmad.
5668         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
5670 2013-01-29  Jason Merrill  <jason@redhat.com>
5672         PR libstdc++/54314
5673         * varasm.c (default_assemble_visibility): Don't warn about
5674         visibility on artificial decls.
5676 2013-01-29  Richard Biener  <rguenther@suse.de>
5678         PR tree-optimization/56113
5679         * tree-ssa-structalias.c (equiv_class_lookup): Also return
5680         the bitmap leader.
5681         (label_visit): Free duplicate bitmaps and record the leader instead.
5682         (perform_var_substitution): Adjust.
5684 2013-01-29  Richard Biener  <rguenther@suse.de>
5686         PR tree-optimization/55270
5687         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
5688         the CFG, schedule loops for fixup.
5690 2013-01-29  Nick Clifton  <nickc@redhat.com>
5692         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
5693         SP_REG.
5695 2013-01-28  Leif Ekblad  <leif@rdos.net>
5697         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
5698         * config/i386/i386.h (TARGET_RDOS): New macro.
5699         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
5700         * config/i386/i386.c (ix86_option_override_internal): For 64bit
5701         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
5702         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
5703         DEFAULT_LARGE_SECTION_THRESHOLD.
5704         * config/i386/i386.md (R14_REG, R15_REG): New constants.
5705         * config/i386/rdos.h: New file.
5706         * config/i386/rdos64.h: New file.
5708 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
5710         PR other/54814
5711         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
5712         TEST_HARD_REG_BIT.
5714 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
5716         PR rtl-optimization/56117
5717         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
5718         call cselib_lookup_from_insn on the MEM before calling
5719         add_insn_mem_dependence.
5721 2013-01-28  Richard Biener  <rguenther@suse.de>
5723         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
5724         to a stmt that didn't have one.
5725         (copy_phis_for_bb): Likewise for PHI arguments.
5726         (copy_debug_stmt): Likewise for debug stmts.
5728 2013-01-28  Richard Biener  <rguenther@suse.de>
5730         PR tree-optimization/56034
5731         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
5732         (partition_builtin_p): Adjust.
5733         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
5734         it is the last partition.
5735         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
5736         up the vertex for the definition.
5737         (classify_partition): Classify whether a partition is a
5738         PKIND_REDUCTION, thus has uses outside of the loop.
5739         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
5740         Merge all PKIND_REDUCTION partitions into the last partition.
5741         (tree_loop_distribution): Seed partitions from reductions as well.
5743 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
5745         PR tree-optimization/56125
5746         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
5747         pow(x,c) into sqrt(x) * powi(x, n/2) or
5748         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
5749         optimizing for size.
5750         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
5751         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
5752         integer.
5754         PR tree-optimization/56094
5755         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
5756         to UNKNOWN_LOCATION while gimplifying expr.
5758 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
5760         PR target/56114
5761         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
5762         operand 0 in movabs insn template for -masm=intel asm alternative.
5763         (*movabs<mode>_2): Ditto for operand 1.
5765 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
5767         PR target/54663
5768         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
5769         of microblaze-c.o
5771 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
5773         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
5774         tm_file.
5776 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5778         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
5779         Undef to avoid warning.
5781 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
5783         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
5784         * configure: Regenerate.
5786 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
5788         PR tree-optimization/56098
5789         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
5790         for stmts with volatile ops.
5791         (cond_store_replacement): Don't optimize if assign has volatile ops.
5792         (cond_if_else_store_replacement_1): Don't optimize if either
5793         then_assign or else_assign have volatile ops.
5794         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
5795         volatile ops.
5797 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
5799         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
5801 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
5803         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
5804         missing ':' in asm example.
5806 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
5808         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
5809         entries into lane and laneq entries.
5810         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
5811         Remove AdvSIMD scalar modes.
5812         (aarch64_sq<r>dmulh_laneq<mode>): New.
5813         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
5814         modes.
5815         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
5816         builtin implementations to relfect changes in RTL in aarch64-simd.md.
5817         * config/aarch64/iterators.md (VCOND): New.
5818         (VCONQ): New.
5820 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
5822         PR target/54222
5823         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
5824         Add NULL LIBNAME argument to existing definitions.
5825         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
5826         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
5827         * config/avr/avr.c (DEF_BUILTIN): Same.
5828         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
5829         (avr_expand_builtin): Expand to a vanilla call if a libgcc
5830         implementation is available (DECL_ASSEMBLER_NAME is set).
5831         (avr_fold_absfx): New static function.
5832         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
5833         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
5834         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
5835         AVR_BUILTIN_ABSLLK.
5836         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
5837         (abshk, absk, abslk, absllk): Provide as static inline functions.
5839 2013-01-25  Marek Polacek  <polacek@redhat.com>
5841         PR tree-optimization/56035
5842         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
5844 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
5846         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
5847         (*movtf_internal_rex64): Add (!o,C) alternative
5848         (*movxf_internal_rex64): Ditto.
5849         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
5851 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
5853         * doc/invoke.texi: fix typo.
5854         * doc/objc.texi: fix typo.
5856 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
5858         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
5859         for the first two alternatives.
5861 2013-01-24  Diego Novillo  <dnovillo@google.com>
5863         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
5864         (ggc-zone.o): Remove.
5865         * configure.ac: Remove option --with-gc.
5866         * configure: Re-generate.
5867         * doc/install.texi: Remove documentation for --with-gc.
5868         * gengtype.c (write_enum_defn): Remove.  Update all users.
5869         (write_Types_process_field): Remove generation of gt_e_* argument.
5870         (output_type_enum): Remove.  Update all users.
5871         (write_enum_defn): Remove.  Update all users.
5872         (enum alloc_zone): Remove.  Update all users.
5873         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
5874         * ggc-common.c (ggc_splay_alloc): Remove first argument.
5875         Update all callers.
5876         (struct ptr_data): Remove field TYPE.  Update all users.
5877         (gt_pch_note_object): Remove argument TYPE.  Update all users.
5878         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
5879         Update all users.
5880         * ggc-none.c (ggc_alloc_typed_stat): Remove.
5881         (struct alloc_zone): Remove.
5882         (ggc_internal_alloc_zone_stat): Remove.
5883         (ggc_internal_cleared_alloc_zone_stat): Remove.
5884         * ggc-page.c (ggc_alloc_typed_stat): Remove.
5885         (ggc_pch_count_object): Remove last argument.  Update all users.
5886         (ggc_pch_alloc_object): Remove last argument.  Update all users.
5887         (struct alloc_zone): Remove.
5888         * ggc-zone.c: Remove.
5889         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
5890         (struct alloc_zone): Remove.
5891         (ggc_alloc_typed_stat): Remove.
5892         (ggc_alloc_typed): Remove.
5893         (ggc_splay_alloc): Remove first argument.
5894         (rtl_zone): Remove.  Update all users.
5895         (tree_zone): Remove.  Update all users.
5896         (tree_id_zone): Remove.  Update all users.
5897         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
5898         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
5899         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
5900         * tree-ssanames.c: Remove references to zone allocator in comments.
5902 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
5904         * config/avr/avr.c (avr_out_fract): Make register numbers that
5905         might be outside of source operand signed.
5907 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
5909         * config/i386/constraints.md (Yf): New constraint.
5910         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
5911         of f constraint to conditionaly disable x87 register preferences.
5912         (*movdf_internal): Ditto.
5913         (*movsf_internal): Ditto.
5915 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
5917         PR inline-asm/55934
5918         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
5919         that have operands with impossible constraints.
5920         Add a FIXME for a speed-up opportunity.
5921         * lra-constraints.c (process_alt_operands): Verify that a class
5922         selected from constraints on asms is valid for the operand mode.
5923         (curr_insn_transform): Remove incorrect comment.
5925 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
5927         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
5928         TOC operand is a valid symbol ref in the constant pool.
5930 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
5932         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
5934 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
5936         PR target/54222
5937         * config/avr/stdfix.h: New file.
5938         * t-avr (stdfix-gcc.h): New rule to build it.
5939         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
5941 2013-01-23  Kostya Serebryany  <kcc@google.com>
5943         * config/darwin.h: remove dependency on
5944         CoreFoundation (asan on Mac OS).
5946 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
5948         PR target/49069
5949         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
5950         instead of cmpdi_operand for first comparison operand.
5951         Don't assert that comparison operands aren't both constants.
5953 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
5955         * doc/install.texi (Downloading the Source): Update references to
5956         downloading separate components.
5958 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
5960         * doc/extend.texi (__int128): Improve grammar.
5962 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
5964         PR target/56028
5965         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
5966         alternative to (o,r).
5967         (*movdi_internal_rex64): Remove (!o,n) alternative.
5968         (DImode immediate->memory splitter): Remove.
5969         (DImode immediate->memory peephole2): Remove.
5970         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
5971         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
5972         alternative to (!o,*r).
5973         (*movtf_internal_sse): New pattern.
5974         (*movxf_internal_rex64): New pattern.
5975         (*movxf_internal): Disable for TARGET_64BIT.
5976         (*movdf_internal_rex64): Remove (!o,F) alternative.
5978 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
5980         PR middle-end/56074
5981         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
5982         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
5983         * tree-vect-loop-manip.c (find_loop_location): Also ignore
5984         stmt locations where LOCATION_LOCUS of the stmt location is
5985         UNKNOWN_LOCATION or BUILTINS_LOCATION.
5987         PR target/55686
5988         * config/i386/i386.md (UNSPEC_STOS): New.
5989         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
5990         *strsetqi_1): Add UNSPEC_STOS.
5992 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
5994         PR c++/56067
5995         * doc/invoke.texi: Remove left over -Wsynth example.
5997 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
5999         PR tree-optimization/56051
6000         * fold-const.c (fold_binary_loc): Don't fold
6001         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
6002         a narrowing conversion, or widening conversion from signed
6003         to unsigned.
6005 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
6007         PR rtl-optimization/56023
6008         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
6009         dependent on debug instruction.
6011 2013-01-21  Martin Jambor  <mjambor@suse.cz>
6013         PR middle-end/56022
6014         * function.c (allocate_struct_function): Call
6015         invoke_set_current_function_hook earlier.
6017 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
6019         * reload1.c (init_reload): Only initialize reload_obstack
6020         during the first call.
6022 2013-01-21  Marek Polacek  <polacek@redhat.com>
6024         * cfgloop.c (verify_loop_structure): Fix up grammar.
6026 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
6028         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
6029         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
6031 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6033         PR target/56058
6034         * config/arm/marvell-pj4.md: Update copyright year.
6035         Fix up use of alu to alu_reg and simple_alu_imm.
6037 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
6039         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
6041 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
6043         PR target/55433
6044         * lra-constraints.c (curr_insn_transform): Don't reuse original
6045         insn for secondary memory move when memory mode should be different.
6047 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6049         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
6050         atomic_storedi_1): New patterns.
6052 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
6054         btver2 pipeline descriptions.
6055         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
6056         descriptions.
6057         * config/i386/i386.md (btver2_decode): New type attributes.
6058         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
6059         type attributes.
6060         * config/i386/btver2.md: New file describing btver2 pipelines.
6062 2013-01-19  Andrew Pinski  <apinski@cavium.com>
6064         PR tree-optimization/52631
6065         * tree-ssa-sccvn (visit_use): Before looking up the original
6066         statement, try looking up the simplified expression.
6068 2013-01-19  Anthony Green  <green@moxielogic.com>
6070         * config/moxie/moxie.c (moxie_expand_prologue): Set
6071         current_function_static_stack_size.
6073 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
6075         PR tree-optimization/56029
6076         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
6077         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
6079 2013-01-18  Sharad Singhai  <singhai@google.com>
6081         PR tree-optimization/55995
6082         * dumpfile.c (dump_loc): Print location only if available.
6083         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
6085 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
6087         PR target/55433
6088         * lra-constraints.c (curr_insn_transform): Reuse original insn for
6089         secondary memory move.
6090         (inherit_reload_reg): Use rclass instead of cl for
6091         check_secondary_memory_needed_p.
6093 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
6095         PR middle-end/56015
6096         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
6097         the case where writing real complex part of target modifies op1.
6099 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
6101         * config/aarch64/aarch64-simd.md
6102         (aarch64_vcond_internal<mode>): Handle unordered cases.
6103         * config/aarch64/iterators.md (v_cmp_result): New.
6105 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
6106             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6108         * config/arm/marvell-pj4.md: New file.
6109         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
6110         * config/arm/arm.md (generic_sched): Add marvell_pj4.
6111         (generic_vfp): Likewise.
6112         * config/arm/arm-cores.def: Add marvell-pj4.
6113         * config/arm/arm-tune.md: Regenerate.
6114         * config/arm/arm-tables.opt: Regenerate.
6115         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
6116         * doc/invoke.texi: Document marvell-pj4.
6118 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
6120         * config/aarch64/arm_neon.h: Map scalar types to standard types.
6122 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
6124         PR debug/54114
6125         PR debug/54402
6126         PR debug/49888
6127         * var-tracking.c (negative_power_of_two_p): New.
6128         (global_get_addr_cache, local_get_addr_cache): New.
6129         (get_addr_from_global_cache, get_addr_from_local_cache): New.
6130         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
6131         heading comment.
6132         (vt_stack_offset_p): Remove.
6133         (vt_canon_true_dep): Always canonicalize loc's address.
6134         (clobber_overlapping_mems): Make sure we have a MEM.
6135         (local_get_addr_clear_given_value): New.
6136         (val_reset): Clear local cached entries.
6137         (compute_bb_dataflow): Create and release the local cache.
6138         Disable duplicate MEMs clobbering.
6139         (emit_notes_in_bb): Clobber MEMs likewise.
6140         (vt_emit_notes): Create and release the local cache.
6141         (vt_initialize, vt_finalize): Create and release the global
6142         cache, respectively.
6143         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
6145 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
6147         PR libmudflap/53359
6148         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
6149         not found in the symtab.
6151 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
6153         PR debug/56006
6154         PR rtl-optimization/55547
6155         PR rtl-optimization/53827
6156         PR debug/53671
6157         PR debug/49888
6158         * alias.c (offset_overlap_p): New, factored out of...
6159         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
6160         the conservative special case for symbolic constants.  Don't
6161         adjust zero sizes on alignment.
6163 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
6165         PR rtl-optimization/52573
6166         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
6167         REG_UNUSED for the same register.
6169 2013-01-17  Richard Biener  <rguenther@suse.de>
6170             Marek Polacek  <polacek@redhat.com>
6172         PR rtl-optimization/55833
6173         * loop-unswitch.c (unswitch_loops): Move loop verification...
6174         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
6175         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
6176         Set it to true when we're removing a loop from hierarchy tree in
6177         an irreducible region.
6178         (fix_bb_placements): Adjust caller.
6179         (fix_loop_placements): Likewise.
6181 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
6183         * config/avr/builtins.def (DEF_BUILTIN): Factor out
6184         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
6185         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
6186         Remove ID.  Adjust comments.
6187         * config/avr/avr-c.c (avr_builtin_name): Remove.
6188         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
6189         * config/avr/avr.c (avr_tolower): New static function.
6190         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
6191         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
6192         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
6193         default expansion.
6195 2013-01-17  Jan Hubicka  <jh@suse.cz>
6197         PR tree-optimization/55273
6198         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
6200 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
6202         PR target/55981
6203         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
6204         store through atomic_store<mode>_1.
6205         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
6207 2013-01-17  Martin Jambor  <mjambor@suse.cz>
6209         PR tree-optimizations/55264
6210         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
6211         for virtual methods.
6212         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
6213         virtual methods before inlining is over.
6214         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
6215         virtual functions.
6216         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
6217         non-virtual.
6219 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
6221         PR rtl-optimization/56005
6222         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
6223         pending reads for prefetch.
6225 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
6227         * config/aarch64/aarch64.md
6228         (*cstoresi_neg_uxtw): New pattern.
6229         (*cmovsi_insn_uxtw): New pattern.
6230         (*<optab>si3_uxtw): New pattern.
6231         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
6232         (*<optab>si3_insn_uxtw): New pattern.
6233         (*bswapsi2_uxtw): New pattern.
6235 2013-01-16  Richard Biener  <rguenther@suse.de>
6237         * tree-inline.c (tree_function_versioning): Remove set but
6238         never used variable.
6240 2013-01-16  Richard Biener  <rguenther@suse.de>
6242         PR tree-optimization/55964
6243         * tree-flow.h (rename_variables_in_loop): Remove.
6244         (rename_variables_in_bb): Likewise.
6245         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
6246         (copy_loop_before): Adjust and delete update-ssa status.
6247         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
6248         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
6249         (rename_variables_in_loop): Remove.
6250         (slpeel_update_phis_for_duplicate_loop): Likewise.
6251         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
6252         use available cfg machinery instead of duplicating it.
6253         Update PHI nodes and perform poor-mans SSA update here.
6254         (slpeel_tree_peel_loop_to_edge): Adjust.
6256 2013-01-16  Richard Biener  <rguenther@suse.de>
6258         PR tree-optimization/54767
6259         PR tree-optimization/53465
6260         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
6261         (vrp_visit_phi_node): For PHI arguments coming via backedges
6262         drop all symbolical range information.
6263         (execute_vrp): Compute backedges.
6265 2013-01-16  Richard Biener  <rguenther@suse.de>
6267         * doc/install.texi: Update CLooG and ISL requirements to
6268         0.18.0 and 0.11.1.
6270 2013-01-16  Christian Bruel  <christian.bruel@st.com>
6272         PR target/55301
6273         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
6274         (broken_move): Handle UNSPECV_SP_SWITCH_B.
6275         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
6277 2013-01-16  DJ Delorie  <dj@redhat.com>
6279         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
6280         (UNSPECV_SP_SWITCH_E): New.
6281         (sp_switch_1): Change to an unspec.
6282         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
6283         replace $r15.
6285 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
6287         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
6288         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
6289         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
6290         (expand_mem_thread_fence): Ditto.
6291         (expand_mem_signal_fence): Ditto.
6292         (expand_atomic_load): Ditto.
6293         (expand_atomic_store): Ditto.
6295 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
6297         PR rtl-optimization/55547
6298         PR rtl-optimization/53827
6299         PR debug/53671
6300         PR debug/49888
6301         * alias.c (memrefs_conflict_p): Set sizes to negative after
6302         AND adjustments.
6304 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
6306         PR target/55940
6307         * function.c (thread_prologue_and_epilogue_insns): Always
6308         add crtl->drap_reg to set_up_by_prologue.set, even if
6309         stack_realign_drap is false.
6311 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
6313         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
6314         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
6315         *call): Fix indention.
6317 2013-01-15  Tom de Vries  <tom@codesourcery.com>
6319         PR target/55876
6320         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
6321         Update comment.
6323 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
6325         PR rtl-optimization/55153
6326         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
6328 2013-01-15  Martin Jambor  <mjambor@suse.cz>
6330         PR tree-optimization/55920
6331         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
6332         accesses as grp_to_be_debug_replaced.
6334 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
6336         PR tree-optimization/55920
6337         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
6338         there is non-useless type conversion needed from debug rhs to lhs,
6339         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
6341 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
6342             Mikael Pettersson  <mikpe@it.uu.se>
6344         PR target/43961
6345         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
6346         Thumb.
6347         (ASM_OUTPUT_CASE_LABEL): Remove.
6348         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
6349         * final.c (shorten_branches): Update alignment of labels before
6350         jump tables if CASE_VECTOR_SHORTEN_MODE.
6352 2013-01-15  Richard Biener  <rguenther@suse.de>
6354         PR bootstrap/55961
6355         * system.h: Do not include gmp.h for building host tools.
6357 2013-01-15  Richard Biener  <rguenther@suse.de>
6359         PR middle-end/55882
6360         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
6361         account for bitpos when computing alignment.
6363 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
6365         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
6366         (ix86_target_macros_internal): Likewise.
6368         * config/i386/i386.c (m_CORE2I7): Removed.
6369         (m_CORE_HASWELL): New macro.
6370         (m_CORE_ALL): Likewise.
6371         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
6372         (initial_ix86_arch_features): Likewise.
6373         (processor_target_table): Initializations for Core avx2.
6374         (cpu_names): New names "core-avx2".
6375         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
6376         PROCESSOR_CORE_HASWELL.
6377         (ix86_issue_rate): New case.
6378         (ia32_multipass_dfa_lookahead): Likewise.
6379         (ix86_sched_init_global): Likewise.
6381         * config/i386/i386.h (TARGET_HASWELL): New macro.
6382         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
6383         (processor_type): New PROCESSOR_HASWELL.
6385 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
6387         PR tree-optimization/55955
6388         * tree-vect-loop.c (vectorizable_reduction): Give up early on
6389         *SHIFT_EXPR and *ROTATE_EXPR codes.
6391         PR tree-optimization/48766
6392         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
6393         -ftrapv disable -fwrapv.
6395 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
6397         PR target/55974
6398         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
6399         etc. to 1 and not to __flash.
6400         Use LL suffix for __INT24_MAX__ with -mint8.
6401         Use ULL suffix for __UINT24_MAX__ with -mint8.
6403 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
6405         * config/avr/avr-arch.h
6406         (struct base_arch_s): Use typedef avr_arch_t instead.
6407         (struct arch_info_s): Use typedef avr_arch_info_t instead.
6408         (struct mcu_type_s): Use typedef avr_mcu_t instead.
6409         * config/avr/avr.c: Same.
6410         * config/avr/avr-devices.c: Same.
6411         * config/avr/driver-avr.c: Same.
6412         * config/avr/gen-avr-mmcu-texi.c: Same.
6413         * config/avr/avr-mcus.def: Adjust comment.
6415 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
6417         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
6418         * config/aarch64/iterators.md (VALLDI): New.
6420 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
6421             Andi Kleen  <ak@linux.intel.com>
6423         PR target/55948
6424         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
6425         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
6426         memmodel flag.
6428 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
6430         * config/avr/avr-stdint.h: Remove trailing blanks.
6431         * config/avr/avr-log.h: Same.
6432         * config/avr/avr-arch.h: Same.
6433         * config/avr/avr-devices.c: Same.
6434         * config/avr/avr-dimode.md: Same.
6435         * config/avr/predicates.md: Same.
6436         * config/avr/avr-c.c: Same.  And fix typo.
6438         * config/avr/avr-protos.h: Same.  And:
6439         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
6440         (init_cumulative_args): Rename to avr_init_cumulative_args.
6441         (expand_prologue): Rename to avr_expand_prologue.
6442         (expand_epilogue): Rename to avr_expand_epilogue.
6443         (adjust_insn_length): Rename to avr_adjust_insn_length.
6444         (notice_update_cc): Rename to avr_notice_update_cc.
6445         (final_prescan_insn): Rename to avr_final_prescan_insn.
6446         * config/avr/avr.c: Same.
6447         * config/avr/avr.h: Same.
6448         * config/avr/avr.md: Remove trailing blanks.
6449         (prologue): Use avr_expand_prologue.
6450         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
6452 2013-01-14  Richard Biener  <rguenther@suse.de>
6454         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
6455         verify_location, collect_subblocks): New functions.
6456         (verify_gimple_in_cfg): Verify that locations only reference
6457         BLOCKs in the functions BLOCK tree.
6459 2013-01-14  Richard Biener  <rguenther@suse.de>
6461         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
6462         PHI argument.
6463         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
6464         unshare reference.
6465         (insert_out_of_ssa_copy_on_edge): Likewise.
6466         (rewrite_close_phi_out_of_ssa): Likewise.
6467         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
6468         debug expressions.
6469         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
6470         propagated constants.
6471         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
6472         can not be shared.
6474 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
6476         * config/avr/avr-modes.def: Add GPL copyright notice.
6478 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
6480         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
6481         MEMMODEL_MASK to determine memory model.
6482         (atomic_store<mode>): Ditto from operands[2].
6483         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
6485 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
6487         PR fortran/55935
6488         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
6489         (fold_gimple_assign): Don't call unshare_expr here.
6490         (fold_ctor_reference): Call unshare_expr.
6492 2013-01-13  Terry Guo  <terry.guo@arm.com>
6494         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
6495         * doc/fragments.texi: Document MULTILIB_REUSE.
6496         * gcc.c (multilib_reuse): New internal spec.
6497         (set_multilib_dir): Also search multilib from multilib_reuse.
6498         * genmultilib (tmpmultilib3): Refactor code.
6499         (tmpmultilib4): Ditto.
6500         (multilib_reuse): New multilib argument.
6502 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
6504         * Makefile.in: Update copyright.
6506 2013-01-12  Tom de Vries  <tom@codesourcery.com>
6508         PR middle-end/55890
6509         * calls.c (expand_call): Check if arg_nr is valid.
6511 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
6513         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
6514         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
6515         documentation.  Add missing '__' in front of
6516         __builtin_ia32_packssdw256.
6518 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6520         PR target/55719
6521         * config/s390/s390.c (s390_preferred_reload_class): Do not return
6522         NO_REGS for larl operands.
6523         (s390_reload_larl_operand): Use s390_load_address instead of
6524         emit_move_insn.
6526 2013-01-11  Richard Biener  <rguenther@suse.de>
6528         * tree-cfg.c (verify_node_sharing_1): Split out from ...
6529         (verify_node_sharing): ... here.
6530         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
6532 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
6534         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
6535         Substitute TREECHECKING.
6536         * configure: Regenerate.
6537         * Makefile.in (TREECHECKING): New.
6539 2013-01-11  Richard Guenther  <rguenther@suse.de>
6541         PR tree-optimization/44061
6542         * tree-vrp.c (extract_range_basic): Compute zero as
6543         value-range for __builtin_constant_p of function parameters.
6545 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
6547         Update copyright years.
6549 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
6551         PR rtl-optimization/55672
6552         * lra-eliminations.c (mark_not_eliminable): Permit addition with
6553         const to be eliminable.
6555 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
6557         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
6558         * configure: Regenerate.
6560 2013-01-10  Richard Biener  <rguenther@suse.de>
6562         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
6564 2013-01-10  Richard Biener  <rguenther@suse.de>
6566         PR bootstrap/55792
6567         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
6568         locations for virtual PHI arguments.
6569         (rewrite_update_phi_arguments): Likewise.
6571 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
6573         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
6574         on to assembler.
6576 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
6578         PR tree-optimization/55921
6579         * tree-complex.c (expand_complex_asm): New function.
6580         (expand_complex_operations_1): Call it for GIMPLE_ASM.
6582 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6584         PR target/55718
6585         * config/s390/s390.c (s390_symref_operand_p)
6586         (s390_loadrelative_operand_p): Merge the two functions.
6587         (s390_check_qrst_address, print_operand_address): Add parameters
6588         to s390_loadrelative_operand_p invokation.
6589         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
6590         (s390_reload_larl_operand, s390_secondary_reload): Use
6591         s390_loadrelative_operand_p instead of s390_symref_operand_p.
6592         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
6594 2013-01-09  Mike Stump  <mikestump@comcast.net>
6596         * dse.c (record_store): Remove unnecessary assert.
6598 2013-01-09  Jan Hubicka  <jh@suse.cz>
6600         PR tree-optimization/55569
6601         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
6602         * cfgloop.h (scale_loop_profile): Likewise.
6604 2013-01-09  Jan Hubicka  <jh@suse.cz>
6606         PR lto/45375
6607         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
6608         functions.
6609         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
6611 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
6613         PR middle-end/55114
6614         * expr.h (maybe_emit_group_store): Declare.
6615         * expr.c (maybe_emit_group_store): New function.
6616         * builtins.c (expand_builtin_int_roundingfn): Call it.
6617         (expand_builtin_int_roundingfn_2): Likewise.
6619 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
6621         PR rtl-optimization/55829
6622         * lra-constraints.c (match_reload): Add code for absent output.
6623         (curr_insn_transform): Add code for reloads of matched inputs
6624         without output.
6626 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
6628         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
6629         attribute of movddup insn to DF.
6630         (*vec_interleave_lowv2df): Ditto.
6631         (vec_dupv2df): Ditto.
6633 2013-01-09  Jan Hubicka  <jh@suse.cz>
6635         PR tree-optimiation/55875
6636         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
6637         EVERY_ITERATION parameter.
6638         (number_of_iterations_exit): Check if exit is executed every iteration.
6639         (idx_infer_loop_bounds): Similarly here.
6640         (n_of_executions_at_most): Simplify
6641         to only test for cases where statement is dominated by the
6642         particular bound; handle correctly the "postdominance" test.
6643         (scev_probably_wraps_p): Use max loop iterations info
6644         as a global bound first.
6646 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
6647             Nick Clifton  <nickc@redhat.com>
6649         * config/v850/v850.md (cbranchsf4): New pattern.
6650         (cstoresf4): New pattern.
6651         (cbranchdf4): New pattern.
6652         (cstoredf4): New pattern.
6653         (movsicc): Disallow floating point comparisons.
6654         (cmpsf_le_insn): Fix order of operators.
6655         (cmpsf_lt_insn): Likewise.
6656         (cmpsf_eq_insn): Likewise.
6657         (cmpdf_le_insn): Likewise.
6658         (cmpdf_lt_insn): Likewise.
6659         (cmpdf_eq_insn): Likewise.
6660         (cmpsf_ge_insn): Use LE comparison.
6661         (cmpdf_ge_insn): Likewise.
6662         (cmpsf_gt_insn): Use LT comparison.
6663         (cmpdf_gt_insn): Likewise.
6664         (cmpsf_ne_insn): Delete pattern.
6665         (cmpdf_ne_insn): Delete pattern.
6666         * config/v850/v850.c (v850_gen_float_compare): Use
6667         gen_cmpdf_eq_insn for NE comparison.
6668         (v850_float_z_comparison_operator)
6669         (v850_float_nz_comparison_operator): Move from here ...
6670         * config/v850/predicates.md: ... to here.  Move GT and GE
6671         comparisons into v850_float_z_comparison_operator.
6672         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
6673         Delete prototype.
6674         (v850_float_nz_comparison_operator): Likewise.
6676 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6678         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
6679         with calls to gen_insvsi/gen_insvdi.
6681 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
6683         * config/i386/i386.c (initial_ix86_tune_features): Set up
6684         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
6686 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
6687             Jakub Jelinek  <jakub@redhat.com>
6689         PR tree-optimization/48189
6690         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
6691         If nitercst is 0, don't predict the exit edge.
6693 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6695         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
6696         in asm_fprintf with reg_names.
6697         (aarch64_print_operand_address): Likewise.
6698         (aarch64_return_addr): Likewise.
6699         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
6701 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6703         * config/pa/pa.h (VAL_U6_BITS_P): Define.
6704         (INT_U6_BITS): Likewise.
6705         * config/pa/predicates.md (uint6_operand): New predicate.
6706         (shift5_operand, shift6_operand): Likewise.
6707         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
6708         arith32_operand.
6709         (lshrdi3): Use shift6_operand.
6710         (shrpsi4, shrpdi4): New insn patterns.
6711         (extzv): Delete expander.
6712         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
6713         predicates in unamed zero extract patterns.  Tighten common constraint.
6714         (extv): Delete expander.
6715         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
6716         predicates in unamed sign extract patterns.  Tighten common constraint.
6717         (insv): Delete expander.
6718         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
6719         predicates in unamed insert patterns.  Tighten common constraint.
6720         Change uint32_operand predicate to uint6_operand predicate in unamed
6721         DImode pattern to insert constant values of type 1...1xxxx.
6723 2013-01-04  Jan Hubicka  <jh@suse.cz>
6725         PR tree-optimization/55823
6726         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
6727         issue.
6729 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
6730             Uros Bizjak  <ubizjak@gmail.com>
6732         PR rtl-optimization/55845
6733         * df-problems.c (can_move_insns_across): Stop scanning at
6734         volatile_insn_p source instruction or give up if
6735         across_from .. across_to range contains any volatile_insn_p
6736         instructions.
6738 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
6740         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
6741         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
6742         Declare.
6743         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
6744         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
6746 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
6748         PR fortran/55341
6749         * asan.c (asan_clear_shadow): New function.
6750         (asan_emit_stack_protection): Use it.
6752 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
6754         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
6755         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
6756         with tab instead of space.
6758 2013-01-08  Nick Clifton  <nickc@redhat.com>
6760         * config/rl78/rl78.c (rl78_expand_prologue): Always select
6761         register bank 0 at the start of an interrupt handler.
6762         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
6763         MDBH registers.
6765 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
6767         * config/aarch64/aarch64-simd.md
6768         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
6769         (aarch64_simd_bsl): Likewise.
6770         (aarch64_vcond_internal<mode>): Likewise.
6771         (vcond<mode><mode>): Likewise.
6772         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
6773         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
6775 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
6777         * config/aarch64/aarch64-builtins.c
6778         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
6780 2013-01-08  Martin Jambor  <mjambor@suse.cz>
6782         PR debug/55579
6783         * tree-sra.c (analyze_access_subtree): Return true also after
6784         potentially creating a debug-only replacement.
6786 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
6788         PR middle-end/55890
6789         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
6791         PR tree-optimization/54120
6792         * tree-vrp.c (range_fits_type_p): Don't allow
6793         src_precision < precision from signed vr to unsigned_p
6794         if vr->min or vr->max is negative.
6795         (simplify_float_conversion_using_ranges): Test can_float_p
6796         against CODE_FOR_nothing.
6798 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
6799             Richard Biener  <rguenther@suse.de>
6801         PR middle-end/55851
6802         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
6803         types instead of just INTEGER_TYPE types.
6805 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
6807         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
6808         TF_SIZE): Define.
6810 2013-01-07  Steve Ellcey  <sellcey@mips.com>
6812         PR target/42661
6813         * config/mips/mips.opt: Change mad to mmad to match documentation.
6815 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
6817         PR target/55897
6818         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
6819         .progmemx.data now.
6821 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
6823         PR target/55897
6824         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
6825         (avr_addrspace_t): Add .section_name field.
6826         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
6827         array size.
6828         (avr_addrspace): Same.  Initialize .section_name.  Remove last
6829         NULL entry.  Put __memx into .progmemx.data.
6830         (progmem_section_prefix): Remove.
6831         (avr_asm_init_sections): No need to initialize progmem_section.
6832         (avr_asm_named_section): Use avr_addrspace[].section_name to get
6833         section name prefix.
6834         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
6835         retrieve the progmem section.
6836         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
6837         boundary to run over avr_addrspace[].
6838         (avr_register_target_pragmas): Ditto.
6840 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
6842         * varasm.c (output_constant_def_contents): For asan_protect_global
6843         protected strings, adjust DECL_ALIGN if needed, before testing for
6844         anchored symbols.
6845         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
6846         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
6847         normal decls.
6848         (output_object_block): For asan protected decls, emit asan padding
6849         after their contents.
6850         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
6851         (asan_finish_file): Test it here instead.
6853 2013-01-07  Nick Clifton  <nickc@redhat.com>
6854             Matthias Klose  <doko@debian.org>
6855             Doug Kwan  <dougkwan@google.com>
6856             H.J. Lu  <hongjiu.lu@intel.com>
6858         PR driver/55470
6859         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
6861         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
6863         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
6865         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
6867         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
6869 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
6871         PR target/54461
6872         * doc/install.texi (Cross-Compiler-Specific Options): Document
6873         --with-avrlibc.
6875 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
6877         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
6878         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
6879         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
6880         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
6881         vqmovun_high_s64): Fix source operand number and update copyright.
6883 2013-01-07  Richard Biener  <rguenther@suse.de>
6885         PR middle-end/55890
6886         * gimple.h (gimple_call_builtin_p): New overload.
6887         * gimple.c (validate_call): New function.
6888         (gimple_call_builtin_p): Likewise.
6889         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
6890         Use gimple_call_builtin_p.
6891         (find_func_clobbers): Likewise.
6892         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
6893         (strlen_optimize_stmt): Likewise.
6895 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
6897         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
6898         (vld1q_dup_*): Likewise.
6899         (vld1_*): Likewise.
6900         (vld1q_*): Likewise.
6901         (vld1_lane_*): Likewise.
6902         (vld1q_lane_*): Likewise.
6904 2013-01-07  Richard Biener  <rguenther@suse.de>
6906         * lto-streamer.h (LTO_minor_version): Bump to 2.
6908 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
6910         * config/aarch64/aarch64-protos.h
6911         (aarch64_const_double_zero_rtx_p): Rename to...
6912         (aarch64_float_const_zero_rtx_p): ...this.
6913         (aarch64_float_const_representable_p): New.
6914         (aarch64_output_simd_mov_immediate): Likewise.
6915         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
6916         move immediate case.
6917         * config/aarch64/aarch64.c
6918         (aarch64_const_double_zero_rtx_p): Rename to...
6919         (aarch64_float_const_zero_rtx_p): ...this.
6920         (aarch64_print_operand): Allow printing of new constants.
6921         (aarch64_valid_floating_const): New.
6922         (aarch64_legitimate_constant_p): Check for valid floating-point
6923         constants.
6924         (aarch64_simd_valid_immediate): Likewise.
6925         (aarch64_vect_float_const_representable_p): New.
6926         (aarch64_float_const_representable_p): Likewise.
6927         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
6928         (aarch64_output_simd_mov_immediate): New.
6929         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
6930         (*movdf_aarch64): Likewise.
6931         * config/aarch64/constraints.md (Ufc): New.
6932         (Y): call aarch64_float_const_zero_rtx.
6933         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
6935 2013-01-07  Richard Biener  <rguenther@suse.de>
6937         PR tree-optimization/55888
6938         PR tree-optimization/55862
6939         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
6940         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
6941         not if it is contained therein.
6943 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
6945         * config/avr/t-avr: Typo.
6947 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
6949         PR55243
6950         * config/avr/t-avr: Don't automatically rebuild
6951         $(srcdir)/config/avr/t-multilib
6952         $(srcdir)/config/avr/avr-tables.opt
6953         $(srcdir)/doc/avr-mmcu.texi
6954         (avr-mcus): New phony target to build them on request.
6955         (s-avr-mlib, s-avr-mmcu-texi): Remove.
6956         * avr/avr-mcus.def: Adjust comments.
6958 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
6960         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
6962 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
6964         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
6966 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
6968         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
6970 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
6972         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
6973         to generate profiling.
6974         * config/rs6000/aix64.h (LIB_SPEC): Same.
6976 2013-01-04  Andrew Pinski  <apinski@cavium.com>
6978         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
6979         New function.
6980         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
6982 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
6984         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
6985         unconditionally.
6986         (ix86_expand_move): Ditto.
6987         (ix86_zero_extend_to_Pmode): Ditto.
6988         (ix86_expand_call): Ditto.
6989         (ix86_expand_special_args_builtin): Ditto.
6990         (ix86_expand_builtin): Ditto.
6992 2013-01-04  Richard Biener  <rguenther@suse.de>
6994         PR tree-optimization/55862
6995         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
6996         translating them through PHI nodes.
6998 2013-01-04  Martin Jambor  <mjambor@suse.cz>
7000         PR tree-optimization/55755
7001         * tree-sra.c (sra_modify_assign): Do not check that an access has no
7002         children when trying to avoid producing a VIEW_CONVERT_EXPR.
7004 2013-01-04  Marek Polacek  <polacek@redhat.com>
7006         PR middle-end/55859
7007         * opts.c (default_options_optimization): Clarify error message.
7009 2013-01-04  Richard Biener  <rguenther@suse.de>
7011         PR middle-end/55863
7012         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
7013         reassociation.
7015 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7017         PR target/53789
7018         * config/pa/pa.md (movsi): Revert previous change.
7019         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
7020         references.
7022 2013-01-03  Richard Henderson  <rth@redhat.com>
7024         * config/i386/i386.c (ix86_expand_move): Always assign to op1
7025         after eliminating TLS symbols.
7027 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
7029         PR bootstrap/50167
7030         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
7031         * graphite-poly.c (debug_gmp_value): Likewise.
7033 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
7035         PR target/55712
7036         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
7037         selected code model, define __code_mode_small__, __code_model_medium__,
7038         __code_model_large__, __code_model_32__ or __code_model_kernel__.
7039         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
7040         xchg temporary register with %k.  Declare temporary register as
7041         early clobbered.
7042         [__x86_64__]: For medium and large code models, preserve %rbx register.
7044 2013-01-03  Richard Biener  <rguenther@suse.de>
7046         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
7047         (dump_subscript): Adjust.
7048         (finalize_ddr_dependent): Do not dump redundant info.
7049         (analyze_siv_subscript): Adjust.
7050         (subscript_dependence_tester): Likewise.
7051         (compute_affine_dependence): Likewise.
7053 2013-01-03  Richard Biener  <rguenther@suse.de>
7055         Revert
7056         2013-01-03  Richard Biener  <rguenther@suse.de>
7058         PR tree-optimization/55857
7059         * tree-vect-stmts.c (vectorizable_load): Do not setup
7060         re-alignment for invariant loads.
7062         2013-01-02  Richard Biener  <rguenther@suse.de>
7064         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
7065         invariant load do not generate a vector load from the scalar location.
7067 2013-01-03  Richard Biener  <rguenther@suse.de>
7069         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
7070         for not vectorizing.
7071         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
7072         not build INDIRECT_REFs, call get_name once only.
7073         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
7074         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
7076 2013-01-03  Richard Biener  <rguenther@suse.de>
7078         PR tree-optimization/55857
7079         * tree-vect-stmts.c (vectorizable_load): Do not setup
7080         re-alignment for invariant loads.
7082 2013-01-03  Richard Biener  <rguenther@suse.de>
7084         PR lto/55848
7085         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
7086         prefer a built-in decl.
7088 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
7090         * gcc.c (process_command): Update copyright notice dates.
7091         * gcov.c (print_version): Likewise.
7092         * gcov-dump.c (print_version): Likewise.
7094         PR rtl-optimization/55838
7095         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
7096         iv0.step, iv1.step and step.
7098 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
7099             Marc Glisse  <marc.glisse@inria.fr>
7101         PR tree-optimization/55832
7102         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
7103         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
7104         integer_{one,zero}_node.
7106 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
7108         PR debug/54402
7109         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
7110         * var-tracking.c (reverse_op): Don't add reverse ops to
7111         VALUEs that have already
7112         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
7114 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
7116         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
7118 2013-01-02  Teresa Johnson  <tejohnson@google.com>
7120         * dumpfile.c (dump_loc): Print filename with location.
7121         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
7122         new location_t parameter to emit complete unroll message with
7123         new dump framework.
7124         (canonicalize_loop_induction_variables): Compute loops location
7125         and pass to try_unroll_loop_completely.
7126         * loop-unroll.c (report_unroll_peel): New function.
7127         (peel_loops_completely): Use new dump format with location
7128         for main dumpfile message, and invoke report_unroll_peel on success.
7129         (decide_unrolling_and_peeling): Ditto.
7130         (decide_peel_once_rolling): Remove old dumpfile message subsumed
7131         by report_unroll_peel.
7132         (decide_peel_completely): Ditto.
7133         (decide_unroll_constant_iterations): Ditto.
7134         (decide_unroll_runtime_iterations): Ditto.
7135         (decide_peel_simple): Ditto.
7136         (decide_unroll_stupid): Ditto.
7137         * cfgloop.c (get_loop_location): New function.
7138         * cfgloop.h (get_loop_location): Declare.
7140 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
7142         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
7143         NULL.
7145 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7147         PR middle-end/55198
7148         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
7149         BLKmode objects when EXPAND_MEMORY is specified.
7151 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
7153         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
7154         in loop predicate.
7155         (fold_builtin_cpu): Do not share cpu model decls across statements.
7157 2013-01-02  Jason Merrill  <jason@redhat.com>
7159         PR c++/55804
7160         * tree.c (build_array_type_1): Revert earlier change.
7162 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
7164         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
7165         "cortex-a57".
7166         * config/aarch64/aarch64-tune.md: Re-generate.
7168 2013-01-02  Richard Biener  <rguenther@suse.de>
7170         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
7171         invariant load do not generate a vector load from the scalar location.
7173 2013-01-02  Richard Biener  <rguenther@suse.de>
7175         PR bootstrap/55784
7176         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
7177         * configure: Regenerate.
7179 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
7181         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
7182         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
7183         (expand_builtin_int_roundingfn_2): Keep the original target around
7184         for the fallback case.
7186 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
7188         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
7189         to be clear for sign changes.
7191 2013-01-01  Jan Hubicka  <jh@suse.cz>
7193         * ipa-inline-analysis.c: Fix formatting.
7195 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
7197         PR tree-optimization/55831
7198         * tree-vect-loop.c (get_initial_def_for_induction): Use
7199         gsi_after_labels instead of gsi_start_bb.
7201 Copyright (C) 2013 Free Software Foundation, Inc.
7203 Copying and distribution of this file, with or without modification,
7204 are permitted in any medium without royalty provided the copyright
7205 notice and this notice are preserved.