1 2013-04-22 Xinliang David Li <davidxl@google.com>
3 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
4 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
5 * Makefile.in: New dependency
7 2013-04-22 Catherine Moore <clm@codesourcery.com>
8 David Daney <ddaney.cavm@gmail.com>
10 * configure.ac (gcc_cv_as_micromips_support): Use the
11 --fatal-warnings option.
12 * configure: Regenerate.
14 2013-04-22 Marek Polacek <polacek@redhat.com>
17 * tsan.c (instrument_expr): Don't instrument expression
18 in case its size is zero.
20 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
24 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
26 * config/alpha/alpha.c (TARGET_LRA_P): New define.
28 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
30 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
31 (gimple_stmt_iterator): New typedef.
32 * gimple.h (gimple_stmt_iterator): Rename to...
33 (gimple_stmt_iterator_d): ... This.
34 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
35 trees be valid for GIMPLE and GENERIC.
36 (TARGET_GIMPLE_FOLD_BUILTIN): New.
37 * gimple-fold.c (gimple_fold_call): Call target hook
39 * hooks.c (hook_bool_gsiptr_false): New.
40 * hooks.h (hook_bool_gsiptr_false): New.
41 * target.def (fold_stmt): New.
42 * doc/tm.texi: Regenerate.
44 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
47 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
48 a set sp if no stack realignment.
50 2013-04-22 Nick Clifton <nickc@redhat.com>
52 * config.gcc (tilegx-linux): Extend extra_objs rather than
54 (tilepro-linux): Likewise.
56 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
58 * config/aarch64/aarch64-builtins.c
60 (CF0, CF1, CF2, CF3, CF4, CF10): New.
61 (VAR<1-12>): Add MAP parameter.
62 (BUILTIN_*): Likewise.
63 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
64 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
65 (aarch64_ushl_n<mode>): Likewise.
66 (aarch64_sshr_n<mode>): Likewise.
67 (aarch64_ushr_n<mode>): Likewise.
68 (aarch64_<maxmin><mode>): Likewise.
69 (aarch64_sqrt<mode>): Likewise.
70 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
71 (vshr<q>_n_*): Likewise.
73 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
75 * config/aarch64/aarch64-builtins.c
76 (aarch64_simd_builtin_type_mode): Handle SF types.
78 (BUILTIN_GPF): Define.
79 (aarch64_init_simd_builtins): Handle SF types.
80 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
83 * config/aarch64/aarch64-simd.md
84 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
85 (aarch64_frecpe<mode>): New.
86 (aarch64_frecps<mode>): Likewise.
87 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
88 (v8type): Add frecp<esx>.
89 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
90 (aarch64_frecps<mode>): Likewise.
91 * config/aarch64/iterators.md (FRECP): New.
92 (frecp_suffix): Likewise.
93 * config/aarch64/arm_neon.h
94 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
96 2013-04-22 Christian Bruel <christian.bruel@st.com>
99 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
100 (REG_CLASS_NAMES): Idem.
101 (REG_CLASS_CONTENTS): Idem.
102 (REGCLASS_HAS_FP_REG): Idem.
103 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
104 (sh_conditional_register_usage): Idem.
106 2013-04-21 Jeff Law <law@redhat.com>
108 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
109 (ssa_forward_propagate_and_combine): Use it.
111 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
113 * lra.c: Update the flow chart diagram.
115 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
117 PR rtl-optimization/56847
118 * lra-constraints.c (process_alt_operands): Discourage alternative
119 with non-matche doffsettable memory constraint fro memory with
122 2013-04-19 Richard Biener <rguenther@suse.de>
124 PR tree-optimization/56982
125 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
127 * gimplify.c (gimplify_call_expr): Notice special calls.
128 (gimplify_modify_expr): Likewise.
129 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
130 abnormal control flow receivers.
131 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
132 in the same way as cfun->has_nonlocal_labels.
133 (gimple_purge_dead_abnormal_call_edges): Likewise.
134 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
135 receivers start a basic-block.
137 2013-04-19 Richard Biener <rguenther@suse.de>
139 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
141 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
142 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
143 (SLP_TREE_LOAD_PERMUTATION): Add.
144 (vect_transform_slp_perm_load): Adjust prototype.
145 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
146 (vect_free_slp_instance): Likewise.
147 (vect_create_new_slp_node): Likewise.
148 (vect_supported_slp_permutation_p): Remove.
149 (vect_slp_rearrange_stmts): Adjust.
150 (vect_supported_load_permutation_p): Likewise. Inline
151 vect_supported_slp_permutation_p here.
152 (vect_analyze_slp_instance): Compute load permutations per
153 slp node instead of per instance.
154 (vect_get_slp_defs): Adjust.
155 (vect_transform_slp_perm_load): Likewise.
156 (vect_schedule_slp_instance): Remove redundant code.
157 (vect_schedule_slp): Remove hack for PR56270, add it ...
158 * tree-vect-stmts.c (vectorizable_load): ... here, do not
159 CSE loads for SLP. Adjust.
161 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
163 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
164 spelling in two comments.
166 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
169 * config/arm/arm.c (load_multiple_sequence): Require SP
170 as base register for loads if SP is in the register list.
172 2013-04-19 Martin Jambor <mjambor@suse.cz>
174 PR tree-optimization/56718
175 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
176 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
177 and made public. Adjusted all callers.
178 (ipa_intraprocedural_devirtualization): New function.
179 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
180 (ipa_intraprocedural_devirtualization): Likewise.
181 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
183 2013-04-19 Richard Biener <rguenther@suse.de>
185 PR tree-optimization/57000
186 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
188 2013-04-19 Terry Guo <terry.guo@arm.com>
190 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
192 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
193 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
194 (cortex_m4_fmacs): Use new reservations.
195 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
197 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
199 PR rtl-optimization/56999
200 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
202 (lra_coalesce): Remove split_origin_bitmap and related code.
203 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
206 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
208 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
210 (ix86_expand_call): Remove clobbered_registers array and use
211 x86_64_ms_sysv_extra_clobbered_registers instead.
212 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
214 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
216 * config/i386/i386.md (*call_rex64_ms_sysv): Use
217 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
218 (*call_value_rex64_ms_sysv): Ditto.
220 2013-04-18 Cary Coutant <ccoutant@google.com>
222 * dwarf2out.c (output_pubnames): Check die_perennial_p of
223 parent instead of die_mark.
225 2013-04-18 Diego Novillo <dnovillo@google.com>
227 * gimple.c (create_gimple_tmp): New.
228 (get_expr_type): New.
230 (build_type_cast): New.
231 * gimple.h (enum ssa_mode): Define.
232 (gimple_seq_set_location): New.
233 * asan.c (build_check_stmt): Change some gimple_build_* calls
234 to use build_assign and build_type_cast.
236 2013-04-18 Richard Biener <rguenther@suse.de>
238 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
239 handle negative step. Remove redundant checks.
240 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
241 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
242 for negative step and grouped loads fail to vectorize.
244 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
246 * emit-rtl.c (reset_insn_used_flags): New function.
247 (reset_all_used_flags): Use it.
248 (verify_insn_sharing): New function.
249 (verify_rtl_sharing): Fix verification for SEQUENCEs.
251 2013-04-18 Jakub Jelinek <jakub@redhat.com>
253 PR tree-optimization/56984
254 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
255 and (x >> M) >= N don't register any assertion if N << M is the
258 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
260 * lower-subreg.c (resolve_simple_move): If called self-recursive,
261 do not delete_insn insns that have not yet been emitted, only
262 unlink them with remove_insn.
263 * df-scan.c (df_insn_delete): Revert r197492.
265 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
267 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
268 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
270 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
272 * config/arm/arm.md (movsicc_insn): Convert define_insn into
273 define_insn_and_split.
274 (and_scc,ior_scc,negscc): Likewise.
275 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
277 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
279 * config/arm/arm.c (use_return_insn): Return 0 for targets that
280 can benefit from using a sequence of LDRD instructions in epilogue
281 instead of a single LDM instruction.
283 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
286 * doc/extend.texi: Fix typo.
288 2013-04-17 Richard Biener <rguenther@suse.de>
290 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
291 (vect_build_slp_tree): ... here.
292 (vect_build_slp_tree_1): Compute which stmts of the SLP group
293 match. Remove special-casing of mismatched complex loads.
294 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
295 re-try the match with swapped commutative operands.
296 (vect_supported_load_permutation_p): Remove special-casing of
297 mismatched complex loads.
298 (vect_analyze_slp_instance): Adjust.
300 2013-04-17 Richard Biener <rguenther@suse.de>
302 PR rtl-optimization/56921
303 * cfgloop.h (struct loop): Add simple_loop_desc member.
304 (struct niter_desc): Mark with GTY(()).
305 (simple_loop_desc): Do not use aux field but simple_loop_desc.
306 * loop-iv.c (get_simple_loop_desc): Likewise.
307 (free_simple_loop_desc): Likewise.
310 2013-04-16 Richard Biener <rguenther@suse.de>
312 PR rtl-optimization/56921
313 * loop-init.c (pass_rtl_move_loop_invariants): Add
314 TODO_do_not_ggc_collect to todo_flags_finish.
315 (pass_rtl_unswitch): Same.
316 (pass_rtl_unroll_and_peel_loops): Same.
317 (pass_rtl_doloop): Same.
319 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
321 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
322 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
323 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
325 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
326 * tree-streamer.c (record_common_node): Adjust reference in comment.
328 2013-04-17 Terry Guo <terry.guo@arm.com>
330 * config/arm/cortex-m4.md: Add a new bypass.
332 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
334 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
336 (*subs_<optab><mode>_multp2): New pattern.
337 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
338 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
340 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
342 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
343 (*subs_mul_imm_<mode>): New pattern.
345 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
348 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
349 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
350 (vsx_movti_32bit): Change j->wa to O->wa.
352 2013-04-16 Richard Biener <rguenther@suse.de>
354 PR rtl-optimization/56921
355 * loop-init.c (pass_rtl_move_loop_invariants): Add
356 TODO_do_not_ggc_collect to todo_flags_finish.
357 (pass_rtl_unswitch): Same.
358 (pass_rtl_unroll_and_peel_loops): Same.
359 (pass_rtl_doloop): Same.
361 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
363 * config/arm/arm.c (emit_multi_reg_push): New declaration
364 for an existing function.
365 (arm_emit_strd_push): New function.
366 (arm_expand_prologue): Used here.
367 (arm_emit_ldrd_pop): New function.
368 (arm_expand_epilogue): Used here.
369 (arm_get_frame_offsets): Update condition.
370 (arm_emit_multi_reg_pop): Add a special case for load of a single
371 register with writeback.
373 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
375 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
378 2013-04-16 Richard Biener <rguenther@suse.de>
380 PR tree-optimization/56756
381 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
382 (first_mem_ref_loc): New.
383 (execute_sm): Place the load temporarily before a previous
384 access instead of in the latch edge to ensure its SSA dependencies
385 are defined at points dominating the load.
387 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
389 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
390 correct fix by moving header and footer insn to the footer of
391 the merged basic block. Clear BB_END of the merged-away block.
394 * emit-rtl.c (make_note_raw): New function.
395 (link_insn_into_chain): New static inline function.
397 (add_insn_before, add_insn_after): Factor insn chain linking code...
398 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
399 using link_insn_into_chain.
400 (note_outside_basic_block_p): New helper function for emit_note_after
401 and emit_note_before.
402 (emit_note_after): Use nobb variant of add_insn_after if the note
403 should not be contained in a basic block.
404 (emit_note_before): Use nobb variant of add_insn_before if the note
405 should not be contained in a basic block.
406 (emit_note_copy): Use make_note_raw.
407 (emit_note): Likewise.
408 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
409 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
410 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
411 the moved barrier the tail of the basic block it follows.
412 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
414 2013-04-15 Jakub Jelinek <jakub@redhat.com>
416 PR tree-optimization/56962
417 * gimple-ssa-strength-reduction.c (record_increment): Only set
418 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
419 either rhs1 or rhs2 is equal to c->base_expr.
421 2013-04-15 Richard Biener <rguenther@suse.de>
423 PR tree-optimization/56933
424 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
426 (GROUP_READ_WRITE_DEPENDENCE): Remove.
427 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
428 * tree-vect-data-refs.c (vect_analyze_group_access): Move
430 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
432 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
433 GROUP_READ_WRITE_DEPENDENCE.
435 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
437 * emit-rtl.c (reset_all_used_flags): New function.
438 (verify_rtl_sharing): Call reset_all_used_flags before and after
439 performing the checks.
441 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
443 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
444 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
445 * config/arm/constraints.md (De): New constraint.
446 * config/arm/neon.md (anddi3_neon): Delete.
447 (neon_vand<mode>): Expand to standard anddi3 pattern.
448 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
449 Move earlier in the file.
450 (neon_inv_logic_op2): Likewise.
451 (arm_anddi_operand_neon): New predicate.
453 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
455 * configure.ac (gcc_cv_ld_as_needed): Set
456 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
457 Use -z ignore, -z record on *-*-solaris2*.
458 (HAVE_LD_AS_NEEDED): Update comment.
459 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
460 * configure: Regenerate.
461 * config.in: Regenerate.
462 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
463 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
464 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
465 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
466 equivalents. Fix markup.
467 * doc/tm.texi: Regenerate.
469 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
471 * config/i386/i386.opt: New option mstack-protector-guard=.
472 * config/i386/i386-opts.h: Add enum stack_protector_guard.
473 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
474 TARGET_SSP_TLS_GUARD.
475 * config/i386/i386.c (ix86_option_override_internal): Set
476 ix86_stack_protector_guard.
477 * config/i386/i386.md (stack_protect_set): Enable for
478 TARGET_SSP_TLS_GUARD only.
479 (stack_protect_set_<mode>): Ditto.
480 (stack_protect_test): Ditto.
481 (stack_protect_test_<mode>): Ditto.
482 * doc/invoke.texi (i386 Option): Document.
484 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
487 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
488 (S_MODES): Set H_MODE bit.
489 (SF_MODES): Set only S_MODE and SF_MODE bits.
490 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
491 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
492 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
493 <MODE_FLOAT>: Likewise.
495 2013-04-15 Joey Ye <joey.ye@arm.com>
497 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
499 2013-04-15 Joey Ye <joey.ye@arm.com>
501 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
503 (thumb_far_jump_used_p): Count instruction size and set
506 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
508 * reorg.c (fill_simple_delay_slots): Reindent block of code.
509 * resource.c (mark_target_live_regs): Reformat conditional block.
511 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
513 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
514 notes, they are emitted only just before final.
515 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
517 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
519 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
520 * cfgrtl.c (delete_insn): Call it here instead.
521 * lra-spills.c (lra_final_code_change): Use delete_insn.
522 * haifa-sched.c (sched_remove_insn): Likewise.
523 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
524 returning to the nop pool.
525 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
526 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
528 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
530 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
531 * doc/tm.texi: Regenerated.
533 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
535 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
538 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
540 * df-core.c (df_find_def): Compare register numbers.
541 (df_find_use): Likewise.
543 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
546 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
547 lra_in_progress for return.
549 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
551 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
552 define_insn into define_insn_and_split and emit movsicc patterns.
554 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
556 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
558 2013-04-12 Richard Biener <rguenther@suse.de>
560 * tree-pass.h (TODO_do_not_ggc_collect): New.
561 * passes.c (execute_one_ipa_transform_pass): Honor
562 TODO_do_not_ggc_collect.
563 (execute_one_pass): Likewise.
566 2013-04-10 Richard Biener <rguenther@suse.de>
568 * passes.c (init_optimization_passes): Remove reload pass.
569 * ira.c (do_reload): Merge into ...
571 (rest_of_handle_reload): Remove.
572 (pass_reload): Likewise.
573 * config/i386/i386.c (ix86_option_override): Refer to ira instead
574 of reload for vzeroupper pass placement.
576 2013-04-12 Jakub Jelinek <jakub@redhat.com>
578 PR tree-optimization/56918
579 PR tree-optimization/56920
580 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
581 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
582 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
583 use wide_mul_with_sign method.
585 2013-04-12 Richard Biener <rguenther@suse.de>
587 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
588 not be considered a gimple constant.
590 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
592 * fold-const.c (const_binop): Handle vector shifts by a scalar.
593 (fold_binary_loc): Call const_binop also for mixed vector-scalar
596 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
597 Jakub Jelinek <jakub@redhat.com>
599 * opts.c: Include diagnostic-color.h.
600 (common_handle_option): Handle OPT_fdiagnostics_color_.
601 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
602 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
603 (diagnostic-color.o): New.
604 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
605 (diagnostic_color_rule): New enum.
606 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
607 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
609 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
610 either NULL, or color kind.
611 * diagnostic-color.c: New file.
612 * diagnostic-color.h: New file.
613 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
615 * doc/invoke.texi (-fdiagnostics-color): Document.
616 * pretty-print.h (pp_show_color): Define.
617 (struct pretty_print_info): Add show_color field.
618 * diagnostic.c: Include diagnostic-color.h.
619 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
620 macros. Colorize error:, warning: etc. strings and also the location
622 (diagnostic_show_locus): Colorize the caret line.
623 * pretty-print.c: Include diagnostic-color.h.
624 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
625 inside of %< %> quotes or quoted through q format modifier.
627 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
629 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
631 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
633 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
635 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
638 2013-04-11 Marek Polacek <polacek@redhat.com>
640 PR tree-optimization/48184
641 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
643 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
645 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
646 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
647 (skip_simple_arithmetic): Tidy up.
648 * tree.h (skip_simple_constant_arithmetic): Declare.
650 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
652 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
654 2013-04-11 Richard Biener <rguenther@suse.de>
656 * tree-vect-loop.c (get_initial_def_for_induction): Properly
657 generate vector constants.
659 2013-04-11 Richard Biener <rguenther@suse.de>
661 PR tree-optimization/56878
662 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
663 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
665 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
666 Prefer to align the DR with the most invariant base address.
668 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
670 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
673 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
675 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
676 floating-point vector comparisons against 0.
678 2013-04-11 Jakub Jelinek <jakub@redhat.com>
680 PR tree-optimization/56899
681 * fold-const.c (extract_muldiv_1): Apply distributive law
682 only if TYPE_OVERFLOW_WRAPS (ctype).
684 2013-04-11 Bin Cheng <bin.cheng@arm.com>
687 * ira-costs.c (scan_one_insn): Check whether the source rtx of
688 loading has side effect.
690 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
692 * config/sparc/sparc.c: Include tree-pass.h.
693 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
694 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
695 head of file. Change return type. Split off gate function.
696 (sparc_gate_work_around_errata): New function.
697 (pass_work_around_errata): New pass definition.
698 (insert_pass_work_around_errata) New pass insert definition to
699 insert pass_work_around_errata just after delayed-branch scheduling.
700 (sparc_option_override): Insert the pass.
701 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
703 2013-04-10 David S. Miller <davem@davemloft.net>
705 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
708 * target.def (cstore_mode): New hook.
709 * target.h: Include insn-codes.h
710 * targhooks.c: Likewise.
711 (default_cstore_mode): New function.
712 * targhooks.h: Declare it.
713 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
714 * doc/tm.texi: Rebuild.
715 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
716 target hook, rather than inspecting the insn_data.
717 * config/sparc/sparc.c (sparc_cstore_mode): New function.
718 (TARGET_CSTORE_MODE): Redefine.
719 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
721 * config/sparc/predicates.md (cstore_result_operand): New special
723 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
724 Use it for operand 0.
725 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
726 (*snesi_special): Likewise.
727 (*snesi_zero): Likewise.
728 (*seqsi_zero): Likewise.
729 (*sltu_insn): Likewise.
730 (*sgeu_insn): Likewise.
731 (*seqdi_special): Make operand 0 and comparison operation be of
733 (*snedi_special): Likewise.
734 (*snedi_special_vis3): Likewise.
735 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
736 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
737 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
738 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
739 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
740 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
741 (*sltu_extend_sp64): Likewise.
742 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
743 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
744 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
745 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
746 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
748 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
750 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
751 (aarch64_start_file): Use the new function.
753 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
754 Jason Merrill <jason@redhat.com>
756 * common.opt: Add -gdwarf.
757 * opts.c (common_handle_option): Handle it.
758 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
760 2013-04-10 Richard Biener <rguenther@suse.de>
762 * passes.c (execute_todo): Do not call ggc_collect conditional here.
763 (execute_one_ipa_transform_pass): But unconditionally here.
764 (execute_one_pass): And here.
765 (init_optimization_passes): Remove reload pass.
766 * tree-pass.h (TODO_ggc_collect): Remove.
767 (pass_reload): Likewise.
768 * ira.c (do_reload): Merge into ...
770 (rest_of_handle_reload): Remove.
771 (pass_reload): Likewise.
772 * config/i386/i386.c (ix86_option_override): Refer to ira instead
773 of reload for vzeroupper pass placement.
774 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
775 and todo_flags_finish of all passes.
777 2013-04-10 Richard Biener <rguenther@suse.de>
779 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
780 first_const_oprnd field, rename first_def_type to first_op_type.
781 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
782 (vect_get_and_check_slp_defs): Always use the type of the
783 operand. Allow mixed vect_external_def, vect_constant_def types.
784 (vect_get_constant_vectors): Handle mixed vect_external_def,
785 vect_constant_def types.
787 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
789 PR tree-optimization/55524
790 * tree-ssa-math-opts.c
791 (convert_mult_to_fma): Don't use an fms construct
792 when we don't have an fms operation, but fnma, and it looks
793 likely that we'll be able to use the latter.
795 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
797 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
799 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
800 inline fail caused by overwritable functions.
802 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
804 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
805 unnecessary bits in the constant power of two case.
807 2013-04-10 Richard Biener <rguenther@suse.de>
809 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
810 broken code swapping operands.
811 (vect_build_slp_tree): Do not compute load permutations here.
812 (vect_analyze_slp_instance): Compute load permutations here,
813 after building the SLP tree.
815 2013-04-09 Christian Bruel <christian.bruel@st.com>
817 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
818 of next/prev_real_insn.
820 2013-04-09 Jan Hubicka <jh@suse.cz>
822 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
823 Drop aliased parameter.
824 (function_and_variable_visibility): Do not handle alias pairs.
825 * cgraph.c (varpool_externally_visible_p): Update prototype.
826 * varpool.c (varpool_add_new_variable): Update.
828 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
830 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
832 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
834 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
836 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
838 2013-04-09 Marek Polacek <polacek@redhat.com>
840 PR tree-optimization/48762
841 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
843 2013-04-09 Richard Biener <rguenther@suse.de>
845 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
847 (vect_build_slp_tree): Likewise.
848 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
849 calculating the cost of a SLP instance.
850 (vect_analyze_slp_instance): Use it from here, after building
853 2013-04-09 Jakub Jelinek <jakub@redhat.com>
856 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
857 expand_omp_for_static_chunk): Use simple_p = true in
858 force_gimple_operand_gsi calls when assigning to addressable decls.
860 2013-04-09 Jeff Law <law@redhat.com>
862 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
863 when the boolean was created by converting a wider object which
866 2013-04-09 Richard Biener <rguenther@suse.de>
868 * tree-vectorizer.h (slp_void_p): Remove.
869 (slp_tree): Typedef before _slp_tree declaration.
870 (struct _slp_tree): Use a vector of slp_tree as children.
871 (vect_get_place_in_interleaving_chain): Remove.
872 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
874 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
876 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
877 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
878 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
879 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
880 Use slp_node instead of slp_void_p and adjust.
882 2013-04-09 Richard Biener <rguenther@suse.de>
884 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
885 work that is not necessary.
887 2013-04-09 Jakub Jelinek <jakub@redhat.com>
889 PR tree-optimization/56854
890 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
891 forward into clobber stmts if it would change MEM_REF lhs into
894 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
896 * tree.c (type_hash_lookup, type_hash_add): Make static.
897 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
899 2013-04-09 Richard Biener <rguenther@suse.de>
901 * tree.h (unsave_expr_now): Remove.
902 * tree-inline.c (mark_local_for_remap_r): Remove.
903 (unsave_expr_1): Likewise.
904 (unsave_r): Likewise.
905 (unsave_expr_now): Likewise.
906 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
907 (propagate_tree_value): Likewise.
909 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
911 * doc/rtl.texi (sequence): Rewrite documentation to match the
912 current use of SEQUENCE rtl objects.
913 * rtl.def (SEQUENCE): Likewise.
915 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
916 Update documentation.
917 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
918 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
920 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
922 2013-04-08 Teresa Johnson <tejohnson@google.com>
924 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
925 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
927 (estimate_edge_size_and_time): Add comment to suggest using rounding
929 (estimate_node_size_and_time): Ditto.
930 (remap_edge_change_prob): Use helper rounding divide methods.
931 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
932 (gimple_mod_pow2_value_transform): Ditto.
933 (gimple_mod_subtract_transform): Ditto.
934 (gimple_ic_transform): Ditto.
935 (gimple_stringops_transform): Ditto.
936 * stmt.c (conditional_probability): Ditto.
937 (emit_case_dispatch_table): Ditto.
938 * lto-cgraph.c (merge_profile_summaries): Ditto.
939 * tree-optimize.c (execute_fixup_cfg): Ditto.
940 * cfgcleanup.c (try_forward_edges): Ditto.
941 * cfgloopmanip.c (scale_loop_profile): Ditto.
943 (duplicate_loop_to_header_edge): Ditto.
944 (lv_adjust_loop_entry_edge): Ditto.
945 * tree-vect-loop.c (vect_transform_loop): Ditto.
946 * profile.c (compute_branch_probabilities): Ditto.
947 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
948 * lto-streamer-in.c (input_cfg): Ditto.
949 * gimple-streamer-in.c (input_bb): Ditto.
950 * ipa-cp.c (update_profiling_info): Ditto.
951 (update_specialized_profile): Ditto.
952 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
953 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
955 * sched-rgn.c (compute_dom_prob_ps): Ditto.
956 (compute_trg_info): Ditto.
957 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
958 (purge_dead_edges): Ditto.
959 * loop-unswitch.c (unswitch_loop): Ditto.
960 * cgraphclones.c (cgraph_clone_edge): Ditto.
961 (cgraph_clone_node): Ditto.
962 * tree-inline.c (copy_bb): Ditto.
963 (copy_edges_for_bb): Ditto.
964 (initialize_cfun): Ditto.
965 (copy_cfg_body): Ditto.
966 (expand_call_inline): Ditto.
968 2013-04-08 Kai Tietz <ktietz@redhat.com>
970 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
971 TARGET_CYGWIN64 by TARGET_64BIT.
973 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
975 * config/epiphany/epiphany.md (GPR_1): New constant.
976 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
977 * config/epiphany/epiphany.c (gen_compare_reg):
978 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
980 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
981 Don't require being called during rtl expansion; If y operlaps r0,
983 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
984 (epiphany_expand_epilogue): Likewise.
986 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
987 Don't use CC_FPmode for ORDERED / UNORDERED.
988 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
990 * config/epiphany/constraints.md (CnL): New constraint.
991 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
992 * config/epiphany/predicates.md (add_operand): Allow 1024.
994 * config/epiphany/epiphany.md (logical_op): New code iterator.
995 (op_mnc): New code attribute.
996 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
997 (mov_f+1, mov_f+2): New peephole2 patterns.
999 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
1000 (cstoresi4): Also allow re-use of zero result when doing a NE
1001 comparison to a non-zero operand.
1002 Use (clobber (scratch)) for first insn if the gpr output is not needed.
1004 * config/epiphany/epiphany.md (<insn_opname>v2si3):
1005 Use gen_addsi3_i / gen_subsi3_i.
1007 2013-04-08 Jakub Jelinek <jakub@redhat.com>
1011 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
1012 contain anything but clobbers, at most one __builtin_stack_restore,
1013 optionally debug stmts and final resx, and if it has at least one
1014 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
1015 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
1016 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
1017 which isn't defaut definition, remove them.
1018 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
1019 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
1020 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
1021 with MEM_REF LHS with SSA_NAME address.
1023 2013-04-08 Jeff Law <law@redhat.com>
1025 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
1027 2013-04-08 Richard Biener <rguenther@suse.de>
1029 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
1031 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
1032 determined vector type.
1033 (vect_analyze_data_refs): Likewise.
1034 (vect_get_new_vect_var): Adjust.
1035 (vect_create_destination_var): Preserve SSA name versions.
1036 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
1037 not dump anything here.
1039 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
1041 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
1042 Add member lr_slot_known.
1043 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
1045 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
1046 Remove code that sets lr_slot_offset according to what a previous
1047 version of epiphany_emit_save_restore used to do.
1048 (epiphany_emit_save_restore): When doing an lr save or restore,
1049 set/verify lr_slot_known and lr_slot_offset.
1051 2013-04-08 Xinyu Qi <xyqi@marvell.com>
1054 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
1057 2013-04-08 Richard Biener <rguenther@suse.de>
1059 * alias.c (find_base_term): Fix thinko in previous change.
1061 2013-04-08 Jakub Jelinek <jakub@redhat.com>
1063 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
1064 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
1065 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
1066 if possible to compute val.
1067 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
1068 For QImode integers don't require anything about precision. Use
1069 const_with_all_bytes_same to find out if the constant doesn't have
1070 repeated bytes in it.
1072 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1074 * config/s390/s390.c (s390_expand_insv): Only accept insertions
1077 2013-04-08 Marek Polacek <polacek@redhat.com>
1079 PR rtl-optimization/48182
1080 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
1083 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1086 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
1087 nuses, make sure we have a label.
1089 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1092 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
1093 (rs6000_emit_swdiv_low_precision): Remove.
1094 (rs6000_emit_swdiv): Rewrite to handle between one and four
1095 iterations of Newton-Raphson generally; modify required number of
1096 iterations for some cases.
1097 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
1099 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
1101 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
1102 set-but-unused variable.
1104 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
1105 basic blocks of released function bodies garbage-collectable.
1107 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
1108 (struct rtl_opt_pass): Add TODO_df_finish.
1110 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
1112 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
1114 * config/arm/constraints.md (q): New constraint.
1115 * config/arm/ldrdstrd.md: New file.
1116 * config/arm/arm.md (ldrdstrd.md) New include.
1117 (arm_movdi): Use "q" instead of "r" constraint
1118 for double-word memory access.
1119 (movdf_soft_insn): Likewise.
1120 * config/arm/vfp.md (movdi_vfp): Likewise.
1121 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
1122 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
1123 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
1124 (mem_ok_for_ldrd_strd): Likewise.
1125 (output_move_double): Update assertion.
1127 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
1129 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
1131 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
1133 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
1134 define_insn_and_split.
1135 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
1137 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
1139 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
1140 define_insn_and_split.
1141 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
1142 (shiftsi3_compare): New pattern.
1144 * config/arm/unspecs.md (UNSPEC_RRX): New.
1146 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
1148 * config/arm/arm.md (negdi_extendsidi): New pattern.
1149 (negdi_zero_extendsidi): Likewise.
1151 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
1153 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
1154 define_insn_and_split.
1155 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
1156 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
1158 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
1160 * config/arm/arm.md (arm_subdi3): Convert define_insn into
1161 define_insn_and_split.
1162 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
1163 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
1165 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
1167 * config/arm/arm.md (subsi3_carryin): New pattern.
1168 (subsi3_carryin_const): Likewise.
1169 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
1170 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
1172 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
1174 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
1176 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
1178 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
1179 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
1181 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1183 * config/arm/arm.c (arm_expand_builtin): Change fcode
1184 type to unsigned int.
1186 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1188 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
1190 2013-04-04 Ian Lance Taylor <iant@google.com>
1192 * doc/standards.texi (Standards): The Go frontend supports the Go 1
1195 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
1198 * df-scan.c (df_insn_delete): Disable failing assert.
1200 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1202 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
1203 New function prototype.
1204 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
1205 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
1206 (arm_builtin_vectorized_function): New function.
1208 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1210 * config/arm/arm_neon_builtins.def: New file.
1211 * config/arm/arm.c (neon_builtin_data): Move contents to
1212 arm_neon_builtins.def.
1213 (enum arm_builtins): Include neon builtin definitions.
1214 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
1215 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
1217 2013-04-04 Marek Polacek <polacek@redhat.com>
1219 PR tree-optimization/48186
1220 * predict.c (maybe_hot_frequency_p): Return false if
1221 HOT_BB_FREQUENCY_FRACTION is 0.
1222 (cgraph_maybe_hot_edge_p): Likewise.
1224 2013-04-04 Richard Biener <rguenther@suse.de>
1226 PR tree-optimization/56826
1227 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
1230 2013-04-04 Richard Biener <rguenther@suse.de>
1232 PR tree-optimization/56213
1233 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
1234 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
1236 2013-04-04 Richard Biener <rguenther@suse.de>
1238 PR tree-optimization/56837
1239 * tree-loop-distribution.c (classify_partition): For non-zero
1240 values require that the value has the same precision as its
1241 mode to be useful as memset value.
1243 2013-04-03 Nick Clifton <nickc@redhat.com>
1245 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
1246 (fmssf4): Use fmsf.s on E3V5 architectures.
1247 (fnmasf4): Use fnmaf.s on E3V5 architectures.
1248 (fnmssf4): Use fnmsf.s on E3V5 architectures.
1250 2013-04-03 Jeff Law <law@redhat.com>
1252 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
1253 (lra-eliminations.o): Likewise.
1255 2013-04-03 Teresa Johnson <tejohnson@google.com>
1257 * gcov-io.c (compute_working_sets): Moved most of body of old
1258 compute_working_sets here from profile.c.
1259 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
1260 (gcov_working_set_t): Moved typedef here from basic-block.h
1261 (compute_working_set): Declare.
1262 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
1263 (get_working_sets): Renamed from compute_working_set,
1264 replace most of body with call to new compute_working_sets.
1265 (get_exec_counts): Replace call to compute_working_sets
1266 to get_working_sets.
1267 * profile.h (get_working_sets): Renamed from compute_working_set.
1268 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
1269 to get_working_sets.
1270 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
1271 * gcov-dump.c (dump_working_sets): New function.
1273 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
1275 * hwint.c (sext_hwi, zext_hwi): New functions.
1276 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
1277 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
1278 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
1279 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
1280 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
1281 (sext_hwi, zext_hwi): New functions.
1283 2013-04-03 Jeff Law <law@redhat.com>
1285 PR tree-optimization/56799
1286 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
1287 back test for widening conversion erroneously dropped in prior change.
1289 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1292 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
1293 instead of next_real_insn.
1295 2013-04-03 Marek Polacek <polacek@redhat.com>
1298 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
1300 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1303 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
1305 (thumb1_output_casesi): Likewise.
1306 (thumb2_output_casesi): Likewise.
1308 2013-04-03 Richard Biener <rguenther@suse.de>
1310 PR tree-optimization/56817
1311 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
1313 (tree_unroll_loops_completely_1): ... new function to manually
1314 walk the loop tree, properly defering outer loops of unrolled
1315 loops to later iterations.
1317 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
1319 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
1320 (vectorizable_load): Likewise.
1321 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
1322 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
1324 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
1326 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
1329 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1331 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
1333 2013-04-03 Bin Cheng <bin.cheng@arm.com>
1335 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
1337 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
1339 PR tree-optimization/56790
1340 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
1343 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
1345 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
1347 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
1348 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
1351 2013-04-03 Jakub Jelinek <jakub@redhat.com>
1354 * tree.h (force_folding_builtin_constant_p): New decl.
1355 * builtins.c (force_folding_builtin_constant_p): New variable.
1356 (fold_builtin_constant_p): Fold immediately also if
1357 force_folding_builtin_constant_p.
1359 2013-04-03 Richard Biener <rguenther@suse.de>
1361 PR tree-optimization/56812
1362 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
1363 DRs of the same interleaving chain are independent.
1365 2013-04-02 Jason Merrill <jason@redhat.com>
1367 * gdbinit.in (pbb): Use debug fn.
1369 2013-04-02 Lawrence Crowl <crowl@google.com>
1371 * sese.h (struct ivtype_map_elt_s): Remove unused.
1372 (extern debug_ivtype_map): Remove unused.
1373 (extern eq_ivtype_map_elts): Remove unused.
1374 * sese.c (debug_ivtype_map): Removed unused.
1375 (debug_ivtype_map_1): Removed unused.
1376 (debug_ivtype_elt): Remove unused.
1377 (eq_ivtype_map_elts): Remove unused.
1380 2013-04-02 Kai Tietz <ktietz@redhat.com>
1383 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
1384 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
1385 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
1387 (legitimize_pe_coff_symbol): Likewise.
1388 (is_imported_p): New helper-function.
1389 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
1390 for Windows x64 targets.
1391 (ix86_expand_prologue): Optimize for pe-coff targets.
1392 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
1393 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
1394 medium/large code-model.
1395 (legitimize_pic_address): Likewise.
1396 (legitimize_tls_address): Likewise.
1397 (ix86_expand_call): Likewise.
1398 (x86_output_mi_thunk): Likewise.
1399 (get_dllimport_decl): Add new beimport argument.
1400 (construct_plt_address): Don't assert for x64 pe-coff targets.
1401 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
1403 (SYMBOL_FLAG_STUBVAR): New macro.
1404 (SYMBOL_REF_STUBVAR_P): Likewise.
1405 * config/i386/winnt.c (stub_list): New structure.
1406 (stub_head): New local variable.
1407 (i386_pe_record_stub): New function.
1408 (i386_pe_file_end): Emit refptr-stubs.
1410 2013-04-02 Jakub Jelinek <jakub@redhat.com>
1412 PR rtl-optimization/56745
1413 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
1414 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
1417 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
1418 and both of them are MEM_REFs, just compare first argument for
1419 equality and attempt to deal even with differing offsets.
1422 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
1423 of gimple_clobber_p to be MEM_REF.
1424 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
1425 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
1426 after gimplification.
1427 * asan.c (get_mem_ref_of_assignment): Don't instrument
1428 gimple_clobber_p stmts.
1429 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
1430 gimple_clobber_p stmt if they have MEM_REF lhs and
1431 are dead because of another gimple_clobber_p stmt.
1432 * tree-ssa-live.c (clear_unused_block_pointer): Treat
1433 gimple_clobber_p stmts like debug stmts.
1434 (remove_unused_locals): Remove clobbers with MEM_REF lhs
1435 that refer to unused VAR_DECLs or uninitialized values.
1436 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
1437 gimple_clobber_p stmts if they refer to removed parameters.
1438 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
1441 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
1443 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
1444 using SWI48 mode attribute.
1446 2013-04-02 Wei Mi <wmi@google.com>
1448 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
1449 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
1450 *<rotate_insn><mode>3_mask in i386.md.
1452 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
1454 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
1456 2013-04-02 Richard Biener <rguenther@suse.de>
1458 PR tree-optimization/56778
1459 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
1460 Runtime alias tests are not supported for gather loads.
1461 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
1462 stmts referenced from SSA operands before updating SSA form.
1464 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
1465 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1467 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
1468 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
1469 * config/arm/cortex-a53.md: New file.
1470 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
1471 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
1472 * config/arm/arm.c (arm_issue_rate): Likewise.
1473 * config/arm/arm-tune.md: Regenerate
1474 * config/arm/arm-tables.opt: Regenerate.
1475 * config/arm/arm-cores.def: Add cortex-a53.
1477 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
1479 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
1482 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
1484 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
1485 scalar load/store operations using B/H registers.
1486 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
1488 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
1490 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
1492 * config/aarch64/aarch64.c
1493 (aarch64_simd_scalar_immediate_valid_for_move): New.
1494 * config/aarch64/aarch64-protos.h
1495 (aarch64_simd_scalar_immediate_valid_for_move): New.
1496 * config/aarch64/constraints.md (Dh, Dq): New.
1497 * config/aarch64/iterators.md (hq): New.
1499 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
1501 * reorg.c (get_branch_condition): Deal with conditional returns.
1502 (fill_simple_delay_slots): Remove dead code dealing with jumps.
1504 2013-04-01 Wei Mi <wmi@google.com>
1506 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
1507 Truncate operand 2 using %b asm operand modifier.
1508 (*<shift_insn><mode>3_mask): Ditto.
1509 (*<rotate_insn><mode>3_mask): Ditto.
1511 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
1514 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
1516 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
1518 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
1520 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
1522 2013-03-30 Lawrence Crowl <crowl@google.com>
1524 * dse.c (clear_alias_sets): Remove never set.
1525 (disqualified_clear_alias_sets): Remove never set.
1526 (clear_alias_mode_pool): Remove never set.
1527 (dse_step0): Remove condition that is never true.
1528 (canon_address): Remove condition that is never true.
1529 (dse_step7): Remove condition that is never true.
1530 (rest_of_handle_dse): Remove condition that is never true.
1531 (rest_of_handle_dse::did_global): Remove never read from above.
1532 (dse_step2_spill): Remove never called from above.
1533 (dse_step5_spill): Remove never called from above.
1535 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
1537 * doc/md.texi (Standard Names) <casesi>: Update documentation for
1538 JUMP_TABLE_DATA changes.
1539 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
1540 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
1541 (Insns) <jump_table_data>: New entry.
1542 * doc/tm.texi: Regenerate.
1544 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
1546 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
1547 for table jump at the end of a basic block using tablejump_p.
1548 * targhooks.c (default_invalid_within_doloop): Likewise.
1549 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
1550 target hook implementation that is identical to the default hook.
1551 (rs6000_invalid_within_doloop): Remove.
1553 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
1554 unused variable from tablejump_p call.
1556 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
1557 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
1558 (INSN_DELETED_P): Likewise.
1559 (emit_jump_table_data): New prototype.
1560 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
1561 after 4th as unused.
1562 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
1563 * sched-vis.c (print_insn): Likewise.
1564 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
1565 insn for compatibility with back ends that use next_active_insn to
1566 identify jump table data.
1567 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
1568 (remove_insn): Likewise.
1569 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
1571 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
1572 (emit_jump_table_data): New function.
1574 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
1575 basic block, a JUMP_TABLE_DATA never is.
1576 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
1577 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
1578 off from code handling real insns.
1579 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
1580 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
1581 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
1582 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
1583 is not a NONDEBUG_INSN_P.
1584 * ira-costs.c (scan_one_insn): Likewise.
1585 * jump.c (mark_all_labels): Likewise.
1586 (mark_jump_label_1): Likewise.
1587 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
1588 * lra.c (get_insn_freq): Expect all insns reaching here to be in
1590 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
1591 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
1592 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
1593 JUMP_TABLE_DATA_P insns.
1594 (calculate_elim_costs_all_insns): Likewise.
1595 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
1596 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
1597 (delete_output_reload): Code style fixups.
1598 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
1599 insn flags on this non-insn.
1600 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
1601 as scheduling barriers, for pre-change compatibility.
1602 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
1603 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
1605 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
1606 redundant JUMP_TABLE_DATA_P test.
1607 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
1608 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
1609 (frv_for_each_packet): Likewise.
1610 * config/i386/i386.c (min_insn_size): Likewise.
1611 (ix86_avoid_jump_mispredicts): Likewise.
1612 * config/m32r/m32r.c (m32r_is_insn): Likewise.
1613 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
1614 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
1615 (mips16_insn_length): Robustify.
1616 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
1617 (mips16_split_long_branches): Likewise.
1618 * config/pa/pa.c (pa_combine_instructions): Likewise.
1619 * config/rs6000/rs6000.c (get_next_active_insn): Treat
1620 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
1621 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
1622 as contributing to pool range lengths.
1623 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
1624 Remove redundant JUMP_TABLE_DATA_P test.
1625 (sh_loop_align): Likewise.
1626 (split_branches): Likewise.
1627 (sh_insn_length_adjustment): Likewise.
1628 * config/spu/spu.c (get_branch_target): Likewise.
1630 2013-03-29 Jan Hubicka <jh@suse.cz>
1632 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
1633 gcov streaming; stream hot bb threshold to ltrans.
1634 * predict.c (get_hot_bb_threshold): Break out from ....
1635 (maybe_hot_count_p): ... here.
1636 (set_hot_bb_threshold): New function.
1637 * lto-section-in.c (lto_section_name): Add profile.
1638 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
1639 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
1641 (histogram_entry): New structure.
1642 (histogram, histogram_pool): New global vars.
1643 (histogram_hash): New structure.
1644 (histogram_hash::hash): New method.
1645 (histogram_hash::equal): Likewise.
1646 (account_time_size): New function.
1647 (cmp_counts): New function.
1648 (dump_histogram): New function.
1649 (ipa_profile_generate_summary): New function.
1650 (ipa_profile_write_summary): New function.
1651 (ipa_profile_read_summary): New function.
1652 (ipa_profile): Decide on threshold.
1653 (pass_ipa_profile): Add ipa_profile_write_summary and
1654 ipa_profile_read_summary.
1655 * Makefile.in (ipa.o): Update dependencies.
1656 * lto-streamer.h (LTO_section_ipa_profile): New section.
1658 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
1660 * tree.h (VAR_P): New.
1662 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
1665 * doc/invoke.texi ([-fwhole-program]): Fix typo.
1667 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
1669 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
1670 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
1671 (control_flow_insn_p): Likewise.
1672 * cfgrtl.c (duplicate_insn_chain): Likewise.
1673 * final.c (get_attr_length_1): Likewise.
1674 (shorten_branches): Likewise.
1675 (final_scan_insn): Likewise.
1676 * function.c (instantiate_virtual_regs): Likewise.
1677 * gcse.c (insert_insn_end_basic_block): Likewise.
1678 * ira-costs.c (scan_one_insn): Likewise.
1679 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
1680 * lra.c (check_rtl): Likewise.
1681 * reload1.c (elimination_costs_in_insn): Likewise.
1682 * reorg.c (follow_jumps): Likewise.
1684 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
1685 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
1686 (thumb_far_jump_used_p): Likewise.
1687 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
1688 (workaround_speculation): Likewise.
1689 (add_sched_insns_for_speculation): Likewise.
1690 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
1691 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
1692 (frv_for_each_packet): Likewise.
1693 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
1694 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
1695 (final_emit_insn_group_barriers): Likewise.
1696 * config/m32r/m32r.c (m32r_is_insn): Likewise.
1697 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
1698 (mips16_insn_length): Likewise.
1699 * config/pa/pa.c (pa_reorg): Likewise.
1700 (pa_combine_instructions): Likewise.
1701 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
1702 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
1703 (sh_reorg): Likewise.
1704 (split_branches): Likewise.
1705 * config/spu/spu.c (get_branch_target): Likewise.
1707 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
1710 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
1712 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
1713 Fix declaration name.
1715 2013-03-28 Lawrence Crowl <crowl@google.com>
1717 * graphds.h (struct graph.indicies): Remove unused.
1718 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
1719 (SCOP_ORIGINAL_PDDRS): Remove unused.
1720 * sese.h (extern insert_loop_close_phis): Removed unused.
1721 (extern insert_guard_phis): Removed unused.
1722 (extern ivtype_map_elt_info): Removed unused.
1723 (new_ivtype_map_elt): Removed unused.
1724 * sese.c (ivtype_map_elt_info): Removed unused.
1726 2013-03-28 Lawrence Crowl <crowl@google.com>
1728 * Makefile.in: Add several missing include dependences.
1730 (test-dump.o): New. This object is not added to any executable,
1731 but is present for ad-hoc testing.
1733 (debug (const bitmap_head_def &)): New.
1734 (debug (const bitmap_head_def *)): New.
1736 (extern debug (const bitmap_head_def &)): New.
1737 (extern debug (const bitmap_head_def *)): New.
1739 (debug (edge_def &)): New.
1740 (debug (edge_def *)): New.
1742 (debug (basic_block_def &)): New.
1743 (debug (basic_block_def *)): New.
1745 (dump_node (const_tree, int, FILE *)): Correct source file.
1747 (debug (die_struct &)): New.
1748 (debug (die_struct *)): New.
1750 (extern debug (die_struct &)): New.
1751 (extern debug (die_struct *)): New.
1752 * gimple-pretty-print.c
1753 (debug (gimple_statement_d &)): New.
1754 (debug (gimple_statement_d *)): New.
1755 * gimple-pretty-print.h
1756 (extern debug (gimple_statement_d &)): New.
1757 (extern debug (gimple_statement_d *)): New.
1759 (debug (ira_allocno_copy &)): New.
1760 (debug (ira_allocno_copy *)): New.
1761 (debug (ira_allocno &)): New.
1762 (debug (ira_allocno *)): New.
1764 (extern debug (ira_allocno_copy &)): New.
1765 (extern debug (ira_allocno_copy *)): New.
1766 (extern debug (ira_allocno &)): New.
1767 (extern debug (ira_allocno *)): New.
1769 (debug (live_range &)): New.
1770 (debug (live_range *)): New.
1772 (debug (lra_live_range &)): New.
1773 (debug (lra_live_range *)): New.
1775 (debug (lra_live_range &)): New.
1776 (debug (lra_live_range *)): New.
1778 (debug (omega_pb_d &)): New.
1779 (debug (omega_pb_d *)): New.
1781 (extern debug (omega_pb_d &)): New.
1782 (extern debug (omega_pb_d *)): New.
1784 (debug (const rtx_def &)): New.
1785 (debug (const rtx_def *)): New.
1787 (debug_tree (tree): Move within file.
1788 (debug_raw (const tree_node &)): New.
1789 (debug_raw (const tree_node *)): New.
1790 (dump_tree_via_hooks (const tree_node *, int)): New.
1791 (debug (const tree_node &)): New.
1792 (debug (const tree_node *)): New.
1793 (debug_verbose (const tree_node &)): New.
1794 (debug_verbose (const tree_node *)): New.
1795 (debug_head (const tree_node &)): New.
1796 (debug_head (const tree_node *)): New.
1797 (debug_body (const tree_node &)): New.
1798 (debug_body (const tree_node *)): New.
1799 (debug_vec_tree (tree): Move and reimplement in terms of dump.
1800 (debug (vec<tree, va_gc> &)): New.
1801 (debug (vec<tree, va_gc> *)): New.
1803 (extern debug (const rtx_def &)): New.
1804 (extern debug (const rtx_def *)): New.
1806 (debug_raw (simple_bitmap_def &)): New.
1807 (debug_raw (simple_bitmap_def *)): New.
1808 (debug (simple_bitmap_def &)): New.
1809 (debug (simple_bitmap_def *)): New.
1811 (extern debug (simple_bitmap_def &)): New.
1812 (extern debug (simple_bitmap_def *)): New.
1813 (extern debug_raw (simple_bitmap_def &)): New.
1814 (extern debug_raw (simple_bitmap_def *)): New.
1816 (debug (vinsn_def &)): New.
1817 (debug (vinsn_def *)): New.
1818 (debug_verbose (vinsn_def &)): New.
1819 (debug_verbose (vinsn_def *)): New.
1820 (debug (expr_def &)): New.
1821 (debug (expr_def *)): New.
1822 (debug_verbose (expr_def &)): New.
1823 (debug_verbose (expr_def *)): New.
1824 (debug (vec<rtx> &)): New.
1825 (debug (vec<rtx> *)): New.
1827 (extern debug (vinsn_def &)): New.
1828 (extern debug (vinsn_def *)): New.
1829 (extern debug_verbose (vinsn_def &)): New.
1830 (extern debug_verbose (vinsn_def *)): New.
1831 (extern debug (expr_def &)): New.
1832 (extern debug (expr_def *)): New.
1833 (extern debug_verbose (expr_def &)): New.
1834 (extern debug_verbose (expr_def *)): New.
1835 (extern debug (vec<rtx> &)): New.
1836 (extern debug (vec<rtx> *)): New.
1838 (_list_iter_cond_expr): Make inline instead of static.
1840 (debug (sreal &)): New.
1841 (debug (sreal *)): New.
1843 (extern debug (sreal &)): New.
1844 (extern debug (sreal *)): New.
1846 (extern debug_raw (const tree_node &)): New.
1847 (extern debug_raw (const tree_node *)): New.
1848 (extern debug (const tree_node &)): New.
1849 (extern debug (const tree_node *)): New.
1850 (extern debug_verbose (const tree_node &)): New.
1851 (extern debug_verbose (const tree_node *)): New.
1852 (extern debug_head (const tree_node &)): New.
1853 (extern debug_head (const tree_node *)): New.
1854 (extern debug_body (const tree_node &)): New.
1855 (extern debug_body (const tree_node *)): New.
1856 (extern debug (vec<tree, va_gc> &)): New.
1857 (extern debug (vec<tree, va_gc> *)): New.
1859 (debug (struct loop &)): New.
1860 (debug (struct loop *)): New.
1861 (debug_verbose (struct loop &)): New.
1862 (debug_verbose (struct loop *)): New.
1863 * tree-dump.c: Add header dependence.
1865 (extern debug (struct loop &)): New.
1866 (extern debug (struct loop *)): New.
1867 (extern debug_verbose (struct loop &)): New.
1868 (extern debug_verbose (struct loop *)): New.
1870 (debug (data_reference &)): New.
1871 (debug (data_reference *)): New.
1872 (debug (vec<data_reference_p> &)): New.
1873 (debug (vec<data_reference_p> *)): New.
1874 (debug (vec<ddr_p> &)): New.
1875 (debug (vec<ddr_p> *)): New.
1877 (extern debug (data_reference &)): New.
1878 (extern debug (data_reference *)): New.
1879 (extern debug (vec<data_reference_p> &)): New.
1880 (extern debug (vec<data_reference_p> *)): New.
1881 (extern debug (vec<ddr_p> &)): New.
1882 (extern debug (vec<ddr_p> *)): New.
1884 (debug (pt_solution &)): New.
1885 (debug (pt_solution *)): New.
1887 (extern debug (pt_solution &)): New.
1888 (extern debug (pt_solution *)): New.
1890 (debug (_var_map &)): New.
1891 (debug (_var_map *)): New.
1892 (debug (tree_live_info_d &)): New.
1893 (debug (tree_live_info_d *)): New.
1895 (extern debug (_var_map &)): New.
1896 (extern debug (_var_map *)): New.
1897 (extern debug (tree_live_info_d &)): New.
1898 (extern debug (tree_live_info_d *)): New.
1900 2013-03-28 Jan Hubicka <jh@suse.cz>
1902 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
1904 2013-03-28 Ian Bolton <ian.bolton@arm.com>
1906 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
1907 record only when desired or required.
1909 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
1911 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
1912 *vec_extractv2di_1_rex64. Use x64 isa attribute.
1914 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1916 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
1917 (*andsi3_compare0_uxtw): New pattern.
1918 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
1919 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
1921 2013-03-28 Jan Hubicka <jh@suse.cz>
1923 * data-streamer-in.c (streamer_read_gcov_count): New function.
1924 * gimple-streamer-out.c: Include value-prof.h.
1925 (output_gimple_stmt): Output histogram.
1926 (output_bb): Use streamer_write_gcov_count.
1927 * value-prof.c: Include data-streamer.h
1928 (dump_histogram_value): Add HIST_TYPE_MAX.
1929 (stream_out_histogram_value): New function.
1930 (stream_in_histogram_value): New function.
1931 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
1932 (stream_out_histogram_value, stream_in_histogram_value): Declare.
1933 * data-streamer-out.c (streamer_write_gcov_count): New function.
1934 (streamer_write_gcov_count_stream): New function.
1935 * lto-cgraph.c (lto_output_edge): Update counter streaming.
1936 (lto_output_node): Likewise.
1937 (input_node, input_edge): Likewise.
1938 * lto-streamer-out.c (output_cfg): Update streaming.
1939 * lto-streamer-in.c (input_cfg): Likewise.
1940 * data-streamer.h (streamer_write_gcov_count,
1941 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
1942 * gimple-streamer-in.c: Include value-prof.h
1943 (input_gimple_stmt): Input histograms.
1944 (input_bb): Update profile streaming.
1946 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
1948 * genmodes.c (emit_max_int): New function.
1949 (emit_insn_modes_h): Added call to emit_max_function.
1950 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
1952 * machmode.def: Fixed comment.
1954 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
1956 * combine.c (try_combine): Removed useless assert.
1957 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
1959 2013-03-28 Marek Polacek <polacek@redhat.com>
1960 Richard Biener <rguenther@suse.de>
1962 PR tree-optimization/56695
1963 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
1964 build signed result of a vector comparison.
1965 * tree-cfg.c (verify_gimple_comparison): Check that a result
1966 of a vector comparison has signed type.
1968 2013-03-28 Richard Biener <rguenther@suse.de>
1970 PR tree-optimization/37021
1971 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
1972 do not restrict gaps between groups.
1973 * tree-vect-stmts.c (vectorizable_load): Properly account for
1974 a gap between groups.
1976 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
1978 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
1979 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
1982 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
1984 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
1985 * doc/extend.texi (Named Address Spaces): Ditto.
1986 (Variable Attributes): Ditto.
1988 2013-03-27 Kai Tietz <ktietz@redhat.com>
1990 * config.build: Add support for cygwin x64 target.
1991 * config.gcc: Likewise.
1992 * config.host: Likewise.
1993 * configure.ac: Likewise
1994 * configure: Regenerated.
1996 2013-03-27 Kai Tietz <ktietz@redhat.com>
1998 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
1999 * config/i386/t-cygwin-w64: New file.
2000 * config/i386/cygwin-w64.h: New file.
2001 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
2002 and add support for x64-cygwin target.
2003 (CPP_SPEC): Likewise.
2004 (CXX_WRAP_SPEC_LIST): Undefine before define.
2005 (LIBGCJ_SONAME): Use 15 as version.
2007 2013-03-27 Richard Biener <rguenther@suse.de>
2009 PR tree-optimization/56716
2010 * tree-ssa-structalias.c (perform_var_substitution): Adjust
2011 dumping for ref nodes.
2013 2013-03-27 Martin Jambor <mjambor@suse.cz>
2015 PR tree-optimization/55334
2016 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
2017 restricted pointers to arrays.
2019 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
2021 * Makefile.in (.SUFFIXES): Add .cc.
2022 (.c.o): Apply same recipe for implicit rule .cc.o.
2024 2013-03-27 Richard Biener <rguenther@suse.de>
2026 PR tree-optimization/37021
2027 * tree-vect-data-refs.c (vect_check_strided_load): Allow
2028 REALPART/IMAGPART_EXPRs around the supported refs.
2029 * tree-ssa-structalias.c (find_func_aliases): Assume that
2030 floating-point values are not used to transfer pointers.
2032 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
2034 * target.def (TARGET_HAS_IFUNC_P): New target hook.
2035 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
2036 * doc/tm.texi: Regenerate.
2037 * targhooks.h (default_has_ifunc_p): New.
2038 * targhooks.c (default_has_ifunc_p): Ditto.
2039 * config/linux-protos.h: New file.
2040 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
2041 this hook for linux which disables support of indirect functions in
2043 * config/linux-android.c: New file.
2044 * config/t-linux-android.c: Ditto.
2045 * config.gcc: Added new object file linux-android.o.
2046 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
2047 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
2048 * varasm.c (do_assemble_alias): Likewise.
2049 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
2050 doesn't support indirect functions.
2051 * configure: Regenerate.
2053 2013-03-27 Bin Cheng <bin.cheng@arm.com>
2056 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
2057 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
2060 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2062 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
2064 2013-03-27 Terry Guo <terry.guo@arm.com>
2066 * config/arm/arm-cores.def: Added core cortex-r7.
2067 * config/arm/arm-tune.md: Regenerated.
2068 * config/arm/arm-tables.opt: Regenerated.
2069 * doc/invoke.texi: Added entry for core cortex-r7.
2071 2013-03-27 Walter Lee <walt@tilera.com>
2073 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
2074 double-decrement of next_scratch_regno.
2076 2013-03-27 Walter Lee <walt@tilera.com>
2078 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
2080 (insn_v1mulus): Ditto.
2081 (insn_v2muls): Ditto.
2083 2013-03-27 Walter Lee <walt@tilera.com>
2085 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
2086 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
2088 2013-03-27 Walter Lee <walt@tilera.com>
2090 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
2091 (*sibcall_value): Ditto.
2093 2013-03-27 Walter Lee <walt@tilera.com>
2095 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
2096 (insn_mnz_v8qi): ... this ...
2097 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
2099 (insn_v<n>mnz): Replaced by ...
2100 (insn_v1mnz): ... this ...
2101 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
2103 (insn_mz_<mode>): Replaced by ...
2104 (insn_mz_v8qi): ... this ...
2105 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
2107 (insn_v<n>mz): Replaced by ...
2108 (insn_v1mz): ... this ...
2109 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
2112 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
2114 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
2116 2013-03-26 Roland McGrath <mcgrathr@google.com>
2118 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
2119 than fprintf with a non-constant, non-format string.
2121 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
2123 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
2124 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
2125 operand 0 predicate.
2126 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
2127 attribute. Use general_x64nomem_operand as operand 1 predicate.
2128 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
2129 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
2130 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
2131 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
2132 (mov<mode>_insv_1): Remove expander. Merge insn with
2133 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
2134 Use general_x64nomem_operand as operand 1 predicate.
2135 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
2136 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
2137 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
2138 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
2139 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
2140 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
2141 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
2142 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
2143 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
2144 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
2145 (general_x64nomem_operand): Ditto.
2147 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
2149 * config/rtems.opt: Add -pthread option.
2151 2013-03-26 Richard Biener <rguenther@suse.de>
2153 * alias.c (find_base_term): Avoid redundant and not used recursion.
2154 (base_alias_check): Get the initial base term from the caller.
2155 (true_dependence_1): Compute and pass base terms to base_alias_check.
2156 (write_dependence_p): Likewise.
2157 (may_alias_p): Likewise.
2159 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
2161 * config/aarch64/aarch64.c (aarch64_classify_address): Support
2162 PC-relative load in SI modes and above only.
2164 2013-03-26 Xinyu Qi <xyqi@marvell.com>
2166 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
2167 * config/arm/iwmmxt.md (WCGR0): Update.
2168 (WCGR1, WCGR2, WCGR3): Likewise.
2170 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
2172 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
2173 Use x64 and nox64 isa attributes.
2175 2013-03-26 Richard Biener <rguenther@suse.de>
2177 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
2178 alignment computations and rely on get_object_alignment_1
2179 for the !TYPE_P case.
2180 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
2182 2013-03-26 Walter Lee <walt@tilera.com>
2184 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
2185 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
2187 2013-03-25 Jeff Law <law@redhat.com>
2189 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
2190 check for INTEGRAL_TYPE_P that was missing due to checking in
2191 wrong version of prior patch.
2193 2013-03-25 Walter Lee <walt@tilera.com>
2195 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
2196 TILEGX_INSN_SHUFFLEBYTES1.
2197 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
2199 (tilegx_builtins): Ditto.
2200 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
2202 2013-03-25 Walter Lee <walt@tilera.com>
2204 * config/tilegx/tilegx.md (floatsisf2): New pattern.
2205 (floatunssisf2): New pattern.
2206 (floatsidf2): New pattern.
2207 (floatunssidf2): New pattern.
2209 2013-03-25 Walter Lee <walt@tilera.com>
2211 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
2212 tests for constraint J, K, N, P.
2214 2013-03-25 Walter Lee <walt@tilera.com>
2216 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
2217 Use indirect/pcrel encoding.
2218 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
2221 2013-03-25 Steve Ellcey <sellcey@mips.com>
2223 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
2224 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
2225 * config/mips/mips.c (mips_option_override): Set IMADD default.
2226 * config/mips/mips.h (PTF_AVOID_IMADD): New.
2227 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
2228 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
2229 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
2230 * doc/invoke.texi (-mimadd/-mno-imadd): New.
2232 2013-03-25 Jeff Law <law@redhat.com>
2234 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
2235 slightly to avoid creating and folding useless trees. Simplify
2236 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
2238 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
2240 * config/i386/i386.md (*zero_extendsidi2): Merge with
2241 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
2242 * config/i386/predicates.md (x86_64_zext_operand): Rename from
2243 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
2244 targets. Clarify comment.
2246 2013-03-25 Martin Jambor <mjambor@suse.cz>
2248 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
2249 pass-through jump functions differently.
2250 (ipa_read_jump_function): Likewise. Also use setter functions to set
2253 2013-03-25 Martin Jambor <mjambor@suse.cz>
2255 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
2256 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
2258 (ipa_get_indirect_edge_target): New function.
2259 (devirtualization_time_bonus): New parameter known_aggs, pass it to
2260 ipa_get_indirect_edge_target. Update all callers.
2261 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
2262 ipa_get_indirect_edge_target_1 instead of calling
2263 ipa_get_indirect_edge_target.
2264 (create_specialized_node): Pass aggvlas to
2265 ipcp_discover_new_direct_edges.
2267 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2269 * config/arm/arm.md (f_sels, f_seld): New types.
2270 (*cmov<mode>): New pattern.
2271 * config/arm/predicates.md (arm_vsel_comparison_operator): New
2274 2013-03-25 Kai Tietz <ktietz@redhat.com>
2276 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
2277 POSIX-printf for mingw-hosted builds.
2279 2013-03-25 Richard Biener <rguenther@suse.de>
2282 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
2283 must-not-throw stmt location.
2285 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2287 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
2288 Emit load-acquire versions when acq is true.
2289 (arm_emit_store_exclusive): Add rel parameter.
2290 Emit store-release versions when rel is true.
2291 (arm_split_compare_and_swap): Use acquire-release instructions
2293 of barriers when appropriate.
2294 (arm_split_atomic_op): Likewise.
2295 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
2296 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
2297 (VUNSPEC_SLX): Likewise.
2298 (VUNSPEC_LDA): Likewise.
2299 (VUNSPEC_STL): Likewise.
2300 * config/arm/sync.md (atomic_load<mode>): New pattern.
2301 (atomic_store<mode>): Likewise.
2302 (arm_load_acquire_exclusive<mode>): Likewise.
2303 (arm_load_acquire_exclusivesi): Likewise.
2304 (arm_load_acquire_exclusivedi): Likewise.
2305 (arm_store_release_exclusive<mode>): Likewise.
2307 2013-03-25 Catherine Moore <clm@codesourcery.com>
2309 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
2310 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
2311 * config/mip/predicates.md (lwsp_swsp_operand,
2312 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
2313 sb16_operand, db4_operand, db7_operand, ib3_operand,
2314 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
2315 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
2316 andi16_operand): New predicates.
2317 * config/mips/mips.md (compression): New attribute.
2318 (enabled): New attribute.
2319 (length): Consider compression in computing length.
2320 (shift_compression): New code attribute.
2321 (*add<mode>3): New operands. Record compression.
2322 (sub<mode>3): Likewise.
2323 (one_cmpl<mode>2): Likewise.
2324 (*and<mode>3): Likewise.
2325 (*ior<mode>3): Likewise.
2326 (unnamed pattern for xor): Likewise.
2327 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
2328 (*<optab><mode>3): Likewise.
2329 (*mov<mode>_internal: Likewise.
2330 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
2331 (mips_unsigned_immediate_p): New.
2332 (umips_lwsp_swsp_address_p): New.
2333 (m16_based_address_p): New.
2334 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
2335 (mips_unsigned_immediate_p): New prototype.
2336 (lwsp_swsp_address_p): New prototype.
2337 (m16_based_address_p): New prototype.
2338 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
2339 (mips_signed_immediate_p): New function.
2340 (m16_based_address_p): New function.
2341 (lwsp_swsp_address_p): New function.
2342 (mips_print_operand_punctuation): Recognize short delay slot insns
2343 for microMIPS.add<mode>3"
2345 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2348 * config/arm/iterators.md (v_cmp_result): New mode attribute.
2349 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
2351 2013-03-25 Richard Biener <rguenther@suse.de>
2353 PR tree-optimization/56689
2354 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
2357 2013-03-25 Richard Biener <rguenther@suse.de>
2359 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
2361 (memory_references): Likewise.
2362 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
2363 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
2364 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
2365 (gather_mem_refs_in_loops): Fold into ...
2366 (analyze_memory_references): ... this. Move initialization
2367 to tree_ssa_lim_initialize.
2368 (fill_always_executed_in): Rename to ...
2369 (fill_always_executed_in_1): ... this.
2370 (fill_always_executed_in): Move contains_call computation to
2371 this new function from ...
2372 (tree_ssa_lim_initialize): ... here.
2373 (tree_ssa_lim): Call fill_always_executed_in.
2375 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
2377 * postreload.c (reload_combine): Fix code detecting returns.
2379 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
2381 * function.c (emit_use_return_register_into_block): On cc0 targets,
2382 do not emit the sequence between cc0 setter and user.
2384 2013-03-25 Kai Tietz <ktietz@redhat.com>
2386 * config/i386/predicates.md (local_symbolic_operand): Interpret
2387 dll-imported symbols as none-local.
2389 2013-03-25 Richard Biener <rguenther@suse.de>
2391 * tree-ssa-loop-im.c (struct depend): Remove.
2392 (struct lim_aux_data): Make depends a vec of gimples.
2393 (free_lim_aux_data): Adjust.
2394 (add_dependency): Likewise.
2395 (set_level): Likewise.
2397 2013-03-25 Richard Biener <rguenther@suse.de>
2400 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
2401 the pointer returned by calls with ECF_MALLOC set.
2403 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
2405 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
2407 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
2409 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
2410 using MMXMODE mode iterator.
2411 (*move<mode>_internal): Merge with *movv2sf_internal and
2412 *movv2sf_internal_rex64 using MMXMODE mode iterator.
2414 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
2416 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
2417 (record_last_mem_set_info): Likewise.
2419 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
2420 of XNEWVEC followed by memset.
2421 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
2423 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
2425 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
2426 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
2427 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
2428 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
2429 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
2430 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
2431 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
2432 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
2433 BARRIER_P instead of GET_CODE.
2435 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
2437 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
2438 inaccuracy in the probing code.
2440 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
2441 (ctrapdi4): Likewise.
2443 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
2445 * calls.c (expand_call): Add missing guard to code handling return
2446 of non-BLKmode structures in MSB.
2447 * function.c (expand_function_end): Likewise.
2449 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
2451 * combine.c (try_combine): Adjust comment. Do not add the set of
2452 insn #0 if the destination indirectly is set or dies in insn #2.
2453 Tidy up code to distribute a new note.
2455 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
2457 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
2458 also for alternatives 16 and 17.
2460 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
2462 * config/i386/sse.md (*mov<mode>_internal): Merge with
2463 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
2464 Emit insn template depending on type attribute. Use
2465 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
2466 movd instead of movq mnemonic for interunit moves. Rewrite mode
2467 attribute calculation. Remove unit attribute calculation.
2468 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
2469 Set prefix_data16 attribute for DImode ssemov types.
2470 Use Ym instead of y for SSE-MMX conversion alternatives.
2471 Reorder operand constraints.
2473 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
2475 * df.h (df_insn_delete): Adjust prototype.
2476 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
2477 and let it decide whether mark the basic block dirty.
2478 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
2479 * df-scan.c (df_insn_info_delete): New helper function, split
2480 off from df_insn_delete.
2481 (df_scan_free_bb_info): Use it.
2482 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
2484 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
2485 that the insn is actually an insn and it has a non-NULL basic block.
2486 Do not mark basic block dirty if only deleting a DEBUG_INSN.
2488 2013-03-22 Richard Biener <rguenther@suse.de>
2490 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
2492 (mem_ref_alloc): Do not allocate them.
2493 (refs_independent_p): Do not query or maintain a cache.
2495 2013-03-22 Richard Biener <rguenther@suse.de>
2497 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
2498 (gather_mem_refs_in_loops): Do not compute it.
2499 (analyze_memory_references): Do not allocate it.
2500 (tree_ssa_lim_finalize): Do not free it.
2501 (for_all_locs_in_loop): Do not query all_refs_in_loop.
2503 2013-03-22 Richard Biener <rguenther@suse.de>
2505 * is-a.h (as_a): Use gcc_checking_assert.
2507 2013-03-22 Ian Bolton <ian.bolton@arm.com>
2509 * config/aarch64/aarch64.c (aarch64_print_operand): New
2510 format specifier for printing a constant in hex.
2511 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
2512 format specifier for printing second operand.
2514 2013-03-22 Richard Biener <rguenther@suse.de>
2516 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
2518 (gather_mem_refs_in_loops): Perform store accumulation here.
2519 (create_vop_ref_mapping_loop): Remove.
2520 (create_vop_ref_mapping): Likewise.
2521 (analyze_memory_references): Initialize refs_stored_in_loop.
2522 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
2523 (record_indep_loop): Remove.
2524 (record_dep_loop): New function.
2525 (ref_indep_loop_p_1): Adjust to only walk over references
2526 in the loop, not its subloops.
2527 (ref_indep_loop_p): Rename to ...
2528 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
2529 maintaining a more fine-grained cache.
2530 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
2531 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
2533 2013-03-22 Richard Biener <rguenther@suse.de>
2535 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
2536 (struct mem_ref): Make accesses_in_loop a vec of a vec of
2537 aggregate mem_ref_loc.
2538 (free_mem_ref_locs): Inline into ...
2539 (memref_free): ... this and adjust.
2540 (mem_ref_alloc): Adjust.
2541 (mem_ref_locs_alloc): Remove.
2542 (record_mem_ref_loc): Adjust.
2543 (get_all_locs_in_loop): Rewrite into ...
2544 (for_all_locs_in_loop): ... this iterator.
2545 (rewrite_mem_ref_loc): New functor.
2546 (rewrite_mem_refs): Use for_all_locs_in_loop.
2547 (sm_set_flag_if_changed): New functor.
2548 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
2549 (ref_always_accessed): New functor.
2550 (ref_always_accessed_p): Use for_all_locs_in_loop.
2552 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
2554 * tree-pass.h (PROP_gimple_lvec): New.
2555 * passes.c (dump_properties): Handle PROP_gimple_lvec.
2556 (init_optimization_passes): Move pass_lower_vector.
2557 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
2559 (pass_lower_vector): Provide PROP_gimple_lvec.
2560 (pass_lower_vector_ssa): Likewise.
2561 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
2563 2013-03-21 Mark Wielaard <mjw@redhat.com>
2565 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
2567 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
2569 * config/i386/i386.md (*movdi_internal): Disparage slightly
2570 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
2571 conversion alternatives.
2573 2013-03-21 Jakub Jelinek <jakub@redhat.com>
2576 * diagnostic.def (DK_WERROR): New kind.
2577 * diagnostic.h (werrorcount): Define.
2578 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
2579 promoted to DK_ERROR, increment DK_WERROR counter instead of
2581 * toplev.c (toplev_main): Call print_ignored_options even if
2582 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
2583 even if just werrorcount is non-zero.
2586 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
2588 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
2589 (string_cst_pool_decl): New function.
2590 (optimize_one_addr_into_implicit_ptr): New function.
2591 (resolve_addr_in_expr): Optimize DWARF location expression
2592 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
2593 which doesn't live in memory, but has DW_AT_location or
2594 DW_AT_const_value, or refers to a string literal, into
2595 DW_OP_GNU_implicit_pointer.
2596 (optimize_location_into_implicit_ptr): New function.
2597 (resolve_addr): If removing DW_AT_location of a variable because
2598 it was DW_OP_addr of address of the variable, but the variable doesn't
2599 live in memory, try to emit const value attribute for the initializer.
2601 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
2603 * tree.h (VECTOR_TYPE_P): New macro.
2604 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
2606 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
2607 VEC_COND_EXPR cannot be lvalues.
2608 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
2610 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
2612 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
2613 Restrict the transformation to equal modes.
2615 2013-03-21 Richard Biener <rguenther@suse.de>
2617 PR tree-optimization/39326
2618 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
2619 (MEM_ANALYZABLE): Adjust.
2620 (record_mem_ref_loc): Move bitmap ops ...
2621 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
2622 unanalyzable refs, do not record locations for it.
2623 (analyze_memory_references): Allocate ref zero as shared
2625 (refs_independent_p): Do not test for unanalyzed mems here.
2626 (ref_indep_loop_p_1): Special-case disambiguation against
2628 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
2630 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
2632 * config/arm/arm-protos.h (tune_params): Add
2633 prefer_neon_for_64bits field.
2634 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
2635 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
2636 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
2637 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
2638 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
2639 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
2640 (arm_option_override): Handle -mneon-for-64bits new option.
2641 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
2642 (prefer_neon_for_64bits): Declare new variable.
2643 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
2644 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
2645 (arch_enabled): Handle new arch types. Remove support for onlya8
2647 (one_cmpldi2): Use new arch names.
2648 (zero_extend<mode>di2, extend<mode>di2): Ditto.
2649 * config/arm/arm.opt (mneon-for-64bits): Add option.
2650 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
2651 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
2652 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
2654 * doc/invoke.texi (-mneon-for-64bits): Document.
2656 2013-03-21 Richard Biener <rguenther@suse.de>
2658 PR tree-optimization/39326
2659 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
2660 (sort_bbs_in_loop_postorder_cmp): New function.
2661 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
2663 2013-03-21 Richard Biener <rguenther@suse.de>
2665 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
2666 (vect_insert_into_interleaving_chain): Likewise.
2667 (vect_drs_dependent_in_basic_block): Inline ...
2668 (vect_slp_analyze_data_ref_dependence): ... here. New function,
2670 (vect_analyze_data_ref_dependence): ... here. Simplify.
2671 (vect_check_interleaving): Simplify.
2672 (vect_analyze_data_ref_dependences): Likewise. Split out ...
2673 (vect_slp_analyze_data_ref_dependences): ... this new function.
2674 (dr_group_sort_cmp): New function.
2675 (vect_analyze_data_ref_accesses): Compute data-reference groups
2676 here instead of in vect_analyze_data_ref_dependence. Use
2677 a more efficient algorithm.
2678 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
2679 vect_slp_analyze_data_ref_dependences. Call
2680 vect_analyze_data_ref_accesses earlier.
2681 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
2682 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
2683 (vect_slp_analyze_data_ref_dependences): New prototype.
2685 2013-03-21 Richard Biener <rguenther@suse.de>
2687 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
2688 ref is stored in the loop.
2689 (find_refs_for_sm): Walk only over all stores.
2690 (store_motion_loop): Allocate from lim_bitmap_obstack.
2691 (store_motion): Likewise.
2693 2013-03-21 Richard Biener <rguenther@suse.de>
2695 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
2696 Update virtual SSA form.
2698 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2700 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
2701 * configure: Regenerate.
2702 * config.in: Regenerate.
2703 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
2704 if !HAVE_LD_EH_FRAME_CIEV3.
2706 2013-03-21 Richard Biener <rguenther@suse.de>
2708 * tree-cfg.c (verify_expr_no_block): New function.
2709 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
2710 nor DECL_VALUE_EXPR have locations with associated blocks.
2711 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
2712 (clear_unused_block_pointer): Remove code dealing with
2713 blocks in DECL_DEBUG_EXPR locations.
2715 2013-03-21 Richard Biener <rguenther@suse.de>
2717 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
2718 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
2719 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
2720 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
2721 instead of DECL_DEBUG_EXPR_IS_FROM.
2722 * gimplify.c (gimplify_modify_expr): Likewise.
2723 * tree-cfg.c (verify_expr_location_1): Likewise.
2724 * tree-complex.c (create_one_component_var): Likewise.
2725 * tree-sra.c (create_access_replacement): Likewise.
2726 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
2727 (clear_unused_block_pointer): Likewise.
2728 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
2729 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2730 * var-tracking.c (var_debug_decl): Likewise.
2731 (track_expr_p): Likewise.
2732 * tree-inline.c (add_local_variables): Likewise. Set
2733 DECL_HAS_DEBUG_EXPR_P after copying it.
2734 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
2735 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
2737 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
2740 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
2741 * configure: Regenerate.
2742 * config.in: Regenerate.
2743 * config/i386/i386.md (*movdf_internal): Use
2744 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
2745 movd instead of movq mnemonic for interunit moves.
2746 (*movdi_internal): Ditto.
2748 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2750 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
2751 (abd<mode>_3): New pattern.
2752 (aba<mode>_3): New pattern.
2753 (fabd<mode>_3): New pattern.
2755 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2757 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
2758 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
2759 occurrence of REGISTER_PREFIX as its empty string.
2761 2013-03-20 Jeff Law <law@redhat.com>
2763 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
2764 addititional equivalences for equality comparisons between an SSA_NAME
2765 and a constant where the SSA_NAME was set from a widening conversion.
2767 2013-03-20 Walter Lee <walt@tilera.com>
2769 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
2771 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
2773 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
2774 depending on type attribute.
2775 (*movti_internal): Ditto.
2776 (*movtf_internal): Ditto.
2777 (*movxf_internal): Ditto.
2778 (*movdf_internal): Ditto.
2779 (*movsf_internal): Ditto.
2781 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
2783 * config/i386/i386.md (*movti_internal): Set prefix attribute to
2784 maybe_vex for sselog1 and ssemov types.
2785 (*movdi_internal): Reorder operand constraints.
2786 (*movsi_internal): Ditto. Set prefix attribute to
2787 maybe_vex for sselog1 and ssemov types.
2788 (*movtf_internal): Set prefix attribute to maybe_vex
2789 for sselog1 and ssemov types.
2790 (*movdf_internal): Ditto. Set prefix_data16 attribute for
2791 DImode ssemov types. Reorder operand constraints.
2792 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
2793 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
2794 attribute for SImode ssemov types. Reorder operand constraints.
2796 2013-03-20 Martin Jambor <mjambor@suse.cz>
2798 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
2799 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
2801 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
2803 * config/rs6000/predicates.md (indexed_address, update_address_mem
2804 update_indexed_address_mem): New predicates.
2805 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
2806 attribute for load/store instructions.
2807 * config/rs6000/dfp.md (movsd_store): Likewise.
2808 (movsd_load): Likewise.
2809 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
2810 (unnamed HI->DI extend define_insn): Likewise.
2811 (unnamed SI->DI extend define_insn): Likewise.
2812 (unnamed QI->SI extend define_insn): Likewise.
2813 (unnamed QI->HI extend define_insn): Likewise.
2814 (unnamed HI->SI extend define_insn): Likewise.
2815 (unnamed HI->SI extend define_insn): Likewise.
2816 (extendsfdf2_fpr): Likewise.
2817 (movsi_internal1): Likewise.
2818 (movsi_internal1_single): Likewise.
2819 (movhi_internal): Likewise.
2820 (movqi_internal): Likewise.
2821 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
2822 attribute for load/store instructions.
2823 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
2825 (mov<mode>_softfloat): Likewise.
2826 (mov<mode>_hardfloat32): Likewise.
2827 (mov<mode>_hardfloat64): Likewise.
2828 (mov<mode>_softfloat64): Likewise.
2829 (movdi_internal32): Likewise.
2830 (movdi_internal64): Likewise.
2831 (probe_stack_<mode>): Likewise.
2833 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
2835 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
2836 floating point, and decimal floating point to reload iterator.
2838 * config/rs6000/constraints.md (wl constraint): New constraints to
2839 return FLOAT_REGS if certain options are used to reduce the number
2840 of separate patterns that exist in the file.
2841 (wx constraint): Likewise.
2842 (wz constraint): Likewise.
2844 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
2845 -mdebug=reg, print wg, wl, wx, and wz constraints.
2846 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
2847 Initialize the reload functions for 64-bit binary/decimal floating
2849 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
2850 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
2851 create the buffer on the stack to overcome not having a 32-bit
2853 (rs6000_emit_move): Likewise.
2854 (rs6000_secondary_memory_needed_rtx): Likewise.
2855 (rs6000_alloc_sdmode_stack_slot): Likewise.
2856 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
2857 via xxlxor, just like DFmode 0.0.
2859 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
2860 define as 1 if we are running on a power7 or newer.
2861 (enum r6000_reg_class_enum): Add new constraints.
2863 * config/rs6000/dfp.md (movsd): Delete, combine with binary
2864 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
2865 with other moves by using conditional constraits (wg). Use LFIWZX
2866 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
2867 (movsd splitter): Likewise.
2868 (movsd_hardfloat): Likewise.
2869 (movsd_softfloat): Likewise.
2871 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
2872 binary and decimal floating point moves.
2873 (fmove_ok): New attributes to combine binary and decimal floating
2874 point moves, and to combine power6x (mfpgpr) moves along normal
2876 (real_value_to_target): Likewise.
2883 (movsf): Combine binary and decimal floating point moves. Combine
2884 power6x (mfpgpr) moves with other moves by using conditional
2885 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
2886 (mov<mode> for SFmode/SDmode); Likewise.
2887 (SFmode/SDmode splitters): Likewise.
2888 (movsf_hardfloat): Likewise.
2889 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
2890 (movsf_softfloat): Likewise.
2891 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
2893 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
2894 wx and wz constraints.
2896 * config/rs6000/constraints.md (wg constraint): New constraint to
2897 return FLOAT_REGS if -mmfpgpr (power6x) was used.
2899 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
2902 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
2903 -mdebug=reg, print wg, wl, wx, and wz constraints.
2904 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
2905 Initialize the reload functions for 64-bit binary/decimal floating
2907 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
2908 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
2909 create the buffer on the stack to overcome not having a 32-bit
2911 (rs6000_emit_move): Likewise.
2912 (rs6000_secondary_memory_needed_rtx): Likewise.
2913 (rs6000_alloc_sdmode_stack_slot): Likewise.
2914 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
2915 via xxlxor, just like DFmode 0.0.
2917 * config/rs6000/dfp.md (movdd): Delete, combine with binary
2918 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
2919 with other moves by using conditional constraits (wg). Use LFIWZX
2920 and STFIWX for loading SDmode on power7.
2921 (movdd splitters): Likewise.
2922 (movdd_hardfloat32): Likewise.
2923 (movdd_softfloat32): Likewise.
2924 (movdd_hardfloat64_mfpgpr): Likewise.
2925 (movdd_hardfloat64): Likewise.
2926 (movdd_softfloat64): Likewise.
2928 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
2929 64-bit binary and decimal floating point moves.
2930 (FMOVE64X): Likewise.
2931 (movdf): Combine 64-bit binary and decimal floating point moves.
2932 Combine power6x (mfpgpr) moves with other moves by using
2933 conditional constraits (wg).
2934 (mov<mode> for DFmode/DDmode): Likewise.
2935 (DFmode/DDmode splitters): Likewise.
2936 (movdf_hardfloat32): Likewise.
2937 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
2938 (movdf_softfloat32): Likewise.
2939 (movdf_hardfloat64_mfpgpr): Likewise.
2940 (movdf_hardfloat64): Likewise.
2941 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
2942 (movdf_softfloat64): Likewise.
2943 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
2944 (reload_<mode>_load): Move to later in the file so they aren't in
2945 the middle of the floating point move insns.
2946 (reload_<mode>_store): Likewise.
2948 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
2951 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
2952 constraint if -mdebug=reg.
2953 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
2954 Enable using dd reload support if needed.
2956 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
2957 binary and decimal floating point moves in rs6000.md.
2958 (movtd_internal): Likewise.
2960 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
2961 decimal floating point moves.
2963 (movtf_internal): Likewise.
2964 (mov<mode>_internal, TDmode/TFmode): Likewise.
2965 (movtf_softfloat): Likewise.
2966 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
2968 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
2969 movdi_internal64, using wg constraint for move direct operations.
2970 (movdi_internal64): Likewise.
2972 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
2973 MODES_TIEABLE_P for selected modes. Print the numerical value of
2974 the various virtual registers. Use GPR/FPR first/last values,
2975 instead of hard coding the register numbers. Print which modes
2976 have reload functions registered.
2977 (rs6000_option_override_internal): If -mdebug=reg, trace the options
2978 settings before/after setting cpu, target and subtarget settings.
2979 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
2980 and for secondary reload failures in rs6000_secondary_reload_inner.
2981 (rs6000_secondary_reload_fail): Likewise.
2982 (rs6000_secondary_reload_inner): Likewise.
2984 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
2985 macros for first/last GPR and FPR registers.
2986 (LAST_GPR_REGNO): Likewise.
2987 (FIRST_FPR_REGNO): Likewise.
2988 (LAST_FPR_REGNO): Likewise.
2990 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
2991 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
2992 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
2993 (vcond<mode><mode>): Likewise.
2994 (vcondu<mode><mode>): Likewise.
2995 (vector_gtu<mode>): Likewise.
2996 (vector_gte<mode>): Likewise.
2997 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
2998 to prevent the compiler from converting DImode operations to TImode.
2999 (ior<mode>3): Likewise.
3000 (and<mode>3): Likewise.
3001 (one_cmpl<mode>2): Likewise.
3002 (nor<mode>3): Likewise.
3003 (andc<mode>3): Likewise.
3005 * config/rs6000/constraints.md (wt constraint): New constraint
3006 that returns VSX_REGS if TImode is allowed in VSX registers.
3008 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
3011 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
3012 similar to TImode, but it is restricted to being in the GPRs.
3014 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
3015 TImode to occupy a single VSX register.
3017 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
3018 -mvsx-timode for power7/power8.
3019 (power7 cpu): Likewise.
3020 (power8 cpu): Likewise.
3022 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
3023 sure that TFmode/TDmode take up two registers if they are ever
3024 allowed in the upper VSX registers.
3025 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
3027 (rs6000_init_hard_regno_mode_ok): Likewise.
3028 (rs6000_debug_reg_global): Add debugging for PTImode and wt
3029 constraint. Print if LRA is turned on.
3030 (rs6000_option_override_internal): Give an error if -mvsx-timode
3031 and VSX is not enabled.
3032 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
3033 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
3034 to reg+offset addressing. Use PTImode when checking offset
3035 addresses for validity.
3036 (reg_offset_addressing_ok_p): Likewise.
3037 (rs6000_legitimate_offset_address_p): Likewise.
3038 (rs6000_legitimize_address): Likewise.
3039 (rs6000_legitimize_reload_address): Likewise.
3040 (rs6000_legitimate_address_p): Likewise.
3041 (rs6000_eliminate_indexed_memrefs): Likewise.
3042 (rs6000_emit_move): Likewise.
3043 (rs6000_secondary_reload): Likewise.
3044 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
3045 reloads to fpr registers to continue to use reg+offset addressing,
3046 but 64-bit reloads to altivec registers need reg+reg addressing.
3047 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
3048 it. Treat LO_SUM like a PLUS operation.
3049 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
3050 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
3051 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
3052 registers to share a register with a smaller sized type, since VSX
3053 puts scalars in the upper 64-bits.
3054 (print_operand): Add support for PTImode.
3055 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
3056 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
3057 registers, but don't have arithmetic support.
3058 (rs6000_memory_move_cost): Add test for VSX.
3059 (rs6000_opt_masks): Add -mvsx-timode.
3061 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
3064 (VSr): Use wt constraint for TImode.
3065 (VSv): Drop TImode support.
3066 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
3067 (vsx_movti_64bit): Likewise.
3068 (vsx_movti_32bit): Likewise.
3069 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
3070 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
3071 one '?' on the appropriate output constraint. Do not allow TImode
3072 logical operations on 32-bit systems.
3073 (vsx_ior<mode>3): Likewise.
3074 (vsx_xor<mode>3): Likewise.
3075 (vsx_one_cmpl<mode>2): Likewise.
3076 (vsx_nor<mode>3): Likewise.
3077 (vsx_andc<mode>3): Likewise.
3078 (vsx_concat_<mode>): Likewise.
3079 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
3081 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
3082 OPTION_MASK_VSX_TIMODE.
3083 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
3084 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
3086 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
3087 (TI2 iterator): New iterator for TImode, PTImode.
3088 (wd mode attribute): Add values for vector types.
3089 (movti_string): Replace TI move operations with operations for TImode
3090 and PTImode. Add support for TImode being allowed in VSX registers.
3091 (mov<mode>_string, TImode/PTImode): Likewise.
3092 (movti_ppc64): Likewise.
3093 (mov<mode>_ppc64, TImode/PTImode): Likewise.
3094 (TI mode splitters): Likewise.
3096 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
3099 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
3101 PR tree-optimization/56355
3102 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
3103 Also handle integers with undefined overflow.
3105 2013-03-20 Catherine Moore <clm@codesourcery.com>
3106 Maciej W. Rozycki <macro@codesourcery.com>
3107 Tom de Vries <tom@codesourcery.com>
3108 Nathan Sidwell <nathan@codesourcery.com>
3109 Iain Sandoe <iain@codesourcery.com>
3110 Nathan Froyd <froydnj@codesourcery.com>
3111 Chao-ying Fu <fu@mips.com>
3113 * doc/extend.texi: (micromips, nomicromips, nocompression):
3114 Document new function attributes.
3115 * doc/invoke.texi (minterlink-compressed, mmicromips,
3116 m14k, m14ke, m14kec): Document new options.
3117 (minterlink-mips16): Update documentation.
3118 * doc/md.texi (ZC, ZD): Document new constraints.
3119 * configure.ac (gcc_cv_as_micromips): Check if linker
3120 supports the .set micromips directive.
3121 * configure: Regenerate.
3122 * config.in: Regenerate.
3123 * config/mips/mips-tables.opt: Regenerate.
3124 * config/mips/micromips.md: New file.
3125 * constraints.md (ZC, ZD): New constraints.
3126 * config/mips/predicates.md (movep_src_register): New predicate.
3127 (movep_src_operand): New predicate.
3128 (non_volatile_mem_operand): New predicate.
3129 * config/mips/mips.md (multimem): New type.
3130 (length): Differentiate between 17-bit and 18-bit branch offsets.
3131 (MOVEP1, MOVEP2): New mode iterator.
3132 (mov_<load>l): Use ZC constraint.
3133 (mov_<load>r): Likewise.
3134 (mov_<store>l): Likewise.
3135 (mov_<store>r): Likewise.
3136 (*branch_equality<mode>_inverted): Add microMIPS support.
3137 (*branch_equality<mode>): Likewise.
3138 (*jump_absolute): Likewise.
3139 (indirect_jump_<mode>): Likewise.
3140 (tablejump_<mode>): Likewise.
3141 (<optab>_internal): Likewise.
3142 (sibcall_internal): Likewise.
3143 (sibcall_value_internal): Likewise.
3144 (prefetch): Use constraint ZD.
3145 * config/mips/mips.opt (minterlink-compressed): New option.
3146 (minterlink-mips16): Now an alias for minterlink-compressed.
3147 (mmicromips): New option.
3148 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
3149 (compare_and_swap_12): Likewise.
3150 (sync_add<mode>): Likewise.
3151 (sync_<optab>_12): Likewise.
3152 (sync_old_<optab>_12): Likewise.
3153 (sync_new_<optab>_12): Likewise.
3154 (sync_nand_12): Likewise.
3155 (sync_old_nand_12): Likewise.
3156 (sync_new_nand_12): Likewise.
3157 (sync_sub<mode>): Likewise.
3158 (sync_old_add<mode>): Likewise.
3159 (sync_old_sub<mode>): Likewise.
3160 (sync_new_add<mode>): Likewise.
3161 (sync_new_sub<mode>): Likewise.
3162 (sync_<optab><mode>): Likewise.
3163 (sync_old_<optab><mode>): Likewise.
3164 (sync_new_<optab><mode>): Likewise.
3165 (sync_nand<mode>): Likewise.
3166 (sync_old_nand<mode>): Likewise.
3167 (sync_new_nand<mode>): Likewise.
3168 (sync_lock_test_and_set<mode>): Likewise.
3169 (test_and_set_12): Likewise.
3170 (atomic_compare_and_swap<mode>): Likewise.
3171 (atomic_exchange<mode>_llsc): Likewise.
3172 (atomic_fetch_add<mode>_llsc): Likewise.
3173 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
3174 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
3175 (umips_save_restore_pattern_p): Likewise.
3176 (umips_load_store_pair_p): Likewise.
3177 (umips_output_load_store_pair): Likewise.
3178 (umips_movep_target_p): Likewise.
3179 (umips_12bit_offset_address_p): Likewise.
3180 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
3181 (mips_base_mips16): Rename this...
3182 (mips_base_compression_flags): ...to this. Update all uses.
3183 (mips_attribute_table): Add micromips, nomicromips and nocompression.
3184 (mips_mips16_decl_p): Delete.
3185 (mips_nomips16_decl_p): Delete.
3186 (mips_get_compress_on_flags): New function.
3187 (mips_get_compress_off_flags): New function.
3188 (mips_get_compress_mode): New function.
3189 (mips_get_compress_on_name): New function.
3190 (mips_get_compress_off_name): New function.
3191 (mips_insert_attributes): Support multiple compression types.
3192 (mips_merge_decl_attributes): Likewise.
3193 (umips_12bit_offset_address_p): New function.
3194 (mips_start_function_definition): Emit .set micromips directive.
3195 (mips_call_may_need_jalx_p): New function.
3196 (mips_function_ok_for_sibcall): Add microMIPS support.
3197 (mips_print_operand_punctuation): Support short delay slots and
3199 (umips_swm_mask, umips_swm_encoding): New.
3200 (umips_build_save_restore): New function.
3201 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
3202 (was_mips16_p): Remove.
3203 (old_compression_mode): New.
3204 (mips_set_compression_mode): New function.
3205 (mips_set_current_function): Add microMIPS support.
3206 (mips_option_override): Likewise.
3207 (umips_save_restore_pattern_p): New function.
3208 (umips_output_save_restore): New function.
3209 (umips_load_store_pair_p_1): New function.
3210 (umips_load_store_pair_p): New function.
3211 (umips_output_load_store_pair_1): New function.
3212 (umips_output_load_store_pair): New function.
3213 (umips_movep_target_p) New function.
3214 (mips_prepare_pch_save): Add microMIPS support.
3215 * config/mips/mips.h (TARGET_COMPRESSION): New.
3216 (TARGET_CPU_CPP_BUILTINS): Update macro
3217 to use new compression flags and to support microMIPS.
3218 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
3219 (MIPS_ARCH_FLOAT_SPEC): Likewise.
3220 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
3221 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
3222 (ASM_SPEC): Support mmicromips and mno-micromips.
3223 (M16STORE_REG_P): New macro.
3224 (MIPS_CALL): Support TARGET_MICROMIPS.
3225 (MICROMIPS_J): New macro.
3226 (mips_base_mips16): Rename this...
3227 (mips_base_compression_flags): ...to this.
3228 (UMIPS_12BIT_OFFSET_P): New macro.
3229 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
3230 (MULTILIB_DIRNAMES): Likewise.
3231 2013-03-20 Richard Biener <rguenther@suse.de>
3233 PR tree-optimization/56661
3234 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
3235 the result does not have to be distinct.
3237 2013-03-20 Richard Biener <rguenther@suse.de>
3239 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
3242 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3243 Steven Bosscher <steven@gcc.gnu.org>
3245 PR rtl-optimization/56605
3246 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
3248 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
3251 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
3252 that require movd instead of movq.
3254 2013-03-20 Richard Biener <rguenther@suse.de>
3256 * tree-ssa-structalias.c (struct variable_info): Add pointer
3257 to the first field of an aggregate with sub-vars. Make
3258 this and the pointer to the next subfield its ID.
3259 (vi_next): New function.
3260 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
3261 storedanything_id, integer_id): Increment by one.
3262 (new_var_info, get_call_vi, lookup_call_clobber_vi,
3263 get_call_clobber_vi): Adjust.
3264 (solution_set_expand): Simplify and speedup.
3265 (solution_set_add): Inline into ...
3266 (set_union_with_increment): ... this. Adjust accordingly.
3267 (do_sd_constraint): Likewise.
3268 (do_ds_constraint): Likewise.
3269 (do_complex_constraint): Simplify.
3270 (build_pred_graph): Adjust.
3271 (solve_graph): Likewise. Simplify and speedup.
3272 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
3273 get_constraint_for_component_ref, get_constraint_for_1,
3274 first_vi_for_offset, first_or_preceding_vi_for_offset,
3275 create_function_info_for, create_variable_info_for_1,
3276 create_variable_info_for, intra_create_variable_infos): Adjust.
3277 (init_base_vars): Push NULL for ID zero.
3278 (compute_points_to_sets): Adjust.
3280 2013-03-20 Richard Biener <rguenther@suse.de>
3282 * cfgloop.c (verify_loop_structure): Streamline and avoid
3283 ICEing on corrupt loop tree.
3284 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
3287 2013-03-20 Richard Biener <rguenther@suse.de>
3289 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
3290 check whether an SSA update is needed.
3292 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
3294 * config/mips/constraints.md (T): Rename to...
3298 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
3299 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
3301 2013-03-19 Ian Bolton <ian.bolton@arm.com>
3303 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
3304 (*subsi3_carryin_uxtw): Likewise.
3306 2013-03-19 Ian Bolton <ian.bolton@arm.com>
3308 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
3309 (*rorsi3_insn_uxtw): Likewise.
3311 2013-03-19 Ian Bolton <ian.bolton@arm.com>
3313 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
3314 (*extrsi5_insn_uxtw): Likewise.
3316 2013-03-19 Richard Biener <rguenther@suse.de>
3318 PR tree-optimization/56273
3319 * passes.c (init_optimization_passes): Move second VRP after DOM.
3321 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
3323 * config/i386/i386.md (*movti_internal): Merge from
3324 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
3325 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
3326 nox64 isa attributes.
3328 2013-03-18 Richard Biener <rguenther@suse.de>
3330 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
3332 (merge_node_constraints): Likewise.
3333 (build_succ_graph): Likewise.
3334 (valid_graph_edge): Inline into single caller.
3335 (unify_nodes): Likewise. Use bitmap_set_bit return value
3337 (scc_visit): Fix formatting and variable use.
3338 (do_sd_constraint): Use gcc_checking_assert.
3339 (do_ds_constraint): Likewise.
3340 (do_complex_constraint): Likewise.
3341 (condense_visit): Likewise. Cleanup.
3342 (dump_pred_graph): New function.
3343 (perform_var_substitution): Dump the pred-graph before
3344 variable substitution.
3345 (find_equivalent_node): Use gcc_checking_assert.
3346 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
3348 2013-03-18 Richard Biener <rguenther@suse.de>
3350 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
3351 Remove cond_expr_stmt_list argument and do not gimplify the
3353 (vect_loop_versioning): Adjust.
3354 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
3355 Cleanup to use less temporaries.
3356 (vect_create_data_ref_ptr): Cleanup.
3358 2013-03-18 Jakub Jelinek <jakub@redhat.com>
3360 PR tree-optimization/56635
3361 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
3362 require types_compatible_p types.
3364 2013-03-18 Nick Clifton <nickc@redhat.com>
3366 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
3369 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
3370 Add missing line to comment describing function.
3372 2013-03-18 Richard Biener <rguenther@suse.de>
3374 PR tree-optimization/56210
3375 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3376 Handle string / character search functions.
3377 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
3379 2013-03-18 Richard Biener <rguenther@suse.de>
3382 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
3383 and implement properly.
3384 * gimple.h (gimple_cond_single_var_p): Remove.
3386 2013-03-18 Richard Biener <rguenther@suse.de>
3388 * tree-data-ref.h (find_data_references_in_loop): Declare.
3389 * tree-data-ref.c (get_references_in_stmt): Use a stack
3390 vector pre-allocated in the callers.
3391 (find_data_references_in_stmt): Adjust.
3392 (graphite_find_data_references_in_stmt): Likewise.
3393 (create_rdg_vertices): Likewise.
3394 (find_data_references_in_loop): Export.
3395 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
3396 Compute dependences here...
3397 (vect_analyze_data_refs): ...not here. When we encounter
3398 a non-vectorizable data reference in basic-block vectorization
3399 truncate the data reference vector. Do not bother to
3400 fixup data-dependence information for gather loads.
3401 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
3402 of data references, as reported.
3404 2013-03-18 Richard Biener <rguenther@suse.de>
3406 PR tree-optimization/3713
3407 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
3408 has_constants and expr.
3409 (stmt_has_constants): Properly valueize SSA names when deciding
3410 whether the stmt has constants.
3412 2013-03-18 Richard Biener <rguenther@suse.de>
3414 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
3415 whole function when there is nothing to do.
3416 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
3417 * tree-vectorizer.c (vectorize_loops): Update virtual and
3418 loop-closed SSA once.
3419 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
3421 2013-03-18 Richard Biener <rguenther@suse.de>
3424 * domwalk.c (bb_postorder): New global static.
3425 (cmp_bb_postorder): New function.
3426 (walk_dominator_tree): Replace scheme imposing an order for
3427 visiting dominator sons by one sorting them at the time they
3428 are pushed on the stack.
3430 2013-03-18 Richard Biener <rguenther@suse.de>
3432 PR tree-optimization/39326
3433 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
3434 (struct mem_ref): Replace mem member with ao_ref typed member.
3435 (MEM_ANALYZABLE): Adjust.
3436 (memref_eq): Likewise.
3437 (mem_ref_alloc): Likewise.
3438 (gather_mem_refs_stmt): Likewise.
3439 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
3440 (execute_sm_if_changed_flag_set): Adjust.
3441 (execute_sm): Likewise.
3442 (ref_always_accessed_p): Likewise.
3443 (refs_independent_p): Likewise.
3444 (can_sm_ref_p): Likewise.
3446 2013-03-18 Jakub Jelinek <jakub@redhat.com>
3449 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
3450 return 1 even for !unsignedp.
3452 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
3454 * config/i386/i386.md (isa): Add x64 and nox64.
3455 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
3456 (*pushtf): Enable *roF alternative for x64 isa only.
3457 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
3458 mode attribute of integer alternatives to DImode for TARGET_64BIT.
3459 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
3460 (*movtf_internal): Merge from *movtf_internal_rex64 and
3461 *movtf_internal_sse. Use x64 and nox64 isa attributes.
3462 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
3463 nox64 isa attributes.
3464 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
3465 nox64 isa attributes.
3466 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
3468 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
3470 * config/alpha/alpha.c (TARGET_LRA_P): New define.
3472 2013-03-17 Jakub Jelinek <jakub@redhat.com>
3475 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
3476 class names. Remove trailing comma after "ALL_REGS".
3478 2013-03-16 Jan Hubicka <jh@suse.cz>
3480 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
3481 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
3482 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
3483 of cgraph_get_create_node.
3484 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
3486 2013-03-16 Jason Merrill <jason@redhat.com>
3489 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
3490 with DW_AT_default_value.
3492 2013-03-16 Jakub Jelinek <jakub@redhat.com>
3494 * BASE-VER: Set to 4.9.0.
3496 2013-03-14 Andi Kleen <ak@linux.intel.com>
3499 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
3500 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
3501 Document _x* TSX intrinsics.
3503 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
3504 David Holsgrove <david.holsgrove@xilinx.com>
3506 * configure.ac: Add MicroBlaze TLS support detection.
3507 * configure: Regenerate.
3508 * config/microblaze/microblaze-protos.h
3509 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
3510 symbol_mentioned_p, label_mentioned_p): Add prototypes.
3511 * config/microblaze/microblaze.c (microblaze_address_type): Add
3512 ADDRESS_TLS and tls_reloc address types.
3513 (microblaze_address_info): Add tls_reloc.
3514 (TARGET_HAVE_TLS): Define.
3515 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
3516 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
3517 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
3518 load_tls_operand, microblaze_call_tls_get_addr,
3519 microblaze_legitimize_tls_address): New functions.
3520 (microblaze_classify_unspec): Handle UNSPEC_TLS.
3521 (get_base_reg): Use microblaze_tls_symbol_p.
3522 (microblaze_classify_address): Handle TLS.
3523 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
3524 label_mentioned_p and microblaze_tls_referenced_p.
3525 (microblaze_legitimize_address): Handle TLS.
3526 (microblaze_address_insns): Handle ADDRESS_TLS.
3527 (pic_address_needs_scratch): Handle TLS.
3528 (print_operand_address): Handle TLS.
3529 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
3530 (microblaze_expand_move): Handle TLS.
3531 (microblaze_legitimate_constant_p): Check
3532 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
3533 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
3534 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
3535 (PIC_OFFSET_TABLE_REGNUM): Set.
3536 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
3537 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
3538 (addsi3, movsi_internal2, movdf_internal): Update constraints
3539 * config/microblaze/predicates.md (arith_plus_operand): Define
3540 (move_operand): Redefine as move_src_operand,
3541 check microblaze_tls_referenced_p.
3543 2013-03-14 Ian Bolton <ian.bolton@arm.com>
3545 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
3546 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
3548 2013-03-14 Ian Bolton <ian.bolton@arm.com>
3550 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
3553 2013-03-14 Jakub Jelinek <jakub@redhat.com>
3555 PR tree-optimization/53265
3556 * common.opt (Waggressive-loop-optimizations): New option.
3557 * tree-ssa-loop-niter.c: Include tree-pass.h.
3558 (do_warn_aggressive_loop_optimizations): New function.
3559 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
3560 if number_of_latch_executions returned constant.
3561 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
3562 early. If number_of_latch_executions returned constant, set
3563 nb_iterations_upper_bound back to it.
3564 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
3566 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
3567 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
3569 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
3570 (MULTILIB_OSDIRNAMES): Set.
3571 * genmultilib: If defaultosdirname doesn't start with :: , set
3572 defaultosdirname2 instead, clear it and emit two . multilib_raw
3573 entries instead of just one.
3575 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
3577 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
3578 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
3579 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
3580 (SUBTARGET_OVERRIDE_OPTIONS): New.
3582 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
3585 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
3586 (musermode): Convert to Var(TARGET_USERMODE).
3587 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
3588 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
3589 * config/sh/sh.c (sh_option_override): Use
3590 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
3591 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
3593 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
3595 (udivsi3_i4_single, divsi3_i4_single): Use
3596 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
3598 2013-03-13 Dave Korn <dave.korn.cygwin@....>
3600 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
3603 2013-03-13 Richard Biener <rguenther@suse.de>
3605 PR tree-optimization/56608
3606 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
3607 calls when vectorizing basic-blocks.
3609 2013-03-13 Jakub Jelinek <jakub@redhat.com>
3612 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
3615 2013-03-12 Jakub Jelinek <jakub@redhat.com>
3617 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
3619 2013-03-11 Jan Hubicka <jh@suse.cz>
3622 * lto-streamer-out.c (output_symbol_p): Skip references from
3623 constructors of external variables.
3625 2013-03-11 Jan Hubicka <jh@suse.cz>
3628 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
3630 * emit-rtl.c (verify_rtx_sharing): Likewise.
3631 (copy_insn_1): Likewise.
3632 * rtl.c (copy_rtx): Likewise.
3634 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
3637 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
3638 output_operand_lossage message.
3640 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
3643 * arm.c (shift_op): Validate RTL pattern on the fly.
3644 (arm_print_operand, case 'S'): Don't use shift_operator to validate
3647 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3650 * config/pa/pa.md (call_value): Check for calls to powf and direct to
3651 new call patterns that clobber %fr12.
3652 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
3653 split and postreload patterns.
3654 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
3655 registers %fr12 and %fr12R as call used.
3657 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
3659 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
3660 (canon_address, record_store, replace_read, check_mem_read_rtx,
3661 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
3662 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
3663 rest_of_handle_dse): Likewise.
3665 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
3668 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
3670 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
3671 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
3672 (save_optabs_if_changed): Replace with...
3673 (init_tree_optimization_optabs): ...this.
3674 * optabs.c (save_optabs_if_changed): Rename to...
3675 (init_tree_optimization_optabs): ...this. Take the optimization node
3676 as argument. Do nothing if the base optabs are already correct.
3677 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
3678 to recompute optabs.
3679 * function.h (function): Remove optabs field.
3680 * function.c (invoke_set_current_function_hook): Call
3681 init_tree_optimization_optabs. Use the result to initialize
3684 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
3686 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
3687 if GTMA_HAS_NO_INSTRUMENTATION.
3688 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
3689 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
3690 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
3691 * gimple-pretty-print.c (dump_gimple_transaction): Handle
3692 GTMA_HAS_NO_INSTRUMENTATION.
3694 2013-03-08 Jakub Jelinek <jakub@redhat.com>
3696 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
3699 2013-03-08 Marek Polacek <polacek@redhat.com>
3700 Jakub Jelinek <jakub@redhat.com>
3702 PR tree-optimization/56478
3703 * predict.c (is_comparison_with_loop_invariant_p): Change the
3704 type of loop_step to tree.
3705 (predict_loops): Adjust.
3706 (predict_iv_comparison): Perform the computations on double_ints.
3708 2013-03-08 Richard Biener <rguenther@suse.de>
3710 PR tree-optimization/56570
3711 * tree-cfg.c (verify_expr_location_1): Verify locations for
3713 * tree-sra.c (create_access_replacement): Strip locations
3714 from DECL_DEBUG_EXPRs.
3716 2013-03-08 Richard Biener <rguenther@suse.de>
3718 * tree-inline.c (expand_call_inline): Do not associate
3719 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
3720 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
3722 2013-03-08 Richard Biener <rguenther@suse.de>
3724 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
3725 or block changes with -Og. Fix for location / block encoding
3726 changes and PHI arguments with locations.
3728 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
3730 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
3732 (struct output_info): Likewise.
3733 (register_overhead): Remove bad gcc_assert.
3734 (bitmap_find_bit): If there is only a single bitmap element, do not
3735 count a miss as a search.
3736 (print_statistics): Update for counter type changes.
3737 (dump_bitmap_statistics): Likewise. Print headers such that they
3738 are properly lined up with the printed counters.
3740 2013-03-07 Jakub Jelinek <jakub@redhat.com>
3742 PR tree-optimization/56559
3743 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
3744 check that it has only a single use.
3746 2013-03-07 Richard Biener <rguenther@suse.de>
3748 * doc/invoke.texi (fwhole-program): Discourage use in combination
3751 2013-03-06 Jakub Jelinek <jakub@redhat.com>
3753 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
3755 PR tree-optimization/56539
3756 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
3757 instead of GSI_CONTINUE_LINKING as last argument to
3758 force_gimple_operand_gsi. Adjust function comment.
3760 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
3764 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
3765 promoted mode, convert the result back to the original mode.
3767 2013-03-06 Richard Biener <rguenther@suse.de>
3770 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
3771 (insert_updated_phi_nodes_compare_uids): New function.
3772 (update_ssa): Sort symbols_to_rename after UID before
3773 traversing it to insert PHI nodes.
3775 2013-03-06 Richard Biener <rguenther@suse.de>
3778 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
3779 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
3782 2013-02-13 Richard Biener <rguenther@suse.de>
3785 * varasm.c (output_constant_def_1): Get the decl representing
3786 the constant as argument.
3787 (output_constant_def): Wrap output_constant_def_1.
3788 (make_decl_rtl): Use output_constant_def_1 with the decl
3789 representing the constant.
3790 (build_constant_desc): Optionally re-use a decl already
3791 representing the constant.
3792 (tree_output_constant_def): Adjust.
3794 2013-03-06 Joey Ye <joey.ye@arm.com>
3797 * gcc.c (convert_white_space): New function.
3798 (main): Handles white space in function name.
3800 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
3803 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
3804 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
3805 to SH_DIV_CALL_TABLE for TARGET_SH2.
3806 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
3808 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
3811 2013-03-05 Sterling Augustine <saugustine@google.com>
3812 Cary Coutant <ccoutant@google.com>
3815 * dwarf2out.c (resolve_addr): Don't call
3816 remove_loc_list_addr_table_entries a second time for the same
3819 2013-03-05 Jakub Jelinek <jakub@redhat.com>
3822 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
3823 (avoid_complex_debug_insns): New function.
3824 (expand_debug_locations): Call it.
3826 PR rtl-optimization/56484
3827 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
3828 lifetimes of hard registers on small register class machines.
3830 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
3832 * config/microblaze/microblaze-protos.h: Rename
3833 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
3834 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
3836 (microblaze_fast_interrupt_function_p): New function.
3837 (microblaze_is_interrupt_handler): Rename to
3838 microblaze_is_interrupt_variant and add fast_interrupt check.
3839 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
3840 (save_restore_insns): Likewise.
3841 (compute_frame_size): Likewise.
3842 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
3843 (microblaze_globalize_label): Likewise.
3844 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
3845 * config/microblaze/microblaze.md: Use wrapper
3846 microblaze_is_interrupt_variant.
3848 2013-03-05 Kai Tietz <ktietz@redhat.com>
3850 * sdbout.c (sdbout_one_type): Switch to current function's section
3851 supporting cold/hot.
3853 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
3855 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
3858 2013-03-05 Jakub Jelinek <jakub@redhat.com>
3861 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
3862 if VALGRIND_GET_VBITS is defined, temporarily make object
3863 memory all defined, and restore previous valgrind addressability
3864 and definability afterwards. Free this_object at the end.
3867 * lra.c (lra): Call lra_clear_live_ranges if live_p,
3868 right before calling lra_create_live_ranges, also call it
3869 when clearing live_p. Only call lra_clear_live_ranges
3870 at the end if live_p.
3873 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
3875 2013-03-05 Richard Biener <rguenther@suse.de>
3877 PR tree-optimization/56521
3878 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
3881 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
3884 * except.h (remove_unreachable_eh_regions): New prototype.
3885 * except.c (remove_eh_handler_splicer): New function, split out
3886 of remove_eh_handler.
3887 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
3888 warning about running it on many EH regions one at a time.
3889 (remove_unreachable_eh_regions_worker): New function, walk the
3890 EH tree in depth-first order and remove non-marked regions.
3891 (remove_unreachable_eh_regions): New function.
3892 * tree-eh.c (mark_reachable_handlers): New function, split out
3893 from remove_unreachable_handlers.
3894 (remove_unreachable_handlers): Use mark_reachable_handlers and
3895 remove_unreachable_eh_regions.
3896 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
3897 and remove_unreachable_eh_regions.
3899 2013-03-05 Richard Biener <rguenther@suse.de>
3902 * loop-init.c (fix_loop_structure): Remove loops in two stages,
3903 not freeing them until the end.
3905 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3907 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
3909 2013-03-05 Richard Biener <rguenther@suse.de>
3911 PR tree-optimization/56270
3912 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
3913 of loads after scheduling an SLP instance.
3915 2013-03-05 Jakub Jelinek <jakub@redhat.com>
3917 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
3919 (check_gcc_parallelize): Run guality.exp as a separate job from
3920 vect.exp with unsorted.exp and $(dg_target_exps) separately from
3921 struct-layout-1.exp with stackalign.exp.
3923 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
3926 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
3927 load_index sbitmap even if some bit in it isn't set.
3930 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
3931 (discover_iteration_bound_by_body_walk): Change queues to
3932 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
3933 spelling in comment. Call safe_push on queues[bound_index] directly.
3934 Release queues[queue_index] in every iteration unconditionally.
3935 Release bounds vector.
3938 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
3939 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
3940 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
3943 2013-03-05 Richard Biener <rguenther@suse.de>
3946 * tree-inline.c (remap_blocks_to_null): New function.
3947 (expand_call_inline): When expanding a call stmt without
3948 an associated block inline remap all callee blocks to NULL.
3950 2013-03-05 Jakub Jelinek <jakub@redhat.com>
3952 PR rtl-optimization/56494
3953 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
3954 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
3955 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
3958 * sel-sched-ir.c (free_sched_pools): Release
3959 succs_info_pool.stack[succs_info_pool.max_top] vectors too
3960 if succs_info_pool.max_top isn't -1.
3963 * opts.c (opts_obstack, opts_concat): Moved to...
3964 * opts-common.c (opts_obstack, opts_concat): ... here.
3966 2013-03-04 Jakub Jelinek <jakub@redhat.com>
3969 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
3971 2013-03-04 Martin Jambor <mjambor@suse.cz>
3973 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
3974 all appropriate places.
3976 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
3978 PR tree-optimization/56424
3979 * ipa-split.c (split_function): Do not set the RSO flag if result is
3980 not by reference and its type is a register type.
3982 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
3984 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
3985 (microblaze_legitimate_pic_operand): Likewise
3986 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
3987 new function microblaze_legitimate_pic_operand
3988 * config/microblaze/microblaze-protos.h
3989 (microblaze_legitimate_pic_operand): Declare.
3991 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3993 * config/microblaze/predicates.md (call_insn_simple_operand):
3994 New predicate for supported rtx code types.
3995 * config/microblaze/microblaze.md (call_internal1): Use
3996 call_insn_simple_operand predicate.
3998 2013-03-04 Jakub Jelinek <jakub@redhat.com>
4001 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
4002 partitions.ordered_remove.
4005 * tree-vect-stmts.c (vectorizable_conversion): Don't call
4006 vec_oprnds0.create (1) for modifier == NONE.
4009 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
4010 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
4011 vec_oprnds1 right before pushing anything to it for
4015 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
4016 set nbbs to 0 instead of having separate code path.
4017 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
4018 instead of false as last argument if returning NULL.
4020 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
4022 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
4023 the attribute is now called "target" instead of "option".
4024 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
4025 * doc/tm.texi.in (Target Attributes): Likewise document the correct
4026 attribute/pragma name for TARGET_OPTION_VALID_P and
4027 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
4028 * doc/tm.texi: Regenerated.
4030 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
4032 * config/microblaze/microblaze.c:
4033 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
4034 * config/microblaze/microblaze.h: Add -mxl-reorder to
4036 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
4037 instructions emitted if TARGET_REORDER.
4038 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
4039 or 0 for -m/-mno case, but initialises as 2 to detect default use case
4042 2013-03-01 Xinliang David Li <davidxl@google.com>
4044 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
4047 2013-03-01 Jakub Jelinek <jakub@redhat.com>
4050 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
4051 vector even when returning true. Fix up function comment formatting.
4054 * ira-build.c (ira_loop_nodes_count): New variable.
4055 (create_loop_tree_nodes): Initialize it.
4056 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
4059 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
4060 method on dr_chain and result_chain.
4061 * tree-vect-stmts.c (vectorizable_store): Only call
4062 result_chain.create if j == 0.
4065 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
4066 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
4067 before overwriting it.
4069 2013-03-01 Tobias Burnus <burnus@net-b.de>
4071 * doc/extended.texi (C Extensions): Change order in @menu
4073 (Other MIPS Built-in Functions): Move last MIPS entry before
4074 "picoChip Built-in Functions".
4075 (SH Built-in Functions): Move after RX Built-in Functions.
4076 * doc/gcc.texi (Introduction): Change order in @menu
4078 * doc/md.texi (Constraints): Ditto.
4079 * gty.texi (Type Information): Ditto.
4080 (User-provided marking routines for template types): Make
4082 * doc/invoke.texi (AArch64 Options): Move before
4083 "Adapteva Epiphany Options".
4085 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
4086 Jakub Jelinek <jakub@redhat.com>
4089 * asan.c (gate_asan): Lookup no_sanitize_address instead of
4090 no_address_safety_analysis attribute.
4091 * doc/extend.texi (no_address_safety_attribute): Rename to
4092 no_sanitize_address attribute, mention no_address_safety_analysis
4093 attribute as deprecated alias.
4095 2013-02-28 Jakub Jelinek <jakub@redhat.com>
4098 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
4099 type to vec<vec<tree> > *.
4100 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
4101 to be vec<tree> instead of vec<tree> *, set vec_defs
4102 to vNULL and call vec_defs.create (number_of_vects), adjust other
4104 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
4105 vectorizable_condition): Adjust vect_get_slp_defs callers.
4107 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
4109 * config/aarch64/aarch64.c
4110 (aarch64_float_const_representable): Remove unused variable.
4112 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
4114 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
4116 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
4118 * config/aarch64/aarch64-builtins.c
4119 (aarch64_init_simd_builtins): Make static.
4121 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
4123 * config/aarch64/aarch64.c
4124 (aarch64_simd_make_constant): Make static.
4126 2013-02-28 Martin Jambor <mjambor@suse.cz>
4128 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
4129 with no initialization to the RHS of debug statements.
4131 2013-02-28 Martin Jambor <mjambor@suse.cz>
4133 PR tree-optimization/56294
4134 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
4136 (get_access_replacement): Do not call create_access_replacement.
4137 Assert a replacement exists.
4138 (get_repl_default_def_ssa_name): Create the replacement declaration
4141 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4143 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
4146 2013-02-28 Marek Polacek <polacek@redhat.com>
4148 PR rtl-optimization/56466
4149 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
4150 if we're changing a loop.
4151 (peel_loops_completely): Likewise.
4153 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
4156 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
4158 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
4161 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
4162 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
4163 INTX_FTYPE_FX, FX_FTYPE_INTX.
4164 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
4166 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
4168 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
4169 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
4170 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
4171 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
4172 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
4173 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
4174 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
4175 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
4176 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
4177 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
4178 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
4179 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
4180 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
4181 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
4182 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
4183 (avrxmega6): Increase max flash segments from 5 to 6.
4184 * config/avr/t-multilib: Regenerate.
4185 * config/avr/avr-tables.opt: Regenerate.
4186 * doc/avr-mmcu.texi: Regenerate.
4188 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
4190 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
4191 (avr_device_to_arch): Rename to avr_device_to_ld.
4192 (avr_device_to_as): New prototype.
4193 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
4194 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
4195 * config/avr/driver-avr.c (avr_device_to_as): New.
4196 (avr_device_to_arch): Rename to avr_device_to_ld.
4198 2013-02-27 Jakub Jelinek <jakub@redhat.com>
4201 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
4202 method on dr_chain and result_chain.
4205 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
4206 pointer_set_destroy on not_executed_last_iteration.
4209 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
4212 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
4213 FOR_EACH_DEFINED_FUNCTION when freeing state.
4216 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
4218 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
4222 * ipa-cp.c (decide_whether_version_node): Call vec_free on
4223 known_aggs[i].items and release known_aggs vector.
4226 * ipa-reference.c (propagate): Free node_info even for alias nodes.
4228 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4230 * config/microblaze/microblaze.c (microblaze_emit_compare):
4231 Use xor for EQ/NE comparisions.
4232 * config/microblaze/microblaze.md (cstoresf4): Add constraints
4233 (cbranchsf4): Adjust operator to comparison_operator.
4235 2013-02-27 Jakub Jelinek <jakub@redhat.com>
4238 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
4240 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
4241 vec_safe_push, always update *slot.
4242 (redirect_edge_var_map_clear): Use vec_free.
4243 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
4244 (free_var_map_entry): Use vec_free.
4245 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
4246 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
4248 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
4251 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
4252 when the may_trap_p bit of the exprs being merged differs.
4253 Reorder tests for speculativeness in the logical and operator.
4255 2013-02-27 Jakub Jelinek <jakub@redhat.com>
4257 * incpath.c (add_standard_paths): Use reconcat instead of concat
4258 where appropriate and avoid leaking memory.
4260 * opts.h: Include obstack.h.
4261 (opts_concat): New prototype.
4262 (opts_obstack): New declaration.
4263 * opts.c (opts_concat): New function.
4264 (opts_obstack): New variable.
4265 (init_options_struct): Call gcc_init_obstack on opts_obstack.
4266 (finish_options): Use opts_concat instead of concat
4267 and XOBNEWVEC instead of XNEWVEC.
4268 * opts-common.c (generate_canonical_option, decode_cmdline_option,
4269 generate_option): Likewise.
4270 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
4271 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
4274 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
4275 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
4277 2013-02-26 Jakub Jelinek <jakub@redhat.com>
4280 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
4282 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
4284 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
4285 (arm_block_move_unaligned_straight): Likewise.
4286 (arm_adjust_block_mem): Likewise.
4288 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
4291 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
4292 temp, cond and label.
4293 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
4296 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
4297 * config/c6x/c6x.h (dbx_register_map): Update declaration.
4300 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
4301 of prologue/epilogue functions.
4304 * config/tilegx/tilegx.c (tilegx_expand_prologue):
4305 Remove unused variable cfa_offset.
4306 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
4309 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
4310 type promotion to unsigned.
4313 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
4314 for HOST_WIDE_INT of 32 bit / same size as int.
4315 (arm_block_move_unaligned_straight): Likewise.
4316 (arm_adjust_block_mem): Likewise.
4319 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
4322 2013-02-26 Marek Polacek <polacek@redhat.com>
4324 PR tree-optimization/56426
4325 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
4327 2013-02-26 Richard Biener <rguenther@suse.de>
4330 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
4331 unused variable loops.
4333 2013-02-26 Jakub Jelinek <jakub@redhat.com>
4335 PR tree-optimization/56448
4336 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
4337 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
4338 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
4339 later operands of the references, or even first operand for
4340 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
4342 PR tree-optimization/56443
4343 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
4344 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
4345 to type_for_mode langhook.
4347 2013-02-25 Matt Turner <mattst88@gmail.com>
4349 * doc/invoke.texi: Document r4700.
4351 2013-02-25 Richard Biener <rguenther@suse.de>
4353 PR tree-optimization/56175
4354 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
4356 (simplify_bitwise_binary): ... here. Also guard the conversion
4357 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
4359 2013-02-25 Catherine Moore <clm@codesourcery.com>
4362 2013-02-24 Catherine Moore <clm@codesourcery.com>
4363 Maciej W. Rozycki <macro@codesourcery.com>
4364 Tom de Vries <tom@codesourcery.com>
4365 Nathan Sidwell <nathan@codesourcery.com>
4366 Iain Sandoe <iain@codesourcery.com>
4367 Nathan Froyd <froydnj@codesourcery.com>
4368 Chao-ying Fu <fu@mips.com>
4370 * doc/extend.texi: (micromips, nomicromips, nocompression):
4371 Document new function attributes.
4372 * doc/invoke.texi (minterlink-compressed, mmicromips,
4373 m14k, m14ke, m14kec): Document new options.
4374 (minterlink-mips16): Update documentation.
4375 * doc/md.texi (ZC, ZD): Document new constraints.
4376 * configure.ac (gcc_cv_as_micromips): Check if linker
4377 supports the .set micromips directive.
4378 * configure: Regenerate.
4379 * config.in: Regenerate.
4380 * config/mips/mips-tables.opt: Regenerate.
4381 * config/mips/micromips.md: New file.
4382 * constraints.md (ZC, AD): New constraints.
4383 * config/mips/predicates.md (movep_src_register): New predicate.
4384 (movep_src_operand): New predicate.
4385 (non_volatile_mem_operand): New predicate.
4386 * config/mips/mips.md (multimem): New type.
4387 (length): Differentiate between 17-bit and 18-bit branch offsets.
4388 (MOVEP1, MOVEP2): New mode iterator.
4389 (mov_<load>l): Use ZC constraint.
4390 (mov_<load>r): Likewise.
4391 (mov_<store>l): Likewise.
4392 (mov_<store>r): Likewise.
4393 (*branch_equality<mode>_inverted): Add microMIPS support.
4394 (*branch_equality<mode>): Likewise.
4395 (*jump_absolute): Likewise.
4396 (indirect_jump_<mode>): Likewise.
4397 (tablejump_<mode>): Likewise.
4398 (<optab>_internal): Likewise.
4399 (sibcall_internal): Likewise.
4400 (sibcall_value_internal): Likewise.
4401 (prefetch): Use constraint ZD.
4402 * config/mips/mips.opt (minterlink-compressed): New option.
4403 (minterlink-mips16): Now an alias for minterlink-compressed.
4404 (mmicromips): New option.
4405 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
4406 (compare_and_swap_12): Likewise.
4407 (sync_add<mode>): Likewise.
4408 (sync_<optab>_12): Likewise.
4409 (sync_old_<optab>_12): Likewise.
4410 (sync_new_<optab>_12): Likewise.
4411 (sync_nand_12): Likewise.
4412 (sync_old_nand_12): Likewise.
4413 (sync_new_nand_12): Likewise.
4414 (sync_sub<mode>): Likewise.
4415 (sync_old_add<mode>): Likewise.
4416 (sync_old_sub<mode>): Likewise.
4417 (sync_new_add<mode>): Likewise.
4418 (sync_new_sub<mode>): Likewise.
4419 (sync_<optab><mode>): Likewise.
4420 (sync_old_<optab><mode>): Likewise.
4421 (sync_new_<optab><mode>): Likewise.
4422 (sync_nand<mode>): Likewise.
4423 (sync_old_nand<mode>): Likewise.
4424 (sync_new_nand<mode>): Likewise.
4425 (sync_lock_test_and_set<mode>): Likewise.
4426 (test_and_set_12): Likewise.
4427 (atomic_compare_and_swap<mode>): Likewise.
4428 (atomic_exchange<mode>_llsc): Likewise.
4429 (atomic_fetch_add<mode>_llsc): Likewise.
4430 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
4431 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
4432 (umips_save_restore_pattern_p): Likewise.
4433 (umips_load_store_pair_p): Likewise.
4434 (umips_output_load_store_pair): Likewise.
4435 (umips_movep_target_p): Likewise.
4436 (umips_12bit_offset_address_p): Likewise.
4437 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
4438 (mips_base_mips16): Rename this...
4439 (mips_base_compression_flags): ...to this. Update all uses.
4440 (mips_attribute_table): Add micromips, nomicromips and nocompression.
4441 (mips_mips16_decl_p): Delete.
4442 (mips_nomips16_decl_p): Delete.
4443 (mips_get_compress_on_flags): New function.
4444 (mips_get_compress_off_flags): New function.
4445 (mips_get_compress_mode): New function.
4446 (mips_get_compress_on_name): New function.
4447 (mips_get_compress_off_name): New function.
4448 (mips_insert_attributes): Support multiple compression types.
4449 (mips_merge_decl_attributes): Likewise.
4450 (umips_12bit_offset_address_p): New function.
4451 (mips_start_function_definition): Emit .set micromips directive.
4452 (mips_call_may_need_jalx_p): New function.
4453 (mips_function_ok_for_sibcall): Add microMIPS support.
4454 (mips_print_operand_punctuation): Support short delay slots and
4456 (umips_swm_mask, umips_swm_encoding): New.
4457 (umips_build_save_restore): New function.
4458 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
4459 (was_mips16_p): Remove.
4460 (old_compression_mode): New.
4461 (mips_set_compression_mode): New function.
4462 (mips_set_current_function): Add microMIPS support.
4463 (mips_option_override): Likewise.
4464 (umips_save_restore_pattern_p): New function.
4465 (umips_output_save_restore): New function.
4466 (umips_load_store_pair_p_1): New function.
4467 (umips_load_store_pair_p): New function.
4468 (umips_output_load_store_pair_1): New function.
4469 (umips_output_load_store_pair): New function.
4470 (umips_movep_target_p) New function.
4471 (mips_prepare_pch_save): Add microMIPS support.
4472 * config/mips/mips.h (TARGET_COMPRESSION): New.
4473 (TARGET_CPU_CPP_BUILTINS): Update macro
4474 to use new compression flags and to support microMIPS.
4475 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
4476 (MIPS_ARCH_FLOAT_SPEC): Likewise.
4477 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
4478 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
4479 (ASM_SPEC): Support mmicromips and mno-micromips.
4480 (M16STORE_REG_P): New macro.
4481 (MIPS_CALL): Support TARGET_MICROMIPS.
4482 (MICROMIPS_J): New macro.
4483 (mips_base_mips16): Rename this...
4484 (mips_base_compression_flags): ...to this.
4485 (UMIPS_12BIT_OFFSET_P): New macro.
4486 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
4487 (MULTILIB_DIRNAMES): Likewise.
4489 2013-02-25 Tom de Vries <tom@codesourcery.com>
4491 PR rtl-optimization/56131
4492 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
4493 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
4494 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
4496 2013-02-25 Tobias Burnus <burnus@net-b.de>
4498 * doc/invoke.texi (-fsanitize=): Move from optimization
4499 to debugging options.
4501 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
4503 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
4505 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
4506 Alexander Monakov <amonakov@ispras.ru>
4509 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
4510 flush pending lists also on non-jumps. Adjust comment.
4512 2013-02-24 Catherine Moore <clm@codesourcery.com>
4513 Maciej W. Rozycki <macro@codesourcery.com>
4514 Tom de Vries <tom@codesourcery.com>
4515 Nathan Sidwell <nathan@codesourcery.com>
4516 Iain Sandoe <iain@codesourcery.com>
4517 Nathan Froyd <froydnj@codesourcery.com>
4518 Chao-ying Fu <fu@mips.com>
4520 * doc/extend.texi: (micromips, nomicromips, nocompression):
4521 Document new function attributes.
4522 * doc/invoke.texi (minterlink-compressed, mmicromips,
4523 m14k, m14ke, m14kec): Document new options.
4524 (minterlink-mips16): Update documentation.
4525 * doc/md.texi (ZC, ZD): Document new constraints.
4526 * configure.ac (gcc_cv_as_micromips): Check if linker
4527 supports the .set micromips directive.
4528 * configure: Regenerate.
4529 * config.in: Regenerate.
4530 * config/mips/mips-tables.opt: Regenerate.
4531 * config/mips/micromips.md: New file.
4532 * constraints.md (ZC, AD): New constraints.
4533 * config/mips/predicates.md (movep_src_register): New predicate.
4534 (movep_src_operand): New predicate.
4535 (non_volatile_mem_operand): New predicate.
4536 * config/mips/mips.md (multimem): New type.
4537 (length): Differentiate between 17-bit and 18-bit branch offsets.
4538 (MOVEP1, MOVEP2): New mode iterator.
4539 (mov_<load>l): Use ZC constraint.
4540 (mov_<load>r): Likewise.
4541 (mov_<store>l): Likewise.
4542 (mov_<store>r): Likewise.
4543 (*branch_equality<mode>_inverted): Add microMIPS support.
4544 (*branch_equality<mode>): Likewise.
4545 (*jump_absolute): Likewise.
4546 (indirect_jump_<mode>): Likewise.
4547 (tablejump_<mode>): Likewise.
4548 (<optab>_internal): Likewise.
4549 (sibcall_internal): Likewise.
4550 (sibcall_value_internal): Likewise.
4551 (prefetch): Use constraint ZD.
4552 * config/mips/mips.opt (minterlink-compressed): New option.
4553 (minterlink-mips16): Now an alias for minterlink-compressed.
4554 (mmicromips): New option.
4555 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
4556 (compare_and_swap_12): Likewise.
4557 (sync_add<mode>): Likewise.
4558 (sync_<optab>_12): Likewise.
4559 (sync_old_<optab>_12): Likewise.
4560 (sync_new_<optab>_12): Likewise.
4561 (sync_nand_12): Likewise.
4562 (sync_old_nand_12): Likewise.
4563 (sync_new_nand_12): Likewise.
4564 (sync_sub<mode>): Likewise.
4565 (sync_old_add<mode>): Likewise.
4566 (sync_old_sub<mode>): Likewise.
4567 (sync_new_add<mode>): Likewise.
4568 (sync_new_sub<mode>): Likewise.
4569 (sync_<optab><mode>): Likewise.
4570 (sync_old_<optab><mode>): Likewise.
4571 (sync_new_<optab><mode>): Likewise.
4572 (sync_nand<mode>): Likewise.
4573 (sync_old_nand<mode>): Likewise.
4574 (sync_new_nand<mode>): Likewise.
4575 (sync_lock_test_and_set<mode>): Likewise.
4576 (test_and_set_12): Likewise.
4577 (atomic_compare_and_swap<mode>): Likewise.
4578 (atomic_exchange<mode>_llsc): Likewise.
4579 (atomic_fetch_add<mode>_llsc): Likewise.
4580 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
4581 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
4582 (umips_save_restore_pattern_p): Likewise.
4583 (umips_load_store_pair_p): Likewise.
4584 (umips_output_load_store_pair): Likewise.
4585 (umips_movep_target_p): Likewise.
4586 (umips_12bit_offset_address_p): Likewise.
4587 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
4588 (mips_base_mips16): Rename this...
4589 (mips_base_compression_flags): ...to this. Update all uses.
4590 (mips_attribute_table): Add micromips, nomicromips and nocompression.
4591 (mips_mips16_decl_p): Delete.
4592 (mips_nomips16_decl_p): Delete.
4593 (mips_get_compress_on_flags): New function.
4594 (mips_get_compress_off_flags): New function.
4595 (mips_get_compress_mode): New function.
4596 (mips_get_compress_on_name): New function.
4597 (mips_get_compress_off_name): New function.
4598 (mips_insert_attributes): Support multiple compression types.
4599 (mips_merge_decl_attributes): Likewise.
4600 (umips_12bit_offset_address_p): New function.
4601 (mips_start_function_definition): Emit .set micromips directive.
4602 (mips_call_may_need_jalx_p): New function.
4603 (mips_function_ok_for_sibcall): Add microMIPS support.
4604 (mips_print_operand_punctuation): Support short delay slots and
4606 (umips_swm_mask, umips_swm_encoding): New.
4607 (umips_build_save_restore): New function.
4608 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
4609 (was_mips16_p): Remove.
4610 (old_compression_mode): New.
4611 (mips_set_compression_mode): New function.
4612 (mips_set_current_function): Add microMIPS support.
4613 (mips_option_override): Likewise.
4614 (umips_save_restore_pattern_p): New function.
4615 (umips_output_save_restore): New function.
4616 (umips_load_store_pair_p_1): New function.
4617 (umips_load_store_pair_p): New function.
4618 (umips_output_load_store_pair_1): New function.
4619 (umips_output_load_store_pair): New function.
4620 (umips_movep_target_p) New function.
4621 (mips_prepare_pch_save): Add microMIPS support.
4622 * config/mips/mips.h (TARGET_COMPRESSION): New.
4623 (TARGET_CPU_CPP_BUILTINS): Update macro
4624 to use new compression flags and to support microMIPS.
4625 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
4626 (MIPS_ARCH_FLOAT_SPEC): Likewise.
4627 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
4628 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
4629 (ASM_SPEC): Support mmicromips and mno-micromips.
4630 (M16STORE_REG_P): New macro.
4631 (MIPS_CALL): Support TARGET_MICROMIPS.
4632 (MICROMIPS_J): New macro.
4633 (mips_base_mips16): Rename this...
4634 (mips_base_compression_flags): ...to this.
4635 (UMIPS_12BIT_OFFSET_P): New macro.
4636 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
4637 (MULTILIB_DIRNAMES): Likewise.
4639 2013-02-24 Jakub Jelinek <jakub@redhat.com>
4642 * target-globals.c (save_target_globals): For init_reg_sets and
4643 target_reinit remporarily set this_fn_optabs to this_target_optabs.
4645 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
4647 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
4648 * config/aarch64/t-aarch64
4649 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
4651 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
4654 * lra-constraints.c (process_alt_operands): Reload operand
4655 conflicting with earlier clobber only if no more other conflicting
4658 2013-02-22 Jakub Jelinek <jakub@redhat.com>
4661 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
4662 if not linking a shared library.
4664 2013-02-22 Seth LaForge <sethml@google.com>
4666 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
4668 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
4670 * config/arm/arm.md (split for extendsidi): Update condition.
4671 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
4672 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
4673 (qhs_zextenddi_cstr): Likewise.
4675 2013-02-21 Jakub Jelinek <jakub@redhat.com>
4678 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
4679 avoid signed wrapping.
4680 (expand_mult): Handle properly multiplication by
4681 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
4682 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
4683 in the compiler if coeff is HOST_WIDE_INT_MIN.
4684 (expand_divmod): Don't make ext_op1 static, change it's type to
4685 uhwi. Avoid undefined behavior in -INTVAL (op1).
4687 PR rtl-optimization/50339
4688 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
4690 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
4691 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
4692 into splitting_ashiftrt field.
4693 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
4695 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
4698 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
4701 * trans-mem.c (execute_tm_mark): Do not expand transactions that
4702 are sure to go irrevocable.
4704 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
4706 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
4707 scalars are valid operands.
4709 2013-02-21 Martin Jambor <mjambor@suse.cz>
4711 PR tree-optimization/56310
4712 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
4713 only matching indices and non-negative final offsets.
4714 (intersect_aggregates_with_edge): Pass src_idx to
4715 agg_replacements_to_vector. Pass src_idx insstead of index to
4716 intersect_with_agg_replacements.
4718 2013-02-21 Martin Jambor <mjambor@suse.cz>
4720 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
4721 instead of hard-wired defaults.
4723 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
4725 * doc/invoke.texi (MIPS Options): Update documentation of the
4726 floating-point multiply-accumulate instruction restrictions.
4728 2013-02-21 Kostya Serebryany <kcc@google.com>
4730 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
4731 asan_shadow_offset on x86_64 linux.
4733 2013-02-21 Richard Biener <rguenther@suse.de>
4735 PR tree-optimization/56415
4737 2013-02-11 Richard Biener <rguenther@suse.de>
4739 PR tree-optimization/56273
4740 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
4743 2013-02-21 Jakub Jelinek <jakub@redhat.com>
4746 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
4750 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
4751 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
4753 2013-02-20 Jan Hubicka <jh@suse.cz>
4755 PR tree-optimization/56265
4756 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
4757 when target is referenced for first time.
4759 2013-02-20 Richard Biener <rguenther@suse.de>
4761 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
4762 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
4763 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
4764 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
4765 not return anything.
4766 (rename_ssa_copies): Do not remove unused locals.
4767 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
4768 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
4769 * passes.c (execute_function_todo): Do not schedule unused locals
4770 removal if cleanup_tree_cfg did something.
4771 * tree-ssa-live.c (remove_unused_locals): Dump statistics
4772 about the number of removed locals.
4774 2013-02-20 Richard Biener <rguenther@suse.de>
4776 PR tree-optimization/56398
4777 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
4779 2013-02-20 Martin Jambor <mjambor@suse.cz>
4781 PR tree-optimization/55334
4782 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
4783 restricted pointers to arrays.
4785 2013-02-20 Richard Biener <rguenther@suse.de>
4786 Jakub Jelinek <jakub@redhat.com>
4788 PR tree-optimization/56396
4789 * tree-ssa-ccp.c (n_const_val): New static variable.
4790 (get_value): Return NULL for SSA names we don't have a lattice
4792 (ccp_initialize): Initialize n_const_val.
4793 * tree-ssa-copy.c (n_copy_of): New static variable.
4794 (init_copy_prop): Initialize n_copy_of.
4795 (get_value): Return NULL_TREE for SSA names we don't have a
4798 2013-02-20 Martin Jambor <mjambor@suse.cz>
4800 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
4802 2013-02-20 Richard Biener <rguenther@suse.de>
4804 * genpreds.c (write_lookup_constraint): Do not compare first
4805 letter of the constraint again.
4807 2013-02-20 Richard Biener <rguenther@suse.de>
4809 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
4811 (get_use_iv_cost): Terminate hashtable walk when coming across
4814 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
4816 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
4817 reassociation for avx2 targets.
4819 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4821 * config/microblaze/microblaze.c: microblaze_has_clz = 0
4822 Add version check for v8.10.a to enable microblaze_has_clz
4823 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
4824 version and TARGET_PATTERN_COMPARE check
4825 * config/microblaze/microblaze.md: New clzsi2 instruction
4827 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4829 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
4830 function before branching.
4832 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
4834 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
4836 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
4838 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
4841 * sel-sched.c: Include ira.h.
4842 (implicit_clobber_conflict_p): New function.
4843 (moveup_expr): Use it.
4844 * Makefile.in (sel-sched.o): Depend on ira.h.
4846 2013-02-19 Richard Biener <rguenther@suse.de>
4848 PR tree-optimization/56384
4849 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
4850 (vn_hash_type): Split out from ...
4851 (vn_hash_constant_with_type): ... here.
4852 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
4853 (vn_phi_eq): Compare types from vn_phi_s structure.
4854 (vn_phi_lookup): Populate vn_phi_s type.
4855 (vn_phi_insert): Likewise.
4857 2013-02-19 Jakub Jelinek <jakub@redhat.com>
4859 PR tree-optimization/56350
4860 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
4861 if haven't found reduction or nested cycle operand, rather than
4862 asserting we must find it.
4864 PR tree-optimization/56381
4865 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
4868 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
4869 Jakub Jelinek <jakub@redhat.com>
4872 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
4873 (swap_optab_enable): Same.
4874 (init_all_optabs): Use argument instead of global.
4875 * tree.h (struct tree_optimization_option): New field target_optabs.
4876 * expr.h (init_all_optabs): Add argument to prototype.
4877 (TREE_OPTIMIZATION_OPTABS): New.
4878 (save_optabs_if_changed): Protoize.
4879 * optabs.h: Declare this_fn_optabs.
4880 * optabs.c (save_optabs_if_changed): New.
4881 Declare this_fn_optabs.
4882 (init_optabs): Add argument to init_all_optabs() call.
4883 * function.c (invoke_set_current_function_hook): Handle per
4885 * function.h (struct function): New field optabs.
4886 * config/mips/mips.c (mips_set_mips16_mode): Handle when
4887 optimization_current_node has changed.
4888 * target-globals.h (save_target_globals_default_opts): Protoize.
4889 * target-globals.c (save_target_globals_default_opts): New.
4891 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4894 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
4895 registers %fr12 and %fr12R as call used.
4898 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
4899 and HImode, require all displacements to be an integer multiple of
4901 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
4902 only allow QImode and HImode when reload is in progress and strict is
4903 true. Likewise for symbolic addresses. Use base14_operand to check
4904 displacements in REG+BASE addresses.
4906 2013-02-18 Richard Biener <rguenther@suse.de>
4908 PR tree-optimization/56366
4909 * tree-vect-loop.c (get_initial_def_for_induction): Properly
4910 handle sign-conversion of outer-loop initial induction value.
4912 2013-02-18 Richard Biener <rguenther@suse.de>
4915 * cfghooks.c (merge_blocks): If we merge a latch into another
4916 block adjust references to it.
4917 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
4918 (verify_loop_structure): Verify that a recorded latch is in fact
4921 2013-02-18 Richard Biener <rguenther@suse.de>
4923 PR tree-optimization/56321
4924 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
4925 order SSA name release and virtual operand unlinking.
4927 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4929 * config/microblaze/microblaze.md (save_stack_block): Define.
4930 (restore_stack_block): Likewise.
4932 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4934 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
4935 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
4936 * config/microblaze/microblaze.c (microblaze_option_override):
4937 Bail out early for PIC modes when target does not support PIC.
4939 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4941 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
4942 Replace with a microblaze version.
4943 (microblaze_trampoline_init): Adapt for microblaze.
4944 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
4947 2013-02-16 Jakub Jelinek <jakub@redhat.com>
4948 Dodji Seketeli <dodji@redhat.com>
4951 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
4952 (instrument_mem_region_access): Do not forget to always put
4953 instrumentation of the of 'base' and 'base + len' in a "if (len !=
4954 0) statement, even for cases where either 'base' or 'base + len'
4955 are not instrumented -- because they have been previously
4956 instrumented. Simplify the logic by putting all the statements
4957 instrument 'base + len' inside a sequence, and then insert that
4958 sequence right before the current insertion point. Then, to
4959 instrument 'base + len', just get an iterator on that statement.
4960 And do not forget to update the pointer to iterator the function
4961 received as argument.
4963 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
4965 PR rtl-optimization/56348
4966 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
4968 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
4970 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
4971 (clean_graph_dump_file): Pass base to start_graph_dump.
4973 2013-02-14 Richard Henderson <rth@redhat.com>
4976 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
4978 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
4980 * collect2-aix.h: Define F_LOADONLY.
4982 2013-02-14 Richard Biener <rguenther@suse.de>
4985 * varasm.c (output_constant_def_1): Get the decl representing
4986 the constant as argument.
4987 (output_constant_def): Wrap output_constant_def_1.
4988 (make_decl_rtl): Use output_constant_def_1 with the decl
4989 representing the constant.
4990 (build_constant_desc): Optionally re-use a decl already
4991 representing the constant.
4992 (tree_output_constant_def): Adjust.
4994 2013-02-14 Dodji Seketeli <dodji@redhat.com>
4997 * asan.c (instrument_builtin_call): Really put the length of the
4998 second source argument into src1_len.
5000 2013-02-13 Jakub Jelinek <jakub@redhat.com>
5002 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
5003 argument. If it is false, don't create edge from then_bb to
5005 (insert_if_then_before_iter): Pass true to it.
5006 (build_check_stmt): Pass false to it.
5007 (transform_statements): Flush hash table only on extended basic
5008 block boundaries, rather than at the beginning of every bb.
5009 Don't flush hash table on nonfreeing_call_p calls.
5010 * tree-flow.h (nonfreeing_call_p): New prototype.
5011 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
5013 2013-02-13 David S. Miller <davem@davemloft.net>
5015 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
5017 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
5020 * ira.c (max_regno_before_ira): Move from ...
5022 (fix_reg_equiv_init): Use max_regno_before_ira instead of
5025 2013-02-13 Jakub Jelinek <jakub@redhat.com>
5027 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
5029 2013-02-13 Richard Biener <rguenther@suse.de>
5032 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
5033 globals in MEM_REFs.
5035 2013-02-13 Richard Biener <rguenther@suse.de>
5037 * loop-init.c (loop_optimizer_init): Clear loop state when
5038 re-initializing preserved loops.
5039 * loop-unswitch.c (unswitch_single_loop): Return whether
5040 we unswitched the loop. Do not verify loop state here.
5041 (unswitch_loops): When we unswitched a loop discover new loops.
5043 2013-02-13 Kostya Serebryany <kcc@google.com>
5045 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
5047 * sanitizer.def: Rename __asan_init to __asan_init_v1.
5049 2013-02-12 Dodji Seketeli <dodji@redhat.com>
5051 Avoid instrumenting duplicated memory access in the same basic block
5052 * Makefile.in (asan.o): Add new dependency on hash-table.h
5053 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
5054 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
5055 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
5056 (free_mem_ref_resources, has_mem_ref_been_instrumented)
5057 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
5058 (get_mem_ref_of_assignment): New functions.
5059 (get_mem_refs_of_builtin_call): Extract from
5060 instrument_builtin_call and tweak a little bit to make it fit with
5062 (instrument_builtin_call): Use the new
5063 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
5064 of is_gimple_builtin_call.
5065 (instrument_derefs, instrument_mem_region_access): Insert the
5066 instrumented memory reference into the hash table.
5067 (maybe_instrument_assignment): Renamed instrument_assignment into
5068 this, and change it to advance the iterator when instrumentation
5069 actually happened and return true in that case. This makes it
5070 homogeneous with maybe_instrument_assignment, and thus give a
5071 chance to callers to be more 'regular'.
5072 (transform_statements): Clear the memory reference hash table
5073 whenever we enter a new BB, when we cross a function call, or when
5074 we are done transforming statements. Use
5075 maybe_instrument_assignment instead of instrumentation. No more
5076 need to special case maybe_instrument_assignment and advance the
5077 iterator after calling it; it's now handled just like
5078 maybe_instrument_call. Update comment.
5080 2013-02-13 Richard Biener <rguenther@suse.de>
5082 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
5083 Fix loop discovery code.
5085 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
5088 * lra-constraints.c (process_alt_operands): Match early clobber
5089 operand with itself. Check conflicts with earlyclobber only if
5090 the operand is not reloaded. Prefer to reload conflicting operand
5091 if earlyclobber and matching operands are the same.
5093 2013-02-12 Richard Biener <rguenther@suse.de>
5096 * lto-streamer-out.c (write_symbol): Do not output symbols
5097 for hard register variables.
5099 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
5102 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
5103 (umulsidi3_insn, mulsidi3_insn): New insns.
5105 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
5107 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
5108 (struct tune_params): Add vec_costs field.
5109 * config/arm/arm.c (arm_builtin_vectorization_cost)
5110 (arm_add_stmt_cost): New functions.
5111 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
5112 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
5113 (arm_default_vec_cost): New struct of type cpu_vec_costs.
5114 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
5115 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
5116 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
5117 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
5119 2013-02-12 Richard Biener <rguenther@suse.de>
5122 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
5123 decls again if possible.
5125 2013-02-12 Richard Biener <rguenther@suse.de>
5128 * tree-ssa.c (verify_ssa_name): Fix check, move
5129 SSA_NAME_IN_FREE_LIST check up.
5131 2013-02-12 Jakub Jelinek <jakub@redhat.com>
5132 Steven Bosscher <steven@gcc.gnu.org>
5134 PR rtl-optimization/56151
5135 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
5136 equal to op0 or op1, and last_insn pattern is CODE operation
5137 with MEM dest and one of the operands matches that MEM.
5139 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
5141 * doc/extend.texi: Document Function Multiversioning and "default"
5142 parameter string to target attribute.
5143 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
5144 target attribute parameter is "default".
5145 (ix86_compare_version_priority): Remove checks for target attribute.
5146 (ix86_mangle_function_version_assembler_name): Change error to sorry.
5147 Remove check for target attribute equal to NULL. Add assert.
5148 (ix86_generate_version_dispatcher_body): Change error to sorry.
5150 2013-02-11 Iain Sandoe <iain@codesourcery.com>
5151 Jack Howarth <howarth@bromo.med.uc.edu>
5152 Patrick Marlier <patrick.marlier@gmail.com>
5155 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
5156 define ENDFILE_SPEC as TM_DESTRUCTOR.
5157 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
5159 2013-02-11 Alexander Potapenko <glider@google.com>
5160 Jack Howarth <howarth@bromo.med.uc.edu>
5161 Jakub Jelinek <jakub@redhat.com>
5164 * config/darwin.c (cdtor_record): Rename ctor_record.
5165 (sort_cdtor_records): Rename sort_ctor_records.
5166 (finalize_dtors): New routine to sort destructors by
5167 priority before use in assemble_integer.
5168 (machopic_asm_out_destructor): Use finalize_dtors if needed.
5170 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
5172 PR rtl-optimization/56275
5173 * simplify-rtx.c (avoid_constant_pool_reference): Check that
5174 offset is non-negative and less than cmode size before
5175 calling simplify_subreg.
5177 2013-02-11 Richard Biener <rguenther@suse.de>
5179 PR tree-optimization/56264
5180 * cfgloop.h (fix_loop_structure): Adjust prototype.
5181 * loop-init.c (fix_loop_structure): Return the number of
5182 newly discovered loops.
5183 * tree-cfgcleanup.c (repair_loop_structures): When new loops
5184 are discovered, do a full loop-closed SSA rewrite.
5186 2013-02-11 Richard Biener <rguenther@suse.de>
5188 PR tree-optimization/56273
5189 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
5191 (check_array_ref): Fix missing newline in dumps.
5192 (search_for_addr_array): Likewise.
5194 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
5196 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
5198 2013-02-09 Jakub Jelinek <jakub@redhat.com>
5201 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
5203 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
5205 PR rtl-optimization/56246
5206 * lra-constraints.c (simplify_operand_subreg): Try to reuse
5208 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
5209 constraints are satisfied.
5211 2013-02-08 Jeff Law <law@redhat.com>
5214 * emit-rtl.c (reg_is_parm_p): New function.
5215 * regs.h (reg_is_parm_p): New prototype.
5216 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
5217 callee-clobbered registers.
5219 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
5222 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
5223 If there is no implicit builtin declaration, just return NULL.
5225 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
5227 * config/i386/sse.md (FMAMODEM): New mode iterator.
5228 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
5229 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
5231 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
5233 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
5234 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
5235 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
5237 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
5239 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
5240 (microblaze*-*-elf): Likewise.
5241 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
5243 * config/microblaze/microblaze-c.c: Add builtin defines for
5244 _LITTLE_ENDIAN and _BIG_ENDIAN.
5245 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
5246 add to TARGET_DEFAULT flags.
5247 Expand ASM_SPEC and LINK_SPEC.
5248 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
5249 * config/microblaze/microblaze.md: Update extendsidi2 and
5250 movdi_internal instructions to use low-order / high-order reg
5252 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
5253 options and inversemask / mask of LITTLE_ENDIAN.
5254 * config/microblaze/t-microblaze: Expand multilib options to
5255 include mlittle-endian (le) and update exceptions patterns.
5257 2013-02-08 Jakub Jelinek <jakub@redhat.com>
5259 PR rtl-optimization/56195
5260 * lra-constraints.c (get_reload_reg): Don't reuse regs
5261 if they have smaller mode than requested, if they have
5262 wider mode than requested, try to return a SUBREG.
5264 PR tree-optimization/56250
5265 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
5266 if type is unsigned and code isn't MULT_EXPR.
5268 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
5270 PR tree-optimization/56064
5271 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
5272 bits according to mode.
5273 * fixed-value.h (fixed_from_double_int)
5274 (const_fixed_from_double_int): Adjust comments.
5276 2013-02-08 Richard Biener <rguenther@suse.de>
5279 * lto-streamer.h (struct data_in): Remove current_file, current_line
5280 and current_col members.
5281 * lto-streamer-out.c (lto_output_location): Stream changed bits
5282 en-block for efficiency.
5283 * lto-streamer-in.c (clear_line_info): Remove.
5284 (lto_input_location): Cache current file, line and column
5285 globally via local statics. Read changed bits en-block.
5286 (input_function): Do not call clear_line_info.
5287 (lto_read_body): Likewise.
5288 (lto_input_toplevel_asms): Likewise.
5290 2013-02-08 Michael Matz <matz@suse.de>
5292 PR tree-optimization/52448
5293 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
5294 (nt_call_phase): New static.
5295 (add_or_mark_expr): Only mark accesses with newer phase than any
5297 (nonfreeing_call_p): New.
5298 (nt_init_block): Update nt_call_phase, mark blocks as visited.
5299 (nt_fini_block): Keep blocks marked as visited.
5300 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
5302 2013-02-08 Richard Biener <rguenther@suse.de>
5304 * ira.c (ira): Free broken dominator information.
5306 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
5308 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
5310 2013-02-08 Marek Polacek <polacek@redhat.com>
5312 * cfgloop.c (verify_loop_structure): Add more checking of headers.
5314 2013-02-08 Richard Biener <rguenther@suse.de>
5317 * cfgloop.h (flow_loops_find): Adjust.
5318 (bb_loop_header_p): Declare.
5319 * cfgloop.c (bb_loop_header_p): New function split out from ...
5320 (flow_loops_find): ... here. Adjust function signature,
5321 support incremental loop structure update.
5322 (verify_loop_structure): Cleanup. Verify a loop is a loop.
5323 * cfgloopmanip.c (fix_loop_structure): Move ...
5324 * loop-init.c (fix_loop_structure): ... here.
5325 (apply_loop_flags): Split out from ...
5326 (loop_optimizer_init): ... here.
5327 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
5328 in incremental mode, only remove dead loops here.
5330 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
5333 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
5334 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
5335 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
5336 (*round<mode>3.libgcc): New insns for fixed-modes.
5337 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
5338 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
5339 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
5340 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
5341 implementations. Define to __builtin_avr_absFX,
5342 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
5343 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
5344 __builtin_avr_countlsFX, respectively.
5345 * config/avr/avr-c.c (target.h): Include it.
5346 (enum avr_builtin_id): New enum.
5347 (avr_resolve_overloaded_builtin): New static function.
5348 (avr_register_target_pragmas): Use it to set
5349 targetm.resolve_overloaded_builtin.
5350 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
5351 tree nodes used by DEF_BUILTIN.
5352 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
5353 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
5354 <AVR_BUILTIN_xxBITS>: Same.
5356 2013-02-08 Richard Biener <rguenther@suse.de>
5358 * cfgloop.c (verify_loop_structure): Properly handle
5359 a loop exiting to another loop header.
5360 * ira-int.h (ira_loops): Remove.
5361 * ira.c (ira_loops): Remove.
5362 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
5363 (do_reload): Use loop_optimizer_finalize.
5364 * ira-build.c (create_loop_tree_nodes): Use get_loops and
5365 number_of_loops to access the loop tree.
5366 (more_one_region_p): Likewise.
5367 (finish_loop_tree_nodes): Likewise.
5368 (rebuild_regno_allocno_maps): Likewise.
5369 (mark_loops_for_removal): Likewise.
5370 (mark_all_loops_for_removal): Likewise.
5371 (remove_unnecessary_regions): Likewise.
5372 (ira_build): Likewise.
5373 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
5375 2013-02-08 Richard Biener <rguenther@suse.de>
5377 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
5378 * ipa-pure-const.c (analyze_function): Avoid calling
5379 mark_irreducible_loops twice.
5380 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
5382 2013-02-07 David S. Miller <davem@davemloft.net>
5384 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
5386 * var-tracking.c (vt_add_function_parameter): Test the presence of
5387 HAVE_window_save properly and do not remap argument registers when
5388 we have a leaf function.
5390 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
5393 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
5395 * config/i386/i386.c (ix86_print_operand): Ditto.
5397 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
5399 * lra-constraints.c (process_alt_operands): Fix recently added comment.
5401 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
5403 PR rtl-optimization/56225
5404 * lra-constraints.c (process_alt_operands): Check that reload hard
5405 reg can hold value for strict_low_part.
5407 2013-02-07 Jakub Jelinek <jakub@redhat.com>
5410 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
5411 dwarf2out_end_function.
5412 (in_first_function_p, maybe_at_text_label_p,
5413 first_loclabel_num_not_at_text_label): New variables.
5414 (dwarf2out_var_location): In the first function find out
5415 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
5416 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
5419 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
5421 PR rtl-optimization/56178
5422 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
5423 SUBREG of a register. Tidy up related block of code.
5424 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
5425 note if the source is a register or a SUBREG of a register.
5427 2013-02-07 Jakub Jelinek <jakub@redhat.com>
5430 * config/rs6000/rs6000.md (ptrm): New mode attr.
5431 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
5432 call_value_indirect_aix<pttrsize>,
5433 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
5436 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
5438 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
5439 if -bnortl. Convert to strcmp and strncmp.
5441 2013-02-07 Alan Modra <amodra@gmail.com>
5444 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
5445 addresses won't wrap when offsetting.
5446 (rs6000_secondary_reload): Provide secondary reloads needed for
5447 wrapping LO_SUM addresses.
5449 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
5451 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
5452 MACH, just __MACH__.
5454 2013-02-06 Richard Biener <rguenther@suse.de>
5456 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
5457 instead of calling fix_loop_structure.
5459 2013-02-06 Jakub Jelinek <jakub@redhat.com>
5462 * omp-low.c (use_pointer_for_field): Return false if
5463 lower_send_shared_vars doesn't generate any copy-out code.
5465 2013-02-06 Tom de Vries <tom@codesourcery.com>
5467 PR rtl-optimization/56131
5468 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
5469 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
5470 of the label is NULL. Add comment.
5472 2013-02-05 Jakub Jelinek <jakub@redhat.com>
5474 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
5477 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
5478 (STATIC_LIBTSAN_LIBS): Likewise.
5479 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
5480 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
5481 is defined, don't add anything else beyond that.
5482 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
5483 (LINK_COMMAND_SPEC): Use them.
5485 PR tree-optimization/56205
5486 * tree-stdarg.c (check_all_va_list_escapes): Return true if
5487 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
5488 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
5490 2013-02-05 Richard Biener <rguenther@suse.de>
5492 PR tree-optimization/53342
5493 PR tree-optimization/53185
5494 * tree-vectorizer.h (vect_check_strided_load): Remove.
5495 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
5496 not disallow peeling for vectorized strided loads.
5497 (vect_check_strided_load): Make static and simplify.
5498 (vect_analyze_data_refs): Adjust.
5499 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
5500 correctly when vectorizing strided loads.
5502 2013-02-05 Richard Biener <rguenther@suse.de>
5504 * doc/install.texi: Refer to ISL, not PPL.
5506 2013-02-05 Jan Hubicka <jh@suse.cz>
5508 PR tree-optimization/55789
5509 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
5511 2013-02-05 Jan Hubicka <jh@suse.cz>
5513 PR tree-optimization/55789
5514 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
5515 the dead call anyway.
5517 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
5520 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
5522 2013-02-04 Alexander Potapenko <glider@google.com>
5523 Jack Howarth <howarth@bromo.med.uc.edu>
5524 Jakub Jelinek <jakub@redhat.com>
5527 * config/darwin.c (sort_ctor_records): Stabilized qsort
5528 on constructor priority by using original position.
5529 (finalize_ctors): New routine to sort constructors by
5530 priority before use in assemble_integer.
5531 (machopic_asm_out_constructor): Use finalize_ctors if needed.
5533 2013-02-04 Jakub Jelinek <jakub@redhat.com>
5536 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
5537 about visibility on artificial decls.
5538 * config/sol2.c (solaris_assemble_visibility): Likewise.
5540 2013-02-04 Kai Tietz <ktietz@redhat.com>
5543 * config/i386/i386.c (function_value_ms_64): Add additional valtype
5544 argument and improve checking of return-argument types for 16-byte
5546 (ix86_function_value_1): Add additional valtype argument on call
5547 of function_value_64.
5548 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
5549 handling infunction_value_64 function.
5551 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
5553 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
5555 2013-02-04 Richard Biener <rguenther@suse.de>
5557 PR tree-optimization/56188
5558 * tree-ssa-structalias.c (label_visit): Consider case with
5559 initially non-empty points-to set.
5560 (perform_var_substitution): Dump node mapping and clean up.
5562 2013-02-04 Richard Guenther <rguenther@suse.de>
5565 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
5566 node prevail as last resort.
5567 (lto_symtab_merge_decls): Remove guard on LTRANS here.
5568 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
5570 2013-02-04 Richard Biener <rguenther@suse.de>
5572 PR tree-optimization/56113
5573 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
5575 (equiv_class_lookup_or_add): ... this.
5576 (label_visit): Adjust and fix error in previous patch.
5577 (perform_var_substitution): Adjust.
5579 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
5581 * config/sh/divtab.c: Fix formatting and comments throughout the file.
5582 * config/sh/sh4-300.md: Likewise.
5583 * config/sh/sh4a.md: Likewise.
5584 * config/sh/constraints.md: Likewise.
5585 * config/sh/sh.md: Likewise.
5586 * config/sh/netbsd-elf.h: Likewise.
5587 * config/sh/predicates.md: Likewise.
5588 * config/sh/sh-protos.h: Likewise.
5589 * config/sh/ushmedia.h: Likewise.
5590 * config/sh/linux.h: Likewise.
5591 * config/sh/sh.c: Likewise.
5592 * config/sh/superh.h: Likewise.
5593 * config/sh/elf.h: Likewise.
5594 * config/sh/sh4.md: Likewise.
5595 * config/sh/sh.h: Likewise.
5597 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5599 * config/pa/constraints.md: Adjust unused letters. Change "T"
5600 constraint to match_test floating_point_store_memory_operand().
5601 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
5602 (base14_operand): New.
5603 (floating_point_store_memory_operand): New.
5604 (integer_store_memory_operand): Revise to use base14_operand and
5605 reg_plus_base_memory_operand.
5606 (move_dest_operand): Allow symbolic_memory_operands.
5607 (symbolic_memory_operand): Check for LO_SOM.
5608 (symbolic_operand): Change default case to break.
5609 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
5610 CONST_DOUBLE values to be reloaded by putting them into memory when
5611 the destination is a floating point register.
5612 (movdf): Remove code to handle CONST_DOUBLE.
5614 (reload_indf_r1): New.
5615 (reload_insf_r1): New.
5616 Consistently use "Q" and "T" constraints with integer and floating
5617 point move instructions, respectively.
5618 (movdi): Remove FAIL.
5619 Change predicate for source operand unamed DImode move from
5620 general_operand to move_src_operand.
5621 (umulsidi3): Change predicate for destination operand to
5623 Likewise for similar unamed patterns.
5624 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
5625 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
5626 (hppa_legitimize_address): Simplify mask calculation.
5627 (pa_emit_move_sequence): Revised handling of secondary reloads from
5628 REG+D addresses for floating point loads and stores. Directly handle
5629 loading CONST0_RTX (mode) to a floating point register.
5630 (pa_secondary_reload): Handle reloading DF and SFmode constant values
5631 to floating point registers. Don't restrict secondary reloads to
5632 floating point registers to integer modes. Revise some comments and
5634 (TARGET_LEGITIMATE_ADDRESS_P): Define.
5635 (pa_legitimate_address_p): New.
5636 (pa_legitimize_reload_address): New.
5637 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
5638 (STRICT_REG_OK_FOR_BASE_P): New.
5639 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
5640 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
5642 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
5643 Andrew Dixie <andrewd@gentrack.com>
5645 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
5648 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
5650 * expmed.c (extract_bit_field_1): Pass the full width of the
5651 structure to get_best_reg_extraction_insn.
5653 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
5656 * configure.ac (use_cxa_atexit): Add AIX.
5657 * configure: Regenerate.
5659 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
5661 2013-02-01 Jakub Jelinek <jakub@redhat.com>
5664 * final.c (need_profile_function): New variable.
5665 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
5666 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
5667 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
5668 notes, targetm.asm_out.function_prologue doesn't emit anything,
5669 HAVE_prologue and profiler should be emitted before prologue,
5670 set need_profile_function instead of emitting it.
5671 (final_scan_insn): If need_profile_function, emit
5672 profile_function on the first NOTE_INSN_BASIC_BLOCK or
5673 NOTE_INSN_FUNCTION_BEG note.
5675 2013-02-01 Richard Henderson <rth@redhat.com>
5677 * config/rs6000/rs6000.md (smulditi3): New.
5680 * config/alpha/alpha.md (umulditi3): New.
5682 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
5684 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
5685 (ASM_OUTPUT_ALIGNED_LOCAL): New.
5687 2013-02-01 Richard Biener <rguenther@suse.de>
5689 PR tree-optimization/56113
5690 * tree-ssa-structalias.c (label_visit): Reduce work for
5691 single-predecessor nodes.
5693 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
5695 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
5696 range isn't testing for zero.
5698 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
5701 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
5703 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
5704 Nick Clifton <nickc@redhat.com>
5706 * config/v850/constraints.md (Q): Define as a memory constraint.
5707 * config/v850/predicates.md (label_ref_operand): New predicate.
5708 (e3v5_shift_operand): New predicate.
5709 (ior_operator): New predicate.
5710 * config/v850/t-v850: Add e3v5 multilib.
5711 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
5712 (v850_gen_movdi): Prototype.
5713 * config/v850/v850.c: Add support for e3v5 architecture.
5714 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
5716 (construct_save_jarl): Add e3v5 long JARL support.
5717 (v850_adjust_insn_length): New function. Adjust length of call
5718 insns when using e3v5 instructions.
5719 (v850_gen_movdi): New function: Generate instructions to move a
5721 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
5722 (CPP_SPEC): Define __v850e3v5__ as appropriate.
5723 (TARGET_USE_FPU): Enable for e3v5.
5724 (CONST_OK_FOR_W): New macro.
5725 (ADJUST_INSN_LENGTH): Define.
5726 * config/v850/v850.md (UNSPEC_LOOP): Define.
5727 (attr cpu): Add v850e3v5.
5728 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
5729 (movdi): New pattern.
5730 (movdi_internal): New pattern.
5731 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
5732 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
5733 (cstoresf4): Likewise.
5734 (cstoredf4): Likewise.
5735 (insv): New pattern.
5736 (rotlso3_a): New pattern.
5737 (rotlsi3_b): New pattern
5738 (rotlsi3_v850e3v5): New pattern.
5739 (doloop_begin): New pattern.
5740 (fix_loop_counter): New pattern.
5741 (doloop_end): New pattern.
5742 (branch_normal): Add e3v5 long branch support.
5743 (branch_invert): Likewise.
5744 (branch_z_normal): Likewise.
5745 (branch_z_invert): Likewise.
5746 (branch_nz_normal): Likewise.
5747 (branch_nz_invert): Likewise.
5748 (call_internal_short): Add e3v5 register-indirect JARL support.
5749 (call_internal_long): Likewise.
5750 (call_value_internal_short): Likewise.
5751 (call_value_internal_long): Likewise.
5752 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
5753 (mloop): New option.
5754 * config.gcc: Add support for configuring v840e3v5 target.
5755 * doc/invoke.texi: Document new v850 specific command line options.
5757 2013-01-31 Paul Koning <ni1d@arrl.net>
5761 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
5762 children if parent is a class.
5763 (prune_unused_types_prune): Don't add DW_AT_declaration.
5765 2013-01-31 Richard Biener <rguenther@suse.de>
5767 PR tree-optimization/56157
5768 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
5769 match up operand with SLP child.
5771 2013-01-31 Jason Merrill <jason@redhat.com>
5774 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
5775 parameters the first time.
5776 (gen_scheduled_generic_parms_dies): Check completeness here.
5778 2013-01-31 Richard Biener <rguenther@suse.de>
5781 * common.opt (faggressive-loop-optimizations): New flag,
5783 * doc/invoke.texi (faggressive-loop-optimizations): Document.
5784 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
5785 infer_loop_bounds_from_undefined by it.
5787 2013-01-31 Richard Biener <rguenther@suse.de>
5789 PR tree-optimization/56150
5790 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
5791 visit virtual operands.
5792 (find_uses_to_rename_bb): Likewise.
5794 2013-01-31 Richard Biener <rguenther@suse.de>
5796 PR tree-optimization/56150
5797 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
5798 mixed store non-store stmts.
5800 2013-01-30 Jakub Jelinek <jakub@redhat.com>
5803 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
5804 LIBASAN_EARLY_SPEC is defined.
5805 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
5806 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
5808 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
5811 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
5812 invalid args instead of ICEing on it.
5813 (ix86_valid_target_attribute_tree): Return error_mark_node if
5814 ix86_valid_target_attribute_inner_p failed.
5815 (ix86_valid_target_attribute_p): Return false only if
5816 ix86_valid_target_attribute_tree returned error_mark_node. Allow
5817 target("default") attribute.
5818 (sorted_attr_string): Change argument from const char * to tree,
5819 merge in all target attribute arguments rather than just one.
5820 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
5821 instead of free. Avoid using strcat.
5822 (ix86_mangle_function_version_assembler_name): Mangle
5823 target("default") as if no target attribute is present. Adjust
5824 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
5825 instead of xmalloc and XDELETEVEC instead of free.
5826 (ix86_function_versions): Don't return true if one of the decls
5827 doesn't have target attribute. If they don't and one of the decls
5828 is DECL_FUNCTION_VERSIONED, report an error. Adjust
5829 sorted_attr_string caller. Use XDELETEVEC instead of free.
5830 (ix86_supports_function_versions): Remove.
5831 (make_name): Fix up formatting.
5832 (make_dispatcher_decl): Remove resolver_name and its initialization.
5833 Avoid leaking memory.
5834 (is_function_default_version): Return true if there is
5835 target("default") attribute rather than no target attribute at all.
5836 (make_resolver_func): Avoid leaking memory.
5837 (ix86_generate_version_dispatcher_body): Likewise.
5838 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
5839 * target.def (supports_function_versions): Remove.
5840 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
5841 * doc/tm.texi: Regenerated.
5843 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
5845 PR rtl-optimization/56144
5846 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
5847 for values with side effects.
5849 2013-01-30 Richard Biener <rguenther@suse.de>
5851 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
5852 (sparseset_pop): Likewise.
5853 * cfganal.c (compute_idf): Likewise. Increase work-stack size
5854 to be able to use quick_push in the worker loop.
5856 2013-01-30 Marek Polacek <polacek@redhat.com>
5858 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
5860 2013-01-30 Richard Biener <rguenther@suse.de>
5863 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
5865 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
5867 PR tree-optimization/56064
5868 * fixed-value.c (fixed_from_double_int): New function.
5869 * fixed-value.h (fixed_from_double_int): New prototype.
5870 (const_fixed_from_double_int): New static inline function.
5871 * fold-const.c (native_interpret_fixed): New static function.
5872 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
5873 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
5874 (native_encode_fixed): New static function.
5875 (native_encode_expr) <FIXED_CST>: Use it.
5876 (native_interpret_int): Move double_int worker code to...
5877 * double-int.c (double_int::from_buffer): ...this new static method.
5878 * double-int.h (double_int::from_buffer): Prototype it.
5880 2013-01-30 Richard Biener <rguenther@suse.de>
5882 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
5883 New pointer-map and obstack.
5884 (init_alias_vars): Allocate pointer-map and obstack.
5885 (delete_points_to_sets): Free them.
5886 (find_what_var_points_to): Cache result.
5887 (find_what_p_points_to): Adjust for changed interface of
5888 find_what_var_points_to.
5889 (compute_points_to_sets): Likewise.
5890 (ipa_pta_execute): Likewise.
5892 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5894 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
5895 * configure: Regenerate.
5896 * config.in: Regenerate.
5897 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
5898 #nobits/#progbits if supported.
5900 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
5903 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
5904 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
5905 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
5907 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
5909 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
5910 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
5912 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
5914 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
5915 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
5917 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
5919 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
5921 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
5922 * config/arm/cortex-a7.md: New bypasses using
5923 arm_mac_accumulator_is_result.
5925 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
5927 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
5928 (cortex_a7_neon_mla): Likewise.
5929 (cortex_a7_fpfmad): New reservation.
5930 (cortex_a7_fpmacs): Use ffmas and update required units.
5931 (cortex_a7_fpmuld): Update required units and latency.
5932 (cortex_a7_fpmacd): Likewise.
5933 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
5934 (cortex_a7_neon). Likewise.
5935 (bypass) Update participating units.
5937 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
5939 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
5940 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
5942 * config/arm/vfp11.md (vfp_farith): Use ffmas.
5943 (vfp_fmul): Use ffmad.
5944 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
5945 (cortex_r4_fmacd): Use ffmad.
5946 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
5947 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
5948 (cortex_a9_fmacd): Use ffmad.
5949 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
5950 (cortex_a8_vfp_macd): Use ffmad.
5951 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
5952 (cortex_a5_fpmacd): Use ffmad.
5953 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
5954 (cortex_a15_vfp_macd): Use ffmad.
5955 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
5957 2013-01-29 Jason Merrill <jason@redhat.com>
5960 * varasm.c (default_assemble_visibility): Don't warn about
5961 visibility on artificial decls.
5963 2013-01-29 Richard Biener <rguenther@suse.de>
5965 PR tree-optimization/56113
5966 * tree-ssa-structalias.c (equiv_class_lookup): Also return
5968 (label_visit): Free duplicate bitmaps and record the leader instead.
5969 (perform_var_substitution): Adjust.
5971 2013-01-29 Richard Biener <rguenther@suse.de>
5973 PR tree-optimization/55270
5974 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
5975 the CFG, schedule loops for fixup.
5977 2013-01-29 Nick Clifton <nickc@redhat.com>
5979 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
5982 2013-01-28 Leif Ekblad <leif@rdos.net>
5984 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
5985 * config/i386/i386.h (TARGET_RDOS): New macro.
5986 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
5987 * config/i386/i386.c (ix86_option_override_internal): For 64bit
5988 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
5989 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
5990 DEFAULT_LARGE_SECTION_THRESHOLD.
5991 * config/i386/i386.md (R14_REG, R15_REG): New constants.
5992 * config/i386/rdos.h: New file.
5993 * config/i386/rdos64.h: New file.
5995 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
5998 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
6001 2013-01-28 Jakub Jelinek <jakub@redhat.com>
6003 PR rtl-optimization/56117
6004 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
6005 call cselib_lookup_from_insn on the MEM before calling
6006 add_insn_mem_dependence.
6008 2013-01-28 Richard Biener <rguenther@suse.de>
6010 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
6011 to a stmt that didn't have one.
6012 (copy_phis_for_bb): Likewise for PHI arguments.
6013 (copy_debug_stmt): Likewise for debug stmts.
6015 2013-01-28 Richard Biener <rguenther@suse.de>
6017 PR tree-optimization/56034
6018 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
6019 (partition_builtin_p): Adjust.
6020 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
6021 it is the last partition.
6022 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
6023 up the vertex for the definition.
6024 (classify_partition): Classify whether a partition is a
6025 PKIND_REDUCTION, thus has uses outside of the loop.
6026 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
6027 Merge all PKIND_REDUCTION partitions into the last partition.
6028 (tree_loop_distribution): Seed partitions from reductions as well.
6030 2013-01-28 Jakub Jelinek <jakub@redhat.com>
6032 PR tree-optimization/56125
6033 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
6034 pow(x,c) into sqrt(x) * powi(x, n/2) or
6035 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
6036 optimizing for size.
6037 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
6038 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
6041 PR tree-optimization/56094
6042 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
6043 to UNKNOWN_LOCATION while gimplifying expr.
6045 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
6048 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
6049 operand 0 in movabs insn template for -masm=intel asm alternative.
6050 (*movabs<mode>_2): Ditto for operand 1.
6052 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
6055 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
6058 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6060 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
6063 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6065 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
6066 Undef to avoid warning.
6068 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
6070 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
6071 * configure: Regenerate.
6073 2013-01-25 Jakub Jelinek <jakub@redhat.com>
6075 PR tree-optimization/56098
6076 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
6077 for stmts with volatile ops.
6078 (cond_store_replacement): Don't optimize if assign has volatile ops.
6079 (cond_if_else_store_replacement_1): Don't optimize if either
6080 then_assign or else_assign have volatile ops.
6081 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
6084 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
6086 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
6088 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
6090 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
6091 missing ':' in asm example.
6093 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
6095 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
6096 entries into lane and laneq entries.
6097 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
6098 Remove AdvSIMD scalar modes.
6099 (aarch64_sq<r>dmulh_laneq<mode>): New.
6100 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
6102 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
6103 builtin implementations to relfect changes in RTL in aarch64-simd.md.
6104 * config/aarch64/iterators.md (VCOND): New.
6107 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
6110 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
6111 Add NULL LIBNAME argument to existing definitions.
6112 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
6113 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
6114 * config/avr/avr.c (DEF_BUILTIN): Same.
6115 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
6116 (avr_expand_builtin): Expand to a vanilla call if a libgcc
6117 implementation is available (DECL_ASSEMBLER_NAME is set).
6118 (avr_fold_absfx): New static function.
6119 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
6120 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
6121 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
6123 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
6124 (abshk, absk, abslk, absllk): Provide as static inline functions.
6126 2013-01-25 Marek Polacek <polacek@redhat.com>
6128 PR tree-optimization/56035
6129 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
6131 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
6133 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
6134 (*movtf_internal_rex64): Add (!o,C) alternative
6135 (*movxf_internal_rex64): Ditto.
6136 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
6138 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
6140 * doc/invoke.texi: fix typo.
6141 * doc/objc.texi: fix typo.
6143 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
6145 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
6146 for the first two alternatives.
6148 2013-01-24 Diego Novillo <dnovillo@google.com>
6150 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
6151 (ggc-zone.o): Remove.
6152 * configure.ac: Remove option --with-gc.
6153 * configure: Re-generate.
6154 * doc/install.texi: Remove documentation for --with-gc.
6155 * gengtype.c (write_enum_defn): Remove. Update all users.
6156 (write_Types_process_field): Remove generation of gt_e_* argument.
6157 (output_type_enum): Remove. Update all users.
6158 (write_enum_defn): Remove. Update all users.
6159 (enum alloc_zone): Remove. Update all users.
6160 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
6161 * ggc-common.c (ggc_splay_alloc): Remove first argument.
6163 (struct ptr_data): Remove field TYPE. Update all users.
6164 (gt_pch_note_object): Remove argument TYPE. Update all users.
6165 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
6167 * ggc-none.c (ggc_alloc_typed_stat): Remove.
6168 (struct alloc_zone): Remove.
6169 (ggc_internal_alloc_zone_stat): Remove.
6170 (ggc_internal_cleared_alloc_zone_stat): Remove.
6171 * ggc-page.c (ggc_alloc_typed_stat): Remove.
6172 (ggc_pch_count_object): Remove last argument. Update all users.
6173 (ggc_pch_alloc_object): Remove last argument. Update all users.
6174 (struct alloc_zone): Remove.
6175 * ggc-zone.c: Remove.
6176 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
6177 (struct alloc_zone): Remove.
6178 (ggc_alloc_typed_stat): Remove.
6179 (ggc_alloc_typed): Remove.
6180 (ggc_splay_alloc): Remove first argument.
6181 (rtl_zone): Remove. Update all users.
6182 (tree_zone): Remove. Update all users.
6183 (tree_id_zone): Remove. Update all users.
6184 (ggc_internal_zone_alloc_stat): Remove. Update all users.
6185 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
6186 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
6187 * tree-ssanames.c: Remove references to zone allocator in comments.
6189 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
6191 * config/avr/avr.c (avr_out_fract): Make register numbers that
6192 might be outside of source operand signed.
6194 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
6196 * config/i386/constraints.md (Yf): New constraint.
6197 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
6198 of f constraint to conditionaly disable x87 register preferences.
6199 (*movdf_internal): Ditto.
6200 (*movsf_internal): Ditto.
6202 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
6205 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
6206 that have operands with impossible constraints.
6207 Add a FIXME for a speed-up opportunity.
6208 * lra-constraints.c (process_alt_operands): Verify that a class
6209 selected from constraints on asms is valid for the operand mode.
6210 (curr_insn_transform): Remove incorrect comment.
6212 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
6214 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
6215 TOC operand is a valid symbol ref in the constant pool.
6217 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6219 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
6221 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
6224 * config/avr/stdfix.h: New file.
6225 * t-avr (stdfix-gcc.h): New rule to build it.
6226 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
6228 2013-01-23 Kostya Serebryany <kcc@google.com>
6230 * config/darwin.h: remove dependency on
6231 CoreFoundation (asan on Mac OS).
6233 2013-01-23 Jakub Jelinek <jakub@redhat.com>
6236 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
6237 instead of cmpdi_operand for first comparison operand.
6238 Don't assert that comparison operands aren't both constants.
6240 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
6242 * doc/install.texi (Downloading the Source): Update references to
6243 downloading separate components.
6245 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
6247 * doc/extend.texi (__int128): Improve grammar.
6249 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
6252 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
6253 alternative to (o,r).
6254 (*movdi_internal_rex64): Remove (!o,n) alternative.
6255 (DImode immediate->memory splitter): Remove.
6256 (DImode immediate->memory peephole2): Remove.
6257 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
6258 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
6259 alternative to (!o,*r).
6260 (*movtf_internal_sse): New pattern.
6261 (*movxf_internal_rex64): New pattern.
6262 (*movxf_internal): Disable for TARGET_64BIT.
6263 (*movdf_internal_rex64): Remove (!o,F) alternative.
6265 2013-01-22 Jakub Jelinek <jakub@redhat.com>
6268 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
6269 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
6270 * tree-vect-loop-manip.c (find_loop_location): Also ignore
6271 stmt locations where LOCATION_LOCUS of the stmt location is
6272 UNKNOWN_LOCATION or BUILTINS_LOCATION.
6275 * config/i386/i386.md (UNSPEC_STOS): New.
6276 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
6277 *strsetqi_1): Add UNSPEC_STOS.
6279 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
6282 * doc/invoke.texi: Remove left over -Wsynth example.
6284 2013-01-21 Jakub Jelinek <jakub@redhat.com>
6286 PR tree-optimization/56051
6287 * fold-const.c (fold_binary_loc): Don't fold
6288 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
6289 a narrowing conversion, or widening conversion from signed
6292 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
6294 PR rtl-optimization/56023
6295 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
6296 dependent on debug instruction.
6298 2013-01-21 Martin Jambor <mjambor@suse.cz>
6301 * function.c (allocate_struct_function): Call
6302 invoke_set_current_function_hook earlier.
6304 2013-01-21 Jakub Jelinek <jakub@redhat.com>
6306 * reload1.c (init_reload): Only initialize reload_obstack
6307 during the first call.
6309 2013-01-21 Marek Polacek <polacek@redhat.com>
6311 * cfgloop.c (verify_loop_structure): Fix up grammar.
6313 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
6315 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
6316 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
6318 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6321 * config/arm/marvell-pj4.md: Update copyright year.
6322 Fix up use of alu to alu_reg and simple_alu_imm.
6324 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
6326 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
6328 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
6331 * lra-constraints.c (curr_insn_transform): Don't reuse original
6332 insn for secondary memory move when memory mode should be different.
6334 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6336 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
6337 atomic_storedi_1): New patterns.
6339 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
6341 btver2 pipeline descriptions.
6342 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
6344 * config/i386/i386.md (btver2_decode): New type attributes.
6345 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
6347 * config/i386/btver2.md: New file describing btver2 pipelines.
6349 2013-01-19 Andrew Pinski <apinski@cavium.com>
6351 PR tree-optimization/52631
6352 * tree-ssa-sccvn (visit_use): Before looking up the original
6353 statement, try looking up the simplified expression.
6355 2013-01-19 Anthony Green <green@moxielogic.com>
6357 * config/moxie/moxie.c (moxie_expand_prologue): Set
6358 current_function_static_stack_size.
6360 2013-01-18 Jakub Jelinek <jakub@redhat.com>
6362 PR tree-optimization/56029
6363 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
6364 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
6366 2013-01-18 Sharad Singhai <singhai@google.com>
6368 PR tree-optimization/55995
6369 * dumpfile.c (dump_loc): Print location only if available.
6370 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
6372 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
6375 * lra-constraints.c (curr_insn_transform): Reuse original insn for
6376 secondary memory move.
6377 (inherit_reload_reg): Use rclass instead of cl for
6378 check_secondary_memory_needed_p.
6380 2013-01-18 Jakub Jelinek <jakub@redhat.com>
6383 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
6384 the case where writing real complex part of target modifies op1.
6386 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
6388 * config/aarch64/aarch64-simd.md
6389 (aarch64_vcond_internal<mode>): Handle unordered cases.
6390 * config/aarch64/iterators.md (v_cmp_result): New.
6392 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
6393 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6395 * config/arm/marvell-pj4.md: New file.
6396 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
6397 * config/arm/arm.md (generic_sched): Add marvell_pj4.
6398 (generic_vfp): Likewise.
6399 * config/arm/arm-cores.def: Add marvell-pj4.
6400 * config/arm/arm-tune.md: Regenerate.
6401 * config/arm/arm-tables.opt: Regenerate.
6402 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
6403 * doc/invoke.texi: Document marvell-pj4.
6405 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
6407 * config/aarch64/arm_neon.h: Map scalar types to standard types.
6409 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
6414 * var-tracking.c (negative_power_of_two_p): New.
6415 (global_get_addr_cache, local_get_addr_cache): New.
6416 (get_addr_from_global_cache, get_addr_from_local_cache): New.
6417 (vt_canonicalize_addr): Rewrite using the above. Adjust the
6419 (vt_stack_offset_p): Remove.
6420 (vt_canon_true_dep): Always canonicalize loc's address.
6421 (clobber_overlapping_mems): Make sure we have a MEM.
6422 (local_get_addr_clear_given_value): New.
6423 (val_reset): Clear local cached entries.
6424 (compute_bb_dataflow): Create and release the local cache.
6425 Disable duplicate MEMs clobbering.
6426 (emit_notes_in_bb): Clobber MEMs likewise.
6427 (vt_emit_notes): Create and release the local cache.
6428 (vt_initialize, vt_finalize): Create and release the global
6429 cache, respectively.
6430 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
6432 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
6435 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
6436 not found in the symtab.
6438 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
6441 PR rtl-optimization/55547
6442 PR rtl-optimization/53827
6445 * alias.c (offset_overlap_p): New, factored out of...
6446 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
6447 the conservative special case for symbolic constants. Don't
6448 adjust zero sizes on alignment.
6450 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
6452 PR rtl-optimization/52573
6453 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
6454 REG_UNUSED for the same register.
6456 2013-01-17 Richard Biener <rguenther@suse.de>
6457 Marek Polacek <polacek@redhat.com>
6459 PR rtl-optimization/55833
6460 * loop-unswitch.c (unswitch_loops): Move loop verification...
6461 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
6462 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
6463 Set it to true when we're removing a loop from hierarchy tree in
6464 an irreducible region.
6465 (fix_bb_placements): Adjust caller.
6466 (fix_loop_placements): Likewise.
6468 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
6470 * config/avr/builtins.def (DEF_BUILTIN): Factor out
6471 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
6472 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
6473 Remove ID. Adjust comments.
6474 * config/avr/avr-c.c (avr_builtin_name): Remove.
6475 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
6476 * config/avr/avr.c (avr_tolower): New static function.
6477 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
6478 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
6479 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
6482 2013-01-17 Jan Hubicka <jh@suse.cz>
6484 PR tree-optimization/55273
6485 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
6487 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
6490 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
6491 store through atomic_store<mode>_1.
6492 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
6494 2013-01-17 Martin Jambor <mjambor@suse.cz>
6496 PR tree-optimizations/55264
6497 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
6498 for virtual methods.
6499 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
6500 virtual methods before inlining is over.
6501 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
6503 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
6506 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
6508 PR rtl-optimization/56005
6509 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
6510 pending reads for prefetch.
6512 2013-01-16 Ian Bolton <ian.bolton@arm.com>
6514 * config/aarch64/aarch64.md
6515 (*cstoresi_neg_uxtw): New pattern.
6516 (*cmovsi_insn_uxtw): New pattern.
6517 (*<optab>si3_uxtw): New pattern.
6518 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
6519 (*<optab>si3_insn_uxtw): New pattern.
6520 (*bswapsi2_uxtw): New pattern.
6522 2013-01-16 Richard Biener <rguenther@suse.de>
6524 * tree-inline.c (tree_function_versioning): Remove set but
6525 never used variable.
6527 2013-01-16 Richard Biener <rguenther@suse.de>
6529 PR tree-optimization/55964
6530 * tree-flow.h (rename_variables_in_loop): Remove.
6531 (rename_variables_in_bb): Likewise.
6532 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
6533 (copy_loop_before): Adjust and delete update-ssa status.
6534 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
6535 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
6536 (rename_variables_in_loop): Remove.
6537 (slpeel_update_phis_for_duplicate_loop): Likewise.
6538 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
6539 use available cfg machinery instead of duplicating it.
6540 Update PHI nodes and perform poor-mans SSA update here.
6541 (slpeel_tree_peel_loop_to_edge): Adjust.
6543 2013-01-16 Richard Biener <rguenther@suse.de>
6545 PR tree-optimization/54767
6546 PR tree-optimization/53465
6547 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
6548 (vrp_visit_phi_node): For PHI arguments coming via backedges
6549 drop all symbolical range information.
6550 (execute_vrp): Compute backedges.
6552 2013-01-16 Richard Biener <rguenther@suse.de>
6554 * doc/install.texi: Update CLooG and ISL requirements to
6557 2013-01-16 Christian Bruel <christian.bruel@st.com>
6560 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
6561 (broken_move): Handle UNSPECV_SP_SWITCH_B.
6562 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
6564 2013-01-16 DJ Delorie <dj@redhat.com>
6566 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
6567 (UNSPECV_SP_SWITCH_E): New.
6568 (sp_switch_1): Change to an unspec.
6569 (sp_switch_2): Change to an unspec. Don't use post-inc when we
6572 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
6574 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
6575 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
6576 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
6577 (expand_mem_thread_fence): Ditto.
6578 (expand_mem_signal_fence): Ditto.
6579 (expand_atomic_load): Ditto.
6580 (expand_atomic_store): Ditto.
6582 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
6584 PR rtl-optimization/55547
6585 PR rtl-optimization/53827
6588 * alias.c (memrefs_conflict_p): Set sizes to negative after
6591 2013-01-15 Jakub Jelinek <jakub@redhat.com>
6594 * function.c (thread_prologue_and_epilogue_insns): Always
6595 add crtl->drap_reg to set_up_by_prologue.set, even if
6596 stack_realign_drap is false.
6598 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6600 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
6601 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
6602 *call): Fix indention.
6604 2013-01-15 Tom de Vries <tom@codesourcery.com>
6607 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
6610 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
6612 PR rtl-optimization/55153
6613 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
6615 2013-01-15 Martin Jambor <mjambor@suse.cz>
6617 PR tree-optimization/55920
6618 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
6619 accesses as grp_to_be_debug_replaced.
6621 2013-01-15 Jakub Jelinek <jakub@redhat.com>
6623 PR tree-optimization/55920
6624 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
6625 there is non-useless type conversion needed from debug rhs to lhs,
6626 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
6628 2013-01-15 Joseph Myers <joseph@codesourcery.com>
6629 Mikael Pettersson <mikpe@it.uu.se>
6632 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
6634 (ASM_OUTPUT_CASE_LABEL): Remove.
6635 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
6636 * final.c (shorten_branches): Update alignment of labels before
6637 jump tables if CASE_VECTOR_SHORTEN_MODE.
6639 2013-01-15 Richard Biener <rguenther@suse.de>
6642 * system.h: Do not include gmp.h for building host tools.
6644 2013-01-15 Richard Biener <rguenther@suse.de>
6647 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
6648 account for bitpos when computing alignment.
6650 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
6652 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
6653 (ix86_target_macros_internal): Likewise.
6655 * config/i386/i386.c (m_CORE2I7): Removed.
6656 (m_CORE_HASWELL): New macro.
6657 (m_CORE_ALL): Likewise.
6658 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
6659 (initial_ix86_arch_features): Likewise.
6660 (processor_target_table): Initializations for Core avx2.
6661 (cpu_names): New names "core-avx2".
6662 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
6663 PROCESSOR_CORE_HASWELL.
6664 (ix86_issue_rate): New case.
6665 (ia32_multipass_dfa_lookahead): Likewise.
6666 (ix86_sched_init_global): Likewise.
6668 * config/i386/i386.h (TARGET_HASWELL): New macro.
6669 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
6670 (processor_type): New PROCESSOR_HASWELL.
6672 2013-01-15 Jakub Jelinek <jakub@redhat.com>
6674 PR tree-optimization/55955
6675 * tree-vect-loop.c (vectorizable_reduction): Give up early on
6676 *SHIFT_EXPR and *ROTATE_EXPR codes.
6678 PR tree-optimization/48766
6679 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
6680 -ftrapv disable -fwrapv.
6682 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
6685 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
6686 etc. to 1 and not to __flash.
6687 Use LL suffix for __INT24_MAX__ with -mint8.
6688 Use ULL suffix for __UINT24_MAX__ with -mint8.
6690 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
6692 * config/avr/avr-arch.h
6693 (struct base_arch_s): Use typedef avr_arch_t instead.
6694 (struct arch_info_s): Use typedef avr_arch_info_t instead.
6695 (struct mcu_type_s): Use typedef avr_mcu_t instead.
6696 * config/avr/avr.c: Same.
6697 * config/avr/avr-devices.c: Same.
6698 * config/avr/driver-avr.c: Same.
6699 * config/avr/gen-avr-mmcu-texi.c: Same.
6700 * config/avr/avr-mcus.def: Adjust comment.
6702 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
6704 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
6705 * config/aarch64/iterators.md (VALLDI): New.
6707 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
6708 Andi Kleen <ak@linux.intel.com>
6711 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
6712 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
6715 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
6717 * config/avr/avr-stdint.h: Remove trailing blanks.
6718 * config/avr/avr-log.h: Same.
6719 * config/avr/avr-arch.h: Same.
6720 * config/avr/avr-devices.c: Same.
6721 * config/avr/avr-dimode.md: Same.
6722 * config/avr/predicates.md: Same.
6723 * config/avr/avr-c.c: Same. And fix typo.
6725 * config/avr/avr-protos.h: Same. And:
6726 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
6727 (init_cumulative_args): Rename to avr_init_cumulative_args.
6728 (expand_prologue): Rename to avr_expand_prologue.
6729 (expand_epilogue): Rename to avr_expand_epilogue.
6730 (adjust_insn_length): Rename to avr_adjust_insn_length.
6731 (notice_update_cc): Rename to avr_notice_update_cc.
6732 (final_prescan_insn): Rename to avr_final_prescan_insn.
6733 * config/avr/avr.c: Same.
6734 * config/avr/avr.h: Same.
6735 * config/avr/avr.md: Remove trailing blanks.
6736 (prologue): Use avr_expand_prologue.
6737 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
6739 2013-01-14 Richard Biener <rguenther@suse.de>
6741 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
6742 verify_location, collect_subblocks): New functions.
6743 (verify_gimple_in_cfg): Verify that locations only reference
6744 BLOCKs in the functions BLOCK tree.
6746 2013-01-14 Richard Biener <rguenther@suse.de>
6748 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
6750 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
6752 (insert_out_of_ssa_copy_on_edge): Likewise.
6753 (rewrite_close_phi_out_of_ssa): Likewise.
6754 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
6756 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
6757 propagated constants.
6758 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
6761 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
6763 * config/avr/avr-modes.def: Add GPL copyright notice.
6765 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
6767 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
6768 MEMMODEL_MASK to determine memory model.
6769 (atomic_store<mode>): Ditto from operands[2].
6770 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
6772 2013-01-13 Jakub Jelinek <jakub@redhat.com>
6775 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
6776 (fold_gimple_assign): Don't call unshare_expr here.
6777 (fold_ctor_reference): Call unshare_expr.
6779 2013-01-13 Terry Guo <terry.guo@arm.com>
6781 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
6782 * doc/fragments.texi: Document MULTILIB_REUSE.
6783 * gcc.c (multilib_reuse): New internal spec.
6784 (set_multilib_dir): Also search multilib from multilib_reuse.
6785 * genmultilib (tmpmultilib3): Refactor code.
6786 (tmpmultilib4): Ditto.
6787 (multilib_reuse): New multilib argument.
6789 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
6791 * Makefile.in: Update copyright.
6793 2013-01-12 Tom de Vries <tom@codesourcery.com>
6796 * calls.c (expand_call): Check if arg_nr is valid.
6798 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6800 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
6801 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
6802 documentation. Add missing '__' in front of
6803 __builtin_ia32_packssdw256.
6805 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6808 * config/s390/s390.c (s390_preferred_reload_class): Do not return
6809 NO_REGS for larl operands.
6810 (s390_reload_larl_operand): Use s390_load_address instead of
6813 2013-01-11 Richard Biener <rguenther@suse.de>
6815 * tree-cfg.c (verify_node_sharing_1): Split out from ...
6816 (verify_node_sharing): ... here.
6817 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
6819 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
6821 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
6822 Substitute TREECHECKING.
6823 * configure: Regenerate.
6824 * Makefile.in (TREECHECKING): New.
6826 2013-01-11 Richard Guenther <rguenther@suse.de>
6828 PR tree-optimization/44061
6829 * tree-vrp.c (extract_range_basic): Compute zero as
6830 value-range for __builtin_constant_p of function parameters.
6832 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
6834 Update copyright years.
6836 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
6838 PR rtl-optimization/55672
6839 * lra-eliminations.c (mark_not_eliminable): Permit addition with
6840 const to be eliminable.
6842 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
6844 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
6845 * configure: Regenerate.
6847 2013-01-10 Richard Biener <rguenther@suse.de>
6849 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
6851 2013-01-10 Richard Biener <rguenther@suse.de>
6854 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
6855 locations for virtual PHI arguments.
6856 (rewrite_update_phi_arguments): Likewise.
6858 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
6860 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
6863 2013-01-10 Jakub Jelinek <jakub@redhat.com>
6865 PR tree-optimization/55921
6866 * tree-complex.c (expand_complex_asm): New function.
6867 (expand_complex_operations_1): Call it for GIMPLE_ASM.
6869 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6872 * config/s390/s390.c (s390_symref_operand_p)
6873 (s390_loadrelative_operand_p): Merge the two functions.
6874 (s390_check_qrst_address, print_operand_address): Add parameters
6875 to s390_loadrelative_operand_p invokation.
6876 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
6877 (s390_reload_larl_operand, s390_secondary_reload): Use
6878 s390_loadrelative_operand_p instead of s390_symref_operand_p.
6879 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
6881 2013-01-09 Mike Stump <mikestump@comcast.net>
6883 * dse.c (record_store): Remove unnecessary assert.
6885 2013-01-09 Jan Hubicka <jh@suse.cz>
6887 PR tree-optimization/55569
6888 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
6889 * cfgloop.h (scale_loop_profile): Likewise.
6891 2013-01-09 Jan Hubicka <jh@suse.cz>
6894 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
6896 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
6898 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
6901 * expr.h (maybe_emit_group_store): Declare.
6902 * expr.c (maybe_emit_group_store): New function.
6903 * builtins.c (expand_builtin_int_roundingfn): Call it.
6904 (expand_builtin_int_roundingfn_2): Likewise.
6906 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
6908 PR rtl-optimization/55829
6909 * lra-constraints.c (match_reload): Add code for absent output.
6910 (curr_insn_transform): Add code for reloads of matched inputs
6913 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
6915 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
6916 attribute of movddup insn to DF.
6917 (*vec_interleave_lowv2df): Ditto.
6918 (vec_dupv2df): Ditto.
6920 2013-01-09 Jan Hubicka <jh@suse.cz>
6922 PR tree-optimiation/55875
6923 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
6924 EVERY_ITERATION parameter.
6925 (number_of_iterations_exit): Check if exit is executed every iteration.
6926 (idx_infer_loop_bounds): Similarly here.
6927 (n_of_executions_at_most): Simplify
6928 to only test for cases where statement is dominated by the
6929 particular bound; handle correctly the "postdominance" test.
6930 (scev_probably_wraps_p): Use max loop iterations info
6931 as a global bound first.
6933 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
6934 Nick Clifton <nickc@redhat.com>
6936 * config/v850/v850.md (cbranchsf4): New pattern.
6937 (cstoresf4): New pattern.
6938 (cbranchdf4): New pattern.
6939 (cstoredf4): New pattern.
6940 (movsicc): Disallow floating point comparisons.
6941 (cmpsf_le_insn): Fix order of operators.
6942 (cmpsf_lt_insn): Likewise.
6943 (cmpsf_eq_insn): Likewise.
6944 (cmpdf_le_insn): Likewise.
6945 (cmpdf_lt_insn): Likewise.
6946 (cmpdf_eq_insn): Likewise.
6947 (cmpsf_ge_insn): Use LE comparison.
6948 (cmpdf_ge_insn): Likewise.
6949 (cmpsf_gt_insn): Use LT comparison.
6950 (cmpdf_gt_insn): Likewise.
6951 (cmpsf_ne_insn): Delete pattern.
6952 (cmpdf_ne_insn): Delete pattern.
6953 * config/v850/v850.c (v850_gen_float_compare): Use
6954 gen_cmpdf_eq_insn for NE comparison.
6955 (v850_float_z_comparison_operator)
6956 (v850_float_nz_comparison_operator): Move from here ...
6957 * config/v850/predicates.md: ... to here. Move GT and GE
6958 comparisons into v850_float_z_comparison_operator.
6959 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
6961 (v850_float_nz_comparison_operator): Likewise.
6963 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6965 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
6966 with calls to gen_insvsi/gen_insvdi.
6968 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
6970 * config/i386/i386.c (initial_ix86_tune_features): Set up
6971 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
6973 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
6974 Jakub Jelinek <jakub@redhat.com>
6976 PR tree-optimization/48189
6977 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
6978 If nitercst is 0, don't predict the exit edge.
6980 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6982 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
6983 in asm_fprintf with reg_names.
6984 (aarch64_print_operand_address): Likewise.
6985 (aarch64_return_addr): Likewise.
6986 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
6988 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6990 * config/pa/pa.h (VAL_U6_BITS_P): Define.
6991 (INT_U6_BITS): Likewise.
6992 * config/pa/predicates.md (uint6_operand): New predicate.
6993 (shift5_operand, shift6_operand): Likewise.
6994 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
6996 (lshrdi3): Use shift6_operand.
6997 (shrpsi4, shrpdi4): New insn patterns.
6998 (extzv): Delete expander.
6999 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
7000 predicates in unamed zero extract patterns. Tighten common constraint.
7001 (extv): Delete expander.
7002 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
7003 predicates in unamed sign extract patterns. Tighten common constraint.
7004 (insv): Delete expander.
7005 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
7006 predicates in unamed insert patterns. Tighten common constraint.
7007 Change uint32_operand predicate to uint6_operand predicate in unamed
7008 DImode pattern to insert constant values of type 1...1xxxx.
7010 2013-01-04 Jan Hubicka <jh@suse.cz>
7012 PR tree-optimization/55823
7013 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
7016 2013-01-08 Jakub Jelinek <jakub@redhat.com>
7017 Uros Bizjak <ubizjak@gmail.com>
7019 PR rtl-optimization/55845
7020 * df-problems.c (can_move_insns_across): Stop scanning at
7021 volatile_insn_p source instruction or give up if
7022 across_from .. across_to range contains any volatile_insn_p
7025 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
7027 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
7028 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
7030 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
7031 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
7033 2013-01-08 Jakub Jelinek <jakub@redhat.com>
7036 * asan.c (asan_clear_shadow): New function.
7037 (asan_emit_stack_protection): Use it.
7039 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
7041 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
7042 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
7043 with tab instead of space.
7045 2013-01-08 Nick Clifton <nickc@redhat.com>
7047 * config/rl78/rl78.c (rl78_expand_prologue): Always select
7048 register bank 0 at the start of an interrupt handler.
7049 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
7052 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
7054 * config/aarch64/aarch64-simd.md
7055 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
7056 (aarch64_simd_bsl): Likewise.
7057 (aarch64_vcond_internal<mode>): Likewise.
7058 (vcond<mode><mode>): Likewise.
7059 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
7060 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
7062 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
7064 * config/aarch64/aarch64-builtins.c
7065 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
7067 2013-01-08 Martin Jambor <mjambor@suse.cz>
7070 * tree-sra.c (analyze_access_subtree): Return true also after
7071 potentially creating a debug-only replacement.
7073 2013-01-08 Jakub Jelinek <jakub@redhat.com>
7076 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
7078 PR tree-optimization/54120
7079 * tree-vrp.c (range_fits_type_p): Don't allow
7080 src_precision < precision from signed vr to unsigned_p
7081 if vr->min or vr->max is negative.
7082 (simplify_float_conversion_using_ranges): Test can_float_p
7083 against CODE_FOR_nothing.
7085 2013-01-08 Jakub Jelinek <jakub@redhat.com>
7086 Richard Biener <rguenther@suse.de>
7089 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
7090 types instead of just INTEGER_TYPE types.
7092 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
7094 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
7097 2013-01-07 Steve Ellcey <sellcey@mips.com>
7100 * config/mips/mips.opt: Change mad to mmad to match documentation.
7102 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
7105 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
7108 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
7111 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
7112 (avr_addrspace_t): Add .section_name field.
7113 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
7115 (avr_addrspace): Same. Initialize .section_name. Remove last
7116 NULL entry. Put __memx into .progmemx.data.
7117 (progmem_section_prefix): Remove.
7118 (avr_asm_init_sections): No need to initialize progmem_section.
7119 (avr_asm_named_section): Use avr_addrspace[].section_name to get
7120 section name prefix.
7121 (avr_asm_select_section): Ditto. And use get_unnamed_section to
7122 retrieve the progmem section.
7123 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
7124 boundary to run over avr_addrspace[].
7125 (avr_register_target_pragmas): Ditto.
7127 2013-01-06 Jakub Jelinek <jakub@redhat.com>
7129 * varasm.c (output_constant_def_contents): For asan_protect_global
7130 protected strings, adjust DECL_ALIGN if needed, before testing for
7132 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
7133 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
7135 (output_object_block): For asan protected decls, emit asan padding
7136 after their contents.
7137 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
7138 (asan_finish_file): Test it here instead.
7140 2013-01-07 Nick Clifton <nickc@redhat.com>
7141 Matthias Klose <doko@debian.org>
7142 Doug Kwan <dougkwan@google.com>
7143 H.J. Lu <hongjiu.lu@intel.com>
7146 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
7148 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
7150 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
7152 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
7154 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
7156 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
7159 * doc/install.texi (Cross-Compiler-Specific Options): Document
7162 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
7164 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
7165 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
7166 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
7167 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
7168 vqmovun_high_s64): Fix source operand number and update copyright.
7170 2013-01-07 Richard Biener <rguenther@suse.de>
7173 * gimple.h (gimple_call_builtin_p): New overload.
7174 * gimple.c (validate_call): New function.
7175 (gimple_call_builtin_p): Likewise.
7176 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7177 Use gimple_call_builtin_p.
7178 (find_func_clobbers): Likewise.
7179 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
7180 (strlen_optimize_stmt): Likewise.
7182 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
7184 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
7185 (vld1q_dup_*): Likewise.
7187 (vld1q_*): Likewise.
7188 (vld1_lane_*): Likewise.
7189 (vld1q_lane_*): Likewise.
7191 2013-01-07 Richard Biener <rguenther@suse.de>
7193 * lto-streamer.h (LTO_minor_version): Bump to 2.
7195 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
7197 * config/aarch64/aarch64-protos.h
7198 (aarch64_const_double_zero_rtx_p): Rename to...
7199 (aarch64_float_const_zero_rtx_p): ...this.
7200 (aarch64_float_const_representable_p): New.
7201 (aarch64_output_simd_mov_immediate): Likewise.
7202 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
7203 move immediate case.
7204 * config/aarch64/aarch64.c
7205 (aarch64_const_double_zero_rtx_p): Rename to...
7206 (aarch64_float_const_zero_rtx_p): ...this.
7207 (aarch64_print_operand): Allow printing of new constants.
7208 (aarch64_valid_floating_const): New.
7209 (aarch64_legitimate_constant_p): Check for valid floating-point
7211 (aarch64_simd_valid_immediate): Likewise.
7212 (aarch64_vect_float_const_representable_p): New.
7213 (aarch64_float_const_representable_p): Likewise.
7214 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
7215 (aarch64_output_simd_mov_immediate): New.
7216 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
7217 (*movdf_aarch64): Likewise.
7218 * config/aarch64/constraints.md (Ufc): New.
7219 (Y): call aarch64_float_const_zero_rtx.
7220 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
7222 2013-01-07 Richard Biener <rguenther@suse.de>
7224 PR tree-optimization/55888
7225 PR tree-optimization/55862
7226 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
7227 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
7228 not if it is contained therein.
7230 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
7232 * config/avr/t-avr: Typo.
7234 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
7237 * config/avr/t-avr: Don't automatically rebuild
7238 $(srcdir)/config/avr/t-multilib
7239 $(srcdir)/config/avr/avr-tables.opt
7240 $(srcdir)/doc/avr-mmcu.texi
7241 (avr-mcus): New phony target to build them on request.
7242 (s-avr-mlib, s-avr-mmcu-texi): Remove.
7243 * avr/avr-mcus.def: Adjust comments.
7245 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
7247 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
7249 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
7251 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
7253 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
7255 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
7257 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
7259 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
7260 to generate profiling.
7261 * config/rs6000/aix64.h (LIB_SPEC): Same.
7263 2013-01-04 Andrew Pinski <apinski@cavium.com>
7265 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
7267 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
7269 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
7271 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
7273 (ix86_expand_move): Ditto.
7274 (ix86_zero_extend_to_Pmode): Ditto.
7275 (ix86_expand_call): Ditto.
7276 (ix86_expand_special_args_builtin): Ditto.
7277 (ix86_expand_builtin): Ditto.
7279 2013-01-04 Richard Biener <rguenther@suse.de>
7281 PR tree-optimization/55862
7282 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
7283 translating them through PHI nodes.
7285 2013-01-04 Martin Jambor <mjambor@suse.cz>
7287 PR tree-optimization/55755
7288 * tree-sra.c (sra_modify_assign): Do not check that an access has no
7289 children when trying to avoid producing a VIEW_CONVERT_EXPR.
7291 2013-01-04 Marek Polacek <polacek@redhat.com>
7294 * opts.c (default_options_optimization): Clarify error message.
7296 2013-01-04 Richard Biener <rguenther@suse.de>
7299 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
7302 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7305 * config/pa/pa.md (movsi): Revert previous change.
7306 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
7309 2013-01-03 Richard Henderson <rth@redhat.com>
7311 * config/i386/i386.c (ix86_expand_move): Always assign to op1
7312 after eliminating TLS symbols.
7314 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
7317 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
7318 * graphite-poly.c (debug_gmp_value): Likewise.
7320 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
7323 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
7324 selected code model, define __code_mode_small__, __code_model_medium__,
7325 __code_model_large__, __code_model_32__ or __code_model_kernel__.
7326 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
7327 xchg temporary register with %k. Declare temporary register as
7329 [__x86_64__]: For medium and large code models, preserve %rbx register.
7331 2013-01-03 Richard Biener <rguenther@suse.de>
7333 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
7334 (dump_subscript): Adjust.
7335 (finalize_ddr_dependent): Do not dump redundant info.
7336 (analyze_siv_subscript): Adjust.
7337 (subscript_dependence_tester): Likewise.
7338 (compute_affine_dependence): Likewise.
7340 2013-01-03 Richard Biener <rguenther@suse.de>
7343 2013-01-03 Richard Biener <rguenther@suse.de>
7345 PR tree-optimization/55857
7346 * tree-vect-stmts.c (vectorizable_load): Do not setup
7347 re-alignment for invariant loads.
7349 2013-01-02 Richard Biener <rguenther@suse.de>
7351 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
7352 invariant load do not generate a vector load from the scalar location.
7354 2013-01-03 Richard Biener <rguenther@suse.de>
7356 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
7357 for not vectorizing.
7358 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
7359 not build INDIRECT_REFs, call get_name once only.
7360 (vect_create_data_ref_ptr): Likewise. Dump base object kind
7361 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
7363 2013-01-03 Richard Biener <rguenther@suse.de>
7365 PR tree-optimization/55857
7366 * tree-vect-stmts.c (vectorizable_load): Do not setup
7367 re-alignment for invariant loads.
7369 2013-01-03 Richard Biener <rguenther@suse.de>
7372 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
7373 prefer a built-in decl.
7375 2013-01-03 Jakub Jelinek <jakub@redhat.com>
7377 * gcc.c (process_command): Update copyright notice dates.
7378 * gcov.c (print_version): Likewise.
7379 * gcov-dump.c (print_version): Likewise.
7381 PR rtl-optimization/55838
7382 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
7383 iv0.step, iv1.step and step.
7385 2013-01-03 Jakub Jelinek <jakub@redhat.com>
7386 Marc Glisse <marc.glisse@inria.fr>
7388 PR tree-optimization/55832
7389 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
7390 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
7391 integer_{one,zero}_node.
7393 2013-01-03 Jakub Jelinek <jakub@redhat.com>
7396 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
7397 * var-tracking.c (reverse_op): Don't add reverse ops to
7398 VALUEs that have already
7399 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
7401 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
7403 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
7405 2013-01-02 Teresa Johnson <tejohnson@google.com>
7407 * dumpfile.c (dump_loc): Print filename with location.
7408 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
7409 new location_t parameter to emit complete unroll message with
7411 (canonicalize_loop_induction_variables): Compute loops location
7412 and pass to try_unroll_loop_completely.
7413 * loop-unroll.c (report_unroll_peel): New function.
7414 (peel_loops_completely): Use new dump format with location
7415 for main dumpfile message, and invoke report_unroll_peel on success.
7416 (decide_unrolling_and_peeling): Ditto.
7417 (decide_peel_once_rolling): Remove old dumpfile message subsumed
7418 by report_unroll_peel.
7419 (decide_peel_completely): Ditto.
7420 (decide_unroll_constant_iterations): Ditto.
7421 (decide_unroll_runtime_iterations): Ditto.
7422 (decide_peel_simple): Ditto.
7423 (decide_unroll_stupid): Ditto.
7424 * cfgloop.c (get_loop_location): New function.
7425 * cfgloop.h (get_loop_location): Declare.
7427 2013-01-02 Sriraman Tallam <tmsriram@google.com>
7429 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
7432 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7435 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
7436 BLKmode objects when EXPAND_MEMORY is specified.
7438 2013-01-02 Sriraman Tallam <tmsriram@google.com>
7440 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
7442 (fold_builtin_cpu): Do not share cpu model decls across statements.
7444 2013-01-02 Jason Merrill <jason@redhat.com>
7447 * tree.c (build_array_type_1): Revert earlier change.
7449 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
7451 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
7453 * config/aarch64/aarch64-tune.md: Re-generate.
7455 2013-01-02 Richard Biener <rguenther@suse.de>
7457 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
7458 invariant load do not generate a vector load from the scalar location.
7460 2013-01-02 Richard Biener <rguenther@suse.de>
7463 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
7464 * configure: Regenerate.
7466 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
7468 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
7469 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
7470 (expand_builtin_int_roundingfn_2): Keep the original target around
7471 for the fallback case.
7473 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
7475 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
7476 to be clear for sign changes.
7478 2013-01-01 Jan Hubicka <jh@suse.cz>
7480 * ipa-inline-analysis.c: Fix formatting.
7482 2013-01-01 Jakub Jelinek <jakub@redhat.com>
7484 PR tree-optimization/55831
7485 * tree-vect-loop.c (get_initial_def_for_induction): Use
7486 gsi_after_labels instead of gsi_start_bb.
7488 Copyright (C) 2013 Free Software Foundation, Inc.
7490 Copying and distribution of this file, with or without modification,
7491 are permitted in any medium without royalty provided the copyright
7492 notice and this notice are preserved.