1 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3 * config/aarch64/aarch64-simd.md
4 (vcond<mode>_internal): Handle special cases for constant masks.
5 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
6 (vcondu<mode><mode>): Likewise.
7 (vcond<v_cmp_result><mode>): New.
9 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
11 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
12 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
13 * config/aarch64/aarch64-simd-builtins.def
14 (cmeq): Update to BUILTIN_VALLDI.
19 * config/aarch64/arm_neon.h
20 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
21 to builtins or C as appropriate.
23 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
25 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
29 * config/aarch64/aarch64-simd.md
31 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
32 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
33 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
34 (cstore<mode>_neg): ...This.
35 * config/aarch64/iterators.md
37 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
39 (UCOMPARISONS): Likewise.
40 (optab): Add missing comparisons.
48 (V_cmp_result): Add DF, SF modes.
49 (v_cmp_result): Likewise.
52 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
54 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
56 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
57 define_insn to define_insn_and_split.
58 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
59 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
60 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
61 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
62 (thumb2_negscc): Likewise.
64 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
66 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
68 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
70 * config/arm/thumb2.md: Remove trailing whitespaces.
72 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
74 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
75 Use gen_int_mode rather than GEN_INT.
77 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
79 * value-prof.c (stream_in_histogram_value): Remove the strayed
82 2013-04-30 Richard Biener <rguenther@suse.de>
85 * cfghooks.c (split_edge): Properly check for the loop
88 2013-04-30 Richard Biener <rguenther@suse.de>
91 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
93 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
95 PR rtl-optimization/56957
96 PR rtl-optimization/57105
98 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
99 variable. Use just INSN_UID for determining whether an insn
100 should be only disconnected from the insn stream.
101 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
103 2013-04-30 Jakub Jelinek <jakub@redhat.com>
105 PR tree-optimization/57104
106 * tsan.c (instrument_expr): Don't instrument accesses to
107 DECL_HARD_REGISTER VAR_DECLs.
109 2013-04-30 Richard Biener <rguenther@suse.de>
111 * function.h (loops_for_fn): New inline function.
112 (set_loops_for_fn): Likewise.
113 * cfgloop.h (place_new_loop): Add struct function parameter.
114 (get_loop): Likewise.
115 (get_loops): Likewise.
116 (number_of_loops): Likewise.
118 (fel_init): Likewise.
119 * cfg.c (get_loop_copy): Adjust.
120 * cfgloop.c (flow_loops_dump): Likewise.
121 (record_loop_exits): Likewise.
122 (verify_loop_structure): Likewise.
123 * cfgloopanal.c (mark_irreducible_loops): Likewise.
124 (estimate_reg_pressure_cost): Likewise.
125 (mark_loop_exit_edges): Likewise.
126 * cfgloopmanip.c (place_new_loop): Likewise.
127 (add_loop): Likewise.
128 (duplicate_loop): Likewise.
129 * graph.c (draw_cfg_nodes): Likewise.
130 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
131 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
132 (extract_affine_chrec): Likewise.
133 (build_scop_iteration_domain): Likewise.
134 * graphite.c (graphite_initialize): Likewise.
135 * ira-build.c (create_loop_tree_nodes): Likewise.
136 (more_one_region_p): Likewise.
137 (rebuild_regno_allocno_maps): Likewise.
138 (mark_loops_for_removal): Likewise.
139 (mark_all_loops_for_removal): Likewise.
140 (remove_unnecessary_regions): Likewise.
141 (ira_build): Likewise.
142 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
143 * loop-init.c (fix_loop_structure): Likewise.
144 (gate_rtl_move_loop_invariants): Likewise.
145 (gate_rtl_unswitch): Likewise.
146 (gate_rtl_unroll_and_peel_loops): Likewise.
147 (rtl_doloop): Likewise.
148 * lto-streamer-in.c (input_cfg): Likewise.
149 * lto-streamer-out.c (output_cfg): Likewise.
150 * modulo-sched.c (sms_schedule): Likewise.
151 * predict.c (tree_estimate_probability): Likewise.
152 (tree_estimate_probability_driver): Likewise.
153 (estimate_loops): Likewise.
154 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
155 (move_sese_region_to_fn): Likewise.
156 (debug_loop_num): Likewise.
157 * tree-chrec.c (chrec_evaluate): Likewise.
158 (hide_evolution_in_other_loops_than_loop): Likewise.
159 (chrec_component_in_loop_num): Likewise.
160 (reset_evolution_in_loop): Likewise.
161 (evolution_function_is_invariant_rec_p): Likewise.
162 * tree-if-conv.c (main_tree_if_conversion): Likewise.
163 * tree-inline.c (copy_loops): Likewise.
164 (copy_cfg_body): Likewise.
165 (tree_function_versioning): Likewise.
166 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
167 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
169 (add_to_evolution_1): Likewise.
170 (scev_const_prop): Likewise.
171 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
172 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
173 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
174 (tree_ssa_lim_initialize): Likewise.
175 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
176 (verify_loop_closed_ssa): Likewise.
177 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
178 (tree_ssa_loop_im): Likewise.
179 (tree_ssa_loop_unswitch): Likewise.
180 (tree_vectorize): Likewise.
181 (check_data_deps): Likewise.
182 (tree_ssa_loop_ivcanon): Likewise.
183 (tree_ssa_loop_bounds): Likewise.
184 (tree_complete_unroll): Likewise.
185 (tree_complete_unroll_inner): Likewise.
186 (tree_parallelize_loops): Likewise.
187 (tree_ssa_loop_prefetch): Likewise.
188 (tree_ssa_loop_ivopts): Likewise.
189 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
190 * tree-vectorizer.c (vectorize_loops): Likewise.
192 2013-04-29 Mike Frysinger <vapier@gentoo.org>
194 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
195 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
196 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
199 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
202 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
205 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
208 * lra-constraints.c (process_alt_operands): Discourage a bit more
209 using memory for pseudos. Print cost dump for alternatives.
210 Modify cost values for conflicts with early clobbers.
211 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
213 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
216 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
218 2013-04-29 Ian Bolton <ian.bolton@arm.com>
220 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
222 (movdi_aarch64): Support LDR/STR from/to D register.
224 2013-04-29 Ian Bolton <ian.bolton@arm.com>
226 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
227 or higher by default.
229 2013-04-29 Richard Biener <rguenther@suse.de>
232 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
233 even if not adding abnormal edges for calls that can make
236 2013-04-29 Richard Biener <rguenther@suse.de>
239 * tree-cfg.c (move_stmt_op): Fix condition under which to update
241 (move_stmt_r): Remove redundant checking.
243 2013-04-29 Teresa Johnson <tejohnson@google.com>
246 * basic-block.h (apply_scale): New function.
247 (apply_probability): Use apply_scale.
248 * gimple-streamer-in.c (input_bb): Ditto.
249 * lto-streamer-in.c (input_cfg): Ditto.
250 * lto-cgraph.c (merge_profile_summaries): Ditto.
251 * tree-optimize.c (execute_fixup_cfg): Ditto.
252 * tree-inline.c (copy_bb): Update comment to use apply_scale.
253 (copy_edges_for_bb): Ditto.
254 (copy_cfg_body): Ditto.
256 2013-04-29 Tom de Vries <tom@codesourcery.com>
258 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
259 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
260 (tail_merge_optimize): Handle current_loops == NULL.
262 2013-04-26 Jeff Law <law@redhat.com>
264 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
265 (simplify_cond_using_ranges): Generalize code to simplify
266 COND_EXPRs where one argument is a constant and the other
267 is an SSA_NAME created by an integral type conversion.
269 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
271 * config/arm/arm.md (store_minmaxsi): Use only when
272 optimize_insn_for_size_p.
274 2013-04-29 Christian Bruel <christian.bruel@st.com>
277 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
279 2013-04-29 Richard Biener <rguenther@suse.de>
282 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
283 loop tree make sure to schedule a fixup for the child as well.
284 (expand_omp_for_generic): Properly add loops.
285 (expand_omp_for_static_nochunk): Likewise.
286 (expand_omp_for_static_chunk): Likewise.
287 (expand_omp_for): For the degenerate case fixup loops.
288 (expand_omp_sections): Fix default bb placement in loops.
289 (expand_omp_atomic_pipeline): Properly add loops.
291 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
293 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
295 2013-04-29 Tom de Vries <tom@codesourcery.com>
297 * tree-ssa-tail-merge.c: Update header comment.
299 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
301 * config/aarch64/arm_neon.h
302 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
303 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
304 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
305 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
306 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
307 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
308 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
309 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
311 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
313 * config/aarch64/aarch64-simd.md
314 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
315 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
316 fix_trunc, fixuns_trunc.
317 (ftrunc<VDQF:mode>2): New.
318 * config/aarch64/iterators.md (optab): Add fix, fixuns.
319 (fix_trunc_optab): New.
321 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
323 * config/aarch64/aarch64-builtins.c
324 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
325 iceilf, lround, iroundf.
327 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
330 * config/i386/i386.h (enum ix86_tune_indices)
331 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
332 New, split from X86_TUNE_INTER_UNIT_MOVES.
333 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
334 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
335 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
336 (TARGET_INTER_UNIT_MOVES): Remove.
337 * config/i386/i386.c (initial_ix86_tune_features): Update.
338 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
339 (ix86_expand_convert_uns_didf_sse): Use
340 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
341 (ix86_expand_vector_init_one_nonzero): Ditto.
342 (ix86_expand_vector_init_interleave): Ditto.
343 (inline_secondary_memory_needed): Return true for moves from SSE class
344 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
345 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
346 * config/i386/constraints.md (Yi, Ym): Depend on
347 TARGET_INTER_UNIT_MOVES_TO_VEC.
348 (Yj, Yn): New constraints.
349 * config/i386/i386.md (*movdi_internal): Change constraints of
350 operand 1 from Yi to Yj and from Ym to Yn.
351 (*movsi_internal): Ditto.
352 (*movdf_internal): Ditto.
353 (*movsf_internal): Ditto.
354 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
355 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
356 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
357 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
358 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
359 * config/i386/sse.md (movdi_to_sse): Ditto.
360 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
361 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
362 TARGET_INTER_UNIT_MOVES.
363 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
364 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
365 instead of TARGET_INTER_UNIT_MOVES.
366 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
367 operand 1 from Yi to Yj and from Ym to Yn.
369 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
371 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
372 (float_truncate_hi_): Likewise.
373 (float_extend_lo_): Likewise.
374 (float_truncate_lo_): Likewise.
375 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
376 (aarch64_float_extend_lo_v2df): Likewise.
377 (vec_unpacks_hi_v4sf): Likewise.
378 (aarch64_float_truncate_lo_v2sf): Likewise.
379 (aarch64_float_truncate_hi_v4sf): Likewise.
380 (vec_pack_trunc_v2df): Likewise.
381 (vec_pack_trunc_df): Likewise.
383 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
385 * config/aarch64/aarch64-builtins.c
386 (aarch64_fold_builtin): Fold float conversions.
387 * config/aarch64/aarch64-simd-builtins.def
388 (floatv2si, floatv4si, floatv2di): New.
389 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
390 * config/aarch64/aarch64-simd.md
391 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
392 * config/aarch64/iterators.md (FLOATUORS): New.
393 (optab): Add float, floatuns.
394 (su_optab): Likewise.
396 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
398 * config/aarch64/aarch64-builtins.c
399 (aarch64_builtin_vectorized_function): Use new names for
401 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
402 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
403 (fcvtzu): Split as...
404 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
405 (fcvtas): Split as...
406 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
407 (fcvtau): Split as...
408 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
409 (fcvtps): Split as...
410 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
411 (fcvtpu): Split as...
412 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
413 (fcvtms): Split as...
414 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
415 (fcvtmu): Split as...
416 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
417 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
418 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
419 (lfrintnusf, lfrintnudf): Likewise.
420 * config/aarch64/aarch64-simd.md
421 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
423 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
424 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
425 (fcvt_pattern): Likewise.
427 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
429 * config/aarch64/aarch64-simd.md
430 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
431 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
433 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
435 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
436 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
437 (vrnd<a,m,n,p>_f32): Implement using builtins.
438 (vrnd<i,x><q>_f<32, 64>): New.
440 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
442 * config/aarch64/aarch64-builtins.c
443 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
444 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
445 (frintz): Rename to...
447 (frintp): Rename to...
449 (frintm): Rename to...
451 (frinti): Rename to...
452 (nearbyint): ...this.
453 (frintx): Rename to...
455 (frinta): Rename to...
457 * config/aarch64/aarch64-simd.md
458 (aarch64_frint<frint_suffix><mode>): Delete.
459 (<frint_pattern><mode>2): Convert to insn.
460 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
461 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
462 (frint_pattern): Likewise.
463 (frint_suffix): Likewise.
465 2013-04-29 Richard Biener <rguenther@suse.de>
467 PR tree-optimization/57081
468 * loop-init.c: Include tree-flow.h.
469 (loop_optimizer_finalize): Free number of iteration estimates.
470 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
472 2013-04-29 Jakub Jelinek <jakub@redhat.com>
474 PR tree-optimization/57083
475 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
476 non-singleton shift count range, zero extend low_bound for uns case.
478 * config/i386/predicates.md (general_vector_operand): New predicate.
479 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
480 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
481 if they aren't nonimmediate operands. If their original values
482 satisfy const_vector_equal_evenodd_p, don't shift them.
483 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
484 predicates. For the SSE4.1 case force operands[{1,2}] into registers
485 if not nonimmediate_operand.
486 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
487 instead of register_operand.
488 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
490 2013-04-28 Eric Botcazou <ebotcazou@gcc.gnu.org>
492 * stor-layout.c (finalize_size_functions): Allocate a structure and
493 reset cfun before dumping the functions.
495 2013-04-27 Jakub Jelinek <jakub@redhat.com>
497 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
500 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
501 use xop_pmacsdqh if uns_p.
502 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
503 the immediate rotate count.
505 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
507 * rtl.h (struct rtx_def): Add comment for field jump.
508 (LRA_SUBREG_P): New macro.
509 * recog.c (register_operand): Check LRA_SUBREG_P.
510 * lra.c (lra): Add note at the end of RTL code. Align non-empty
512 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
513 (lra_final_code_change): Skip subreg change for operators.
514 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
515 if there are no operand changes.
516 * lra-constraints.c (curr_insn_set): New.
517 (match_reload): Set LRA_SUBREG_P.
518 (emit_spill_move): Ditto.
519 (check_and_process_move): Use curr_insn_set. Process only single
520 set insns. Don't initialize sec_mem_p and change_p.
521 (simplify_operand_subreg): Use LRA_SUBREG_P.
522 (reg_in_class_p): New function.
523 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
524 of #ifdef. Add code to remove cycling.
525 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
526 non-null disp. Reload inner instead of disp when base and index
527 are null. Try to put lo_sum into register.
528 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
529 (check_and_process_move): Move code for move cost check to
530 simple_move_p. Remove equiv_substitution.
531 (simple_move_p): New function.
532 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
533 curr_insn_set. Call check_and_process_move only for single set
534 insns. Use the new function. Move call of check_and_process_move
535 after operand equiv substitution and address process.
537 2013-04-26 Jakub Jelinek <jakub@redhat.com>
540 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
541 with nonlocal goto receivers or returns twice calls, ignore
542 unininitialized values from abnormal edges to nl goto receiver
543 or returns twice call.
545 2013-04-26 Jakub Jelinek <jakub@redhat.com>
547 PR tree-optimization/57051
548 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
549 and VEC_RSHIFT_EXPR if shift count is a multiple of element
552 2013-04-26 Richard Biener <rguenther@suse.de>
554 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
555 (expand_omp_taskreg): Likewise. Mark loops for fixup.
556 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
557 (fixup_loop_arrays_after_move): New function.
558 (move_sese_region_to_fn): Properly outline the loop tree parts
561 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
563 * config/i386/i386.md (type, unit): Fix long lines.
565 2013-04-26 Richard Biener <rguenther@suse.de>
567 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
568 (lto-streamer-out.o): Likewise.
569 * cfgloop.c (init_loops_structure): Export, add struct function
571 (flow_loops_find): Adjust.
572 * cfgloop.h (enum loop_estimation): Add EST_LAST.
573 (init_loops_structure): Declare.
574 * lto-streamer-in.c: Include cfgloop.h.
575 (input_cfg): Input the loop tree.
576 * lto-streamer-out.c: Include cfgloop.h.
577 (output_cfg): Output the loop tree.
578 (output_struct_function_base): Do not drop PROP_loops.
580 2013-03-26 Richard Biener <rguenther@suse.de>
582 * tree-cfg.c (execute_build_cfg): Build the loop tree.
583 (pass_build_cfg): Provide PROP_loops.
584 (move_sese_region_to_fn): Remove loops that are outlined into fn
586 * tree-inline.c: Include cfgloop.h.
587 (initialize_cfun): Do not drop PROP_loops.
588 (copy_loops): New function.
589 (copy_cfg_body): Copy loop structure.
590 (tree_function_versioning): Initialize destination loop tree.
591 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
592 (pass_parallelize_loops): Do IL verification.
593 * loop-init.c (loop_optimizer_init): Fixup loops if required.
594 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
595 the CFG make sure we fixup loops as well.
596 * tree-ssa-tail-merge.c: Include cfgloop.h.
597 (replace_block_by): When merging loop latches mark loops for fixup.
598 * lto-streamer-out.c (output_struct_function_base): Drop
600 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
601 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
602 * ipa-split.c: Include cfgloop.h.
603 (split_function): Add the new return block to the loop tree root.
604 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
605 whether we have removed the forwarder block.
606 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
607 * cfgloop.h (place_new_loop): Declare.
608 * cfgloopmanip.c (place_new_loop): Export.
609 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
610 (tree-switch-conversion.o): Likewise.
611 (tree-complex.o): Likewise.
612 (tree-inline.o): Likewise.
613 (tree-ssa-tailmerge.o): Likewise.
614 (ipa-split.o): Likewise.
615 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
616 (tree-ssa-copy.o): Likewise.
617 * tree-switch-conversion.c: Include cfgloop.h
618 (process_switch): If we emit a bit-test cascade, schedule loops
620 * tree-complex.c: Include cfgloop.h.
621 (expand_complex_div_wide): Properly add new basic-blocks to loops.
622 * asan.c: Include cfgloop.h.
623 (create_cond_insert_point): Properly add new basic-blocks to
624 loops, schedule loop fixup.
625 * cfgloop.c (verify_loop_structure): Check that looks are not
627 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
629 (expand_omp_for_generic): Likewise.
630 (expand_omp_sections): Likewise.
631 (expand_omp_atomic_pipeline): Schedule loops for fixup.
632 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
633 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
634 is initialized, not when loops are present.
635 * tree-parloops.c (parallelize_loops): Remove checking here.
636 * passes.c (init_optimization_passes): Schedule a copy-propagation
637 pass before complete unrolling of inner loops.
639 2013-04-26 Jakub Jelinek <jakub@redhat.com>
641 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
642 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
643 (colorize_init): Add argument to _WIN32 version.
644 * toplev.c: Include diagnostic-color.h.
645 (process_options): Default to -fdiagnostics-color=auto if
646 GCC_COLORS env var is in the environment.
647 * common.opt (fdiagnostics-color=): Add Var and Init.
648 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
649 env var is in the environment, the default is auto rather than never.
651 * diagnostic.h (file_name_as_prefix): Add context argument.
652 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
654 * langhooks.c (lhd_print_error_function): Adjust caller.
656 2013-04-25 Lawrence Crowl <crowl@google.com>
658 * var-tracking.c (shared_hash_def::htab):
659 Change type to hash_table. Update dependent calls and types.
661 2013-04-25 Lawrence Crowl <crowl@google.com>
663 * Makefile.in: Update as needed below.
665 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
666 Move declaration to after the type's method definitons.
668 * attribs.c (htab_t scoped_attributes::attribute_hash):
669 Change type to hash_table. Update dependent calls and types.
671 * bitmap.c (htab_t bitmap_desc_hash):
672 Change type to hash_table. Update dependent calls and types.
674 * cselib.c (htab_t cselib_hash_table):
675 Change type to hash_table. Update dependent calls and types.
677 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
678 (hash_string_slot_node): Move implementation into lto-streamer.h
679 struct string_slot_hasher.
680 (eq_string_slot_node): Likewise.
682 * data-streamer-out.c: Update output_block::string_hash_table
683 dependent calls and types.
685 * dwarf2cfi.c (htab_t trace_index):
686 Change type to hash_table. Update dependent calls and types.
688 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
689 Change type to hash_table. Update dependent calls and types.
690 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
691 (htab_t optimize_external_refs::map): Likewise.
692 (htab_t output_comp_unit::extern_map): Likewise.
693 (htab_t output_comdat_type_unit::extern_map): Likewise.
694 (htab_t output_macinfo::macinfo_htab): Likewise.
695 (htab_t optimize_location_lists::htab): Likewise.
696 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
698 * except.c (htab_t ehspec_hash_type):
699 Change type to hash_table. Update dependent calls and types.
700 (assign_filter_values::ttypes): Likewise.
701 (assign_filter_values::ehspec): Likewise.
702 (sjlj_assign_call_site_values::ar_hash): Likewise.
703 (convert_to_eh_region_ranges::ar_hash): Likewise.
705 * gcse.c (htab_t pre_ldst_table):
706 Change type to hash_table. Update dependent calls and types.
708 * ggc-common.c (htab_t saving_htab):
709 Change type to hash_table. Update dependent calls and types.
710 (htab_t loc_hash): Likewise.
711 (htab_t ptr_hash): Likewise.
712 (call_count): Rename ggc_call_count.
713 (call_alloc): Rename ggc_call_alloc.
714 (loc_descriptor): Rename make_loc_descriptor.
715 (add_statistics): Rename ggc_add_statistics.
717 * ggc-common.c (saving_htab):
718 Change type to hash_table. Update dependent calls and types.
720 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
721 (push_gimplify_context): Likewise.
722 (pop_gimplify_context): Likewise.
723 (struct gimple_temp_hash_elt): Added.
724 (struct gimplify_hasher): Likewise.
725 (struct gimplify_ctx.temp_htab):
726 Change type to hash_table. Update dependent calls and types.
728 * gimple-fold.c: Include gimplify-ctx.h.
730 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
731 Change type to hash_table. Update dependent calls and types.
732 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
733 avoid potential global name collision.
735 * gimplify.c: Include gimplify-ctx.h.
736 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
737 (htab_t gimplify_ctx::temp_htab):
738 Update dependent calls and types for new type hash_table.
739 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
740 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
742 * gimplify-ctx.h: New.
743 (struct gimple_temp_hash_elt): Move from gimplify.c.
744 (class gimplify_hasher): New.
745 (struct gimplify_ctx): Move from gimple.h.
746 (htab_t gimplify_ctx::temp_htab):
747 Change type to hash_table. Update dependent calls and types.
749 * graphite-clast-to-gimple.c: Include graphite-htab.h.
750 (htab_t ivs_params::newivs_index):
751 Change type to hash_table. Update dependent calls and types.
752 (htab_t ivs_params::params_index): Likewise.
753 (htab_t print_generated_program::params_index): Likewise.
754 (htab_t gloog::newivs_index): Likewise.
755 (htab_t gloog::params_index): Likewise.
757 * graphite.c: Include graphite-htab.h.
758 4htab_t graphite_transform_loops::bb_pbb_mapping):
759 Change type to hash_table. Update dependent calls and types.
761 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
762 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
763 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
765 * graphite-dependences.c: Include graphite-htab.h.
766 (loop_is_parallel_p): Change hash table type of parameter.
768 * graphite-htab.h: New.
769 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
770 (extern find_pbb_via_hash): Move from graphite-poly.h.
771 (extern loop_is_parallel_p): Move from graphite-poly.h.
772 (extern get_loop_body_pbbs): Move from graphite-poly.h.
774 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
775 (extern loop_is_parallel_p): Move to graphite-htab.h.
776 (extern get_loop_body_pbbs): Move to graphite-htab.h.
778 * haifa-sched.c (htab_t delay_htab):
779 Change type to hash_table. Update dependent calls and types.
780 (htab_t delay_htab_i2): Likewise.
782 * ira-color.c (htab_t allocno_hard_regs_htab):
783 Change type to hash_table. Update dependent calls and types.
785 * ira-costs.c (htab_t cost_classes_htab):
786 Change type to hash_table. Update dependent calls and types.
788 * loop-invariant.c (htab_t merge_identical_invariants::eq):
789 Change type to hash_table. Update dependent calls and types.
791 * loop-iv.c (htab_t bivs):
792 Change type to hash_table. Update dependent calls and types.
794 * loop-unroll.c (htab_t opt_info::insns_to_split):
795 Change type to hash_table. Update dependent calls and types.
796 (htab_t opt_info::insns_with_var_to_expand): Likewise.
798 * lto-streamer.h (struct string_slot): Move from data-streamer.h
799 (struct string_slot_hasher): New.
800 (htab_t output_block::string_hash_table):
801 Change type to hash_table. Update dependent calls and types.
803 * lto-streamer-in.c (freeing_string_slot_hasher): New.
804 (htab_t file_name_hash_table):
805 Change type to hash_table. Update dependent calls and types.
807 * lto-streamer-out.c: Update output_block::string_hash_table dependent
810 * lto-streamer.c (htab_t tree_htab):
811 Change type to hash_table. Update dependent calls and types.
813 * omp-low.c: Include gimplify-ctx.h.
815 * passes.c (htab_t name_to_pass_map):
816 Change type to hash_table. Update dependent calls and types.
817 (pass_traverse): Rename to passes_pass_traverse.
819 * plugin.c (htab_t event_tab):
820 Change type to hash_table. Update dependent calls and types.
822 * postreload-gcse.c (htab_t expr_table):
823 Change type to hash_table. Update dependent calls and types.
824 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
826 * sese.c (debug_rename_map_1): Make extern.
827 (htab_t copy_bb_and_scalar_dependences::rename_map):
828 Change type to hash_table. Update dependent calls and types.
830 * sese.h (extern debug_rename_map): Move to .c file.
832 * store-motion.c (htab_t store_motion_mems_table):
833 Change type to hash_table. Update dependent calls and types.
835 * trans-mem.c (htab_t tm_new_mem_hash):
836 Change type to hash_table. Update dependent calls and types.
838 * tree-browser.c (htab_t TB_up_ht):
839 Change type to hash_table. Update dependent calls and types.
841 * tree-cfg.c (htab_t discriminator_per_locus):
842 Change type to hash_table. Update dependent calls and types.
844 * tree-complex.c: Include tree-hasher.h
845 (htab_t complex_variable_components):
846 Change type to hash_table. Update dependent calls and types.
848 * tree-eh.c (htab_t finally_tree):
849 Change type to hash_table. Update dependent calls and types.
851 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
852 struct int_tree_hasher.
853 (extern int_tree_map_eq): Likewise.
854 (uid_decl_map_hash): Removed.
855 (extern decl_tree_map_eq): Likewise.
857 * tree-hasher.h: New.
858 (struct int_tree_hasher): New.
859 (typedef int_tree_htab_type): New.
861 * tree-inline.c: Include gimplify-ctx.h.
863 * tree-mudflap.c: Include gimplify-ctx.h.
865 * tree-parloops.c: Include tree-hasher.h.
866 (htab_t eliminate_local_variables_stmt::decl_address):
867 Change type to hash_table. Update dependent calls and types.
868 (htab_t separate_decls_in_region::decl_copies): Likewise.
870 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
871 Change type to hash_table. Update dependent calls and types.
873 * tree-sra.c (candidates):
874 Change type to hash_table. Update dependent calls and types.
876 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
878 (int_tree_map_hash): Likewise.
880 * tree-ssa-dom.c (htab_t avail_exprs):
881 Change type to hash_table. Update dependent calls and types.
883 * tree-ssa-live.c (var_map_base_init::tree_to_index):
884 Change type to hash_table. Update dependent calls and types.
886 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
887 Change type to hash_table. Update dependent calls and types.
889 * tree-ssa-phiopt.c (seen_ssa_names):
890 Change type to hash_table. Update dependent calls and types.
892 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
893 Change type to hash_table. Update dependent calls and types.
895 * tree-ssa-uncprop.c (equiv):
896 Change type to hash_table. Update dependent calls and types.
898 2013-04-25 Jakub Jelinek <jakub@redhat.com>
900 PR rtl-optimization/57003
901 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
902 call note_stores with kill_clobbered_value callback again after
903 killing regs_invalidated_by_call.
905 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
907 * config/aarch64/aarch64-simd.md
908 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
909 (aarch64_simd_bsl<mode>): Likewise.
910 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
912 2013-04-25 Marek Polacek <polacek@redhat.com>
914 PR tree-optimization/57066
915 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
917 2013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
919 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
921 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
923 * config/aarch64/aarch64-builtins.c
924 (aarch64_fold_builtin): New.
925 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
926 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
927 * config/aarch64/aarch64-simd-builtins.def (abs): New.
928 * config/aarch64/arm_neon.h
929 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
931 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
932 Tejas Belagod <tejas.belagod@arm.com>
934 * config/aarch64/aarch64-builtins.c
935 (aarch64_gimple_fold_builtin): New.
936 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
937 * config/aarch64/aarch64-simd-builtins.def (addv): New.
938 * config/aarch64/aarch64-simd.md (addpv4sf): New.
940 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
942 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
944 * config/aarch64/aarch64.md
945 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
947 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
949 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
950 (*ngcsi_uxtw): New pattern.
952 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
953 Julian Brown <julian@codesourcery.com>
955 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
956 (TB_DREG): Add T_V4HF.
957 (v4hf_UP): New macro.
958 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
959 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
960 Handle initialisation of V4HF. Adjust initialisation of reinterpret
962 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
963 (arm_vector_mode_supported_p): Handle V4HF.
964 (arm_mangle_map): Handle V4HFmode.
965 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
966 * config/arm/arm_neon_builtins.def: Add entries for
967 vcvtv4hfv4sf, vcvtv4sfv4hf.
968 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
969 (neon_vcvtv4hfv4sf): Likewise.
970 * config/arm/neon-gen.ml: Handle half-precision floating point
972 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
973 * config/arm/arm_neon.h: Regenerate.
974 * config/arm/neon.ml (type elts): Add F16.
975 (type vectype): Add T_float16x4, T_floatHF.
976 (type vecmode): Add V4HF.
977 (type features): Add Requires_FP_bit feature.
978 (elt_width): Handle F16.
979 (elt_class): Likewise.
980 (elt_of_class_width): Likewise.
981 (mode_of_elt): Refactor.
982 (type_for_elt): Handle F16, fix error messages.
983 (vectype_size): Handle T_float16x4.
984 (vcvt_sh): New function.
985 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
986 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
987 (string_of_mode): Handle V4HF.
988 * doc/arm-neon-intrinsics.texi: Regenerate.
990 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
992 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
993 format specifier in 'X' case.
995 2013-04-25 Alan Modra <amodra@gmail.com>
998 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
999 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
1000 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
1001 Repeat for many other rotate/shift and mask patterns using subregs.
1002 Name lshiftrt insns.
1003 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
1004 on WORDS_BIG_ENDIAN.
1006 2013-04-25 Alan Modra <amodra@gmail.com>
1008 * config.gcc: Support little-endian powerpc-linux targets.
1009 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
1010 (LINK_OS_LINUX_SPEC): Define.
1011 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
1012 Preserve MASK_LITTLE_ENDIAN.
1013 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
1014 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
1015 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
1016 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
1017 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
1018 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
1019 Correct fp word order for little-endian. Don't shift toc entries
1020 smaller than a word for little-endian.
1021 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
1022 (bswapdi2 splits): Correct low-part subreg for little-endian.
1023 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
1024 low/high where such is correct only for be.
1025 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
1026 little-endian for -mcall-aixdesc.
1028 2013-04-25 Alan Modra <amodra@gmail.com>
1030 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
1031 replace_equiv_address_nv.
1033 2013-04-25 Alan Modra <amodra@gmail.com>
1035 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
1037 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
1040 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
1041 * rtl.h (struct rtx_def): ...
1043 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
1045 PR rtl-optimizations/57046
1046 * lra-constraints (split_reg): Set up lra_risky_transformations_p
1047 for multi-reg splits.
1049 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
1051 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
1053 2013-04-24 Sterling Augustine <saugustine@google.com>
1055 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
1056 (comp_dir_string, debug_str_dwo_section): New.
1057 (DEBUG_STR_DWO_SECTION): Rename to ...
1058 (DEBUG_DWO_STR_SECTION): ... this.
1059 (DEBUG_NORM_STR_SECTION): Delete.
1060 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
1061 (DEBUG_STR_DWO_SECTION_FLAGS): New.
1062 (find_AT_string): Move most logic to ...
1063 (find_AT_string_in_table): ... here. New.
1064 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
1065 add_skeleton_AT_string. Delete logic.
1066 (output_skeleton_debug_sections): Remove call to
1067 add_top_level_skeleton_die_attrs.
1068 (add_comp_dir_attribute): Move logic to comp_dir_string.
1069 (dwarf2out_init): Initialize debug_str_dwo_section.
1070 (output_indirect_string): Call find_string_form.
1071 (output_indirect_strings): Rewrite.
1072 (prune_unused_types): Empty skeleton_debug_str_hash.
1073 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
1074 (dwarf2out_finish): Call output_indirect_strings.
1076 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1078 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
1080 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
1082 * rtl.h (struct rtx_def): Add comment for field jump.
1083 (LRA_SUBREG_P): New macro.
1084 * recog.c (register_operand): Check LRA_SUBREG_P.
1085 * lra.c (lra): Add note at the end of RTL code. Align non-empty
1087 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
1088 (lra_final_code_change): Skip subreg change for operators.
1089 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
1090 if there are no operand changes.
1091 * lra-constraints.c (curr_insn_set): New.
1092 (match_reload): Set LRA_SUBREG_P.
1093 (emit_spill_move): Ditto.
1094 (check_and_process_move): Use curr_insn_set. Process only single
1095 set insns. Don't initialize sec_mem_p and change_p.
1096 (simplify_operand_subreg): Use LRA_SUBREG_P.
1097 (reg_in_class_p): New function.
1098 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
1099 of #ifdef. Add code to remove cycling.
1100 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
1101 non-null disp. Reload inner instead of disp when base and index
1102 are null. Try to put lo_sum into register.
1103 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
1104 (check_and_process_move): Move code for move cost check to
1105 simple_move_p. Remove equiv_substitution.
1106 (simple_move_p): New function.
1107 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
1108 curr_insn_set. Call check_and_process_move only for single set
1109 insns. Use the new function. Move call of check_and_process_move
1110 after operand equiv substitution and address process.
1112 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
1114 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
1115 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
1116 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
1118 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1120 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
1122 2013-04-24 Marek Polacek <polacek@redhat.com>
1124 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
1125 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
1126 (select_loops_exit_conditions): Likewise.
1127 (number_of_iterations_for_all_loops): Likewise.
1128 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
1129 (scev_analysis): Likewise.
1131 2013-04-02 Catherine Moore <clm@codesourcery.com>
1132 Chao-ying Fu <fu@mips.com>
1134 * config/mips/micromips.md (jraddiusp): New pattern.
1135 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
1136 instruction if possible.
1138 2013-04-24 Alan Modra <amodra@gmail.com>
1140 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
1142 2013-04-24 Julian Brown <julian@codesourcery.com>
1143 Chung-Lin Tang <cltang@codesourcery.com>
1145 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
1146 dependency behavior in enumeration type DIE generation. Add TODO note
1147 to comments about future DW_FORM_sdata/udata re-work of related code.
1149 2013-04-23 Lawrence Crowl <crowl@google.com>
1151 * Makefile.in: Update as needed below.
1153 * hash-table.h (class hash_table):
1154 Correct many methods with parameter types compare_type to the correct
1155 value_type. (Correct code was unlikely to notice the change.)
1156 (hash_table::elements_with_deleted) New.
1157 (class hashtable::iterator): New.
1158 (hashtable::begin()): New.
1159 (hashtable::end()): New.
1160 (FOR_EACH_HASH_TABLE_ELEMENT): New.
1162 * statistics.c (statistics_hashes):
1163 Change type to hash_table. Update dependent calls and types.
1165 * tree-into-ssa.c (var_infos):
1166 Change type to hash_table. Update dependent calls and types.
1168 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
1169 Change type to hash_table. Update dependent calls and types.
1171 * tree-ssa-loop-im.c (struct mem_ref.refs):
1172 Change type to hash_table. Update dependent calls and types.
1174 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
1175 Change type to hash_table. Update dependent calls and types.
1177 * tree-ssa-sccvn.c (vn_tables_s::nary):
1178 Change type to hash_table. Update dependent calls and types.
1179 (vn_tables_s::phis): Likewise.
1180 (vn_tables_s::references): Likewise.
1182 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
1183 (vn_reference_eq): Update parameter and return types.
1185 * tree-ssa-structalias.c (pointer_equiv_class_table):
1186 Change type to hash_table. Update dependent calls and types.
1187 (location_equiv_class_table): Likewise.
1189 * tree-vect-data-refs.c: Consequential changes for making
1190 peeling a hash_table.
1192 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
1193 (destroy_loop_vec_info): Dependent hash_table update.
1195 * tree-vectorizer.h (peeling_htab):
1196 Change type to hash_table. Update dependent calls and types.
1198 2013-04-23 Shiva Chen <shiva0217@gmail.com>
1200 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
1201 to check the register content is equal or not.
1202 * lra-constraints.c (match_reload): Use lra_assign_reg_val
1203 to assign register content record.
1204 * lra-eliminations.c (update_reg_eliminate): Use
1205 lra_update_reg_val_offset to update register content offset.
1206 * lra-int.h (struct lra_reg): Add offset member.
1207 (lra_reg_val_equal_p): New static inline function.
1208 (lra_update_reg_val_offset): New static inline function.
1209 (lra_assign_reg_val): New static inline function.
1210 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
1211 to assign register content record.
1212 (initialize_lra_reg_info_element): Initial offset to zero.
1214 2013-04-23 Catherine Moore <clm@codesourcery.com>
1216 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
1217 operands. Record compression.
1219 2013-04-23 Xinliang David Li <davidxl@google.com>
1221 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
1223 2013-04-23 Richard Biener <rguenther@suse.de>
1226 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
1227 parameter, only add abnormal goto edges from the copied body
1228 if the call could perform abnormal gotos.
1229 (copy_cfg_body): Adjust.
1231 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
1233 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
1235 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1237 * config/s390/sjlj.S: New file.
1238 * config/s390/target.h: New file.
1239 * configure.tgt: Set options for S/390.
1241 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
1243 * coretypes.h (gimple_stmt_iterator): Add struct to make
1246 2013-04-23 Richard Biener <rguenther@suse.de>
1248 PR tree-optimization/57026
1249 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
1250 from SSA names occuring in abnormal PHI nodes.
1252 2013-04-22 Andi Kleen <ak@linux.intel.com>
1254 * lto/lto.c (print_lto_report_1): Fix LTO report names.
1256 2013-04-22 Andi Kleen <ak@linux.intel.com>
1258 * lto/lto.c (print_lto_report_1): Declare early.
1259 (read_cgraph_and_symbols): Call print_lto_report_1 early.
1261 2013-04-22 Andi Kleen <ak@linux.intel.com>
1263 * common.opt (-flto-report-wpa): Add.
1264 * doc/invoke.texi (-flto-report-wpa): Add.
1265 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
1268 2013-04-22 Xinliang David Li <davidxl@google.com>
1270 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
1271 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
1272 * Makefile.in: New dependency
1274 David Daney <ddaney.cavm@gmail.com>
1276 * configure.ac (gcc_cv_as_micromips_support): Use the
1277 --fatal-warnings option.
1278 * configure: Regenerate.
1280 2013-04-22 Marek Polacek <polacek@redhat.com>
1283 * tsan.c (instrument_expr): Don't instrument expression
1284 in case its size is zero.
1286 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
1290 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
1292 * config/alpha/alpha.c (TARGET_LRA_P): New define.
1294 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
1296 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
1297 (gimple_stmt_iterator): New typedef.
1298 * gimple.h (gimple_stmt_iterator): Rename to...
1299 (gimple_stmt_iterator_d): ... This.
1300 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
1301 trees be valid for GIMPLE and GENERIC.
1302 (TARGET_GIMPLE_FOLD_BUILTIN): New.
1303 * gimple-fold.c (gimple_fold_call): Call target hook
1304 gimple_fold_builtin.
1305 * hooks.c (hook_bool_gsiptr_false): New.
1306 * hooks.h (hook_bool_gsiptr_false): New.
1307 * target.def (fold_stmt): New.
1308 * doc/tm.texi: Regenerate.
1310 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
1313 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
1314 a set sp if no stack realignment.
1316 2013-04-22 Nick Clifton <nickc@redhat.com>
1318 * config.gcc (tilegx-linux): Extend extra_objs rather than
1320 (tilepro-linux): Likewise.
1322 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
1324 * config/aarch64/aarch64-builtins.c
1326 (CF0, CF1, CF2, CF3, CF4, CF10): New.
1327 (VAR<1-12>): Add MAP parameter.
1328 (BUILTIN_*): Likewise.
1329 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
1330 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
1331 (aarch64_ushl_n<mode>): Likewise.
1332 (aarch64_sshr_n<mode>): Likewise.
1333 (aarch64_ushr_n<mode>): Likewise.
1334 (aarch64_<maxmin><mode>): Likewise.
1335 (aarch64_sqrt<mode>): Likewise.
1336 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
1337 (vshr<q>_n_*): Likewise.
1339 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
1341 * config/aarch64/aarch64-builtins.c
1342 (aarch64_simd_builtin_type_mode): Handle SF types.
1344 (BUILTIN_GPF): Define.
1345 (aarch64_init_simd_builtins): Handle SF types.
1346 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
1349 * config/aarch64/aarch64-simd.md
1350 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
1351 (aarch64_frecpe<mode>): New.
1352 (aarch64_frecps<mode>): Likewise.
1353 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
1354 (v8type): Add frecp<esx>.
1355 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
1356 (aarch64_frecps<mode>): Likewise.
1357 * config/aarch64/iterators.md (FRECP): New.
1358 (frecp_suffix): Likewise.
1359 * config/aarch64/arm_neon.h
1360 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
1362 2013-04-22 Christian Bruel <christian.bruel@st.com>
1365 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
1366 (REG_CLASS_NAMES): Idem.
1367 (REG_CLASS_CONTENTS): Idem.
1368 (REGCLASS_HAS_FP_REG): Idem.
1369 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
1370 (sh_conditional_register_usage): Idem.
1372 2013-04-21 Jeff Law <law@redhat.com>
1374 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
1375 (ssa_forward_propagate_and_combine): Use it.
1377 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
1379 * lra.c: Update the flow chart diagram.
1381 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
1383 PR rtl-optimization/56847
1384 * lra-constraints.c (process_alt_operands): Discourage alternative
1385 with non-matche doffsettable memory constraint fro memory with
1388 2013-04-19 Richard Biener <rguenther@suse.de>
1390 PR tree-optimization/56982
1391 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
1393 * gimplify.c (gimplify_call_expr): Notice special calls.
1394 (gimplify_modify_expr): Likewise.
1395 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
1396 abnormal control flow receivers.
1397 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
1398 in the same way as cfun->has_nonlocal_labels.
1399 (gimple_purge_dead_abnormal_call_edges): Likewise.
1400 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
1401 receivers start a basic-block.
1403 2013-04-19 Richard Biener <rguenther@suse.de>
1405 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
1407 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
1408 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
1409 (SLP_TREE_LOAD_PERMUTATION): Add.
1410 (vect_transform_slp_perm_load): Adjust prototype.
1411 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
1412 (vect_free_slp_instance): Likewise.
1413 (vect_create_new_slp_node): Likewise.
1414 (vect_supported_slp_permutation_p): Remove.
1415 (vect_slp_rearrange_stmts): Adjust.
1416 (vect_supported_load_permutation_p): Likewise. Inline
1417 vect_supported_slp_permutation_p here.
1418 (vect_analyze_slp_instance): Compute load permutations per
1419 slp node instead of per instance.
1420 (vect_get_slp_defs): Adjust.
1421 (vect_transform_slp_perm_load): Likewise.
1422 (vect_schedule_slp_instance): Remove redundant code.
1423 (vect_schedule_slp): Remove hack for PR56270, add it ...
1424 * tree-vect-stmts.c (vectorizable_load): ... here, do not
1425 CSE loads for SLP. Adjust.
1427 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
1429 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
1430 spelling in two comments.
1432 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
1435 * config/arm/arm.c (load_multiple_sequence): Require SP
1436 as base register for loads if SP is in the register list.
1438 2013-04-19 Martin Jambor <mjambor@suse.cz>
1440 PR tree-optimization/56718
1441 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
1442 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
1443 and made public. Adjusted all callers.
1444 (ipa_intraprocedural_devirtualization): New function.
1445 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
1446 (ipa_intraprocedural_devirtualization): Likewise.
1447 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
1449 2013-04-19 Richard Biener <rguenther@suse.de>
1451 PR tree-optimization/57000
1452 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
1454 2013-04-19 Terry Guo <terry.guo@arm.com>
1456 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
1458 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
1459 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
1460 (cortex_m4_fmacs): Use new reservations.
1461 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
1463 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
1465 PR rtl-optimization/56999
1466 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
1468 (lra_coalesce): Remove split_origin_bitmap and related code.
1469 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
1470 ranges if necessary.
1472 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
1474 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
1476 (ix86_expand_call): Remove clobbered_registers array and use
1477 x86_64_ms_sysv_extra_clobbered_registers instead.
1478 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
1480 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
1482 * config/i386/i386.md (*call_rex64_ms_sysv): Use
1483 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
1484 (*call_value_rex64_ms_sysv): Ditto.
1486 2013-04-18 Cary Coutant <ccoutant@google.com>
1488 * dwarf2out.c (output_pubnames): Check die_perennial_p of
1489 parent instead of die_mark.
1491 2013-04-18 Diego Novillo <dnovillo@google.com>
1493 * gimple.c (create_gimple_tmp): New.
1494 (get_expr_type): New.
1495 (build_assign): New.
1496 (build_type_cast): New.
1497 * gimple.h (enum ssa_mode): Define.
1498 (gimple_seq_set_location): New.
1499 * asan.c (build_check_stmt): Change some gimple_build_* calls
1500 to use build_assign and build_type_cast.
1502 2013-04-18 Richard Biener <rguenther@suse.de>
1504 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
1505 handle negative step. Remove redundant checks.
1506 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
1507 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
1508 for negative step and grouped loads fail to vectorize.
1510 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
1512 * emit-rtl.c (reset_insn_used_flags): New function.
1513 (reset_all_used_flags): Use it.
1514 (verify_insn_sharing): New function.
1515 (verify_rtl_sharing): Fix verification for SEQUENCEs.
1517 2013-04-18 Jakub Jelinek <jakub@redhat.com>
1519 PR tree-optimization/56984
1520 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
1521 and (x >> M) >= N don't register any assertion if N << M is the
1524 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
1526 * lower-subreg.c (resolve_simple_move): If called self-recursive,
1527 do not delete_insn insns that have not yet been emitted, only
1528 unlink them with remove_insn.
1529 * df-scan.c (df_insn_delete): Revert r197492.
1531 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
1533 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
1534 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
1536 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
1538 * config/arm/arm.md (movsicc_insn): Convert define_insn into
1539 define_insn_and_split.
1540 (and_scc,ior_scc,negscc): Likewise.
1541 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
1543 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
1545 * config/arm/arm.c (use_return_insn): Return 0 for targets that
1546 can benefit from using a sequence of LDRD instructions in epilogue
1547 instead of a single LDM instruction.
1549 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
1552 * doc/extend.texi: Fix typo.
1554 2013-04-17 Richard Biener <rguenther@suse.de>
1556 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
1557 (vect_build_slp_tree): ... here.
1558 (vect_build_slp_tree_1): Compute which stmts of the SLP group
1559 match. Remove special-casing of mismatched complex loads.
1560 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
1561 re-try the match with swapped commutative operands.
1562 (vect_supported_load_permutation_p): Remove special-casing of
1563 mismatched complex loads.
1564 (vect_analyze_slp_instance): Adjust.
1566 2013-04-17 Richard Biener <rguenther@suse.de>
1568 PR rtl-optimization/56921
1569 * cfgloop.h (struct loop): Add simple_loop_desc member.
1570 (struct niter_desc): Mark with GTY(()).
1571 (simple_loop_desc): Do not use aux field but simple_loop_desc.
1572 * loop-iv.c (get_simple_loop_desc): Likewise.
1573 (free_simple_loop_desc): Likewise.
1576 2013-04-16 Richard Biener <rguenther@suse.de>
1578 PR rtl-optimization/56921
1579 * loop-init.c (pass_rtl_move_loop_invariants): Add
1580 TODO_do_not_ggc_collect to todo_flags_finish.
1581 (pass_rtl_unswitch): Same.
1582 (pass_rtl_unroll_and_peel_loops): Same.
1583 (pass_rtl_doloop): Same.
1585 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
1587 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
1588 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
1589 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
1591 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
1592 * tree-streamer.c (record_common_node): Adjust reference in comment.
1594 2013-04-17 Terry Guo <terry.guo@arm.com>
1596 * config/arm/cortex-m4.md: Add a new bypass.
1598 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1600 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
1602 (*subs_<optab><mode>_multp2): New pattern.
1603 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
1604 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
1606 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1608 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
1609 (*subs_mul_imm_<mode>): New pattern.
1611 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
1614 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
1615 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
1616 (vsx_movti_32bit): Change j->wa to O->wa.
1618 2013-04-16 Richard Biener <rguenther@suse.de>
1620 PR rtl-optimization/56921
1621 * loop-init.c (pass_rtl_move_loop_invariants): Add
1622 TODO_do_not_ggc_collect to todo_flags_finish.
1623 (pass_rtl_unswitch): Same.
1624 (pass_rtl_unroll_and_peel_loops): Same.
1625 (pass_rtl_doloop): Same.
1627 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
1629 * config/arm/arm.c (emit_multi_reg_push): New declaration
1630 for an existing function.
1631 (arm_emit_strd_push): New function.
1632 (arm_expand_prologue): Used here.
1633 (arm_emit_ldrd_pop): New function.
1634 (arm_expand_epilogue): Used here.
1635 (arm_get_frame_offsets): Update condition.
1636 (arm_emit_multi_reg_pop): Add a special case for load of a single
1637 register with writeback.
1639 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
1641 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
1644 2013-04-16 Richard Biener <rguenther@suse.de>
1646 PR tree-optimization/56756
1647 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
1648 (first_mem_ref_loc): New.
1649 (execute_sm): Place the load temporarily before a previous
1650 access instead of in the latch edge to ensure its SSA dependencies
1651 are defined at points dominating the load.
1653 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
1655 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
1656 correct fix by moving header and footer insn to the footer of
1657 the merged basic block. Clear BB_END of the merged-away block.
1660 * emit-rtl.c (make_note_raw): New function.
1661 (link_insn_into_chain): New static inline function.
1663 (add_insn_before, add_insn_after): Factor insn chain linking code...
1664 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
1665 using link_insn_into_chain.
1666 (note_outside_basic_block_p): New helper function for emit_note_after
1667 and emit_note_before.
1668 (emit_note_after): Use nobb variant of add_insn_after if the note
1669 should not be contained in a basic block.
1670 (emit_note_before): Use nobb variant of add_insn_before if the note
1671 should not be contained in a basic block.
1672 (emit_note_copy): Use make_note_raw.
1673 (emit_note): Likewise.
1674 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
1675 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
1676 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
1677 the moved barrier the tail of the basic block it follows.
1678 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
1680 2013-04-15 Jakub Jelinek <jakub@redhat.com>
1682 PR tree-optimization/56962
1683 * gimple-ssa-strength-reduction.c (record_increment): Only set
1684 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
1685 either rhs1 or rhs2 is equal to c->base_expr.
1687 2013-04-15 Richard Biener <rguenther@suse.de>
1689 PR tree-optimization/56933
1690 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
1692 (GROUP_READ_WRITE_DEPENDENCE): Remove.
1693 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
1694 * tree-vect-data-refs.c (vect_analyze_group_access): Move
1695 dependence check ...
1696 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
1698 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
1699 GROUP_READ_WRITE_DEPENDENCE.
1701 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1703 * emit-rtl.c (reset_all_used_flags): New function.
1704 (verify_rtl_sharing): Call reset_all_used_flags before and after
1705 performing the checks.
1707 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1709 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
1710 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
1711 * config/arm/constraints.md (De): New constraint.
1712 * config/arm/neon.md (anddi3_neon): Delete.
1713 (neon_vand<mode>): Expand to standard anddi3 pattern.
1714 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
1715 Move earlier in the file.
1716 (neon_inv_logic_op2): Likewise.
1717 (arm_anddi_operand_neon): New predicate.
1719 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1721 * configure.ac (gcc_cv_ld_as_needed): Set
1722 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
1723 Use -z ignore, -z record on *-*-solaris2*.
1724 (HAVE_LD_AS_NEEDED): Update comment.
1725 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
1726 * configure: Regenerate.
1727 * config.in: Regenerate.
1728 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
1729 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
1730 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
1731 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
1732 equivalents. Fix markup.
1733 * doc/tm.texi: Regenerate.
1735 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
1737 * config/i386/i386.opt: New option mstack-protector-guard=.
1738 * config/i386/i386-opts.h: Add enum stack_protector_guard.
1739 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
1740 TARGET_SSP_TLS_GUARD.
1741 * config/i386/i386.c (ix86_option_override_internal): Set
1742 ix86_stack_protector_guard.
1743 * config/i386/i386.md (stack_protect_set): Enable for
1744 TARGET_SSP_TLS_GUARD only.
1745 (stack_protect_set_<mode>): Ditto.
1746 (stack_protect_test): Ditto.
1747 (stack_protect_test_<mode>): Ditto.
1748 * doc/invoke.texi (i386 Option): Document.
1750 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
1753 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
1754 (S_MODES): Set H_MODE bit.
1755 (SF_MODES): Set only S_MODE and SF_MODE bits.
1756 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
1757 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
1758 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
1759 <MODE_FLOAT>: Likewise.
1761 2013-04-15 Joey Ye <joey.ye@arm.com>
1763 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
1765 2013-04-15 Joey Ye <joey.ye@arm.com>
1767 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
1769 (thumb_far_jump_used_p): Count instruction size and set
1772 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
1774 * reorg.c (fill_simple_delay_slots): Reindent block of code.
1775 * resource.c (mark_target_live_regs): Reformat conditional block.
1777 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
1779 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
1780 notes, they are emitted only just before final.
1781 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
1783 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
1785 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
1786 * cfgrtl.c (delete_insn): Call it here instead.
1787 * lra-spills.c (lra_final_code_change): Use delete_insn.
1788 * haifa-sched.c (sched_remove_insn): Likewise.
1789 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
1790 returning to the nop pool.
1791 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
1792 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
1794 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
1796 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
1797 * doc/tm.texi: Regenerated.
1799 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
1801 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
1804 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
1806 * df-core.c (df_find_def): Compare register numbers.
1807 (df_find_use): Likewise.
1809 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
1812 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
1813 lra_in_progress for return.
1815 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
1817 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
1818 define_insn into define_insn_and_split and emit movsicc patterns.
1820 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
1822 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
1824 2013-04-12 Richard Biener <rguenther@suse.de>
1826 * tree-pass.h (TODO_do_not_ggc_collect): New.
1827 * passes.c (execute_one_ipa_transform_pass): Honor
1828 TODO_do_not_ggc_collect.
1829 (execute_one_pass): Likewise.
1832 2013-04-10 Richard Biener <rguenther@suse.de>
1834 * passes.c (init_optimization_passes): Remove reload pass.
1835 * ira.c (do_reload): Merge into ...
1837 (rest_of_handle_reload): Remove.
1838 (pass_reload): Likewise.
1839 * config/i386/i386.c (ix86_option_override): Refer to ira instead
1840 of reload for vzeroupper pass placement.
1842 2013-04-12 Jakub Jelinek <jakub@redhat.com>
1844 PR tree-optimization/56918
1845 PR tree-optimization/56920
1846 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
1847 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
1848 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
1849 use wide_mul_with_sign method.
1851 2013-04-12 Richard Biener <rguenther@suse.de>
1853 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
1854 not be considered a gimple constant.
1856 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
1858 * fold-const.c (const_binop): Handle vector shifts by a scalar.
1859 (fold_binary_loc): Call const_binop also for mixed vector-scalar
1862 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
1863 Jakub Jelinek <jakub@redhat.com>
1865 * opts.c: Include diagnostic-color.h.
1866 (common_handle_option): Handle OPT_fdiagnostics_color_.
1867 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
1868 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
1869 (diagnostic-color.o): New.
1870 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
1871 (diagnostic_color_rule): New enum.
1872 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
1873 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
1874 the location string.
1875 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
1876 either NULL, or color kind.
1877 * diagnostic-color.c: New file.
1878 * diagnostic-color.h: New file.
1879 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
1881 * doc/invoke.texi (-fdiagnostics-color): Document.
1882 * pretty-print.h (pp_show_color): Define.
1883 (struct pretty_print_info): Add show_color field.
1884 * diagnostic.c: Include diagnostic-color.h.
1885 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
1886 macros. Colorize error:, warning: etc. strings and also the location
1888 (diagnostic_show_locus): Colorize the caret line.
1889 * pretty-print.c: Include diagnostic-color.h.
1890 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
1891 inside of %< %> quotes or quoted through q format modifier.
1893 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1895 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
1897 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1899 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
1901 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
1904 2013-04-11 Marek Polacek <polacek@redhat.com>
1906 PR tree-optimization/48184
1907 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
1909 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
1911 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
1912 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
1913 (skip_simple_arithmetic): Tidy up.
1914 * tree.h (skip_simple_constant_arithmetic): Declare.
1916 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1918 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
1920 2013-04-11 Richard Biener <rguenther@suse.de>
1922 * tree-vect-loop.c (get_initial_def_for_induction): Properly
1923 generate vector constants.
1925 2013-04-11 Richard Biener <rguenther@suse.de>
1927 PR tree-optimization/56878
1928 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
1929 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
1931 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1932 Prefer to align the DR with the most invariant base address.
1934 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1936 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
1939 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
1941 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
1942 floating-point vector comparisons against 0.
1944 2013-04-11 Jakub Jelinek <jakub@redhat.com>
1946 PR tree-optimization/56899
1947 * fold-const.c (extract_muldiv_1): Apply distributive law
1948 only if TYPE_OVERFLOW_WRAPS (ctype).
1950 2013-04-11 Bin Cheng <bin.cheng@arm.com>
1953 * ira-costs.c (scan_one_insn): Check whether the source rtx of
1954 loading has side effect.
1956 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
1958 * config/sparc/sparc.c: Include tree-pass.h.
1959 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
1960 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
1961 head of file. Change return type. Split off gate function.
1962 (sparc_gate_work_around_errata): New function.
1963 (pass_work_around_errata): New pass definition.
1964 (insert_pass_work_around_errata) New pass insert definition to
1965 insert pass_work_around_errata just after delayed-branch scheduling.
1966 (sparc_option_override): Insert the pass.
1967 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
1969 2013-04-10 David S. Miller <davem@davemloft.net>
1971 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
1972 or -mcpu=hypersparc.
1974 * target.def (cstore_mode): New hook.
1975 * target.h: Include insn-codes.h
1976 * targhooks.c: Likewise.
1977 (default_cstore_mode): New function.
1978 * targhooks.h: Declare it.
1979 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
1980 * doc/tm.texi: Rebuild.
1981 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
1982 target hook, rather than inspecting the insn_data.
1983 * config/sparc/sparc.c (sparc_cstore_mode): New function.
1984 (TARGET_CSTORE_MODE): Redefine.
1985 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
1987 * config/sparc/predicates.md (cstore_result_operand): New special
1989 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
1990 Use it for operand 0.
1991 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
1992 (*snesi_special): Likewise.
1993 (*snesi_zero): Likewise.
1994 (*seqsi_zero): Likewise.
1995 (*sltu_insn): Likewise.
1996 (*sgeu_insn): Likewise.
1997 (*seqdi_special): Make operand 0 and comparison operation be of
1999 (*snedi_special): Likewise.
2000 (*snedi_special_vis3): Likewise.
2001 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
2002 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
2003 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
2004 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
2005 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
2006 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
2007 (*sltu_extend_sp64): Likewise.
2008 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
2009 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
2010 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
2011 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
2012 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
2014 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
2016 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
2017 (aarch64_start_file): Use the new function.
2019 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2020 Jason Merrill <jason@redhat.com>
2022 * common.opt: Add -gdwarf.
2023 * opts.c (common_handle_option): Handle it.
2024 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
2026 2013-04-10 Richard Biener <rguenther@suse.de>
2028 * passes.c (execute_todo): Do not call ggc_collect conditional here.
2029 (execute_one_ipa_transform_pass): But unconditionally here.
2030 (execute_one_pass): And here.
2031 (init_optimization_passes): Remove reload pass.
2032 * tree-pass.h (TODO_ggc_collect): Remove.
2033 (pass_reload): Likewise.
2034 * ira.c (do_reload): Merge into ...
2036 (rest_of_handle_reload): Remove.
2037 (pass_reload): Likewise.
2038 * config/i386/i386.c (ix86_option_override): Refer to ira instead
2039 of reload for vzeroupper pass placement.
2040 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
2041 and todo_flags_finish of all passes.
2043 2013-04-10 Richard Biener <rguenther@suse.de>
2045 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
2046 first_const_oprnd field, rename first_def_type to first_op_type.
2047 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
2048 (vect_get_and_check_slp_defs): Always use the type of the
2049 operand. Allow mixed vect_external_def, vect_constant_def types.
2050 (vect_get_constant_vectors): Handle mixed vect_external_def,
2051 vect_constant_def types.
2053 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
2055 PR tree-optimization/55524
2056 * tree-ssa-math-opts.c
2057 (convert_mult_to_fma): Don't use an fms construct
2058 when we don't have an fms operation, but fnma, and it looks
2059 likely that we'll be able to use the latter.
2061 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
2063 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
2065 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
2066 inline fail caused by overwritable functions.
2068 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
2070 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
2071 unnecessary bits in the constant power of two case.
2073 2013-04-10 Richard Biener <rguenther@suse.de>
2075 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
2076 broken code swapping operands.
2077 (vect_build_slp_tree): Do not compute load permutations here.
2078 (vect_analyze_slp_instance): Compute load permutations here,
2079 after building the SLP tree.
2081 2013-04-09 Christian Bruel <christian.bruel@st.com>
2083 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
2084 of next/prev_real_insn.
2086 2013-04-09 Jan Hubicka <jh@suse.cz>
2088 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
2089 Drop aliased parameter.
2090 (function_and_variable_visibility): Do not handle alias pairs.
2091 * cgraph.c (varpool_externally_visible_p): Update prototype.
2092 * varpool.c (varpool_add_new_variable): Update.
2094 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2096 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
2098 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
2100 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
2102 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
2104 2013-04-09 Marek Polacek <polacek@redhat.com>
2106 PR tree-optimization/48762
2107 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
2109 2013-04-09 Richard Biener <rguenther@suse.de>
2111 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
2113 (vect_build_slp_tree): Likewise.
2114 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
2115 calculating the cost of a SLP instance.
2116 (vect_analyze_slp_instance): Use it from here, after building
2119 2013-04-09 Jakub Jelinek <jakub@redhat.com>
2122 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
2123 expand_omp_for_static_chunk): Use simple_p = true in
2124 force_gimple_operand_gsi calls when assigning to addressable decls.
2126 2013-04-09 Jeff Law <law@redhat.com>
2128 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
2129 when the boolean was created by converting a wider object which
2130 had a boolean range.
2132 2013-04-09 Richard Biener <rguenther@suse.de>
2134 * tree-vectorizer.h (slp_void_p): Remove.
2135 (slp_tree): Typedef before _slp_tree declaration.
2136 (struct _slp_tree): Use a vector of slp_tree as children.
2137 (vect_get_place_in_interleaving_chain): Remove.
2138 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
2140 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
2142 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
2143 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
2144 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
2145 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
2146 Use slp_node instead of slp_void_p and adjust.
2148 2013-04-09 Richard Biener <rguenther@suse.de>
2150 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
2151 work that is not necessary.
2153 2013-04-09 Jakub Jelinek <jakub@redhat.com>
2155 PR tree-optimization/56854
2156 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
2157 forward into clobber stmts if it would change MEM_REF lhs into
2160 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
2162 * tree.c (type_hash_lookup, type_hash_add): Make static.
2163 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
2165 2013-04-09 Richard Biener <rguenther@suse.de>
2167 * tree.h (unsave_expr_now): Remove.
2168 * tree-inline.c (mark_local_for_remap_r): Remove.
2169 (unsave_expr_1): Likewise.
2170 (unsave_r): Likewise.
2171 (unsave_expr_now): Likewise.
2172 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
2173 (propagate_tree_value): Likewise.
2175 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
2177 * doc/rtl.texi (sequence): Rewrite documentation to match the
2178 current use of SEQUENCE rtl objects.
2179 * rtl.def (SEQUENCE): Likewise.
2181 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
2182 Update documentation.
2183 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
2184 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
2186 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
2188 2013-04-08 Teresa Johnson <tejohnson@google.com>
2190 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
2191 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
2193 (estimate_edge_size_and_time): Add comment to suggest using rounding
2195 (estimate_node_size_and_time): Ditto.
2196 (remap_edge_change_prob): Use helper rounding divide methods.
2197 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
2198 (gimple_mod_pow2_value_transform): Ditto.
2199 (gimple_mod_subtract_transform): Ditto.
2200 (gimple_ic_transform): Ditto.
2201 (gimple_stringops_transform): Ditto.
2202 * stmt.c (conditional_probability): Ditto.
2203 (emit_case_dispatch_table): Ditto.
2204 * lto-cgraph.c (merge_profile_summaries): Ditto.
2205 * tree-optimize.c (execute_fixup_cfg): Ditto.
2206 * cfgcleanup.c (try_forward_edges): Ditto.
2207 * cfgloopmanip.c (scale_loop_profile): Ditto.
2209 (duplicate_loop_to_header_edge): Ditto.
2210 (lv_adjust_loop_entry_edge): Ditto.
2211 * tree-vect-loop.c (vect_transform_loop): Ditto.
2212 * profile.c (compute_branch_probabilities): Ditto.
2213 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
2214 * lto-streamer-in.c (input_cfg): Ditto.
2215 * gimple-streamer-in.c (input_bb): Ditto.
2216 * ipa-cp.c (update_profiling_info): Ditto.
2217 (update_specialized_profile): Ditto.
2218 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
2219 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
2221 * sched-rgn.c (compute_dom_prob_ps): Ditto.
2222 (compute_trg_info): Ditto.
2223 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
2224 (purge_dead_edges): Ditto.
2225 * loop-unswitch.c (unswitch_loop): Ditto.
2226 * cgraphclones.c (cgraph_clone_edge): Ditto.
2227 (cgraph_clone_node): Ditto.
2228 * tree-inline.c (copy_bb): Ditto.
2229 (copy_edges_for_bb): Ditto.
2230 (initialize_cfun): Ditto.
2231 (copy_cfg_body): Ditto.
2232 (expand_call_inline): Ditto.
2234 2013-04-08 Kai Tietz <ktietz@redhat.com>
2236 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
2237 TARGET_CYGWIN64 by TARGET_64BIT.
2239 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
2241 * config/epiphany/epiphany.md (GPR_1): New constant.
2242 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
2243 * config/epiphany/epiphany.c (gen_compare_reg):
2244 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
2245 is already in place.
2246 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
2247 Don't require being called during rtl expansion; If y operlaps r0,
2249 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
2250 (epiphany_expand_epilogue): Likewise.
2252 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
2253 Don't use CC_FPmode for ORDERED / UNORDERED.
2254 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
2256 * config/epiphany/constraints.md (CnL): New constraint.
2257 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
2258 * config/epiphany/predicates.md (add_operand): Allow 1024.
2260 * config/epiphany/epiphany.md (logical_op): New code iterator.
2261 (op_mnc): New code attribute.
2262 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
2263 (mov_f+1, mov_f+2): New peephole2 patterns.
2265 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
2266 (cstoresi4): Also allow re-use of zero result when doing a NE
2267 comparison to a non-zero operand.
2268 Use (clobber (scratch)) for first insn if the gpr output is not needed.
2270 * config/epiphany/epiphany.md (<insn_opname>v2si3):
2271 Use gen_addsi3_i / gen_subsi3_i.
2273 2013-04-08 Jakub Jelinek <jakub@redhat.com>
2277 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
2278 contain anything but clobbers, at most one __builtin_stack_restore,
2279 optionally debug stmts and final resx, and if it has at least one
2280 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
2281 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
2282 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
2283 which isn't defaut definition, remove them.
2284 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
2285 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
2286 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
2287 with MEM_REF LHS with SSA_NAME address.
2289 2013-04-08 Jeff Law <law@redhat.com>
2291 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
2293 2013-04-08 Richard Biener <rguenther@suse.de>
2295 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
2297 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
2298 determined vector type.
2299 (vect_analyze_data_refs): Likewise.
2300 (vect_get_new_vect_var): Adjust.
2301 (vect_create_destination_var): Preserve SSA name versions.
2302 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
2303 not dump anything here.
2305 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
2307 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
2308 Add member lr_slot_known.
2309 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
2311 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
2312 Remove code that sets lr_slot_offset according to what a previous
2313 version of epiphany_emit_save_restore used to do.
2314 (epiphany_emit_save_restore): When doing an lr save or restore,
2315 set/verify lr_slot_known and lr_slot_offset.
2317 2013-04-08 Xinyu Qi <xyqi@marvell.com>
2320 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
2323 2013-04-08 Richard Biener <rguenther@suse.de>
2325 * alias.c (find_base_term): Fix thinko in previous change.
2327 2013-04-08 Jakub Jelinek <jakub@redhat.com>
2329 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
2330 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
2331 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
2332 if possible to compute val.
2333 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
2334 For QImode integers don't require anything about precision. Use
2335 const_with_all_bytes_same to find out if the constant doesn't have
2336 repeated bytes in it.
2338 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2340 * config/s390/s390.c (s390_expand_insv): Only accept insertions
2343 2013-04-08 Marek Polacek <polacek@redhat.com>
2345 PR rtl-optimization/48182
2346 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
2349 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2352 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
2353 nuses, make sure we have a label.
2355 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2358 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
2359 (rs6000_emit_swdiv_low_precision): Remove.
2360 (rs6000_emit_swdiv): Rewrite to handle between one and four
2361 iterations of Newton-Raphson generally; modify required number of
2362 iterations for some cases.
2363 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
2365 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
2367 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
2368 set-but-unused variable.
2370 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
2371 basic blocks of released function bodies garbage-collectable.
2373 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
2374 (struct rtl_opt_pass): Add TODO_df_finish.
2376 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
2378 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2380 * config/arm/constraints.md (q): New constraint.
2381 * config/arm/ldrdstrd.md: New file.
2382 * config/arm/arm.md (ldrdstrd.md) New include.
2383 (arm_movdi): Use "q" instead of "r" constraint
2384 for double-word memory access.
2385 (movdf_soft_insn): Likewise.
2386 * config/arm/vfp.md (movdi_vfp): Likewise.
2387 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
2388 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
2389 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
2390 (mem_ok_for_ldrd_strd): Likewise.
2391 (output_move_double): Update assertion.
2393 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2395 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
2397 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2399 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
2400 define_insn_and_split.
2401 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
2403 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2405 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
2406 define_insn_and_split.
2407 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
2408 (shiftsi3_compare): New pattern.
2410 * config/arm/unspecs.md (UNSPEC_RRX): New.
2412 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2414 * config/arm/arm.md (negdi_extendsidi): New pattern.
2415 (negdi_zero_extendsidi): Likewise.
2417 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2419 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
2420 define_insn_and_split.
2421 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
2422 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
2424 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2426 * config/arm/arm.md (arm_subdi3): Convert define_insn into
2427 define_insn_and_split.
2428 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
2429 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
2431 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2433 * config/arm/arm.md (subsi3_carryin): New pattern.
2434 (subsi3_carryin_const): Likewise.
2435 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
2436 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
2438 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2440 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
2442 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2444 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
2445 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
2447 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2449 * config/arm/arm.c (arm_expand_builtin): Change fcode
2450 type to unsigned int.
2452 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2454 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
2456 2013-04-04 Ian Lance Taylor <iant@google.com>
2458 * doc/standards.texi (Standards): The Go frontend supports the Go 1
2461 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
2464 * df-scan.c (df_insn_delete): Disable failing assert.
2466 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2468 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
2469 New function prototype.
2470 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
2471 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
2472 (arm_builtin_vectorized_function): New function.
2474 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2476 * config/arm/arm_neon_builtins.def: New file.
2477 * config/arm/arm.c (neon_builtin_data): Move contents to
2478 arm_neon_builtins.def.
2479 (enum arm_builtins): Include neon builtin definitions.
2480 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
2481 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
2483 2013-04-04 Marek Polacek <polacek@redhat.com>
2485 PR tree-optimization/48186
2486 * predict.c (maybe_hot_frequency_p): Return false if
2487 HOT_BB_FREQUENCY_FRACTION is 0.
2488 (cgraph_maybe_hot_edge_p): Likewise.
2490 2013-04-04 Richard Biener <rguenther@suse.de>
2492 PR tree-optimization/56826
2493 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
2496 2013-04-04 Richard Biener <rguenther@suse.de>
2498 PR tree-optimization/56213
2499 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
2500 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
2502 2013-04-04 Richard Biener <rguenther@suse.de>
2504 PR tree-optimization/56837
2505 * tree-loop-distribution.c (classify_partition): For non-zero
2506 values require that the value has the same precision as its
2507 mode to be useful as memset value.
2509 2013-04-03 Nick Clifton <nickc@redhat.com>
2511 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
2512 (fmssf4): Use fmsf.s on E3V5 architectures.
2513 (fnmasf4): Use fnmaf.s on E3V5 architectures.
2514 (fnmssf4): Use fnmsf.s on E3V5 architectures.
2516 2013-04-03 Jeff Law <law@redhat.com>
2518 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
2519 (lra-eliminations.o): Likewise.
2521 2013-04-03 Teresa Johnson <tejohnson@google.com>
2523 * gcov-io.c (compute_working_sets): Moved most of body of old
2524 compute_working_sets here from profile.c.
2525 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
2526 (gcov_working_set_t): Moved typedef here from basic-block.h
2527 (compute_working_set): Declare.
2528 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
2529 (get_working_sets): Renamed from compute_working_set,
2530 replace most of body with call to new compute_working_sets.
2531 (get_exec_counts): Replace call to compute_working_sets
2532 to get_working_sets.
2533 * profile.h (get_working_sets): Renamed from compute_working_set.
2534 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
2535 to get_working_sets.
2536 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
2537 * gcov-dump.c (dump_working_sets): New function.
2539 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
2541 * hwint.c (sext_hwi, zext_hwi): New functions.
2542 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
2543 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
2544 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
2545 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
2546 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
2547 (sext_hwi, zext_hwi): New functions.
2549 2013-04-03 Jeff Law <law@redhat.com>
2551 PR tree-optimization/56799
2552 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
2553 back test for widening conversion erroneously dropped in prior change.
2555 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2558 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
2559 instead of next_real_insn.
2561 2013-04-03 Marek Polacek <polacek@redhat.com>
2564 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
2566 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2569 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
2571 (thumb1_output_casesi): Likewise.
2572 (thumb2_output_casesi): Likewise.
2574 2013-04-03 Richard Biener <rguenther@suse.de>
2576 PR tree-optimization/56817
2577 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
2579 (tree_unroll_loops_completely_1): ... new function to manually
2580 walk the loop tree, properly defering outer loops of unrolled
2581 loops to later iterations.
2583 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
2585 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
2586 (vectorizable_load): Likewise.
2587 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
2588 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
2590 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
2592 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
2595 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2597 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
2599 2013-04-03 Bin Cheng <bin.cheng@arm.com>
2601 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
2603 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
2605 PR tree-optimization/56790
2606 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
2609 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
2611 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
2613 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
2614 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
2617 2013-04-03 Jakub Jelinek <jakub@redhat.com>
2620 * tree.h (force_folding_builtin_constant_p): New decl.
2621 * builtins.c (force_folding_builtin_constant_p): New variable.
2622 (fold_builtin_constant_p): Fold immediately also if
2623 force_folding_builtin_constant_p.
2625 2013-04-03 Richard Biener <rguenther@suse.de>
2627 PR tree-optimization/56812
2628 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
2629 DRs of the same interleaving chain are independent.
2631 2013-04-02 Jason Merrill <jason@redhat.com>
2633 * gdbinit.in (pbb): Use debug fn.
2635 2013-04-02 Lawrence Crowl <crowl@google.com>
2637 * sese.h (struct ivtype_map_elt_s): Remove unused.
2638 (extern debug_ivtype_map): Remove unused.
2639 (extern eq_ivtype_map_elts): Remove unused.
2640 * sese.c (debug_ivtype_map): Removed unused.
2641 (debug_ivtype_map_1): Removed unused.
2642 (debug_ivtype_elt): Remove unused.
2643 (eq_ivtype_map_elts): Remove unused.
2646 2013-04-02 Kai Tietz <ktietz@redhat.com>
2649 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
2650 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
2651 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
2653 (legitimize_pe_coff_symbol): Likewise.
2654 (is_imported_p): New helper-function.
2655 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
2656 for Windows x64 targets.
2657 (ix86_expand_prologue): Optimize for pe-coff targets.
2658 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
2659 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
2660 medium/large code-model.
2661 (legitimize_pic_address): Likewise.
2662 (legitimize_tls_address): Likewise.
2663 (ix86_expand_call): Likewise.
2664 (x86_output_mi_thunk): Likewise.
2665 (get_dllimport_decl): Add new beimport argument.
2666 (construct_plt_address): Don't assert for x64 pe-coff targets.
2667 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
2669 (SYMBOL_FLAG_STUBVAR): New macro.
2670 (SYMBOL_REF_STUBVAR_P): Likewise.
2671 * config/i386/winnt.c (stub_list): New structure.
2672 (stub_head): New local variable.
2673 (i386_pe_record_stub): New function.
2674 (i386_pe_file_end): Emit refptr-stubs.
2676 2013-04-02 Jakub Jelinek <jakub@redhat.com>
2678 PR rtl-optimization/56745
2679 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
2680 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
2683 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
2684 and both of them are MEM_REFs, just compare first argument for
2685 equality and attempt to deal even with differing offsets.
2688 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
2689 of gimple_clobber_p to be MEM_REF.
2690 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
2691 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
2692 after gimplification.
2693 * asan.c (get_mem_ref_of_assignment): Don't instrument
2694 gimple_clobber_p stmts.
2695 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
2696 gimple_clobber_p stmt if they have MEM_REF lhs and
2697 are dead because of another gimple_clobber_p stmt.
2698 * tree-ssa-live.c (clear_unused_block_pointer): Treat
2699 gimple_clobber_p stmts like debug stmts.
2700 (remove_unused_locals): Remove clobbers with MEM_REF lhs
2701 that refer to unused VAR_DECLs or uninitialized values.
2702 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
2703 gimple_clobber_p stmts if they refer to removed parameters.
2704 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
2707 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
2709 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
2710 using SWI48 mode attribute.
2712 2013-04-02 Wei Mi <wmi@google.com>
2714 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
2715 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
2716 *<rotate_insn><mode>3_mask in i386.md.
2718 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
2720 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
2722 2013-04-02 Richard Biener <rguenther@suse.de>
2724 PR tree-optimization/56778
2725 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
2726 Runtime alias tests are not supported for gather loads.
2727 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
2728 stmts referenced from SSA operands before updating SSA form.
2730 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
2731 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2733 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
2734 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
2735 * config/arm/cortex-a53.md: New file.
2736 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
2737 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
2738 * config/arm/arm.c (arm_issue_rate): Likewise.
2739 * config/arm/arm-tune.md: Regenerate
2740 * config/arm/arm-tables.opt: Regenerate.
2741 * config/arm/arm-cores.def: Add cortex-a53.
2743 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
2745 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
2748 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
2750 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
2751 scalar load/store operations using B/H registers.
2752 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
2754 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
2756 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
2758 * config/aarch64/aarch64.c
2759 (aarch64_simd_scalar_immediate_valid_for_move): New.
2760 * config/aarch64/aarch64-protos.h
2761 (aarch64_simd_scalar_immediate_valid_for_move): New.
2762 * config/aarch64/constraints.md (Dh, Dq): New.
2763 * config/aarch64/iterators.md (hq): New.
2765 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
2767 * reorg.c (get_branch_condition): Deal with conditional returns.
2768 (fill_simple_delay_slots): Remove dead code dealing with jumps.
2770 2013-04-01 Wei Mi <wmi@google.com>
2772 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
2773 Truncate operand 2 using %b asm operand modifier.
2774 (*<shift_insn><mode>3_mask): Ditto.
2775 (*<rotate_insn><mode>3_mask): Ditto.
2777 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
2780 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
2782 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
2784 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
2786 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
2788 2013-03-30 Lawrence Crowl <crowl@google.com>
2790 * dse.c (clear_alias_sets): Remove never set.
2791 (disqualified_clear_alias_sets): Remove never set.
2792 (clear_alias_mode_pool): Remove never set.
2793 (dse_step0): Remove condition that is never true.
2794 (canon_address): Remove condition that is never true.
2795 (dse_step7): Remove condition that is never true.
2796 (rest_of_handle_dse): Remove condition that is never true.
2797 (rest_of_handle_dse::did_global): Remove never read from above.
2798 (dse_step2_spill): Remove never called from above.
2799 (dse_step5_spill): Remove never called from above.
2801 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
2803 * doc/md.texi (Standard Names) <casesi>: Update documentation for
2804 JUMP_TABLE_DATA changes.
2805 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
2806 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
2807 (Insns) <jump_table_data>: New entry.
2808 * doc/tm.texi: Regenerate.
2810 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
2812 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
2813 for table jump at the end of a basic block using tablejump_p.
2814 * targhooks.c (default_invalid_within_doloop): Likewise.
2815 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
2816 target hook implementation that is identical to the default hook.
2817 (rs6000_invalid_within_doloop): Remove.
2819 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
2820 unused variable from tablejump_p call.
2822 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
2823 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
2824 (INSN_DELETED_P): Likewise.
2825 (emit_jump_table_data): New prototype.
2826 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
2827 after 4th as unused.
2828 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
2829 * sched-vis.c (print_insn): Likewise.
2830 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
2831 insn for compatibility with back ends that use next_active_insn to
2832 identify jump table data.
2833 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
2834 (remove_insn): Likewise.
2835 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
2837 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
2838 (emit_jump_table_data): New function.
2840 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
2841 basic block, a JUMP_TABLE_DATA never is.
2842 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
2843 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
2844 off from code handling real insns.
2845 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
2846 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
2847 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
2848 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
2849 is not a NONDEBUG_INSN_P.
2850 * ira-costs.c (scan_one_insn): Likewise.
2851 * jump.c (mark_all_labels): Likewise.
2852 (mark_jump_label_1): Likewise.
2853 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
2854 * lra.c (get_insn_freq): Expect all insns reaching here to be in
2856 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
2857 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
2858 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
2859 JUMP_TABLE_DATA_P insns.
2860 (calculate_elim_costs_all_insns): Likewise.
2861 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
2862 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
2863 (delete_output_reload): Code style fixups.
2864 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
2865 insn flags on this non-insn.
2866 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
2867 as scheduling barriers, for pre-change compatibility.
2868 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
2869 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
2871 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
2872 redundant JUMP_TABLE_DATA_P test.
2873 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
2874 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
2875 (frv_for_each_packet): Likewise.
2876 * config/i386/i386.c (min_insn_size): Likewise.
2877 (ix86_avoid_jump_mispredicts): Likewise.
2878 * config/m32r/m32r.c (m32r_is_insn): Likewise.
2879 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
2880 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
2881 (mips16_insn_length): Robustify.
2882 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
2883 (mips16_split_long_branches): Likewise.
2884 * config/pa/pa.c (pa_combine_instructions): Likewise.
2885 * config/rs6000/rs6000.c (get_next_active_insn): Treat
2886 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
2887 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
2888 as contributing to pool range lengths.
2889 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
2890 Remove redundant JUMP_TABLE_DATA_P test.
2891 (sh_loop_align): Likewise.
2892 (split_branches): Likewise.
2893 (sh_insn_length_adjustment): Likewise.
2894 * config/spu/spu.c (get_branch_target): Likewise.
2896 2013-03-29 Jan Hubicka <jh@suse.cz>
2898 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
2899 gcov streaming; stream hot bb threshold to ltrans.
2900 * predict.c (get_hot_bb_threshold): Break out from ....
2901 (maybe_hot_count_p): ... here.
2902 (set_hot_bb_threshold): New function.
2903 * lto-section-in.c (lto_section_name): Add profile.
2904 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
2905 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
2907 (histogram_entry): New structure.
2908 (histogram, histogram_pool): New global vars.
2909 (histogram_hash): New structure.
2910 (histogram_hash::hash): New method.
2911 (histogram_hash::equal): Likewise.
2912 (account_time_size): New function.
2913 (cmp_counts): New function.
2914 (dump_histogram): New function.
2915 (ipa_profile_generate_summary): New function.
2916 (ipa_profile_write_summary): New function.
2917 (ipa_profile_read_summary): New function.
2918 (ipa_profile): Decide on threshold.
2919 (pass_ipa_profile): Add ipa_profile_write_summary and
2920 ipa_profile_read_summary.
2921 * Makefile.in (ipa.o): Update dependencies.
2922 * lto-streamer.h (LTO_section_ipa_profile): New section.
2924 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
2926 * tree.h (VAR_P): New.
2928 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
2931 * doc/invoke.texi ([-fwhole-program]): Fix typo.
2933 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
2935 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
2936 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
2937 (control_flow_insn_p): Likewise.
2938 * cfgrtl.c (duplicate_insn_chain): Likewise.
2939 * final.c (get_attr_length_1): Likewise.
2940 (shorten_branches): Likewise.
2941 (final_scan_insn): Likewise.
2942 * function.c (instantiate_virtual_regs): Likewise.
2943 * gcse.c (insert_insn_end_basic_block): Likewise.
2944 * ira-costs.c (scan_one_insn): Likewise.
2945 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
2946 * lra.c (check_rtl): Likewise.
2947 * reload1.c (elimination_costs_in_insn): Likewise.
2948 * reorg.c (follow_jumps): Likewise.
2950 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
2951 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
2952 (thumb_far_jump_used_p): Likewise.
2953 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
2954 (workaround_speculation): Likewise.
2955 (add_sched_insns_for_speculation): Likewise.
2956 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
2957 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
2958 (frv_for_each_packet): Likewise.
2959 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
2960 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
2961 (final_emit_insn_group_barriers): Likewise.
2962 * config/m32r/m32r.c (m32r_is_insn): Likewise.
2963 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
2964 (mips16_insn_length): Likewise.
2965 * config/pa/pa.c (pa_reorg): Likewise.
2966 (pa_combine_instructions): Likewise.
2967 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
2968 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
2969 (sh_reorg): Likewise.
2970 (split_branches): Likewise.
2971 * config/spu/spu.c (get_branch_target): Likewise.
2973 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
2976 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
2978 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
2979 Fix declaration name.
2981 2013-03-28 Lawrence Crowl <crowl@google.com>
2983 * graphds.h (struct graph.indicies): Remove unused.
2984 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
2985 (SCOP_ORIGINAL_PDDRS): Remove unused.
2986 * sese.h (extern insert_loop_close_phis): Removed unused.
2987 (extern insert_guard_phis): Removed unused.
2988 (extern ivtype_map_elt_info): Removed unused.
2989 (new_ivtype_map_elt): Removed unused.
2990 * sese.c (ivtype_map_elt_info): Removed unused.
2992 2013-03-28 Lawrence Crowl <crowl@google.com>
2994 * Makefile.in: Add several missing include dependences.
2996 (test-dump.o): New. This object is not added to any executable,
2997 but is present for ad-hoc testing.
2999 (debug (const bitmap_head_def &)): New.
3000 (debug (const bitmap_head_def *)): New.
3002 (extern debug (const bitmap_head_def &)): New.
3003 (extern debug (const bitmap_head_def *)): New.
3005 (debug (edge_def &)): New.
3006 (debug (edge_def *)): New.
3008 (debug (basic_block_def &)): New.
3009 (debug (basic_block_def *)): New.
3011 (dump_node (const_tree, int, FILE *)): Correct source file.
3013 (debug (die_struct &)): New.
3014 (debug (die_struct *)): New.
3016 (extern debug (die_struct &)): New.
3017 (extern debug (die_struct *)): New.
3018 * gimple-pretty-print.c
3019 (debug (gimple_statement_d &)): New.
3020 (debug (gimple_statement_d *)): New.
3021 * gimple-pretty-print.h
3022 (extern debug (gimple_statement_d &)): New.
3023 (extern debug (gimple_statement_d *)): New.
3025 (debug (ira_allocno_copy &)): New.
3026 (debug (ira_allocno_copy *)): New.
3027 (debug (ira_allocno &)): New.
3028 (debug (ira_allocno *)): New.
3030 (extern debug (ira_allocno_copy &)): New.
3031 (extern debug (ira_allocno_copy *)): New.
3032 (extern debug (ira_allocno &)): New.
3033 (extern debug (ira_allocno *)): New.
3035 (debug (live_range &)): New.
3036 (debug (live_range *)): New.
3038 (debug (lra_live_range &)): New.
3039 (debug (lra_live_range *)): New.
3041 (debug (lra_live_range &)): New.
3042 (debug (lra_live_range *)): New.
3044 (debug (omega_pb_d &)): New.
3045 (debug (omega_pb_d *)): New.
3047 (extern debug (omega_pb_d &)): New.
3048 (extern debug (omega_pb_d *)): New.
3050 (debug (const rtx_def &)): New.
3051 (debug (const rtx_def *)): New.
3053 (debug_tree (tree): Move within file.
3054 (debug_raw (const tree_node &)): New.
3055 (debug_raw (const tree_node *)): New.
3056 (dump_tree_via_hooks (const tree_node *, int)): New.
3057 (debug (const tree_node &)): New.
3058 (debug (const tree_node *)): New.
3059 (debug_verbose (const tree_node &)): New.
3060 (debug_verbose (const tree_node *)): New.
3061 (debug_head (const tree_node &)): New.
3062 (debug_head (const tree_node *)): New.
3063 (debug_body (const tree_node &)): New.
3064 (debug_body (const tree_node *)): New.
3065 (debug_vec_tree (tree): Move and reimplement in terms of dump.
3066 (debug (vec<tree, va_gc> &)): New.
3067 (debug (vec<tree, va_gc> *)): New.
3069 (extern debug (const rtx_def &)): New.
3070 (extern debug (const rtx_def *)): New.
3072 (debug_raw (simple_bitmap_def &)): New.
3073 (debug_raw (simple_bitmap_def *)): New.
3074 (debug (simple_bitmap_def &)): New.
3075 (debug (simple_bitmap_def *)): New.
3077 (extern debug (simple_bitmap_def &)): New.
3078 (extern debug (simple_bitmap_def *)): New.
3079 (extern debug_raw (simple_bitmap_def &)): New.
3080 (extern debug_raw (simple_bitmap_def *)): New.
3082 (debug (vinsn_def &)): New.
3083 (debug (vinsn_def *)): New.
3084 (debug_verbose (vinsn_def &)): New.
3085 (debug_verbose (vinsn_def *)): New.
3086 (debug (expr_def &)): New.
3087 (debug (expr_def *)): New.
3088 (debug_verbose (expr_def &)): New.
3089 (debug_verbose (expr_def *)): New.
3090 (debug (vec<rtx> &)): New.
3091 (debug (vec<rtx> *)): New.
3093 (extern debug (vinsn_def &)): New.
3094 (extern debug (vinsn_def *)): New.
3095 (extern debug_verbose (vinsn_def &)): New.
3096 (extern debug_verbose (vinsn_def *)): New.
3097 (extern debug (expr_def &)): New.
3098 (extern debug (expr_def *)): New.
3099 (extern debug_verbose (expr_def &)): New.
3100 (extern debug_verbose (expr_def *)): New.
3101 (extern debug (vec<rtx> &)): New.
3102 (extern debug (vec<rtx> *)): New.
3104 (_list_iter_cond_expr): Make inline instead of static.
3106 (debug (sreal &)): New.
3107 (debug (sreal *)): New.
3109 (extern debug (sreal &)): New.
3110 (extern debug (sreal *)): New.
3112 (extern debug_raw (const tree_node &)): New.
3113 (extern debug_raw (const tree_node *)): New.
3114 (extern debug (const tree_node &)): New.
3115 (extern debug (const tree_node *)): New.
3116 (extern debug_verbose (const tree_node &)): New.
3117 (extern debug_verbose (const tree_node *)): New.
3118 (extern debug_head (const tree_node &)): New.
3119 (extern debug_head (const tree_node *)): New.
3120 (extern debug_body (const tree_node &)): New.
3121 (extern debug_body (const tree_node *)): New.
3122 (extern debug (vec<tree, va_gc> &)): New.
3123 (extern debug (vec<tree, va_gc> *)): New.
3125 (debug (struct loop &)): New.
3126 (debug (struct loop *)): New.
3127 (debug_verbose (struct loop &)): New.
3128 (debug_verbose (struct loop *)): New.
3129 * tree-dump.c: Add header dependence.
3131 (extern debug (struct loop &)): New.
3132 (extern debug (struct loop *)): New.
3133 (extern debug_verbose (struct loop &)): New.
3134 (extern debug_verbose (struct loop *)): New.
3136 (debug (data_reference &)): New.
3137 (debug (data_reference *)): New.
3138 (debug (vec<data_reference_p> &)): New.
3139 (debug (vec<data_reference_p> *)): New.
3140 (debug (vec<ddr_p> &)): New.
3141 (debug (vec<ddr_p> *)): New.
3143 (extern debug (data_reference &)): New.
3144 (extern debug (data_reference *)): New.
3145 (extern debug (vec<data_reference_p> &)): New.
3146 (extern debug (vec<data_reference_p> *)): New.
3147 (extern debug (vec<ddr_p> &)): New.
3148 (extern debug (vec<ddr_p> *)): New.
3150 (debug (pt_solution &)): New.
3151 (debug (pt_solution *)): New.
3153 (extern debug (pt_solution &)): New.
3154 (extern debug (pt_solution *)): New.
3156 (debug (_var_map &)): New.
3157 (debug (_var_map *)): New.
3158 (debug (tree_live_info_d &)): New.
3159 (debug (tree_live_info_d *)): New.
3161 (extern debug (_var_map &)): New.
3162 (extern debug (_var_map *)): New.
3163 (extern debug (tree_live_info_d &)): New.
3164 (extern debug (tree_live_info_d *)): New.
3166 2013-03-28 Jan Hubicka <jh@suse.cz>
3168 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
3170 2013-03-28 Ian Bolton <ian.bolton@arm.com>
3172 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
3173 record only when desired or required.
3175 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
3177 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
3178 *vec_extractv2di_1_rex64. Use x64 isa attribute.
3180 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3182 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
3183 (*andsi3_compare0_uxtw): New pattern.
3184 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
3185 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
3187 2013-03-28 Jan Hubicka <jh@suse.cz>
3189 * data-streamer-in.c (streamer_read_gcov_count): New function.
3190 * gimple-streamer-out.c: Include value-prof.h.
3191 (output_gimple_stmt): Output histogram.
3192 (output_bb): Use streamer_write_gcov_count.
3193 * value-prof.c: Include data-streamer.h
3194 (dump_histogram_value): Add HIST_TYPE_MAX.
3195 (stream_out_histogram_value): New function.
3196 (stream_in_histogram_value): New function.
3197 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
3198 (stream_out_histogram_value, stream_in_histogram_value): Declare.
3199 * data-streamer-out.c (streamer_write_gcov_count): New function.
3200 (streamer_write_gcov_count_stream): New function.
3201 * lto-cgraph.c (lto_output_edge): Update counter streaming.
3202 (lto_output_node): Likewise.
3203 (input_node, input_edge): Likewise.
3204 * lto-streamer-out.c (output_cfg): Update streaming.
3205 * lto-streamer-in.c (input_cfg): Likewise.
3206 * data-streamer.h (streamer_write_gcov_count,
3207 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
3208 * gimple-streamer-in.c: Include value-prof.h
3209 (input_gimple_stmt): Input histograms.
3210 (input_bb): Update profile streaming.
3212 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
3214 * genmodes.c (emit_max_int): New function.
3215 (emit_insn_modes_h): Added call to emit_max_function.
3216 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
3218 * machmode.def: Fixed comment.
3220 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
3222 * combine.c (try_combine): Removed useless assert.
3223 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
3225 2013-03-28 Marek Polacek <polacek@redhat.com>
3226 Richard Biener <rguenther@suse.de>
3228 PR tree-optimization/56695
3229 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
3230 build signed result of a vector comparison.
3231 * tree-cfg.c (verify_gimple_comparison): Check that a result
3232 of a vector comparison has signed type.
3234 2013-03-28 Richard Biener <rguenther@suse.de>
3236 PR tree-optimization/37021
3237 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
3238 do not restrict gaps between groups.
3239 * tree-vect-stmts.c (vectorizable_load): Properly account for
3240 a gap between groups.
3242 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
3244 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
3245 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
3248 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
3250 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
3251 * doc/extend.texi (Named Address Spaces): Ditto.
3252 (Variable Attributes): Ditto.
3254 2013-03-27 Kai Tietz <ktietz@redhat.com>
3256 * config.build: Add support for cygwin x64 target.
3257 * config.gcc: Likewise.
3258 * config.host: Likewise.
3259 * configure.ac: Likewise
3260 * configure: Regenerated.
3262 2013-03-27 Kai Tietz <ktietz@redhat.com>
3264 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
3265 * config/i386/t-cygwin-w64: New file.
3266 * config/i386/cygwin-w64.h: New file.
3267 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
3268 and add support for x64-cygwin target.
3269 (CPP_SPEC): Likewise.
3270 (CXX_WRAP_SPEC_LIST): Undefine before define.
3271 (LIBGCJ_SONAME): Use 15 as version.
3273 2013-03-27 Richard Biener <rguenther@suse.de>
3275 PR tree-optimization/56716
3276 * tree-ssa-structalias.c (perform_var_substitution): Adjust
3277 dumping for ref nodes.
3279 2013-03-27 Martin Jambor <mjambor@suse.cz>
3281 PR tree-optimization/55334
3282 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
3283 restricted pointers to arrays.
3285 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
3287 * Makefile.in (.SUFFIXES): Add .cc.
3288 (.c.o): Apply same recipe for implicit rule .cc.o.
3290 2013-03-27 Richard Biener <rguenther@suse.de>
3292 PR tree-optimization/37021
3293 * tree-vect-data-refs.c (vect_check_strided_load): Allow
3294 REALPART/IMAGPART_EXPRs around the supported refs.
3295 * tree-ssa-structalias.c (find_func_aliases): Assume that
3296 floating-point values are not used to transfer pointers.
3298 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
3300 * target.def (TARGET_HAS_IFUNC_P): New target hook.
3301 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
3302 * doc/tm.texi: Regenerate.
3303 * targhooks.h (default_has_ifunc_p): New.
3304 * targhooks.c (default_has_ifunc_p): Ditto.
3305 * config/linux-protos.h: New file.
3306 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
3307 this hook for linux which disables support of indirect functions in
3309 * config/linux-android.c: New file.
3310 * config/t-linux-android.c: Ditto.
3311 * config.gcc: Added new object file linux-android.o.
3312 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
3313 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
3314 * varasm.c (do_assemble_alias): Likewise.
3315 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
3316 doesn't support indirect functions.
3317 * configure: Regenerate.
3319 2013-03-27 Bin Cheng <bin.cheng@arm.com>
3322 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
3323 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
3326 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3328 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
3330 2013-03-27 Terry Guo <terry.guo@arm.com>
3332 * config/arm/arm-cores.def: Added core cortex-r7.
3333 * config/arm/arm-tune.md: Regenerated.
3334 * config/arm/arm-tables.opt: Regenerated.
3335 * doc/invoke.texi: Added entry for core cortex-r7.
3337 2013-03-27 Walter Lee <walt@tilera.com>
3339 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
3340 double-decrement of next_scratch_regno.
3342 2013-03-27 Walter Lee <walt@tilera.com>
3344 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
3346 (insn_v1mulus): Ditto.
3347 (insn_v2muls): Ditto.
3349 2013-03-27 Walter Lee <walt@tilera.com>
3351 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
3352 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
3354 2013-03-27 Walter Lee <walt@tilera.com>
3356 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
3357 (*sibcall_value): Ditto.
3359 2013-03-27 Walter Lee <walt@tilera.com>
3361 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
3362 (insn_mnz_v8qi): ... this ...
3363 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
3365 (insn_v<n>mnz): Replaced by ...
3366 (insn_v1mnz): ... this ...
3367 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
3369 (insn_mz_<mode>): Replaced by ...
3370 (insn_mz_v8qi): ... this ...
3371 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
3373 (insn_v<n>mz): Replaced by ...
3374 (insn_v1mz): ... this ...
3375 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
3378 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
3380 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
3382 2013-03-26 Roland McGrath <mcgrathr@google.com>
3384 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
3385 than fprintf with a non-constant, non-format string.
3387 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
3389 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
3390 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
3391 operand 0 predicate.
3392 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
3393 attribute. Use general_x64nomem_operand as operand 1 predicate.
3394 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
3395 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
3396 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
3397 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
3398 (mov<mode>_insv_1): Remove expander. Merge insn with
3399 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
3400 Use general_x64nomem_operand as operand 1 predicate.
3401 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
3402 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
3403 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
3404 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
3405 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
3406 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
3407 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
3408 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
3409 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
3410 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
3411 (general_x64nomem_operand): Ditto.
3413 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
3415 * config/rtems.opt: Add -pthread option.
3417 2013-03-26 Richard Biener <rguenther@suse.de>
3419 * alias.c (find_base_term): Avoid redundant and not used recursion.
3420 (base_alias_check): Get the initial base term from the caller.
3421 (true_dependence_1): Compute and pass base terms to base_alias_check.
3422 (write_dependence_p): Likewise.
3423 (may_alias_p): Likewise.
3425 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
3427 * config/aarch64/aarch64.c (aarch64_classify_address): Support
3428 PC-relative load in SI modes and above only.
3430 2013-03-26 Xinyu Qi <xyqi@marvell.com>
3432 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
3433 * config/arm/iwmmxt.md (WCGR0): Update.
3434 (WCGR1, WCGR2, WCGR3): Likewise.
3436 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
3438 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
3439 Use x64 and nox64 isa attributes.
3441 2013-03-26 Richard Biener <rguenther@suse.de>
3443 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
3444 alignment computations and rely on get_object_alignment_1
3445 for the !TYPE_P case.
3446 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
3448 2013-03-26 Walter Lee <walt@tilera.com>
3450 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
3451 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
3453 2013-03-25 Jeff Law <law@redhat.com>
3455 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
3456 check for INTEGRAL_TYPE_P that was missing due to checking in
3457 wrong version of prior patch.
3459 2013-03-25 Walter Lee <walt@tilera.com>
3461 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
3462 TILEGX_INSN_SHUFFLEBYTES1.
3463 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
3465 (tilegx_builtins): Ditto.
3466 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
3468 2013-03-25 Walter Lee <walt@tilera.com>
3470 * config/tilegx/tilegx.md (floatsisf2): New pattern.
3471 (floatunssisf2): New pattern.
3472 (floatsidf2): New pattern.
3473 (floatunssidf2): New pattern.
3475 2013-03-25 Walter Lee <walt@tilera.com>
3477 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
3478 tests for constraint J, K, N, P.
3480 2013-03-25 Walter Lee <walt@tilera.com>
3482 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
3483 Use indirect/pcrel encoding.
3484 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
3487 2013-03-25 Steve Ellcey <sellcey@mips.com>
3489 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
3490 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
3491 * config/mips/mips.c (mips_option_override): Set IMADD default.
3492 * config/mips/mips.h (PTF_AVOID_IMADD): New.
3493 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
3494 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
3495 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
3496 * doc/invoke.texi (-mimadd/-mno-imadd): New.
3498 2013-03-25 Jeff Law <law@redhat.com>
3500 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
3501 slightly to avoid creating and folding useless trees. Simplify
3502 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
3504 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
3506 * config/i386/i386.md (*zero_extendsidi2): Merge with
3507 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
3508 * config/i386/predicates.md (x86_64_zext_operand): Rename from
3509 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
3510 targets. Clarify comment.
3512 2013-03-25 Martin Jambor <mjambor@suse.cz>
3514 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
3515 pass-through jump functions differently.
3516 (ipa_read_jump_function): Likewise. Also use setter functions to set
3519 2013-03-25 Martin Jambor <mjambor@suse.cz>
3521 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
3522 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
3524 (ipa_get_indirect_edge_target): New function.
3525 (devirtualization_time_bonus): New parameter known_aggs, pass it to
3526 ipa_get_indirect_edge_target. Update all callers.
3527 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
3528 ipa_get_indirect_edge_target_1 instead of calling
3529 ipa_get_indirect_edge_target.
3530 (create_specialized_node): Pass aggvlas to
3531 ipcp_discover_new_direct_edges.
3533 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3535 * config/arm/arm.md (f_sels, f_seld): New types.
3536 (*cmov<mode>): New pattern.
3537 * config/arm/predicates.md (arm_vsel_comparison_operator): New
3540 2013-03-25 Kai Tietz <ktietz@redhat.com>
3542 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
3543 POSIX-printf for mingw-hosted builds.
3545 2013-03-25 Richard Biener <rguenther@suse.de>
3548 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
3549 must-not-throw stmt location.
3551 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3553 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
3554 Emit load-acquire versions when acq is true.
3555 (arm_emit_store_exclusive): Add rel parameter.
3556 Emit store-release versions when rel is true.
3557 (arm_split_compare_and_swap): Use acquire-release instructions
3559 of barriers when appropriate.
3560 (arm_split_atomic_op): Likewise.
3561 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
3562 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
3563 (VUNSPEC_SLX): Likewise.
3564 (VUNSPEC_LDA): Likewise.
3565 (VUNSPEC_STL): Likewise.
3566 * config/arm/sync.md (atomic_load<mode>): New pattern.
3567 (atomic_store<mode>): Likewise.
3568 (arm_load_acquire_exclusive<mode>): Likewise.
3569 (arm_load_acquire_exclusivesi): Likewise.
3570 (arm_load_acquire_exclusivedi): Likewise.
3571 (arm_store_release_exclusive<mode>): Likewise.
3573 2013-03-25 Catherine Moore <clm@codesourcery.com>
3575 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
3576 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
3577 * config/mip/predicates.md (lwsp_swsp_operand,
3578 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
3579 sb16_operand, db4_operand, db7_operand, ib3_operand,
3580 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
3581 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
3582 andi16_operand): New predicates.
3583 * config/mips/mips.md (compression): New attribute.
3584 (enabled): New attribute.
3585 (length): Consider compression in computing length.
3586 (shift_compression): New code attribute.
3587 (*add<mode>3): New operands. Record compression.
3588 (sub<mode>3): Likewise.
3589 (one_cmpl<mode>2): Likewise.
3590 (*and<mode>3): Likewise.
3591 (*ior<mode>3): Likewise.
3592 (unnamed pattern for xor): Likewise.
3593 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
3594 (*<optab><mode>3): Likewise.
3595 (*mov<mode>_internal: Likewise.
3596 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
3597 (mips_unsigned_immediate_p): New.
3598 (umips_lwsp_swsp_address_p): New.
3599 (m16_based_address_p): New.
3600 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
3601 (mips_unsigned_immediate_p): New prototype.
3602 (lwsp_swsp_address_p): New prototype.
3603 (m16_based_address_p): New prototype.
3604 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
3605 (mips_signed_immediate_p): New function.
3606 (m16_based_address_p): New function.
3607 (lwsp_swsp_address_p): New function.
3608 (mips_print_operand_punctuation): Recognize short delay slot insns
3609 for microMIPS.add<mode>3"
3611 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3614 * config/arm/iterators.md (v_cmp_result): New mode attribute.
3615 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
3617 2013-03-25 Richard Biener <rguenther@suse.de>
3619 PR tree-optimization/56689
3620 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
3623 2013-03-25 Richard Biener <rguenther@suse.de>
3625 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
3627 (memory_references): Likewise.
3628 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
3629 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
3630 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
3631 (gather_mem_refs_in_loops): Fold into ...
3632 (analyze_memory_references): ... this. Move initialization
3633 to tree_ssa_lim_initialize.
3634 (fill_always_executed_in): Rename to ...
3635 (fill_always_executed_in_1): ... this.
3636 (fill_always_executed_in): Move contains_call computation to
3637 this new function from ...
3638 (tree_ssa_lim_initialize): ... here.
3639 (tree_ssa_lim): Call fill_always_executed_in.
3641 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
3643 * postreload.c (reload_combine): Fix code detecting returns.
3645 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
3647 * function.c (emit_use_return_register_into_block): On cc0 targets,
3648 do not emit the sequence between cc0 setter and user.
3650 2013-03-25 Kai Tietz <ktietz@redhat.com>
3652 * config/i386/predicates.md (local_symbolic_operand): Interpret
3653 dll-imported symbols as none-local.
3655 2013-03-25 Richard Biener <rguenther@suse.de>
3657 * tree-ssa-loop-im.c (struct depend): Remove.
3658 (struct lim_aux_data): Make depends a vec of gimples.
3659 (free_lim_aux_data): Adjust.
3660 (add_dependency): Likewise.
3661 (set_level): Likewise.
3663 2013-03-25 Richard Biener <rguenther@suse.de>
3666 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
3667 the pointer returned by calls with ECF_MALLOC set.
3669 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
3671 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
3673 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
3675 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
3676 using MMXMODE mode iterator.
3677 (*move<mode>_internal): Merge with *movv2sf_internal and
3678 *movv2sf_internal_rex64 using MMXMODE mode iterator.
3680 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
3682 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
3683 (record_last_mem_set_info): Likewise.
3685 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
3686 of XNEWVEC followed by memset.
3687 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
3689 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
3691 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
3692 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
3693 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
3694 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
3695 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
3696 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
3697 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
3698 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
3699 BARRIER_P instead of GET_CODE.
3701 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
3703 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
3704 inaccuracy in the probing code.
3706 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
3707 (ctrapdi4): Likewise.
3709 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
3711 * calls.c (expand_call): Add missing guard to code handling return
3712 of non-BLKmode structures in MSB.
3713 * function.c (expand_function_end): Likewise.
3715 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
3717 * combine.c (try_combine): Adjust comment. Do not add the set of
3718 insn #0 if the destination indirectly is set or dies in insn #2.
3719 Tidy up code to distribute a new note.
3721 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
3723 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
3724 also for alternatives 16 and 17.
3726 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
3728 * config/i386/sse.md (*mov<mode>_internal): Merge with
3729 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
3730 Emit insn template depending on type attribute. Use
3731 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
3732 movd instead of movq mnemonic for interunit moves. Rewrite mode
3733 attribute calculation. Remove unit attribute calculation.
3734 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
3735 Set prefix_data16 attribute for DImode ssemov types.
3736 Use Ym instead of y for SSE-MMX conversion alternatives.
3737 Reorder operand constraints.
3739 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
3741 * df.h (df_insn_delete): Adjust prototype.
3742 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
3743 and let it decide whether mark the basic block dirty.
3744 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
3745 * df-scan.c (df_insn_info_delete): New helper function, split
3746 off from df_insn_delete.
3747 (df_scan_free_bb_info): Use it.
3748 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
3750 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
3751 that the insn is actually an insn and it has a non-NULL basic block.
3752 Do not mark basic block dirty if only deleting a DEBUG_INSN.
3754 2013-03-22 Richard Biener <rguenther@suse.de>
3756 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
3758 (mem_ref_alloc): Do not allocate them.
3759 (refs_independent_p): Do not query or maintain a cache.
3761 2013-03-22 Richard Biener <rguenther@suse.de>
3763 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
3764 (gather_mem_refs_in_loops): Do not compute it.
3765 (analyze_memory_references): Do not allocate it.
3766 (tree_ssa_lim_finalize): Do not free it.
3767 (for_all_locs_in_loop): Do not query all_refs_in_loop.
3769 2013-03-22 Richard Biener <rguenther@suse.de>
3771 * is-a.h (as_a): Use gcc_checking_assert.
3773 2013-03-22 Ian Bolton <ian.bolton@arm.com>
3775 * config/aarch64/aarch64.c (aarch64_print_operand): New
3776 format specifier for printing a constant in hex.
3777 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
3778 format specifier for printing second operand.
3780 2013-03-22 Richard Biener <rguenther@suse.de>
3782 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
3784 (gather_mem_refs_in_loops): Perform store accumulation here.
3785 (create_vop_ref_mapping_loop): Remove.
3786 (create_vop_ref_mapping): Likewise.
3787 (analyze_memory_references): Initialize refs_stored_in_loop.
3788 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
3789 (record_indep_loop): Remove.
3790 (record_dep_loop): New function.
3791 (ref_indep_loop_p_1): Adjust to only walk over references
3792 in the loop, not its subloops.
3793 (ref_indep_loop_p): Rename to ...
3794 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
3795 maintaining a more fine-grained cache.
3796 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
3797 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
3799 2013-03-22 Richard Biener <rguenther@suse.de>
3801 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
3802 (struct mem_ref): Make accesses_in_loop a vec of a vec of
3803 aggregate mem_ref_loc.
3804 (free_mem_ref_locs): Inline into ...
3805 (memref_free): ... this and adjust.
3806 (mem_ref_alloc): Adjust.
3807 (mem_ref_locs_alloc): Remove.
3808 (record_mem_ref_loc): Adjust.
3809 (get_all_locs_in_loop): Rewrite into ...
3810 (for_all_locs_in_loop): ... this iterator.
3811 (rewrite_mem_ref_loc): New functor.
3812 (rewrite_mem_refs): Use for_all_locs_in_loop.
3813 (sm_set_flag_if_changed): New functor.
3814 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
3815 (ref_always_accessed): New functor.
3816 (ref_always_accessed_p): Use for_all_locs_in_loop.
3818 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
3820 * tree-pass.h (PROP_gimple_lvec): New.
3821 * passes.c (dump_properties): Handle PROP_gimple_lvec.
3822 (init_optimization_passes): Move pass_lower_vector.
3823 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
3825 (pass_lower_vector): Provide PROP_gimple_lvec.
3826 (pass_lower_vector_ssa): Likewise.
3827 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
3829 2013-03-21 Mark Wielaard <mjw@redhat.com>
3831 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
3833 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
3835 * config/i386/i386.md (*movdi_internal): Disparage slightly
3836 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
3837 conversion alternatives.
3839 2013-03-21 Jakub Jelinek <jakub@redhat.com>
3842 * diagnostic.def (DK_WERROR): New kind.
3843 * diagnostic.h (werrorcount): Define.
3844 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
3845 promoted to DK_ERROR, increment DK_WERROR counter instead of
3847 * toplev.c (toplev_main): Call print_ignored_options even if
3848 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
3849 even if just werrorcount is non-zero.
3852 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
3854 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
3855 (string_cst_pool_decl): New function.
3856 (optimize_one_addr_into_implicit_ptr): New function.
3857 (resolve_addr_in_expr): Optimize DWARF location expression
3858 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
3859 which doesn't live in memory, but has DW_AT_location or
3860 DW_AT_const_value, or refers to a string literal, into
3861 DW_OP_GNU_implicit_pointer.
3862 (optimize_location_into_implicit_ptr): New function.
3863 (resolve_addr): If removing DW_AT_location of a variable because
3864 it was DW_OP_addr of address of the variable, but the variable doesn't
3865 live in memory, try to emit const value attribute for the initializer.
3867 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
3869 * tree.h (VECTOR_TYPE_P): New macro.
3870 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
3872 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
3873 VEC_COND_EXPR cannot be lvalues.
3874 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
3876 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
3878 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
3879 Restrict the transformation to equal modes.
3881 2013-03-21 Richard Biener <rguenther@suse.de>
3883 PR tree-optimization/39326
3884 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
3885 (MEM_ANALYZABLE): Adjust.
3886 (record_mem_ref_loc): Move bitmap ops ...
3887 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
3888 unanalyzable refs, do not record locations for it.
3889 (analyze_memory_references): Allocate ref zero as shared
3891 (refs_independent_p): Do not test for unanalyzed mems here.
3892 (ref_indep_loop_p_1): Special-case disambiguation against
3894 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
3896 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
3898 * config/arm/arm-protos.h (tune_params): Add
3899 prefer_neon_for_64bits field.
3900 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
3901 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
3902 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
3903 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
3904 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
3905 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
3906 (arm_option_override): Handle -mneon-for-64bits new option.
3907 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
3908 (prefer_neon_for_64bits): Declare new variable.
3909 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
3910 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
3911 (arch_enabled): Handle new arch types. Remove support for onlya8
3913 (one_cmpldi2): Use new arch names.
3914 (zero_extend<mode>di2, extend<mode>di2): Ditto.
3915 * config/arm/arm.opt (mneon-for-64bits): Add option.
3916 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
3917 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
3918 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
3920 * doc/invoke.texi (-mneon-for-64bits): Document.
3922 2013-03-21 Richard Biener <rguenther@suse.de>
3924 PR tree-optimization/39326
3925 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
3926 (sort_bbs_in_loop_postorder_cmp): New function.
3927 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
3929 2013-03-21 Richard Biener <rguenther@suse.de>
3931 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
3932 (vect_insert_into_interleaving_chain): Likewise.
3933 (vect_drs_dependent_in_basic_block): Inline ...
3934 (vect_slp_analyze_data_ref_dependence): ... here. New function,
3936 (vect_analyze_data_ref_dependence): ... here. Simplify.
3937 (vect_check_interleaving): Simplify.
3938 (vect_analyze_data_ref_dependences): Likewise. Split out ...
3939 (vect_slp_analyze_data_ref_dependences): ... this new function.
3940 (dr_group_sort_cmp): New function.
3941 (vect_analyze_data_ref_accesses): Compute data-reference groups
3942 here instead of in vect_analyze_data_ref_dependence. Use
3943 a more efficient algorithm.
3944 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
3945 vect_slp_analyze_data_ref_dependences. Call
3946 vect_analyze_data_ref_accesses earlier.
3947 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
3948 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
3949 (vect_slp_analyze_data_ref_dependences): New prototype.
3951 2013-03-21 Richard Biener <rguenther@suse.de>
3953 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
3954 ref is stored in the loop.
3955 (find_refs_for_sm): Walk only over all stores.
3956 (store_motion_loop): Allocate from lim_bitmap_obstack.
3957 (store_motion): Likewise.
3959 2013-03-21 Richard Biener <rguenther@suse.de>
3961 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
3962 Update virtual SSA form.
3964 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3966 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
3967 * configure: Regenerate.
3968 * config.in: Regenerate.
3969 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
3970 if !HAVE_LD_EH_FRAME_CIEV3.
3972 2013-03-21 Richard Biener <rguenther@suse.de>
3974 * tree-cfg.c (verify_expr_no_block): New function.
3975 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
3976 nor DECL_VALUE_EXPR have locations with associated blocks.
3977 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
3978 (clear_unused_block_pointer): Remove code dealing with
3979 blocks in DECL_DEBUG_EXPR locations.
3981 2013-03-21 Richard Biener <rguenther@suse.de>
3983 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
3984 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
3985 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
3986 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
3987 instead of DECL_DEBUG_EXPR_IS_FROM.
3988 * gimplify.c (gimplify_modify_expr): Likewise.
3989 * tree-cfg.c (verify_expr_location_1): Likewise.
3990 * tree-complex.c (create_one_component_var): Likewise.
3991 * tree-sra.c (create_access_replacement): Likewise.
3992 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
3993 (clear_unused_block_pointer): Likewise.
3994 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
3995 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
3996 * var-tracking.c (var_debug_decl): Likewise.
3997 (track_expr_p): Likewise.
3998 * tree-inline.c (add_local_variables): Likewise. Set
3999 DECL_HAS_DEBUG_EXPR_P after copying it.
4000 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
4001 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
4003 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
4006 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
4007 * configure: Regenerate.
4008 * config.in: Regenerate.
4009 * config/i386/i386.md (*movdf_internal): Use
4010 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
4011 movd instead of movq mnemonic for interunit moves.
4012 (*movdi_internal): Ditto.
4014 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4016 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
4017 (abd<mode>_3): New pattern.
4018 (aba<mode>_3): New pattern.
4019 (fabd<mode>_3): New pattern.
4021 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4023 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
4024 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
4025 occurrence of REGISTER_PREFIX as its empty string.
4027 2013-03-20 Jeff Law <law@redhat.com>
4029 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
4030 addititional equivalences for equality comparisons between an SSA_NAME
4031 and a constant where the SSA_NAME was set from a widening conversion.
4033 2013-03-20 Walter Lee <walt@tilera.com>
4035 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
4037 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
4039 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
4040 depending on type attribute.
4041 (*movti_internal): Ditto.
4042 (*movtf_internal): Ditto.
4043 (*movxf_internal): Ditto.
4044 (*movdf_internal): Ditto.
4045 (*movsf_internal): Ditto.
4047 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
4049 * config/i386/i386.md (*movti_internal): Set prefix attribute to
4050 maybe_vex for sselog1 and ssemov types.
4051 (*movdi_internal): Reorder operand constraints.
4052 (*movsi_internal): Ditto. Set prefix attribute to
4053 maybe_vex for sselog1 and ssemov types.
4054 (*movtf_internal): Set prefix attribute to maybe_vex
4055 for sselog1 and ssemov types.
4056 (*movdf_internal): Ditto. Set prefix_data16 attribute for
4057 DImode ssemov types. Reorder operand constraints.
4058 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
4059 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
4060 attribute for SImode ssemov types. Reorder operand constraints.
4062 2013-03-20 Martin Jambor <mjambor@suse.cz>
4064 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
4065 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
4067 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
4069 * config/rs6000/predicates.md (indexed_address, update_address_mem
4070 update_indexed_address_mem): New predicates.
4071 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
4072 attribute for load/store instructions.
4073 * config/rs6000/dfp.md (movsd_store): Likewise.
4074 (movsd_load): Likewise.
4075 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
4076 (unnamed HI->DI extend define_insn): Likewise.
4077 (unnamed SI->DI extend define_insn): Likewise.
4078 (unnamed QI->SI extend define_insn): Likewise.
4079 (unnamed QI->HI extend define_insn): Likewise.
4080 (unnamed HI->SI extend define_insn): Likewise.
4081 (unnamed HI->SI extend define_insn): Likewise.
4082 (extendsfdf2_fpr): Likewise.
4083 (movsi_internal1): Likewise.
4084 (movsi_internal1_single): Likewise.
4085 (movhi_internal): Likewise.
4086 (movqi_internal): Likewise.
4087 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
4088 attribute for load/store instructions.
4089 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
4091 (mov<mode>_softfloat): Likewise.
4092 (mov<mode>_hardfloat32): Likewise.
4093 (mov<mode>_hardfloat64): Likewise.
4094 (mov<mode>_softfloat64): Likewise.
4095 (movdi_internal32): Likewise.
4096 (movdi_internal64): Likewise.
4097 (probe_stack_<mode>): Likewise.
4099 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
4101 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
4102 floating point, and decimal floating point to reload iterator.
4104 * config/rs6000/constraints.md (wl constraint): New constraints to
4105 return FLOAT_REGS if certain options are used to reduce the number
4106 of separate patterns that exist in the file.
4107 (wx constraint): Likewise.
4108 (wz constraint): Likewise.
4110 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
4111 -mdebug=reg, print wg, wl, wx, and wz constraints.
4112 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
4113 Initialize the reload functions for 64-bit binary/decimal floating
4115 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
4116 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
4117 create the buffer on the stack to overcome not having a 32-bit
4119 (rs6000_emit_move): Likewise.
4120 (rs6000_secondary_memory_needed_rtx): Likewise.
4121 (rs6000_alloc_sdmode_stack_slot): Likewise.
4122 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
4123 via xxlxor, just like DFmode 0.0.
4125 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
4126 define as 1 if we are running on a power7 or newer.
4127 (enum r6000_reg_class_enum): Add new constraints.
4129 * config/rs6000/dfp.md (movsd): Delete, combine with binary
4130 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
4131 with other moves by using conditional constraits (wg). Use LFIWZX
4132 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
4133 (movsd splitter): Likewise.
4134 (movsd_hardfloat): Likewise.
4135 (movsd_softfloat): Likewise.
4137 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
4138 binary and decimal floating point moves.
4139 (fmove_ok): New attributes to combine binary and decimal floating
4140 point moves, and to combine power6x (mfpgpr) moves along normal
4142 (real_value_to_target): Likewise.
4149 (movsf): Combine binary and decimal floating point moves. Combine
4150 power6x (mfpgpr) moves with other moves by using conditional
4151 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
4152 (mov<mode> for SFmode/SDmode); Likewise.
4153 (SFmode/SDmode splitters): Likewise.
4154 (movsf_hardfloat): Likewise.
4155 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
4156 (movsf_softfloat): Likewise.
4157 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
4159 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
4160 wx and wz constraints.
4162 * config/rs6000/constraints.md (wg constraint): New constraint to
4163 return FLOAT_REGS if -mmfpgpr (power6x) was used.
4165 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
4168 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
4169 -mdebug=reg, print wg, wl, wx, and wz constraints.
4170 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
4171 Initialize the reload functions for 64-bit binary/decimal floating
4173 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
4174 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
4175 create the buffer on the stack to overcome not having a 32-bit
4177 (rs6000_emit_move): Likewise.
4178 (rs6000_secondary_memory_needed_rtx): Likewise.
4179 (rs6000_alloc_sdmode_stack_slot): Likewise.
4180 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
4181 via xxlxor, just like DFmode 0.0.
4183 * config/rs6000/dfp.md (movdd): Delete, combine with binary
4184 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
4185 with other moves by using conditional constraits (wg). Use LFIWZX
4186 and STFIWX for loading SDmode on power7.
4187 (movdd splitters): Likewise.
4188 (movdd_hardfloat32): Likewise.
4189 (movdd_softfloat32): Likewise.
4190 (movdd_hardfloat64_mfpgpr): Likewise.
4191 (movdd_hardfloat64): Likewise.
4192 (movdd_softfloat64): Likewise.
4194 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
4195 64-bit binary and decimal floating point moves.
4196 (FMOVE64X): Likewise.
4197 (movdf): Combine 64-bit binary and decimal floating point moves.
4198 Combine power6x (mfpgpr) moves with other moves by using
4199 conditional constraits (wg).
4200 (mov<mode> for DFmode/DDmode): Likewise.
4201 (DFmode/DDmode splitters): Likewise.
4202 (movdf_hardfloat32): Likewise.
4203 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
4204 (movdf_softfloat32): Likewise.
4205 (movdf_hardfloat64_mfpgpr): Likewise.
4206 (movdf_hardfloat64): Likewise.
4207 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
4208 (movdf_softfloat64): Likewise.
4209 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
4210 (reload_<mode>_load): Move to later in the file so they aren't in
4211 the middle of the floating point move insns.
4212 (reload_<mode>_store): Likewise.
4214 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
4217 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
4218 constraint if -mdebug=reg.
4219 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
4220 Enable using dd reload support if needed.
4222 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
4223 binary and decimal floating point moves in rs6000.md.
4224 (movtd_internal): Likewise.
4226 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
4227 decimal floating point moves.
4229 (movtf_internal): Likewise.
4230 (mov<mode>_internal, TDmode/TFmode): Likewise.
4231 (movtf_softfloat): Likewise.
4232 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
4234 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
4235 movdi_internal64, using wg constraint for move direct operations.
4236 (movdi_internal64): Likewise.
4238 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
4239 MODES_TIEABLE_P for selected modes. Print the numerical value of
4240 the various virtual registers. Use GPR/FPR first/last values,
4241 instead of hard coding the register numbers. Print which modes
4242 have reload functions registered.
4243 (rs6000_option_override_internal): If -mdebug=reg, trace the options
4244 settings before/after setting cpu, target and subtarget settings.
4245 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
4246 and for secondary reload failures in rs6000_secondary_reload_inner.
4247 (rs6000_secondary_reload_fail): Likewise.
4248 (rs6000_secondary_reload_inner): Likewise.
4250 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
4251 macros for first/last GPR and FPR registers.
4252 (LAST_GPR_REGNO): Likewise.
4253 (FIRST_FPR_REGNO): Likewise.
4254 (LAST_FPR_REGNO): Likewise.
4256 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
4257 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
4258 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
4259 (vcond<mode><mode>): Likewise.
4260 (vcondu<mode><mode>): Likewise.
4261 (vector_gtu<mode>): Likewise.
4262 (vector_gte<mode>): Likewise.
4263 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
4264 to prevent the compiler from converting DImode operations to TImode.
4265 (ior<mode>3): Likewise.
4266 (and<mode>3): Likewise.
4267 (one_cmpl<mode>2): Likewise.
4268 (nor<mode>3): Likewise.
4269 (andc<mode>3): Likewise.
4271 * config/rs6000/constraints.md (wt constraint): New constraint
4272 that returns VSX_REGS if TImode is allowed in VSX registers.
4274 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
4277 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
4278 similar to TImode, but it is restricted to being in the GPRs.
4280 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
4281 TImode to occupy a single VSX register.
4283 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
4284 -mvsx-timode for power7/power8.
4285 (power7 cpu): Likewise.
4286 (power8 cpu): Likewise.
4288 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
4289 sure that TFmode/TDmode take up two registers if they are ever
4290 allowed in the upper VSX registers.
4291 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
4293 (rs6000_init_hard_regno_mode_ok): Likewise.
4294 (rs6000_debug_reg_global): Add debugging for PTImode and wt
4295 constraint. Print if LRA is turned on.
4296 (rs6000_option_override_internal): Give an error if -mvsx-timode
4297 and VSX is not enabled.
4298 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
4299 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
4300 to reg+offset addressing. Use PTImode when checking offset
4301 addresses for validity.
4302 (reg_offset_addressing_ok_p): Likewise.
4303 (rs6000_legitimate_offset_address_p): Likewise.
4304 (rs6000_legitimize_address): Likewise.
4305 (rs6000_legitimize_reload_address): Likewise.
4306 (rs6000_legitimate_address_p): Likewise.
4307 (rs6000_eliminate_indexed_memrefs): Likewise.
4308 (rs6000_emit_move): Likewise.
4309 (rs6000_secondary_reload): Likewise.
4310 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
4311 reloads to fpr registers to continue to use reg+offset addressing,
4312 but 64-bit reloads to altivec registers need reg+reg addressing.
4313 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
4314 it. Treat LO_SUM like a PLUS operation.
4315 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
4316 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
4317 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
4318 registers to share a register with a smaller sized type, since VSX
4319 puts scalars in the upper 64-bits.
4320 (print_operand): Add support for PTImode.
4321 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
4322 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
4323 registers, but don't have arithmetic support.
4324 (rs6000_memory_move_cost): Add test for VSX.
4325 (rs6000_opt_masks): Add -mvsx-timode.
4327 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
4330 (VSr): Use wt constraint for TImode.
4331 (VSv): Drop TImode support.
4332 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
4333 (vsx_movti_64bit): Likewise.
4334 (vsx_movti_32bit): Likewise.
4335 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
4336 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
4337 one '?' on the appropriate output constraint. Do not allow TImode
4338 logical operations on 32-bit systems.
4339 (vsx_ior<mode>3): Likewise.
4340 (vsx_xor<mode>3): Likewise.
4341 (vsx_one_cmpl<mode>2): Likewise.
4342 (vsx_nor<mode>3): Likewise.
4343 (vsx_andc<mode>3): Likewise.
4344 (vsx_concat_<mode>): Likewise.
4345 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
4347 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
4348 OPTION_MASK_VSX_TIMODE.
4349 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
4350 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
4352 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
4353 (TI2 iterator): New iterator for TImode, PTImode.
4354 (wd mode attribute): Add values for vector types.
4355 (movti_string): Replace TI move operations with operations for TImode
4356 and PTImode. Add support for TImode being allowed in VSX registers.
4357 (mov<mode>_string, TImode/PTImode): Likewise.
4358 (movti_ppc64): Likewise.
4359 (mov<mode>_ppc64, TImode/PTImode): Likewise.
4360 (TI mode splitters): Likewise.
4362 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
4365 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
4367 PR tree-optimization/56355
4368 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
4369 Also handle integers with undefined overflow.
4371 2013-03-20 Catherine Moore <clm@codesourcery.com>
4372 Maciej W. Rozycki <macro@codesourcery.com>
4373 Tom de Vries <tom@codesourcery.com>
4374 Nathan Sidwell <nathan@codesourcery.com>
4375 Iain Sandoe <iain@codesourcery.com>
4376 Nathan Froyd <froydnj@codesourcery.com>
4377 Chao-ying Fu <fu@mips.com>
4379 * doc/extend.texi: (micromips, nomicromips, nocompression):
4380 Document new function attributes.
4381 * doc/invoke.texi (minterlink-compressed, mmicromips,
4382 m14k, m14ke, m14kec): Document new options.
4383 (minterlink-mips16): Update documentation.
4384 * doc/md.texi (ZC, ZD): Document new constraints.
4385 * configure.ac (gcc_cv_as_micromips): Check if linker
4386 supports the .set micromips directive.
4387 * configure: Regenerate.
4388 * config.in: Regenerate.
4389 * config/mips/mips-tables.opt: Regenerate.
4390 * config/mips/micromips.md: New file.
4391 * constraints.md (ZC, ZD): New constraints.
4392 * config/mips/predicates.md (movep_src_register): New predicate.
4393 (movep_src_operand): New predicate.
4394 (non_volatile_mem_operand): New predicate.
4395 * config/mips/mips.md (multimem): New type.
4396 (length): Differentiate between 17-bit and 18-bit branch offsets.
4397 (MOVEP1, MOVEP2): New mode iterator.
4398 (mov_<load>l): Use ZC constraint.
4399 (mov_<load>r): Likewise.
4400 (mov_<store>l): Likewise.
4401 (mov_<store>r): Likewise.
4402 (*branch_equality<mode>_inverted): Add microMIPS support.
4403 (*branch_equality<mode>): Likewise.
4404 (*jump_absolute): Likewise.
4405 (indirect_jump_<mode>): Likewise.
4406 (tablejump_<mode>): Likewise.
4407 (<optab>_internal): Likewise.
4408 (sibcall_internal): Likewise.
4409 (sibcall_value_internal): Likewise.
4410 (prefetch): Use constraint ZD.
4411 * config/mips/mips.opt (minterlink-compressed): New option.
4412 (minterlink-mips16): Now an alias for minterlink-compressed.
4413 (mmicromips): New option.
4414 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
4415 (compare_and_swap_12): Likewise.
4416 (sync_add<mode>): Likewise.
4417 (sync_<optab>_12): Likewise.
4418 (sync_old_<optab>_12): Likewise.
4419 (sync_new_<optab>_12): Likewise.
4420 (sync_nand_12): Likewise.
4421 (sync_old_nand_12): Likewise.
4422 (sync_new_nand_12): Likewise.
4423 (sync_sub<mode>): Likewise.
4424 (sync_old_add<mode>): Likewise.
4425 (sync_old_sub<mode>): Likewise.
4426 (sync_new_add<mode>): Likewise.
4427 (sync_new_sub<mode>): Likewise.
4428 (sync_<optab><mode>): Likewise.
4429 (sync_old_<optab><mode>): Likewise.
4430 (sync_new_<optab><mode>): Likewise.
4431 (sync_nand<mode>): Likewise.
4432 (sync_old_nand<mode>): Likewise.
4433 (sync_new_nand<mode>): Likewise.
4434 (sync_lock_test_and_set<mode>): Likewise.
4435 (test_and_set_12): Likewise.
4436 (atomic_compare_and_swap<mode>): Likewise.
4437 (atomic_exchange<mode>_llsc): Likewise.
4438 (atomic_fetch_add<mode>_llsc): Likewise.
4439 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
4440 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
4441 (umips_save_restore_pattern_p): Likewise.
4442 (umips_load_store_pair_p): Likewise.
4443 (umips_output_load_store_pair): Likewise.
4444 (umips_movep_target_p): Likewise.
4445 (umips_12bit_offset_address_p): Likewise.
4446 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
4447 (mips_base_mips16): Rename this...
4448 (mips_base_compression_flags): ...to this. Update all uses.
4449 (mips_attribute_table): Add micromips, nomicromips and nocompression.
4450 (mips_mips16_decl_p): Delete.
4451 (mips_nomips16_decl_p): Delete.
4452 (mips_get_compress_on_flags): New function.
4453 (mips_get_compress_off_flags): New function.
4454 (mips_get_compress_mode): New function.
4455 (mips_get_compress_on_name): New function.
4456 (mips_get_compress_off_name): New function.
4457 (mips_insert_attributes): Support multiple compression types.
4458 (mips_merge_decl_attributes): Likewise.
4459 (umips_12bit_offset_address_p): New function.
4460 (mips_start_function_definition): Emit .set micromips directive.
4461 (mips_call_may_need_jalx_p): New function.
4462 (mips_function_ok_for_sibcall): Add microMIPS support.
4463 (mips_print_operand_punctuation): Support short delay slots and
4465 (umips_swm_mask, umips_swm_encoding): New.
4466 (umips_build_save_restore): New function.
4467 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
4468 (was_mips16_p): Remove.
4469 (old_compression_mode): New.
4470 (mips_set_compression_mode): New function.
4471 (mips_set_current_function): Add microMIPS support.
4472 (mips_option_override): Likewise.
4473 (umips_save_restore_pattern_p): New function.
4474 (umips_output_save_restore): New function.
4475 (umips_load_store_pair_p_1): New function.
4476 (umips_load_store_pair_p): New function.
4477 (umips_output_load_store_pair_1): New function.
4478 (umips_output_load_store_pair): New function.
4479 (umips_movep_target_p) New function.
4480 (mips_prepare_pch_save): Add microMIPS support.
4481 * config/mips/mips.h (TARGET_COMPRESSION): New.
4482 (TARGET_CPU_CPP_BUILTINS): Update macro
4483 to use new compression flags and to support microMIPS.
4484 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
4485 (MIPS_ARCH_FLOAT_SPEC): Likewise.
4486 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
4487 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
4488 (ASM_SPEC): Support mmicromips and mno-micromips.
4489 (M16STORE_REG_P): New macro.
4490 (MIPS_CALL): Support TARGET_MICROMIPS.
4491 (MICROMIPS_J): New macro.
4492 (mips_base_mips16): Rename this...
4493 (mips_base_compression_flags): ...to this.
4494 (UMIPS_12BIT_OFFSET_P): New macro.
4495 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
4496 (MULTILIB_DIRNAMES): Likewise.
4497 2013-03-20 Richard Biener <rguenther@suse.de>
4499 PR tree-optimization/56661
4500 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
4501 the result does not have to be distinct.
4503 2013-03-20 Richard Biener <rguenther@suse.de>
4505 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
4508 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4509 Steven Bosscher <steven@gcc.gnu.org>
4511 PR rtl-optimization/56605
4512 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
4514 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
4517 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
4518 that require movd instead of movq.
4520 2013-03-20 Richard Biener <rguenther@suse.de>
4522 * tree-ssa-structalias.c (struct variable_info): Add pointer
4523 to the first field of an aggregate with sub-vars. Make
4524 this and the pointer to the next subfield its ID.
4525 (vi_next): New function.
4526 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
4527 storedanything_id, integer_id): Increment by one.
4528 (new_var_info, get_call_vi, lookup_call_clobber_vi,
4529 get_call_clobber_vi): Adjust.
4530 (solution_set_expand): Simplify and speedup.
4531 (solution_set_add): Inline into ...
4532 (set_union_with_increment): ... this. Adjust accordingly.
4533 (do_sd_constraint): Likewise.
4534 (do_ds_constraint): Likewise.
4535 (do_complex_constraint): Simplify.
4536 (build_pred_graph): Adjust.
4537 (solve_graph): Likewise. Simplify and speedup.
4538 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
4539 get_constraint_for_component_ref, get_constraint_for_1,
4540 first_vi_for_offset, first_or_preceding_vi_for_offset,
4541 create_function_info_for, create_variable_info_for_1,
4542 create_variable_info_for, intra_create_variable_infos): Adjust.
4543 (init_base_vars): Push NULL for ID zero.
4544 (compute_points_to_sets): Adjust.
4546 2013-03-20 Richard Biener <rguenther@suse.de>
4548 * cfgloop.c (verify_loop_structure): Streamline and avoid
4549 ICEing on corrupt loop tree.
4550 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
4553 2013-03-20 Richard Biener <rguenther@suse.de>
4555 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
4556 check whether an SSA update is needed.
4558 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
4560 * config/mips/constraints.md (T): Rename to...
4564 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
4565 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
4567 2013-03-19 Ian Bolton <ian.bolton@arm.com>
4569 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
4570 (*subsi3_carryin_uxtw): Likewise.
4572 2013-03-19 Ian Bolton <ian.bolton@arm.com>
4574 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
4575 (*rorsi3_insn_uxtw): Likewise.
4577 2013-03-19 Ian Bolton <ian.bolton@arm.com>
4579 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
4580 (*extrsi5_insn_uxtw): Likewise.
4582 2013-03-19 Richard Biener <rguenther@suse.de>
4584 PR tree-optimization/56273
4585 * passes.c (init_optimization_passes): Move second VRP after DOM.
4587 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
4589 * config/i386/i386.md (*movti_internal): Merge from
4590 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
4591 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
4592 nox64 isa attributes.
4594 2013-03-18 Richard Biener <rguenther@suse.de>
4596 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
4598 (merge_node_constraints): Likewise.
4599 (build_succ_graph): Likewise.
4600 (valid_graph_edge): Inline into single caller.
4601 (unify_nodes): Likewise. Use bitmap_set_bit return value
4603 (scc_visit): Fix formatting and variable use.
4604 (do_sd_constraint): Use gcc_checking_assert.
4605 (do_ds_constraint): Likewise.
4606 (do_complex_constraint): Likewise.
4607 (condense_visit): Likewise. Cleanup.
4608 (dump_pred_graph): New function.
4609 (perform_var_substitution): Dump the pred-graph before
4610 variable substitution.
4611 (find_equivalent_node): Use gcc_checking_assert.
4612 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
4614 2013-03-18 Richard Biener <rguenther@suse.de>
4616 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
4617 Remove cond_expr_stmt_list argument and do not gimplify the
4619 (vect_loop_versioning): Adjust.
4620 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
4621 Cleanup to use less temporaries.
4622 (vect_create_data_ref_ptr): Cleanup.
4624 2013-03-18 Jakub Jelinek <jakub@redhat.com>
4626 PR tree-optimization/56635
4627 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
4628 require types_compatible_p types.
4630 2013-03-18 Nick Clifton <nickc@redhat.com>
4632 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
4635 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
4636 Add missing line to comment describing function.
4638 2013-03-18 Richard Biener <rguenther@suse.de>
4640 PR tree-optimization/56210
4641 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4642 Handle string / character search functions.
4643 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4645 2013-03-18 Richard Biener <rguenther@suse.de>
4648 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
4649 and implement properly.
4650 * gimple.h (gimple_cond_single_var_p): Remove.
4652 2013-03-18 Richard Biener <rguenther@suse.de>
4654 * tree-data-ref.h (find_data_references_in_loop): Declare.
4655 * tree-data-ref.c (get_references_in_stmt): Use a stack
4656 vector pre-allocated in the callers.
4657 (find_data_references_in_stmt): Adjust.
4658 (graphite_find_data_references_in_stmt): Likewise.
4659 (create_rdg_vertices): Likewise.
4660 (find_data_references_in_loop): Export.
4661 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
4662 Compute dependences here...
4663 (vect_analyze_data_refs): ...not here. When we encounter
4664 a non-vectorizable data reference in basic-block vectorization
4665 truncate the data reference vector. Do not bother to
4666 fixup data-dependence information for gather loads.
4667 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
4668 of data references, as reported.
4670 2013-03-18 Richard Biener <rguenther@suse.de>
4672 PR tree-optimization/3713
4673 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
4674 has_constants and expr.
4675 (stmt_has_constants): Properly valueize SSA names when deciding
4676 whether the stmt has constants.
4678 2013-03-18 Richard Biener <rguenther@suse.de>
4680 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
4681 whole function when there is nothing to do.
4682 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
4683 * tree-vectorizer.c (vectorize_loops): Update virtual and
4684 loop-closed SSA once.
4685 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
4687 2013-03-18 Richard Biener <rguenther@suse.de>
4690 * domwalk.c (bb_postorder): New global static.
4691 (cmp_bb_postorder): New function.
4692 (walk_dominator_tree): Replace scheme imposing an order for
4693 visiting dominator sons by one sorting them at the time they
4694 are pushed on the stack.
4696 2013-03-18 Richard Biener <rguenther@suse.de>
4698 PR tree-optimization/39326
4699 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
4700 (struct mem_ref): Replace mem member with ao_ref typed member.
4701 (MEM_ANALYZABLE): Adjust.
4702 (memref_eq): Likewise.
4703 (mem_ref_alloc): Likewise.
4704 (gather_mem_refs_stmt): Likewise.
4705 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
4706 (execute_sm_if_changed_flag_set): Adjust.
4707 (execute_sm): Likewise.
4708 (ref_always_accessed_p): Likewise.
4709 (refs_independent_p): Likewise.
4710 (can_sm_ref_p): Likewise.
4712 2013-03-18 Jakub Jelinek <jakub@redhat.com>
4715 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
4716 return 1 even for !unsignedp.
4718 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
4720 * config/i386/i386.md (isa): Add x64 and nox64.
4721 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
4722 (*pushtf): Enable *roF alternative for x64 isa only.
4723 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
4724 mode attribute of integer alternatives to DImode for TARGET_64BIT.
4725 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
4726 (*movtf_internal): Merge from *movtf_internal_rex64 and
4727 *movtf_internal_sse. Use x64 and nox64 isa attributes.
4728 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
4729 nox64 isa attributes.
4730 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
4731 nox64 isa attributes.
4732 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
4734 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
4736 * config/alpha/alpha.c (TARGET_LRA_P): New define.
4738 2013-03-17 Jakub Jelinek <jakub@redhat.com>
4741 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
4742 class names. Remove trailing comma after "ALL_REGS".
4744 2013-03-16 Jan Hubicka <jh@suse.cz>
4746 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
4747 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
4748 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
4749 of cgraph_get_create_node.
4750 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4752 2013-03-16 Jason Merrill <jason@redhat.com>
4755 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
4756 with DW_AT_default_value.
4758 2013-03-16 Jakub Jelinek <jakub@redhat.com>
4760 * BASE-VER: Set to 4.9.0.
4762 2013-03-14 Andi Kleen <ak@linux.intel.com>
4765 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
4766 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
4767 Document _x* TSX intrinsics.
4769 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
4770 David Holsgrove <david.holsgrove@xilinx.com>
4772 * configure.ac: Add MicroBlaze TLS support detection.
4773 * configure: Regenerate.
4774 * config/microblaze/microblaze-protos.h
4775 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
4776 symbol_mentioned_p, label_mentioned_p): Add prototypes.
4777 * config/microblaze/microblaze.c (microblaze_address_type): Add
4778 ADDRESS_TLS and tls_reloc address types.
4779 (microblaze_address_info): Add tls_reloc.
4780 (TARGET_HAVE_TLS): Define.
4781 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
4782 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
4783 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
4784 load_tls_operand, microblaze_call_tls_get_addr,
4785 microblaze_legitimize_tls_address): New functions.
4786 (microblaze_classify_unspec): Handle UNSPEC_TLS.
4787 (get_base_reg): Use microblaze_tls_symbol_p.
4788 (microblaze_classify_address): Handle TLS.
4789 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
4790 label_mentioned_p and microblaze_tls_referenced_p.
4791 (microblaze_legitimize_address): Handle TLS.
4792 (microblaze_address_insns): Handle ADDRESS_TLS.
4793 (pic_address_needs_scratch): Handle TLS.
4794 (print_operand_address): Handle TLS.
4795 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
4796 (microblaze_expand_move): Handle TLS.
4797 (microblaze_legitimate_constant_p): Check
4798 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
4799 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
4800 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
4801 (PIC_OFFSET_TABLE_REGNUM): Set.
4802 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
4803 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
4804 (addsi3, movsi_internal2, movdf_internal): Update constraints
4805 * config/microblaze/predicates.md (arith_plus_operand): Define
4806 (move_operand): Redefine as move_src_operand,
4807 check microblaze_tls_referenced_p.
4809 2013-03-14 Ian Bolton <ian.bolton@arm.com>
4811 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
4812 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
4814 2013-03-14 Ian Bolton <ian.bolton@arm.com>
4816 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
4819 2013-03-14 Jakub Jelinek <jakub@redhat.com>
4821 PR tree-optimization/53265
4822 * common.opt (Waggressive-loop-optimizations): New option.
4823 * tree-ssa-loop-niter.c: Include tree-pass.h.
4824 (do_warn_aggressive_loop_optimizations): New function.
4825 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
4826 if number_of_latch_executions returned constant.
4827 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
4828 early. If number_of_latch_executions returned constant, set
4829 nb_iterations_upper_bound back to it.
4830 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
4832 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
4833 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
4835 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
4836 (MULTILIB_OSDIRNAMES): Set.
4837 * genmultilib: If defaultosdirname doesn't start with :: , set
4838 defaultosdirname2 instead, clear it and emit two . multilib_raw
4839 entries instead of just one.
4841 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
4843 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
4844 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
4845 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
4846 (SUBTARGET_OVERRIDE_OPTIONS): New.
4848 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
4851 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
4852 (musermode): Convert to Var(TARGET_USERMODE).
4853 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
4854 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
4855 * config/sh/sh.c (sh_option_override): Use
4856 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
4857 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
4859 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
4861 (udivsi3_i4_single, divsi3_i4_single): Use
4862 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
4864 2013-03-13 Dave Korn <dave.korn.cygwin@....>
4866 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
4869 2013-03-13 Richard Biener <rguenther@suse.de>
4871 PR tree-optimization/56608
4872 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
4873 calls when vectorizing basic-blocks.
4875 2013-03-13 Jakub Jelinek <jakub@redhat.com>
4878 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
4881 2013-03-12 Jakub Jelinek <jakub@redhat.com>
4883 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
4885 2013-03-11 Jan Hubicka <jh@suse.cz>
4888 * lto-streamer-out.c (output_symbol_p): Skip references from
4889 constructors of external variables.
4891 2013-03-11 Jan Hubicka <jh@suse.cz>
4894 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
4896 * emit-rtl.c (verify_rtx_sharing): Likewise.
4897 (copy_insn_1): Likewise.
4898 * rtl.c (copy_rtx): Likewise.
4900 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
4903 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
4904 output_operand_lossage message.
4906 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
4909 * arm.c (shift_op): Validate RTL pattern on the fly.
4910 (arm_print_operand, case 'S'): Don't use shift_operator to validate
4913 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4916 * config/pa/pa.md (call_value): Check for calls to powf and direct to
4917 new call patterns that clobber %fr12.
4918 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
4919 split and postreload patterns.
4920 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
4921 registers %fr12 and %fr12R as call used.
4923 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
4925 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
4926 (canon_address, record_store, replace_read, check_mem_read_rtx,
4927 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
4928 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
4929 rest_of_handle_dse): Likewise.
4931 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
4934 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
4936 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
4937 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
4938 (save_optabs_if_changed): Replace with...
4939 (init_tree_optimization_optabs): ...this.
4940 * optabs.c (save_optabs_if_changed): Rename to...
4941 (init_tree_optimization_optabs): ...this. Take the optimization node
4942 as argument. Do nothing if the base optabs are already correct.
4943 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
4944 to recompute optabs.
4945 * function.h (function): Remove optabs field.
4946 * function.c (invoke_set_current_function_hook): Call
4947 init_tree_optimization_optabs. Use the result to initialize
4950 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
4952 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
4953 if GTMA_HAS_NO_INSTRUMENTATION.
4954 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
4955 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
4956 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
4957 * gimple-pretty-print.c (dump_gimple_transaction): Handle
4958 GTMA_HAS_NO_INSTRUMENTATION.
4960 2013-03-08 Jakub Jelinek <jakub@redhat.com>
4962 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
4965 2013-03-08 Marek Polacek <polacek@redhat.com>
4966 Jakub Jelinek <jakub@redhat.com>
4968 PR tree-optimization/56478
4969 * predict.c (is_comparison_with_loop_invariant_p): Change the
4970 type of loop_step to tree.
4971 (predict_loops): Adjust.
4972 (predict_iv_comparison): Perform the computations on double_ints.
4974 2013-03-08 Richard Biener <rguenther@suse.de>
4976 PR tree-optimization/56570
4977 * tree-cfg.c (verify_expr_location_1): Verify locations for
4979 * tree-sra.c (create_access_replacement): Strip locations
4980 from DECL_DEBUG_EXPRs.
4982 2013-03-08 Richard Biener <rguenther@suse.de>
4984 * tree-inline.c (expand_call_inline): Do not associate
4985 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
4986 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
4988 2013-03-08 Richard Biener <rguenther@suse.de>
4990 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
4991 or block changes with -Og. Fix for location / block encoding
4992 changes and PHI arguments with locations.
4994 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
4996 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
4998 (struct output_info): Likewise.
4999 (register_overhead): Remove bad gcc_assert.
5000 (bitmap_find_bit): If there is only a single bitmap element, do not
5001 count a miss as a search.
5002 (print_statistics): Update for counter type changes.
5003 (dump_bitmap_statistics): Likewise. Print headers such that they
5004 are properly lined up with the printed counters.
5006 2013-03-07 Jakub Jelinek <jakub@redhat.com>
5008 PR tree-optimization/56559
5009 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
5010 check that it has only a single use.
5012 2013-03-07 Richard Biener <rguenther@suse.de>
5014 * doc/invoke.texi (fwhole-program): Discourage use in combination
5017 2013-03-06 Jakub Jelinek <jakub@redhat.com>
5019 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
5021 PR tree-optimization/56539
5022 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
5023 instead of GSI_CONTINUE_LINKING as last argument to
5024 force_gimple_operand_gsi. Adjust function comment.
5026 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
5030 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
5031 promoted mode, convert the result back to the original mode.
5033 2013-03-06 Richard Biener <rguenther@suse.de>
5036 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
5037 (insert_updated_phi_nodes_compare_uids): New function.
5038 (update_ssa): Sort symbols_to_rename after UID before
5039 traversing it to insert PHI nodes.
5041 2013-03-06 Richard Biener <rguenther@suse.de>
5044 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
5045 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
5048 2013-02-13 Richard Biener <rguenther@suse.de>
5051 * varasm.c (output_constant_def_1): Get the decl representing
5052 the constant as argument.
5053 (output_constant_def): Wrap output_constant_def_1.
5054 (make_decl_rtl): Use output_constant_def_1 with the decl
5055 representing the constant.
5056 (build_constant_desc): Optionally re-use a decl already
5057 representing the constant.
5058 (tree_output_constant_def): Adjust.
5060 2013-03-06 Joey Ye <joey.ye@arm.com>
5063 * gcc.c (convert_white_space): New function.
5064 (main): Handles white space in function name.
5066 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
5069 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
5070 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
5071 to SH_DIV_CALL_TABLE for TARGET_SH2.
5072 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
5074 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
5077 2013-03-05 Sterling Augustine <saugustine@google.com>
5078 Cary Coutant <ccoutant@google.com>
5081 * dwarf2out.c (resolve_addr): Don't call
5082 remove_loc_list_addr_table_entries a second time for the same
5085 2013-03-05 Jakub Jelinek <jakub@redhat.com>
5088 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
5089 (avoid_complex_debug_insns): New function.
5090 (expand_debug_locations): Call it.
5092 PR rtl-optimization/56484
5093 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
5094 lifetimes of hard registers on small register class machines.
5096 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
5098 * config/microblaze/microblaze-protos.h: Rename
5099 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
5100 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
5102 (microblaze_fast_interrupt_function_p): New function.
5103 (microblaze_is_interrupt_handler): Rename to
5104 microblaze_is_interrupt_variant and add fast_interrupt check.
5105 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
5106 (save_restore_insns): Likewise.
5107 (compute_frame_size): Likewise.
5108 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
5109 (microblaze_globalize_label): Likewise.
5110 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
5111 * config/microblaze/microblaze.md: Use wrapper
5112 microblaze_is_interrupt_variant.
5114 2013-03-05 Kai Tietz <ktietz@redhat.com>
5116 * sdbout.c (sdbout_one_type): Switch to current function's section
5117 supporting cold/hot.
5119 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
5121 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
5124 2013-03-05 Jakub Jelinek <jakub@redhat.com>
5127 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
5128 if VALGRIND_GET_VBITS is defined, temporarily make object
5129 memory all defined, and restore previous valgrind addressability
5130 and definability afterwards. Free this_object at the end.
5133 * lra.c (lra): Call lra_clear_live_ranges if live_p,
5134 right before calling lra_create_live_ranges, also call it
5135 when clearing live_p. Only call lra_clear_live_ranges
5136 at the end if live_p.
5139 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
5141 2013-03-05 Richard Biener <rguenther@suse.de>
5143 PR tree-optimization/56521
5144 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
5147 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
5150 * except.h (remove_unreachable_eh_regions): New prototype.
5151 * except.c (remove_eh_handler_splicer): New function, split out
5152 of remove_eh_handler.
5153 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
5154 warning about running it on many EH regions one at a time.
5155 (remove_unreachable_eh_regions_worker): New function, walk the
5156 EH tree in depth-first order and remove non-marked regions.
5157 (remove_unreachable_eh_regions): New function.
5158 * tree-eh.c (mark_reachable_handlers): New function, split out
5159 from remove_unreachable_handlers.
5160 (remove_unreachable_handlers): Use mark_reachable_handlers and
5161 remove_unreachable_eh_regions.
5162 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
5163 and remove_unreachable_eh_regions.
5165 2013-03-05 Richard Biener <rguenther@suse.de>
5168 * loop-init.c (fix_loop_structure): Remove loops in two stages,
5169 not freeing them until the end.
5171 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5173 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
5175 2013-03-05 Richard Biener <rguenther@suse.de>
5177 PR tree-optimization/56270
5178 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
5179 of loads after scheduling an SLP instance.
5181 2013-03-05 Jakub Jelinek <jakub@redhat.com>
5183 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
5185 (check_gcc_parallelize): Run guality.exp as a separate job from
5186 vect.exp with unsorted.exp and $(dg_target_exps) separately from
5187 struct-layout-1.exp with stackalign.exp.
5189 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
5192 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
5193 load_index sbitmap even if some bit in it isn't set.
5196 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
5197 (discover_iteration_bound_by_body_walk): Change queues to
5198 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
5199 spelling in comment. Call safe_push on queues[bound_index] directly.
5200 Release queues[queue_index] in every iteration unconditionally.
5201 Release bounds vector.
5204 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
5205 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
5206 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
5209 2013-03-05 Richard Biener <rguenther@suse.de>
5212 * tree-inline.c (remap_blocks_to_null): New function.
5213 (expand_call_inline): When expanding a call stmt without
5214 an associated block inline remap all callee blocks to NULL.
5216 2013-03-05 Jakub Jelinek <jakub@redhat.com>
5218 PR rtl-optimization/56494
5219 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
5220 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
5221 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
5224 * sel-sched-ir.c (free_sched_pools): Release
5225 succs_info_pool.stack[succs_info_pool.max_top] vectors too
5226 if succs_info_pool.max_top isn't -1.
5229 * opts.c (opts_obstack, opts_concat): Moved to...
5230 * opts-common.c (opts_obstack, opts_concat): ... here.
5232 2013-03-04 Jakub Jelinek <jakub@redhat.com>
5235 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
5237 2013-03-04 Martin Jambor <mjambor@suse.cz>
5239 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
5240 all appropriate places.
5242 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
5244 PR tree-optimization/56424
5245 * ipa-split.c (split_function): Do not set the RSO flag if result is
5246 not by reference and its type is a register type.
5248 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
5250 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
5251 (microblaze_legitimate_pic_operand): Likewise
5252 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
5253 new function microblaze_legitimate_pic_operand
5254 * config/microblaze/microblaze-protos.h
5255 (microblaze_legitimate_pic_operand): Declare.
5257 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
5259 * config/microblaze/predicates.md (call_insn_simple_operand):
5260 New predicate for supported rtx code types.
5261 * config/microblaze/microblaze.md (call_internal1): Use
5262 call_insn_simple_operand predicate.
5264 2013-03-04 Jakub Jelinek <jakub@redhat.com>
5267 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
5268 partitions.ordered_remove.
5271 * tree-vect-stmts.c (vectorizable_conversion): Don't call
5272 vec_oprnds0.create (1) for modifier == NONE.
5275 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
5276 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
5277 vec_oprnds1 right before pushing anything to it for
5281 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
5282 set nbbs to 0 instead of having separate code path.
5283 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
5284 instead of false as last argument if returning NULL.
5286 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
5288 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
5289 the attribute is now called "target" instead of "option".
5290 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
5291 * doc/tm.texi.in (Target Attributes): Likewise document the correct
5292 attribute/pragma name for TARGET_OPTION_VALID_P and
5293 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
5294 * doc/tm.texi: Regenerated.
5296 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
5298 * config/microblaze/microblaze.c:
5299 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
5300 * config/microblaze/microblaze.h: Add -mxl-reorder to
5302 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
5303 instructions emitted if TARGET_REORDER.
5304 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
5305 or 0 for -m/-mno case, but initialises as 2 to detect default use case
5308 2013-03-01 Xinliang David Li <davidxl@google.com>
5310 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
5313 2013-03-01 Jakub Jelinek <jakub@redhat.com>
5316 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
5317 vector even when returning true. Fix up function comment formatting.
5320 * ira-build.c (ira_loop_nodes_count): New variable.
5321 (create_loop_tree_nodes): Initialize it.
5322 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
5325 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
5326 method on dr_chain and result_chain.
5327 * tree-vect-stmts.c (vectorizable_store): Only call
5328 result_chain.create if j == 0.
5331 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
5332 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
5333 before overwriting it.
5335 2013-03-01 Tobias Burnus <burnus@net-b.de>
5337 * doc/extended.texi (C Extensions): Change order in @menu
5339 (Other MIPS Built-in Functions): Move last MIPS entry before
5340 "picoChip Built-in Functions".
5341 (SH Built-in Functions): Move after RX Built-in Functions.
5342 * doc/gcc.texi (Introduction): Change order in @menu
5344 * doc/md.texi (Constraints): Ditto.
5345 * gty.texi (Type Information): Ditto.
5346 (User-provided marking routines for template types): Make
5348 * doc/invoke.texi (AArch64 Options): Move before
5349 "Adapteva Epiphany Options".
5351 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
5352 Jakub Jelinek <jakub@redhat.com>
5355 * asan.c (gate_asan): Lookup no_sanitize_address instead of
5356 no_address_safety_analysis attribute.
5357 * doc/extend.texi (no_address_safety_attribute): Rename to
5358 no_sanitize_address attribute, mention no_address_safety_analysis
5359 attribute as deprecated alias.
5361 2013-02-28 Jakub Jelinek <jakub@redhat.com>
5364 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
5365 type to vec<vec<tree> > *.
5366 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
5367 to be vec<tree> instead of vec<tree> *, set vec_defs
5368 to vNULL and call vec_defs.create (number_of_vects), adjust other
5370 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
5371 vectorizable_condition): Adjust vect_get_slp_defs callers.
5373 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
5375 * config/aarch64/aarch64.c
5376 (aarch64_float_const_representable): Remove unused variable.
5378 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
5380 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
5382 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
5384 * config/aarch64/aarch64-builtins.c
5385 (aarch64_init_simd_builtins): Make static.
5387 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
5389 * config/aarch64/aarch64.c
5390 (aarch64_simd_make_constant): Make static.
5392 2013-02-28 Martin Jambor <mjambor@suse.cz>
5394 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
5395 with no initialization to the RHS of debug statements.
5397 2013-02-28 Martin Jambor <mjambor@suse.cz>
5399 PR tree-optimization/56294
5400 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
5402 (get_access_replacement): Do not call create_access_replacement.
5403 Assert a replacement exists.
5404 (get_repl_default_def_ssa_name): Create the replacement declaration
5407 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5409 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
5412 2013-02-28 Marek Polacek <polacek@redhat.com>
5414 PR rtl-optimization/56466
5415 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
5416 if we're changing a loop.
5417 (peel_loops_completely): Likewise.
5419 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
5422 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
5424 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
5427 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
5428 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
5429 INTX_FTYPE_FX, FX_FTYPE_INTX.
5430 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
5432 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
5434 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
5435 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
5436 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
5437 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
5438 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
5439 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
5440 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
5441 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
5442 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
5443 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
5444 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
5445 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
5446 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
5447 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
5448 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
5449 (avrxmega6): Increase max flash segments from 5 to 6.
5450 * config/avr/t-multilib: Regenerate.
5451 * config/avr/avr-tables.opt: Regenerate.
5452 * doc/avr-mmcu.texi: Regenerate.
5454 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
5456 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
5457 (avr_device_to_arch): Rename to avr_device_to_ld.
5458 (avr_device_to_as): New prototype.
5459 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
5460 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
5461 * config/avr/driver-avr.c (avr_device_to_as): New.
5462 (avr_device_to_arch): Rename to avr_device_to_ld.
5464 2013-02-27 Jakub Jelinek <jakub@redhat.com>
5467 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
5468 method on dr_chain and result_chain.
5471 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
5472 pointer_set_destroy on not_executed_last_iteration.
5475 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
5478 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
5479 FOR_EACH_DEFINED_FUNCTION when freeing state.
5482 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
5484 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
5488 * ipa-cp.c (decide_whether_version_node): Call vec_free on
5489 known_aggs[i].items and release known_aggs vector.
5492 * ipa-reference.c (propagate): Free node_info even for alias nodes.
5494 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
5496 * config/microblaze/microblaze.c (microblaze_emit_compare):
5497 Use xor for EQ/NE comparisions.
5498 * config/microblaze/microblaze.md (cstoresf4): Add constraints
5499 (cbranchsf4): Adjust operator to comparison_operator.
5501 2013-02-27 Jakub Jelinek <jakub@redhat.com>
5504 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
5506 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
5507 vec_safe_push, always update *slot.
5508 (redirect_edge_var_map_clear): Use vec_free.
5509 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
5510 (free_var_map_entry): Use vec_free.
5511 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
5512 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
5514 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
5517 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
5518 when the may_trap_p bit of the exprs being merged differs.
5519 Reorder tests for speculativeness in the logical and operator.
5521 2013-02-27 Jakub Jelinek <jakub@redhat.com>
5523 * incpath.c (add_standard_paths): Use reconcat instead of concat
5524 where appropriate and avoid leaking memory.
5526 * opts.h: Include obstack.h.
5527 (opts_concat): New prototype.
5528 (opts_obstack): New declaration.
5529 * opts.c (opts_concat): New function.
5530 (opts_obstack): New variable.
5531 (init_options_struct): Call gcc_init_obstack on opts_obstack.
5532 (finish_options): Use opts_concat instead of concat
5533 and XOBNEWVEC instead of XNEWVEC.
5534 * opts-common.c (generate_canonical_option, decode_cmdline_option,
5535 generate_option): Likewise.
5536 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
5537 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
5540 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
5541 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
5543 2013-02-26 Jakub Jelinek <jakub@redhat.com>
5546 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
5548 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
5550 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
5551 (arm_block_move_unaligned_straight): Likewise.
5552 (arm_adjust_block_mem): Likewise.
5554 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
5557 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
5558 temp, cond and label.
5559 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
5562 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
5563 * config/c6x/c6x.h (dbx_register_map): Update declaration.
5566 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
5567 of prologue/epilogue functions.
5570 * config/tilegx/tilegx.c (tilegx_expand_prologue):
5571 Remove unused variable cfa_offset.
5572 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
5575 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
5576 type promotion to unsigned.
5579 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
5580 for HOST_WIDE_INT of 32 bit / same size as int.
5581 (arm_block_move_unaligned_straight): Likewise.
5582 (arm_adjust_block_mem): Likewise.
5585 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
5588 2013-02-26 Marek Polacek <polacek@redhat.com>
5590 PR tree-optimization/56426
5591 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
5593 2013-02-26 Richard Biener <rguenther@suse.de>
5596 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
5597 unused variable loops.
5599 2013-02-26 Jakub Jelinek <jakub@redhat.com>
5601 PR tree-optimization/56448
5602 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
5603 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
5604 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
5605 later operands of the references, or even first operand for
5606 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
5608 PR tree-optimization/56443
5609 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
5610 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
5611 to type_for_mode langhook.
5613 2013-02-25 Matt Turner <mattst88@gmail.com>
5615 * doc/invoke.texi: Document r4700.
5617 2013-02-25 Richard Biener <rguenther@suse.de>
5619 PR tree-optimization/56175
5620 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
5622 (simplify_bitwise_binary): ... here. Also guard the conversion
5623 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
5625 2013-02-25 Catherine Moore <clm@codesourcery.com>
5628 2013-02-24 Catherine Moore <clm@codesourcery.com>
5629 Maciej W. Rozycki <macro@codesourcery.com>
5630 Tom de Vries <tom@codesourcery.com>
5631 Nathan Sidwell <nathan@codesourcery.com>
5632 Iain Sandoe <iain@codesourcery.com>
5633 Nathan Froyd <froydnj@codesourcery.com>
5634 Chao-ying Fu <fu@mips.com>
5636 * doc/extend.texi: (micromips, nomicromips, nocompression):
5637 Document new function attributes.
5638 * doc/invoke.texi (minterlink-compressed, mmicromips,
5639 m14k, m14ke, m14kec): Document new options.
5640 (minterlink-mips16): Update documentation.
5641 * doc/md.texi (ZC, ZD): Document new constraints.
5642 * configure.ac (gcc_cv_as_micromips): Check if linker
5643 supports the .set micromips directive.
5644 * configure: Regenerate.
5645 * config.in: Regenerate.
5646 * config/mips/mips-tables.opt: Regenerate.
5647 * config/mips/micromips.md: New file.
5648 * constraints.md (ZC, AD): New constraints.
5649 * config/mips/predicates.md (movep_src_register): New predicate.
5650 (movep_src_operand): New predicate.
5651 (non_volatile_mem_operand): New predicate.
5652 * config/mips/mips.md (multimem): New type.
5653 (length): Differentiate between 17-bit and 18-bit branch offsets.
5654 (MOVEP1, MOVEP2): New mode iterator.
5655 (mov_<load>l): Use ZC constraint.
5656 (mov_<load>r): Likewise.
5657 (mov_<store>l): Likewise.
5658 (mov_<store>r): Likewise.
5659 (*branch_equality<mode>_inverted): Add microMIPS support.
5660 (*branch_equality<mode>): Likewise.
5661 (*jump_absolute): Likewise.
5662 (indirect_jump_<mode>): Likewise.
5663 (tablejump_<mode>): Likewise.
5664 (<optab>_internal): Likewise.
5665 (sibcall_internal): Likewise.
5666 (sibcall_value_internal): Likewise.
5667 (prefetch): Use constraint ZD.
5668 * config/mips/mips.opt (minterlink-compressed): New option.
5669 (minterlink-mips16): Now an alias for minterlink-compressed.
5670 (mmicromips): New option.
5671 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
5672 (compare_and_swap_12): Likewise.
5673 (sync_add<mode>): Likewise.
5674 (sync_<optab>_12): Likewise.
5675 (sync_old_<optab>_12): Likewise.
5676 (sync_new_<optab>_12): Likewise.
5677 (sync_nand_12): Likewise.
5678 (sync_old_nand_12): Likewise.
5679 (sync_new_nand_12): Likewise.
5680 (sync_sub<mode>): Likewise.
5681 (sync_old_add<mode>): Likewise.
5682 (sync_old_sub<mode>): Likewise.
5683 (sync_new_add<mode>): Likewise.
5684 (sync_new_sub<mode>): Likewise.
5685 (sync_<optab><mode>): Likewise.
5686 (sync_old_<optab><mode>): Likewise.
5687 (sync_new_<optab><mode>): Likewise.
5688 (sync_nand<mode>): Likewise.
5689 (sync_old_nand<mode>): Likewise.
5690 (sync_new_nand<mode>): Likewise.
5691 (sync_lock_test_and_set<mode>): Likewise.
5692 (test_and_set_12): Likewise.
5693 (atomic_compare_and_swap<mode>): Likewise.
5694 (atomic_exchange<mode>_llsc): Likewise.
5695 (atomic_fetch_add<mode>_llsc): Likewise.
5696 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
5697 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
5698 (umips_save_restore_pattern_p): Likewise.
5699 (umips_load_store_pair_p): Likewise.
5700 (umips_output_load_store_pair): Likewise.
5701 (umips_movep_target_p): Likewise.
5702 (umips_12bit_offset_address_p): Likewise.
5703 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
5704 (mips_base_mips16): Rename this...
5705 (mips_base_compression_flags): ...to this. Update all uses.
5706 (mips_attribute_table): Add micromips, nomicromips and nocompression.
5707 (mips_mips16_decl_p): Delete.
5708 (mips_nomips16_decl_p): Delete.
5709 (mips_get_compress_on_flags): New function.
5710 (mips_get_compress_off_flags): New function.
5711 (mips_get_compress_mode): New function.
5712 (mips_get_compress_on_name): New function.
5713 (mips_get_compress_off_name): New function.
5714 (mips_insert_attributes): Support multiple compression types.
5715 (mips_merge_decl_attributes): Likewise.
5716 (umips_12bit_offset_address_p): New function.
5717 (mips_start_function_definition): Emit .set micromips directive.
5718 (mips_call_may_need_jalx_p): New function.
5719 (mips_function_ok_for_sibcall): Add microMIPS support.
5720 (mips_print_operand_punctuation): Support short delay slots and
5722 (umips_swm_mask, umips_swm_encoding): New.
5723 (umips_build_save_restore): New function.
5724 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
5725 (was_mips16_p): Remove.
5726 (old_compression_mode): New.
5727 (mips_set_compression_mode): New function.
5728 (mips_set_current_function): Add microMIPS support.
5729 (mips_option_override): Likewise.
5730 (umips_save_restore_pattern_p): New function.
5731 (umips_output_save_restore): New function.
5732 (umips_load_store_pair_p_1): New function.
5733 (umips_load_store_pair_p): New function.
5734 (umips_output_load_store_pair_1): New function.
5735 (umips_output_load_store_pair): New function.
5736 (umips_movep_target_p) New function.
5737 (mips_prepare_pch_save): Add microMIPS support.
5738 * config/mips/mips.h (TARGET_COMPRESSION): New.
5739 (TARGET_CPU_CPP_BUILTINS): Update macro
5740 to use new compression flags and to support microMIPS.
5741 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
5742 (MIPS_ARCH_FLOAT_SPEC): Likewise.
5743 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
5744 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
5745 (ASM_SPEC): Support mmicromips and mno-micromips.
5746 (M16STORE_REG_P): New macro.
5747 (MIPS_CALL): Support TARGET_MICROMIPS.
5748 (MICROMIPS_J): New macro.
5749 (mips_base_mips16): Rename this...
5750 (mips_base_compression_flags): ...to this.
5751 (UMIPS_12BIT_OFFSET_P): New macro.
5752 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
5753 (MULTILIB_DIRNAMES): Likewise.
5755 2013-02-25 Tom de Vries <tom@codesourcery.com>
5757 PR rtl-optimization/56131
5758 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
5759 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
5760 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
5762 2013-02-25 Tobias Burnus <burnus@net-b.de>
5764 * doc/invoke.texi (-fsanitize=): Move from optimization
5765 to debugging options.
5767 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
5769 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
5771 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
5772 Alexander Monakov <amonakov@ispras.ru>
5775 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
5776 flush pending lists also on non-jumps. Adjust comment.
5778 2013-02-24 Catherine Moore <clm@codesourcery.com>
5779 Maciej W. Rozycki <macro@codesourcery.com>
5780 Tom de Vries <tom@codesourcery.com>
5781 Nathan Sidwell <nathan@codesourcery.com>
5782 Iain Sandoe <iain@codesourcery.com>
5783 Nathan Froyd <froydnj@codesourcery.com>
5784 Chao-ying Fu <fu@mips.com>
5786 * doc/extend.texi: (micromips, nomicromips, nocompression):
5787 Document new function attributes.
5788 * doc/invoke.texi (minterlink-compressed, mmicromips,
5789 m14k, m14ke, m14kec): Document new options.
5790 (minterlink-mips16): Update documentation.
5791 * doc/md.texi (ZC, ZD): Document new constraints.
5792 * configure.ac (gcc_cv_as_micromips): Check if linker
5793 supports the .set micromips directive.
5794 * configure: Regenerate.
5795 * config.in: Regenerate.
5796 * config/mips/mips-tables.opt: Regenerate.
5797 * config/mips/micromips.md: New file.
5798 * constraints.md (ZC, AD): New constraints.
5799 * config/mips/predicates.md (movep_src_register): New predicate.
5800 (movep_src_operand): New predicate.
5801 (non_volatile_mem_operand): New predicate.
5802 * config/mips/mips.md (multimem): New type.
5803 (length): Differentiate between 17-bit and 18-bit branch offsets.
5804 (MOVEP1, MOVEP2): New mode iterator.
5805 (mov_<load>l): Use ZC constraint.
5806 (mov_<load>r): Likewise.
5807 (mov_<store>l): Likewise.
5808 (mov_<store>r): Likewise.
5809 (*branch_equality<mode>_inverted): Add microMIPS support.
5810 (*branch_equality<mode>): Likewise.
5811 (*jump_absolute): Likewise.
5812 (indirect_jump_<mode>): Likewise.
5813 (tablejump_<mode>): Likewise.
5814 (<optab>_internal): Likewise.
5815 (sibcall_internal): Likewise.
5816 (sibcall_value_internal): Likewise.
5817 (prefetch): Use constraint ZD.
5818 * config/mips/mips.opt (minterlink-compressed): New option.
5819 (minterlink-mips16): Now an alias for minterlink-compressed.
5820 (mmicromips): New option.
5821 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
5822 (compare_and_swap_12): Likewise.
5823 (sync_add<mode>): Likewise.
5824 (sync_<optab>_12): Likewise.
5825 (sync_old_<optab>_12): Likewise.
5826 (sync_new_<optab>_12): Likewise.
5827 (sync_nand_12): Likewise.
5828 (sync_old_nand_12): Likewise.
5829 (sync_new_nand_12): Likewise.
5830 (sync_sub<mode>): Likewise.
5831 (sync_old_add<mode>): Likewise.
5832 (sync_old_sub<mode>): Likewise.
5833 (sync_new_add<mode>): Likewise.
5834 (sync_new_sub<mode>): Likewise.
5835 (sync_<optab><mode>): Likewise.
5836 (sync_old_<optab><mode>): Likewise.
5837 (sync_new_<optab><mode>): Likewise.
5838 (sync_nand<mode>): Likewise.
5839 (sync_old_nand<mode>): Likewise.
5840 (sync_new_nand<mode>): Likewise.
5841 (sync_lock_test_and_set<mode>): Likewise.
5842 (test_and_set_12): Likewise.
5843 (atomic_compare_and_swap<mode>): Likewise.
5844 (atomic_exchange<mode>_llsc): Likewise.
5845 (atomic_fetch_add<mode>_llsc): Likewise.
5846 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
5847 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
5848 (umips_save_restore_pattern_p): Likewise.
5849 (umips_load_store_pair_p): Likewise.
5850 (umips_output_load_store_pair): Likewise.
5851 (umips_movep_target_p): Likewise.
5852 (umips_12bit_offset_address_p): Likewise.
5853 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
5854 (mips_base_mips16): Rename this...
5855 (mips_base_compression_flags): ...to this. Update all uses.
5856 (mips_attribute_table): Add micromips, nomicromips and nocompression.
5857 (mips_mips16_decl_p): Delete.
5858 (mips_nomips16_decl_p): Delete.
5859 (mips_get_compress_on_flags): New function.
5860 (mips_get_compress_off_flags): New function.
5861 (mips_get_compress_mode): New function.
5862 (mips_get_compress_on_name): New function.
5863 (mips_get_compress_off_name): New function.
5864 (mips_insert_attributes): Support multiple compression types.
5865 (mips_merge_decl_attributes): Likewise.
5866 (umips_12bit_offset_address_p): New function.
5867 (mips_start_function_definition): Emit .set micromips directive.
5868 (mips_call_may_need_jalx_p): New function.
5869 (mips_function_ok_for_sibcall): Add microMIPS support.
5870 (mips_print_operand_punctuation): Support short delay slots and
5872 (umips_swm_mask, umips_swm_encoding): New.
5873 (umips_build_save_restore): New function.
5874 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
5875 (was_mips16_p): Remove.
5876 (old_compression_mode): New.
5877 (mips_set_compression_mode): New function.
5878 (mips_set_current_function): Add microMIPS support.
5879 (mips_option_override): Likewise.
5880 (umips_save_restore_pattern_p): New function.
5881 (umips_output_save_restore): New function.
5882 (umips_load_store_pair_p_1): New function.
5883 (umips_load_store_pair_p): New function.
5884 (umips_output_load_store_pair_1): New function.
5885 (umips_output_load_store_pair): New function.
5886 (umips_movep_target_p) New function.
5887 (mips_prepare_pch_save): Add microMIPS support.
5888 * config/mips/mips.h (TARGET_COMPRESSION): New.
5889 (TARGET_CPU_CPP_BUILTINS): Update macro
5890 to use new compression flags and to support microMIPS.
5891 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
5892 (MIPS_ARCH_FLOAT_SPEC): Likewise.
5893 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
5894 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
5895 (ASM_SPEC): Support mmicromips and mno-micromips.
5896 (M16STORE_REG_P): New macro.
5897 (MIPS_CALL): Support TARGET_MICROMIPS.
5898 (MICROMIPS_J): New macro.
5899 (mips_base_mips16): Rename this...
5900 (mips_base_compression_flags): ...to this.
5901 (UMIPS_12BIT_OFFSET_P): New macro.
5902 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
5903 (MULTILIB_DIRNAMES): Likewise.
5905 2013-02-24 Jakub Jelinek <jakub@redhat.com>
5908 * target-globals.c (save_target_globals): For init_reg_sets and
5909 target_reinit remporarily set this_fn_optabs to this_target_optabs.
5911 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
5913 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
5914 * config/aarch64/t-aarch64
5915 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
5917 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
5920 * lra-constraints.c (process_alt_operands): Reload operand
5921 conflicting with earlier clobber only if no more other conflicting
5924 2013-02-22 Jakub Jelinek <jakub@redhat.com>
5927 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
5928 if not linking a shared library.
5930 2013-02-22 Seth LaForge <sethml@google.com>
5932 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
5934 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
5936 * config/arm/arm.md (split for extendsidi): Update condition.
5937 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
5938 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
5939 (qhs_zextenddi_cstr): Likewise.
5941 2013-02-21 Jakub Jelinek <jakub@redhat.com>
5944 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
5945 avoid signed wrapping.
5946 (expand_mult): Handle properly multiplication by
5947 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
5948 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
5949 in the compiler if coeff is HOST_WIDE_INT_MIN.
5950 (expand_divmod): Don't make ext_op1 static, change it's type to
5951 uhwi. Avoid undefined behavior in -INTVAL (op1).
5953 PR rtl-optimization/50339
5954 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
5956 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
5957 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
5958 into splitting_ashiftrt field.
5959 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
5961 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
5964 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
5967 * trans-mem.c (execute_tm_mark): Do not expand transactions that
5968 are sure to go irrevocable.
5970 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
5972 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
5973 scalars are valid operands.
5975 2013-02-21 Martin Jambor <mjambor@suse.cz>
5977 PR tree-optimization/56310
5978 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
5979 only matching indices and non-negative final offsets.
5980 (intersect_aggregates_with_edge): Pass src_idx to
5981 agg_replacements_to_vector. Pass src_idx insstead of index to
5982 intersect_with_agg_replacements.
5984 2013-02-21 Martin Jambor <mjambor@suse.cz>
5986 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
5987 instead of hard-wired defaults.
5989 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
5991 * doc/invoke.texi (MIPS Options): Update documentation of the
5992 floating-point multiply-accumulate instruction restrictions.
5994 2013-02-21 Kostya Serebryany <kcc@google.com>
5996 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
5997 asan_shadow_offset on x86_64 linux.
5999 2013-02-21 Richard Biener <rguenther@suse.de>
6001 PR tree-optimization/56415
6003 2013-02-11 Richard Biener <rguenther@suse.de>
6005 PR tree-optimization/56273
6006 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
6009 2013-02-21 Jakub Jelinek <jakub@redhat.com>
6012 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
6016 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
6017 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
6019 2013-02-20 Jan Hubicka <jh@suse.cz>
6021 PR tree-optimization/56265
6022 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
6023 when target is referenced for first time.
6025 2013-02-20 Richard Biener <rguenther@suse.de>
6027 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
6028 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
6029 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
6030 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
6031 not return anything.
6032 (rename_ssa_copies): Do not remove unused locals.
6033 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
6034 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
6035 * passes.c (execute_function_todo): Do not schedule unused locals
6036 removal if cleanup_tree_cfg did something.
6037 * tree-ssa-live.c (remove_unused_locals): Dump statistics
6038 about the number of removed locals.
6040 2013-02-20 Richard Biener <rguenther@suse.de>
6042 PR tree-optimization/56398
6043 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
6045 2013-02-20 Martin Jambor <mjambor@suse.cz>
6047 PR tree-optimization/55334
6048 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
6049 restricted pointers to arrays.
6051 2013-02-20 Richard Biener <rguenther@suse.de>
6052 Jakub Jelinek <jakub@redhat.com>
6054 PR tree-optimization/56396
6055 * tree-ssa-ccp.c (n_const_val): New static variable.
6056 (get_value): Return NULL for SSA names we don't have a lattice
6058 (ccp_initialize): Initialize n_const_val.
6059 * tree-ssa-copy.c (n_copy_of): New static variable.
6060 (init_copy_prop): Initialize n_copy_of.
6061 (get_value): Return NULL_TREE for SSA names we don't have a
6064 2013-02-20 Martin Jambor <mjambor@suse.cz>
6066 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
6068 2013-02-20 Richard Biener <rguenther@suse.de>
6070 * genpreds.c (write_lookup_constraint): Do not compare first
6071 letter of the constraint again.
6073 2013-02-20 Richard Biener <rguenther@suse.de>
6075 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
6077 (get_use_iv_cost): Terminate hashtable walk when coming across
6080 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
6082 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
6083 reassociation for avx2 targets.
6085 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6087 * config/microblaze/microblaze.c: microblaze_has_clz = 0
6088 Add version check for v8.10.a to enable microblaze_has_clz
6089 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
6090 version and TARGET_PATTERN_COMPARE check
6091 * config/microblaze/microblaze.md: New clzsi2 instruction
6093 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6095 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
6096 function before branching.
6098 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
6100 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
6102 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
6104 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
6107 * sel-sched.c: Include ira.h.
6108 (implicit_clobber_conflict_p): New function.
6109 (moveup_expr): Use it.
6110 * Makefile.in (sel-sched.o): Depend on ira.h.
6112 2013-02-19 Richard Biener <rguenther@suse.de>
6114 PR tree-optimization/56384
6115 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
6116 (vn_hash_type): Split out from ...
6117 (vn_hash_constant_with_type): ... here.
6118 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
6119 (vn_phi_eq): Compare types from vn_phi_s structure.
6120 (vn_phi_lookup): Populate vn_phi_s type.
6121 (vn_phi_insert): Likewise.
6123 2013-02-19 Jakub Jelinek <jakub@redhat.com>
6125 PR tree-optimization/56350
6126 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
6127 if haven't found reduction or nested cycle operand, rather than
6128 asserting we must find it.
6130 PR tree-optimization/56381
6131 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
6134 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
6135 Jakub Jelinek <jakub@redhat.com>
6138 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
6139 (swap_optab_enable): Same.
6140 (init_all_optabs): Use argument instead of global.
6141 * tree.h (struct tree_optimization_option): New field target_optabs.
6142 * expr.h (init_all_optabs): Add argument to prototype.
6143 (TREE_OPTIMIZATION_OPTABS): New.
6144 (save_optabs_if_changed): Protoize.
6145 * optabs.h: Declare this_fn_optabs.
6146 * optabs.c (save_optabs_if_changed): New.
6147 Declare this_fn_optabs.
6148 (init_optabs): Add argument to init_all_optabs() call.
6149 * function.c (invoke_set_current_function_hook): Handle per
6151 * function.h (struct function): New field optabs.
6152 * config/mips/mips.c (mips_set_mips16_mode): Handle when
6153 optimization_current_node has changed.
6154 * target-globals.h (save_target_globals_default_opts): Protoize.
6155 * target-globals.c (save_target_globals_default_opts): New.
6157 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6160 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
6161 registers %fr12 and %fr12R as call used.
6164 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
6165 and HImode, require all displacements to be an integer multiple of
6167 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
6168 only allow QImode and HImode when reload is in progress and strict is
6169 true. Likewise for symbolic addresses. Use base14_operand to check
6170 displacements in REG+BASE addresses.
6172 2013-02-18 Richard Biener <rguenther@suse.de>
6174 PR tree-optimization/56366
6175 * tree-vect-loop.c (get_initial_def_for_induction): Properly
6176 handle sign-conversion of outer-loop initial induction value.
6178 2013-02-18 Richard Biener <rguenther@suse.de>
6181 * cfghooks.c (merge_blocks): If we merge a latch into another
6182 block adjust references to it.
6183 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
6184 (verify_loop_structure): Verify that a recorded latch is in fact
6187 2013-02-18 Richard Biener <rguenther@suse.de>
6189 PR tree-optimization/56321
6190 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
6191 order SSA name release and virtual operand unlinking.
6193 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6195 * config/microblaze/microblaze.md (save_stack_block): Define.
6196 (restore_stack_block): Likewise.
6198 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6200 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
6201 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
6202 * config/microblaze/microblaze.c (microblaze_option_override):
6203 Bail out early for PIC modes when target does not support PIC.
6205 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6207 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
6208 Replace with a microblaze version.
6209 (microblaze_trampoline_init): Adapt for microblaze.
6210 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
6213 2013-02-16 Jakub Jelinek <jakub@redhat.com>
6214 Dodji Seketeli <dodji@redhat.com>
6217 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
6218 (instrument_mem_region_access): Do not forget to always put
6219 instrumentation of the of 'base' and 'base + len' in a "if (len !=
6220 0) statement, even for cases where either 'base' or 'base + len'
6221 are not instrumented -- because they have been previously
6222 instrumented. Simplify the logic by putting all the statements
6223 instrument 'base + len' inside a sequence, and then insert that
6224 sequence right before the current insertion point. Then, to
6225 instrument 'base + len', just get an iterator on that statement.
6226 And do not forget to update the pointer to iterator the function
6227 received as argument.
6229 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
6231 PR rtl-optimization/56348
6232 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
6234 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
6236 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
6237 (clean_graph_dump_file): Pass base to start_graph_dump.
6239 2013-02-14 Richard Henderson <rth@redhat.com>
6242 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
6244 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
6246 * collect2-aix.h: Define F_LOADONLY.
6248 2013-02-14 Richard Biener <rguenther@suse.de>
6251 * varasm.c (output_constant_def_1): Get the decl representing
6252 the constant as argument.
6253 (output_constant_def): Wrap output_constant_def_1.
6254 (make_decl_rtl): Use output_constant_def_1 with the decl
6255 representing the constant.
6256 (build_constant_desc): Optionally re-use a decl already
6257 representing the constant.
6258 (tree_output_constant_def): Adjust.
6260 2013-02-14 Dodji Seketeli <dodji@redhat.com>
6263 * asan.c (instrument_builtin_call): Really put the length of the
6264 second source argument into src1_len.
6266 2013-02-13 Jakub Jelinek <jakub@redhat.com>
6268 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
6269 argument. If it is false, don't create edge from then_bb to
6271 (insert_if_then_before_iter): Pass true to it.
6272 (build_check_stmt): Pass false to it.
6273 (transform_statements): Flush hash table only on extended basic
6274 block boundaries, rather than at the beginning of every bb.
6275 Don't flush hash table on nonfreeing_call_p calls.
6276 * tree-flow.h (nonfreeing_call_p): New prototype.
6277 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
6279 2013-02-13 David S. Miller <davem@davemloft.net>
6281 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
6283 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
6286 * ira.c (max_regno_before_ira): Move from ...
6288 (fix_reg_equiv_init): Use max_regno_before_ira instead of
6291 2013-02-13 Jakub Jelinek <jakub@redhat.com>
6293 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
6295 2013-02-13 Richard Biener <rguenther@suse.de>
6298 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
6299 globals in MEM_REFs.
6301 2013-02-13 Richard Biener <rguenther@suse.de>
6303 * loop-init.c (loop_optimizer_init): Clear loop state when
6304 re-initializing preserved loops.
6305 * loop-unswitch.c (unswitch_single_loop): Return whether
6306 we unswitched the loop. Do not verify loop state here.
6307 (unswitch_loops): When we unswitched a loop discover new loops.
6309 2013-02-13 Kostya Serebryany <kcc@google.com>
6311 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
6313 * sanitizer.def: Rename __asan_init to __asan_init_v1.
6315 2013-02-12 Dodji Seketeli <dodji@redhat.com>
6317 Avoid instrumenting duplicated memory access in the same basic block
6318 * Makefile.in (asan.o): Add new dependency on hash-table.h
6319 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
6320 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
6321 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
6322 (free_mem_ref_resources, has_mem_ref_been_instrumented)
6323 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
6324 (get_mem_ref_of_assignment): New functions.
6325 (get_mem_refs_of_builtin_call): Extract from
6326 instrument_builtin_call and tweak a little bit to make it fit with
6328 (instrument_builtin_call): Use the new
6329 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
6330 of is_gimple_builtin_call.
6331 (instrument_derefs, instrument_mem_region_access): Insert the
6332 instrumented memory reference into the hash table.
6333 (maybe_instrument_assignment): Renamed instrument_assignment into
6334 this, and change it to advance the iterator when instrumentation
6335 actually happened and return true in that case. This makes it
6336 homogeneous with maybe_instrument_assignment, and thus give a
6337 chance to callers to be more 'regular'.
6338 (transform_statements): Clear the memory reference hash table
6339 whenever we enter a new BB, when we cross a function call, or when
6340 we are done transforming statements. Use
6341 maybe_instrument_assignment instead of instrumentation. No more
6342 need to special case maybe_instrument_assignment and advance the
6343 iterator after calling it; it's now handled just like
6344 maybe_instrument_call. Update comment.
6346 2013-02-13 Richard Biener <rguenther@suse.de>
6348 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
6349 Fix loop discovery code.
6351 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
6354 * lra-constraints.c (process_alt_operands): Match early clobber
6355 operand with itself. Check conflicts with earlyclobber only if
6356 the operand is not reloaded. Prefer to reload conflicting operand
6357 if earlyclobber and matching operands are the same.
6359 2013-02-12 Richard Biener <rguenther@suse.de>
6362 * lto-streamer-out.c (write_symbol): Do not output symbols
6363 for hard register variables.
6365 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
6368 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
6369 (umulsidi3_insn, mulsidi3_insn): New insns.
6371 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
6373 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
6374 (struct tune_params): Add vec_costs field.
6375 * config/arm/arm.c (arm_builtin_vectorization_cost)
6376 (arm_add_stmt_cost): New functions.
6377 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
6378 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
6379 (arm_default_vec_cost): New struct of type cpu_vec_costs.
6380 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
6381 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
6382 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
6383 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
6385 2013-02-12 Richard Biener <rguenther@suse.de>
6388 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
6389 decls again if possible.
6391 2013-02-12 Richard Biener <rguenther@suse.de>
6394 * tree-ssa.c (verify_ssa_name): Fix check, move
6395 SSA_NAME_IN_FREE_LIST check up.
6397 2013-02-12 Jakub Jelinek <jakub@redhat.com>
6398 Steven Bosscher <steven@gcc.gnu.org>
6400 PR rtl-optimization/56151
6401 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
6402 equal to op0 or op1, and last_insn pattern is CODE operation
6403 with MEM dest and one of the operands matches that MEM.
6405 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
6407 * doc/extend.texi: Document Function Multiversioning and "default"
6408 parameter string to target attribute.
6409 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
6410 target attribute parameter is "default".
6411 (ix86_compare_version_priority): Remove checks for target attribute.
6412 (ix86_mangle_function_version_assembler_name): Change error to sorry.
6413 Remove check for target attribute equal to NULL. Add assert.
6414 (ix86_generate_version_dispatcher_body): Change error to sorry.
6416 2013-02-11 Iain Sandoe <iain@codesourcery.com>
6417 Jack Howarth <howarth@bromo.med.uc.edu>
6418 Patrick Marlier <patrick.marlier@gmail.com>
6421 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
6422 define ENDFILE_SPEC as TM_DESTRUCTOR.
6423 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
6425 2013-02-11 Alexander Potapenko <glider@google.com>
6426 Jack Howarth <howarth@bromo.med.uc.edu>
6427 Jakub Jelinek <jakub@redhat.com>
6430 * config/darwin.c (cdtor_record): Rename ctor_record.
6431 (sort_cdtor_records): Rename sort_ctor_records.
6432 (finalize_dtors): New routine to sort destructors by
6433 priority before use in assemble_integer.
6434 (machopic_asm_out_destructor): Use finalize_dtors if needed.
6436 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
6438 PR rtl-optimization/56275
6439 * simplify-rtx.c (avoid_constant_pool_reference): Check that
6440 offset is non-negative and less than cmode size before
6441 calling simplify_subreg.
6443 2013-02-11 Richard Biener <rguenther@suse.de>
6445 PR tree-optimization/56264
6446 * cfgloop.h (fix_loop_structure): Adjust prototype.
6447 * loop-init.c (fix_loop_structure): Return the number of
6448 newly discovered loops.
6449 * tree-cfgcleanup.c (repair_loop_structures): When new loops
6450 are discovered, do a full loop-closed SSA rewrite.
6452 2013-02-11 Richard Biener <rguenther@suse.de>
6454 PR tree-optimization/56273
6455 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
6457 (check_array_ref): Fix missing newline in dumps.
6458 (search_for_addr_array): Likewise.
6460 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
6462 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
6464 2013-02-09 Jakub Jelinek <jakub@redhat.com>
6467 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
6469 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
6471 PR rtl-optimization/56246
6472 * lra-constraints.c (simplify_operand_subreg): Try to reuse
6474 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
6475 constraints are satisfied.
6477 2013-02-08 Jeff Law <law@redhat.com>
6480 * emit-rtl.c (reg_is_parm_p): New function.
6481 * regs.h (reg_is_parm_p): New prototype.
6482 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
6483 callee-clobbered registers.
6485 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
6488 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
6489 If there is no implicit builtin declaration, just return NULL.
6491 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
6493 * config/i386/sse.md (FMAMODEM): New mode iterator.
6494 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
6495 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
6497 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
6499 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
6500 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
6501 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
6503 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6505 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
6506 (microblaze*-*-elf): Likewise.
6507 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
6509 * config/microblaze/microblaze-c.c: Add builtin defines for
6510 _LITTLE_ENDIAN and _BIG_ENDIAN.
6511 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
6512 add to TARGET_DEFAULT flags.
6513 Expand ASM_SPEC and LINK_SPEC.
6514 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
6515 * config/microblaze/microblaze.md: Update extendsidi2 and
6516 movdi_internal instructions to use low-order / high-order reg
6518 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
6519 options and inversemask / mask of LITTLE_ENDIAN.
6520 * config/microblaze/t-microblaze: Expand multilib options to
6521 include mlittle-endian (le) and update exceptions patterns.
6523 2013-02-08 Jakub Jelinek <jakub@redhat.com>
6525 PR rtl-optimization/56195
6526 * lra-constraints.c (get_reload_reg): Don't reuse regs
6527 if they have smaller mode than requested, if they have
6528 wider mode than requested, try to return a SUBREG.
6530 PR tree-optimization/56250
6531 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
6532 if type is unsigned and code isn't MULT_EXPR.
6534 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
6536 PR tree-optimization/56064
6537 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
6538 bits according to mode.
6539 * fixed-value.h (fixed_from_double_int)
6540 (const_fixed_from_double_int): Adjust comments.
6542 2013-02-08 Richard Biener <rguenther@suse.de>
6545 * lto-streamer.h (struct data_in): Remove current_file, current_line
6546 and current_col members.
6547 * lto-streamer-out.c (lto_output_location): Stream changed bits
6548 en-block for efficiency.
6549 * lto-streamer-in.c (clear_line_info): Remove.
6550 (lto_input_location): Cache current file, line and column
6551 globally via local statics. Read changed bits en-block.
6552 (input_function): Do not call clear_line_info.
6553 (lto_read_body): Likewise.
6554 (lto_input_toplevel_asms): Likewise.
6556 2013-02-08 Michael Matz <matz@suse.de>
6558 PR tree-optimization/52448
6559 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
6560 (nt_call_phase): New static.
6561 (add_or_mark_expr): Only mark accesses with newer phase than any
6563 (nonfreeing_call_p): New.
6564 (nt_init_block): Update nt_call_phase, mark blocks as visited.
6565 (nt_fini_block): Keep blocks marked as visited.
6566 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
6568 2013-02-08 Richard Biener <rguenther@suse.de>
6570 * ira.c (ira): Free broken dominator information.
6572 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
6574 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
6576 2013-02-08 Marek Polacek <polacek@redhat.com>
6578 * cfgloop.c (verify_loop_structure): Add more checking of headers.
6580 2013-02-08 Richard Biener <rguenther@suse.de>
6583 * cfgloop.h (flow_loops_find): Adjust.
6584 (bb_loop_header_p): Declare.
6585 * cfgloop.c (bb_loop_header_p): New function split out from ...
6586 (flow_loops_find): ... here. Adjust function signature,
6587 support incremental loop structure update.
6588 (verify_loop_structure): Cleanup. Verify a loop is a loop.
6589 * cfgloopmanip.c (fix_loop_structure): Move ...
6590 * loop-init.c (fix_loop_structure): ... here.
6591 (apply_loop_flags): Split out from ...
6592 (loop_optimizer_init): ... here.
6593 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
6594 in incremental mode, only remove dead loops here.
6596 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
6599 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
6600 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
6601 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
6602 (*round<mode>3.libgcc): New insns for fixed-modes.
6603 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
6604 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
6605 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
6606 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
6607 implementations. Define to __builtin_avr_absFX,
6608 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
6609 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
6610 __builtin_avr_countlsFX, respectively.
6611 * config/avr/avr-c.c (target.h): Include it.
6612 (enum avr_builtin_id): New enum.
6613 (avr_resolve_overloaded_builtin): New static function.
6614 (avr_register_target_pragmas): Use it to set
6615 targetm.resolve_overloaded_builtin.
6616 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
6617 tree nodes used by DEF_BUILTIN.
6618 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
6619 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
6620 <AVR_BUILTIN_xxBITS>: Same.
6622 2013-02-08 Richard Biener <rguenther@suse.de>
6624 * cfgloop.c (verify_loop_structure): Properly handle
6625 a loop exiting to another loop header.
6626 * ira-int.h (ira_loops): Remove.
6627 * ira.c (ira_loops): Remove.
6628 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
6629 (do_reload): Use loop_optimizer_finalize.
6630 * ira-build.c (create_loop_tree_nodes): Use get_loops and
6631 number_of_loops to access the loop tree.
6632 (more_one_region_p): Likewise.
6633 (finish_loop_tree_nodes): Likewise.
6634 (rebuild_regno_allocno_maps): Likewise.
6635 (mark_loops_for_removal): Likewise.
6636 (mark_all_loops_for_removal): Likewise.
6637 (remove_unnecessary_regions): Likewise.
6638 (ira_build): Likewise.
6639 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
6641 2013-02-08 Richard Biener <rguenther@suse.de>
6643 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
6644 * ipa-pure-const.c (analyze_function): Avoid calling
6645 mark_irreducible_loops twice.
6646 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
6648 2013-02-07 David S. Miller <davem@davemloft.net>
6650 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
6652 * var-tracking.c (vt_add_function_parameter): Test the presence of
6653 HAVE_window_save properly and do not remap argument registers when
6654 we have a leaf function.
6656 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
6659 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
6661 * config/i386/i386.c (ix86_print_operand): Ditto.
6663 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
6665 * lra-constraints.c (process_alt_operands): Fix recently added comment.
6667 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
6669 PR rtl-optimization/56225
6670 * lra-constraints.c (process_alt_operands): Check that reload hard
6671 reg can hold value for strict_low_part.
6673 2013-02-07 Jakub Jelinek <jakub@redhat.com>
6676 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
6677 dwarf2out_end_function.
6678 (in_first_function_p, maybe_at_text_label_p,
6679 first_loclabel_num_not_at_text_label): New variables.
6680 (dwarf2out_var_location): In the first function find out
6681 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
6682 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
6685 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
6687 PR rtl-optimization/56178
6688 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
6689 SUBREG of a register. Tidy up related block of code.
6690 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
6691 note if the source is a register or a SUBREG of a register.
6693 2013-02-07 Jakub Jelinek <jakub@redhat.com>
6696 * config/rs6000/rs6000.md (ptrm): New mode attr.
6697 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
6698 call_value_indirect_aix<pttrsize>,
6699 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
6702 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
6704 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
6705 if -bnortl. Convert to strcmp and strncmp.
6707 2013-02-07 Alan Modra <amodra@gmail.com>
6710 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
6711 addresses won't wrap when offsetting.
6712 (rs6000_secondary_reload): Provide secondary reloads needed for
6713 wrapping LO_SUM addresses.
6715 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
6717 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
6718 MACH, just __MACH__.
6720 2013-02-06 Richard Biener <rguenther@suse.de>
6722 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
6723 instead of calling fix_loop_structure.
6725 2013-02-06 Jakub Jelinek <jakub@redhat.com>
6728 * omp-low.c (use_pointer_for_field): Return false if
6729 lower_send_shared_vars doesn't generate any copy-out code.
6731 2013-02-06 Tom de Vries <tom@codesourcery.com>
6733 PR rtl-optimization/56131
6734 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
6735 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
6736 of the label is NULL. Add comment.
6738 2013-02-05 Jakub Jelinek <jakub@redhat.com>
6740 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
6743 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
6744 (STATIC_LIBTSAN_LIBS): Likewise.
6745 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
6746 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
6747 is defined, don't add anything else beyond that.
6748 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
6749 (LINK_COMMAND_SPEC): Use them.
6751 PR tree-optimization/56205
6752 * tree-stdarg.c (check_all_va_list_escapes): Return true if
6753 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
6754 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
6756 2013-02-05 Richard Biener <rguenther@suse.de>
6758 PR tree-optimization/53342
6759 PR tree-optimization/53185
6760 * tree-vectorizer.h (vect_check_strided_load): Remove.
6761 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
6762 not disallow peeling for vectorized strided loads.
6763 (vect_check_strided_load): Make static and simplify.
6764 (vect_analyze_data_refs): Adjust.
6765 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
6766 correctly when vectorizing strided loads.
6768 2013-02-05 Richard Biener <rguenther@suse.de>
6770 * doc/install.texi: Refer to ISL, not PPL.
6772 2013-02-05 Jan Hubicka <jh@suse.cz>
6774 PR tree-optimization/55789
6775 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
6777 2013-02-05 Jan Hubicka <jh@suse.cz>
6779 PR tree-optimization/55789
6780 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
6781 the dead call anyway.
6783 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
6786 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
6788 2013-02-04 Alexander Potapenko <glider@google.com>
6789 Jack Howarth <howarth@bromo.med.uc.edu>
6790 Jakub Jelinek <jakub@redhat.com>
6793 * config/darwin.c (sort_ctor_records): Stabilized qsort
6794 on constructor priority by using original position.
6795 (finalize_ctors): New routine to sort constructors by
6796 priority before use in assemble_integer.
6797 (machopic_asm_out_constructor): Use finalize_ctors if needed.
6799 2013-02-04 Jakub Jelinek <jakub@redhat.com>
6802 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
6803 about visibility on artificial decls.
6804 * config/sol2.c (solaris_assemble_visibility): Likewise.
6806 2013-02-04 Kai Tietz <ktietz@redhat.com>
6809 * config/i386/i386.c (function_value_ms_64): Add additional valtype
6810 argument and improve checking of return-argument types for 16-byte
6812 (ix86_function_value_1): Add additional valtype argument on call
6813 of function_value_64.
6814 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
6815 handling infunction_value_64 function.
6817 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
6819 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
6821 2013-02-04 Richard Biener <rguenther@suse.de>
6823 PR tree-optimization/56188
6824 * tree-ssa-structalias.c (label_visit): Consider case with
6825 initially non-empty points-to set.
6826 (perform_var_substitution): Dump node mapping and clean up.
6828 2013-02-04 Richard Guenther <rguenther@suse.de>
6831 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
6832 node prevail as last resort.
6833 (lto_symtab_merge_decls): Remove guard on LTRANS here.
6834 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
6836 2013-02-04 Richard Biener <rguenther@suse.de>
6838 PR tree-optimization/56113
6839 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
6841 (equiv_class_lookup_or_add): ... this.
6842 (label_visit): Adjust and fix error in previous patch.
6843 (perform_var_substitution): Adjust.
6845 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
6847 * config/sh/divtab.c: Fix formatting and comments throughout the file.
6848 * config/sh/sh4-300.md: Likewise.
6849 * config/sh/sh4a.md: Likewise.
6850 * config/sh/constraints.md: Likewise.
6851 * config/sh/sh.md: Likewise.
6852 * config/sh/netbsd-elf.h: Likewise.
6853 * config/sh/predicates.md: Likewise.
6854 * config/sh/sh-protos.h: Likewise.
6855 * config/sh/ushmedia.h: Likewise.
6856 * config/sh/linux.h: Likewise.
6857 * config/sh/sh.c: Likewise.
6858 * config/sh/superh.h: Likewise.
6859 * config/sh/elf.h: Likewise.
6860 * config/sh/sh4.md: Likewise.
6861 * config/sh/sh.h: Likewise.
6863 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6865 * config/pa/constraints.md: Adjust unused letters. Change "T"
6866 constraint to match_test floating_point_store_memory_operand().
6867 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
6868 (base14_operand): New.
6869 (floating_point_store_memory_operand): New.
6870 (integer_store_memory_operand): Revise to use base14_operand and
6871 reg_plus_base_memory_operand.
6872 (move_dest_operand): Allow symbolic_memory_operands.
6873 (symbolic_memory_operand): Check for LO_SOM.
6874 (symbolic_operand): Change default case to break.
6875 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
6876 CONST_DOUBLE values to be reloaded by putting them into memory when
6877 the destination is a floating point register.
6878 (movdf): Remove code to handle CONST_DOUBLE.
6880 (reload_indf_r1): New.
6881 (reload_insf_r1): New.
6882 Consistently use "Q" and "T" constraints with integer and floating
6883 point move instructions, respectively.
6884 (movdi): Remove FAIL.
6885 Change predicate for source operand unamed DImode move from
6886 general_operand to move_src_operand.
6887 (umulsidi3): Change predicate for destination operand to
6889 Likewise for similar unamed patterns.
6890 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
6891 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
6892 (hppa_legitimize_address): Simplify mask calculation.
6893 (pa_emit_move_sequence): Revised handling of secondary reloads from
6894 REG+D addresses for floating point loads and stores. Directly handle
6895 loading CONST0_RTX (mode) to a floating point register.
6896 (pa_secondary_reload): Handle reloading DF and SFmode constant values
6897 to floating point registers. Don't restrict secondary reloads to
6898 floating point registers to integer modes. Revise some comments and
6900 (TARGET_LEGITIMATE_ADDRESS_P): Define.
6901 (pa_legitimate_address_p): New.
6902 (pa_legitimize_reload_address): New.
6903 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
6904 (STRICT_REG_OK_FOR_BASE_P): New.
6905 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
6906 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
6908 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
6909 Andrew Dixie <andrewd@gentrack.com>
6911 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
6914 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
6916 * expmed.c (extract_bit_field_1): Pass the full width of the
6917 structure to get_best_reg_extraction_insn.
6919 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
6922 * configure.ac (use_cxa_atexit): Add AIX.
6923 * configure: Regenerate.
6925 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
6927 2013-02-01 Jakub Jelinek <jakub@redhat.com>
6930 * final.c (need_profile_function): New variable.
6931 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
6932 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
6933 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
6934 notes, targetm.asm_out.function_prologue doesn't emit anything,
6935 HAVE_prologue and profiler should be emitted before prologue,
6936 set need_profile_function instead of emitting it.
6937 (final_scan_insn): If need_profile_function, emit
6938 profile_function on the first NOTE_INSN_BASIC_BLOCK or
6939 NOTE_INSN_FUNCTION_BEG note.
6941 2013-02-01 Richard Henderson <rth@redhat.com>
6943 * config/rs6000/rs6000.md (smulditi3): New.
6946 * config/alpha/alpha.md (umulditi3): New.
6948 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
6950 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
6951 (ASM_OUTPUT_ALIGNED_LOCAL): New.
6953 2013-02-01 Richard Biener <rguenther@suse.de>
6955 PR tree-optimization/56113
6956 * tree-ssa-structalias.c (label_visit): Reduce work for
6957 single-predecessor nodes.
6959 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
6961 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
6962 range isn't testing for zero.
6964 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
6967 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
6969 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
6970 Nick Clifton <nickc@redhat.com>
6972 * config/v850/constraints.md (Q): Define as a memory constraint.
6973 * config/v850/predicates.md (label_ref_operand): New predicate.
6974 (e3v5_shift_operand): New predicate.
6975 (ior_operator): New predicate.
6976 * config/v850/t-v850: Add e3v5 multilib.
6977 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
6978 (v850_gen_movdi): Prototype.
6979 * config/v850/v850.c: Add support for e3v5 architecture.
6980 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
6982 (construct_save_jarl): Add e3v5 long JARL support.
6983 (v850_adjust_insn_length): New function. Adjust length of call
6984 insns when using e3v5 instructions.
6985 (v850_gen_movdi): New function: Generate instructions to move a
6987 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
6988 (CPP_SPEC): Define __v850e3v5__ as appropriate.
6989 (TARGET_USE_FPU): Enable for e3v5.
6990 (CONST_OK_FOR_W): New macro.
6991 (ADJUST_INSN_LENGTH): Define.
6992 * config/v850/v850.md (UNSPEC_LOOP): Define.
6993 (attr cpu): Add v850e3v5.
6994 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
6995 (movdi): New pattern.
6996 (movdi_internal): New pattern.
6997 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
6998 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
6999 (cstoresf4): Likewise.
7000 (cstoredf4): Likewise.
7001 (insv): New pattern.
7002 (rotlso3_a): New pattern.
7003 (rotlsi3_b): New pattern
7004 (rotlsi3_v850e3v5): New pattern.
7005 (doloop_begin): New pattern.
7006 (fix_loop_counter): New pattern.
7007 (doloop_end): New pattern.
7008 (branch_normal): Add e3v5 long branch support.
7009 (branch_invert): Likewise.
7010 (branch_z_normal): Likewise.
7011 (branch_z_invert): Likewise.
7012 (branch_nz_normal): Likewise.
7013 (branch_nz_invert): Likewise.
7014 (call_internal_short): Add e3v5 register-indirect JARL support.
7015 (call_internal_long): Likewise.
7016 (call_value_internal_short): Likewise.
7017 (call_value_internal_long): Likewise.
7018 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
7019 (mloop): New option.
7020 * config.gcc: Add support for configuring v840e3v5 target.
7021 * doc/invoke.texi: Document new v850 specific command line options.
7023 2013-01-31 Paul Koning <ni1d@arrl.net>
7027 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
7028 children if parent is a class.
7029 (prune_unused_types_prune): Don't add DW_AT_declaration.
7031 2013-01-31 Richard Biener <rguenther@suse.de>
7033 PR tree-optimization/56157
7034 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
7035 match up operand with SLP child.
7037 2013-01-31 Jason Merrill <jason@redhat.com>
7040 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
7041 parameters the first time.
7042 (gen_scheduled_generic_parms_dies): Check completeness here.
7044 2013-01-31 Richard Biener <rguenther@suse.de>
7047 * common.opt (faggressive-loop-optimizations): New flag,
7049 * doc/invoke.texi (faggressive-loop-optimizations): Document.
7050 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
7051 infer_loop_bounds_from_undefined by it.
7053 2013-01-31 Richard Biener <rguenther@suse.de>
7055 PR tree-optimization/56150
7056 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
7057 visit virtual operands.
7058 (find_uses_to_rename_bb): Likewise.
7060 2013-01-31 Richard Biener <rguenther@suse.de>
7062 PR tree-optimization/56150
7063 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
7064 mixed store non-store stmts.
7066 2013-01-30 Jakub Jelinek <jakub@redhat.com>
7069 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
7070 LIBASAN_EARLY_SPEC is defined.
7071 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
7072 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
7074 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
7077 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
7078 invalid args instead of ICEing on it.
7079 (ix86_valid_target_attribute_tree): Return error_mark_node if
7080 ix86_valid_target_attribute_inner_p failed.
7081 (ix86_valid_target_attribute_p): Return false only if
7082 ix86_valid_target_attribute_tree returned error_mark_node. Allow
7083 target("default") attribute.
7084 (sorted_attr_string): Change argument from const char * to tree,
7085 merge in all target attribute arguments rather than just one.
7086 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
7087 instead of free. Avoid using strcat.
7088 (ix86_mangle_function_version_assembler_name): Mangle
7089 target("default") as if no target attribute is present. Adjust
7090 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
7091 instead of xmalloc and XDELETEVEC instead of free.
7092 (ix86_function_versions): Don't return true if one of the decls
7093 doesn't have target attribute. If they don't and one of the decls
7094 is DECL_FUNCTION_VERSIONED, report an error. Adjust
7095 sorted_attr_string caller. Use XDELETEVEC instead of free.
7096 (ix86_supports_function_versions): Remove.
7097 (make_name): Fix up formatting.
7098 (make_dispatcher_decl): Remove resolver_name and its initialization.
7099 Avoid leaking memory.
7100 (is_function_default_version): Return true if there is
7101 target("default") attribute rather than no target attribute at all.
7102 (make_resolver_func): Avoid leaking memory.
7103 (ix86_generate_version_dispatcher_body): Likewise.
7104 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
7105 * target.def (supports_function_versions): Remove.
7106 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
7107 * doc/tm.texi: Regenerated.
7109 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
7111 PR rtl-optimization/56144
7112 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
7113 for values with side effects.
7115 2013-01-30 Richard Biener <rguenther@suse.de>
7117 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
7118 (sparseset_pop): Likewise.
7119 * cfganal.c (compute_idf): Likewise. Increase work-stack size
7120 to be able to use quick_push in the worker loop.
7122 2013-01-30 Marek Polacek <polacek@redhat.com>
7124 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
7126 2013-01-30 Richard Biener <rguenther@suse.de>
7129 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
7131 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
7133 PR tree-optimization/56064
7134 * fixed-value.c (fixed_from_double_int): New function.
7135 * fixed-value.h (fixed_from_double_int): New prototype.
7136 (const_fixed_from_double_int): New static inline function.
7137 * fold-const.c (native_interpret_fixed): New static function.
7138 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
7139 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
7140 (native_encode_fixed): New static function.
7141 (native_encode_expr) <FIXED_CST>: Use it.
7142 (native_interpret_int): Move double_int worker code to...
7143 * double-int.c (double_int::from_buffer): ...this new static method.
7144 * double-int.h (double_int::from_buffer): Prototype it.
7146 2013-01-30 Richard Biener <rguenther@suse.de>
7148 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
7149 New pointer-map and obstack.
7150 (init_alias_vars): Allocate pointer-map and obstack.
7151 (delete_points_to_sets): Free them.
7152 (find_what_var_points_to): Cache result.
7153 (find_what_p_points_to): Adjust for changed interface of
7154 find_what_var_points_to.
7155 (compute_points_to_sets): Likewise.
7156 (ipa_pta_execute): Likewise.
7158 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7160 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
7161 * configure: Regenerate.
7162 * config.in: Regenerate.
7163 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
7164 #nobits/#progbits if supported.
7166 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
7169 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
7170 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
7171 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
7173 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
7175 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
7176 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
7178 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
7180 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
7181 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
7183 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
7185 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
7187 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
7188 * config/arm/cortex-a7.md: New bypasses using
7189 arm_mac_accumulator_is_result.
7191 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
7193 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
7194 (cortex_a7_neon_mla): Likewise.
7195 (cortex_a7_fpfmad): New reservation.
7196 (cortex_a7_fpmacs): Use ffmas and update required units.
7197 (cortex_a7_fpmuld): Update required units and latency.
7198 (cortex_a7_fpmacd): Likewise.
7199 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
7200 (cortex_a7_neon). Likewise.
7201 (bypass) Update participating units.
7203 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
7205 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
7206 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
7208 * config/arm/vfp11.md (vfp_farith): Use ffmas.
7209 (vfp_fmul): Use ffmad.
7210 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
7211 (cortex_r4_fmacd): Use ffmad.
7212 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
7213 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
7214 (cortex_a9_fmacd): Use ffmad.
7215 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
7216 (cortex_a8_vfp_macd): Use ffmad.
7217 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
7218 (cortex_a5_fpmacd): Use ffmad.
7219 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
7220 (cortex_a15_vfp_macd): Use ffmad.
7221 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
7223 2013-01-29 Jason Merrill <jason@redhat.com>
7226 * varasm.c (default_assemble_visibility): Don't warn about
7227 visibility on artificial decls.
7229 2013-01-29 Richard Biener <rguenther@suse.de>
7231 PR tree-optimization/56113
7232 * tree-ssa-structalias.c (equiv_class_lookup): Also return
7234 (label_visit): Free duplicate bitmaps and record the leader instead.
7235 (perform_var_substitution): Adjust.
7237 2013-01-29 Richard Biener <rguenther@suse.de>
7239 PR tree-optimization/55270
7240 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
7241 the CFG, schedule loops for fixup.
7243 2013-01-29 Nick Clifton <nickc@redhat.com>
7245 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
7248 2013-01-28 Leif Ekblad <leif@rdos.net>
7250 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
7251 * config/i386/i386.h (TARGET_RDOS): New macro.
7252 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
7253 * config/i386/i386.c (ix86_option_override_internal): For 64bit
7254 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
7255 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
7256 DEFAULT_LARGE_SECTION_THRESHOLD.
7257 * config/i386/i386.md (R14_REG, R15_REG): New constants.
7258 * config/i386/rdos.h: New file.
7259 * config/i386/rdos64.h: New file.
7261 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
7264 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
7267 2013-01-28 Jakub Jelinek <jakub@redhat.com>
7269 PR rtl-optimization/56117
7270 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
7271 call cselib_lookup_from_insn on the MEM before calling
7272 add_insn_mem_dependence.
7274 2013-01-28 Richard Biener <rguenther@suse.de>
7276 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
7277 to a stmt that didn't have one.
7278 (copy_phis_for_bb): Likewise for PHI arguments.
7279 (copy_debug_stmt): Likewise for debug stmts.
7281 2013-01-28 Richard Biener <rguenther@suse.de>
7283 PR tree-optimization/56034
7284 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
7285 (partition_builtin_p): Adjust.
7286 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
7287 it is the last partition.
7288 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
7289 up the vertex for the definition.
7290 (classify_partition): Classify whether a partition is a
7291 PKIND_REDUCTION, thus has uses outside of the loop.
7292 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
7293 Merge all PKIND_REDUCTION partitions into the last partition.
7294 (tree_loop_distribution): Seed partitions from reductions as well.
7296 2013-01-28 Jakub Jelinek <jakub@redhat.com>
7298 PR tree-optimization/56125
7299 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
7300 pow(x,c) into sqrt(x) * powi(x, n/2) or
7301 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
7302 optimizing for size.
7303 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
7304 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
7307 PR tree-optimization/56094
7308 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
7309 to UNKNOWN_LOCATION while gimplifying expr.
7311 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
7314 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
7315 operand 0 in movabs insn template for -masm=intel asm alternative.
7316 (*movabs<mode>_2): Ditto for operand 1.
7318 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
7321 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
7324 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7326 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
7329 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7331 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
7332 Undef to avoid warning.
7334 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
7336 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
7337 * configure: Regenerate.
7339 2013-01-25 Jakub Jelinek <jakub@redhat.com>
7341 PR tree-optimization/56098
7342 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
7343 for stmts with volatile ops.
7344 (cond_store_replacement): Don't optimize if assign has volatile ops.
7345 (cond_if_else_store_replacement_1): Don't optimize if either
7346 then_assign or else_assign have volatile ops.
7347 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
7350 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
7352 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
7354 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
7356 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
7357 missing ':' in asm example.
7359 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
7361 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
7362 entries into lane and laneq entries.
7363 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
7364 Remove AdvSIMD scalar modes.
7365 (aarch64_sq<r>dmulh_laneq<mode>): New.
7366 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
7368 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
7369 builtin implementations to relfect changes in RTL in aarch64-simd.md.
7370 * config/aarch64/iterators.md (VCOND): New.
7373 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
7376 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
7377 Add NULL LIBNAME argument to existing definitions.
7378 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
7379 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
7380 * config/avr/avr.c (DEF_BUILTIN): Same.
7381 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
7382 (avr_expand_builtin): Expand to a vanilla call if a libgcc
7383 implementation is available (DECL_ASSEMBLER_NAME is set).
7384 (avr_fold_absfx): New static function.
7385 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
7386 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
7387 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
7389 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
7390 (abshk, absk, abslk, absllk): Provide as static inline functions.
7392 2013-01-25 Marek Polacek <polacek@redhat.com>
7394 PR tree-optimization/56035
7395 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
7397 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
7399 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
7400 (*movtf_internal_rex64): Add (!o,C) alternative
7401 (*movxf_internal_rex64): Ditto.
7402 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
7404 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
7406 * doc/invoke.texi: fix typo.
7407 * doc/objc.texi: fix typo.
7409 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
7411 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
7412 for the first two alternatives.
7414 2013-01-24 Diego Novillo <dnovillo@google.com>
7416 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
7417 (ggc-zone.o): Remove.
7418 * configure.ac: Remove option --with-gc.
7419 * configure: Re-generate.
7420 * doc/install.texi: Remove documentation for --with-gc.
7421 * gengtype.c (write_enum_defn): Remove. Update all users.
7422 (write_Types_process_field): Remove generation of gt_e_* argument.
7423 (output_type_enum): Remove. Update all users.
7424 (write_enum_defn): Remove. Update all users.
7425 (enum alloc_zone): Remove. Update all users.
7426 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
7427 * ggc-common.c (ggc_splay_alloc): Remove first argument.
7429 (struct ptr_data): Remove field TYPE. Update all users.
7430 (gt_pch_note_object): Remove argument TYPE. Update all users.
7431 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
7433 * ggc-none.c (ggc_alloc_typed_stat): Remove.
7434 (struct alloc_zone): Remove.
7435 (ggc_internal_alloc_zone_stat): Remove.
7436 (ggc_internal_cleared_alloc_zone_stat): Remove.
7437 * ggc-page.c (ggc_alloc_typed_stat): Remove.
7438 (ggc_pch_count_object): Remove last argument. Update all users.
7439 (ggc_pch_alloc_object): Remove last argument. Update all users.
7440 (struct alloc_zone): Remove.
7441 * ggc-zone.c: Remove.
7442 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
7443 (struct alloc_zone): Remove.
7444 (ggc_alloc_typed_stat): Remove.
7445 (ggc_alloc_typed): Remove.
7446 (ggc_splay_alloc): Remove first argument.
7447 (rtl_zone): Remove. Update all users.
7448 (tree_zone): Remove. Update all users.
7449 (tree_id_zone): Remove. Update all users.
7450 (ggc_internal_zone_alloc_stat): Remove. Update all users.
7451 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
7452 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
7453 * tree-ssanames.c: Remove references to zone allocator in comments.
7455 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
7457 * config/avr/avr.c (avr_out_fract): Make register numbers that
7458 might be outside of source operand signed.
7460 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
7462 * config/i386/constraints.md (Yf): New constraint.
7463 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
7464 of f constraint to conditionaly disable x87 register preferences.
7465 (*movdf_internal): Ditto.
7466 (*movsf_internal): Ditto.
7468 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
7471 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
7472 that have operands with impossible constraints.
7473 Add a FIXME for a speed-up opportunity.
7474 * lra-constraints.c (process_alt_operands): Verify that a class
7475 selected from constraints on asms is valid for the operand mode.
7476 (curr_insn_transform): Remove incorrect comment.
7478 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
7480 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
7481 TOC operand is a valid symbol ref in the constant pool.
7483 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7485 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
7487 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
7490 * config/avr/stdfix.h: New file.
7491 * t-avr (stdfix-gcc.h): New rule to build it.
7492 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
7494 2013-01-23 Kostya Serebryany <kcc@google.com>
7496 * config/darwin.h: remove dependency on
7497 CoreFoundation (asan on Mac OS).
7499 2013-01-23 Jakub Jelinek <jakub@redhat.com>
7502 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
7503 instead of cmpdi_operand for first comparison operand.
7504 Don't assert that comparison operands aren't both constants.
7506 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
7508 * doc/install.texi (Downloading the Source): Update references to
7509 downloading separate components.
7511 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
7513 * doc/extend.texi (__int128): Improve grammar.
7515 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
7518 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
7519 alternative to (o,r).
7520 (*movdi_internal_rex64): Remove (!o,n) alternative.
7521 (DImode immediate->memory splitter): Remove.
7522 (DImode immediate->memory peephole2): Remove.
7523 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
7524 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
7525 alternative to (!o,*r).
7526 (*movtf_internal_sse): New pattern.
7527 (*movxf_internal_rex64): New pattern.
7528 (*movxf_internal): Disable for TARGET_64BIT.
7529 (*movdf_internal_rex64): Remove (!o,F) alternative.
7531 2013-01-22 Jakub Jelinek <jakub@redhat.com>
7534 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
7535 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
7536 * tree-vect-loop-manip.c (find_loop_location): Also ignore
7537 stmt locations where LOCATION_LOCUS of the stmt location is
7538 UNKNOWN_LOCATION or BUILTINS_LOCATION.
7541 * config/i386/i386.md (UNSPEC_STOS): New.
7542 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
7543 *strsetqi_1): Add UNSPEC_STOS.
7545 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
7548 * doc/invoke.texi: Remove left over -Wsynth example.
7550 2013-01-21 Jakub Jelinek <jakub@redhat.com>
7552 PR tree-optimization/56051
7553 * fold-const.c (fold_binary_loc): Don't fold
7554 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
7555 a narrowing conversion, or widening conversion from signed
7558 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
7560 PR rtl-optimization/56023
7561 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
7562 dependent on debug instruction.
7564 2013-01-21 Martin Jambor <mjambor@suse.cz>
7567 * function.c (allocate_struct_function): Call
7568 invoke_set_current_function_hook earlier.
7570 2013-01-21 Jakub Jelinek <jakub@redhat.com>
7572 * reload1.c (init_reload): Only initialize reload_obstack
7573 during the first call.
7575 2013-01-21 Marek Polacek <polacek@redhat.com>
7577 * cfgloop.c (verify_loop_structure): Fix up grammar.
7579 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
7581 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
7582 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
7584 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7587 * config/arm/marvell-pj4.md: Update copyright year.
7588 Fix up use of alu to alu_reg and simple_alu_imm.
7590 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
7592 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
7594 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
7597 * lra-constraints.c (curr_insn_transform): Don't reuse original
7598 insn for secondary memory move when memory mode should be different.
7600 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7602 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
7603 atomic_storedi_1): New patterns.
7605 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
7607 btver2 pipeline descriptions.
7608 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
7610 * config/i386/i386.md (btver2_decode): New type attributes.
7611 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
7613 * config/i386/btver2.md: New file describing btver2 pipelines.
7615 2013-01-19 Andrew Pinski <apinski@cavium.com>
7617 PR tree-optimization/52631
7618 * tree-ssa-sccvn (visit_use): Before looking up the original
7619 statement, try looking up the simplified expression.
7621 2013-01-19 Anthony Green <green@moxielogic.com>
7623 * config/moxie/moxie.c (moxie_expand_prologue): Set
7624 current_function_static_stack_size.
7626 2013-01-18 Jakub Jelinek <jakub@redhat.com>
7628 PR tree-optimization/56029
7629 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
7630 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
7632 2013-01-18 Sharad Singhai <singhai@google.com>
7634 PR tree-optimization/55995
7635 * dumpfile.c (dump_loc): Print location only if available.
7636 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
7638 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
7641 * lra-constraints.c (curr_insn_transform): Reuse original insn for
7642 secondary memory move.
7643 (inherit_reload_reg): Use rclass instead of cl for
7644 check_secondary_memory_needed_p.
7646 2013-01-18 Jakub Jelinek <jakub@redhat.com>
7649 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
7650 the case where writing real complex part of target modifies op1.
7652 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
7654 * config/aarch64/aarch64-simd.md
7655 (aarch64_vcond_internal<mode>): Handle unordered cases.
7656 * config/aarch64/iterators.md (v_cmp_result): New.
7658 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
7659 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7661 * config/arm/marvell-pj4.md: New file.
7662 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
7663 * config/arm/arm.md (generic_sched): Add marvell_pj4.
7664 (generic_vfp): Likewise.
7665 * config/arm/arm-cores.def: Add marvell-pj4.
7666 * config/arm/arm-tune.md: Regenerate.
7667 * config/arm/arm-tables.opt: Regenerate.
7668 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
7669 * doc/invoke.texi: Document marvell-pj4.
7671 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
7673 * config/aarch64/arm_neon.h: Map scalar types to standard types.
7675 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
7680 * var-tracking.c (negative_power_of_two_p): New.
7681 (global_get_addr_cache, local_get_addr_cache): New.
7682 (get_addr_from_global_cache, get_addr_from_local_cache): New.
7683 (vt_canonicalize_addr): Rewrite using the above. Adjust the
7685 (vt_stack_offset_p): Remove.
7686 (vt_canon_true_dep): Always canonicalize loc's address.
7687 (clobber_overlapping_mems): Make sure we have a MEM.
7688 (local_get_addr_clear_given_value): New.
7689 (val_reset): Clear local cached entries.
7690 (compute_bb_dataflow): Create and release the local cache.
7691 Disable duplicate MEMs clobbering.
7692 (emit_notes_in_bb): Clobber MEMs likewise.
7693 (vt_emit_notes): Create and release the local cache.
7694 (vt_initialize, vt_finalize): Create and release the global
7695 cache, respectively.
7696 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
7698 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
7701 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
7702 not found in the symtab.
7704 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
7707 PR rtl-optimization/55547
7708 PR rtl-optimization/53827
7711 * alias.c (offset_overlap_p): New, factored out of...
7712 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
7713 the conservative special case for symbolic constants. Don't
7714 adjust zero sizes on alignment.
7716 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
7718 PR rtl-optimization/52573
7719 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
7720 REG_UNUSED for the same register.
7722 2013-01-17 Richard Biener <rguenther@suse.de>
7723 Marek Polacek <polacek@redhat.com>
7725 PR rtl-optimization/55833
7726 * loop-unswitch.c (unswitch_loops): Move loop verification...
7727 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
7728 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
7729 Set it to true when we're removing a loop from hierarchy tree in
7730 an irreducible region.
7731 (fix_bb_placements): Adjust caller.
7732 (fix_loop_placements): Likewise.
7734 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
7736 * config/avr/builtins.def (DEF_BUILTIN): Factor out
7737 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
7738 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
7739 Remove ID. Adjust comments.
7740 * config/avr/avr-c.c (avr_builtin_name): Remove.
7741 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
7742 * config/avr/avr.c (avr_tolower): New static function.
7743 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
7744 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
7745 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
7748 2013-01-17 Jan Hubicka <jh@suse.cz>
7750 PR tree-optimization/55273
7751 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
7753 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
7756 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
7757 store through atomic_store<mode>_1.
7758 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
7760 2013-01-17 Martin Jambor <mjambor@suse.cz>
7762 PR tree-optimizations/55264
7763 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
7764 for virtual methods.
7765 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
7766 virtual methods before inlining is over.
7767 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
7769 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
7772 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
7774 PR rtl-optimization/56005
7775 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
7776 pending reads for prefetch.
7778 2013-01-16 Ian Bolton <ian.bolton@arm.com>
7780 * config/aarch64/aarch64.md
7781 (*cstoresi_neg_uxtw): New pattern.
7782 (*cmovsi_insn_uxtw): New pattern.
7783 (*<optab>si3_uxtw): New pattern.
7784 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
7785 (*<optab>si3_insn_uxtw): New pattern.
7786 (*bswapsi2_uxtw): New pattern.
7788 2013-01-16 Richard Biener <rguenther@suse.de>
7790 * tree-inline.c (tree_function_versioning): Remove set but
7791 never used variable.
7793 2013-01-16 Richard Biener <rguenther@suse.de>
7795 PR tree-optimization/55964
7796 * tree-flow.h (rename_variables_in_loop): Remove.
7797 (rename_variables_in_bb): Likewise.
7798 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
7799 (copy_loop_before): Adjust and delete update-ssa status.
7800 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
7801 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
7802 (rename_variables_in_loop): Remove.
7803 (slpeel_update_phis_for_duplicate_loop): Likewise.
7804 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
7805 use available cfg machinery instead of duplicating it.
7806 Update PHI nodes and perform poor-mans SSA update here.
7807 (slpeel_tree_peel_loop_to_edge): Adjust.
7809 2013-01-16 Richard Biener <rguenther@suse.de>
7811 PR tree-optimization/54767
7812 PR tree-optimization/53465
7813 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
7814 (vrp_visit_phi_node): For PHI arguments coming via backedges
7815 drop all symbolical range information.
7816 (execute_vrp): Compute backedges.
7818 2013-01-16 Richard Biener <rguenther@suse.de>
7820 * doc/install.texi: Update CLooG and ISL requirements to
7823 2013-01-16 Christian Bruel <christian.bruel@st.com>
7826 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
7827 (broken_move): Handle UNSPECV_SP_SWITCH_B.
7828 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
7830 2013-01-16 DJ Delorie <dj@redhat.com>
7832 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
7833 (UNSPECV_SP_SWITCH_E): New.
7834 (sp_switch_1): Change to an unspec.
7835 (sp_switch_2): Change to an unspec. Don't use post-inc when we
7838 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
7840 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
7841 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
7842 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
7843 (expand_mem_thread_fence): Ditto.
7844 (expand_mem_signal_fence): Ditto.
7845 (expand_atomic_load): Ditto.
7846 (expand_atomic_store): Ditto.
7848 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
7850 PR rtl-optimization/55547
7851 PR rtl-optimization/53827
7854 * alias.c (memrefs_conflict_p): Set sizes to negative after
7857 2013-01-15 Jakub Jelinek <jakub@redhat.com>
7860 * function.c (thread_prologue_and_epilogue_insns): Always
7861 add crtl->drap_reg to set_up_by_prologue.set, even if
7862 stack_realign_drap is false.
7864 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7866 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
7867 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
7868 *call): Fix indention.
7870 2013-01-15 Tom de Vries <tom@codesourcery.com>
7873 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
7876 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
7878 PR rtl-optimization/55153
7879 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
7881 2013-01-15 Martin Jambor <mjambor@suse.cz>
7883 PR tree-optimization/55920
7884 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
7885 accesses as grp_to_be_debug_replaced.
7887 2013-01-15 Jakub Jelinek <jakub@redhat.com>
7889 PR tree-optimization/55920
7890 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
7891 there is non-useless type conversion needed from debug rhs to lhs,
7892 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
7894 2013-01-15 Joseph Myers <joseph@codesourcery.com>
7895 Mikael Pettersson <mikpe@it.uu.se>
7898 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
7900 (ASM_OUTPUT_CASE_LABEL): Remove.
7901 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
7902 * final.c (shorten_branches): Update alignment of labels before
7903 jump tables if CASE_VECTOR_SHORTEN_MODE.
7905 2013-01-15 Richard Biener <rguenther@suse.de>
7908 * system.h: Do not include gmp.h for building host tools.
7910 2013-01-15 Richard Biener <rguenther@suse.de>
7913 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
7914 account for bitpos when computing alignment.
7916 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
7918 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
7919 (ix86_target_macros_internal): Likewise.
7921 * config/i386/i386.c (m_CORE2I7): Removed.
7922 (m_CORE_HASWELL): New macro.
7923 (m_CORE_ALL): Likewise.
7924 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
7925 (initial_ix86_arch_features): Likewise.
7926 (processor_target_table): Initializations for Core avx2.
7927 (cpu_names): New names "core-avx2".
7928 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
7929 PROCESSOR_CORE_HASWELL.
7930 (ix86_issue_rate): New case.
7931 (ia32_multipass_dfa_lookahead): Likewise.
7932 (ix86_sched_init_global): Likewise.
7934 * config/i386/i386.h (TARGET_HASWELL): New macro.
7935 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
7936 (processor_type): New PROCESSOR_HASWELL.
7938 2013-01-15 Jakub Jelinek <jakub@redhat.com>
7940 PR tree-optimization/55955
7941 * tree-vect-loop.c (vectorizable_reduction): Give up early on
7942 *SHIFT_EXPR and *ROTATE_EXPR codes.
7944 PR tree-optimization/48766
7945 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
7946 -ftrapv disable -fwrapv.
7948 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
7951 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
7952 etc. to 1 and not to __flash.
7953 Use LL suffix for __INT24_MAX__ with -mint8.
7954 Use ULL suffix for __UINT24_MAX__ with -mint8.
7956 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
7958 * config/avr/avr-arch.h
7959 (struct base_arch_s): Use typedef avr_arch_t instead.
7960 (struct arch_info_s): Use typedef avr_arch_info_t instead.
7961 (struct mcu_type_s): Use typedef avr_mcu_t instead.
7962 * config/avr/avr.c: Same.
7963 * config/avr/avr-devices.c: Same.
7964 * config/avr/driver-avr.c: Same.
7965 * config/avr/gen-avr-mmcu-texi.c: Same.
7966 * config/avr/avr-mcus.def: Adjust comment.
7968 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
7970 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
7971 * config/aarch64/iterators.md (VALLDI): New.
7973 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
7974 Andi Kleen <ak@linux.intel.com>
7977 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
7978 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
7981 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
7983 * config/avr/avr-stdint.h: Remove trailing blanks.
7984 * config/avr/avr-log.h: Same.
7985 * config/avr/avr-arch.h: Same.
7986 * config/avr/avr-devices.c: Same.
7987 * config/avr/avr-dimode.md: Same.
7988 * config/avr/predicates.md: Same.
7989 * config/avr/avr-c.c: Same. And fix typo.
7991 * config/avr/avr-protos.h: Same. And:
7992 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
7993 (init_cumulative_args): Rename to avr_init_cumulative_args.
7994 (expand_prologue): Rename to avr_expand_prologue.
7995 (expand_epilogue): Rename to avr_expand_epilogue.
7996 (adjust_insn_length): Rename to avr_adjust_insn_length.
7997 (notice_update_cc): Rename to avr_notice_update_cc.
7998 (final_prescan_insn): Rename to avr_final_prescan_insn.
7999 * config/avr/avr.c: Same.
8000 * config/avr/avr.h: Same.
8001 * config/avr/avr.md: Remove trailing blanks.
8002 (prologue): Use avr_expand_prologue.
8003 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
8005 2013-01-14 Richard Biener <rguenther@suse.de>
8007 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
8008 verify_location, collect_subblocks): New functions.
8009 (verify_gimple_in_cfg): Verify that locations only reference
8010 BLOCKs in the functions BLOCK tree.
8012 2013-01-14 Richard Biener <rguenther@suse.de>
8014 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
8016 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
8018 (insert_out_of_ssa_copy_on_edge): Likewise.
8019 (rewrite_close_phi_out_of_ssa): Likewise.
8020 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
8022 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
8023 propagated constants.
8024 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
8027 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
8029 * config/avr/avr-modes.def: Add GPL copyright notice.
8031 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
8033 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
8034 MEMMODEL_MASK to determine memory model.
8035 (atomic_store<mode>): Ditto from operands[2].
8036 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
8038 2013-01-13 Jakub Jelinek <jakub@redhat.com>
8041 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
8042 (fold_gimple_assign): Don't call unshare_expr here.
8043 (fold_ctor_reference): Call unshare_expr.
8045 2013-01-13 Terry Guo <terry.guo@arm.com>
8047 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
8048 * doc/fragments.texi: Document MULTILIB_REUSE.
8049 * gcc.c (multilib_reuse): New internal spec.
8050 (set_multilib_dir): Also search multilib from multilib_reuse.
8051 * genmultilib (tmpmultilib3): Refactor code.
8052 (tmpmultilib4): Ditto.
8053 (multilib_reuse): New multilib argument.
8055 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
8057 * Makefile.in: Update copyright.
8059 2013-01-12 Tom de Vries <tom@codesourcery.com>
8062 * calls.c (expand_call): Check if arg_nr is valid.
8064 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
8066 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
8067 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
8068 documentation. Add missing '__' in front of
8069 __builtin_ia32_packssdw256.
8071 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8074 * config/s390/s390.c (s390_preferred_reload_class): Do not return
8075 NO_REGS for larl operands.
8076 (s390_reload_larl_operand): Use s390_load_address instead of
8079 2013-01-11 Richard Biener <rguenther@suse.de>
8081 * tree-cfg.c (verify_node_sharing_1): Split out from ...
8082 (verify_node_sharing): ... here.
8083 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
8085 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
8087 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
8088 Substitute TREECHECKING.
8089 * configure: Regenerate.
8090 * Makefile.in (TREECHECKING): New.
8092 2013-01-11 Richard Guenther <rguenther@suse.de>
8094 PR tree-optimization/44061
8095 * tree-vrp.c (extract_range_basic): Compute zero as
8096 value-range for __builtin_constant_p of function parameters.
8098 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
8100 Update copyright years.
8102 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
8104 PR rtl-optimization/55672
8105 * lra-eliminations.c (mark_not_eliminable): Permit addition with
8106 const to be eliminable.
8108 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
8110 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
8111 * configure: Regenerate.
8113 2013-01-10 Richard Biener <rguenther@suse.de>
8115 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
8117 2013-01-10 Richard Biener <rguenther@suse.de>
8120 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
8121 locations for virtual PHI arguments.
8122 (rewrite_update_phi_arguments): Likewise.
8124 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
8126 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
8129 2013-01-10 Jakub Jelinek <jakub@redhat.com>
8131 PR tree-optimization/55921
8132 * tree-complex.c (expand_complex_asm): New function.
8133 (expand_complex_operations_1): Call it for GIMPLE_ASM.
8135 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8138 * config/s390/s390.c (s390_symref_operand_p)
8139 (s390_loadrelative_operand_p): Merge the two functions.
8140 (s390_check_qrst_address, print_operand_address): Add parameters
8141 to s390_loadrelative_operand_p invokation.
8142 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
8143 (s390_reload_larl_operand, s390_secondary_reload): Use
8144 s390_loadrelative_operand_p instead of s390_symref_operand_p.
8145 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
8147 2013-01-09 Mike Stump <mikestump@comcast.net>
8149 * dse.c (record_store): Remove unnecessary assert.
8151 2013-01-09 Jan Hubicka <jh@suse.cz>
8153 PR tree-optimization/55569
8154 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
8155 * cfgloop.h (scale_loop_profile): Likewise.
8157 2013-01-09 Jan Hubicka <jh@suse.cz>
8160 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
8162 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
8164 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
8167 * expr.h (maybe_emit_group_store): Declare.
8168 * expr.c (maybe_emit_group_store): New function.
8169 * builtins.c (expand_builtin_int_roundingfn): Call it.
8170 (expand_builtin_int_roundingfn_2): Likewise.
8172 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
8174 PR rtl-optimization/55829
8175 * lra-constraints.c (match_reload): Add code for absent output.
8176 (curr_insn_transform): Add code for reloads of matched inputs
8179 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
8181 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
8182 attribute of movddup insn to DF.
8183 (*vec_interleave_lowv2df): Ditto.
8184 (vec_dupv2df): Ditto.
8186 2013-01-09 Jan Hubicka <jh@suse.cz>
8188 PR tree-optimiation/55875
8189 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
8190 EVERY_ITERATION parameter.
8191 (number_of_iterations_exit): Check if exit is executed every iteration.
8192 (idx_infer_loop_bounds): Similarly here.
8193 (n_of_executions_at_most): Simplify
8194 to only test for cases where statement is dominated by the
8195 particular bound; handle correctly the "postdominance" test.
8196 (scev_probably_wraps_p): Use max loop iterations info
8197 as a global bound first.
8199 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
8200 Nick Clifton <nickc@redhat.com>
8202 * config/v850/v850.md (cbranchsf4): New pattern.
8203 (cstoresf4): New pattern.
8204 (cbranchdf4): New pattern.
8205 (cstoredf4): New pattern.
8206 (movsicc): Disallow floating point comparisons.
8207 (cmpsf_le_insn): Fix order of operators.
8208 (cmpsf_lt_insn): Likewise.
8209 (cmpsf_eq_insn): Likewise.
8210 (cmpdf_le_insn): Likewise.
8211 (cmpdf_lt_insn): Likewise.
8212 (cmpdf_eq_insn): Likewise.
8213 (cmpsf_ge_insn): Use LE comparison.
8214 (cmpdf_ge_insn): Likewise.
8215 (cmpsf_gt_insn): Use LT comparison.
8216 (cmpdf_gt_insn): Likewise.
8217 (cmpsf_ne_insn): Delete pattern.
8218 (cmpdf_ne_insn): Delete pattern.
8219 * config/v850/v850.c (v850_gen_float_compare): Use
8220 gen_cmpdf_eq_insn for NE comparison.
8221 (v850_float_z_comparison_operator)
8222 (v850_float_nz_comparison_operator): Move from here ...
8223 * config/v850/predicates.md: ... to here. Move GT and GE
8224 comparisons into v850_float_z_comparison_operator.
8225 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
8227 (v850_float_nz_comparison_operator): Likewise.
8229 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8231 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
8232 with calls to gen_insvsi/gen_insvdi.
8234 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
8236 * config/i386/i386.c (initial_ix86_tune_features): Set up
8237 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
8239 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
8240 Jakub Jelinek <jakub@redhat.com>
8242 PR tree-optimization/48189
8243 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
8244 If nitercst is 0, don't predict the exit edge.
8246 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8248 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
8249 in asm_fprintf with reg_names.
8250 (aarch64_print_operand_address): Likewise.
8251 (aarch64_return_addr): Likewise.
8252 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
8254 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8256 * config/pa/pa.h (VAL_U6_BITS_P): Define.
8257 (INT_U6_BITS): Likewise.
8258 * config/pa/predicates.md (uint6_operand): New predicate.
8259 (shift5_operand, shift6_operand): Likewise.
8260 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
8262 (lshrdi3): Use shift6_operand.
8263 (shrpsi4, shrpdi4): New insn patterns.
8264 (extzv): Delete expander.
8265 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
8266 predicates in unamed zero extract patterns. Tighten common constraint.
8267 (extv): Delete expander.
8268 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
8269 predicates in unamed sign extract patterns. Tighten common constraint.
8270 (insv): Delete expander.
8271 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
8272 predicates in unamed insert patterns. Tighten common constraint.
8273 Change uint32_operand predicate to uint6_operand predicate in unamed
8274 DImode pattern to insert constant values of type 1...1xxxx.
8276 2013-01-04 Jan Hubicka <jh@suse.cz>
8278 PR tree-optimization/55823
8279 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
8282 2013-01-08 Jakub Jelinek <jakub@redhat.com>
8283 Uros Bizjak <ubizjak@gmail.com>
8285 PR rtl-optimization/55845
8286 * df-problems.c (can_move_insns_across): Stop scanning at
8287 volatile_insn_p source instruction or give up if
8288 across_from .. across_to range contains any volatile_insn_p
8291 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
8293 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
8294 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
8296 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
8297 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
8299 2013-01-08 Jakub Jelinek <jakub@redhat.com>
8302 * asan.c (asan_clear_shadow): New function.
8303 (asan_emit_stack_protection): Use it.
8305 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
8307 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
8308 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
8309 with tab instead of space.
8311 2013-01-08 Nick Clifton <nickc@redhat.com>
8313 * config/rl78/rl78.c (rl78_expand_prologue): Always select
8314 register bank 0 at the start of an interrupt handler.
8315 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
8318 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
8320 * config/aarch64/aarch64-simd.md
8321 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
8322 (aarch64_simd_bsl): Likewise.
8323 (aarch64_vcond_internal<mode>): Likewise.
8324 (vcond<mode><mode>): Likewise.
8325 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
8326 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
8328 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
8330 * config/aarch64/aarch64-builtins.c
8331 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
8333 2013-01-08 Martin Jambor <mjambor@suse.cz>
8336 * tree-sra.c (analyze_access_subtree): Return true also after
8337 potentially creating a debug-only replacement.
8339 2013-01-08 Jakub Jelinek <jakub@redhat.com>
8342 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
8344 PR tree-optimization/54120
8345 * tree-vrp.c (range_fits_type_p): Don't allow
8346 src_precision < precision from signed vr to unsigned_p
8347 if vr->min or vr->max is negative.
8348 (simplify_float_conversion_using_ranges): Test can_float_p
8349 against CODE_FOR_nothing.
8351 2013-01-08 Jakub Jelinek <jakub@redhat.com>
8352 Richard Biener <rguenther@suse.de>
8355 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
8356 types instead of just INTEGER_TYPE types.
8358 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
8360 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
8363 2013-01-07 Steve Ellcey <sellcey@mips.com>
8366 * config/mips/mips.opt: Change mad to mmad to match documentation.
8368 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
8371 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
8374 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
8377 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
8378 (avr_addrspace_t): Add .section_name field.
8379 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
8381 (avr_addrspace): Same. Initialize .section_name. Remove last
8382 NULL entry. Put __memx into .progmemx.data.
8383 (progmem_section_prefix): Remove.
8384 (avr_asm_init_sections): No need to initialize progmem_section.
8385 (avr_asm_named_section): Use avr_addrspace[].section_name to get
8386 section name prefix.
8387 (avr_asm_select_section): Ditto. And use get_unnamed_section to
8388 retrieve the progmem section.
8389 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
8390 boundary to run over avr_addrspace[].
8391 (avr_register_target_pragmas): Ditto.
8393 2013-01-06 Jakub Jelinek <jakub@redhat.com>
8395 * varasm.c (output_constant_def_contents): For asan_protect_global
8396 protected strings, adjust DECL_ALIGN if needed, before testing for
8398 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
8399 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
8401 (output_object_block): For asan protected decls, emit asan padding
8402 after their contents.
8403 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
8404 (asan_finish_file): Test it here instead.
8406 2013-01-07 Nick Clifton <nickc@redhat.com>
8407 Matthias Klose <doko@debian.org>
8408 Doug Kwan <dougkwan@google.com>
8409 H.J. Lu <hongjiu.lu@intel.com>
8412 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
8414 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
8416 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
8418 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
8420 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
8422 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
8425 * doc/install.texi (Cross-Compiler-Specific Options): Document
8428 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
8430 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
8431 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
8432 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
8433 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
8434 vqmovun_high_s64): Fix source operand number and update copyright.
8436 2013-01-07 Richard Biener <rguenther@suse.de>
8439 * gimple.h (gimple_call_builtin_p): New overload.
8440 * gimple.c (validate_call): New function.
8441 (gimple_call_builtin_p): Likewise.
8442 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8443 Use gimple_call_builtin_p.
8444 (find_func_clobbers): Likewise.
8445 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
8446 (strlen_optimize_stmt): Likewise.
8448 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
8450 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
8451 (vld1q_dup_*): Likewise.
8453 (vld1q_*): Likewise.
8454 (vld1_lane_*): Likewise.
8455 (vld1q_lane_*): Likewise.
8457 2013-01-07 Richard Biener <rguenther@suse.de>
8459 * lto-streamer.h (LTO_minor_version): Bump to 2.
8461 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
8463 * config/aarch64/aarch64-protos.h
8464 (aarch64_const_double_zero_rtx_p): Rename to...
8465 (aarch64_float_const_zero_rtx_p): ...this.
8466 (aarch64_float_const_representable_p): New.
8467 (aarch64_output_simd_mov_immediate): Likewise.
8468 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
8469 move immediate case.
8470 * config/aarch64/aarch64.c
8471 (aarch64_const_double_zero_rtx_p): Rename to...
8472 (aarch64_float_const_zero_rtx_p): ...this.
8473 (aarch64_print_operand): Allow printing of new constants.
8474 (aarch64_valid_floating_const): New.
8475 (aarch64_legitimate_constant_p): Check for valid floating-point
8477 (aarch64_simd_valid_immediate): Likewise.
8478 (aarch64_vect_float_const_representable_p): New.
8479 (aarch64_float_const_representable_p): Likewise.
8480 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
8481 (aarch64_output_simd_mov_immediate): New.
8482 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
8483 (*movdf_aarch64): Likewise.
8484 * config/aarch64/constraints.md (Ufc): New.
8485 (Y): call aarch64_float_const_zero_rtx.
8486 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
8488 2013-01-07 Richard Biener <rguenther@suse.de>
8490 PR tree-optimization/55888
8491 PR tree-optimization/55862
8492 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
8493 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
8494 not if it is contained therein.
8496 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
8498 * config/avr/t-avr: Typo.
8500 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
8503 * config/avr/t-avr: Don't automatically rebuild
8504 $(srcdir)/config/avr/t-multilib
8505 $(srcdir)/config/avr/avr-tables.opt
8506 $(srcdir)/doc/avr-mmcu.texi
8507 (avr-mcus): New phony target to build them on request.
8508 (s-avr-mlib, s-avr-mmcu-texi): Remove.
8509 * avr/avr-mcus.def: Adjust comments.
8511 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
8513 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
8515 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
8517 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
8519 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
8521 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
8523 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
8525 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
8526 to generate profiling.
8527 * config/rs6000/aix64.h (LIB_SPEC): Same.
8529 2013-01-04 Andrew Pinski <apinski@cavium.com>
8531 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
8533 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
8535 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
8537 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
8539 (ix86_expand_move): Ditto.
8540 (ix86_zero_extend_to_Pmode): Ditto.
8541 (ix86_expand_call): Ditto.
8542 (ix86_expand_special_args_builtin): Ditto.
8543 (ix86_expand_builtin): Ditto.
8545 2013-01-04 Richard Biener <rguenther@suse.de>
8547 PR tree-optimization/55862
8548 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
8549 translating them through PHI nodes.
8551 2013-01-04 Martin Jambor <mjambor@suse.cz>
8553 PR tree-optimization/55755
8554 * tree-sra.c (sra_modify_assign): Do not check that an access has no
8555 children when trying to avoid producing a VIEW_CONVERT_EXPR.
8557 2013-01-04 Marek Polacek <polacek@redhat.com>
8560 * opts.c (default_options_optimization): Clarify error message.
8562 2013-01-04 Richard Biener <rguenther@suse.de>
8565 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
8568 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8571 * config/pa/pa.md (movsi): Revert previous change.
8572 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
8575 2013-01-03 Richard Henderson <rth@redhat.com>
8577 * config/i386/i386.c (ix86_expand_move): Always assign to op1
8578 after eliminating TLS symbols.
8580 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
8583 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
8584 * graphite-poly.c (debug_gmp_value): Likewise.
8586 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
8589 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
8590 selected code model, define __code_mode_small__, __code_model_medium__,
8591 __code_model_large__, __code_model_32__ or __code_model_kernel__.
8592 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
8593 xchg temporary register with %k. Declare temporary register as
8595 [__x86_64__]: For medium and large code models, preserve %rbx register.
8597 2013-01-03 Richard Biener <rguenther@suse.de>
8599 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
8600 (dump_subscript): Adjust.
8601 (finalize_ddr_dependent): Do not dump redundant info.
8602 (analyze_siv_subscript): Adjust.
8603 (subscript_dependence_tester): Likewise.
8604 (compute_affine_dependence): Likewise.
8606 2013-01-03 Richard Biener <rguenther@suse.de>
8609 2013-01-03 Richard Biener <rguenther@suse.de>
8611 PR tree-optimization/55857
8612 * tree-vect-stmts.c (vectorizable_load): Do not setup
8613 re-alignment for invariant loads.
8615 2013-01-02 Richard Biener <rguenther@suse.de>
8617 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
8618 invariant load do not generate a vector load from the scalar location.
8620 2013-01-03 Richard Biener <rguenther@suse.de>
8622 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
8623 for not vectorizing.
8624 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
8625 not build INDIRECT_REFs, call get_name once only.
8626 (vect_create_data_ref_ptr): Likewise. Dump base object kind
8627 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
8629 2013-01-03 Richard Biener <rguenther@suse.de>
8631 PR tree-optimization/55857
8632 * tree-vect-stmts.c (vectorizable_load): Do not setup
8633 re-alignment for invariant loads.
8635 2013-01-03 Richard Biener <rguenther@suse.de>
8638 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
8639 prefer a built-in decl.
8641 2013-01-03 Jakub Jelinek <jakub@redhat.com>
8643 * gcc.c (process_command): Update copyright notice dates.
8644 * gcov.c (print_version): Likewise.
8645 * gcov-dump.c (print_version): Likewise.
8647 PR rtl-optimization/55838
8648 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
8649 iv0.step, iv1.step and step.
8651 2013-01-03 Jakub Jelinek <jakub@redhat.com>
8652 Marc Glisse <marc.glisse@inria.fr>
8654 PR tree-optimization/55832
8655 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
8656 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
8657 integer_{one,zero}_node.
8659 2013-01-03 Jakub Jelinek <jakub@redhat.com>
8662 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
8663 * var-tracking.c (reverse_op): Don't add reverse ops to
8664 VALUEs that have already
8665 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
8667 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
8669 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
8671 2013-01-02 Teresa Johnson <tejohnson@google.com>
8673 * dumpfile.c (dump_loc): Print filename with location.
8674 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
8675 new location_t parameter to emit complete unroll message with
8677 (canonicalize_loop_induction_variables): Compute loops location
8678 and pass to try_unroll_loop_completely.
8679 * loop-unroll.c (report_unroll_peel): New function.
8680 (peel_loops_completely): Use new dump format with location
8681 for main dumpfile message, and invoke report_unroll_peel on success.
8682 (decide_unrolling_and_peeling): Ditto.
8683 (decide_peel_once_rolling): Remove old dumpfile message subsumed
8684 by report_unroll_peel.
8685 (decide_peel_completely): Ditto.
8686 (decide_unroll_constant_iterations): Ditto.
8687 (decide_unroll_runtime_iterations): Ditto.
8688 (decide_peel_simple): Ditto.
8689 (decide_unroll_stupid): Ditto.
8690 * cfgloop.c (get_loop_location): New function.
8691 * cfgloop.h (get_loop_location): Declare.
8693 2013-01-02 Sriraman Tallam <tmsriram@google.com>
8695 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
8698 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8701 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
8702 BLKmode objects when EXPAND_MEMORY is specified.
8704 2013-01-02 Sriraman Tallam <tmsriram@google.com>
8706 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
8708 (fold_builtin_cpu): Do not share cpu model decls across statements.
8710 2013-01-02 Jason Merrill <jason@redhat.com>
8713 * tree.c (build_array_type_1): Revert earlier change.
8715 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
8717 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
8719 * config/aarch64/aarch64-tune.md: Re-generate.
8721 2013-01-02 Richard Biener <rguenther@suse.de>
8723 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
8724 invariant load do not generate a vector load from the scalar location.
8726 2013-01-02 Richard Biener <rguenther@suse.de>
8729 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
8730 * configure: Regenerate.
8732 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
8734 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
8735 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
8736 (expand_builtin_int_roundingfn_2): Keep the original target around
8737 for the fallback case.
8739 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
8741 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
8742 to be clear for sign changes.
8744 2013-01-01 Jan Hubicka <jh@suse.cz>
8746 * ipa-inline-analysis.c: Fix formatting.
8748 2013-01-01 Jakub Jelinek <jakub@redhat.com>
8750 PR tree-optimization/55831
8751 * tree-vect-loop.c (get_initial_def_for_induction): Use
8752 gsi_after_labels instead of gsi_start_bb.
8754 Copyright (C) 2013 Free Software Foundation, Inc.
8756 Copying and distribution of this file, with or without modification,
8757 are permitted in any medium without royalty provided the copyright
8758 notice and this notice are preserved.