1 2013-04-19 Richard Biener <rguenther@suse.de>
3 PR tree-optimization/57000
4 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
6 2013-04-19 Terry Guo <terry.guo@arm.com>
8 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
10 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
11 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
12 (cortex_m4_fmacs): Use new reservations.
13 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
15 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
17 PR rtl-optimization/56999
18 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
20 (lra_coalesce): Remove split_origin_bitmap and related code.
21 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
24 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
26 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
28 (ix86_expand_call): Remove clobbered_registers array and use
29 x86_64_ms_sysv_extra_clobbered_registers instead.
30 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
32 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
34 * config/i386/i386.md (*call_rex64_ms_sysv): Use
35 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
36 (*call_value_rex64_ms_sysv): Ditto.
38 2013-04-18 Cary Coutant <ccoutant@google.com>
40 * dwarf2out.c (output_pubnames): Check die_perennial_p of
41 parent instead of die_mark.
43 2013-04-18 Diego Novillo <dnovillo@google.com>
45 * gimple.c (create_gimple_tmp): New.
48 (build_type_cast): New.
49 * gimple.h (enum ssa_mode): Define.
50 (gimple_seq_set_location): New.
51 * asan.c (build_check_stmt): Change some gimple_build_* calls
52 to use build_assign and build_type_cast.
54 2013-04-18 Richard Biener <rguenther@suse.de>
56 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
57 handle negative step. Remove redundant checks.
58 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
59 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
60 for negative step and grouped loads fail to vectorize.
62 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
64 * emit-rtl.c (reset_insn_used_flags): New function.
65 (reset_all_used_flags): Use it.
66 (verify_insn_sharing): New function.
67 (verify_rtl_sharing): Fix verification for SEQUENCEs.
69 2013-04-18 Jakub Jelinek <jakub@redhat.com>
71 PR tree-optimization/56984
72 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
73 and (x >> M) >= N don't register any assertion if N << M is the
76 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
78 * lower-subreg.c (resolve_simple_move): If called self-recursive,
79 do not delete_insn insns that have not yet been emitted, only
80 unlink them with remove_insn.
81 * df-scan.c (df_insn_delete): Revert r197492.
83 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
85 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
86 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
88 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
90 * config/arm/arm.md (movsicc_insn): Convert define_insn into
91 define_insn_and_split.
92 (and_scc,ior_scc,negscc): Likewise.
93 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
95 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
97 * config/arm/arm.c (use_return_insn): Return 0 for targets that
98 can benefit from using a sequence of LDRD instructions in epilogue
99 instead of a single LDM instruction.
101 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
104 * doc/extend.texi: Fix typo.
106 2013-04-17 Richard Biener <rguenther@suse.de>
108 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
109 (vect_build_slp_tree): ... here.
110 (vect_build_slp_tree_1): Compute which stmts of the SLP group
111 match. Remove special-casing of mismatched complex loads.
112 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
113 re-try the match with swapped commutative operands.
114 (vect_supported_load_permutation_p): Remove special-casing of
115 mismatched complex loads.
116 (vect_analyze_slp_instance): Adjust.
118 2013-04-17 Richard Biener <rguenther@suse.de>
120 PR rtl-optimization/56921
121 * cfgloop.h (struct loop): Add simple_loop_desc member.
122 (struct niter_desc): Mark with GTY(()).
123 (simple_loop_desc): Do not use aux field but simple_loop_desc.
124 * loop-iv.c (get_simple_loop_desc): Likewise.
125 (free_simple_loop_desc): Likewise.
128 2013-04-16 Richard Biener <rguenther@suse.de>
130 PR rtl-optimization/56921
131 * loop-init.c (pass_rtl_move_loop_invariants): Add
132 TODO_do_not_ggc_collect to todo_flags_finish.
133 (pass_rtl_unswitch): Same.
134 (pass_rtl_unroll_and_peel_loops): Same.
135 (pass_rtl_doloop): Same.
137 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
139 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
140 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
141 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
143 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
144 * tree-streamer.c (record_common_node): Adjust reference in comment.
146 2013-04-17 Terry Guo <terry.guo@arm.com>
148 * config/arm/cortex-m4.md: Add a new bypass.
150 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
152 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
154 (*subs_<optab><mode>_multp2): New pattern.
155 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
156 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
158 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
160 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
161 (*subs_mul_imm_<mode>): New pattern.
163 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
166 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
167 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
168 (vsx_movti_32bit): Change j->wa to O->wa.
170 2013-04-16 Richard Biener <rguenther@suse.de>
172 PR rtl-optimization/56921
173 * loop-init.c (pass_rtl_move_loop_invariants): Add
174 TODO_do_not_ggc_collect to todo_flags_finish.
175 (pass_rtl_unswitch): Same.
176 (pass_rtl_unroll_and_peel_loops): Same.
177 (pass_rtl_doloop): Same.
179 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
181 * config/arm/arm.c (emit_multi_reg_push): New declaration
182 for an existing function.
183 (arm_emit_strd_push): New function.
184 (arm_expand_prologue): Used here.
185 (arm_emit_ldrd_pop): New function.
186 (arm_expand_epilogue): Used here.
187 (arm_get_frame_offsets): Update condition.
188 (arm_emit_multi_reg_pop): Add a special case for load of a single
189 register with writeback.
191 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
193 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
196 2013-04-16 Richard Biener <rguenther@suse.de>
198 PR tree-optimization/56756
199 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
200 (first_mem_ref_loc): New.
201 (execute_sm): Place the load temporarily before a previous
202 access instead of in the latch edge to ensure its SSA dependencies
203 are defined at points dominating the load.
205 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
207 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
208 correct fix by moving header and footer insn to the footer of
209 the merged basic block. Clear BB_END of the merged-away block.
212 * emit-rtl.c (make_note_raw): New function.
213 (link_insn_into_chain): New static inline function.
215 (add_insn_before, add_insn_after): Factor insn chain linking code...
216 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
217 using link_insn_into_chain.
218 (note_outside_basic_block_p): New helper function for emit_note_after
219 and emit_note_before.
220 (emit_note_after): Use nobb variant of add_insn_after if the note
221 should not be contained in a basic block.
222 (emit_note_before): Use nobb variant of add_insn_before if the note
223 should not be contained in a basic block.
224 (emit_note_copy): Use make_note_raw.
225 (emit_note): Likewise.
226 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
227 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
228 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
229 the moved barrier the tail of the basic block it follows.
230 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
232 2013-04-15 Jakub Jelinek <jakub@redhat.com>
234 PR tree-optimization/56962
235 * gimple-ssa-strength-reduction.c (record_increment): Only set
236 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
237 either rhs1 or rhs2 is equal to c->base_expr.
239 2013-04-15 Richard Biener <rguenther@suse.de>
241 PR tree-optimization/56933
242 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
244 (GROUP_READ_WRITE_DEPENDENCE): Remove.
245 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
246 * tree-vect-data-refs.c (vect_analyze_group_access): Move
248 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
250 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
251 GROUP_READ_WRITE_DEPENDENCE.
253 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
255 * emit-rtl.c (reset_all_used_flags): New function.
256 (verify_rtl_sharing): Call reset_all_used_flags before and after
257 performing the checks.
259 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
261 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
262 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
263 * config/arm/constraints.md (De): New constraint.
264 * config/arm/neon.md (anddi3_neon): Delete.
265 (neon_vand<mode>): Expand to standard anddi3 pattern.
266 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
267 Move earlier in the file.
268 (neon_inv_logic_op2): Likewise.
269 (arm_anddi_operand_neon): New predicate.
271 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
273 * configure.ac (gcc_cv_ld_as_needed): Set
274 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
275 Use -z ignore, -z record on *-*-solaris2*.
276 (HAVE_LD_AS_NEEDED): Update comment.
277 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
278 * configure: Regenerate.
279 * config.in: Regenerate.
280 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
281 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
282 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
283 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
284 equivalents. Fix markup.
285 * doc/tm.texi: Regenerate.
287 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
289 * config/i386/i386.opt: New option mstack-protector-guard=.
290 * config/i386/i386-opts.h: Add enum stack_protector_guard.
291 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
292 TARGET_SSP_TLS_GUARD.
293 * config/i386/i386.c (ix86_option_override_internal): Set
294 ix86_stack_protector_guard.
295 * config/i386/i386.md (stack_protect_set): Enable for
296 TARGET_SSP_TLS_GUARD only.
297 (stack_protect_set_<mode>): Ditto.
298 (stack_protect_test): Ditto.
299 (stack_protect_test_<mode>): Ditto.
300 * doc/invoke.texi (i386 Option): Document.
302 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
305 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
306 (S_MODES): Set H_MODE bit.
307 (SF_MODES): Set only S_MODE and SF_MODE bits.
308 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
309 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
310 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
311 <MODE_FLOAT>: Likewise.
313 2013-04-15 Joey Ye <joey.ye@arm.com>
315 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
317 2013-04-15 Joey Ye <joey.ye@arm.com>
319 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
321 (thumb_far_jump_used_p): Count instruction size and set
324 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
326 * reorg.c (fill_simple_delay_slots): Reindent block of code.
327 * resource.c (mark_target_live_regs): Reformat conditional block.
329 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
331 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
332 notes, they are emitted only just before final.
333 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
335 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
337 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
338 * cfgrtl.c (delete_insn): Call it here instead.
339 * lra-spills.c (lra_final_code_change): Use delete_insn.
340 * haifa-sched.c (sched_remove_insn): Likewise.
341 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
342 returning to the nop pool.
343 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
344 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
346 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
348 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
349 * doc/tm.texi: Regenerated.
351 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
353 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
356 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
358 * df-core.c (df_find_def): Compare register numbers.
359 (df_find_use): Likewise.
361 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
364 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
365 lra_in_progress for return.
367 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
369 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
370 define_insn into define_insn_and_split and emit movsicc patterns.
372 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
374 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
376 2013-04-12 Richard Biener <rguenther@suse.de>
378 * tree-pass.h (TODO_do_not_ggc_collect): New.
379 * passes.c (execute_one_ipa_transform_pass): Honor
380 TODO_do_not_ggc_collect.
381 (execute_one_pass): Likewise.
384 2013-04-10 Richard Biener <rguenther@suse.de>
386 * passes.c (init_optimization_passes): Remove reload pass.
387 * ira.c (do_reload): Merge into ...
389 (rest_of_handle_reload): Remove.
390 (pass_reload): Likewise.
391 * config/i386/i386.c (ix86_option_override): Refer to ira instead
392 of reload for vzeroupper pass placement.
394 2013-04-12 Jakub Jelinek <jakub@redhat.com>
396 PR tree-optimization/56918
397 PR tree-optimization/56920
398 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
399 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
400 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
401 use wide_mul_with_sign method.
403 2013-04-12 Richard Biener <rguenther@suse.de>
405 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
406 not be considered a gimple constant.
408 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
410 * fold-const.c (const_binop): Handle vector shifts by a scalar.
411 (fold_binary_loc): Call const_binop also for mixed vector-scalar
414 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
415 Jakub Jelinek <jakub@redhat.com>
417 * opts.c: Include diagnostic-color.h.
418 (common_handle_option): Handle OPT_fdiagnostics_color_.
419 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
420 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
421 (diagnostic-color.o): New.
422 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
423 (diagnostic_color_rule): New enum.
424 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
425 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
427 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
428 either NULL, or color kind.
429 * diagnostic-color.c: New file.
430 * diagnostic-color.h: New file.
431 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
433 * doc/invoke.texi (-fdiagnostics-color): Document.
434 * pretty-print.h (pp_show_color): Define.
435 (struct pretty_print_info): Add show_color field.
436 * diagnostic.c: Include diagnostic-color.h.
437 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
438 macros. Colorize error:, warning: etc. strings and also the location
440 (diagnostic_show_locus): Colorize the caret line.
441 * pretty-print.c: Include diagnostic-color.h.
442 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
443 inside of %< %> quotes or quoted through q format modifier.
445 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
447 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
449 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
451 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
453 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
456 2013-04-11 Marek Polacek <polacek@redhat.com>
458 PR tree-optimization/48184
459 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
461 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
463 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
464 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
465 (skip_simple_arithmetic): Tidy up.
466 * tree.h (skip_simple_constant_arithmetic): Declare.
468 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
470 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
472 2013-04-11 Richard Biener <rguenther@suse.de>
474 * tree-vect-loop.c (get_initial_def_for_induction): Properly
475 generate vector constants.
477 2013-04-11 Richard Biener <rguenther@suse.de>
479 PR tree-optimization/56878
480 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
481 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
483 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
484 Prefer to align the DR with the most invariant base address.
486 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
488 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
491 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
493 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
494 floating-point vector comparisons against 0.
496 2013-04-11 Jakub Jelinek <jakub@redhat.com>
498 PR tree-optimization/56899
499 * fold-const.c (extract_muldiv_1): Apply distributive law
500 only if TYPE_OVERFLOW_WRAPS (ctype).
502 2013-04-11 Bin Cheng <bin.cheng@arm.com>
505 * ira-costs.c (scan_one_insn): Check whether the source rtx of
506 loading has side effect.
508 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
510 * config/sparc/sparc.c: Include tree-pass.h.
511 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
512 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
513 head of file. Change return type. Split off gate function.
514 (sparc_gate_work_around_errata): New function.
515 (pass_work_around_errata): New pass definition.
516 (insert_pass_work_around_errata) New pass insert definition to
517 insert pass_work_around_errata just after delayed-branch scheduling.
518 (sparc_option_override): Insert the pass.
519 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
521 2013-04-10 David S. Miller <davem@davemloft.net>
523 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
526 * target.def (cstore_mode): New hook.
527 * target.h: Include insn-codes.h
528 * targhooks.c: Likewise.
529 (default_cstore_mode): New function.
530 * targhooks.h: Declare it.
531 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
532 * doc/tm.texi: Rebuild.
533 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
534 target hook, rather than inspecting the insn_data.
535 * config/sparc/sparc.c (sparc_cstore_mode): New function.
536 (TARGET_CSTORE_MODE): Redefine.
537 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
539 * config/sparc/predicates.md (cstore_result_operand): New special
541 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
542 Use it for operand 0.
543 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
544 (*snesi_special): Likewise.
545 (*snesi_zero): Likewise.
546 (*seqsi_zero): Likewise.
547 (*sltu_insn): Likewise.
548 (*sgeu_insn): Likewise.
549 (*seqdi_special): Make operand 0 and comparison operation be of
551 (*snedi_special): Likewise.
552 (*snedi_special_vis3): Likewise.
553 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
554 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
555 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
556 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
557 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
558 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
559 (*sltu_extend_sp64): Likewise.
560 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
561 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
562 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
563 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
564 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
566 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
568 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
569 (aarch64_start_file): Use the new function.
571 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
572 Jason Merrill <jason@redhat.com>
574 * common.opt: Add -gdwarf.
575 * opts.c (common_handle_option): Handle it.
576 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
578 2013-04-10 Richard Biener <rguenther@suse.de>
580 * passes.c (execute_todo): Do not call ggc_collect conditional here.
581 (execute_one_ipa_transform_pass): But unconditionally here.
582 (execute_one_pass): And here.
583 (init_optimization_passes): Remove reload pass.
584 * tree-pass.h (TODO_ggc_collect): Remove.
585 (pass_reload): Likewise.
586 * ira.c (do_reload): Merge into ...
588 (rest_of_handle_reload): Remove.
589 (pass_reload): Likewise.
590 * config/i386/i386.c (ix86_option_override): Refer to ira instead
591 of reload for vzeroupper pass placement.
592 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
593 and todo_flags_finish of all passes.
595 2013-04-10 Richard Biener <rguenther@suse.de>
597 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
598 first_const_oprnd field, rename first_def_type to first_op_type.
599 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
600 (vect_get_and_check_slp_defs): Always use the type of the
601 operand. Allow mixed vect_external_def, vect_constant_def types.
602 (vect_get_constant_vectors): Handle mixed vect_external_def,
603 vect_constant_def types.
605 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
607 PR tree-optimization/55524
608 * tree-ssa-math-opts.c
609 (convert_mult_to_fma): Don't use an fms construct
610 when we don't have an fms operation, but fnma, and it looks
611 likely that we'll be able to use the latter.
613 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
615 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
617 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
618 inline fail caused by overwritable functions.
620 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
622 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
623 unnecessary bits in the constant power of two case.
625 2013-04-10 Richard Biener <rguenther@suse.de>
627 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
628 broken code swapping operands.
629 (vect_build_slp_tree): Do not compute load permutations here.
630 (vect_analyze_slp_instance): Compute load permutations here,
631 after building the SLP tree.
633 2013-04-09 Christian Bruel <christian.bruel@st.com>
635 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
636 of next/prev_real_insn.
638 2013-04-09 Jan Hubicka <jh@suse.cz>
640 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
641 Drop aliased parameter.
642 (function_and_variable_visibility): Do not handle alias pairs.
643 * cgraph.c (varpool_externally_visible_p): Update prototype.
644 * varpool.c (varpool_add_new_variable): Update.
646 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
648 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
650 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
652 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
654 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
656 2013-04-09 Marek Polacek <polacek@redhat.com>
658 PR tree-optimization/48762
659 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
661 2013-04-09 Richard Biener <rguenther@suse.de>
663 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
665 (vect_build_slp_tree): Likewise.
666 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
667 calculating the cost of a SLP instance.
668 (vect_analyze_slp_instance): Use it from here, after building
671 2013-04-09 Jakub Jelinek <jakub@redhat.com>
674 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
675 expand_omp_for_static_chunk): Use simple_p = true in
676 force_gimple_operand_gsi calls when assigning to addressable decls.
678 2013-04-09 Jeff Law <law@redhat.com>
680 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
681 when the boolean was created by converting a wider object which
684 2013-04-09 Richard Biener <rguenther@suse.de>
686 * tree-vectorizer.h (slp_void_p): Remove.
687 (slp_tree): Typedef before _slp_tree declaration.
688 (struct _slp_tree): Use a vector of slp_tree as children.
689 (vect_get_place_in_interleaving_chain): Remove.
690 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
692 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
694 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
695 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
696 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
697 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
698 Use slp_node instead of slp_void_p and adjust.
700 2013-04-09 Richard Biener <rguenther@suse.de>
702 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
703 work that is not necessary.
705 2013-04-09 Jakub Jelinek <jakub@redhat.com>
707 PR tree-optimization/56854
708 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
709 forward into clobber stmts if it would change MEM_REF lhs into
712 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
714 * tree.c (type_hash_lookup, type_hash_add): Make static.
715 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
717 2013-04-09 Richard Biener <rguenther@suse.de>
719 * tree.h (unsave_expr_now): Remove.
720 * tree-inline.c (mark_local_for_remap_r): Remove.
721 (unsave_expr_1): Likewise.
722 (unsave_r): Likewise.
723 (unsave_expr_now): Likewise.
724 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
725 (propagate_tree_value): Likewise.
727 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
729 * doc/rtl.texi (sequence): Rewrite documentation to match the
730 current use of SEQUENCE rtl objects.
731 * rtl.def (SEQUENCE): Likewise.
733 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
734 Update documentation.
735 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
736 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
738 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
740 2013-04-08 Teresa Johnson <tejohnson@google.com>
742 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
743 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
745 (estimate_edge_size_and_time): Add comment to suggest using rounding
747 (estimate_node_size_and_time): Ditto.
748 (remap_edge_change_prob): Use helper rounding divide methods.
749 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
750 (gimple_mod_pow2_value_transform): Ditto.
751 (gimple_mod_subtract_transform): Ditto.
752 (gimple_ic_transform): Ditto.
753 (gimple_stringops_transform): Ditto.
754 * stmt.c (conditional_probability): Ditto.
755 (emit_case_dispatch_table): Ditto.
756 * lto-cgraph.c (merge_profile_summaries): Ditto.
757 * tree-optimize.c (execute_fixup_cfg): Ditto.
758 * cfgcleanup.c (try_forward_edges): Ditto.
759 * cfgloopmanip.c (scale_loop_profile): Ditto.
761 (duplicate_loop_to_header_edge): Ditto.
762 (lv_adjust_loop_entry_edge): Ditto.
763 * tree-vect-loop.c (vect_transform_loop): Ditto.
764 * profile.c (compute_branch_probabilities): Ditto.
765 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
766 * lto-streamer-in.c (input_cfg): Ditto.
767 * gimple-streamer-in.c (input_bb): Ditto.
768 * ipa-cp.c (update_profiling_info): Ditto.
769 (update_specialized_profile): Ditto.
770 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
771 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
773 * sched-rgn.c (compute_dom_prob_ps): Ditto.
774 (compute_trg_info): Ditto.
775 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
776 (purge_dead_edges): Ditto.
777 * loop-unswitch.c (unswitch_loop): Ditto.
778 * cgraphclones.c (cgraph_clone_edge): Ditto.
779 (cgraph_clone_node): Ditto.
780 * tree-inline.c (copy_bb): Ditto.
781 (copy_edges_for_bb): Ditto.
782 (initialize_cfun): Ditto.
783 (copy_cfg_body): Ditto.
784 (expand_call_inline): Ditto.
786 2013-04-08 Kai Tietz <ktietz@redhat.com>
788 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
789 TARGET_CYGWIN64 by TARGET_64BIT.
791 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
793 * config/epiphany/epiphany.md (GPR_1): New constant.
794 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
795 * config/epiphany/epiphany.c (gen_compare_reg):
796 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
798 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
799 Don't require being called during rtl expansion; If y operlaps r0,
801 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
802 (epiphany_expand_epilogue): Likewise.
804 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
805 Don't use CC_FPmode for ORDERED / UNORDERED.
806 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
808 * config/epiphany/constraints.md (CnL): New constraint.
809 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
810 * config/epiphany/predicates.md (add_operand): Allow 1024.
812 * config/epiphany/epiphany.md (logical_op): New code iterator.
813 (op_mnc): New code attribute.
814 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
815 (mov_f+1, mov_f+2): New peephole2 patterns.
817 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
818 (cstoresi4): Also allow re-use of zero result when doing a NE
819 comparison to a non-zero operand.
820 Use (clobber (scratch)) for first insn if the gpr output is not needed.
822 * config/epiphany/epiphany.md (<insn_opname>v2si3):
823 Use gen_addsi3_i / gen_subsi3_i.
825 2013-04-08 Jakub Jelinek <jakub@redhat.com>
829 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
830 contain anything but clobbers, at most one __builtin_stack_restore,
831 optionally debug stmts and final resx, and if it has at least one
832 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
833 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
834 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
835 which isn't defaut definition, remove them.
836 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
837 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
838 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
839 with MEM_REF LHS with SSA_NAME address.
841 2013-04-08 Jeff Law <law@redhat.com>
843 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
845 2013-04-08 Richard Biener <rguenther@suse.de>
847 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
849 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
850 determined vector type.
851 (vect_analyze_data_refs): Likewise.
852 (vect_get_new_vect_var): Adjust.
853 (vect_create_destination_var): Preserve SSA name versions.
854 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
855 not dump anything here.
857 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
859 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
860 Add member lr_slot_known.
861 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
863 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
864 Remove code that sets lr_slot_offset according to what a previous
865 version of epiphany_emit_save_restore used to do.
866 (epiphany_emit_save_restore): When doing an lr save or restore,
867 set/verify lr_slot_known and lr_slot_offset.
869 2013-04-08 Xinyu Qi <xyqi@marvell.com>
872 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
875 2013-04-08 Richard Biener <rguenther@suse.de>
877 * alias.c (find_base_term): Fix thinko in previous change.
879 2013-04-08 Jakub Jelinek <jakub@redhat.com>
881 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
882 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
883 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
884 if possible to compute val.
885 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
886 For QImode integers don't require anything about precision. Use
887 const_with_all_bytes_same to find out if the constant doesn't have
888 repeated bytes in it.
890 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
892 * config/s390/s390.c (s390_expand_insv): Only accept insertions
895 2013-04-08 Marek Polacek <polacek@redhat.com>
897 PR rtl-optimization/48182
898 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
901 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
904 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
905 nuses, make sure we have a label.
907 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
910 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
911 (rs6000_emit_swdiv_low_precision): Remove.
912 (rs6000_emit_swdiv): Rewrite to handle between one and four
913 iterations of Newton-Raphson generally; modify required number of
914 iterations for some cases.
915 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
917 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
919 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
920 set-but-unused variable.
922 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
923 basic blocks of released function bodies garbage-collectable.
925 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
926 (struct rtl_opt_pass): Add TODO_df_finish.
928 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
930 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
932 * config/arm/constraints.md (q): New constraint.
933 * config/arm/ldrdstrd.md: New file.
934 * config/arm/arm.md (ldrdstrd.md) New include.
935 (arm_movdi): Use "q" instead of "r" constraint
936 for double-word memory access.
937 (movdf_soft_insn): Likewise.
938 * config/arm/vfp.md (movdi_vfp): Likewise.
939 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
940 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
941 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
942 (mem_ok_for_ldrd_strd): Likewise.
943 (output_move_double): Update assertion.
945 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
947 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
949 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
951 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
952 define_insn_and_split.
953 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
955 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
957 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
958 define_insn_and_split.
959 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
960 (shiftsi3_compare): New pattern.
962 * config/arm/unspecs.md (UNSPEC_RRX): New.
964 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
966 * config/arm/arm.md (negdi_extendsidi): New pattern.
967 (negdi_zero_extendsidi): Likewise.
969 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
971 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
972 define_insn_and_split.
973 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
974 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
976 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
978 * config/arm/arm.md (arm_subdi3): Convert define_insn into
979 define_insn_and_split.
980 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
981 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
983 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
985 * config/arm/arm.md (subsi3_carryin): New pattern.
986 (subsi3_carryin_const): Likewise.
987 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
988 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
990 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
992 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
994 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
996 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
997 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
999 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1001 * config/arm/arm.c (arm_expand_builtin): Change fcode
1002 type to unsigned int.
1004 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1006 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
1008 2013-04-04 Ian Lance Taylor <iant@google.com>
1010 * doc/standards.texi (Standards): The Go frontend supports the Go 1
1013 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
1016 * df-scan.c (df_insn_delete): Disable failing assert.
1018 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1020 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
1021 New function prototype.
1022 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
1023 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
1024 (arm_builtin_vectorized_function): New function.
1026 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1028 * config/arm/arm_neon_builtins.def: New file.
1029 * config/arm/arm.c (neon_builtin_data): Move contents to
1030 arm_neon_builtins.def.
1031 (enum arm_builtins): Include neon builtin definitions.
1032 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
1033 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
1035 2013-04-04 Marek Polacek <polacek@redhat.com>
1037 PR tree-optimization/48186
1038 * predict.c (maybe_hot_frequency_p): Return false if
1039 HOT_BB_FREQUENCY_FRACTION is 0.
1040 (cgraph_maybe_hot_edge_p): Likewise.
1042 2013-04-04 Richard Biener <rguenther@suse.de>
1044 PR tree-optimization/56826
1045 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
1048 2013-04-04 Richard Biener <rguenther@suse.de>
1050 PR tree-optimization/56213
1051 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
1052 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
1054 2013-04-04 Richard Biener <rguenther@suse.de>
1056 PR tree-optimization/56837
1057 * tree-loop-distribution.c (classify_partition): For non-zero
1058 values require that the value has the same precision as its
1059 mode to be useful as memset value.
1061 2013-04-03 Nick Clifton <nickc@redhat.com>
1063 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
1064 (fmssf4): Use fmsf.s on E3V5 architectures.
1065 (fnmasf4): Use fnmaf.s on E3V5 architectures.
1066 (fnmssf4): Use fnmsf.s on E3V5 architectures.
1068 2013-04-03 Jeff Law <law@redhat.com>
1070 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
1071 (lra-eliminations.o): Likewise.
1073 2013-04-03 Teresa Johnson <tejohnson@google.com>
1075 * gcov-io.c (compute_working_sets): Moved most of body of old
1076 compute_working_sets here from profile.c.
1077 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
1078 (gcov_working_set_t): Moved typedef here from basic-block.h
1079 (compute_working_set): Declare.
1080 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
1081 (get_working_sets): Renamed from compute_working_set,
1082 replace most of body with call to new compute_working_sets.
1083 (get_exec_counts): Replace call to compute_working_sets
1084 to get_working_sets.
1085 * profile.h (get_working_sets): Renamed from compute_working_set.
1086 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
1087 to get_working_sets.
1088 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
1089 * gcov-dump.c (dump_working_sets): New function.
1091 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
1093 * hwint.c (sext_hwi, zext_hwi): New functions.
1094 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
1095 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
1096 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
1097 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
1098 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
1099 (sext_hwi, zext_hwi): New functions.
1101 2013-04-03 Jeff Law <law@redhat.com>
1103 PR tree-optimization/56799
1104 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
1105 back test for widening conversion erroneously dropped in prior change.
1107 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1110 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
1111 instead of next_real_insn.
1113 2013-04-03 Marek Polacek <polacek@redhat.com>
1116 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
1118 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1121 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
1123 (thumb1_output_casesi): Likewise.
1124 (thumb2_output_casesi): Likewise.
1126 2013-04-03 Richard Biener <rguenther@suse.de>
1128 PR tree-optimization/56817
1129 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
1131 (tree_unroll_loops_completely_1): ... new function to manually
1132 walk the loop tree, properly defering outer loops of unrolled
1133 loops to later iterations.
1135 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
1137 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
1138 (vectorizable_load): Likewise.
1139 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
1140 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
1142 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
1144 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
1147 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1149 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
1151 2013-04-03 Bin Cheng <bin.cheng@arm.com>
1153 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
1155 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
1157 PR tree-optimization/56790
1158 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
1161 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
1163 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
1165 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
1166 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
1169 2013-04-03 Jakub Jelinek <jakub@redhat.com>
1172 * tree.h (force_folding_builtin_constant_p): New decl.
1173 * builtins.c (force_folding_builtin_constant_p): New variable.
1174 (fold_builtin_constant_p): Fold immediately also if
1175 force_folding_builtin_constant_p.
1177 2013-04-03 Richard Biener <rguenther@suse.de>
1179 PR tree-optimization/56812
1180 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
1181 DRs of the same interleaving chain are independent.
1183 2013-04-02 Jason Merrill <jason@redhat.com>
1185 * gdbinit.in (pbb): Use debug fn.
1187 2013-04-02 Lawrence Crowl <crowl@google.com>
1189 * sese.h (struct ivtype_map_elt_s): Remove unused.
1190 (extern debug_ivtype_map): Remove unused.
1191 (extern eq_ivtype_map_elts): Remove unused.
1192 * sese.c (debug_ivtype_map): Removed unused.
1193 (debug_ivtype_map_1): Removed unused.
1194 (debug_ivtype_elt): Remove unused.
1195 (eq_ivtype_map_elts): Remove unused.
1198 2013-04-02 Kai Tietz <ktietz@redhat.com>
1201 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
1202 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
1203 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
1205 (legitimize_pe_coff_symbol): Likewise.
1206 (is_imported_p): New helper-function.
1207 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
1208 for Windows x64 targets.
1209 (ix86_expand_prologue): Optimize for pe-coff targets.
1210 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
1211 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
1212 medium/large code-model.
1213 (legitimize_pic_address): Likewise.
1214 (legitimize_tls_address): Likewise.
1215 (ix86_expand_call): Likewise.
1216 (x86_output_mi_thunk): Likewise.
1217 (get_dllimport_decl): Add new beimport argument.
1218 (construct_plt_address): Don't assert for x64 pe-coff targets.
1219 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
1221 (SYMBOL_FLAG_STUBVAR): New macro.
1222 (SYMBOL_REF_STUBVAR_P): Likewise.
1223 * config/i386/winnt.c (stub_list): New structure.
1224 (stub_head): New local variable.
1225 (i386_pe_record_stub): New function.
1226 (i386_pe_file_end): Emit refptr-stubs.
1228 2013-04-02 Jakub Jelinek <jakub@redhat.com>
1230 PR rtl-optimization/56745
1231 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
1232 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
1235 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
1236 and both of them are MEM_REFs, just compare first argument for
1237 equality and attempt to deal even with differing offsets.
1240 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
1241 of gimple_clobber_p to be MEM_REF.
1242 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
1243 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
1244 after gimplification.
1245 * asan.c (get_mem_ref_of_assignment): Don't instrument
1246 gimple_clobber_p stmts.
1247 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
1248 gimple_clobber_p stmt if they have MEM_REF lhs and
1249 are dead because of another gimple_clobber_p stmt.
1250 * tree-ssa-live.c (clear_unused_block_pointer): Treat
1251 gimple_clobber_p stmts like debug stmts.
1252 (remove_unused_locals): Remove clobbers with MEM_REF lhs
1253 that refer to unused VAR_DECLs or uninitialized values.
1254 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
1255 gimple_clobber_p stmts if they refer to removed parameters.
1256 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
1259 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
1261 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
1262 using SWI48 mode attribute.
1264 2013-04-02 Wei Mi <wmi@google.com>
1266 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
1267 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
1268 *<rotate_insn><mode>3_mask in i386.md.
1270 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
1272 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
1274 2013-04-02 Richard Biener <rguenther@suse.de>
1276 PR tree-optimization/56778
1277 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
1278 Runtime alias tests are not supported for gather loads.
1279 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
1280 stmts referenced from SSA operands before updating SSA form.
1282 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
1283 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1285 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
1286 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
1287 * config/arm/cortex-a53.md: New file.
1288 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
1289 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
1290 * config/arm/arm.c (arm_issue_rate): Likewise.
1291 * config/arm/arm-tune.md: Regenerate
1292 * config/arm/arm-tables.opt: Regenerate.
1293 * config/arm/arm-cores.def: Add cortex-a53.
1295 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
1297 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
1300 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
1302 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
1303 scalar load/store operations using B/H registers.
1304 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
1306 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
1308 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
1310 * config/aarch64/aarch64.c
1311 (aarch64_simd_scalar_immediate_valid_for_move): New.
1312 * config/aarch64/aarch64-protos.h
1313 (aarch64_simd_scalar_immediate_valid_for_move): New.
1314 * config/aarch64/constraints.md (Dh, Dq): New.
1315 * config/aarch64/iterators.md (hq): New.
1317 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
1319 * reorg.c (get_branch_condition): Deal with conditional returns.
1320 (fill_simple_delay_slots): Remove dead code dealing with jumps.
1322 2013-04-01 Wei Mi <wmi@google.com>
1324 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
1325 Truncate operand 2 using %b asm operand modifier.
1326 (*<shift_insn><mode>3_mask): Ditto.
1327 (*<rotate_insn><mode>3_mask): Ditto.
1329 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
1332 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
1334 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
1336 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
1338 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
1340 2013-03-30 Lawrence Crowl <crowl@google.com>
1342 * dse.c (clear_alias_sets): Remove never set.
1343 (disqualified_clear_alias_sets): Remove never set.
1344 (clear_alias_mode_pool): Remove never set.
1345 (dse_step0): Remove condition that is never true.
1346 (canon_address): Remove condition that is never true.
1347 (dse_step7): Remove condition that is never true.
1348 (rest_of_handle_dse): Remove condition that is never true.
1349 (rest_of_handle_dse::did_global): Remove never read from above.
1350 (dse_step2_spill): Remove never called from above.
1351 (dse_step5_spill): Remove never called from above.
1353 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
1355 * doc/md.texi (Standard Names) <casesi>: Update documentation for
1356 JUMP_TABLE_DATA changes.
1357 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
1358 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
1359 (Insns) <jump_table_data>: New entry.
1360 * doc/tm.texi: Regenerate.
1362 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
1364 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
1365 for table jump at the end of a basic block using tablejump_p.
1366 * targhooks.c (default_invalid_within_doloop): Likewise.
1367 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
1368 target hook implementation that is identical to the default hook.
1369 (rs6000_invalid_within_doloop): Remove.
1371 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
1372 unused variable from tablejump_p call.
1374 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
1375 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
1376 (INSN_DELETED_P): Likewise.
1377 (emit_jump_table_data): New prototype.
1378 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
1379 after 4th as unused.
1380 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
1381 * sched-vis.c (print_insn): Likewise.
1382 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
1383 insn for compatibility with back ends that use next_active_insn to
1384 identify jump table data.
1385 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
1386 (remove_insn): Likewise.
1387 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
1389 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
1390 (emit_jump_table_data): New function.
1392 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
1393 basic block, a JUMP_TABLE_DATA never is.
1394 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
1395 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
1396 off from code handling real insns.
1397 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
1398 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
1399 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
1400 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
1401 is not a NONDEBUG_INSN_P.
1402 * ira-costs.c (scan_one_insn): Likewise.
1403 * jump.c (mark_all_labels): Likewise.
1404 (mark_jump_label_1): Likewise.
1405 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
1406 * lra.c (get_insn_freq): Expect all insns reaching here to be in
1408 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
1409 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
1410 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
1411 JUMP_TABLE_DATA_P insns.
1412 (calculate_elim_costs_all_insns): Likewise.
1413 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
1414 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
1415 (delete_output_reload): Code style fixups.
1416 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
1417 insn flags on this non-insn.
1418 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
1419 as scheduling barriers, for pre-change compatibility.
1420 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
1421 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
1423 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
1424 redundant JUMP_TABLE_DATA_P test.
1425 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
1426 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
1427 (frv_for_each_packet): Likewise.
1428 * config/i386/i386.c (min_insn_size): Likewise.
1429 (ix86_avoid_jump_mispredicts): Likewise.
1430 * config/m32r/m32r.c (m32r_is_insn): Likewise.
1431 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
1432 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
1433 (mips16_insn_length): Robustify.
1434 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
1435 (mips16_split_long_branches): Likewise.
1436 * config/pa/pa.c (pa_combine_instructions): Likewise.
1437 * config/rs6000/rs6000.c (get_next_active_insn): Treat
1438 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
1439 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
1440 as contributing to pool range lengths.
1441 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
1442 Remove redundant JUMP_TABLE_DATA_P test.
1443 (sh_loop_align): Likewise.
1444 (split_branches): Likewise.
1445 (sh_insn_length_adjustment): Likewise.
1446 * config/spu/spu.c (get_branch_target): Likewise.
1448 2013-03-29 Jan Hubicka <jh@suse.cz>
1450 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
1451 gcov streaming; stream hot bb threshold to ltrans.
1452 * predict.c (get_hot_bb_threshold): Break out from ....
1453 (maybe_hot_count_p): ... here.
1454 (set_hot_bb_threshold): New function.
1455 * lto-section-in.c (lto_section_name): Add profile.
1456 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
1457 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
1459 (histogram_entry): New structure.
1460 (histogram, histogram_pool): New global vars.
1461 (histogram_hash): New structure.
1462 (histogram_hash::hash): New method.
1463 (histogram_hash::equal): Likewise.
1464 (account_time_size): New function.
1465 (cmp_counts): New function.
1466 (dump_histogram): New function.
1467 (ipa_profile_generate_summary): New function.
1468 (ipa_profile_write_summary): New function.
1469 (ipa_profile_read_summary): New function.
1470 (ipa_profile): Decide on threshold.
1471 (pass_ipa_profile): Add ipa_profile_write_summary and
1472 ipa_profile_read_summary.
1473 * Makefile.in (ipa.o): Update dependencies.
1474 * lto-streamer.h (LTO_section_ipa_profile): New section.
1476 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
1478 * tree.h (VAR_P): New.
1480 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
1483 * doc/invoke.texi ([-fwhole-program]): Fix typo.
1485 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
1487 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
1488 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
1489 (control_flow_insn_p): Likewise.
1490 * cfgrtl.c (duplicate_insn_chain): Likewise.
1491 * final.c (get_attr_length_1): Likewise.
1492 (shorten_branches): Likewise.
1493 (final_scan_insn): Likewise.
1494 * function.c (instantiate_virtual_regs): Likewise.
1495 * gcse.c (insert_insn_end_basic_block): Likewise.
1496 * ira-costs.c (scan_one_insn): Likewise.
1497 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
1498 * lra.c (check_rtl): Likewise.
1499 * reload1.c (elimination_costs_in_insn): Likewise.
1500 * reorg.c (follow_jumps): Likewise.
1502 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
1503 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
1504 (thumb_far_jump_used_p): Likewise.
1505 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
1506 (workaround_speculation): Likewise.
1507 (add_sched_insns_for_speculation): Likewise.
1508 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
1509 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
1510 (frv_for_each_packet): Likewise.
1511 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
1512 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
1513 (final_emit_insn_group_barriers): Likewise.
1514 * config/m32r/m32r.c (m32r_is_insn): Likewise.
1515 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
1516 (mips16_insn_length): Likewise.
1517 * config/pa/pa.c (pa_reorg): Likewise.
1518 (pa_combine_instructions): Likewise.
1519 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
1520 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
1521 (sh_reorg): Likewise.
1522 (split_branches): Likewise.
1523 * config/spu/spu.c (get_branch_target): Likewise.
1525 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
1528 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
1530 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
1531 Fix declaration name.
1533 2013-03-28 Lawrence Crowl <crowl@google.com>
1535 * graphds.h (struct graph.indicies): Remove unused.
1536 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
1537 (SCOP_ORIGINAL_PDDRS): Remove unused.
1538 * sese.h (extern insert_loop_close_phis): Removed unused.
1539 (extern insert_guard_phis): Removed unused.
1540 (extern ivtype_map_elt_info): Removed unused.
1541 (new_ivtype_map_elt): Removed unused.
1542 * sese.c (ivtype_map_elt_info): Removed unused.
1544 2013-03-28 Lawrence Crowl <crowl@google.com>
1546 * Makefile.in: Add several missing include dependences.
1548 (test-dump.o): New. This object is not added to any executable,
1549 but is present for ad-hoc testing.
1551 (debug (const bitmap_head_def &)): New.
1552 (debug (const bitmap_head_def *)): New.
1554 (extern debug (const bitmap_head_def &)): New.
1555 (extern debug (const bitmap_head_def *)): New.
1557 (debug (edge_def &)): New.
1558 (debug (edge_def *)): New.
1560 (debug (basic_block_def &)): New.
1561 (debug (basic_block_def *)): New.
1563 (dump_node (const_tree, int, FILE *)): Correct source file.
1565 (debug (die_struct &)): New.
1566 (debug (die_struct *)): New.
1568 (extern debug (die_struct &)): New.
1569 (extern debug (die_struct *)): New.
1570 * gimple-pretty-print.c
1571 (debug (gimple_statement_d &)): New.
1572 (debug (gimple_statement_d *)): New.
1573 * gimple-pretty-print.h
1574 (extern debug (gimple_statement_d &)): New.
1575 (extern debug (gimple_statement_d *)): New.
1577 (debug (ira_allocno_copy &)): New.
1578 (debug (ira_allocno_copy *)): New.
1579 (debug (ira_allocno &)): New.
1580 (debug (ira_allocno *)): New.
1582 (extern debug (ira_allocno_copy &)): New.
1583 (extern debug (ira_allocno_copy *)): New.
1584 (extern debug (ira_allocno &)): New.
1585 (extern debug (ira_allocno *)): New.
1587 (debug (live_range &)): New.
1588 (debug (live_range *)): New.
1590 (debug (lra_live_range &)): New.
1591 (debug (lra_live_range *)): New.
1593 (debug (lra_live_range &)): New.
1594 (debug (lra_live_range *)): New.
1596 (debug (omega_pb_d &)): New.
1597 (debug (omega_pb_d *)): New.
1599 (extern debug (omega_pb_d &)): New.
1600 (extern debug (omega_pb_d *)): New.
1602 (debug (const rtx_def &)): New.
1603 (debug (const rtx_def *)): New.
1605 (debug_tree (tree): Move within file.
1606 (debug_raw (const tree_node &)): New.
1607 (debug_raw (const tree_node *)): New.
1608 (dump_tree_via_hooks (const tree_node *, int)): New.
1609 (debug (const tree_node &)): New.
1610 (debug (const tree_node *)): New.
1611 (debug_verbose (const tree_node &)): New.
1612 (debug_verbose (const tree_node *)): New.
1613 (debug_head (const tree_node &)): New.
1614 (debug_head (const tree_node *)): New.
1615 (debug_body (const tree_node &)): New.
1616 (debug_body (const tree_node *)): New.
1617 (debug_vec_tree (tree): Move and reimplement in terms of dump.
1618 (debug (vec<tree, va_gc> &)): New.
1619 (debug (vec<tree, va_gc> *)): New.
1621 (extern debug (const rtx_def &)): New.
1622 (extern debug (const rtx_def *)): New.
1624 (debug_raw (simple_bitmap_def &)): New.
1625 (debug_raw (simple_bitmap_def *)): New.
1626 (debug (simple_bitmap_def &)): New.
1627 (debug (simple_bitmap_def *)): New.
1629 (extern debug (simple_bitmap_def &)): New.
1630 (extern debug (simple_bitmap_def *)): New.
1631 (extern debug_raw (simple_bitmap_def &)): New.
1632 (extern debug_raw (simple_bitmap_def *)): New.
1634 (debug (vinsn_def &)): New.
1635 (debug (vinsn_def *)): New.
1636 (debug_verbose (vinsn_def &)): New.
1637 (debug_verbose (vinsn_def *)): New.
1638 (debug (expr_def &)): New.
1639 (debug (expr_def *)): New.
1640 (debug_verbose (expr_def &)): New.
1641 (debug_verbose (expr_def *)): New.
1642 (debug (vec<rtx> &)): New.
1643 (debug (vec<rtx> *)): New.
1645 (extern debug (vinsn_def &)): New.
1646 (extern debug (vinsn_def *)): New.
1647 (extern debug_verbose (vinsn_def &)): New.
1648 (extern debug_verbose (vinsn_def *)): New.
1649 (extern debug (expr_def &)): New.
1650 (extern debug (expr_def *)): New.
1651 (extern debug_verbose (expr_def &)): New.
1652 (extern debug_verbose (expr_def *)): New.
1653 (extern debug (vec<rtx> &)): New.
1654 (extern debug (vec<rtx> *)): New.
1656 (_list_iter_cond_expr): Make inline instead of static.
1658 (debug (sreal &)): New.
1659 (debug (sreal *)): New.
1661 (extern debug (sreal &)): New.
1662 (extern debug (sreal *)): New.
1664 (extern debug_raw (const tree_node &)): New.
1665 (extern debug_raw (const tree_node *)): New.
1666 (extern debug (const tree_node &)): New.
1667 (extern debug (const tree_node *)): New.
1668 (extern debug_verbose (const tree_node &)): New.
1669 (extern debug_verbose (const tree_node *)): New.
1670 (extern debug_head (const tree_node &)): New.
1671 (extern debug_head (const tree_node *)): New.
1672 (extern debug_body (const tree_node &)): New.
1673 (extern debug_body (const tree_node *)): New.
1674 (extern debug (vec<tree, va_gc> &)): New.
1675 (extern debug (vec<tree, va_gc> *)): New.
1677 (debug (struct loop &)): New.
1678 (debug (struct loop *)): New.
1679 (debug_verbose (struct loop &)): New.
1680 (debug_verbose (struct loop *)): New.
1681 * tree-dump.c: Add header dependence.
1683 (extern debug (struct loop &)): New.
1684 (extern debug (struct loop *)): New.
1685 (extern debug_verbose (struct loop &)): New.
1686 (extern debug_verbose (struct loop *)): New.
1688 (debug (data_reference &)): New.
1689 (debug (data_reference *)): New.
1690 (debug (vec<data_reference_p> &)): New.
1691 (debug (vec<data_reference_p> *)): New.
1692 (debug (vec<ddr_p> &)): New.
1693 (debug (vec<ddr_p> *)): New.
1695 (extern debug (data_reference &)): New.
1696 (extern debug (data_reference *)): New.
1697 (extern debug (vec<data_reference_p> &)): New.
1698 (extern debug (vec<data_reference_p> *)): New.
1699 (extern debug (vec<ddr_p> &)): New.
1700 (extern debug (vec<ddr_p> *)): New.
1702 (debug (pt_solution &)): New.
1703 (debug (pt_solution *)): New.
1705 (extern debug (pt_solution &)): New.
1706 (extern debug (pt_solution *)): New.
1708 (debug (_var_map &)): New.
1709 (debug (_var_map *)): New.
1710 (debug (tree_live_info_d &)): New.
1711 (debug (tree_live_info_d *)): New.
1713 (extern debug (_var_map &)): New.
1714 (extern debug (_var_map *)): New.
1715 (extern debug (tree_live_info_d &)): New.
1716 (extern debug (tree_live_info_d *)): New.
1718 2013-03-28 Jan Hubicka <jh@suse.cz>
1720 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
1722 2013-03-28 Ian Bolton <ian.bolton@arm.com>
1724 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
1725 record only when desired or required.
1727 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
1729 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
1730 *vec_extractv2di_1_rex64. Use x64 isa attribute.
1732 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1734 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
1735 (*andsi3_compare0_uxtw): New pattern.
1736 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
1737 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
1739 2013-03-28 Jan Hubicka <jh@suse.cz>
1741 * data-streamer-in.c (streamer_read_gcov_count): New function.
1742 * gimple-streamer-out.c: Include value-prof.h.
1743 (output_gimple_stmt): Output histogram.
1744 (output_bb): Use streamer_write_gcov_count.
1745 * value-prof.c: Include data-streamer.h
1746 (dump_histogram_value): Add HIST_TYPE_MAX.
1747 (stream_out_histogram_value): New function.
1748 (stream_in_histogram_value): New function.
1749 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
1750 (stream_out_histogram_value, stream_in_histogram_value): Declare.
1751 * data-streamer-out.c (streamer_write_gcov_count): New function.
1752 (streamer_write_gcov_count_stream): New function.
1753 * lto-cgraph.c (lto_output_edge): Update counter streaming.
1754 (lto_output_node): Likewise.
1755 (input_node, input_edge): Likewise.
1756 * lto-streamer-out.c (output_cfg): Update streaming.
1757 * lto-streamer-in.c (input_cfg): Likewise.
1758 * data-streamer.h (streamer_write_gcov_count,
1759 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
1760 * gimple-streamer-in.c: Include value-prof.h
1761 (input_gimple_stmt): Input histograms.
1762 (input_bb): Update profile streaming.
1764 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
1766 * genmodes.c (emit_max_int): New function.
1767 (emit_insn_modes_h): Added call to emit_max_function.
1768 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
1770 * machmode.def: Fixed comment.
1772 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
1774 * combine.c (try_combine): Removed useless assert.
1775 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
1777 2013-03-28 Marek Polacek <polacek@redhat.com>
1778 Richard Biener <rguenther@suse.de>
1780 PR tree-optimization/56695
1781 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
1782 build signed result of a vector comparison.
1783 * tree-cfg.c (verify_gimple_comparison): Check that a result
1784 of a vector comparison has signed type.
1786 2013-03-28 Richard Biener <rguenther@suse.de>
1788 PR tree-optimization/37021
1789 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
1790 do not restrict gaps between groups.
1791 * tree-vect-stmts.c (vectorizable_load): Properly account for
1792 a gap between groups.
1794 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
1796 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
1797 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
1800 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
1802 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
1803 * doc/extend.texi (Named Address Spaces): Ditto.
1804 (Variable Attributes): Ditto.
1806 2013-03-27 Kai Tietz <ktietz@redhat.com>
1808 * config.build: Add support for cygwin x64 target.
1809 * config.gcc: Likewise.
1810 * config.host: Likewise.
1811 * configure.ac: Likewise
1812 * configure: Regenerated.
1814 2013-03-27 Kai Tietz <ktietz@redhat.com>
1816 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
1817 * config/i386/t-cygwin-w64: New file.
1818 * config/i386/cygwin-w64.h: New file.
1819 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
1820 and add support for x64-cygwin target.
1821 (CPP_SPEC): Likewise.
1822 (CXX_WRAP_SPEC_LIST): Undefine before define.
1823 (LIBGCJ_SONAME): Use 15 as version.
1825 2013-03-27 Richard Biener <rguenther@suse.de>
1827 PR tree-optimization/56716
1828 * tree-ssa-structalias.c (perform_var_substitution): Adjust
1829 dumping for ref nodes.
1831 2013-03-27 Martin Jambor <mjambor@suse.cz>
1833 PR tree-optimization/55334
1834 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
1835 restricted pointers to arrays.
1837 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
1839 * Makefile.in (.SUFFIXES): Add .cc.
1840 (.c.o): Apply same recipe for implicit rule .cc.o.
1842 2013-03-27 Richard Biener <rguenther@suse.de>
1844 PR tree-optimization/37021
1845 * tree-vect-data-refs.c (vect_check_strided_load): Allow
1846 REALPART/IMAGPART_EXPRs around the supported refs.
1847 * tree-ssa-structalias.c (find_func_aliases): Assume that
1848 floating-point values are not used to transfer pointers.
1850 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
1852 * target.def (TARGET_HAS_IFUNC_P): New target hook.
1853 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
1854 * doc/tm.texi: Regenerate.
1855 * targhooks.h (default_has_ifunc_p): New.
1856 * targhooks.c (default_has_ifunc_p): Ditto.
1857 * config/linux-protos.h: New file.
1858 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
1859 this hook for linux which disables support of indirect functions in
1861 * config/linux-android.c: New file.
1862 * config/t-linux-android.c: Ditto.
1863 * config.gcc: Added new object file linux-android.o.
1864 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
1865 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
1866 * varasm.c (do_assemble_alias): Likewise.
1867 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
1868 doesn't support indirect functions.
1869 * configure: Regenerate.
1871 2013-03-27 Bin Cheng <bin.cheng@arm.com>
1874 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
1875 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
1878 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1880 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
1882 2013-03-27 Terry Guo <terry.guo@arm.com>
1884 * config/arm/arm-cores.def: Added core cortex-r7.
1885 * config/arm/arm-tune.md: Regenerated.
1886 * config/arm/arm-tables.opt: Regenerated.
1887 * doc/invoke.texi: Added entry for core cortex-r7.
1889 2013-03-27 Walter Lee <walt@tilera.com>
1891 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
1892 double-decrement of next_scratch_regno.
1894 2013-03-27 Walter Lee <walt@tilera.com>
1896 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
1898 (insn_v1mulus): Ditto.
1899 (insn_v2muls): Ditto.
1901 2013-03-27 Walter Lee <walt@tilera.com>
1903 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
1904 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
1906 2013-03-27 Walter Lee <walt@tilera.com>
1908 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
1909 (*sibcall_value): Ditto.
1911 2013-03-27 Walter Lee <walt@tilera.com>
1913 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
1914 (insn_mnz_v8qi): ... this ...
1915 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
1917 (insn_v<n>mnz): Replaced by ...
1918 (insn_v1mnz): ... this ...
1919 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
1921 (insn_mz_<mode>): Replaced by ...
1922 (insn_mz_v8qi): ... this ...
1923 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
1925 (insn_v<n>mz): Replaced by ...
1926 (insn_v1mz): ... this ...
1927 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
1930 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
1932 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
1934 2013-03-26 Roland McGrath <mcgrathr@google.com>
1936 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
1937 than fprintf with a non-constant, non-format string.
1939 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
1941 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
1942 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
1943 operand 0 predicate.
1944 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
1945 attribute. Use general_x64nomem_operand as operand 1 predicate.
1946 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
1947 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
1948 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
1949 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
1950 (mov<mode>_insv_1): Remove expander. Merge insn with
1951 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
1952 Use general_x64nomem_operand as operand 1 predicate.
1953 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
1954 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
1955 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
1956 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
1957 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
1958 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
1959 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
1960 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
1961 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
1962 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
1963 (general_x64nomem_operand): Ditto.
1965 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
1967 * config/rtems.opt: Add -pthread option.
1969 2013-03-26 Richard Biener <rguenther@suse.de>
1971 * alias.c (find_base_term): Avoid redundant and not used recursion.
1972 (base_alias_check): Get the initial base term from the caller.
1973 (true_dependence_1): Compute and pass base terms to base_alias_check.
1974 (write_dependence_p): Likewise.
1975 (may_alias_p): Likewise.
1977 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
1979 * config/aarch64/aarch64.c (aarch64_classify_address): Support
1980 PC-relative load in SI modes and above only.
1982 2013-03-26 Xinyu Qi <xyqi@marvell.com>
1984 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
1985 * config/arm/iwmmxt.md (WCGR0): Update.
1986 (WCGR1, WCGR2, WCGR3): Likewise.
1988 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
1990 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
1991 Use x64 and nox64 isa attributes.
1993 2013-03-26 Richard Biener <rguenther@suse.de>
1995 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
1996 alignment computations and rely on get_object_alignment_1
1997 for the !TYPE_P case.
1998 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
2000 2013-03-26 Walter Lee <walt@tilera.com>
2002 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
2003 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
2005 2013-03-25 Jeff Law <law@redhat.com>
2007 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
2008 check for INTEGRAL_TYPE_P that was missing due to checking in
2009 wrong version of prior patch.
2011 2013-03-25 Walter Lee <walt@tilera.com>
2013 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
2014 TILEGX_INSN_SHUFFLEBYTES1.
2015 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
2017 (tilegx_builtins): Ditto.
2018 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
2020 2013-03-25 Walter Lee <walt@tilera.com>
2022 * config/tilegx/tilegx.md (floatsisf2): New pattern.
2023 (floatunssisf2): New pattern.
2024 (floatsidf2): New pattern.
2025 (floatunssidf2): New pattern.
2027 2013-03-25 Walter Lee <walt@tilera.com>
2029 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
2030 tests for constraint J, K, N, P.
2032 2013-03-25 Walter Lee <walt@tilera.com>
2034 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
2035 Use indirect/pcrel encoding.
2036 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
2039 2013-03-25 Steve Ellcey <sellcey@mips.com>
2041 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
2042 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
2043 * config/mips/mips.c (mips_option_override): Set IMADD default.
2044 * config/mips/mips.h (PTF_AVOID_IMADD): New.
2045 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
2046 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
2047 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
2048 * doc/invoke.texi (-mimadd/-mno-imadd): New.
2050 2013-03-25 Jeff Law <law@redhat.com>
2052 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
2053 slightly to avoid creating and folding useless trees. Simplify
2054 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
2056 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
2058 * config/i386/i386.md (*zero_extendsidi2): Merge with
2059 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
2060 * config/i386/predicates.md (x86_64_zext_operand): Rename from
2061 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
2062 targets. Clarify comment.
2064 2013-03-25 Martin Jambor <mjambor@suse.cz>
2066 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
2067 pass-through jump functions differently.
2068 (ipa_read_jump_function): Likewise. Also use setter functions to set
2071 2013-03-25 Martin Jambor <mjambor@suse.cz>
2073 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
2074 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
2076 (ipa_get_indirect_edge_target): New function.
2077 (devirtualization_time_bonus): New parameter known_aggs, pass it to
2078 ipa_get_indirect_edge_target. Update all callers.
2079 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
2080 ipa_get_indirect_edge_target_1 instead of calling
2081 ipa_get_indirect_edge_target.
2082 (create_specialized_node): Pass aggvlas to
2083 ipcp_discover_new_direct_edges.
2085 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2087 * config/arm/arm.md (f_sels, f_seld): New types.
2088 (*cmov<mode>): New pattern.
2089 * config/arm/predicates.md (arm_vsel_comparison_operator): New
2092 2013-03-25 Kai Tietz <ktietz@redhat.com>
2094 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
2095 POSIX-printf for mingw-hosted builds.
2097 2013-03-25 Richard Biener <rguenther@suse.de>
2100 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
2101 must-not-throw stmt location.
2103 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2105 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
2106 Emit load-acquire versions when acq is true.
2107 (arm_emit_store_exclusive): Add rel parameter.
2108 Emit store-release versions when rel is true.
2109 (arm_split_compare_and_swap): Use acquire-release instructions
2111 of barriers when appropriate.
2112 (arm_split_atomic_op): Likewise.
2113 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
2114 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
2115 (VUNSPEC_SLX): Likewise.
2116 (VUNSPEC_LDA): Likewise.
2117 (VUNSPEC_STL): Likewise.
2118 * config/arm/sync.md (atomic_load<mode>): New pattern.
2119 (atomic_store<mode>): Likewise.
2120 (arm_load_acquire_exclusive<mode>): Likewise.
2121 (arm_load_acquire_exclusivesi): Likewise.
2122 (arm_load_acquire_exclusivedi): Likewise.
2123 (arm_store_release_exclusive<mode>): Likewise.
2125 2013-03-25 Catherine Moore <clm@codesourcery.com>
2127 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
2128 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
2129 * config/mip/predicates.md (lwsp_swsp_operand,
2130 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
2131 sb16_operand, db4_operand, db7_operand, ib3_operand,
2132 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
2133 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
2134 andi16_operand): New predicates.
2135 * config/mips/mips.md (compression): New attribute.
2136 (enabled): New attribute.
2137 (length): Consider compression in computing length.
2138 (shift_compression): New code attribute.
2139 (*add<mode>3): New operands. Record compression.
2140 (sub<mode>3): Likewise.
2141 (one_cmpl<mode>2): Likewise.
2142 (*and<mode>3): Likewise.
2143 (*ior<mode>3): Likewise.
2144 (unnamed pattern for xor): Likewise.
2145 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
2146 (*<optab><mode>3): Likewise.
2147 (*mov<mode>_internal: Likewise.
2148 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
2149 (mips_unsigned_immediate_p): New.
2150 (umips_lwsp_swsp_address_p): New.
2151 (m16_based_address_p): New.
2152 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
2153 (mips_unsigned_immediate_p): New prototype.
2154 (lwsp_swsp_address_p): New prototype.
2155 (m16_based_address_p): New prototype.
2156 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
2157 (mips_signed_immediate_p): New function.
2158 (m16_based_address_p): New function.
2159 (lwsp_swsp_address_p): New function.
2160 (mips_print_operand_punctuation): Recognize short delay slot insns
2161 for microMIPS.add<mode>3"
2163 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2166 * config/arm/iterators.md (v_cmp_result): New mode attribute.
2167 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
2169 2013-03-25 Richard Biener <rguenther@suse.de>
2171 PR tree-optimization/56689
2172 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
2175 2013-03-25 Richard Biener <rguenther@suse.de>
2177 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
2179 (memory_references): Likewise.
2180 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
2181 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
2182 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
2183 (gather_mem_refs_in_loops): Fold into ...
2184 (analyze_memory_references): ... this. Move initialization
2185 to tree_ssa_lim_initialize.
2186 (fill_always_executed_in): Rename to ...
2187 (fill_always_executed_in_1): ... this.
2188 (fill_always_executed_in): Move contains_call computation to
2189 this new function from ...
2190 (tree_ssa_lim_initialize): ... here.
2191 (tree_ssa_lim): Call fill_always_executed_in.
2193 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
2195 * postreload.c (reload_combine): Fix code detecting returns.
2197 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
2199 * function.c (emit_use_return_register_into_block): On cc0 targets,
2200 do not emit the sequence between cc0 setter and user.
2202 2013-03-25 Kai Tietz <ktietz@redhat.com>
2204 * config/i386/predicates.md (local_symbolic_operand): Interpret
2205 dll-imported symbols as none-local.
2207 2013-03-25 Richard Biener <rguenther@suse.de>
2209 * tree-ssa-loop-im.c (struct depend): Remove.
2210 (struct lim_aux_data): Make depends a vec of gimples.
2211 (free_lim_aux_data): Adjust.
2212 (add_dependency): Likewise.
2213 (set_level): Likewise.
2215 2013-03-25 Richard Biener <rguenther@suse.de>
2218 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
2219 the pointer returned by calls with ECF_MALLOC set.
2221 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
2223 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
2225 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
2227 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
2228 using MMXMODE mode iterator.
2229 (*move<mode>_internal): Merge with *movv2sf_internal and
2230 *movv2sf_internal_rex64 using MMXMODE mode iterator.
2232 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
2234 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
2235 (record_last_mem_set_info): Likewise.
2237 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
2238 of XNEWVEC followed by memset.
2239 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
2241 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
2243 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
2244 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
2245 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
2246 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
2247 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
2248 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
2249 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
2250 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
2251 BARRIER_P instead of GET_CODE.
2253 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
2255 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
2256 inaccuracy in the probing code.
2258 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
2259 (ctrapdi4): Likewise.
2261 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
2263 * calls.c (expand_call): Add missing guard to code handling return
2264 of non-BLKmode structures in MSB.
2265 * function.c (expand_function_end): Likewise.
2267 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
2269 * combine.c (try_combine): Adjust comment. Do not add the set of
2270 insn #0 if the destination indirectly is set or dies in insn #2.
2271 Tidy up code to distribute a new note.
2273 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
2275 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
2276 also for alternatives 16 and 17.
2278 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
2280 * config/i386/sse.md (*mov<mode>_internal): Merge with
2281 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
2282 Emit insn template depending on type attribute. Use
2283 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
2284 movd instead of movq mnemonic for interunit moves. Rewrite mode
2285 attribute calculation. Remove unit attribute calculation.
2286 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
2287 Set prefix_data16 attribute for DImode ssemov types.
2288 Use Ym instead of y for SSE-MMX conversion alternatives.
2289 Reorder operand constraints.
2291 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
2293 * df.h (df_insn_delete): Adjust prototype.
2294 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
2295 and let it decide whether mark the basic block dirty.
2296 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
2297 * df-scan.c (df_insn_info_delete): New helper function, split
2298 off from df_insn_delete.
2299 (df_scan_free_bb_info): Use it.
2300 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
2302 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
2303 that the insn is actually an insn and it has a non-NULL basic block.
2304 Do not mark basic block dirty if only deleting a DEBUG_INSN.
2306 2013-03-22 Richard Biener <rguenther@suse.de>
2308 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
2310 (mem_ref_alloc): Do not allocate them.
2311 (refs_independent_p): Do not query or maintain a cache.
2313 2013-03-22 Richard Biener <rguenther@suse.de>
2315 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
2316 (gather_mem_refs_in_loops): Do not compute it.
2317 (analyze_memory_references): Do not allocate it.
2318 (tree_ssa_lim_finalize): Do not free it.
2319 (for_all_locs_in_loop): Do not query all_refs_in_loop.
2321 2013-03-22 Richard Biener <rguenther@suse.de>
2323 * is-a.h (as_a): Use gcc_checking_assert.
2325 2013-03-22 Ian Bolton <ian.bolton@arm.com>
2327 * config/aarch64/aarch64.c (aarch64_print_operand): New
2328 format specifier for printing a constant in hex.
2329 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
2330 format specifier for printing second operand.
2332 2013-03-22 Richard Biener <rguenther@suse.de>
2334 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
2336 (gather_mem_refs_in_loops): Perform store accumulation here.
2337 (create_vop_ref_mapping_loop): Remove.
2338 (create_vop_ref_mapping): Likewise.
2339 (analyze_memory_references): Initialize refs_stored_in_loop.
2340 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
2341 (record_indep_loop): Remove.
2342 (record_dep_loop): New function.
2343 (ref_indep_loop_p_1): Adjust to only walk over references
2344 in the loop, not its subloops.
2345 (ref_indep_loop_p): Rename to ...
2346 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
2347 maintaining a more fine-grained cache.
2348 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
2349 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
2351 2013-03-22 Richard Biener <rguenther@suse.de>
2353 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
2354 (struct mem_ref): Make accesses_in_loop a vec of a vec of
2355 aggregate mem_ref_loc.
2356 (free_mem_ref_locs): Inline into ...
2357 (memref_free): ... this and adjust.
2358 (mem_ref_alloc): Adjust.
2359 (mem_ref_locs_alloc): Remove.
2360 (record_mem_ref_loc): Adjust.
2361 (get_all_locs_in_loop): Rewrite into ...
2362 (for_all_locs_in_loop): ... this iterator.
2363 (rewrite_mem_ref_loc): New functor.
2364 (rewrite_mem_refs): Use for_all_locs_in_loop.
2365 (sm_set_flag_if_changed): New functor.
2366 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
2367 (ref_always_accessed): New functor.
2368 (ref_always_accessed_p): Use for_all_locs_in_loop.
2370 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
2372 * tree-pass.h (PROP_gimple_lvec): New.
2373 * passes.c (dump_properties): Handle PROP_gimple_lvec.
2374 (init_optimization_passes): Move pass_lower_vector.
2375 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
2377 (pass_lower_vector): Provide PROP_gimple_lvec.
2378 (pass_lower_vector_ssa): Likewise.
2379 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
2381 2013-03-21 Mark Wielaard <mjw@redhat.com>
2383 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
2385 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
2387 * config/i386/i386.md (*movdi_internal): Disparage slightly
2388 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
2389 conversion alternatives.
2391 2013-03-21 Jakub Jelinek <jakub@redhat.com>
2394 * diagnostic.def (DK_WERROR): New kind.
2395 * diagnostic.h (werrorcount): Define.
2396 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
2397 promoted to DK_ERROR, increment DK_WERROR counter instead of
2399 * toplev.c (toplev_main): Call print_ignored_options even if
2400 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
2401 even if just werrorcount is non-zero.
2404 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
2406 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
2407 (string_cst_pool_decl): New function.
2408 (optimize_one_addr_into_implicit_ptr): New function.
2409 (resolve_addr_in_expr): Optimize DWARF location expression
2410 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
2411 which doesn't live in memory, but has DW_AT_location or
2412 DW_AT_const_value, or refers to a string literal, into
2413 DW_OP_GNU_implicit_pointer.
2414 (optimize_location_into_implicit_ptr): New function.
2415 (resolve_addr): If removing DW_AT_location of a variable because
2416 it was DW_OP_addr of address of the variable, but the variable doesn't
2417 live in memory, try to emit const value attribute for the initializer.
2419 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
2421 * tree.h (VECTOR_TYPE_P): New macro.
2422 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
2424 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
2425 VEC_COND_EXPR cannot be lvalues.
2426 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
2428 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
2430 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
2431 Restrict the transformation to equal modes.
2433 2013-03-21 Richard Biener <rguenther@suse.de>
2435 PR tree-optimization/39326
2436 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
2437 (MEM_ANALYZABLE): Adjust.
2438 (record_mem_ref_loc): Move bitmap ops ...
2439 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
2440 unanalyzable refs, do not record locations for it.
2441 (analyze_memory_references): Allocate ref zero as shared
2443 (refs_independent_p): Do not test for unanalyzed mems here.
2444 (ref_indep_loop_p_1): Special-case disambiguation against
2446 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
2448 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
2450 * config/arm/arm-protos.h (tune_params): Add
2451 prefer_neon_for_64bits field.
2452 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
2453 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
2454 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
2455 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
2456 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
2457 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
2458 (arm_option_override): Handle -mneon-for-64bits new option.
2459 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
2460 (prefer_neon_for_64bits): Declare new variable.
2461 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
2462 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
2463 (arch_enabled): Handle new arch types. Remove support for onlya8
2465 (one_cmpldi2): Use new arch names.
2466 (zero_extend<mode>di2, extend<mode>di2): Ditto.
2467 * config/arm/arm.opt (mneon-for-64bits): Add option.
2468 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
2469 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
2470 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
2472 * doc/invoke.texi (-mneon-for-64bits): Document.
2474 2013-03-21 Richard Biener <rguenther@suse.de>
2476 PR tree-optimization/39326
2477 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
2478 (sort_bbs_in_loop_postorder_cmp): New function.
2479 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
2481 2013-03-21 Richard Biener <rguenther@suse.de>
2483 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
2484 (vect_insert_into_interleaving_chain): Likewise.
2485 (vect_drs_dependent_in_basic_block): Inline ...
2486 (vect_slp_analyze_data_ref_dependence): ... here. New function,
2488 (vect_analyze_data_ref_dependence): ... here. Simplify.
2489 (vect_check_interleaving): Simplify.
2490 (vect_analyze_data_ref_dependences): Likewise. Split out ...
2491 (vect_slp_analyze_data_ref_dependences): ... this new function.
2492 (dr_group_sort_cmp): New function.
2493 (vect_analyze_data_ref_accesses): Compute data-reference groups
2494 here instead of in vect_analyze_data_ref_dependence. Use
2495 a more efficient algorithm.
2496 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
2497 vect_slp_analyze_data_ref_dependences. Call
2498 vect_analyze_data_ref_accesses earlier.
2499 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
2500 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
2501 (vect_slp_analyze_data_ref_dependences): New prototype.
2503 2013-03-21 Richard Biener <rguenther@suse.de>
2505 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
2506 ref is stored in the loop.
2507 (find_refs_for_sm): Walk only over all stores.
2508 (store_motion_loop): Allocate from lim_bitmap_obstack.
2509 (store_motion): Likewise.
2511 2013-03-21 Richard Biener <rguenther@suse.de>
2513 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
2514 Update virtual SSA form.
2516 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2518 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
2519 * configure: Regenerate.
2520 * config.in: Regenerate.
2521 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
2522 if !HAVE_LD_EH_FRAME_CIEV3.
2524 2013-03-21 Richard Biener <rguenther@suse.de>
2526 * tree-cfg.c (verify_expr_no_block): New function.
2527 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
2528 nor DECL_VALUE_EXPR have locations with associated blocks.
2529 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
2530 (clear_unused_block_pointer): Remove code dealing with
2531 blocks in DECL_DEBUG_EXPR locations.
2533 2013-03-21 Richard Biener <rguenther@suse.de>
2535 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
2536 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
2537 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
2538 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
2539 instead of DECL_DEBUG_EXPR_IS_FROM.
2540 * gimplify.c (gimplify_modify_expr): Likewise.
2541 * tree-cfg.c (verify_expr_location_1): Likewise.
2542 * tree-complex.c (create_one_component_var): Likewise.
2543 * tree-sra.c (create_access_replacement): Likewise.
2544 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
2545 (clear_unused_block_pointer): Likewise.
2546 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
2547 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2548 * var-tracking.c (var_debug_decl): Likewise.
2549 (track_expr_p): Likewise.
2550 * tree-inline.c (add_local_variables): Likewise. Set
2551 DECL_HAS_DEBUG_EXPR_P after copying it.
2552 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
2553 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
2555 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
2558 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
2559 * configure: Regenerate.
2560 * config.in: Regenerate.
2561 * config/i386/i386.md (*movdf_internal): Use
2562 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
2563 movd instead of movq mnemonic for interunit moves.
2564 (*movdi_internal): Ditto.
2566 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2568 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
2569 (abd<mode>_3): New pattern.
2570 (aba<mode>_3): New pattern.
2571 (fabd<mode>_3): New pattern.
2573 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2575 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
2576 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
2577 occurrence of REGISTER_PREFIX as its empty string.
2579 2013-03-20 Jeff Law <law@redhat.com>
2581 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
2582 addititional equivalences for equality comparisons between an SSA_NAME
2583 and a constant where the SSA_NAME was set from a widening conversion.
2585 2013-03-20 Walter Lee <walt@tilera.com>
2587 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
2589 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
2591 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
2592 depending on type attribute.
2593 (*movti_internal): Ditto.
2594 (*movtf_internal): Ditto.
2595 (*movxf_internal): Ditto.
2596 (*movdf_internal): Ditto.
2597 (*movsf_internal): Ditto.
2599 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
2601 * config/i386/i386.md (*movti_internal): Set prefix attribute to
2602 maybe_vex for sselog1 and ssemov types.
2603 (*movdi_internal): Reorder operand constraints.
2604 (*movsi_internal): Ditto. Set prefix attribute to
2605 maybe_vex for sselog1 and ssemov types.
2606 (*movtf_internal): Set prefix attribute to maybe_vex
2607 for sselog1 and ssemov types.
2608 (*movdf_internal): Ditto. Set prefix_data16 attribute for
2609 DImode ssemov types. Reorder operand constraints.
2610 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
2611 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
2612 attribute for SImode ssemov types. Reorder operand constraints.
2614 2013-03-20 Martin Jambor <mjambor@suse.cz>
2616 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
2617 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
2619 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
2621 * config/rs6000/predicates.md (indexed_address, update_address_mem
2622 update_indexed_address_mem): New predicates.
2623 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
2624 attribute for load/store instructions.
2625 * config/rs6000/dfp.md (movsd_store): Likewise.
2626 (movsd_load): Likewise.
2627 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
2628 (unnamed HI->DI extend define_insn): Likewise.
2629 (unnamed SI->DI extend define_insn): Likewise.
2630 (unnamed QI->SI extend define_insn): Likewise.
2631 (unnamed QI->HI extend define_insn): Likewise.
2632 (unnamed HI->SI extend define_insn): Likewise.
2633 (unnamed HI->SI extend define_insn): Likewise.
2634 (extendsfdf2_fpr): Likewise.
2635 (movsi_internal1): Likewise.
2636 (movsi_internal1_single): Likewise.
2637 (movhi_internal): Likewise.
2638 (movqi_internal): Likewise.
2639 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
2640 attribute for load/store instructions.
2641 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
2643 (mov<mode>_softfloat): Likewise.
2644 (mov<mode>_hardfloat32): Likewise.
2645 (mov<mode>_hardfloat64): Likewise.
2646 (mov<mode>_softfloat64): Likewise.
2647 (movdi_internal32): Likewise.
2648 (movdi_internal64): Likewise.
2649 (probe_stack_<mode>): Likewise.
2651 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
2653 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
2654 floating point, and decimal floating point to reload iterator.
2656 * config/rs6000/constraints.md (wl constraint): New constraints to
2657 return FLOAT_REGS if certain options are used to reduce the number
2658 of separate patterns that exist in the file.
2659 (wx constraint): Likewise.
2660 (wz constraint): Likewise.
2662 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
2663 -mdebug=reg, print wg, wl, wx, and wz constraints.
2664 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
2665 Initialize the reload functions for 64-bit binary/decimal floating
2667 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
2668 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
2669 create the buffer on the stack to overcome not having a 32-bit
2671 (rs6000_emit_move): Likewise.
2672 (rs6000_secondary_memory_needed_rtx): Likewise.
2673 (rs6000_alloc_sdmode_stack_slot): Likewise.
2674 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
2675 via xxlxor, just like DFmode 0.0.
2677 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
2678 define as 1 if we are running on a power7 or newer.
2679 (enum r6000_reg_class_enum): Add new constraints.
2681 * config/rs6000/dfp.md (movsd): Delete, combine with binary
2682 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
2683 with other moves by using conditional constraits (wg). Use LFIWZX
2684 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
2685 (movsd splitter): Likewise.
2686 (movsd_hardfloat): Likewise.
2687 (movsd_softfloat): Likewise.
2689 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
2690 binary and decimal floating point moves.
2691 (fmove_ok): New attributes to combine binary and decimal floating
2692 point moves, and to combine power6x (mfpgpr) moves along normal
2694 (real_value_to_target): Likewise.
2701 (movsf): Combine binary and decimal floating point moves. Combine
2702 power6x (mfpgpr) moves with other moves by using conditional
2703 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
2704 (mov<mode> for SFmode/SDmode); Likewise.
2705 (SFmode/SDmode splitters): Likewise.
2706 (movsf_hardfloat): Likewise.
2707 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
2708 (movsf_softfloat): Likewise.
2709 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
2711 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
2712 wx and wz constraints.
2714 * config/rs6000/constraints.md (wg constraint): New constraint to
2715 return FLOAT_REGS if -mmfpgpr (power6x) was used.
2717 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
2720 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
2721 -mdebug=reg, print wg, wl, wx, and wz constraints.
2722 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
2723 Initialize the reload functions for 64-bit binary/decimal floating
2725 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
2726 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
2727 create the buffer on the stack to overcome not having a 32-bit
2729 (rs6000_emit_move): Likewise.
2730 (rs6000_secondary_memory_needed_rtx): Likewise.
2731 (rs6000_alloc_sdmode_stack_slot): Likewise.
2732 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
2733 via xxlxor, just like DFmode 0.0.
2735 * config/rs6000/dfp.md (movdd): Delete, combine with binary
2736 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
2737 with other moves by using conditional constraits (wg). Use LFIWZX
2738 and STFIWX for loading SDmode on power7.
2739 (movdd splitters): Likewise.
2740 (movdd_hardfloat32): Likewise.
2741 (movdd_softfloat32): Likewise.
2742 (movdd_hardfloat64_mfpgpr): Likewise.
2743 (movdd_hardfloat64): Likewise.
2744 (movdd_softfloat64): Likewise.
2746 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
2747 64-bit binary and decimal floating point moves.
2748 (FMOVE64X): Likewise.
2749 (movdf): Combine 64-bit binary and decimal floating point moves.
2750 Combine power6x (mfpgpr) moves with other moves by using
2751 conditional constraits (wg).
2752 (mov<mode> for DFmode/DDmode): Likewise.
2753 (DFmode/DDmode splitters): Likewise.
2754 (movdf_hardfloat32): Likewise.
2755 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
2756 (movdf_softfloat32): Likewise.
2757 (movdf_hardfloat64_mfpgpr): Likewise.
2758 (movdf_hardfloat64): Likewise.
2759 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
2760 (movdf_softfloat64): Likewise.
2761 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
2762 (reload_<mode>_load): Move to later in the file so they aren't in
2763 the middle of the floating point move insns.
2764 (reload_<mode>_store): Likewise.
2766 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
2769 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
2770 constraint if -mdebug=reg.
2771 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
2772 Enable using dd reload support if needed.
2774 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
2775 binary and decimal floating point moves in rs6000.md.
2776 (movtd_internal): Likewise.
2778 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
2779 decimal floating point moves.
2781 (movtf_internal): Likewise.
2782 (mov<mode>_internal, TDmode/TFmode): Likewise.
2783 (movtf_softfloat): Likewise.
2784 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
2786 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
2787 movdi_internal64, using wg constraint for move direct operations.
2788 (movdi_internal64): Likewise.
2790 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
2791 MODES_TIEABLE_P for selected modes. Print the numerical value of
2792 the various virtual registers. Use GPR/FPR first/last values,
2793 instead of hard coding the register numbers. Print which modes
2794 have reload functions registered.
2795 (rs6000_option_override_internal): If -mdebug=reg, trace the options
2796 settings before/after setting cpu, target and subtarget settings.
2797 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
2798 and for secondary reload failures in rs6000_secondary_reload_inner.
2799 (rs6000_secondary_reload_fail): Likewise.
2800 (rs6000_secondary_reload_inner): Likewise.
2802 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
2803 macros for first/last GPR and FPR registers.
2804 (LAST_GPR_REGNO): Likewise.
2805 (FIRST_FPR_REGNO): Likewise.
2806 (LAST_FPR_REGNO): Likewise.
2808 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
2809 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
2810 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
2811 (vcond<mode><mode>): Likewise.
2812 (vcondu<mode><mode>): Likewise.
2813 (vector_gtu<mode>): Likewise.
2814 (vector_gte<mode>): Likewise.
2815 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
2816 to prevent the compiler from converting DImode operations to TImode.
2817 (ior<mode>3): Likewise.
2818 (and<mode>3): Likewise.
2819 (one_cmpl<mode>2): Likewise.
2820 (nor<mode>3): Likewise.
2821 (andc<mode>3): Likewise.
2823 * config/rs6000/constraints.md (wt constraint): New constraint
2824 that returns VSX_REGS if TImode is allowed in VSX registers.
2826 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
2829 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
2830 similar to TImode, but it is restricted to being in the GPRs.
2832 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
2833 TImode to occupy a single VSX register.
2835 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
2836 -mvsx-timode for power7/power8.
2837 (power7 cpu): Likewise.
2838 (power8 cpu): Likewise.
2840 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
2841 sure that TFmode/TDmode take up two registers if they are ever
2842 allowed in the upper VSX registers.
2843 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
2845 (rs6000_init_hard_regno_mode_ok): Likewise.
2846 (rs6000_debug_reg_global): Add debugging for PTImode and wt
2847 constraint. Print if LRA is turned on.
2848 (rs6000_option_override_internal): Give an error if -mvsx-timode
2849 and VSX is not enabled.
2850 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
2851 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
2852 to reg+offset addressing. Use PTImode when checking offset
2853 addresses for validity.
2854 (reg_offset_addressing_ok_p): Likewise.
2855 (rs6000_legitimate_offset_address_p): Likewise.
2856 (rs6000_legitimize_address): Likewise.
2857 (rs6000_legitimize_reload_address): Likewise.
2858 (rs6000_legitimate_address_p): Likewise.
2859 (rs6000_eliminate_indexed_memrefs): Likewise.
2860 (rs6000_emit_move): Likewise.
2861 (rs6000_secondary_reload): Likewise.
2862 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
2863 reloads to fpr registers to continue to use reg+offset addressing,
2864 but 64-bit reloads to altivec registers need reg+reg addressing.
2865 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
2866 it. Treat LO_SUM like a PLUS operation.
2867 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
2868 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
2869 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
2870 registers to share a register with a smaller sized type, since VSX
2871 puts scalars in the upper 64-bits.
2872 (print_operand): Add support for PTImode.
2873 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
2874 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
2875 registers, but don't have arithmetic support.
2876 (rs6000_memory_move_cost): Add test for VSX.
2877 (rs6000_opt_masks): Add -mvsx-timode.
2879 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
2882 (VSr): Use wt constraint for TImode.
2883 (VSv): Drop TImode support.
2884 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
2885 (vsx_movti_64bit): Likewise.
2886 (vsx_movti_32bit): Likewise.
2887 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
2888 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
2889 one '?' on the appropriate output constraint. Do not allow TImode
2890 logical operations on 32-bit systems.
2891 (vsx_ior<mode>3): Likewise.
2892 (vsx_xor<mode>3): Likewise.
2893 (vsx_one_cmpl<mode>2): Likewise.
2894 (vsx_nor<mode>3): Likewise.
2895 (vsx_andc<mode>3): Likewise.
2896 (vsx_concat_<mode>): Likewise.
2897 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
2899 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
2900 OPTION_MASK_VSX_TIMODE.
2901 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
2902 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
2904 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
2905 (TI2 iterator): New iterator for TImode, PTImode.
2906 (wd mode attribute): Add values for vector types.
2907 (movti_string): Replace TI move operations with operations for TImode
2908 and PTImode. Add support for TImode being allowed in VSX registers.
2909 (mov<mode>_string, TImode/PTImode): Likewise.
2910 (movti_ppc64): Likewise.
2911 (mov<mode>_ppc64, TImode/PTImode): Likewise.
2912 (TI mode splitters): Likewise.
2914 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
2917 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
2919 PR tree-optimization/56355
2920 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
2921 Also handle integers with undefined overflow.
2923 2013-03-20 Catherine Moore <clm@codesourcery.com>
2924 Maciej W. Rozycki <macro@codesourcery.com>
2925 Tom de Vries <tom@codesourcery.com>
2926 Nathan Sidwell <nathan@codesourcery.com>
2927 Iain Sandoe <iain@codesourcery.com>
2928 Nathan Froyd <froydnj@codesourcery.com>
2929 Chao-ying Fu <fu@mips.com>
2931 * doc/extend.texi: (micromips, nomicromips, nocompression):
2932 Document new function attributes.
2933 * doc/invoke.texi (minterlink-compressed, mmicromips,
2934 m14k, m14ke, m14kec): Document new options.
2935 (minterlink-mips16): Update documentation.
2936 * doc/md.texi (ZC, ZD): Document new constraints.
2937 * configure.ac (gcc_cv_as_micromips): Check if linker
2938 supports the .set micromips directive.
2939 * configure: Regenerate.
2940 * config.in: Regenerate.
2941 * config/mips/mips-tables.opt: Regenerate.
2942 * config/mips/micromips.md: New file.
2943 * constraints.md (ZC, ZD): New constraints.
2944 * config/mips/predicates.md (movep_src_register): New predicate.
2945 (movep_src_operand): New predicate.
2946 (non_volatile_mem_operand): New predicate.
2947 * config/mips/mips.md (multimem): New type.
2948 (length): Differentiate between 17-bit and 18-bit branch offsets.
2949 (MOVEP1, MOVEP2): New mode iterator.
2950 (mov_<load>l): Use ZC constraint.
2951 (mov_<load>r): Likewise.
2952 (mov_<store>l): Likewise.
2953 (mov_<store>r): Likewise.
2954 (*branch_equality<mode>_inverted): Add microMIPS support.
2955 (*branch_equality<mode>): Likewise.
2956 (*jump_absolute): Likewise.
2957 (indirect_jump_<mode>): Likewise.
2958 (tablejump_<mode>): Likewise.
2959 (<optab>_internal): Likewise.
2960 (sibcall_internal): Likewise.
2961 (sibcall_value_internal): Likewise.
2962 (prefetch): Use constraint ZD.
2963 * config/mips/mips.opt (minterlink-compressed): New option.
2964 (minterlink-mips16): Now an alias for minterlink-compressed.
2965 (mmicromips): New option.
2966 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
2967 (compare_and_swap_12): Likewise.
2968 (sync_add<mode>): Likewise.
2969 (sync_<optab>_12): Likewise.
2970 (sync_old_<optab>_12): Likewise.
2971 (sync_new_<optab>_12): Likewise.
2972 (sync_nand_12): Likewise.
2973 (sync_old_nand_12): Likewise.
2974 (sync_new_nand_12): Likewise.
2975 (sync_sub<mode>): Likewise.
2976 (sync_old_add<mode>): Likewise.
2977 (sync_old_sub<mode>): Likewise.
2978 (sync_new_add<mode>): Likewise.
2979 (sync_new_sub<mode>): Likewise.
2980 (sync_<optab><mode>): Likewise.
2981 (sync_old_<optab><mode>): Likewise.
2982 (sync_new_<optab><mode>): Likewise.
2983 (sync_nand<mode>): Likewise.
2984 (sync_old_nand<mode>): Likewise.
2985 (sync_new_nand<mode>): Likewise.
2986 (sync_lock_test_and_set<mode>): Likewise.
2987 (test_and_set_12): Likewise.
2988 (atomic_compare_and_swap<mode>): Likewise.
2989 (atomic_exchange<mode>_llsc): Likewise.
2990 (atomic_fetch_add<mode>_llsc): Likewise.
2991 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
2992 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
2993 (umips_save_restore_pattern_p): Likewise.
2994 (umips_load_store_pair_p): Likewise.
2995 (umips_output_load_store_pair): Likewise.
2996 (umips_movep_target_p): Likewise.
2997 (umips_12bit_offset_address_p): Likewise.
2998 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
2999 (mips_base_mips16): Rename this...
3000 (mips_base_compression_flags): ...to this. Update all uses.
3001 (mips_attribute_table): Add micromips, nomicromips and nocompression.
3002 (mips_mips16_decl_p): Delete.
3003 (mips_nomips16_decl_p): Delete.
3004 (mips_get_compress_on_flags): New function.
3005 (mips_get_compress_off_flags): New function.
3006 (mips_get_compress_mode): New function.
3007 (mips_get_compress_on_name): New function.
3008 (mips_get_compress_off_name): New function.
3009 (mips_insert_attributes): Support multiple compression types.
3010 (mips_merge_decl_attributes): Likewise.
3011 (umips_12bit_offset_address_p): New function.
3012 (mips_start_function_definition): Emit .set micromips directive.
3013 (mips_call_may_need_jalx_p): New function.
3014 (mips_function_ok_for_sibcall): Add microMIPS support.
3015 (mips_print_operand_punctuation): Support short delay slots and
3017 (umips_swm_mask, umips_swm_encoding): New.
3018 (umips_build_save_restore): New function.
3019 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
3020 (was_mips16_p): Remove.
3021 (old_compression_mode): New.
3022 (mips_set_compression_mode): New function.
3023 (mips_set_current_function): Add microMIPS support.
3024 (mips_option_override): Likewise.
3025 (umips_save_restore_pattern_p): New function.
3026 (umips_output_save_restore): New function.
3027 (umips_load_store_pair_p_1): New function.
3028 (umips_load_store_pair_p): New function.
3029 (umips_output_load_store_pair_1): New function.
3030 (umips_output_load_store_pair): New function.
3031 (umips_movep_target_p) New function.
3032 (mips_prepare_pch_save): Add microMIPS support.
3033 * config/mips/mips.h (TARGET_COMPRESSION): New.
3034 (TARGET_CPU_CPP_BUILTINS): Update macro
3035 to use new compression flags and to support microMIPS.
3036 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
3037 (MIPS_ARCH_FLOAT_SPEC): Likewise.
3038 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
3039 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
3040 (ASM_SPEC): Support mmicromips and mno-micromips.
3041 (M16STORE_REG_P): New macro.
3042 (MIPS_CALL): Support TARGET_MICROMIPS.
3043 (MICROMIPS_J): New macro.
3044 (mips_base_mips16): Rename this...
3045 (mips_base_compression_flags): ...to this.
3046 (UMIPS_12BIT_OFFSET_P): New macro.
3047 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
3048 (MULTILIB_DIRNAMES): Likewise.
3049 2013-03-20 Richard Biener <rguenther@suse.de>
3051 PR tree-optimization/56661
3052 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
3053 the result does not have to be distinct.
3055 2013-03-20 Richard Biener <rguenther@suse.de>
3057 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
3060 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3061 Steven Bosscher <steven@gcc.gnu.org>
3063 PR rtl-optimization/56605
3064 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
3066 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
3069 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
3070 that require movd instead of movq.
3072 2013-03-20 Richard Biener <rguenther@suse.de>
3074 * tree-ssa-structalias.c (struct variable_info): Add pointer
3075 to the first field of an aggregate with sub-vars. Make
3076 this and the pointer to the next subfield its ID.
3077 (vi_next): New function.
3078 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
3079 storedanything_id, integer_id): Increment by one.
3080 (new_var_info, get_call_vi, lookup_call_clobber_vi,
3081 get_call_clobber_vi): Adjust.
3082 (solution_set_expand): Simplify and speedup.
3083 (solution_set_add): Inline into ...
3084 (set_union_with_increment): ... this. Adjust accordingly.
3085 (do_sd_constraint): Likewise.
3086 (do_ds_constraint): Likewise.
3087 (do_complex_constraint): Simplify.
3088 (build_pred_graph): Adjust.
3089 (solve_graph): Likewise. Simplify and speedup.
3090 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
3091 get_constraint_for_component_ref, get_constraint_for_1,
3092 first_vi_for_offset, first_or_preceding_vi_for_offset,
3093 create_function_info_for, create_variable_info_for_1,
3094 create_variable_info_for, intra_create_variable_infos): Adjust.
3095 (init_base_vars): Push NULL for ID zero.
3096 (compute_points_to_sets): Adjust.
3098 2013-03-20 Richard Biener <rguenther@suse.de>
3100 * cfgloop.c (verify_loop_structure): Streamline and avoid
3101 ICEing on corrupt loop tree.
3102 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
3105 2013-03-20 Richard Biener <rguenther@suse.de>
3107 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
3108 check whether an SSA update is needed.
3110 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
3112 * config/mips/constraints.md (T): Rename to...
3116 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
3117 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
3119 2013-03-19 Ian Bolton <ian.bolton@arm.com>
3121 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
3122 (*subsi3_carryin_uxtw): Likewise.
3124 2013-03-19 Ian Bolton <ian.bolton@arm.com>
3126 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
3127 (*rorsi3_insn_uxtw): Likewise.
3129 2013-03-19 Ian Bolton <ian.bolton@arm.com>
3131 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
3132 (*extrsi5_insn_uxtw): Likewise.
3134 2013-03-19 Richard Biener <rguenther@suse.de>
3136 PR tree-optimization/56273
3137 * passes.c (init_optimization_passes): Move second VRP after DOM.
3139 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
3141 * config/i386/i386.md (*movti_internal): Merge from
3142 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
3143 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
3144 nox64 isa attributes.
3146 2013-03-18 Richard Biener <rguenther@suse.de>
3148 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
3150 (merge_node_constraints): Likewise.
3151 (build_succ_graph): Likewise.
3152 (valid_graph_edge): Inline into single caller.
3153 (unify_nodes): Likewise. Use bitmap_set_bit return value
3155 (scc_visit): Fix formatting and variable use.
3156 (do_sd_constraint): Use gcc_checking_assert.
3157 (do_ds_constraint): Likewise.
3158 (do_complex_constraint): Likewise.
3159 (condense_visit): Likewise. Cleanup.
3160 (dump_pred_graph): New function.
3161 (perform_var_substitution): Dump the pred-graph before
3162 variable substitution.
3163 (find_equivalent_node): Use gcc_checking_assert.
3164 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
3166 2013-03-18 Richard Biener <rguenther@suse.de>
3168 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
3169 Remove cond_expr_stmt_list argument and do not gimplify the
3171 (vect_loop_versioning): Adjust.
3172 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
3173 Cleanup to use less temporaries.
3174 (vect_create_data_ref_ptr): Cleanup.
3176 2013-03-18 Jakub Jelinek <jakub@redhat.com>
3178 PR tree-optimization/56635
3179 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
3180 require types_compatible_p types.
3182 2013-03-18 Nick Clifton <nickc@redhat.com>
3184 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
3187 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
3188 Add missing line to comment describing function.
3190 2013-03-18 Richard Biener <rguenther@suse.de>
3192 PR tree-optimization/56210
3193 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3194 Handle string / character search functions.
3195 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
3197 2013-03-18 Richard Biener <rguenther@suse.de>
3200 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
3201 and implement properly.
3202 * gimple.h (gimple_cond_single_var_p): Remove.
3204 2013-03-18 Richard Biener <rguenther@suse.de>
3206 * tree-data-ref.h (find_data_references_in_loop): Declare.
3207 * tree-data-ref.c (get_references_in_stmt): Use a stack
3208 vector pre-allocated in the callers.
3209 (find_data_references_in_stmt): Adjust.
3210 (graphite_find_data_references_in_stmt): Likewise.
3211 (create_rdg_vertices): Likewise.
3212 (find_data_references_in_loop): Export.
3213 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
3214 Compute dependences here...
3215 (vect_analyze_data_refs): ...not here. When we encounter
3216 a non-vectorizable data reference in basic-block vectorization
3217 truncate the data reference vector. Do not bother to
3218 fixup data-dependence information for gather loads.
3219 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
3220 of data references, as reported.
3222 2013-03-18 Richard Biener <rguenther@suse.de>
3224 PR tree-optimization/3713
3225 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
3226 has_constants and expr.
3227 (stmt_has_constants): Properly valueize SSA names when deciding
3228 whether the stmt has constants.
3230 2013-03-18 Richard Biener <rguenther@suse.de>
3232 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
3233 whole function when there is nothing to do.
3234 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
3235 * tree-vectorizer.c (vectorize_loops): Update virtual and
3236 loop-closed SSA once.
3237 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
3239 2013-03-18 Richard Biener <rguenther@suse.de>
3242 * domwalk.c (bb_postorder): New global static.
3243 (cmp_bb_postorder): New function.
3244 (walk_dominator_tree): Replace scheme imposing an order for
3245 visiting dominator sons by one sorting them at the time they
3246 are pushed on the stack.
3248 2013-03-18 Richard Biener <rguenther@suse.de>
3250 PR tree-optimization/39326
3251 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
3252 (struct mem_ref): Replace mem member with ao_ref typed member.
3253 (MEM_ANALYZABLE): Adjust.
3254 (memref_eq): Likewise.
3255 (mem_ref_alloc): Likewise.
3256 (gather_mem_refs_stmt): Likewise.
3257 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
3258 (execute_sm_if_changed_flag_set): Adjust.
3259 (execute_sm): Likewise.
3260 (ref_always_accessed_p): Likewise.
3261 (refs_independent_p): Likewise.
3262 (can_sm_ref_p): Likewise.
3264 2013-03-18 Jakub Jelinek <jakub@redhat.com>
3267 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
3268 return 1 even for !unsignedp.
3270 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
3272 * config/i386/i386.md (isa): Add x64 and nox64.
3273 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
3274 (*pushtf): Enable *roF alternative for x64 isa only.
3275 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
3276 mode attribute of integer alternatives to DImode for TARGET_64BIT.
3277 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
3278 (*movtf_internal): Merge from *movtf_internal_rex64 and
3279 *movtf_internal_sse. Use x64 and nox64 isa attributes.
3280 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
3281 nox64 isa attributes.
3282 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
3283 nox64 isa attributes.
3284 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
3286 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
3288 * config/alpha/alpha.c (TARGET_LRA_P): New define.
3290 2013-03-17 Jakub Jelinek <jakub@redhat.com>
3293 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
3294 class names. Remove trailing comma after "ALL_REGS".
3296 2013-03-16 Jan Hubicka <jh@suse.cz>
3298 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
3299 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
3300 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
3301 of cgraph_get_create_node.
3302 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
3304 2013-03-16 Jason Merrill <jason@redhat.com>
3307 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
3308 with DW_AT_default_value.
3310 2013-03-16 Jakub Jelinek <jakub@redhat.com>
3312 * BASE-VER: Set to 4.9.0.
3314 2013-03-14 Andi Kleen <ak@linux.intel.com>
3317 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
3318 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
3319 Document _x* TSX intrinsics.
3321 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
3322 David Holsgrove <david.holsgrove@xilinx.com>
3324 * configure.ac: Add MicroBlaze TLS support detection.
3325 * configure: Regenerate.
3326 * config/microblaze/microblaze-protos.h
3327 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
3328 symbol_mentioned_p, label_mentioned_p): Add prototypes.
3329 * config/microblaze/microblaze.c (microblaze_address_type): Add
3330 ADDRESS_TLS and tls_reloc address types.
3331 (microblaze_address_info): Add tls_reloc.
3332 (TARGET_HAVE_TLS): Define.
3333 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
3334 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
3335 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
3336 load_tls_operand, microblaze_call_tls_get_addr,
3337 microblaze_legitimize_tls_address): New functions.
3338 (microblaze_classify_unspec): Handle UNSPEC_TLS.
3339 (get_base_reg): Use microblaze_tls_symbol_p.
3340 (microblaze_classify_address): Handle TLS.
3341 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
3342 label_mentioned_p and microblaze_tls_referenced_p.
3343 (microblaze_legitimize_address): Handle TLS.
3344 (microblaze_address_insns): Handle ADDRESS_TLS.
3345 (pic_address_needs_scratch): Handle TLS.
3346 (print_operand_address): Handle TLS.
3347 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
3348 (microblaze_expand_move): Handle TLS.
3349 (microblaze_legitimate_constant_p): Check
3350 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
3351 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
3352 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
3353 (PIC_OFFSET_TABLE_REGNUM): Set.
3354 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
3355 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
3356 (addsi3, movsi_internal2, movdf_internal): Update constraints
3357 * config/microblaze/predicates.md (arith_plus_operand): Define
3358 (move_operand): Redefine as move_src_operand,
3359 check microblaze_tls_referenced_p.
3361 2013-03-14 Ian Bolton <ian.bolton@arm.com>
3363 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
3364 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
3366 2013-03-14 Ian Bolton <ian.bolton@arm.com>
3368 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
3371 2013-03-14 Jakub Jelinek <jakub@redhat.com>
3373 PR tree-optimization/53265
3374 * common.opt (Waggressive-loop-optimizations): New option.
3375 * tree-ssa-loop-niter.c: Include tree-pass.h.
3376 (do_warn_aggressive_loop_optimizations): New function.
3377 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
3378 if number_of_latch_executions returned constant.
3379 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
3380 early. If number_of_latch_executions returned constant, set
3381 nb_iterations_upper_bound back to it.
3382 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
3384 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
3385 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
3387 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
3388 (MULTILIB_OSDIRNAMES): Set.
3389 * genmultilib: If defaultosdirname doesn't start with :: , set
3390 defaultosdirname2 instead, clear it and emit two . multilib_raw
3391 entries instead of just one.
3393 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
3395 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
3396 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
3397 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
3398 (SUBTARGET_OVERRIDE_OPTIONS): New.
3400 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
3403 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
3404 (musermode): Convert to Var(TARGET_USERMODE).
3405 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
3406 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
3407 * config/sh/sh.c (sh_option_override): Use
3408 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
3409 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
3411 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
3413 (udivsi3_i4_single, divsi3_i4_single): Use
3414 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
3416 2013-03-13 Dave Korn <dave.korn.cygwin@....>
3418 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
3421 2013-03-13 Richard Biener <rguenther@suse.de>
3423 PR tree-optimization/56608
3424 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
3425 calls when vectorizing basic-blocks.
3427 2013-03-13 Jakub Jelinek <jakub@redhat.com>
3430 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
3433 2013-03-12 Jakub Jelinek <jakub@redhat.com>
3435 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
3437 2013-03-11 Jan Hubicka <jh@suse.cz>
3440 * lto-streamer-out.c (output_symbol_p): Skip references from
3441 constructors of external variables.
3443 2013-03-11 Jan Hubicka <jh@suse.cz>
3446 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
3448 * emit-rtl.c (verify_rtx_sharing): Likewise.
3449 (copy_insn_1): Likewise.
3450 * rtl.c (copy_rtx): Likewise.
3452 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
3455 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
3456 output_operand_lossage message.
3458 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
3461 * arm.c (shift_op): Validate RTL pattern on the fly.
3462 (arm_print_operand, case 'S'): Don't use shift_operator to validate
3465 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3468 * config/pa/pa.md (call_value): Check for calls to powf and direct to
3469 new call patterns that clobber %fr12.
3470 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
3471 split and postreload patterns.
3472 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
3473 registers %fr12 and %fr12R as call used.
3475 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
3477 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
3478 (canon_address, record_store, replace_read, check_mem_read_rtx,
3479 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
3480 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
3481 rest_of_handle_dse): Likewise.
3483 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
3486 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
3488 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
3489 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
3490 (save_optabs_if_changed): Replace with...
3491 (init_tree_optimization_optabs): ...this.
3492 * optabs.c (save_optabs_if_changed): Rename to...
3493 (init_tree_optimization_optabs): ...this. Take the optimization node
3494 as argument. Do nothing if the base optabs are already correct.
3495 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
3496 to recompute optabs.
3497 * function.h (function): Remove optabs field.
3498 * function.c (invoke_set_current_function_hook): Call
3499 init_tree_optimization_optabs. Use the result to initialize
3502 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
3504 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
3505 if GTMA_HAS_NO_INSTRUMENTATION.
3506 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
3507 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
3508 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
3509 * gimple-pretty-print.c (dump_gimple_transaction): Handle
3510 GTMA_HAS_NO_INSTRUMENTATION.
3512 2013-03-08 Jakub Jelinek <jakub@redhat.com>
3514 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
3517 2013-03-08 Marek Polacek <polacek@redhat.com>
3518 Jakub Jelinek <jakub@redhat.com>
3520 PR tree-optimization/56478
3521 * predict.c (is_comparison_with_loop_invariant_p): Change the
3522 type of loop_step to tree.
3523 (predict_loops): Adjust.
3524 (predict_iv_comparison): Perform the computations on double_ints.
3526 2013-03-08 Richard Biener <rguenther@suse.de>
3528 PR tree-optimization/56570
3529 * tree-cfg.c (verify_expr_location_1): Verify locations for
3531 * tree-sra.c (create_access_replacement): Strip locations
3532 from DECL_DEBUG_EXPRs.
3534 2013-03-08 Richard Biener <rguenther@suse.de>
3536 * tree-inline.c (expand_call_inline): Do not associate
3537 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
3538 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
3540 2013-03-08 Richard Biener <rguenther@suse.de>
3542 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
3543 or block changes with -Og. Fix for location / block encoding
3544 changes and PHI arguments with locations.
3546 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
3548 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
3550 (struct output_info): Likewise.
3551 (register_overhead): Remove bad gcc_assert.
3552 (bitmap_find_bit): If there is only a single bitmap element, do not
3553 count a miss as a search.
3554 (print_statistics): Update for counter type changes.
3555 (dump_bitmap_statistics): Likewise. Print headers such that they
3556 are properly lined up with the printed counters.
3558 2013-03-07 Jakub Jelinek <jakub@redhat.com>
3560 PR tree-optimization/56559
3561 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
3562 check that it has only a single use.
3564 2013-03-07 Richard Biener <rguenther@suse.de>
3566 * doc/invoke.texi (fwhole-program): Discourage use in combination
3569 2013-03-06 Jakub Jelinek <jakub@redhat.com>
3571 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
3573 PR tree-optimization/56539
3574 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
3575 instead of GSI_CONTINUE_LINKING as last argument to
3576 force_gimple_operand_gsi. Adjust function comment.
3578 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
3582 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
3583 promoted mode, convert the result back to the original mode.
3585 2013-03-06 Richard Biener <rguenther@suse.de>
3588 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
3589 (insert_updated_phi_nodes_compare_uids): New function.
3590 (update_ssa): Sort symbols_to_rename after UID before
3591 traversing it to insert PHI nodes.
3593 2013-03-06 Richard Biener <rguenther@suse.de>
3596 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
3597 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
3600 2013-02-13 Richard Biener <rguenther@suse.de>
3603 * varasm.c (output_constant_def_1): Get the decl representing
3604 the constant as argument.
3605 (output_constant_def): Wrap output_constant_def_1.
3606 (make_decl_rtl): Use output_constant_def_1 with the decl
3607 representing the constant.
3608 (build_constant_desc): Optionally re-use a decl already
3609 representing the constant.
3610 (tree_output_constant_def): Adjust.
3612 2013-03-06 Joey Ye <joey.ye@arm.com>
3615 * gcc.c (convert_white_space): New function.
3616 (main): Handles white space in function name.
3618 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
3621 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
3622 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
3623 to SH_DIV_CALL_TABLE for TARGET_SH2.
3624 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
3626 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
3629 2013-03-05 Sterling Augustine <saugustine@google.com>
3630 Cary Coutant <ccoutant@google.com>
3633 * dwarf2out.c (resolve_addr): Don't call
3634 remove_loc_list_addr_table_entries a second time for the same
3637 2013-03-05 Jakub Jelinek <jakub@redhat.com>
3640 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
3641 (avoid_complex_debug_insns): New function.
3642 (expand_debug_locations): Call it.
3644 PR rtl-optimization/56484
3645 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
3646 lifetimes of hard registers on small register class machines.
3648 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
3650 * config/microblaze/microblaze-protos.h: Rename
3651 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
3652 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
3654 (microblaze_fast_interrupt_function_p): New function.
3655 (microblaze_is_interrupt_handler): Rename to
3656 microblaze_is_interrupt_variant and add fast_interrupt check.
3657 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
3658 (save_restore_insns): Likewise.
3659 (compute_frame_size): Likewise.
3660 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
3661 (microblaze_globalize_label): Likewise.
3662 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
3663 * config/microblaze/microblaze.md: Use wrapper
3664 microblaze_is_interrupt_variant.
3666 2013-03-05 Kai Tietz <ktietz@redhat.com>
3668 * sdbout.c (sdbout_one_type): Switch to current function's section
3669 supporting cold/hot.
3671 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
3673 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
3676 2013-03-05 Jakub Jelinek <jakub@redhat.com>
3679 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
3680 if VALGRIND_GET_VBITS is defined, temporarily make object
3681 memory all defined, and restore previous valgrind addressability
3682 and definability afterwards. Free this_object at the end.
3685 * lra.c (lra): Call lra_clear_live_ranges if live_p,
3686 right before calling lra_create_live_ranges, also call it
3687 when clearing live_p. Only call lra_clear_live_ranges
3688 at the end if live_p.
3691 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
3693 2013-03-05 Richard Biener <rguenther@suse.de>
3695 PR tree-optimization/56521
3696 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
3699 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
3702 * except.h (remove_unreachable_eh_regions): New prototype.
3703 * except.c (remove_eh_handler_splicer): New function, split out
3704 of remove_eh_handler.
3705 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
3706 warning about running it on many EH regions one at a time.
3707 (remove_unreachable_eh_regions_worker): New function, walk the
3708 EH tree in depth-first order and remove non-marked regions.
3709 (remove_unreachable_eh_regions): New function.
3710 * tree-eh.c (mark_reachable_handlers): New function, split out
3711 from remove_unreachable_handlers.
3712 (remove_unreachable_handlers): Use mark_reachable_handlers and
3713 remove_unreachable_eh_regions.
3714 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
3715 and remove_unreachable_eh_regions.
3717 2013-03-05 Richard Biener <rguenther@suse.de>
3720 * loop-init.c (fix_loop_structure): Remove loops in two stages,
3721 not freeing them until the end.
3723 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3725 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
3727 2013-03-05 Richard Biener <rguenther@suse.de>
3729 PR tree-optimization/56270
3730 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
3731 of loads after scheduling an SLP instance.
3733 2013-03-05 Jakub Jelinek <jakub@redhat.com>
3735 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
3737 (check_gcc_parallelize): Run guality.exp as a separate job from
3738 vect.exp with unsorted.exp and $(dg_target_exps) separately from
3739 struct-layout-1.exp with stackalign.exp.
3741 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
3744 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
3745 load_index sbitmap even if some bit in it isn't set.
3748 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
3749 (discover_iteration_bound_by_body_walk): Change queues to
3750 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
3751 spelling in comment. Call safe_push on queues[bound_index] directly.
3752 Release queues[queue_index] in every iteration unconditionally.
3753 Release bounds vector.
3756 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
3757 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
3758 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
3761 2013-03-05 Richard Biener <rguenther@suse.de>
3764 * tree-inline.c (remap_blocks_to_null): New function.
3765 (expand_call_inline): When expanding a call stmt without
3766 an associated block inline remap all callee blocks to NULL.
3768 2013-03-05 Jakub Jelinek <jakub@redhat.com>
3770 PR rtl-optimization/56494
3771 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
3772 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
3773 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
3776 * sel-sched-ir.c (free_sched_pools): Release
3777 succs_info_pool.stack[succs_info_pool.max_top] vectors too
3778 if succs_info_pool.max_top isn't -1.
3781 * opts.c (opts_obstack, opts_concat): Moved to...
3782 * opts-common.c (opts_obstack, opts_concat): ... here.
3784 2013-03-04 Jakub Jelinek <jakub@redhat.com>
3787 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
3789 2013-03-04 Martin Jambor <mjambor@suse.cz>
3791 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
3792 all appropriate places.
3794 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
3796 PR tree-optimization/56424
3797 * ipa-split.c (split_function): Do not set the RSO flag if result is
3798 not by reference and its type is a register type.
3800 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
3802 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
3803 (microblaze_legitimate_pic_operand): Likewise
3804 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
3805 new function microblaze_legitimate_pic_operand
3806 * config/microblaze/microblaze-protos.h
3807 (microblaze_legitimate_pic_operand): Declare.
3809 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3811 * config/microblaze/predicates.md (call_insn_simple_operand):
3812 New predicate for supported rtx code types.
3813 * config/microblaze/microblaze.md (call_internal1): Use
3814 call_insn_simple_operand predicate.
3816 2013-03-04 Jakub Jelinek <jakub@redhat.com>
3819 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
3820 partitions.ordered_remove.
3823 * tree-vect-stmts.c (vectorizable_conversion): Don't call
3824 vec_oprnds0.create (1) for modifier == NONE.
3827 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
3828 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
3829 vec_oprnds1 right before pushing anything to it for
3833 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
3834 set nbbs to 0 instead of having separate code path.
3835 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
3836 instead of false as last argument if returning NULL.
3838 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
3840 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
3841 the attribute is now called "target" instead of "option".
3842 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
3843 * doc/tm.texi.in (Target Attributes): Likewise document the correct
3844 attribute/pragma name for TARGET_OPTION_VALID_P and
3845 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
3846 * doc/tm.texi: Regenerated.
3848 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
3850 * config/microblaze/microblaze.c:
3851 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
3852 * config/microblaze/microblaze.h: Add -mxl-reorder to
3854 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
3855 instructions emitted if TARGET_REORDER.
3856 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
3857 or 0 for -m/-mno case, but initialises as 2 to detect default use case
3860 2013-03-01 Xinliang David Li <davidxl@google.com>
3862 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
3865 2013-03-01 Jakub Jelinek <jakub@redhat.com>
3868 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
3869 vector even when returning true. Fix up function comment formatting.
3872 * ira-build.c (ira_loop_nodes_count): New variable.
3873 (create_loop_tree_nodes): Initialize it.
3874 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
3877 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
3878 method on dr_chain and result_chain.
3879 * tree-vect-stmts.c (vectorizable_store): Only call
3880 result_chain.create if j == 0.
3883 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
3884 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
3885 before overwriting it.
3887 2013-03-01 Tobias Burnus <burnus@net-b.de>
3889 * doc/extended.texi (C Extensions): Change order in @menu
3891 (Other MIPS Built-in Functions): Move last MIPS entry before
3892 "picoChip Built-in Functions".
3893 (SH Built-in Functions): Move after RX Built-in Functions.
3894 * doc/gcc.texi (Introduction): Change order in @menu
3896 * doc/md.texi (Constraints): Ditto.
3897 * gty.texi (Type Information): Ditto.
3898 (User-provided marking routines for template types): Make
3900 * doc/invoke.texi (AArch64 Options): Move before
3901 "Adapteva Epiphany Options".
3903 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
3904 Jakub Jelinek <jakub@redhat.com>
3907 * asan.c (gate_asan): Lookup no_sanitize_address instead of
3908 no_address_safety_analysis attribute.
3909 * doc/extend.texi (no_address_safety_attribute): Rename to
3910 no_sanitize_address attribute, mention no_address_safety_analysis
3911 attribute as deprecated alias.
3913 2013-02-28 Jakub Jelinek <jakub@redhat.com>
3916 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
3917 type to vec<vec<tree> > *.
3918 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
3919 to be vec<tree> instead of vec<tree> *, set vec_defs
3920 to vNULL and call vec_defs.create (number_of_vects), adjust other
3922 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
3923 vectorizable_condition): Adjust vect_get_slp_defs callers.
3925 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
3927 * config/aarch64/aarch64.c
3928 (aarch64_float_const_representable): Remove unused variable.
3930 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
3932 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
3934 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
3936 * config/aarch64/aarch64-builtins.c
3937 (aarch64_init_simd_builtins): Make static.
3939 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
3941 * config/aarch64/aarch64.c
3942 (aarch64_simd_make_constant): Make static.
3944 2013-02-28 Martin Jambor <mjambor@suse.cz>
3946 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
3947 with no initialization to the RHS of debug statements.
3949 2013-02-28 Martin Jambor <mjambor@suse.cz>
3951 PR tree-optimization/56294
3952 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
3954 (get_access_replacement): Do not call create_access_replacement.
3955 Assert a replacement exists.
3956 (get_repl_default_def_ssa_name): Create the replacement declaration
3959 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3961 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
3964 2013-02-28 Marek Polacek <polacek@redhat.com>
3966 PR rtl-optimization/56466
3967 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
3968 if we're changing a loop.
3969 (peel_loops_completely): Likewise.
3971 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
3974 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
3976 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
3979 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
3980 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
3981 INTX_FTYPE_FX, FX_FTYPE_INTX.
3982 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
3984 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
3986 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
3987 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
3988 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
3989 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
3990 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
3991 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
3992 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
3993 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
3994 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
3995 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
3996 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
3997 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
3998 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
3999 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
4000 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
4001 (avrxmega6): Increase max flash segments from 5 to 6.
4002 * config/avr/t-multilib: Regenerate.
4003 * config/avr/avr-tables.opt: Regenerate.
4004 * doc/avr-mmcu.texi: Regenerate.
4006 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
4008 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
4009 (avr_device_to_arch): Rename to avr_device_to_ld.
4010 (avr_device_to_as): New prototype.
4011 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
4012 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
4013 * config/avr/driver-avr.c (avr_device_to_as): New.
4014 (avr_device_to_arch): Rename to avr_device_to_ld.
4016 2013-02-27 Jakub Jelinek <jakub@redhat.com>
4019 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
4020 method on dr_chain and result_chain.
4023 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
4024 pointer_set_destroy on not_executed_last_iteration.
4027 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
4030 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
4031 FOR_EACH_DEFINED_FUNCTION when freeing state.
4034 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
4036 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
4040 * ipa-cp.c (decide_whether_version_node): Call vec_free on
4041 known_aggs[i].items and release known_aggs vector.
4044 * ipa-reference.c (propagate): Free node_info even for alias nodes.
4046 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4048 * config/microblaze/microblaze.c (microblaze_emit_compare):
4049 Use xor for EQ/NE comparisions.
4050 * config/microblaze/microblaze.md (cstoresf4): Add constraints
4051 (cbranchsf4): Adjust operator to comparison_operator.
4053 2013-02-27 Jakub Jelinek <jakub@redhat.com>
4056 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
4058 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
4059 vec_safe_push, always update *slot.
4060 (redirect_edge_var_map_clear): Use vec_free.
4061 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
4062 (free_var_map_entry): Use vec_free.
4063 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
4064 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
4066 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
4069 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
4070 when the may_trap_p bit of the exprs being merged differs.
4071 Reorder tests for speculativeness in the logical and operator.
4073 2013-02-27 Jakub Jelinek <jakub@redhat.com>
4075 * incpath.c (add_standard_paths): Use reconcat instead of concat
4076 where appropriate and avoid leaking memory.
4078 * opts.h: Include obstack.h.
4079 (opts_concat): New prototype.
4080 (opts_obstack): New declaration.
4081 * opts.c (opts_concat): New function.
4082 (opts_obstack): New variable.
4083 (init_options_struct): Call gcc_init_obstack on opts_obstack.
4084 (finish_options): Use opts_concat instead of concat
4085 and XOBNEWVEC instead of XNEWVEC.
4086 * opts-common.c (generate_canonical_option, decode_cmdline_option,
4087 generate_option): Likewise.
4088 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
4089 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
4092 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
4093 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
4095 2013-02-26 Jakub Jelinek <jakub@redhat.com>
4098 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
4100 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
4102 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
4103 (arm_block_move_unaligned_straight): Likewise.
4104 (arm_adjust_block_mem): Likewise.
4106 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
4109 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
4110 temp, cond and label.
4111 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
4114 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
4115 * config/c6x/c6x.h (dbx_register_map): Update declaration.
4118 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
4119 of prologue/epilogue functions.
4122 * config/tilegx/tilegx.c (tilegx_expand_prologue):
4123 Remove unused variable cfa_offset.
4124 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
4127 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
4128 type promotion to unsigned.
4131 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
4132 for HOST_WIDE_INT of 32 bit / same size as int.
4133 (arm_block_move_unaligned_straight): Likewise.
4134 (arm_adjust_block_mem): Likewise.
4137 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
4140 2013-02-26 Marek Polacek <polacek@redhat.com>
4142 PR tree-optimization/56426
4143 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
4145 2013-02-26 Richard Biener <rguenther@suse.de>
4148 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
4149 unused variable loops.
4151 2013-02-26 Jakub Jelinek <jakub@redhat.com>
4153 PR tree-optimization/56448
4154 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
4155 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
4156 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
4157 later operands of the references, or even first operand for
4158 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
4160 PR tree-optimization/56443
4161 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
4162 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
4163 to type_for_mode langhook.
4165 2013-02-25 Matt Turner <mattst88@gmail.com>
4167 * doc/invoke.texi: Document r4700.
4169 2013-02-25 Richard Biener <rguenther@suse.de>
4171 PR tree-optimization/56175
4172 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
4174 (simplify_bitwise_binary): ... here. Also guard the conversion
4175 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
4177 2013-02-25 Catherine Moore <clm@codesourcery.com>
4180 2013-02-24 Catherine Moore <clm@codesourcery.com>
4181 Maciej W. Rozycki <macro@codesourcery.com>
4182 Tom de Vries <tom@codesourcery.com>
4183 Nathan Sidwell <nathan@codesourcery.com>
4184 Iain Sandoe <iain@codesourcery.com>
4185 Nathan Froyd <froydnj@codesourcery.com>
4186 Chao-ying Fu <fu@mips.com>
4188 * doc/extend.texi: (micromips, nomicromips, nocompression):
4189 Document new function attributes.
4190 * doc/invoke.texi (minterlink-compressed, mmicromips,
4191 m14k, m14ke, m14kec): Document new options.
4192 (minterlink-mips16): Update documentation.
4193 * doc/md.texi (ZC, ZD): Document new constraints.
4194 * configure.ac (gcc_cv_as_micromips): Check if linker
4195 supports the .set micromips directive.
4196 * configure: Regenerate.
4197 * config.in: Regenerate.
4198 * config/mips/mips-tables.opt: Regenerate.
4199 * config/mips/micromips.md: New file.
4200 * constraints.md (ZC, AD): New constraints.
4201 * config/mips/predicates.md (movep_src_register): New predicate.
4202 (movep_src_operand): New predicate.
4203 (non_volatile_mem_operand): New predicate.
4204 * config/mips/mips.md (multimem): New type.
4205 (length): Differentiate between 17-bit and 18-bit branch offsets.
4206 (MOVEP1, MOVEP2): New mode iterator.
4207 (mov_<load>l): Use ZC constraint.
4208 (mov_<load>r): Likewise.
4209 (mov_<store>l): Likewise.
4210 (mov_<store>r): Likewise.
4211 (*branch_equality<mode>_inverted): Add microMIPS support.
4212 (*branch_equality<mode>): Likewise.
4213 (*jump_absolute): Likewise.
4214 (indirect_jump_<mode>): Likewise.
4215 (tablejump_<mode>): Likewise.
4216 (<optab>_internal): Likewise.
4217 (sibcall_internal): Likewise.
4218 (sibcall_value_internal): Likewise.
4219 (prefetch): Use constraint ZD.
4220 * config/mips/mips.opt (minterlink-compressed): New option.
4221 (minterlink-mips16): Now an alias for minterlink-compressed.
4222 (mmicromips): New option.
4223 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
4224 (compare_and_swap_12): Likewise.
4225 (sync_add<mode>): Likewise.
4226 (sync_<optab>_12): Likewise.
4227 (sync_old_<optab>_12): Likewise.
4228 (sync_new_<optab>_12): Likewise.
4229 (sync_nand_12): Likewise.
4230 (sync_old_nand_12): Likewise.
4231 (sync_new_nand_12): Likewise.
4232 (sync_sub<mode>): Likewise.
4233 (sync_old_add<mode>): Likewise.
4234 (sync_old_sub<mode>): Likewise.
4235 (sync_new_add<mode>): Likewise.
4236 (sync_new_sub<mode>): Likewise.
4237 (sync_<optab><mode>): Likewise.
4238 (sync_old_<optab><mode>): Likewise.
4239 (sync_new_<optab><mode>): Likewise.
4240 (sync_nand<mode>): Likewise.
4241 (sync_old_nand<mode>): Likewise.
4242 (sync_new_nand<mode>): Likewise.
4243 (sync_lock_test_and_set<mode>): Likewise.
4244 (test_and_set_12): Likewise.
4245 (atomic_compare_and_swap<mode>): Likewise.
4246 (atomic_exchange<mode>_llsc): Likewise.
4247 (atomic_fetch_add<mode>_llsc): Likewise.
4248 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
4249 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
4250 (umips_save_restore_pattern_p): Likewise.
4251 (umips_load_store_pair_p): Likewise.
4252 (umips_output_load_store_pair): Likewise.
4253 (umips_movep_target_p): Likewise.
4254 (umips_12bit_offset_address_p): Likewise.
4255 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
4256 (mips_base_mips16): Rename this...
4257 (mips_base_compression_flags): ...to this. Update all uses.
4258 (mips_attribute_table): Add micromips, nomicromips and nocompression.
4259 (mips_mips16_decl_p): Delete.
4260 (mips_nomips16_decl_p): Delete.
4261 (mips_get_compress_on_flags): New function.
4262 (mips_get_compress_off_flags): New function.
4263 (mips_get_compress_mode): New function.
4264 (mips_get_compress_on_name): New function.
4265 (mips_get_compress_off_name): New function.
4266 (mips_insert_attributes): Support multiple compression types.
4267 (mips_merge_decl_attributes): Likewise.
4268 (umips_12bit_offset_address_p): New function.
4269 (mips_start_function_definition): Emit .set micromips directive.
4270 (mips_call_may_need_jalx_p): New function.
4271 (mips_function_ok_for_sibcall): Add microMIPS support.
4272 (mips_print_operand_punctuation): Support short delay slots and
4274 (umips_swm_mask, umips_swm_encoding): New.
4275 (umips_build_save_restore): New function.
4276 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
4277 (was_mips16_p): Remove.
4278 (old_compression_mode): New.
4279 (mips_set_compression_mode): New function.
4280 (mips_set_current_function): Add microMIPS support.
4281 (mips_option_override): Likewise.
4282 (umips_save_restore_pattern_p): New function.
4283 (umips_output_save_restore): New function.
4284 (umips_load_store_pair_p_1): New function.
4285 (umips_load_store_pair_p): New function.
4286 (umips_output_load_store_pair_1): New function.
4287 (umips_output_load_store_pair): New function.
4288 (umips_movep_target_p) New function.
4289 (mips_prepare_pch_save): Add microMIPS support.
4290 * config/mips/mips.h (TARGET_COMPRESSION): New.
4291 (TARGET_CPU_CPP_BUILTINS): Update macro
4292 to use new compression flags and to support microMIPS.
4293 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
4294 (MIPS_ARCH_FLOAT_SPEC): Likewise.
4295 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
4296 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
4297 (ASM_SPEC): Support mmicromips and mno-micromips.
4298 (M16STORE_REG_P): New macro.
4299 (MIPS_CALL): Support TARGET_MICROMIPS.
4300 (MICROMIPS_J): New macro.
4301 (mips_base_mips16): Rename this...
4302 (mips_base_compression_flags): ...to this.
4303 (UMIPS_12BIT_OFFSET_P): New macro.
4304 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
4305 (MULTILIB_DIRNAMES): Likewise.
4307 2013-02-25 Tom de Vries <tom@codesourcery.com>
4309 PR rtl-optimization/56131
4310 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
4311 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
4312 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
4314 2013-02-25 Tobias Burnus <burnus@net-b.de>
4316 * doc/invoke.texi (-fsanitize=): Move from optimization
4317 to debugging options.
4319 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
4321 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
4323 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
4324 Alexander Monakov <amonakov@ispras.ru>
4327 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
4328 flush pending lists also on non-jumps. Adjust comment.
4330 2013-02-24 Catherine Moore <clm@codesourcery.com>
4331 Maciej W. Rozycki <macro@codesourcery.com>
4332 Tom de Vries <tom@codesourcery.com>
4333 Nathan Sidwell <nathan@codesourcery.com>
4334 Iain Sandoe <iain@codesourcery.com>
4335 Nathan Froyd <froydnj@codesourcery.com>
4336 Chao-ying Fu <fu@mips.com>
4338 * doc/extend.texi: (micromips, nomicromips, nocompression):
4339 Document new function attributes.
4340 * doc/invoke.texi (minterlink-compressed, mmicromips,
4341 m14k, m14ke, m14kec): Document new options.
4342 (minterlink-mips16): Update documentation.
4343 * doc/md.texi (ZC, ZD): Document new constraints.
4344 * configure.ac (gcc_cv_as_micromips): Check if linker
4345 supports the .set micromips directive.
4346 * configure: Regenerate.
4347 * config.in: Regenerate.
4348 * config/mips/mips-tables.opt: Regenerate.
4349 * config/mips/micromips.md: New file.
4350 * constraints.md (ZC, AD): New constraints.
4351 * config/mips/predicates.md (movep_src_register): New predicate.
4352 (movep_src_operand): New predicate.
4353 (non_volatile_mem_operand): New predicate.
4354 * config/mips/mips.md (multimem): New type.
4355 (length): Differentiate between 17-bit and 18-bit branch offsets.
4356 (MOVEP1, MOVEP2): New mode iterator.
4357 (mov_<load>l): Use ZC constraint.
4358 (mov_<load>r): Likewise.
4359 (mov_<store>l): Likewise.
4360 (mov_<store>r): Likewise.
4361 (*branch_equality<mode>_inverted): Add microMIPS support.
4362 (*branch_equality<mode>): Likewise.
4363 (*jump_absolute): Likewise.
4364 (indirect_jump_<mode>): Likewise.
4365 (tablejump_<mode>): Likewise.
4366 (<optab>_internal): Likewise.
4367 (sibcall_internal): Likewise.
4368 (sibcall_value_internal): Likewise.
4369 (prefetch): Use constraint ZD.
4370 * config/mips/mips.opt (minterlink-compressed): New option.
4371 (minterlink-mips16): Now an alias for minterlink-compressed.
4372 (mmicromips): New option.
4373 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
4374 (compare_and_swap_12): Likewise.
4375 (sync_add<mode>): Likewise.
4376 (sync_<optab>_12): Likewise.
4377 (sync_old_<optab>_12): Likewise.
4378 (sync_new_<optab>_12): Likewise.
4379 (sync_nand_12): Likewise.
4380 (sync_old_nand_12): Likewise.
4381 (sync_new_nand_12): Likewise.
4382 (sync_sub<mode>): Likewise.
4383 (sync_old_add<mode>): Likewise.
4384 (sync_old_sub<mode>): Likewise.
4385 (sync_new_add<mode>): Likewise.
4386 (sync_new_sub<mode>): Likewise.
4387 (sync_<optab><mode>): Likewise.
4388 (sync_old_<optab><mode>): Likewise.
4389 (sync_new_<optab><mode>): Likewise.
4390 (sync_nand<mode>): Likewise.
4391 (sync_old_nand<mode>): Likewise.
4392 (sync_new_nand<mode>): Likewise.
4393 (sync_lock_test_and_set<mode>): Likewise.
4394 (test_and_set_12): Likewise.
4395 (atomic_compare_and_swap<mode>): Likewise.
4396 (atomic_exchange<mode>_llsc): Likewise.
4397 (atomic_fetch_add<mode>_llsc): Likewise.
4398 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
4399 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
4400 (umips_save_restore_pattern_p): Likewise.
4401 (umips_load_store_pair_p): Likewise.
4402 (umips_output_load_store_pair): Likewise.
4403 (umips_movep_target_p): Likewise.
4404 (umips_12bit_offset_address_p): Likewise.
4405 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
4406 (mips_base_mips16): Rename this...
4407 (mips_base_compression_flags): ...to this. Update all uses.
4408 (mips_attribute_table): Add micromips, nomicromips and nocompression.
4409 (mips_mips16_decl_p): Delete.
4410 (mips_nomips16_decl_p): Delete.
4411 (mips_get_compress_on_flags): New function.
4412 (mips_get_compress_off_flags): New function.
4413 (mips_get_compress_mode): New function.
4414 (mips_get_compress_on_name): New function.
4415 (mips_get_compress_off_name): New function.
4416 (mips_insert_attributes): Support multiple compression types.
4417 (mips_merge_decl_attributes): Likewise.
4418 (umips_12bit_offset_address_p): New function.
4419 (mips_start_function_definition): Emit .set micromips directive.
4420 (mips_call_may_need_jalx_p): New function.
4421 (mips_function_ok_for_sibcall): Add microMIPS support.
4422 (mips_print_operand_punctuation): Support short delay slots and
4424 (umips_swm_mask, umips_swm_encoding): New.
4425 (umips_build_save_restore): New function.
4426 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
4427 (was_mips16_p): Remove.
4428 (old_compression_mode): New.
4429 (mips_set_compression_mode): New function.
4430 (mips_set_current_function): Add microMIPS support.
4431 (mips_option_override): Likewise.
4432 (umips_save_restore_pattern_p): New function.
4433 (umips_output_save_restore): New function.
4434 (umips_load_store_pair_p_1): New function.
4435 (umips_load_store_pair_p): New function.
4436 (umips_output_load_store_pair_1): New function.
4437 (umips_output_load_store_pair): New function.
4438 (umips_movep_target_p) New function.
4439 (mips_prepare_pch_save): Add microMIPS support.
4440 * config/mips/mips.h (TARGET_COMPRESSION): New.
4441 (TARGET_CPU_CPP_BUILTINS): Update macro
4442 to use new compression flags and to support microMIPS.
4443 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
4444 (MIPS_ARCH_FLOAT_SPEC): Likewise.
4445 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
4446 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
4447 (ASM_SPEC): Support mmicromips and mno-micromips.
4448 (M16STORE_REG_P): New macro.
4449 (MIPS_CALL): Support TARGET_MICROMIPS.
4450 (MICROMIPS_J): New macro.
4451 (mips_base_mips16): Rename this...
4452 (mips_base_compression_flags): ...to this.
4453 (UMIPS_12BIT_OFFSET_P): New macro.
4454 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
4455 (MULTILIB_DIRNAMES): Likewise.
4457 2013-02-24 Jakub Jelinek <jakub@redhat.com>
4460 * target-globals.c (save_target_globals): For init_reg_sets and
4461 target_reinit remporarily set this_fn_optabs to this_target_optabs.
4463 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
4465 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
4466 * config/aarch64/t-aarch64
4467 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
4469 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
4472 * lra-constraints.c (process_alt_operands): Reload operand
4473 conflicting with earlier clobber only if no more other conflicting
4476 2013-02-22 Jakub Jelinek <jakub@redhat.com>
4479 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
4480 if not linking a shared library.
4482 2013-02-22 Seth LaForge <sethml@google.com>
4484 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
4486 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
4488 * config/arm/arm.md (split for extendsidi): Update condition.
4489 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
4490 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
4491 (qhs_zextenddi_cstr): Likewise.
4493 2013-02-21 Jakub Jelinek <jakub@redhat.com>
4496 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
4497 avoid signed wrapping.
4498 (expand_mult): Handle properly multiplication by
4499 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
4500 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
4501 in the compiler if coeff is HOST_WIDE_INT_MIN.
4502 (expand_divmod): Don't make ext_op1 static, change it's type to
4503 uhwi. Avoid undefined behavior in -INTVAL (op1).
4505 PR rtl-optimization/50339
4506 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
4508 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
4509 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
4510 into splitting_ashiftrt field.
4511 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
4513 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
4516 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
4519 * trans-mem.c (execute_tm_mark): Do not expand transactions that
4520 are sure to go irrevocable.
4522 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
4524 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
4525 scalars are valid operands.
4527 2013-02-21 Martin Jambor <mjambor@suse.cz>
4529 PR tree-optimization/56310
4530 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
4531 only matching indices and non-negative final offsets.
4532 (intersect_aggregates_with_edge): Pass src_idx to
4533 agg_replacements_to_vector. Pass src_idx insstead of index to
4534 intersect_with_agg_replacements.
4536 2013-02-21 Martin Jambor <mjambor@suse.cz>
4538 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
4539 instead of hard-wired defaults.
4541 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
4543 * doc/invoke.texi (MIPS Options): Update documentation of the
4544 floating-point multiply-accumulate instruction restrictions.
4546 2013-02-21 Kostya Serebryany <kcc@google.com>
4548 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
4549 asan_shadow_offset on x86_64 linux.
4551 2013-02-21 Richard Biener <rguenther@suse.de>
4553 PR tree-optimization/56415
4555 2013-02-11 Richard Biener <rguenther@suse.de>
4557 PR tree-optimization/56273
4558 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
4561 2013-02-21 Jakub Jelinek <jakub@redhat.com>
4564 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
4568 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
4569 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
4571 2013-02-20 Jan Hubicka <jh@suse.cz>
4573 PR tree-optimization/56265
4574 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
4575 when target is referenced for first time.
4577 2013-02-20 Richard Biener <rguenther@suse.de>
4579 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
4580 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
4581 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
4582 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
4583 not return anything.
4584 (rename_ssa_copies): Do not remove unused locals.
4585 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
4586 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
4587 * passes.c (execute_function_todo): Do not schedule unused locals
4588 removal if cleanup_tree_cfg did something.
4589 * tree-ssa-live.c (remove_unused_locals): Dump statistics
4590 about the number of removed locals.
4592 2013-02-20 Richard Biener <rguenther@suse.de>
4594 PR tree-optimization/56398
4595 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
4597 2013-02-20 Martin Jambor <mjambor@suse.cz>
4599 PR tree-optimization/55334
4600 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
4601 restricted pointers to arrays.
4603 2013-02-20 Richard Biener <rguenther@suse.de>
4604 Jakub Jelinek <jakub@redhat.com>
4606 PR tree-optimization/56396
4607 * tree-ssa-ccp.c (n_const_val): New static variable.
4608 (get_value): Return NULL for SSA names we don't have a lattice
4610 (ccp_initialize): Initialize n_const_val.
4611 * tree-ssa-copy.c (n_copy_of): New static variable.
4612 (init_copy_prop): Initialize n_copy_of.
4613 (get_value): Return NULL_TREE for SSA names we don't have a
4616 2013-02-20 Martin Jambor <mjambor@suse.cz>
4618 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
4620 2013-02-20 Richard Biener <rguenther@suse.de>
4622 * genpreds.c (write_lookup_constraint): Do not compare first
4623 letter of the constraint again.
4625 2013-02-20 Richard Biener <rguenther@suse.de>
4627 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
4629 (get_use_iv_cost): Terminate hashtable walk when coming across
4632 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
4634 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
4635 reassociation for avx2 targets.
4637 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4639 * config/microblaze/microblaze.c: microblaze_has_clz = 0
4640 Add version check for v8.10.a to enable microblaze_has_clz
4641 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
4642 version and TARGET_PATTERN_COMPARE check
4643 * config/microblaze/microblaze.md: New clzsi2 instruction
4645 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4647 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
4648 function before branching.
4650 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
4652 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
4654 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
4656 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
4659 * sel-sched.c: Include ira.h.
4660 (implicit_clobber_conflict_p): New function.
4661 (moveup_expr): Use it.
4662 * Makefile.in (sel-sched.o): Depend on ira.h.
4664 2013-02-19 Richard Biener <rguenther@suse.de>
4666 PR tree-optimization/56384
4667 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
4668 (vn_hash_type): Split out from ...
4669 (vn_hash_constant_with_type): ... here.
4670 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
4671 (vn_phi_eq): Compare types from vn_phi_s structure.
4672 (vn_phi_lookup): Populate vn_phi_s type.
4673 (vn_phi_insert): Likewise.
4675 2013-02-19 Jakub Jelinek <jakub@redhat.com>
4677 PR tree-optimization/56350
4678 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
4679 if haven't found reduction or nested cycle operand, rather than
4680 asserting we must find it.
4682 PR tree-optimization/56381
4683 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
4686 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
4687 Jakub Jelinek <jakub@redhat.com>
4690 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
4691 (swap_optab_enable): Same.
4692 (init_all_optabs): Use argument instead of global.
4693 * tree.h (struct tree_optimization_option): New field target_optabs.
4694 * expr.h (init_all_optabs): Add argument to prototype.
4695 (TREE_OPTIMIZATION_OPTABS): New.
4696 (save_optabs_if_changed): Protoize.
4697 * optabs.h: Declare this_fn_optabs.
4698 * optabs.c (save_optabs_if_changed): New.
4699 Declare this_fn_optabs.
4700 (init_optabs): Add argument to init_all_optabs() call.
4701 * function.c (invoke_set_current_function_hook): Handle per
4703 * function.h (struct function): New field optabs.
4704 * config/mips/mips.c (mips_set_mips16_mode): Handle when
4705 optimization_current_node has changed.
4706 * target-globals.h (save_target_globals_default_opts): Protoize.
4707 * target-globals.c (save_target_globals_default_opts): New.
4709 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4712 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
4713 registers %fr12 and %fr12R as call used.
4716 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
4717 and HImode, require all displacements to be an integer multiple of
4719 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
4720 only allow QImode and HImode when reload is in progress and strict is
4721 true. Likewise for symbolic addresses. Use base14_operand to check
4722 displacements in REG+BASE addresses.
4724 2013-02-18 Richard Biener <rguenther@suse.de>
4726 PR tree-optimization/56366
4727 * tree-vect-loop.c (get_initial_def_for_induction): Properly
4728 handle sign-conversion of outer-loop initial induction value.
4730 2013-02-18 Richard Biener <rguenther@suse.de>
4733 * cfghooks.c (merge_blocks): If we merge a latch into another
4734 block adjust references to it.
4735 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
4736 (verify_loop_structure): Verify that a recorded latch is in fact
4739 2013-02-18 Richard Biener <rguenther@suse.de>
4741 PR tree-optimization/56321
4742 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
4743 order SSA name release and virtual operand unlinking.
4745 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4747 * config/microblaze/microblaze.md (save_stack_block): Define.
4748 (restore_stack_block): Likewise.
4750 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4752 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
4753 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
4754 * config/microblaze/microblaze.c (microblaze_option_override):
4755 Bail out early for PIC modes when target does not support PIC.
4757 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4759 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
4760 Replace with a microblaze version.
4761 (microblaze_trampoline_init): Adapt for microblaze.
4762 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
4765 2013-02-16 Jakub Jelinek <jakub@redhat.com>
4766 Dodji Seketeli <dodji@redhat.com>
4769 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
4770 (instrument_mem_region_access): Do not forget to always put
4771 instrumentation of the of 'base' and 'base + len' in a "if (len !=
4772 0) statement, even for cases where either 'base' or 'base + len'
4773 are not instrumented -- because they have been previously
4774 instrumented. Simplify the logic by putting all the statements
4775 instrument 'base + len' inside a sequence, and then insert that
4776 sequence right before the current insertion point. Then, to
4777 instrument 'base + len', just get an iterator on that statement.
4778 And do not forget to update the pointer to iterator the function
4779 received as argument.
4781 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
4783 PR rtl-optimization/56348
4784 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
4786 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
4788 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
4789 (clean_graph_dump_file): Pass base to start_graph_dump.
4791 2013-02-14 Richard Henderson <rth@redhat.com>
4794 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
4796 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
4798 * collect2-aix.h: Define F_LOADONLY.
4800 2013-02-14 Richard Biener <rguenther@suse.de>
4803 * varasm.c (output_constant_def_1): Get the decl representing
4804 the constant as argument.
4805 (output_constant_def): Wrap output_constant_def_1.
4806 (make_decl_rtl): Use output_constant_def_1 with the decl
4807 representing the constant.
4808 (build_constant_desc): Optionally re-use a decl already
4809 representing the constant.
4810 (tree_output_constant_def): Adjust.
4812 2013-02-14 Dodji Seketeli <dodji@redhat.com>
4815 * asan.c (instrument_builtin_call): Really put the length of the
4816 second source argument into src1_len.
4818 2013-02-13 Jakub Jelinek <jakub@redhat.com>
4820 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
4821 argument. If it is false, don't create edge from then_bb to
4823 (insert_if_then_before_iter): Pass true to it.
4824 (build_check_stmt): Pass false to it.
4825 (transform_statements): Flush hash table only on extended basic
4826 block boundaries, rather than at the beginning of every bb.
4827 Don't flush hash table on nonfreeing_call_p calls.
4828 * tree-flow.h (nonfreeing_call_p): New prototype.
4829 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
4831 2013-02-13 David S. Miller <davem@davemloft.net>
4833 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
4835 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
4838 * ira.c (max_regno_before_ira): Move from ...
4840 (fix_reg_equiv_init): Use max_regno_before_ira instead of
4843 2013-02-13 Jakub Jelinek <jakub@redhat.com>
4845 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
4847 2013-02-13 Richard Biener <rguenther@suse.de>
4850 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
4851 globals in MEM_REFs.
4853 2013-02-13 Richard Biener <rguenther@suse.de>
4855 * loop-init.c (loop_optimizer_init): Clear loop state when
4856 re-initializing preserved loops.
4857 * loop-unswitch.c (unswitch_single_loop): Return whether
4858 we unswitched the loop. Do not verify loop state here.
4859 (unswitch_loops): When we unswitched a loop discover new loops.
4861 2013-02-13 Kostya Serebryany <kcc@google.com>
4863 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
4865 * sanitizer.def: Rename __asan_init to __asan_init_v1.
4867 2013-02-12 Dodji Seketeli <dodji@redhat.com>
4869 Avoid instrumenting duplicated memory access in the same basic block
4870 * Makefile.in (asan.o): Add new dependency on hash-table.h
4871 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
4872 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
4873 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
4874 (free_mem_ref_resources, has_mem_ref_been_instrumented)
4875 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
4876 (get_mem_ref_of_assignment): New functions.
4877 (get_mem_refs_of_builtin_call): Extract from
4878 instrument_builtin_call and tweak a little bit to make it fit with
4880 (instrument_builtin_call): Use the new
4881 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
4882 of is_gimple_builtin_call.
4883 (instrument_derefs, instrument_mem_region_access): Insert the
4884 instrumented memory reference into the hash table.
4885 (maybe_instrument_assignment): Renamed instrument_assignment into
4886 this, and change it to advance the iterator when instrumentation
4887 actually happened and return true in that case. This makes it
4888 homogeneous with maybe_instrument_assignment, and thus give a
4889 chance to callers to be more 'regular'.
4890 (transform_statements): Clear the memory reference hash table
4891 whenever we enter a new BB, when we cross a function call, or when
4892 we are done transforming statements. Use
4893 maybe_instrument_assignment instead of instrumentation. No more
4894 need to special case maybe_instrument_assignment and advance the
4895 iterator after calling it; it's now handled just like
4896 maybe_instrument_call. Update comment.
4898 2013-02-13 Richard Biener <rguenther@suse.de>
4900 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
4901 Fix loop discovery code.
4903 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
4906 * lra-constraints.c (process_alt_operands): Match early clobber
4907 operand with itself. Check conflicts with earlyclobber only if
4908 the operand is not reloaded. Prefer to reload conflicting operand
4909 if earlyclobber and matching operands are the same.
4911 2013-02-12 Richard Biener <rguenther@suse.de>
4914 * lto-streamer-out.c (write_symbol): Do not output symbols
4915 for hard register variables.
4917 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
4920 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
4921 (umulsidi3_insn, mulsidi3_insn): New insns.
4923 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
4925 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
4926 (struct tune_params): Add vec_costs field.
4927 * config/arm/arm.c (arm_builtin_vectorization_cost)
4928 (arm_add_stmt_cost): New functions.
4929 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
4930 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
4931 (arm_default_vec_cost): New struct of type cpu_vec_costs.
4932 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
4933 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
4934 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
4935 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
4937 2013-02-12 Richard Biener <rguenther@suse.de>
4940 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
4941 decls again if possible.
4943 2013-02-12 Richard Biener <rguenther@suse.de>
4946 * tree-ssa.c (verify_ssa_name): Fix check, move
4947 SSA_NAME_IN_FREE_LIST check up.
4949 2013-02-12 Jakub Jelinek <jakub@redhat.com>
4950 Steven Bosscher <steven@gcc.gnu.org>
4952 PR rtl-optimization/56151
4953 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
4954 equal to op0 or op1, and last_insn pattern is CODE operation
4955 with MEM dest and one of the operands matches that MEM.
4957 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
4959 * doc/extend.texi: Document Function Multiversioning and "default"
4960 parameter string to target attribute.
4961 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
4962 target attribute parameter is "default".
4963 (ix86_compare_version_priority): Remove checks for target attribute.
4964 (ix86_mangle_function_version_assembler_name): Change error to sorry.
4965 Remove check for target attribute equal to NULL. Add assert.
4966 (ix86_generate_version_dispatcher_body): Change error to sorry.
4968 2013-02-11 Iain Sandoe <iain@codesourcery.com>
4969 Jack Howarth <howarth@bromo.med.uc.edu>
4970 Patrick Marlier <patrick.marlier@gmail.com>
4973 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
4974 define ENDFILE_SPEC as TM_DESTRUCTOR.
4975 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
4977 2013-02-11 Alexander Potapenko <glider@google.com>
4978 Jack Howarth <howarth@bromo.med.uc.edu>
4979 Jakub Jelinek <jakub@redhat.com>
4982 * config/darwin.c (cdtor_record): Rename ctor_record.
4983 (sort_cdtor_records): Rename sort_ctor_records.
4984 (finalize_dtors): New routine to sort destructors by
4985 priority before use in assemble_integer.
4986 (machopic_asm_out_destructor): Use finalize_dtors if needed.
4988 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
4990 PR rtl-optimization/56275
4991 * simplify-rtx.c (avoid_constant_pool_reference): Check that
4992 offset is non-negative and less than cmode size before
4993 calling simplify_subreg.
4995 2013-02-11 Richard Biener <rguenther@suse.de>
4997 PR tree-optimization/56264
4998 * cfgloop.h (fix_loop_structure): Adjust prototype.
4999 * loop-init.c (fix_loop_structure): Return the number of
5000 newly discovered loops.
5001 * tree-cfgcleanup.c (repair_loop_structures): When new loops
5002 are discovered, do a full loop-closed SSA rewrite.
5004 2013-02-11 Richard Biener <rguenther@suse.de>
5006 PR tree-optimization/56273
5007 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
5009 (check_array_ref): Fix missing newline in dumps.
5010 (search_for_addr_array): Likewise.
5012 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
5014 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
5016 2013-02-09 Jakub Jelinek <jakub@redhat.com>
5019 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
5021 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
5023 PR rtl-optimization/56246
5024 * lra-constraints.c (simplify_operand_subreg): Try to reuse
5026 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
5027 constraints are satisfied.
5029 2013-02-08 Jeff Law <law@redhat.com>
5032 * emit-rtl.c (reg_is_parm_p): New function.
5033 * regs.h (reg_is_parm_p): New prototype.
5034 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
5035 callee-clobbered registers.
5037 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
5040 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
5041 If there is no implicit builtin declaration, just return NULL.
5043 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
5045 * config/i386/sse.md (FMAMODEM): New mode iterator.
5046 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
5047 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
5049 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
5051 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
5052 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
5053 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
5055 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
5057 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
5058 (microblaze*-*-elf): Likewise.
5059 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
5061 * config/microblaze/microblaze-c.c: Add builtin defines for
5062 _LITTLE_ENDIAN and _BIG_ENDIAN.
5063 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
5064 add to TARGET_DEFAULT flags.
5065 Expand ASM_SPEC and LINK_SPEC.
5066 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
5067 * config/microblaze/microblaze.md: Update extendsidi2 and
5068 movdi_internal instructions to use low-order / high-order reg
5070 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
5071 options and inversemask / mask of LITTLE_ENDIAN.
5072 * config/microblaze/t-microblaze: Expand multilib options to
5073 include mlittle-endian (le) and update exceptions patterns.
5075 2013-02-08 Jakub Jelinek <jakub@redhat.com>
5077 PR rtl-optimization/56195
5078 * lra-constraints.c (get_reload_reg): Don't reuse regs
5079 if they have smaller mode than requested, if they have
5080 wider mode than requested, try to return a SUBREG.
5082 PR tree-optimization/56250
5083 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
5084 if type is unsigned and code isn't MULT_EXPR.
5086 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
5088 PR tree-optimization/56064
5089 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
5090 bits according to mode.
5091 * fixed-value.h (fixed_from_double_int)
5092 (const_fixed_from_double_int): Adjust comments.
5094 2013-02-08 Richard Biener <rguenther@suse.de>
5097 * lto-streamer.h (struct data_in): Remove current_file, current_line
5098 and current_col members.
5099 * lto-streamer-out.c (lto_output_location): Stream changed bits
5100 en-block for efficiency.
5101 * lto-streamer-in.c (clear_line_info): Remove.
5102 (lto_input_location): Cache current file, line and column
5103 globally via local statics. Read changed bits en-block.
5104 (input_function): Do not call clear_line_info.
5105 (lto_read_body): Likewise.
5106 (lto_input_toplevel_asms): Likewise.
5108 2013-02-08 Michael Matz <matz@suse.de>
5110 PR tree-optimization/52448
5111 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
5112 (nt_call_phase): New static.
5113 (add_or_mark_expr): Only mark accesses with newer phase than any
5115 (nonfreeing_call_p): New.
5116 (nt_init_block): Update nt_call_phase, mark blocks as visited.
5117 (nt_fini_block): Keep blocks marked as visited.
5118 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
5120 2013-02-08 Richard Biener <rguenther@suse.de>
5122 * ira.c (ira): Free broken dominator information.
5124 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
5126 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
5128 2013-02-08 Marek Polacek <polacek@redhat.com>
5130 * cfgloop.c (verify_loop_structure): Add more checking of headers.
5132 2013-02-08 Richard Biener <rguenther@suse.de>
5135 * cfgloop.h (flow_loops_find): Adjust.
5136 (bb_loop_header_p): Declare.
5137 * cfgloop.c (bb_loop_header_p): New function split out from ...
5138 (flow_loops_find): ... here. Adjust function signature,
5139 support incremental loop structure update.
5140 (verify_loop_structure): Cleanup. Verify a loop is a loop.
5141 * cfgloopmanip.c (fix_loop_structure): Move ...
5142 * loop-init.c (fix_loop_structure): ... here.
5143 (apply_loop_flags): Split out from ...
5144 (loop_optimizer_init): ... here.
5145 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
5146 in incremental mode, only remove dead loops here.
5148 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
5151 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
5152 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
5153 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
5154 (*round<mode>3.libgcc): New insns for fixed-modes.
5155 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
5156 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
5157 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
5158 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
5159 implementations. Define to __builtin_avr_absFX,
5160 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
5161 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
5162 __builtin_avr_countlsFX, respectively.
5163 * config/avr/avr-c.c (target.h): Include it.
5164 (enum avr_builtin_id): New enum.
5165 (avr_resolve_overloaded_builtin): New static function.
5166 (avr_register_target_pragmas): Use it to set
5167 targetm.resolve_overloaded_builtin.
5168 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
5169 tree nodes used by DEF_BUILTIN.
5170 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
5171 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
5172 <AVR_BUILTIN_xxBITS>: Same.
5174 2013-02-08 Richard Biener <rguenther@suse.de>
5176 * cfgloop.c (verify_loop_structure): Properly handle
5177 a loop exiting to another loop header.
5178 * ira-int.h (ira_loops): Remove.
5179 * ira.c (ira_loops): Remove.
5180 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
5181 (do_reload): Use loop_optimizer_finalize.
5182 * ira-build.c (create_loop_tree_nodes): Use get_loops and
5183 number_of_loops to access the loop tree.
5184 (more_one_region_p): Likewise.
5185 (finish_loop_tree_nodes): Likewise.
5186 (rebuild_regno_allocno_maps): Likewise.
5187 (mark_loops_for_removal): Likewise.
5188 (mark_all_loops_for_removal): Likewise.
5189 (remove_unnecessary_regions): Likewise.
5190 (ira_build): Likewise.
5191 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
5193 2013-02-08 Richard Biener <rguenther@suse.de>
5195 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
5196 * ipa-pure-const.c (analyze_function): Avoid calling
5197 mark_irreducible_loops twice.
5198 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
5200 2013-02-07 David S. Miller <davem@davemloft.net>
5202 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
5204 * var-tracking.c (vt_add_function_parameter): Test the presence of
5205 HAVE_window_save properly and do not remap argument registers when
5206 we have a leaf function.
5208 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
5211 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
5213 * config/i386/i386.c (ix86_print_operand): Ditto.
5215 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
5217 * lra-constraints.c (process_alt_operands): Fix recently added comment.
5219 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
5221 PR rtl-optimization/56225
5222 * lra-constraints.c (process_alt_operands): Check that reload hard
5223 reg can hold value for strict_low_part.
5225 2013-02-07 Jakub Jelinek <jakub@redhat.com>
5228 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
5229 dwarf2out_end_function.
5230 (in_first_function_p, maybe_at_text_label_p,
5231 first_loclabel_num_not_at_text_label): New variables.
5232 (dwarf2out_var_location): In the first function find out
5233 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
5234 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
5237 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
5239 PR rtl-optimization/56178
5240 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
5241 SUBREG of a register. Tidy up related block of code.
5242 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
5243 note if the source is a register or a SUBREG of a register.
5245 2013-02-07 Jakub Jelinek <jakub@redhat.com>
5248 * config/rs6000/rs6000.md (ptrm): New mode attr.
5249 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
5250 call_value_indirect_aix<pttrsize>,
5251 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
5254 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
5256 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
5257 if -bnortl. Convert to strcmp and strncmp.
5259 2013-02-07 Alan Modra <amodra@gmail.com>
5262 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
5263 addresses won't wrap when offsetting.
5264 (rs6000_secondary_reload): Provide secondary reloads needed for
5265 wrapping LO_SUM addresses.
5267 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
5269 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
5270 MACH, just __MACH__.
5272 2013-02-06 Richard Biener <rguenther@suse.de>
5274 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
5275 instead of calling fix_loop_structure.
5277 2013-02-06 Jakub Jelinek <jakub@redhat.com>
5280 * omp-low.c (use_pointer_for_field): Return false if
5281 lower_send_shared_vars doesn't generate any copy-out code.
5283 2013-02-06 Tom de Vries <tom@codesourcery.com>
5285 PR rtl-optimization/56131
5286 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
5287 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
5288 of the label is NULL. Add comment.
5290 2013-02-05 Jakub Jelinek <jakub@redhat.com>
5292 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
5295 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
5296 (STATIC_LIBTSAN_LIBS): Likewise.
5297 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
5298 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
5299 is defined, don't add anything else beyond that.
5300 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
5301 (LINK_COMMAND_SPEC): Use them.
5303 PR tree-optimization/56205
5304 * tree-stdarg.c (check_all_va_list_escapes): Return true if
5305 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
5306 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
5308 2013-02-05 Richard Biener <rguenther@suse.de>
5310 PR tree-optimization/53342
5311 PR tree-optimization/53185
5312 * tree-vectorizer.h (vect_check_strided_load): Remove.
5313 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
5314 not disallow peeling for vectorized strided loads.
5315 (vect_check_strided_load): Make static and simplify.
5316 (vect_analyze_data_refs): Adjust.
5317 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
5318 correctly when vectorizing strided loads.
5320 2013-02-05 Richard Biener <rguenther@suse.de>
5322 * doc/install.texi: Refer to ISL, not PPL.
5324 2013-02-05 Jan Hubicka <jh@suse.cz>
5326 PR tree-optimization/55789
5327 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
5329 2013-02-05 Jan Hubicka <jh@suse.cz>
5331 PR tree-optimization/55789
5332 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
5333 the dead call anyway.
5335 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
5338 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
5340 2013-02-04 Alexander Potapenko <glider@google.com>
5341 Jack Howarth <howarth@bromo.med.uc.edu>
5342 Jakub Jelinek <jakub@redhat.com>
5345 * config/darwin.c (sort_ctor_records): Stabilized qsort
5346 on constructor priority by using original position.
5347 (finalize_ctors): New routine to sort constructors by
5348 priority before use in assemble_integer.
5349 (machopic_asm_out_constructor): Use finalize_ctors if needed.
5351 2013-02-04 Jakub Jelinek <jakub@redhat.com>
5354 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
5355 about visibility on artificial decls.
5356 * config/sol2.c (solaris_assemble_visibility): Likewise.
5358 2013-02-04 Kai Tietz <ktietz@redhat.com>
5361 * config/i386/i386.c (function_value_ms_64): Add additional valtype
5362 argument and improve checking of return-argument types for 16-byte
5364 (ix86_function_value_1): Add additional valtype argument on call
5365 of function_value_64.
5366 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
5367 handling infunction_value_64 function.
5369 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
5371 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
5373 2013-02-04 Richard Biener <rguenther@suse.de>
5375 PR tree-optimization/56188
5376 * tree-ssa-structalias.c (label_visit): Consider case with
5377 initially non-empty points-to set.
5378 (perform_var_substitution): Dump node mapping and clean up.
5380 2013-02-04 Richard Guenther <rguenther@suse.de>
5383 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
5384 node prevail as last resort.
5385 (lto_symtab_merge_decls): Remove guard on LTRANS here.
5386 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
5388 2013-02-04 Richard Biener <rguenther@suse.de>
5390 PR tree-optimization/56113
5391 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
5393 (equiv_class_lookup_or_add): ... this.
5394 (label_visit): Adjust and fix error in previous patch.
5395 (perform_var_substitution): Adjust.
5397 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
5399 * config/sh/divtab.c: Fix formatting and comments throughout the file.
5400 * config/sh/sh4-300.md: Likewise.
5401 * config/sh/sh4a.md: Likewise.
5402 * config/sh/constraints.md: Likewise.
5403 * config/sh/sh.md: Likewise.
5404 * config/sh/netbsd-elf.h: Likewise.
5405 * config/sh/predicates.md: Likewise.
5406 * config/sh/sh-protos.h: Likewise.
5407 * config/sh/ushmedia.h: Likewise.
5408 * config/sh/linux.h: Likewise.
5409 * config/sh/sh.c: Likewise.
5410 * config/sh/superh.h: Likewise.
5411 * config/sh/elf.h: Likewise.
5412 * config/sh/sh4.md: Likewise.
5413 * config/sh/sh.h: Likewise.
5415 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5417 * config/pa/constraints.md: Adjust unused letters. Change "T"
5418 constraint to match_test floating_point_store_memory_operand().
5419 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
5420 (base14_operand): New.
5421 (floating_point_store_memory_operand): New.
5422 (integer_store_memory_operand): Revise to use base14_operand and
5423 reg_plus_base_memory_operand.
5424 (move_dest_operand): Allow symbolic_memory_operands.
5425 (symbolic_memory_operand): Check for LO_SOM.
5426 (symbolic_operand): Change default case to break.
5427 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
5428 CONST_DOUBLE values to be reloaded by putting them into memory when
5429 the destination is a floating point register.
5430 (movdf): Remove code to handle CONST_DOUBLE.
5432 (reload_indf_r1): New.
5433 (reload_insf_r1): New.
5434 Consistently use "Q" and "T" constraints with integer and floating
5435 point move instructions, respectively.
5436 (movdi): Remove FAIL.
5437 Change predicate for source operand unamed DImode move from
5438 general_operand to move_src_operand.
5439 (umulsidi3): Change predicate for destination operand to
5441 Likewise for similar unamed patterns.
5442 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
5443 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
5444 (hppa_legitimize_address): Simplify mask calculation.
5445 (pa_emit_move_sequence): Revised handling of secondary reloads from
5446 REG+D addresses for floating point loads and stores. Directly handle
5447 loading CONST0_RTX (mode) to a floating point register.
5448 (pa_secondary_reload): Handle reloading DF and SFmode constant values
5449 to floating point registers. Don't restrict secondary reloads to
5450 floating point registers to integer modes. Revise some comments and
5452 (TARGET_LEGITIMATE_ADDRESS_P): Define.
5453 (pa_legitimate_address_p): New.
5454 (pa_legitimize_reload_address): New.
5455 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
5456 (STRICT_REG_OK_FOR_BASE_P): New.
5457 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
5458 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
5460 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
5461 Andrew Dixie <andrewd@gentrack.com>
5463 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
5466 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
5468 * expmed.c (extract_bit_field_1): Pass the full width of the
5469 structure to get_best_reg_extraction_insn.
5471 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
5474 * configure.ac (use_cxa_atexit): Add AIX.
5475 * configure: Regenerate.
5477 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
5479 2013-02-01 Jakub Jelinek <jakub@redhat.com>
5482 * final.c (need_profile_function): New variable.
5483 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
5484 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
5485 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
5486 notes, targetm.asm_out.function_prologue doesn't emit anything,
5487 HAVE_prologue and profiler should be emitted before prologue,
5488 set need_profile_function instead of emitting it.
5489 (final_scan_insn): If need_profile_function, emit
5490 profile_function on the first NOTE_INSN_BASIC_BLOCK or
5491 NOTE_INSN_FUNCTION_BEG note.
5493 2013-02-01 Richard Henderson <rth@redhat.com>
5495 * config/rs6000/rs6000.md (smulditi3): New.
5498 * config/alpha/alpha.md (umulditi3): New.
5500 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
5502 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
5503 (ASM_OUTPUT_ALIGNED_LOCAL): New.
5505 2013-02-01 Richard Biener <rguenther@suse.de>
5507 PR tree-optimization/56113
5508 * tree-ssa-structalias.c (label_visit): Reduce work for
5509 single-predecessor nodes.
5511 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
5513 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
5514 range isn't testing for zero.
5516 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
5519 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
5521 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
5522 Nick Clifton <nickc@redhat.com>
5524 * config/v850/constraints.md (Q): Define as a memory constraint.
5525 * config/v850/predicates.md (label_ref_operand): New predicate.
5526 (e3v5_shift_operand): New predicate.
5527 (ior_operator): New predicate.
5528 * config/v850/t-v850: Add e3v5 multilib.
5529 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
5530 (v850_gen_movdi): Prototype.
5531 * config/v850/v850.c: Add support for e3v5 architecture.
5532 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
5534 (construct_save_jarl): Add e3v5 long JARL support.
5535 (v850_adjust_insn_length): New function. Adjust length of call
5536 insns when using e3v5 instructions.
5537 (v850_gen_movdi): New function: Generate instructions to move a
5539 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
5540 (CPP_SPEC): Define __v850e3v5__ as appropriate.
5541 (TARGET_USE_FPU): Enable for e3v5.
5542 (CONST_OK_FOR_W): New macro.
5543 (ADJUST_INSN_LENGTH): Define.
5544 * config/v850/v850.md (UNSPEC_LOOP): Define.
5545 (attr cpu): Add v850e3v5.
5546 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
5547 (movdi): New pattern.
5548 (movdi_internal): New pattern.
5549 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
5550 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
5551 (cstoresf4): Likewise.
5552 (cstoredf4): Likewise.
5553 (insv): New pattern.
5554 (rotlso3_a): New pattern.
5555 (rotlsi3_b): New pattern
5556 (rotlsi3_v850e3v5): New pattern.
5557 (doloop_begin): New pattern.
5558 (fix_loop_counter): New pattern.
5559 (doloop_end): New pattern.
5560 (branch_normal): Add e3v5 long branch support.
5561 (branch_invert): Likewise.
5562 (branch_z_normal): Likewise.
5563 (branch_z_invert): Likewise.
5564 (branch_nz_normal): Likewise.
5565 (branch_nz_invert): Likewise.
5566 (call_internal_short): Add e3v5 register-indirect JARL support.
5567 (call_internal_long): Likewise.
5568 (call_value_internal_short): Likewise.
5569 (call_value_internal_long): Likewise.
5570 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
5571 (mloop): New option.
5572 * config.gcc: Add support for configuring v840e3v5 target.
5573 * doc/invoke.texi: Document new v850 specific command line options.
5575 2013-01-31 Paul Koning <ni1d@arrl.net>
5579 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
5580 children if parent is a class.
5581 (prune_unused_types_prune): Don't add DW_AT_declaration.
5583 2013-01-31 Richard Biener <rguenther@suse.de>
5585 PR tree-optimization/56157
5586 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
5587 match up operand with SLP child.
5589 2013-01-31 Jason Merrill <jason@redhat.com>
5592 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
5593 parameters the first time.
5594 (gen_scheduled_generic_parms_dies): Check completeness here.
5596 2013-01-31 Richard Biener <rguenther@suse.de>
5599 * common.opt (faggressive-loop-optimizations): New flag,
5601 * doc/invoke.texi (faggressive-loop-optimizations): Document.
5602 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
5603 infer_loop_bounds_from_undefined by it.
5605 2013-01-31 Richard Biener <rguenther@suse.de>
5607 PR tree-optimization/56150
5608 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
5609 visit virtual operands.
5610 (find_uses_to_rename_bb): Likewise.
5612 2013-01-31 Richard Biener <rguenther@suse.de>
5614 PR tree-optimization/56150
5615 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
5616 mixed store non-store stmts.
5618 2013-01-30 Jakub Jelinek <jakub@redhat.com>
5621 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
5622 LIBASAN_EARLY_SPEC is defined.
5623 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
5624 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
5626 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
5629 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
5630 invalid args instead of ICEing on it.
5631 (ix86_valid_target_attribute_tree): Return error_mark_node if
5632 ix86_valid_target_attribute_inner_p failed.
5633 (ix86_valid_target_attribute_p): Return false only if
5634 ix86_valid_target_attribute_tree returned error_mark_node. Allow
5635 target("default") attribute.
5636 (sorted_attr_string): Change argument from const char * to tree,
5637 merge in all target attribute arguments rather than just one.
5638 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
5639 instead of free. Avoid using strcat.
5640 (ix86_mangle_function_version_assembler_name): Mangle
5641 target("default") as if no target attribute is present. Adjust
5642 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
5643 instead of xmalloc and XDELETEVEC instead of free.
5644 (ix86_function_versions): Don't return true if one of the decls
5645 doesn't have target attribute. If they don't and one of the decls
5646 is DECL_FUNCTION_VERSIONED, report an error. Adjust
5647 sorted_attr_string caller. Use XDELETEVEC instead of free.
5648 (ix86_supports_function_versions): Remove.
5649 (make_name): Fix up formatting.
5650 (make_dispatcher_decl): Remove resolver_name and its initialization.
5651 Avoid leaking memory.
5652 (is_function_default_version): Return true if there is
5653 target("default") attribute rather than no target attribute at all.
5654 (make_resolver_func): Avoid leaking memory.
5655 (ix86_generate_version_dispatcher_body): Likewise.
5656 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
5657 * target.def (supports_function_versions): Remove.
5658 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
5659 * doc/tm.texi: Regenerated.
5661 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
5663 PR rtl-optimization/56144
5664 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
5665 for values with side effects.
5667 2013-01-30 Richard Biener <rguenther@suse.de>
5669 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
5670 (sparseset_pop): Likewise.
5671 * cfganal.c (compute_idf): Likewise. Increase work-stack size
5672 to be able to use quick_push in the worker loop.
5674 2013-01-30 Marek Polacek <polacek@redhat.com>
5676 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
5678 2013-01-30 Richard Biener <rguenther@suse.de>
5681 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
5683 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
5685 PR tree-optimization/56064
5686 * fixed-value.c (fixed_from_double_int): New function.
5687 * fixed-value.h (fixed_from_double_int): New prototype.
5688 (const_fixed_from_double_int): New static inline function.
5689 * fold-const.c (native_interpret_fixed): New static function.
5690 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
5691 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
5692 (native_encode_fixed): New static function.
5693 (native_encode_expr) <FIXED_CST>: Use it.
5694 (native_interpret_int): Move double_int worker code to...
5695 * double-int.c (double_int::from_buffer): ...this new static method.
5696 * double-int.h (double_int::from_buffer): Prototype it.
5698 2013-01-30 Richard Biener <rguenther@suse.de>
5700 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
5701 New pointer-map and obstack.
5702 (init_alias_vars): Allocate pointer-map and obstack.
5703 (delete_points_to_sets): Free them.
5704 (find_what_var_points_to): Cache result.
5705 (find_what_p_points_to): Adjust for changed interface of
5706 find_what_var_points_to.
5707 (compute_points_to_sets): Likewise.
5708 (ipa_pta_execute): Likewise.
5710 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5712 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
5713 * configure: Regenerate.
5714 * config.in: Regenerate.
5715 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
5716 #nobits/#progbits if supported.
5718 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
5721 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
5722 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
5723 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
5725 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
5727 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
5728 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
5730 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
5732 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
5733 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
5735 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
5737 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
5739 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
5740 * config/arm/cortex-a7.md: New bypasses using
5741 arm_mac_accumulator_is_result.
5743 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
5745 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
5746 (cortex_a7_neon_mla): Likewise.
5747 (cortex_a7_fpfmad): New reservation.
5748 (cortex_a7_fpmacs): Use ffmas and update required units.
5749 (cortex_a7_fpmuld): Update required units and latency.
5750 (cortex_a7_fpmacd): Likewise.
5751 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
5752 (cortex_a7_neon). Likewise.
5753 (bypass) Update participating units.
5755 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
5757 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
5758 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
5760 * config/arm/vfp11.md (vfp_farith): Use ffmas.
5761 (vfp_fmul): Use ffmad.
5762 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
5763 (cortex_r4_fmacd): Use ffmad.
5764 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
5765 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
5766 (cortex_a9_fmacd): Use ffmad.
5767 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
5768 (cortex_a8_vfp_macd): Use ffmad.
5769 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
5770 (cortex_a5_fpmacd): Use ffmad.
5771 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
5772 (cortex_a15_vfp_macd): Use ffmad.
5773 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
5775 2013-01-29 Jason Merrill <jason@redhat.com>
5778 * varasm.c (default_assemble_visibility): Don't warn about
5779 visibility on artificial decls.
5781 2013-01-29 Richard Biener <rguenther@suse.de>
5783 PR tree-optimization/56113
5784 * tree-ssa-structalias.c (equiv_class_lookup): Also return
5786 (label_visit): Free duplicate bitmaps and record the leader instead.
5787 (perform_var_substitution): Adjust.
5789 2013-01-29 Richard Biener <rguenther@suse.de>
5791 PR tree-optimization/55270
5792 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
5793 the CFG, schedule loops for fixup.
5795 2013-01-29 Nick Clifton <nickc@redhat.com>
5797 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
5800 2013-01-28 Leif Ekblad <leif@rdos.net>
5802 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
5803 * config/i386/i386.h (TARGET_RDOS): New macro.
5804 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
5805 * config/i386/i386.c (ix86_option_override_internal): For 64bit
5806 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
5807 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
5808 DEFAULT_LARGE_SECTION_THRESHOLD.
5809 * config/i386/i386.md (R14_REG, R15_REG): New constants.
5810 * config/i386/rdos.h: New file.
5811 * config/i386/rdos64.h: New file.
5813 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
5816 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
5819 2013-01-28 Jakub Jelinek <jakub@redhat.com>
5821 PR rtl-optimization/56117
5822 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
5823 call cselib_lookup_from_insn on the MEM before calling
5824 add_insn_mem_dependence.
5826 2013-01-28 Richard Biener <rguenther@suse.de>
5828 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
5829 to a stmt that didn't have one.
5830 (copy_phis_for_bb): Likewise for PHI arguments.
5831 (copy_debug_stmt): Likewise for debug stmts.
5833 2013-01-28 Richard Biener <rguenther@suse.de>
5835 PR tree-optimization/56034
5836 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
5837 (partition_builtin_p): Adjust.
5838 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
5839 it is the last partition.
5840 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
5841 up the vertex for the definition.
5842 (classify_partition): Classify whether a partition is a
5843 PKIND_REDUCTION, thus has uses outside of the loop.
5844 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
5845 Merge all PKIND_REDUCTION partitions into the last partition.
5846 (tree_loop_distribution): Seed partitions from reductions as well.
5848 2013-01-28 Jakub Jelinek <jakub@redhat.com>
5850 PR tree-optimization/56125
5851 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
5852 pow(x,c) into sqrt(x) * powi(x, n/2) or
5853 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
5854 optimizing for size.
5855 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
5856 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
5859 PR tree-optimization/56094
5860 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
5861 to UNKNOWN_LOCATION while gimplifying expr.
5863 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
5866 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
5867 operand 0 in movabs insn template for -masm=intel asm alternative.
5868 (*movabs<mode>_2): Ditto for operand 1.
5870 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
5873 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
5876 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
5878 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
5881 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5883 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
5884 Undef to avoid warning.
5886 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
5888 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
5889 * configure: Regenerate.
5891 2013-01-25 Jakub Jelinek <jakub@redhat.com>
5893 PR tree-optimization/56098
5894 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
5895 for stmts with volatile ops.
5896 (cond_store_replacement): Don't optimize if assign has volatile ops.
5897 (cond_if_else_store_replacement_1): Don't optimize if either
5898 then_assign or else_assign have volatile ops.
5899 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
5902 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
5904 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
5906 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
5908 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
5909 missing ':' in asm example.
5911 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
5913 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
5914 entries into lane and laneq entries.
5915 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
5916 Remove AdvSIMD scalar modes.
5917 (aarch64_sq<r>dmulh_laneq<mode>): New.
5918 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
5920 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
5921 builtin implementations to relfect changes in RTL in aarch64-simd.md.
5922 * config/aarch64/iterators.md (VCOND): New.
5925 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
5928 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
5929 Add NULL LIBNAME argument to existing definitions.
5930 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
5931 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
5932 * config/avr/avr.c (DEF_BUILTIN): Same.
5933 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
5934 (avr_expand_builtin): Expand to a vanilla call if a libgcc
5935 implementation is available (DECL_ASSEMBLER_NAME is set).
5936 (avr_fold_absfx): New static function.
5937 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
5938 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
5939 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
5941 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
5942 (abshk, absk, abslk, absllk): Provide as static inline functions.
5944 2013-01-25 Marek Polacek <polacek@redhat.com>
5946 PR tree-optimization/56035
5947 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
5949 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
5951 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
5952 (*movtf_internal_rex64): Add (!o,C) alternative
5953 (*movxf_internal_rex64): Ditto.
5954 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
5956 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
5958 * doc/invoke.texi: fix typo.
5959 * doc/objc.texi: fix typo.
5961 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
5963 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
5964 for the first two alternatives.
5966 2013-01-24 Diego Novillo <dnovillo@google.com>
5968 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
5969 (ggc-zone.o): Remove.
5970 * configure.ac: Remove option --with-gc.
5971 * configure: Re-generate.
5972 * doc/install.texi: Remove documentation for --with-gc.
5973 * gengtype.c (write_enum_defn): Remove. Update all users.
5974 (write_Types_process_field): Remove generation of gt_e_* argument.
5975 (output_type_enum): Remove. Update all users.
5976 (write_enum_defn): Remove. Update all users.
5977 (enum alloc_zone): Remove. Update all users.
5978 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
5979 * ggc-common.c (ggc_splay_alloc): Remove first argument.
5981 (struct ptr_data): Remove field TYPE. Update all users.
5982 (gt_pch_note_object): Remove argument TYPE. Update all users.
5983 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
5985 * ggc-none.c (ggc_alloc_typed_stat): Remove.
5986 (struct alloc_zone): Remove.
5987 (ggc_internal_alloc_zone_stat): Remove.
5988 (ggc_internal_cleared_alloc_zone_stat): Remove.
5989 * ggc-page.c (ggc_alloc_typed_stat): Remove.
5990 (ggc_pch_count_object): Remove last argument. Update all users.
5991 (ggc_pch_alloc_object): Remove last argument. Update all users.
5992 (struct alloc_zone): Remove.
5993 * ggc-zone.c: Remove.
5994 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
5995 (struct alloc_zone): Remove.
5996 (ggc_alloc_typed_stat): Remove.
5997 (ggc_alloc_typed): Remove.
5998 (ggc_splay_alloc): Remove first argument.
5999 (rtl_zone): Remove. Update all users.
6000 (tree_zone): Remove. Update all users.
6001 (tree_id_zone): Remove. Update all users.
6002 (ggc_internal_zone_alloc_stat): Remove. Update all users.
6003 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
6004 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
6005 * tree-ssanames.c: Remove references to zone allocator in comments.
6007 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
6009 * config/avr/avr.c (avr_out_fract): Make register numbers that
6010 might be outside of source operand signed.
6012 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
6014 * config/i386/constraints.md (Yf): New constraint.
6015 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
6016 of f constraint to conditionaly disable x87 register preferences.
6017 (*movdf_internal): Ditto.
6018 (*movsf_internal): Ditto.
6020 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
6023 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
6024 that have operands with impossible constraints.
6025 Add a FIXME for a speed-up opportunity.
6026 * lra-constraints.c (process_alt_operands): Verify that a class
6027 selected from constraints on asms is valid for the operand mode.
6028 (curr_insn_transform): Remove incorrect comment.
6030 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
6032 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
6033 TOC operand is a valid symbol ref in the constant pool.
6035 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6037 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
6039 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
6042 * config/avr/stdfix.h: New file.
6043 * t-avr (stdfix-gcc.h): New rule to build it.
6044 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
6046 2013-01-23 Kostya Serebryany <kcc@google.com>
6048 * config/darwin.h: remove dependency on
6049 CoreFoundation (asan on Mac OS).
6051 2013-01-23 Jakub Jelinek <jakub@redhat.com>
6054 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
6055 instead of cmpdi_operand for first comparison operand.
6056 Don't assert that comparison operands aren't both constants.
6058 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
6060 * doc/install.texi (Downloading the Source): Update references to
6061 downloading separate components.
6063 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
6065 * doc/extend.texi (__int128): Improve grammar.
6067 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
6070 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
6071 alternative to (o,r).
6072 (*movdi_internal_rex64): Remove (!o,n) alternative.
6073 (DImode immediate->memory splitter): Remove.
6074 (DImode immediate->memory peephole2): Remove.
6075 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
6076 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
6077 alternative to (!o,*r).
6078 (*movtf_internal_sse): New pattern.
6079 (*movxf_internal_rex64): New pattern.
6080 (*movxf_internal): Disable for TARGET_64BIT.
6081 (*movdf_internal_rex64): Remove (!o,F) alternative.
6083 2013-01-22 Jakub Jelinek <jakub@redhat.com>
6086 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
6087 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
6088 * tree-vect-loop-manip.c (find_loop_location): Also ignore
6089 stmt locations where LOCATION_LOCUS of the stmt location is
6090 UNKNOWN_LOCATION or BUILTINS_LOCATION.
6093 * config/i386/i386.md (UNSPEC_STOS): New.
6094 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
6095 *strsetqi_1): Add UNSPEC_STOS.
6097 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
6100 * doc/invoke.texi: Remove left over -Wsynth example.
6102 2013-01-21 Jakub Jelinek <jakub@redhat.com>
6104 PR tree-optimization/56051
6105 * fold-const.c (fold_binary_loc): Don't fold
6106 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
6107 a narrowing conversion, or widening conversion from signed
6110 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
6112 PR rtl-optimization/56023
6113 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
6114 dependent on debug instruction.
6116 2013-01-21 Martin Jambor <mjambor@suse.cz>
6119 * function.c (allocate_struct_function): Call
6120 invoke_set_current_function_hook earlier.
6122 2013-01-21 Jakub Jelinek <jakub@redhat.com>
6124 * reload1.c (init_reload): Only initialize reload_obstack
6125 during the first call.
6127 2013-01-21 Marek Polacek <polacek@redhat.com>
6129 * cfgloop.c (verify_loop_structure): Fix up grammar.
6131 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
6133 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
6134 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
6136 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6139 * config/arm/marvell-pj4.md: Update copyright year.
6140 Fix up use of alu to alu_reg and simple_alu_imm.
6142 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
6144 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
6146 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
6149 * lra-constraints.c (curr_insn_transform): Don't reuse original
6150 insn for secondary memory move when memory mode should be different.
6152 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6154 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
6155 atomic_storedi_1): New patterns.
6157 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
6159 btver2 pipeline descriptions.
6160 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
6162 * config/i386/i386.md (btver2_decode): New type attributes.
6163 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
6165 * config/i386/btver2.md: New file describing btver2 pipelines.
6167 2013-01-19 Andrew Pinski <apinski@cavium.com>
6169 PR tree-optimization/52631
6170 * tree-ssa-sccvn (visit_use): Before looking up the original
6171 statement, try looking up the simplified expression.
6173 2013-01-19 Anthony Green <green@moxielogic.com>
6175 * config/moxie/moxie.c (moxie_expand_prologue): Set
6176 current_function_static_stack_size.
6178 2013-01-18 Jakub Jelinek <jakub@redhat.com>
6180 PR tree-optimization/56029
6181 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
6182 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
6184 2013-01-18 Sharad Singhai <singhai@google.com>
6186 PR tree-optimization/55995
6187 * dumpfile.c (dump_loc): Print location only if available.
6188 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
6190 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
6193 * lra-constraints.c (curr_insn_transform): Reuse original insn for
6194 secondary memory move.
6195 (inherit_reload_reg): Use rclass instead of cl for
6196 check_secondary_memory_needed_p.
6198 2013-01-18 Jakub Jelinek <jakub@redhat.com>
6201 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
6202 the case where writing real complex part of target modifies op1.
6204 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
6206 * config/aarch64/aarch64-simd.md
6207 (aarch64_vcond_internal<mode>): Handle unordered cases.
6208 * config/aarch64/iterators.md (v_cmp_result): New.
6210 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
6211 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6213 * config/arm/marvell-pj4.md: New file.
6214 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
6215 * config/arm/arm.md (generic_sched): Add marvell_pj4.
6216 (generic_vfp): Likewise.
6217 * config/arm/arm-cores.def: Add marvell-pj4.
6218 * config/arm/arm-tune.md: Regenerate.
6219 * config/arm/arm-tables.opt: Regenerate.
6220 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
6221 * doc/invoke.texi: Document marvell-pj4.
6223 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
6225 * config/aarch64/arm_neon.h: Map scalar types to standard types.
6227 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
6232 * var-tracking.c (negative_power_of_two_p): New.
6233 (global_get_addr_cache, local_get_addr_cache): New.
6234 (get_addr_from_global_cache, get_addr_from_local_cache): New.
6235 (vt_canonicalize_addr): Rewrite using the above. Adjust the
6237 (vt_stack_offset_p): Remove.
6238 (vt_canon_true_dep): Always canonicalize loc's address.
6239 (clobber_overlapping_mems): Make sure we have a MEM.
6240 (local_get_addr_clear_given_value): New.
6241 (val_reset): Clear local cached entries.
6242 (compute_bb_dataflow): Create and release the local cache.
6243 Disable duplicate MEMs clobbering.
6244 (emit_notes_in_bb): Clobber MEMs likewise.
6245 (vt_emit_notes): Create and release the local cache.
6246 (vt_initialize, vt_finalize): Create and release the global
6247 cache, respectively.
6248 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
6250 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
6253 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
6254 not found in the symtab.
6256 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
6259 PR rtl-optimization/55547
6260 PR rtl-optimization/53827
6263 * alias.c (offset_overlap_p): New, factored out of...
6264 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
6265 the conservative special case for symbolic constants. Don't
6266 adjust zero sizes on alignment.
6268 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
6270 PR rtl-optimization/52573
6271 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
6272 REG_UNUSED for the same register.
6274 2013-01-17 Richard Biener <rguenther@suse.de>
6275 Marek Polacek <polacek@redhat.com>
6277 PR rtl-optimization/55833
6278 * loop-unswitch.c (unswitch_loops): Move loop verification...
6279 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
6280 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
6281 Set it to true when we're removing a loop from hierarchy tree in
6282 an irreducible region.
6283 (fix_bb_placements): Adjust caller.
6284 (fix_loop_placements): Likewise.
6286 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
6288 * config/avr/builtins.def (DEF_BUILTIN): Factor out
6289 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
6290 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
6291 Remove ID. Adjust comments.
6292 * config/avr/avr-c.c (avr_builtin_name): Remove.
6293 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
6294 * config/avr/avr.c (avr_tolower): New static function.
6295 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
6296 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
6297 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
6300 2013-01-17 Jan Hubicka <jh@suse.cz>
6302 PR tree-optimization/55273
6303 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
6305 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
6308 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
6309 store through atomic_store<mode>_1.
6310 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
6312 2013-01-17 Martin Jambor <mjambor@suse.cz>
6314 PR tree-optimizations/55264
6315 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
6316 for virtual methods.
6317 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
6318 virtual methods before inlining is over.
6319 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
6321 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
6324 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
6326 PR rtl-optimization/56005
6327 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
6328 pending reads for prefetch.
6330 2013-01-16 Ian Bolton <ian.bolton@arm.com>
6332 * config/aarch64/aarch64.md
6333 (*cstoresi_neg_uxtw): New pattern.
6334 (*cmovsi_insn_uxtw): New pattern.
6335 (*<optab>si3_uxtw): New pattern.
6336 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
6337 (*<optab>si3_insn_uxtw): New pattern.
6338 (*bswapsi2_uxtw): New pattern.
6340 2013-01-16 Richard Biener <rguenther@suse.de>
6342 * tree-inline.c (tree_function_versioning): Remove set but
6343 never used variable.
6345 2013-01-16 Richard Biener <rguenther@suse.de>
6347 PR tree-optimization/55964
6348 * tree-flow.h (rename_variables_in_loop): Remove.
6349 (rename_variables_in_bb): Likewise.
6350 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
6351 (copy_loop_before): Adjust and delete update-ssa status.
6352 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
6353 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
6354 (rename_variables_in_loop): Remove.
6355 (slpeel_update_phis_for_duplicate_loop): Likewise.
6356 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
6357 use available cfg machinery instead of duplicating it.
6358 Update PHI nodes and perform poor-mans SSA update here.
6359 (slpeel_tree_peel_loop_to_edge): Adjust.
6361 2013-01-16 Richard Biener <rguenther@suse.de>
6363 PR tree-optimization/54767
6364 PR tree-optimization/53465
6365 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
6366 (vrp_visit_phi_node): For PHI arguments coming via backedges
6367 drop all symbolical range information.
6368 (execute_vrp): Compute backedges.
6370 2013-01-16 Richard Biener <rguenther@suse.de>
6372 * doc/install.texi: Update CLooG and ISL requirements to
6375 2013-01-16 Christian Bruel <christian.bruel@st.com>
6378 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
6379 (broken_move): Handle UNSPECV_SP_SWITCH_B.
6380 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
6382 2013-01-16 DJ Delorie <dj@redhat.com>
6384 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
6385 (UNSPECV_SP_SWITCH_E): New.
6386 (sp_switch_1): Change to an unspec.
6387 (sp_switch_2): Change to an unspec. Don't use post-inc when we
6390 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
6392 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
6393 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
6394 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
6395 (expand_mem_thread_fence): Ditto.
6396 (expand_mem_signal_fence): Ditto.
6397 (expand_atomic_load): Ditto.
6398 (expand_atomic_store): Ditto.
6400 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
6402 PR rtl-optimization/55547
6403 PR rtl-optimization/53827
6406 * alias.c (memrefs_conflict_p): Set sizes to negative after
6409 2013-01-15 Jakub Jelinek <jakub@redhat.com>
6412 * function.c (thread_prologue_and_epilogue_insns): Always
6413 add crtl->drap_reg to set_up_by_prologue.set, even if
6414 stack_realign_drap is false.
6416 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6418 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
6419 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
6420 *call): Fix indention.
6422 2013-01-15 Tom de Vries <tom@codesourcery.com>
6425 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
6428 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
6430 PR rtl-optimization/55153
6431 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
6433 2013-01-15 Martin Jambor <mjambor@suse.cz>
6435 PR tree-optimization/55920
6436 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
6437 accesses as grp_to_be_debug_replaced.
6439 2013-01-15 Jakub Jelinek <jakub@redhat.com>
6441 PR tree-optimization/55920
6442 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
6443 there is non-useless type conversion needed from debug rhs to lhs,
6444 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
6446 2013-01-15 Joseph Myers <joseph@codesourcery.com>
6447 Mikael Pettersson <mikpe@it.uu.se>
6450 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
6452 (ASM_OUTPUT_CASE_LABEL): Remove.
6453 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
6454 * final.c (shorten_branches): Update alignment of labels before
6455 jump tables if CASE_VECTOR_SHORTEN_MODE.
6457 2013-01-15 Richard Biener <rguenther@suse.de>
6460 * system.h: Do not include gmp.h for building host tools.
6462 2013-01-15 Richard Biener <rguenther@suse.de>
6465 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
6466 account for bitpos when computing alignment.
6468 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
6470 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
6471 (ix86_target_macros_internal): Likewise.
6473 * config/i386/i386.c (m_CORE2I7): Removed.
6474 (m_CORE_HASWELL): New macro.
6475 (m_CORE_ALL): Likewise.
6476 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
6477 (initial_ix86_arch_features): Likewise.
6478 (processor_target_table): Initializations for Core avx2.
6479 (cpu_names): New names "core-avx2".
6480 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
6481 PROCESSOR_CORE_HASWELL.
6482 (ix86_issue_rate): New case.
6483 (ia32_multipass_dfa_lookahead): Likewise.
6484 (ix86_sched_init_global): Likewise.
6486 * config/i386/i386.h (TARGET_HASWELL): New macro.
6487 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
6488 (processor_type): New PROCESSOR_HASWELL.
6490 2013-01-15 Jakub Jelinek <jakub@redhat.com>
6492 PR tree-optimization/55955
6493 * tree-vect-loop.c (vectorizable_reduction): Give up early on
6494 *SHIFT_EXPR and *ROTATE_EXPR codes.
6496 PR tree-optimization/48766
6497 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
6498 -ftrapv disable -fwrapv.
6500 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
6503 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
6504 etc. to 1 and not to __flash.
6505 Use LL suffix for __INT24_MAX__ with -mint8.
6506 Use ULL suffix for __UINT24_MAX__ with -mint8.
6508 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
6510 * config/avr/avr-arch.h
6511 (struct base_arch_s): Use typedef avr_arch_t instead.
6512 (struct arch_info_s): Use typedef avr_arch_info_t instead.
6513 (struct mcu_type_s): Use typedef avr_mcu_t instead.
6514 * config/avr/avr.c: Same.
6515 * config/avr/avr-devices.c: Same.
6516 * config/avr/driver-avr.c: Same.
6517 * config/avr/gen-avr-mmcu-texi.c: Same.
6518 * config/avr/avr-mcus.def: Adjust comment.
6520 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
6522 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
6523 * config/aarch64/iterators.md (VALLDI): New.
6525 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
6526 Andi Kleen <ak@linux.intel.com>
6529 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
6530 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
6533 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
6535 * config/avr/avr-stdint.h: Remove trailing blanks.
6536 * config/avr/avr-log.h: Same.
6537 * config/avr/avr-arch.h: Same.
6538 * config/avr/avr-devices.c: Same.
6539 * config/avr/avr-dimode.md: Same.
6540 * config/avr/predicates.md: Same.
6541 * config/avr/avr-c.c: Same. And fix typo.
6543 * config/avr/avr-protos.h: Same. And:
6544 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
6545 (init_cumulative_args): Rename to avr_init_cumulative_args.
6546 (expand_prologue): Rename to avr_expand_prologue.
6547 (expand_epilogue): Rename to avr_expand_epilogue.
6548 (adjust_insn_length): Rename to avr_adjust_insn_length.
6549 (notice_update_cc): Rename to avr_notice_update_cc.
6550 (final_prescan_insn): Rename to avr_final_prescan_insn.
6551 * config/avr/avr.c: Same.
6552 * config/avr/avr.h: Same.
6553 * config/avr/avr.md: Remove trailing blanks.
6554 (prologue): Use avr_expand_prologue.
6555 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
6557 2013-01-14 Richard Biener <rguenther@suse.de>
6559 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
6560 verify_location, collect_subblocks): New functions.
6561 (verify_gimple_in_cfg): Verify that locations only reference
6562 BLOCKs in the functions BLOCK tree.
6564 2013-01-14 Richard Biener <rguenther@suse.de>
6566 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
6568 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
6570 (insert_out_of_ssa_copy_on_edge): Likewise.
6571 (rewrite_close_phi_out_of_ssa): Likewise.
6572 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
6574 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
6575 propagated constants.
6576 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
6579 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
6581 * config/avr/avr-modes.def: Add GPL copyright notice.
6583 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
6585 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
6586 MEMMODEL_MASK to determine memory model.
6587 (atomic_store<mode>): Ditto from operands[2].
6588 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
6590 2013-01-13 Jakub Jelinek <jakub@redhat.com>
6593 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
6594 (fold_gimple_assign): Don't call unshare_expr here.
6595 (fold_ctor_reference): Call unshare_expr.
6597 2013-01-13 Terry Guo <terry.guo@arm.com>
6599 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
6600 * doc/fragments.texi: Document MULTILIB_REUSE.
6601 * gcc.c (multilib_reuse): New internal spec.
6602 (set_multilib_dir): Also search multilib from multilib_reuse.
6603 * genmultilib (tmpmultilib3): Refactor code.
6604 (tmpmultilib4): Ditto.
6605 (multilib_reuse): New multilib argument.
6607 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
6609 * Makefile.in: Update copyright.
6611 2013-01-12 Tom de Vries <tom@codesourcery.com>
6614 * calls.c (expand_call): Check if arg_nr is valid.
6616 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6618 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
6619 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
6620 documentation. Add missing '__' in front of
6621 __builtin_ia32_packssdw256.
6623 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6626 * config/s390/s390.c (s390_preferred_reload_class): Do not return
6627 NO_REGS for larl operands.
6628 (s390_reload_larl_operand): Use s390_load_address instead of
6631 2013-01-11 Richard Biener <rguenther@suse.de>
6633 * tree-cfg.c (verify_node_sharing_1): Split out from ...
6634 (verify_node_sharing): ... here.
6635 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
6637 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
6639 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
6640 Substitute TREECHECKING.
6641 * configure: Regenerate.
6642 * Makefile.in (TREECHECKING): New.
6644 2013-01-11 Richard Guenther <rguenther@suse.de>
6646 PR tree-optimization/44061
6647 * tree-vrp.c (extract_range_basic): Compute zero as
6648 value-range for __builtin_constant_p of function parameters.
6650 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
6652 Update copyright years.
6654 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
6656 PR rtl-optimization/55672
6657 * lra-eliminations.c (mark_not_eliminable): Permit addition with
6658 const to be eliminable.
6660 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
6662 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
6663 * configure: Regenerate.
6665 2013-01-10 Richard Biener <rguenther@suse.de>
6667 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
6669 2013-01-10 Richard Biener <rguenther@suse.de>
6672 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
6673 locations for virtual PHI arguments.
6674 (rewrite_update_phi_arguments): Likewise.
6676 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
6678 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
6681 2013-01-10 Jakub Jelinek <jakub@redhat.com>
6683 PR tree-optimization/55921
6684 * tree-complex.c (expand_complex_asm): New function.
6685 (expand_complex_operations_1): Call it for GIMPLE_ASM.
6687 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6690 * config/s390/s390.c (s390_symref_operand_p)
6691 (s390_loadrelative_operand_p): Merge the two functions.
6692 (s390_check_qrst_address, print_operand_address): Add parameters
6693 to s390_loadrelative_operand_p invokation.
6694 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
6695 (s390_reload_larl_operand, s390_secondary_reload): Use
6696 s390_loadrelative_operand_p instead of s390_symref_operand_p.
6697 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
6699 2013-01-09 Mike Stump <mikestump@comcast.net>
6701 * dse.c (record_store): Remove unnecessary assert.
6703 2013-01-09 Jan Hubicka <jh@suse.cz>
6705 PR tree-optimization/55569
6706 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
6707 * cfgloop.h (scale_loop_profile): Likewise.
6709 2013-01-09 Jan Hubicka <jh@suse.cz>
6712 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
6714 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
6716 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
6719 * expr.h (maybe_emit_group_store): Declare.
6720 * expr.c (maybe_emit_group_store): New function.
6721 * builtins.c (expand_builtin_int_roundingfn): Call it.
6722 (expand_builtin_int_roundingfn_2): Likewise.
6724 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
6726 PR rtl-optimization/55829
6727 * lra-constraints.c (match_reload): Add code for absent output.
6728 (curr_insn_transform): Add code for reloads of matched inputs
6731 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
6733 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
6734 attribute of movddup insn to DF.
6735 (*vec_interleave_lowv2df): Ditto.
6736 (vec_dupv2df): Ditto.
6738 2013-01-09 Jan Hubicka <jh@suse.cz>
6740 PR tree-optimiation/55875
6741 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
6742 EVERY_ITERATION parameter.
6743 (number_of_iterations_exit): Check if exit is executed every iteration.
6744 (idx_infer_loop_bounds): Similarly here.
6745 (n_of_executions_at_most): Simplify
6746 to only test for cases where statement is dominated by the
6747 particular bound; handle correctly the "postdominance" test.
6748 (scev_probably_wraps_p): Use max loop iterations info
6749 as a global bound first.
6751 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
6752 Nick Clifton <nickc@redhat.com>
6754 * config/v850/v850.md (cbranchsf4): New pattern.
6755 (cstoresf4): New pattern.
6756 (cbranchdf4): New pattern.
6757 (cstoredf4): New pattern.
6758 (movsicc): Disallow floating point comparisons.
6759 (cmpsf_le_insn): Fix order of operators.
6760 (cmpsf_lt_insn): Likewise.
6761 (cmpsf_eq_insn): Likewise.
6762 (cmpdf_le_insn): Likewise.
6763 (cmpdf_lt_insn): Likewise.
6764 (cmpdf_eq_insn): Likewise.
6765 (cmpsf_ge_insn): Use LE comparison.
6766 (cmpdf_ge_insn): Likewise.
6767 (cmpsf_gt_insn): Use LT comparison.
6768 (cmpdf_gt_insn): Likewise.
6769 (cmpsf_ne_insn): Delete pattern.
6770 (cmpdf_ne_insn): Delete pattern.
6771 * config/v850/v850.c (v850_gen_float_compare): Use
6772 gen_cmpdf_eq_insn for NE comparison.
6773 (v850_float_z_comparison_operator)
6774 (v850_float_nz_comparison_operator): Move from here ...
6775 * config/v850/predicates.md: ... to here. Move GT and GE
6776 comparisons into v850_float_z_comparison_operator.
6777 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
6779 (v850_float_nz_comparison_operator): Likewise.
6781 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6783 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
6784 with calls to gen_insvsi/gen_insvdi.
6786 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
6788 * config/i386/i386.c (initial_ix86_tune_features): Set up
6789 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
6791 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
6792 Jakub Jelinek <jakub@redhat.com>
6794 PR tree-optimization/48189
6795 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
6796 If nitercst is 0, don't predict the exit edge.
6798 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6800 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
6801 in asm_fprintf with reg_names.
6802 (aarch64_print_operand_address): Likewise.
6803 (aarch64_return_addr): Likewise.
6804 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
6806 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6808 * config/pa/pa.h (VAL_U6_BITS_P): Define.
6809 (INT_U6_BITS): Likewise.
6810 * config/pa/predicates.md (uint6_operand): New predicate.
6811 (shift5_operand, shift6_operand): Likewise.
6812 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
6814 (lshrdi3): Use shift6_operand.
6815 (shrpsi4, shrpdi4): New insn patterns.
6816 (extzv): Delete expander.
6817 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
6818 predicates in unamed zero extract patterns. Tighten common constraint.
6819 (extv): Delete expander.
6820 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
6821 predicates in unamed sign extract patterns. Tighten common constraint.
6822 (insv): Delete expander.
6823 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
6824 predicates in unamed insert patterns. Tighten common constraint.
6825 Change uint32_operand predicate to uint6_operand predicate in unamed
6826 DImode pattern to insert constant values of type 1...1xxxx.
6828 2013-01-04 Jan Hubicka <jh@suse.cz>
6830 PR tree-optimization/55823
6831 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
6834 2013-01-08 Jakub Jelinek <jakub@redhat.com>
6835 Uros Bizjak <ubizjak@gmail.com>
6837 PR rtl-optimization/55845
6838 * df-problems.c (can_move_insns_across): Stop scanning at
6839 volatile_insn_p source instruction or give up if
6840 across_from .. across_to range contains any volatile_insn_p
6843 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
6845 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
6846 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
6848 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
6849 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
6851 2013-01-08 Jakub Jelinek <jakub@redhat.com>
6854 * asan.c (asan_clear_shadow): New function.
6855 (asan_emit_stack_protection): Use it.
6857 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
6859 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
6860 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
6861 with tab instead of space.
6863 2013-01-08 Nick Clifton <nickc@redhat.com>
6865 * config/rl78/rl78.c (rl78_expand_prologue): Always select
6866 register bank 0 at the start of an interrupt handler.
6867 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
6870 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
6872 * config/aarch64/aarch64-simd.md
6873 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
6874 (aarch64_simd_bsl): Likewise.
6875 (aarch64_vcond_internal<mode>): Likewise.
6876 (vcond<mode><mode>): Likewise.
6877 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
6878 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
6880 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
6882 * config/aarch64/aarch64-builtins.c
6883 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
6885 2013-01-08 Martin Jambor <mjambor@suse.cz>
6888 * tree-sra.c (analyze_access_subtree): Return true also after
6889 potentially creating a debug-only replacement.
6891 2013-01-08 Jakub Jelinek <jakub@redhat.com>
6894 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
6896 PR tree-optimization/54120
6897 * tree-vrp.c (range_fits_type_p): Don't allow
6898 src_precision < precision from signed vr to unsigned_p
6899 if vr->min or vr->max is negative.
6900 (simplify_float_conversion_using_ranges): Test can_float_p
6901 against CODE_FOR_nothing.
6903 2013-01-08 Jakub Jelinek <jakub@redhat.com>
6904 Richard Biener <rguenther@suse.de>
6907 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
6908 types instead of just INTEGER_TYPE types.
6910 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
6912 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
6915 2013-01-07 Steve Ellcey <sellcey@mips.com>
6918 * config/mips/mips.opt: Change mad to mmad to match documentation.
6920 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
6923 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
6926 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
6929 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
6930 (avr_addrspace_t): Add .section_name field.
6931 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
6933 (avr_addrspace): Same. Initialize .section_name. Remove last
6934 NULL entry. Put __memx into .progmemx.data.
6935 (progmem_section_prefix): Remove.
6936 (avr_asm_init_sections): No need to initialize progmem_section.
6937 (avr_asm_named_section): Use avr_addrspace[].section_name to get
6938 section name prefix.
6939 (avr_asm_select_section): Ditto. And use get_unnamed_section to
6940 retrieve the progmem section.
6941 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
6942 boundary to run over avr_addrspace[].
6943 (avr_register_target_pragmas): Ditto.
6945 2013-01-06 Jakub Jelinek <jakub@redhat.com>
6947 * varasm.c (output_constant_def_contents): For asan_protect_global
6948 protected strings, adjust DECL_ALIGN if needed, before testing for
6950 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
6951 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
6953 (output_object_block): For asan protected decls, emit asan padding
6954 after their contents.
6955 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
6956 (asan_finish_file): Test it here instead.
6958 2013-01-07 Nick Clifton <nickc@redhat.com>
6959 Matthias Klose <doko@debian.org>
6960 Doug Kwan <dougkwan@google.com>
6961 H.J. Lu <hongjiu.lu@intel.com>
6964 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
6966 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
6968 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
6970 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
6972 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
6974 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
6977 * doc/install.texi (Cross-Compiler-Specific Options): Document
6980 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
6982 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
6983 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
6984 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
6985 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
6986 vqmovun_high_s64): Fix source operand number and update copyright.
6988 2013-01-07 Richard Biener <rguenther@suse.de>
6991 * gimple.h (gimple_call_builtin_p): New overload.
6992 * gimple.c (validate_call): New function.
6993 (gimple_call_builtin_p): Likewise.
6994 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
6995 Use gimple_call_builtin_p.
6996 (find_func_clobbers): Likewise.
6997 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
6998 (strlen_optimize_stmt): Likewise.
7000 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
7002 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
7003 (vld1q_dup_*): Likewise.
7005 (vld1q_*): Likewise.
7006 (vld1_lane_*): Likewise.
7007 (vld1q_lane_*): Likewise.
7009 2013-01-07 Richard Biener <rguenther@suse.de>
7011 * lto-streamer.h (LTO_minor_version): Bump to 2.
7013 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
7015 * config/aarch64/aarch64-protos.h
7016 (aarch64_const_double_zero_rtx_p): Rename to...
7017 (aarch64_float_const_zero_rtx_p): ...this.
7018 (aarch64_float_const_representable_p): New.
7019 (aarch64_output_simd_mov_immediate): Likewise.
7020 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
7021 move immediate case.
7022 * config/aarch64/aarch64.c
7023 (aarch64_const_double_zero_rtx_p): Rename to...
7024 (aarch64_float_const_zero_rtx_p): ...this.
7025 (aarch64_print_operand): Allow printing of new constants.
7026 (aarch64_valid_floating_const): New.
7027 (aarch64_legitimate_constant_p): Check for valid floating-point
7029 (aarch64_simd_valid_immediate): Likewise.
7030 (aarch64_vect_float_const_representable_p): New.
7031 (aarch64_float_const_representable_p): Likewise.
7032 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
7033 (aarch64_output_simd_mov_immediate): New.
7034 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
7035 (*movdf_aarch64): Likewise.
7036 * config/aarch64/constraints.md (Ufc): New.
7037 (Y): call aarch64_float_const_zero_rtx.
7038 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
7040 2013-01-07 Richard Biener <rguenther@suse.de>
7042 PR tree-optimization/55888
7043 PR tree-optimization/55862
7044 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
7045 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
7046 not if it is contained therein.
7048 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
7050 * config/avr/t-avr: Typo.
7052 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
7055 * config/avr/t-avr: Don't automatically rebuild
7056 $(srcdir)/config/avr/t-multilib
7057 $(srcdir)/config/avr/avr-tables.opt
7058 $(srcdir)/doc/avr-mmcu.texi
7059 (avr-mcus): New phony target to build them on request.
7060 (s-avr-mlib, s-avr-mmcu-texi): Remove.
7061 * avr/avr-mcus.def: Adjust comments.
7063 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
7065 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
7067 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
7069 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
7071 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
7073 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
7075 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
7077 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
7078 to generate profiling.
7079 * config/rs6000/aix64.h (LIB_SPEC): Same.
7081 2013-01-04 Andrew Pinski <apinski@cavium.com>
7083 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
7085 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
7087 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
7089 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
7091 (ix86_expand_move): Ditto.
7092 (ix86_zero_extend_to_Pmode): Ditto.
7093 (ix86_expand_call): Ditto.
7094 (ix86_expand_special_args_builtin): Ditto.
7095 (ix86_expand_builtin): Ditto.
7097 2013-01-04 Richard Biener <rguenther@suse.de>
7099 PR tree-optimization/55862
7100 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
7101 translating them through PHI nodes.
7103 2013-01-04 Martin Jambor <mjambor@suse.cz>
7105 PR tree-optimization/55755
7106 * tree-sra.c (sra_modify_assign): Do not check that an access has no
7107 children when trying to avoid producing a VIEW_CONVERT_EXPR.
7109 2013-01-04 Marek Polacek <polacek@redhat.com>
7112 * opts.c (default_options_optimization): Clarify error message.
7114 2013-01-04 Richard Biener <rguenther@suse.de>
7117 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
7120 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7123 * config/pa/pa.md (movsi): Revert previous change.
7124 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
7127 2013-01-03 Richard Henderson <rth@redhat.com>
7129 * config/i386/i386.c (ix86_expand_move): Always assign to op1
7130 after eliminating TLS symbols.
7132 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
7135 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
7136 * graphite-poly.c (debug_gmp_value): Likewise.
7138 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
7141 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
7142 selected code model, define __code_mode_small__, __code_model_medium__,
7143 __code_model_large__, __code_model_32__ or __code_model_kernel__.
7144 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
7145 xchg temporary register with %k. Declare temporary register as
7147 [__x86_64__]: For medium and large code models, preserve %rbx register.
7149 2013-01-03 Richard Biener <rguenther@suse.de>
7151 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
7152 (dump_subscript): Adjust.
7153 (finalize_ddr_dependent): Do not dump redundant info.
7154 (analyze_siv_subscript): Adjust.
7155 (subscript_dependence_tester): Likewise.
7156 (compute_affine_dependence): Likewise.
7158 2013-01-03 Richard Biener <rguenther@suse.de>
7161 2013-01-03 Richard Biener <rguenther@suse.de>
7163 PR tree-optimization/55857
7164 * tree-vect-stmts.c (vectorizable_load): Do not setup
7165 re-alignment for invariant loads.
7167 2013-01-02 Richard Biener <rguenther@suse.de>
7169 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
7170 invariant load do not generate a vector load from the scalar location.
7172 2013-01-03 Richard Biener <rguenther@suse.de>
7174 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
7175 for not vectorizing.
7176 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
7177 not build INDIRECT_REFs, call get_name once only.
7178 (vect_create_data_ref_ptr): Likewise. Dump base object kind
7179 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
7181 2013-01-03 Richard Biener <rguenther@suse.de>
7183 PR tree-optimization/55857
7184 * tree-vect-stmts.c (vectorizable_load): Do not setup
7185 re-alignment for invariant loads.
7187 2013-01-03 Richard Biener <rguenther@suse.de>
7190 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
7191 prefer a built-in decl.
7193 2013-01-03 Jakub Jelinek <jakub@redhat.com>
7195 * gcc.c (process_command): Update copyright notice dates.
7196 * gcov.c (print_version): Likewise.
7197 * gcov-dump.c (print_version): Likewise.
7199 PR rtl-optimization/55838
7200 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
7201 iv0.step, iv1.step and step.
7203 2013-01-03 Jakub Jelinek <jakub@redhat.com>
7204 Marc Glisse <marc.glisse@inria.fr>
7206 PR tree-optimization/55832
7207 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
7208 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
7209 integer_{one,zero}_node.
7211 2013-01-03 Jakub Jelinek <jakub@redhat.com>
7214 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
7215 * var-tracking.c (reverse_op): Don't add reverse ops to
7216 VALUEs that have already
7217 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
7219 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
7221 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
7223 2013-01-02 Teresa Johnson <tejohnson@google.com>
7225 * dumpfile.c (dump_loc): Print filename with location.
7226 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
7227 new location_t parameter to emit complete unroll message with
7229 (canonicalize_loop_induction_variables): Compute loops location
7230 and pass to try_unroll_loop_completely.
7231 * loop-unroll.c (report_unroll_peel): New function.
7232 (peel_loops_completely): Use new dump format with location
7233 for main dumpfile message, and invoke report_unroll_peel on success.
7234 (decide_unrolling_and_peeling): Ditto.
7235 (decide_peel_once_rolling): Remove old dumpfile message subsumed
7236 by report_unroll_peel.
7237 (decide_peel_completely): Ditto.
7238 (decide_unroll_constant_iterations): Ditto.
7239 (decide_unroll_runtime_iterations): Ditto.
7240 (decide_peel_simple): Ditto.
7241 (decide_unroll_stupid): Ditto.
7242 * cfgloop.c (get_loop_location): New function.
7243 * cfgloop.h (get_loop_location): Declare.
7245 2013-01-02 Sriraman Tallam <tmsriram@google.com>
7247 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
7250 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7253 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
7254 BLKmode objects when EXPAND_MEMORY is specified.
7256 2013-01-02 Sriraman Tallam <tmsriram@google.com>
7258 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
7260 (fold_builtin_cpu): Do not share cpu model decls across statements.
7262 2013-01-02 Jason Merrill <jason@redhat.com>
7265 * tree.c (build_array_type_1): Revert earlier change.
7267 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
7269 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
7271 * config/aarch64/aarch64-tune.md: Re-generate.
7273 2013-01-02 Richard Biener <rguenther@suse.de>
7275 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
7276 invariant load do not generate a vector load from the scalar location.
7278 2013-01-02 Richard Biener <rguenther@suse.de>
7281 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
7282 * configure: Regenerate.
7284 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
7286 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
7287 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
7288 (expand_builtin_int_roundingfn_2): Keep the original target around
7289 for the fallback case.
7291 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
7293 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
7294 to be clear for sign changes.
7296 2013-01-01 Jan Hubicka <jh@suse.cz>
7298 * ipa-inline-analysis.c: Fix formatting.
7300 2013-01-01 Jakub Jelinek <jakub@redhat.com>
7302 PR tree-optimization/55831
7303 * tree-vect-loop.c (get_initial_def_for_induction): Use
7304 gsi_after_labels instead of gsi_start_bb.
7306 Copyright (C) 2013 Free Software Foundation, Inc.
7308 Copying and distribution of this file, with or without modification,
7309 are permitted in any medium without royalty provided the copyright
7310 notice and this notice are preserved.