1 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
3 * config/i386/sse.md (sse_movlhps): Change alternative 3
6 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
9 * config/i386/sse.md (iptr): New mode attribute.
10 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
11 (<sse>_vm<plusminus_insn><mode>3): Ditto.
12 (<sse>_vmmul<mode>3): Ditto.
13 (<sse>_vmdiv<mode>3): Ditto.
14 (sse_vmrcpv4sf2): Ditto.
15 (<sse>_vmsqrt<mode>2): Ditto.
16 (sse_vmrsqrtv4sf2): Ditto.
17 (<sse>_vm<code><mode>3): Ditto.
18 (avx_vmcmp<mode>3): Ditto.
19 (<sse>_vmmaskcmp<mode>3): Ditto.
22 (*xop_vmfrcz_<mode>): Ditto.
23 (*fmai_fmadd_<mode>): Ditto.
24 (*fmai_fmsub_<mode>): Ditto.
25 (*fmai_fnmadd_<mode>): Ditto.
26 (*fmai_fnmsub_<mode>): Ditto.
27 (*fma4i_vmfmadd_<mode>): Ditto.
28 (*fma4i_vmfmsub_<mode>): Ditto.
29 (*fma4i_vmfnmadd_<mode>): Ditto.
30 (*fma4i_vmfnmsub_<mode>): Ditto.
31 (*xop_vmfrcz_<mode>): Ditto.
32 (sse_cvtps2pi): Ditto.
33 (sse_cvttps2pi): Ditto.
34 (sse_cvtss2si): Ditto.
35 (sse_cvtss2si_2): Ditto.
36 (sse_cvtss2siq_2): Ditto.
37 (sse_cvttss2si): Ditto.
38 (sse_cvttss2siq): Ditto.
39 (sse_cvtsd2si): Ditto.
40 (sse_cvtsd2si_2): Ditto.
41 (sse_cvtsd2siq_2): Ditto.
42 (sse_cvttsd2si): Ditto.
43 (sse_cvttsd2siq): Ditto.
44 (sse_cvtsd2ss): Ditto.
45 (sse_cvtss2sd): Ditto.
46 (avx2_pbroadcast<mode>): Ditto.
47 (avx2_pbroadcast<mode>_1): Ditto.
48 (*avx_vperm_broadcast_v4sf): Ditto.
50 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
52 (sse_storehps): Ditto.
54 (sse_storelps): Ditto.
56 (*vec_concatv4sf): Ditto.
57 (*vec_interleave_highv2df): Ditto.
58 (*vec_interleave_lowv2df): Ditto.
59 (*vec_extractv2df_1_sse): Ditto.
60 (*vec_extractv2df_0_sse): Ditto.
61 (sse2_storelpd): Ditto.
62 (sse2_loadlpd): Ditto.
64 (*vec_concatv4si): Ditto.
65 (vec_concatv2di): Ditto.
67 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
68 for Intel asm dialect.
69 (mmx_punpcklwd): Ditto.
70 (mmx_punpckldq): Ditto.
72 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
73 for intel assembler dialect.
75 2013-07-06 Jakub Jelinek <jakub@redhat.com>
78 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
79 for BUILT_IN_C{LZ,LRSB}*.
80 * tree.h (CASE_INT_FN): Add FN##IMAX case.
81 * tree-vrp.c (extract_range_basic): Handle
82 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
83 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
84 fall thru to code calling set_value*.
85 * builtins.c (expand_builtin): Remove *IMAX cases.
86 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
87 if width is bigger than 2*HWI.
89 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
91 PR rtl-optimization/55342
92 * lra-int.h (lra_subreg_reload_pseudos): New.
93 * lra.c: Add undoing optional reloads to the block diagram.
94 (lra_subreg_reload_pseudos): New.
95 (lra_optional_reload_pseudos): Change comments.
96 (lra): Init and clear lra_subreg_reload_pseudos. Clear
97 lra_optional_reload_pseudos after undo transformations.
98 * lra-assigns.c (pseudo_prefix_title): New.
99 (lra_setup_reg_renumber): Use it.
100 (spill_for): Ditto. Check subreg reload pseudos too.
101 (assign_by_spills): Consider subreg reload pseudos too.
102 * lra-constraints.c (simplify_operand_subreg): Use
103 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
104 (curr_insn_transform): Recognize and do optional reloads.
105 (undo_optional_reloads): New.
106 (lra_undo_inheritance): Call undo_optional_reloads.
108 2013-07-05 Thomas Quinot <quinot@adacore.com>
110 * tree-complex.c (expand_complex_operations_1): Fix typo.
112 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
114 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
115 (tune_params): New member 'const vec_costs'.
116 * config/aarch64/aarch64.c (generic_vector_cost): New.
117 (generic_tunings): New member 'generic_vector_cost'.
118 (aarch64_builtin_vectorization_cost): New.
119 (aarch64_add_stmt_cost): New.
120 (TARGET_VECTORIZE_ADD_STMT_COST): New.
121 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
123 2013-07-03 Jakub Jelinek <jakub@redhat.com>
126 * config/i386/predicates.md (vsib_address_operand): Disallow
127 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
129 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
132 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
133 expand_builtin_setjmp_receiver.
134 (expand_label): Adjust, call expand_builtin_setjmp_receiver
135 with NULL for the label parameter.
136 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
137 the frame-pointer. Adjust comments.
138 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
139 only if LABEL is non-NULL.
141 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
143 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
144 (ARM_ABI_AAPCS64): Ditto.
146 (ARM_DEFAULT_ABI): Ditto.
148 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
150 * config/aarch64/aarch64-builtins.c
151 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
152 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
154 * config/aarch64/aarch64-simd.md
155 (aarch64_ld1<VALL:mode>): New.
156 (aarch64_st1<VALL:mode>): Likewise.
157 * config/aarch64/arm_neon.h
158 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
160 2013-07-02 Sriraman Tallam <tmsriram@google.com>
162 * config/i386/i386.c (gate_insert_vzeroupper): Check if
164 (ix86_option_override_internal):Turn on all -mavx target flags by
165 default as they are dependent on AVX anyway.
167 2013-07-02 Cary Coutant <ccoutant@google.com>
169 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
171 (loc_checksum_ordered): Likewise.
172 (hash_loc_operands): Remove inline keyword.
174 2013-07-02 Jakub Jelinek <jakub@redhat.com>
176 PR tree-optimization/57741
177 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
178 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
179 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
180 Allow REAL_CST step_exprs if flag_associative_math.
181 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
183 2013-07-02 Ian Bolton <ian.bolton@arm.com>
185 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
187 2013-07-02 Ian Bolton <ian.bolton@arm.com>
189 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
191 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
193 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
195 (iorsi3_insn): Likewise.
196 (arm_xorsi3): Likewise.
198 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
200 * arm.md (attribute "wtype"): Delete. Move attribute values from here
202 (attribute "type"): ... here, and prefix with "wmmx_".
203 (attribute "core_cycles"): Update for attribute changes.
204 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
205 (tbcstv4hi): Likewise.
206 (tbcstv2si): Likewise.
207 (iwmmxt_iordi3): Likewise.
208 (iwmmxt_xordi3): Likewise.
209 (iwmmxt_anddi3): Likewise.
210 (iwmmxt_nanddi3): Likewise.
211 (iwmmxt_arm_movdi): Likewise.
212 (iwmmxt_movsi_insn): Likewise.
213 (mov<mode>_internal): Likewise.
214 (and<mode>3_iwmmxt): Likewise.
215 (ior<mode>3_iwmmxt): Likewise.
216 (xor<mode>3_iwmmxt): Likewise.
217 (add<mode>3_iwmmxt): Likewise.
218 (ssaddv8qi3): Likewise.
219 (ssaddv4hi3): Likewise.
220 (ssaddv2si3): Likewise.
221 (usaddv8qi3): Likewise.
222 (usaddv4hi3): Likewise.
223 (usaddv2si3): Likewise.
224 (sub<mode>3_iwmmxt): Likewise.
225 (sssubv8qi3): Likewise.
226 (sssubv4hi3): Likewise.
227 (sssubv2si3): Likewise.
228 (ussubv8qi3): Likewise.
229 (ussubv4hi3): Likewise.
230 (ussubv2si3): Likewise.
231 (mulv4hi3_iwmmxt): Likewise.
232 (smulv4hi3_highpart): Likewise.
233 (umulv4hi3_highpart): Likewise.
234 (iwmmxt_wmacs): Likewise.
235 (iwmmxt_wmacsz): Likewise.
236 (iwmmxt_wmacu): Likewise.
237 (iwmmxt_wmacuz): Likewise.
238 (iwmmxt_clrdi): Likewise.
239 (iwmmxt_clrv8qi): Likewise.
240 (iwmmxt_clr4hi): Likewise.
241 (iwmmxt_clr2si): Likewise.
242 (iwmmxt_uavgrndv8qi3): Likewise.
243 (iwmmxt_uavgrndv4hi3): Likewise.
244 (iwmmxt_uavgv8qi3): Likewise.
245 (iwmmxt_uavgv4hi3): Likewise.
246 (iwmmxt_tinsrb): Likewise.
247 (iwmmxt_tinsrh): Likewise.
248 (iwmmxt_tinsrw): Likewise.
249 (iwmmxt_textrmub): Likewise.
250 (iwmmxt_textrmsb): Likewise.
251 (iwmmxt_textrmuh): Likewise.
252 (iwmmxt_textrmsh): Likewise.
253 (iwmmxt_textrmw): Likewise.
254 (iwmxxt_wshufh): Likewise.
258 (gtuv8qi3): Likewise.
259 (gtuv4hi3): Likewise.
260 (gtuv2si3): Likewise.
264 (smax<mode>3_iwmmxt): Likewise.
265 (umax<mode>3_iwmmxt): Likewise.
266 (smin<mode>3_iwmmxt): Likewise.
267 (umin<mode>3_iwmmxt): Likewise.
268 (iwmmxt_wpackhss): Likewise.
269 (iwmmxt_wpackwss): Likewise.
270 (iwmmxt_wpackdss): Likewise.
271 (iwmmxt_wpackhus): Likewise.
272 (iwmmxt_wpackwus): Likewise.
273 (iwmmxt_wpackdus): Likewise.
274 (iwmmxt_wunpckihb): Likewise.
275 (iwmmxt_wunpckihh): Likewise.
276 (iwmmxt_wunpckihw): Likewise.
277 (iwmmxt_wunpckilb): Likewise.
278 (iwmmxt_wunpckilh): Likewise.
279 (iwmmxt_wunpckilw): Likewise.
280 (iwmmxt_wunpckehub): Likewise.
281 (iwmmxt_wunpckehuh): Likewise.
282 (iwmmxt_wunpckehuw): Likewise.
283 (iwmmxt_wunpckehsb): Likewise.
284 (iwmmxt_wunpckehsh): Likewise.
285 (iwmmxt_wunpckehsw): Likewise.
286 (iwmmxt_wunpckelub): Likewise.
287 (iwmmxt_wunpckeluh): Likewise.
288 (iwmmxt_wunpckeluw): Likewise.
289 (iwmmxt_wunpckelsb): Likewise.
290 (iwmmxt_wunpckelsh): Likewise.
291 (iwmmxt_wunpckelsw): Likewise.
292 (ror<mode>3): Likewise.
293 (ashr<mode>3_iwmmxt): Likewise.
294 (lshr<mode>3_iwmmxt): Likewise.
295 (ashl<mode>3_iwmmxt): Likewise.
296 (ror<mode>3_di): Likewise.
297 (ashr<mode>3_di): Likewise.
298 (lshr<mode>3_di): Likewise.
299 (ashl<mode>3_di): Likewise.
300 (iwmmxt_wmadds): Likewise.
301 (iwmmxt_wmaddu): Likewise.
302 (iwmmxt_tmia): Likewise.
303 (iwmmxt_tmiaph): Likewise.
304 (iwmmxt_tmiabb): Likewise.
305 (iwmmxt_tmiatb): Likewise.
306 (iwmmxt_tmiabt): Likewise.
307 (iwmmxt_tmiatt): Likewise.
308 (iwmmxt_tmovmskb): Likewise.
309 (iwmmxt_tmovmskh): Likewise.
310 (iwmmxt_tmovmskw): Likewise.
311 (iwmmxt_waccb): Likewise.
312 (iwmmxt_wacch): Likewise.
313 (iwmmxt_waccw): Likewise.
314 (iwmmxt_waligni): Likewise.
315 (iwmmxt_walignr): Likewise.
316 (iwmmxt_walignr0): Likewise.
317 (iwmmxt_walignr1): Likewise.
318 (iwmmxt_walignr2): Likewise.
319 (iwmmxt_walignr3): Likewise.
320 (iwmmxt_wsadb): Likewise.
321 (iwmmxt_wsadh): Likewise.
322 (iwmmxt_wsadbz): Likewise.
323 (iwmmxt_wsadhz): Likewise.
324 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
325 (iwmmxt_wabsdiffb): Likewise.
326 (iwmmxt_wabsdiffh): Likewise.
327 (iwmmxt_wabsdiffw): Likewise.
328 (iwmmxt_waddsubhx): Likewise
329 (iwmmxt_wsubaddhx): Likewise.
330 (addc<mode>3): Likewise.
331 (iwmmxt_avg4): Likewise.
332 (iwmmxt_avg4r): Likewise.
333 (iwmmxt_wmaddsx): Likewise.
334 (iwmmxt_wmaddux): Likewise.
335 (iwmmxt_wmaddsn): Likewise.
336 (iwmmxt_wmaddun): Likewise.
337 (iwmmxt_wmulwsm): Likewise.
338 (iwmmxt_wmulwum): Likewise.
339 (iwmmxt_wmulsmr): Likewise.
340 (iwmmxt_wmulumr): Likewise.
341 (iwmmxt_wmulwsmr): Likewise.
342 (iwmmxt_wmulwumr): Likewise.
343 (iwmmxt_wmulwl): Likewise.
344 (iwmmxt_wqmulm): Likewise.
345 (iwmmxt_wqmulwm): Likewise.
346 (iwmmxt_wqmulmr): Likewise.
347 (iwmmxt_wqmulwmr): Likewise.
348 (iwmmxt_waddbhusm): Likewise.
349 (iwmmxt_waddbhusl): Likewise.
350 (iwmmxt_wqmiabb): Likewise.
351 (iwmmxt_wqmiabt): Likewise.
352 (iwmmxt_wqmiatb): Likewise.
353 (iwmmxt_wqmiatt): Likewise.
354 (iwmmxt_wqmiabbn): Likewise.
355 (iwmmxt_wqmiabtn): Likewise.
356 (iwmmxt_wqmiatbn): Likewise.
357 (iwmmxt_wqmiattn): Likewise.
358 (iwmmxt_wmiabb): Likewise.
359 (iwmmxt_wmiabt): Likewise.
360 (iwmmxt_wmiatb): Likewise.
361 (iwmmxt_wmiatt): Likewise.
362 (iwmmxt_wmiabbn): Likewise.
363 (iwmmxt_wmiabtn): Likewise.
364 (iwmmxt_wmiatbn): Likewise.
365 (iwmmxt_wmiattn): Likewise.
366 (iwmmxt_wmiawbb): Likewise.
367 (iwmmxt_wmiawbt): Likewise.
368 (iwmmxt_wmiawtb): Likewise.
369 (iwmmxt_wmiawtt): Likewise.
370 (iwmmxt_wmiawbbn): Likewise.
371 (iwmmxt_wmiawbtn): Likewise.
372 (iwmmxt_wmiawtbn): Likewise.
373 (iwmmxt_wmiawttn): Likewise.
374 (iwmmxt_wmerge): Likewise.
375 (iwmmxt_tandc<mode>3): Likewise.
376 (iwmmxt_torc<mode>3): Likewise.
377 (iwmmxt_torvsc<mode>3): Likewise.
378 (iwmmxt_textrc<mode>3): Likewise.
379 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
380 (wmmxt_pack): Likewise.
381 (wmmxt_mult_c1): Likewise.
382 (wmmxt_mult_c2): Likewise.
383 (wmmxt_alu_c1): Likewise.
384 (wmmxt_alu_c2): Likewise.
385 (wmmxt_alu_c3): Likewise.
386 (wmmxt_transfer_c1): Likewise.
387 (wmmxt_transfer_c2): Likewise.
388 (wmmxt_transfer_c3): Likewise.
389 (marvell_f_iwmmxt_wstr): Likewise.
390 (marvell_f_iwmmxt_wldr): Likewise.
392 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
394 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
396 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
399 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
400 * lra-constraints.c (need_for_split_p): Check call used hard regs
401 living through calls.
403 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
404 call used regs for call insn.
406 2013-06-28 Jakub Jelinek <jakub@redhat.com>
409 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
410 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
412 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
414 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
416 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
418 * lra-constraints.c (need_for_split_p): Check call used hard regs
419 living through calls.
421 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
424 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
425 to tie with any other modes. Eliminate Altivec vector mode tests,
426 since these are a subset of ALTIVEC or VSX vector modes. Simplify
427 code, to return 0 if testing MODE2 for a condition, if we've
428 already tested MODE1 for the same condition.
430 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
432 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
435 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
437 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
438 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
440 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
442 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
444 (aarch64_symbolic_constant_p): Remove.
445 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
446 static. Fix line length and white space.
447 (aarch64_symbolic_constant_p): Remove.
448 * config/aarch64/predicates.md (aarch64_valid_symref):
449 Use aarch64_classify_symbol_expression.
451 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
453 * config/arm/constraints.md (Ts): New constraint.
454 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
456 (compare_scc): Use "Ts" constraint for operand 0.
457 (ior_scc_scc): Likewise.
458 (and_scc_scc): Likewise.
459 (and_scc_scc_nodom): Likewise.
460 (ior_scc_scc_cmp): Likewise for operand 7.
461 (and_scc_scc_cmp): Likewise.
462 * config/arm/thumb2.md (thumb2_movsi_insn):
463 Add alternatives for 16-bit encodings.
464 (thumb2_movhi_insn): Likewise.
465 (thumb2_movsicc_insn): Likewise.
466 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
467 (thumb2_negscc): Use "Ts" constraint.
468 Move mvn instruction outside cond_exec block.
469 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
470 for 16-bit encodings.
472 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
474 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
476 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
477 (mulsi3subsi): Likewise.
478 (mulsidi3adddi): Likewise.
479 (mulsidi3_v6): Likewise.
480 (umulsidi3_v6): Likewise.
481 (umulsidi3adddi_v6): Likewise.
482 (smulsi3_highpart_v6): Likewise.
483 (umulsi3_highpart_v6): Likewise.
484 (mulhisi3tb): Likewise.
485 (mulhisi3bt): Likewise.
486 (mulhisi3tt): Likewise.
487 (maddhisi4): Likewise.
488 (maddhisi4tb): Likewise.
489 (maddhisi4tt): Likewise.
490 (maddhidi4): Likewise.
491 (maddhidi4tb): Likewise.
492 (maddhidi4tt): Likewise.
493 (zeroextractsi_compare0_scratch): Likewise.
494 (insv_zero): Likewise.
496 (anddi_notzesidi_di): Likewise.
497 (anddi_notsesidi_di): Likewise.
498 (andsi_notsi_si): Likewise.
499 (iordi_zesidi_di): Likewise.
500 (xordi_zesidi_di): Likewise.
501 (andsi_iorsi3_notsi): Likewise.
505 (not_shiftsi): Likewise.
506 (unaligned_loadsi): Likewise.
507 (unaligned_loadhis): Likewise.
508 (unaligned_loadhiu): Likewise.
509 (unaligned_storesi): Likewise.
510 (unaligned_storehi): Likewise.
511 (extv_reg): Likewise.
512 (extzv_t2): Likewise.
515 (arm_zero_extendhisi2addsi): Likewise.
516 (arm_zero_extendqisi2addsi): Likewise.
517 (compareqi_eq0): Likewise.
518 (arm_extendhisi2_v6): Likewise.
519 (arm_extendqisi2addsi): Likewise.
520 (arm_movt): Likewise.
521 (thumb2_ldrd): Likewise.
522 (thumb2_ldrd_base): Likewise.
523 (thumb2_ldrd_base_neg): Likewise.
524 (thumb2_strd): Likewise.
525 (thumb2_strd_base): Likewise.
526 (thumb2_strd_base_neg): Likewise.
527 (arm_negsi2): Add alternative for 16-bit encoding.
528 (arm_one_cmplsi2): Likewise.
530 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
532 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
533 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
535 * config/arm/vfp.md (*thumb2_movsf_vfp):
536 Disable predication for arm_restrict_it.
537 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
538 (*thumb2_movdfcc_vfp): Likewise.
539 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
540 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
541 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
542 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
543 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
544 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
545 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
546 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
547 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
548 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
549 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
550 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
551 Disable predication for arm_restrict_it.
553 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
555 * config/i386/bmiintrin.h (_bextr_u32): New.
558 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
560 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
561 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
562 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
563 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
564 * config/mips/n32-elf.h: ...this new file.
566 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
569 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
570 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
572 2013-06-27 Catherine Moore <clm@codesourcery.com>
574 * config/mips/mips-tables.opt: Regenerate.
575 * config/mips/mips-cpus.def: Add m14ke and m14kec.
576 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
577 * doc/invoke.texi: Add -m14kc.
579 2013-06-27 Jakub Jelinek <jakub@redhat.com>
582 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
583 constraints of operand 1 and 2.
586 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
587 to match RTL canonicalization. Swap predicates and
588 constraints of operand 1 and 2.
590 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
592 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
593 Process OP_INOUT regs for splitting too.
595 2013-06-27 Jakub Jelinek <jakub@redhat.com>
597 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
598 decl before the loop, initialize to NULL.
599 (vectorizable_load): Initialize ptr_incr to NULL.
601 2013-06-27 Martin Jambor <mjambor@suse.cz>
604 * ipa-ref.h (ipa_maybe_record_reference): Declare.
605 * ipa-ref.c (ipa_maybe_record_reference): New function.
606 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
607 * ipa-cp.c (create_specialized_node): Record potential references from
609 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
611 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
613 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
614 parameter 'mode' of type 'enum machine_mode mode'; change to pass
616 (aarch64_add_offset): Update calls to aarch64_force_temporary.
617 (aarch64_expand_mov_immediate): Likewise.
619 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
621 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
622 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
624 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
626 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
627 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
628 (struct machine_function): Add tbegin_p.
629 (s390_canonicalize_comparison): Fold CC mode compares to
630 conditional jump if possible.
631 (s390_emit_jump): Return the emitted jump.
632 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
633 Handle CCRAWmode compares.
634 (s390_option_override): Default to -mhtm if available.
635 (s390_reg_clobbered_rtx): Handle floating point regs as well.
636 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
637 FPRs instead of df_regs_ever_live_p.
638 (s390_optimize_nonescaping_tx): New function.
639 (s390_init_frame_layout): Extend clobbered_regs array to cover
641 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
642 (s390_expand_tbegin): New function.
643 (enum s390_builtin): New enum definition.
644 (code_for_builtin): New array definition.
645 (s390_init_builtins): New function.
646 (s390_expand_builtin): New function.
647 (TARGET_INIT_BUILTINS): Define.
648 (TARGET_EXPAND_BUILTIN): Define.
649 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
650 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
651 (s390_alc_comparison): Likewise.
652 * config/s390/s390-modes.def: Add CCRAWmode.
653 * config/s390/s390.h (processor_flags): Add PF_TX.
654 (TARGET_CPU_HTM): Define macro.
655 (TARGET_HTM): Define macro.
656 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
657 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
658 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
659 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
660 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
661 (TBEGIN_MASK, TBEGINC_MASK): New constants.
662 ("*cc_to_int"): Move up.
663 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
664 constants other than 0.
665 ("*ccraw_to_int"): New insn and splitter definition.
666 ("tbegin", "tbegin_nofloat", "tbegin_retry")
667 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
668 ("tx_assist"): New expander.
669 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
670 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
671 * config/s390/s390.opt: Add -mhtm option.
672 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
673 * config/s390/htmxlintrin.h: New file.
674 * config/s390/htmintrin.h: New file.
675 * config/s390/s390intrin.h: New file.
676 * doc/extend.texi: Document htm builtins.
677 * config.gcc: Add the new header files to extra_headers.
679 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
681 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
682 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
684 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
685 Pat Haugen <pthaugen@us.ibm.com>
686 Peter Bergner <bergner@vnet.ibm.com>
688 * config/rs6000/power8.md: New.
689 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
690 setting for power8 entry.
691 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
692 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
693 test for Power4/Power5 only.
694 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
696 (force_new_group): Adjust comment.
697 * config/rs6000/rs6000.md: Include power8.md.
699 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
701 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
702 * config/arm/arm-protos.h (arm_max_conditional_execute): New
704 (tune_params): Update comment.
705 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
706 (arm_max_conditional_execute): New function.
707 (thumb2_final_prescan_insn): Use max_insn_skipped and
708 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
710 2013-06-25 Jakub Jelinek <jakub@redhat.com>
712 PR tree-optimization/57705
713 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
714 SSA_NAME step, provided that it is not defined inside the loop.
715 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
716 (get_initial_def_for_induction): Handle SSA_NAME IV step.
718 2013-06-25 Martin Jambor <mjambor@suse.cz>
721 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
722 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
724 (ipa_note_param_call): Initialize member_ptr flag.
725 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
726 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
727 (ipa_write_indirect_edge_info): Stream member_ptr flag.
728 (ipa_read_indirect_edge_info): Likewise.
730 2013-06-25 Richard Biener <rguenther@suse.de>
733 * passes.c (init_optimization_passes): Move pass_fold_builtins
734 and pass_dce earlier with -Og.
736 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
738 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
739 <BIT_FIELD_REF>: Remove trailing TAB.
740 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
743 2013-06-24 Martin Jambor <mjambor@suse.cz>
745 PR tree-optimization/57358
746 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
747 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
748 (ipa_analyze_params_uses): Generate pessimistic info when true.
750 2013-06-24 Martin Jambor <mjambor@suse.cz>
752 PR tree-optimization/57539
753 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
754 global.inlined_to of the new node to it. All callers changed.
755 * ipa-inline-transform.c (clone_inlined_nodes): New variable
756 inlining_into, pass it to cgraph_clone_node.
757 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
758 ipa_free_edge_args_substructures.
759 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
760 rdesc linked list. Do not assert rdesc edges have inlined caller.
761 Assert we have found an rdesc in the rdesc list.
763 2013-06-24 Richard Biener <rguenther@suse.de>
765 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
766 (pointer_set_lookup): Declare.
767 (class pointer_map): New template class implementing a
768 generic pointer to T map.
769 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
770 pointer_map<T>::contains, pointer_map<T>::insert,
771 pointer_map<T>::traverse): New functions.
772 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
773 (pointer_set_lookup): New function.
774 (pointer_set_contains): Use pointer_set_lookup.
775 (pointer_set_insert): Likewise.
776 (insert_aux): Remove.
777 (struct pointer_map_t): Embed a pointer_set_t.
778 (pointer_map_create): Adjust.
779 (pointer_map_destroy): Likewise.
780 (pointer_map_contains): Likewise.
781 (pointer_map_insert): Likewise.
782 (pointer_map_traverse): Likewise.
783 * tree-streamer.h (struct streamer_tree_cache_d): Use a
784 pointer_map<unsigned> instead of a pointer_map_t.
785 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
786 (streamer_tree_cache_lookup): Likewise.
787 (streamer_tree_cache_create): Likewise.
788 (streamer_tree_cache_delete): Likewise.
789 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
790 pointer_map<unsigned> instead of a pointer_map_t.
791 (lto_init_tree_ref_encoder): Adjust.
792 (lto_destroy_tree_ref_encoder): Likewise.
793 * lto-section-out.c (lto_output_decl_index): Likewise.
794 (lto_record_function_out_decl_state): Likewise.
795 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
797 2013-06-24 Richard Biener <rguenther@suse.de>
799 PR tree-optimization/57488
800 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
802 2013-06-24 Alan Modra <amodra@gmail.com>
804 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
805 (gen_easy_altivec_constant): Likewise.
806 * config/rs6000/predicates.md (easy_vector_constant_add_self,
807 easy_vector_constant_msb): Likewise.
809 2013-06-23 Jakub Jelinek <jakub@redhat.com>
812 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
813 add missing return true.
815 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
818 * config/sh/predicates.md (general_extend_operand): Invoke
819 general_movsrc_operand for memory operands.
820 (general_movsrc_operand): Allow reg+reg addressing, do not use
821 general_operand for memory operands.
823 2013-06-23 Sriraman Tallam <tmsriram@google.com>
825 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
826 when current target options does not apply.
827 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
828 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
829 * config/i386/bmiintrin.h: Pass appropriate target
830 attributes to header.
831 * config/i386/mmintrin.h: Ditto.
832 * config/i386/nmmintrin.h: Ditto.
833 * config/i386/avx2intrin.h: Ditto.
834 * config/i386/fxsrintrin.h: Ditto.
835 * config/i386/tbmintrin.h: Ditto.
836 * config/i386/xsaveintrin.h: Ditto.
837 * config/i386/f16cintrin.h: Ditto.
838 * config/i386/xtestintrin.h: Ditto.
839 * config/i386/xsaveoptintrin.h: Ditto.
840 * config/i386/bmi2intrin.h: Ditto.
841 * config/i386/lzcntintrin.h: Ditto.
842 * config/i386/smmintrin.h: Ditto.
843 * config/i386/wmmintrin.h: Ditto.
844 * config/i386/x86intrin.h: Remove all header include guards.
845 * config/i386/prfchwintrin.h: Ditto.
846 * config/i386/pmmintrin.h: Ditto.
847 * config/i386/tmmintrin.h: Ditto.
848 * config/i386/xmmintrin.h: Ditto.
849 * config/i386/popcntintrin.h: Ditto.
850 * config/i386/rdseedintrin.h: Ditto.
851 * config/i386/ammintrin.h: Ditto.
852 * config/i386/emmintrin.h: Ditto.
853 * config/i386/immintrin.h: Remove all header include guards.
854 * config/i386/fma4intrin.h: Ditto.
855 * config/i386/lwpintrin.h: Ditto.
856 * config/i386/xopintrin.h: Ditto.
857 * config/i386/ia32intrin.h: Ditto.
858 * config/i386/avxintrin.h: Ditto.
859 * config/i386/rtmintrin.h: Ditto.
860 * config/i386/fmaintrin.h: Ditto.
861 * config/i386/mm3dnow.h: Ditto.
863 2013-06-22 Sriraman Tallam <tmsriram@google.com>
865 * common/config/i386/i386-common.c: Handle LZCNT.
867 2013-06-22 Andi Kleen <ak@linux.intel.com>
869 * doc/extend.texi: Use __atomic_store_n instead of
870 __atomic_store in HLE example.
872 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
874 * config/sh/sh.c: Remove <cstdlib> workaround.
876 2013-06-21 Andi Kleen <ak@linux.intel.com>
878 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
880 2013-06-21 Andi Kleen <ak@linux.intel.com>
882 * doc/extend.texi: Document that __atomic_clear and
883 __atomic_test_and_set should only be used with bool.
885 2013-06-20 Jan Hubicka <jh@suse.cz>
887 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
889 * tree.c (decls_same_for_odr): New function.
890 (same_for_edr): New function.
891 (types_same_for_odr): New function.
892 (get_binfo_at_offset): Use it.
893 * tree.h (types_same_for_odr): Declare.
895 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
896 Jason Merrill <jason@redhat.com>
898 * system.h: Include <cstdlib> as well as <stdlib.h>.
900 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
903 * config/i386/i386.c (construct_container): Report error if
904 long double is used with disabled x87 float returns.
906 2013-06-20 Jan Hubicka <jh@suse.cz>
908 * lto-cgraph.c (input_symtab): Do not set cgraph state.
910 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
912 PR rtl-optimization/57425
913 PR rtl-optimization/57569
914 * alias.c (write_dependence_p): Remove parameters mem_mode and
915 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
917 (canon_anti_dependence): Get comments and semantics in sync.
918 Add parameter mem_canonicalized. Changed all callers.
919 * rtl.h (canon_anti_dependence): Update prototype.
921 2013-06-20 Richard Biener <rguenther@suse.de>
923 * data-streamer-in.c (streamer_read_uhwi): Optimize single
924 byte case, inline streamer_read_uchar and defer section
927 2013-06-20 Richard Biener <rguenther@suse.de>
929 PR tree-optimization/57584
930 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
931 SSA names into the expanded expression that take part in
934 2013-06-19 <singhai@google.com>
936 * gcov.c (print_usage): Handle new option.
937 (process_args): Ditto.
938 (get_gcov_intermediate_filename): New function.
939 (output_intermediate_file): New function.
940 (output_gcov_file): New function
941 (generate_results): Handle new option.
942 (release_function): Relase demangled name.
943 (read_graph_file): Handle demangled name.
944 (output_lines): Ditto.
945 * doc/gcov.texi: Document gcov intermediate format.
947 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
950 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
951 (lra_emit_add): Use the functions. Add comment about Y as an
954 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
957 * collect2.c (collect_atexit): New.
958 (collect_exit): Delete.
959 (main): Register collect_atexit with atexit.
960 (collect_wait): Change collect_exit to exit.
962 * collect2.h (collect_exit): Delete.
963 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
965 2013-06-19 Wei Mi <wmi@google.com>
967 PR rtl-optimization/57518
968 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
969 if regno is used in paradoxical subreg.
970 (update_equiv_regs): Check pdx_subregs[regno] before
971 set a reg to be equivalent with a mem.
973 2013-06-19 Matthias Klose <doko@ubuntu.com>
976 * file-find.h (find_a_file): Add a mode parameter.
977 * file-find.c (find_a_file): Likewise.
978 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
979 with X_OK for the executables.
980 * collect2.c (main): Call find_a_file with X_OK.
982 2013-06-19 Steve Ellcey <sellcey@mips.com>
985 * config/mips/mips.md (casesi_internal_mips16_<mode>):
986 Use NEXT_INSN instead of next_real_insn.
988 2013-06-19 Jan Hubicka <jh@suse.cz>
990 * cgraph.h (const_value_known_p): Replace by ...
991 (ctor_for_folding): .. this one.
992 * cgraphunit.c (process_function_and_variable_attributes): Use it.
993 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
994 * expr.c (expand_expr_real_1): Likewise.
995 (string_constant): Likewise.
996 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
997 * ipa.c (process_references): Likewise.
998 (symtab_remove_unreachable_nodes): Likewise.
999 * ipa-inline-analysis.c (param_change_prob): Likewise.
1000 * gimple-fold.c (canonicalize_constructor_val): Likewise.
1001 (get_base_constructor): Likwise.
1002 * varpool.c (varpool_remove_node): Likewise.
1003 (varpool_remove_initializer): LIkewise.
1004 (dump_varpool_node): LIkwise.
1005 (const_value_known_p): Rewrite to ...
1006 (ctor_for_folding): ... this one.
1008 2013-06-19 Jakub Jelinek <jakub@redhat.com>
1011 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
1012 PERSONALITY in $PATH derived prefixes.
1014 2013-06-19 Jeff Law <law@redhat.com>
1016 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
1019 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
1020 (simplify_bitwise_binary): Use it to simpify certain binary ops on
1023 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
1025 * config/arm/vfp.md: Move VFP instruction classification documentation
1027 * config/arm/arm.md: ... here. Update instruction classification
1030 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
1032 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
1033 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
1034 pattern. Use more efficient sequences on ARMv5 and Thumb2.
1036 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
1039 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
1040 with NEXT_INSN. Use tablejump_p to check for jump table data
1043 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
1046 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
1047 that now in C++ the value is correct per the C++ standards.
1049 2013-06-19 Richard Biener <rguenther@suse.de>
1051 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
1054 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1057 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1060 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
1061 with next_active_insn.
1063 2013-06-18 Sriraman Tallam <tmsriram@google.com>
1065 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
1066 functions are inlined during failures to flag an error.
1067 * tree-inline.c (expand_call_inline): Allow the error to be flagged
1068 in early inline pass.
1070 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
1072 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
1075 2013-06-18 Julian Brown <julian@codesourcery.com>
1077 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
1078 Permit virtual register pre-reload if !strict.
1079 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
1081 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
1083 * config/arm/neon.md (movmisalign<mode>): Use
1084 neon_perm_struct_or_reg_operand instead of
1085 neon_struct_or_register_operand.
1086 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
1087 neon_permissive_struct_operand instead of neon_struct_operand.
1088 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
1089 neon_vector_mem_operand.
1090 * config/arm/predicates.md (neon_struct_operand): Adjust call to
1091 neon_vector_mem_operand.
1092 (neon_permissive_struct_operand): New.
1093 (neon_struct_or_register_operand): Rename to...
1094 (neon_perm_struct_or_reg_operand): This. Adjust call to
1095 neon_vector_mem_operand.
1097 2013-06-18 Richard Biener <rguenther@suse.de>
1099 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
1100 * lto-streamer.h: Include pointer-set.h.
1101 (struct lto_decl_slot): Remove.
1102 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
1103 Remove next_index entry.
1104 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
1105 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
1106 (lto_init_tree_ref_encoder): Adjust.
1107 (lto_destroy_tree_ref_encoder): Likewise.
1108 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
1109 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
1110 (lto_output_decl_index): Adjust.
1111 (lto_new_out_decl_state): Likewise.
1112 (lto_record_function_out_decl_state): Likewise.
1113 * lto-streamer-out.c (copy_function): Likewise.
1115 2013-06-18 Richard Biener <rguenther@suse.de>
1117 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
1118 * cgraphunit.c: Include cfgloop.h.
1119 (init_lowered_empty_function): Initialize the loop tree.
1120 (assemble_thunk): Insert new BBs into loops.
1122 2013-06-18 Richard Biener <rguenther@suse.de>
1124 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
1125 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
1126 the map from cache entry to cache index optional.
1127 (streamer_tree_cache_replace_tree): Adjust accordingly.
1128 (streamer_tree_cache_append): Likewise.
1129 (streamer_tree_cache_delete): Likewise.
1130 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
1131 streamer cache map from cache entry to cache index.
1132 * lto-streamer-out.c (create_output_block): Adjust.
1134 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
1136 * config/arm/arm.md (attribute "insn"): Move multiplication and
1137 division attributes to...
1138 (attribute "type"): ... here. Remove mult.
1139 (attribute "mul32"): New attribute.
1140 (attribute "mul64"): Add umaal.
1141 (*arm_mulsi3): Update attributes.
1142 (*arm_mulsi3_v6): Likewise.
1143 (*thumb_mulsi3): Likewise.
1144 (*thumb_mulsi3_v6): Likewise.
1145 (*mulsi3_compare0): Likewise.
1146 (*mulsi3_compare0_v6): Likewise.
1147 (*mulsi_compare0_scratch): Likewise.
1148 (*mulsi_compare0_scratch_v6): Likewise.
1149 (*mulsi3addsi): Likewise.
1150 (*mulsi3addsi_v6): Likewise.
1151 (*mulsi3addsi_compare0): Likewise.
1152 (*mulsi3addsi_compare0_v6): Likewise.
1153 (*mulsi3addsi_compare0_scratch): Likewise.
1154 (*mulsi3addsi_compare0_scratch_v6): Likewise.
1155 (*mulsi3subsi): Likewise.
1156 (*mulsidi3adddi): Likewise.
1157 (*mulsi3addsi_v6): Likewise.
1158 (*mulsidi3adddi_v6): Likewise.
1159 (*mulsidi3_nov6): Likewise.
1160 (*mulsidi3_v6): Likewise.
1161 (*umulsidi3_nov6): Likewise.
1162 (*umulsidi3_v6): Likewise.
1163 (*umulsidi3adddi): Likewise.
1164 (*umulsidi3adddi_v6): Likewise.
1165 (*smulsi3_highpart_nov6): Likewise.
1166 (*smulsi3_highpart_v6): Likewise.
1167 (*umulsi3_highpart_nov6): Likewise.
1168 (*umulsi3_highpart_v6): Likewise.
1169 (mulhisi3): Likewise.
1170 (*mulhisi3tb): Likewise.
1171 (*mulhisi3bt): Likewise.
1172 (*mulhisi3tt): Likewise.
1173 (maddhisi4): Likewise.
1174 (*maddhisi4tb): Likewise.
1175 (*maddhisi4tt): Likewise.
1176 (maddhidi4): Likewise.
1177 (*maddhidi4tb): Likewise.
1178 (*maddhidi4tt): Likewise.
1180 (udivsi3): Likewise.
1181 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
1182 (thumb2_mulsi_short_compare0): Likewise.
1183 (thumb2_mulsi_short_compare0_scratch): Likewise.
1184 * config/arm/arm1020e.md (1020mult1): Update attribute change.
1185 (1020mult2): Likewise.
1186 (1020mult3): Likewise.
1187 (1020mult4): Likewise.
1188 (1020mult5): Likewise.
1189 (1020mult6): Likewise.
1190 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
1192 (cortex_a15_mult64): Likewise.
1193 (cortex_a15_sdiv): Likewise.
1194 (cortex_a15_udiv): Likewise.
1195 * config/arm/arm1026ejs.md (mult1): Update attribute change.
1201 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
1202 (pj4_ir_div): Likewise.
1203 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
1204 (11_mult2): Likewise.
1205 (11_mult3): Likewise.
1206 (11_mult4): Likewise.
1207 (11_mult5): Likewise.
1208 (11_mult6): Likewise.
1209 (11_mult7): Likewise.
1210 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
1211 (cortex_a8_mla): Likewise.
1212 (cortex_a8_mull): Likewise.
1213 (cortex_a8_smulwy): Likewise.
1214 (cortex_a8_smlald): Likewise.
1215 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
1216 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
1217 (cortex_r4_mul_3): Likewise.
1218 (cortex_r4_mla_4): Likewise.
1219 (cortex_r4_mla_3): Likewise.
1220 (cortex_r4_smlald): Likewise.
1221 (cortex_r4_mull): Likewise.
1222 (cortex_r4_sdiv): Likewise.
1223 (cortex_r4_udiv): Likewise.
1224 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
1225 (cortex_a7_idiv): Likewise.
1226 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
1227 (9_mult2): Likewise.
1228 (9_mult3): Likewise.
1229 (9_mult4): Likewise.
1230 (9_mult5): Likewise.
1231 (9_mult6): Likewise.
1232 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
1233 (cortex_a53_sdiv): Likewise.
1234 (cortex_a53_udiv): Likewise.
1235 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
1236 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
1237 (mp626_mult2): Likewise.
1238 (mp626_mult3): Likewise.
1239 (mp626_mult4): Likewise.
1240 * config/arm/fa526.md (526_mult1): Update attribute change.
1241 (526_mult2): Likewise.
1242 * config/arm/arm-generic.md (mult): Update attribute change.
1243 (mult_ldsched_strongarm): Likewise.
1244 (mult_ldsched): Likewise.
1245 (multi_cycle): Likewise.
1246 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
1247 * config/arm/fa606te.md (606te_mult1): Update attribute change.
1248 (606te_mult2): Likewise.
1249 (606te_mult3): Likewise.
1250 (606te_mult4): Likewise.
1251 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
1252 (cortex_a9_mac16): Likewise.
1253 (cortex_a9_multiply): Likewise.
1254 (cortex_a9_mac): Likewise.
1255 (cortex_a9_multiply_long): Likewise.
1256 * config/arm/fa626te.md (626te_mult1): Update attribute change.
1257 (626te_mult2): Likewise.
1258 (626te_mult3): Likewise.
1259 (626te_mult4): Likewise.
1261 2013-06-18 Richard Biener <rguenther@suse.de>
1264 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
1266 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1269 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
1270 with next_active_insn.
1272 2013-06-18 Alan Modra <amodra@gmail.com>
1274 * config/rs6000/rs6000.h (enum data_align): New.
1275 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
1276 (DATA_ABI_ALIGNMENT): Define.
1277 (CONSTANT_ALIGNMENT): Correct comment.
1278 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
1279 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
1281 2013-06-17 David Malcolm <dmalcolm@redhat.com>
1283 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
1284 ATTRIBUTE_UNUSED marking.
1286 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
1288 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
1289 alternative and update.
1290 (aarch64_dup_lanedi): Delete.
1291 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
1292 * config/aarch64/aarch64-simd-builtins.def: Update.
1294 2013-06-17 Richard Biener <rguenther@suse.de>
1296 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
1297 (lto_input_scc): Declare.
1298 (lto_input_tree_1): Likewise.
1299 (struct lto_stats_d): Add num_tree_bodies_output and
1300 num_pickle_refs_output.
1301 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
1302 (lto_read_tree_1): Split out from ...
1303 (lto_read_tree): ... this.
1304 (lto_input_scc): New function.
1305 (lto_input_tree_1): Split out from ...
1306 (lto_input_tree): ... this. Handle LTO_tree_scc.
1307 (lto_data_in_create): Create the streamer cache without hashes.
1308 * lto-streamer-out.c (create_output_block): Create the streamer
1309 cache with hashes when not doing WPA.
1310 (lto_write_tree_1): Split out from ...
1311 (lto_write_tree): ... this.
1312 (get_symbol_initial_value): New function.
1313 (lto_output_tree_1): Split out from ...
1314 (lto_output_tree): ... this. Write trees as series of SCCs
1315 using a DFS walk via DFS_write_tree.
1316 (struct sccs, struct scc_entry): New types.
1317 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
1318 (DFS_write_tree_body): New function.
1319 (DFS_write_tree): Likewise.
1320 (hash_tree): Likewise.
1321 (scc_entry_compare): Likewise.
1322 (hash_scc): Likewise.
1323 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
1324 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
1325 TREE_CHAIN as regular reference.
1326 (streamer_read_integer_cst): Remove.
1327 (streamer_get_pickled_tree): Adjust.
1328 * tree-streamer-out.c (streamer_write_chain): Disable streaming
1329 of DECL_EXTERNALs in BLOCK_VARS for now.
1330 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
1332 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
1333 Add hash value argument and record that if hashes are recorded
1335 (streamer_tree_cache_insert_1): Adjust.
1336 (streamer_tree_cache_insert): Likewise.
1337 (streamer_tree_cache_insert_at): Rename to ...
1338 (streamer_tree_cache_replace_tree): ... this and adjust.
1339 (streamer_tree_cache_append): Adjust.
1340 (record_common_node): Likewise.
1341 (streamer_tree_cache_create): Add argument whether to
1342 record hash values together with trees.
1343 (streamer_tree_cache_delete): Adjust.
1344 * tree-streamer.h (struct streamer_tree_cache_d): Add
1346 (streamer_read_integer_cst): Remove.
1347 (streamer_tree_cache_insert): Adjust.
1348 (streamer_tree_cache_append): Likewise.
1349 (streamer_tree_cache_insert_at): Rename to ...
1350 (streamer_tree_cache_replace_tree): ... this and adjust.
1351 (streamer_tree_cache_create): Add argument whether to record hashes.
1352 (streamer_tree_cache_get): Rename to ...
1353 (streamer_tree_cache_get_tree): ... this.
1354 (streamer_tree_cache_get_hash): New function.
1355 * tree.c (cache_integer_cst): New function.
1356 * tree.h (cache_integer_cst): Declare.
1357 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
1358 * lto-symtab.c (lto_varpool_replace_node): Only release
1359 DECL_INITIAL of non-prevailing decls.
1360 * varpool.c (varpool_remove_initializer): Do not release
1361 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
1363 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
1365 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
1366 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
1367 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
1368 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
1369 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
1370 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
1371 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
1372 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
1373 instead of TARGET_64BIT.
1374 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
1375 Require ISA_HAS_<D>DIV.
1377 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
1379 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
1380 (mips*-*-linux*): Move default with_llsc setting to where other
1382 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
1384 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
1385 Likewise. Remove default with_tune setting. Move default float
1386 setting to its own block. Handle with_llsc in the same block as above.
1388 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
1390 PR rtl-optimization/57425
1391 PR rtl-optimization/57569
1392 * alias.c (write_dependence_p): Add new parameters mem_mode,
1393 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
1394 Changed all callers.
1395 (canon_anti_dependence): New function.
1396 * cse.c (check_dependence): Use canon_anti_dependence.
1397 * cselib.c (cselib_invalidate_mem): Likewise.
1398 * rtl.h (canon_anti_dependence): Declare.
1400 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
1402 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
1403 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
1404 ".set mips3" for 64-bit targets.
1406 2013-06-15 Dehao Chen <dehao@google.com>
1408 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
1409 * gimple-low.c (gimple_check_call_matching_types): Likewise.
1410 (gimple_check_call_args): Likewise.
1411 * value-prof.c (check_ic_target): Likewise.
1412 * ipa-inline.c (early_inliner): Likewise.
1413 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
1414 * cgraph.c (cgraph_create_edge_1): Likewise.
1415 (cgraph_make_edge_direct): Likewise.
1417 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1420 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
1421 rs6000_output_move_128bit to handle emitting quad memory
1422 operations. Set attribute length to 8 bytes.
1424 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
1426 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
1428 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
1429 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
1430 (aarch64_<su>mlsl<mode>): Likewise.
1432 2013-06-14 Mike Stump <mikestump@comcast.net>
1434 * Makefile.in (TARGET_H): Add insn-codes.h.
1436 2013-06-14 Alan Modra <amodra@gmail.com>
1440 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
1441 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
1442 bitfield expansion when EXPAND_MEMORY.
1443 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
1445 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
1447 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1448 test for clearing quad memory on 32-bit later.
1450 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
1452 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
1453 (fold_negate_expr): Likewise.
1454 (fold_real_zero_addition_p): Handle vectors.
1455 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
1457 2013-06-14 Alan Modra <amodra@gmail.com>
1459 * varasm.c (force_const_mem): Revert 2013-06-07 change.
1461 2013-06-13 Jan Hubicka <jh@suse.cz>
1463 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
1464 Local comdats are not externally visible.
1465 * symtab.c (dump_symtab_base): Dump externally visible.
1466 (verify_symtab_base): Verify back links in the symtab hash.
1468 2013-06-13 Bin Cheng <bin.cheng@arm.com>
1470 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
1471 CONVERT_EXPR as equal nodes.
1473 2013-06-13 Bin Cheng <bin.cheng@arm.com>
1475 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
1477 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
1479 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
1480 Generalize to complex and vector.
1481 * tree.c (build_all_ones_cst): New function.
1482 * tree.h (build_all_ones_cst): Declare it.
1484 2013-06-13 Alan Modra <amodra@gmail.com>
1486 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
1487 * config/rs6000/rs6000.md (signbittf2): New insn.
1488 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
1489 (abstf2_internal, cmptf_internal2): Likewise.
1490 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
1492 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
1493 Pat Haugen <pthaugen@us.ibm.com>
1494 Peter Bergner <bergner@vnet.ibm.com>
1496 * config/rs6000/rs6000.c (emit_load_locked): Add support for
1497 power8 byte, half-word, and quad-word atomic instructions.
1498 (emit_store_conditional): Likewise.
1499 (rs6000_expand_atomic_compare_and_swap): Likewise.
1500 (rs6000_expand_atomic_op): Likewise.
1502 * config/rs6000/sync.md (larx): Add new modes for power8.
1504 (AINT): New mode iterator to include TImode as well as normal
1505 integer modes on power8.
1506 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
1507 that VSX registers are not considered. Use AINT mode iterator
1508 instead of INT1 to allow inclusion of quad word atomic operations
1510 (load_locked<mode>): Likewise.
1511 (store_conditional<mode>): Likewise.
1512 (atomic_compare_and_swap<mode>): Likewise.
1513 (atomic_exchange<mode>): Likewise.
1514 (atomic_nand<mode>): Likewise.
1515 (atomic_fetch_<fetchop_name><mode>): Likewise.
1516 (atomic_nand_fetch<mode>): Likewise.
1517 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
1519 (ATOMIC): On power8, add QImode, HImode modes.
1520 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
1521 modes that promote to SImode.
1522 (load_lockedti): Convert TImode arguments to PTImode, so that we
1523 get a guaranteed even/odd register pair.
1524 (load_lockedpti): Likewise.
1525 (store_conditionalti): Likewise.
1526 (store_conditionalpti): Likewise.
1528 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
1529 atomic load/store instructions.
1532 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
1534 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
1536 (insn_count): New attribute, with most cases extracted from...
1537 (length): ...here. Redefine most cases in terms of insn_count.
1538 (single_insn): Delete.
1539 (can_delay): Use insn_count to check for single instructions.
1540 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
1541 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
1542 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
1543 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
1544 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
1545 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
1546 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
1547 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
1548 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
1549 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
1550 rather than "length".
1551 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
1552 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
1553 Use "insn_count" rather than "length".
1554 * config/mips/mips-dsp.md
1555 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
1556 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
1559 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
1561 PR tree-optimization/57361
1562 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
1564 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
1566 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
1568 (aarch64_simd_combine<mode>): New instruction expansion.
1569 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
1571 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
1572 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
1574 2013-06-12 Jan Hubicka <jh@suse.cz>
1576 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
1577 decl has when in streaming stage.
1578 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
1579 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
1581 2013-06-12 Roland Stigge <stigge@antcom.de>
1584 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
1586 2013-06-12 Jakub Jelinek <jakub@redhat.com>
1588 PR tree-optimization/57537
1589 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
1590 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
1592 2013-06-12 Richard Biener <rguenther@suse.de>
1594 * data-streamer.h (streamer_write_char_stream): CSE
1595 obs->current_pointer.
1596 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
1597 streamer_write_char_stream manually and optimize the resulting loop.
1598 (streamer_write_hwi_stream): Likewise.
1600 2013-06-12 Jan Hubicka <jh@suse.cz>
1602 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
1603 * cgraph.h (varpool_create_empty_node): Declare.
1604 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
1606 * symtab.c (symtab_unregister_node): Be lax about missin entries
1608 (symtab_get_node): Update comment.
1609 * varpool.c (varpool_create_empty_node): Break out from ...
1610 (varpool_node_for_decl): ... here.
1611 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
1613 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
1615 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
1616 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
1617 part. Use straight-line flow at the end.
1618 <COMPONENT_REF>: Remove superfluous else.
1619 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
1621 2013-06-12 Jakub Jelinek <jakub@redhat.com>
1624 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
1625 target hook even for !TREE_PUBLIC decls. If no resolution info
1626 is available, return false for common and external decls.
1628 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1630 * config/rl78/constraints.md (U): New constraint.
1631 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
1634 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1637 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
1638 to allow returning address to AT_PLATFORM name.
1640 2013-06-11 Jan Hubicka <jh@suse.cz>
1642 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
1643 * cgraph.h (symtab_node_base): Add weakref flag.
1644 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
1645 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
1646 (output_weakrefs): Use weakref flag.
1647 * fold-const.c (simple_operand_p): Handle WEAK.
1648 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
1649 * ipa.c (varpool_externally_visible_p): Drop weakref.
1650 (function_and_variable_visibility): Update comment; fix weakref
1651 sanity checks; do not clear DECL_WEAK on them.
1652 * lto-cgraph.c (lto_output_node): update.
1653 (lto_output_varpool_node): Update.
1654 (input_overwrite_node): Update.
1655 (input_node): Update.
1656 (input_varpool_node): Update.
1657 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
1658 (lto_symtab_merge_symbols): Add sanity check.
1659 (lto_symtab_prevailing_decl): Do not special case weakrefs.
1660 * passes.c (rest_of_decl_compilation): Set static flag, too.
1661 * symtab.c (dump_symtab_base): Dump weakref.
1662 (verify_symtab_base): Sanity check weakrefs.
1663 (symtab_make_decl_local): Remove duplicated code.
1664 (symtab_alias_ultimate_target): Simplify.
1665 * varpool.c (varpool_create_variable_alias): Set weakref flag.
1667 2013-06-11 DJ Delorie <dj@redhat.com>
1669 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
1670 (rl78_unwind_word_mode): New.
1672 2013-06-11 David Malcolm <dmalcolm@redhat.com>
1674 * final.c (debug_prefix_maps): Make static.
1676 2013-06-11 David Malcolm <dmalcolm@redhat.com>
1678 * function.c (initial_trampoline): Remove stray copy.
1680 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
1682 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
1684 2013-06-11 Martin Jambor <mjambor@suse.cz>
1686 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
1687 within bounds at the beginning of the function.
1689 2013-06-11 Alan Modra <amodra@gmail.com>
1691 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
1693 (get_named_section): Don't NULL !DECL_P decl.
1695 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
1697 * doc/invoke.texi (core-avx2): Document.
1699 (atom): Updated with MOVBE.
1701 2013-06-11 Richard Biener <rguenther@suse.de>
1703 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
1705 2013-06-11 Anton Blanchard <anton@samba.org>
1707 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
1708 correct shift value in little-endian mode.
1710 2013-06-11 Jakub Jelinek <jakub@redhat.com>
1713 * varasm.c (get_variable_align): Move #endif to the right place.
1715 2013-06-10 Cary Coutant <ccoutant@google.com>
1717 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
1718 for hash so that hash table traversal order is deterministic.
1720 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
1721 Pat Haugen <pthaugen@us.ibm.com>
1722 Peter Bergner <bergner@vnet.ibm.com>
1724 * config/rs6000/vector.md (GPR move splitter): Do not split moves
1725 of vectors in GPRS if they are direct moves or quad word load or
1728 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
1730 (direct_move_p): Likewise.
1731 (quad_load_store_p): Likewise.
1733 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
1734 classes into bins based on the physical register type.
1735 (reg_class_to_reg_type): Likewise.
1736 (IS_STD_REG_TYPE): Likewise.
1737 (IS_FP_VECT_REG_TYPE): Likewise.
1738 (reload_fpr_gpr): Arrays to determine what insn to use if we can
1739 use direct move instructions.
1740 (reload_gpr_vsx): Likewise.
1741 (reload_vsx_gpr): Likewise.
1742 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
1743 information that is a simplification of register classes. Also
1744 precalculate direct move reload helpers.
1745 (direct_move_p): New function to return true if the operation can
1746 be done as a direct move instruciton.
1747 (quad_load_store_p): New function to return true if the operation
1748 is a quad memory operation.
1749 (rs6000_legitimize_address): If quad memory, only allow register
1750 indirect for TImode addresses.
1751 (rs6000_legitimate_address_p): Likewise.
1752 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
1753 (rs6000_reload_register_type): Likewise.
1754 (register_to_reg_type): Return register type.
1755 (rs6000_secondary_reload_simple_move): New helper function for
1756 secondary reload and secondary memory needed to identify anything
1757 that is a simple move, and does not need reloading.
1758 (rs6000_secondary_reload_direct_move): New helper function for
1759 secondary reload to identify cases that can be done with several
1760 instructions via the direct move instructions.
1761 (rs6000_secondary_reload_move): New helper function for secondary
1762 reload to identify moves between register types that can be done.
1763 (rs6000_secondary_reload): Add support for quad memory operations
1764 and for direct move.
1765 (rs6000_secondary_memory_needed): Likewise.
1766 (rs6000_debug_secondary_memory_needed): Change argument names.
1767 (rs6000_output_move_128bit): New function to return the move to
1768 use for 128-bit moves, including knowing about the various
1769 limitations of quad memory operations.
1771 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
1772 memory operations. call rs6000_output_move_128bit for the actual
1773 instruciton(s) to generate.
1774 (vsx_movti_64bit): Likewise.
1776 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
1777 (UNSPEC_P8V_MTVSRWZ): Likewise.
1778 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
1779 (UNSPEC_P8V_MTVSRD): Likewise.
1780 (UNSPEC_P8V_XXPERMDI): Likewise.
1781 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
1782 (UNSPEC_FUSION_GPR): Likewise.
1783 (FMOVE128_GPR): New iterator for direct move.
1784 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
1787 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
1788 loads and direct move instructions.
1789 (zero_extendsidi2_lfiwzx): Likewise.
1790 (extendsidi2_lfiwax): Likewise.
1791 (extendsidi2_nocell): Likewise.
1792 (floatsi<mode>2_lfiwax): Likewise.
1794 (floatunssi<mode>2_lfiwzx): Likewise.
1796 (fix_trunc<mode>_stfiwx): Likewise.
1797 (fixuns_trunc<mode>_stfiwx): Likewise.
1798 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
1799 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
1800 (parity<mode>2_cmpb): Set length/type attr.
1801 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
1802 for 'mr.' to fast_compare.
1803 (bpermd_<mode>): Change type attr to popcnt.
1804 (p8_fmrgow_<mode>): New insns for power8 direct move support.
1805 (p8_mtvsrwz_1): Likewise.
1806 (p8_mtvsrwz_2): Likewise.
1807 (reload_fpr_from_gpr<mode>): Likewise.
1808 (p8_mtvsrd_1): Likewise.
1809 (p8_mtvsrd_2): Likewise.
1810 (p8_xxpermdi_<mode>): Likewise.
1811 (reload_vsx_from_gpr<mode>): Likewise.
1812 (reload_vsx_from_gprsf): Likewise.
1813 (p8_mfvsrd_3_<mode>): LIkewise.
1814 (reload_gpr_from_vsx<mode>): Likewise.
1815 (reload_gpr_from_vsxsf): Likewise.
1816 (p8_mfvsrd_4_disf): Likewise.
1817 (multi-word GPR splits): Do not split direct moves or quad memory
1820 2013-06-10 David Malcolm <dmalcolm@redhat.com>
1822 * tree-into-ssa.c (interesting_blocks): Make static.
1824 2013-06-10 Jakub Jelinek <jakub@redhat.com>
1827 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
1828 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
1829 Use DATA_ABI_ALIGNMENT for that case instead if defined.
1830 (get_variable_align): New function.
1831 (get_variable_section, emit_bss, emit_common,
1832 assemble_variable_contents, place_block_symbol): Use
1833 get_variable_align instead of DECL_ALIGN.
1834 (assemble_noswitch_variable): Add align argument, use it
1835 instead of DECL_ALIGN.
1836 (assemble_variable): Adjust caller. Use get_variable_align
1837 instead of DECL_ALIGN.
1838 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
1840 (DATA_ABI_ALIGNMENT): Define.
1841 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
1842 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
1843 opt is false, only return the psABI mandated alignment increase.
1844 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
1845 (DATA_ABI_ALIGNMENT): ... this.
1846 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
1847 (DATA_ABI_ALIGNMENT): ... this.
1848 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
1849 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
1850 (DATA_ABI_ALIGNMENT): ... this.
1851 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
1852 * doc/tm.texi: Regenerated.
1854 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
1856 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
1857 cmp_code to construct REG_EQUAL note.
1859 2013-06-09 Jakub Jelinek <jakub@redhat.com>
1862 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
1863 that operands[2] doesn't overlap with operands[0].
1865 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
1866 Jan Hubicka <jh@suse.cz>
1868 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
1869 hack to mark symbols as used.
1871 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
1873 PR rtl-optimization/57559
1874 * lra-constraints.c (process_alt_operands): Don't discourage
1875 memory with known offset for offsetable memory constraint.
1876 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
1878 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
1880 * varasm.c (struct oc_local_state): Reorder fields.
1881 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
1882 and adjust accordingly.
1883 (output_constructor): Reorder initialization code and adjust call to
1884 output_constructor_bitfield.
1886 2013-06-07 Jan Hubicka <jh@suse.cz>
1888 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
1890 2013-06-07 David Malcolm <dmalcolm@redhat.com>
1892 * tree-object-size.c (unknown): Make const.
1894 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1896 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
1897 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
1898 for last alternative in the cpu_facility attribute.
1900 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1903 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
1904 (xordi3): Change operand 2 constraint to arm_xordi_operand.
1905 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
1906 * config/arm/constraints.md (Dg): New constraint.
1907 * config/arm/neon.md (xordi3_neon): Remove.
1908 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
1909 * config/arm/predicates.md (arm_xordi_operand): New predicate.
1911 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1913 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
1914 Clean up alternatives.
1916 2013-06-07 Alan Modra <amodra@gmail.com>
1918 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
1921 2013-06-07 Alan Modra <amodra@gmail.com>
1923 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
1925 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1927 * config/arm/constraints.md (Df): New constraint.
1928 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
1929 Correct length attribute for last two alternatives.
1931 2013-06-07 Alan Modra <amodra@gmail.com>
1933 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
1934 override user -mfp-in-toc.
1935 (offsettable_ok_by_alignment): Consider just the current access
1936 rather than the whole object, unless BLKmode. Handle
1937 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
1938 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
1939 for -mcmodel=medium.
1940 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
1941 override user -mfp-in-toc or -msum-in-toc. Default to
1942 -mno-fp-in-toc for -mcmodel=medium.
1944 2013-06-06 DJ Delorie <dj@redhat.com>
1946 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
1947 TARGET_VALID_POINTER_MODE.
1949 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
1950 Pat Haugen <pthaugen@us.ibm.com>
1951 Peter Bergner <bergner@vnet.ibm.com>
1953 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
1954 Document new power8 builtins.
1956 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
1957 condition code register, to allow 128-bit logical operations to be
1958 done in the VSX or GPR registers.
1959 (nor<mode>3): Use the canonical form for nor.
1960 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
1961 vclz*, and vpopcnt* vector instructions.
1962 (nand<mode>3): Likewise.
1963 (orc<mode>3): Likewise.
1964 (clz<mode>2): LIkewise.
1965 (popcount<mode>2): Likewise.
1967 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
1968 that only the GPRs are recognized.
1970 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1971 support for new power8 builtins.
1973 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
1975 (xscvdpspn): Likewise.
1981 (vpopcnt): Likewise.
1982 (vpopcntb): Likewise.
1983 (vpopcnth): Likewise.
1984 (vpopcntw): Likewise.
1985 (vpopcntd): Likewise.
1990 (eqv_v16qi3): Likewise.
1991 (eqv_v8hi3): Likewise.
1992 (eqv_v4si3): Likewise.
1993 (eqv_v2di3): Likewise.
1994 (eqv_v4sf3): Likewise.
1995 (eqv_v2df3): Likewise.
1997 (nand_v16qi3): Likewise.
1998 (nand_v8hi3): Likewise.
1999 (nand_v4si3): Likewise.
2000 (nand_v2di3): Likewise.
2001 (nand_v4sf3): Likewise.
2002 (nand_v2df3): Likewise.
2004 (orc_v16qi3): Likewise.
2005 (orc_v8hi3): Likewise.
2006 (orc_v4si3): Likewise.
2007 (orc_v2di3): Likewise.
2008 (orc_v4sf3): Likewise.
2009 (orc_v2df3): Likewise.
2011 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
2012 allow power8 quad mode in 64-bit.
2013 (rs6000_builtin_vectorized_function): Add support to vectorize
2014 ISA 2.07 count leading zeros, population count builtins.
2015 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
2016 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
2017 (builtin_function_type): Add vgbbd builtin function which takes an
2019 (altivec_expand_vec_perm_const): Add support for new power8 merge
2022 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
2023 that does not include TImdoe for use with 32-bit.
2024 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
2026 (UNSPEC_VSX_CVDPSPN): Likewise.
2027 (vsx_xscvdpspn): Likewise.
2028 (vsx_xscvspdpn): Likewise.
2029 (vsx_xscvdpspn_scalar): Likewise.
2030 (vsx_xscvspdpn_directmove): Likewise.
2031 (vsx_and<mode>3): Split logical operations into 32-bit and
2032 64-bit. Add support to do logical operations on TImode as well as
2033 VSX vector types. Allow logical operations to be done in either
2034 VSX registers or in general purpose registers in 64-bit mode. Add
2035 splitters if GPRs were used. For AND, add clobber of CCmode to
2036 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
2038 (vsx_and<mode>3_32bit): Likewise.
2039 (vsx_and<mode>3_64bit): Likewise.
2040 (vsx_ior<mode>3): Likewise.
2041 (vsx_ior<mode>3_32bit): Likewise.
2042 (vsx_ior<mode>3_64bit): Likewise.
2043 (vsx_xor<mode>3): Likewise.
2044 (vsx_xor<mode>3_32bit): Likewise.
2045 (vsx_xor<mode>3_64bit): Likewise.
2046 (vsx_one_cmpl<mode>2): Likewise.
2047 (vsx_one_cmpl<mode>2_32bit): Likewise.
2048 (vsx_one_cmpl<mode>2_64bit): Likewise.
2049 (vsx_nor<mode>3): Likewise.
2050 (vsx_nor<mode>3_32bit): Likewise.
2051 (vsx_nor<mode>3_64bit): Likewise.
2052 (vsx_andc<mode>3): Likewise.
2053 (vsx_andc<mode>3_32bit): Likewise.
2054 (vsx_andc<mode>3_64bit): Likewise.
2055 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
2056 and xxlorc instructions.
2057 (vsx_eqv<mode>3_64bit): Likewise.
2058 (vsx_nand<mode>3_32bit): Likewise.
2059 (vsx_nand<mode>3_64bit): Likewise.
2060 (vsx_orc<mode>3_32bit): Likewise.
2061 (vsx_orc<mode>3_64bit): Likewise.
2063 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
2065 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
2067 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
2068 (p8_vmrgow): Likewise.
2069 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
2070 GPRs to be split under VSX.
2071 (p8v_clz<mode>2): Add power8 count leading zero support.
2072 (p8v_popcount<mode>2): Add power8 population count support.
2073 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
2076 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
2079 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
2081 (vec_nand): Likewise.
2082 (vec_vclz): Likewise.
2083 (vec_vclzb): Likewise.
2084 (vec_vclzd): Likewise.
2085 (vec_vclzh): Likewise.
2086 (vec_vclzw): Likewise.
2087 (vec_vgbbd): Likewise.
2088 (vec_vmrgew): Likewise.
2089 (vec_vmrgow): Likewise.
2090 (vec_vpopcnt): Likewise.
2091 (vec_vpopcntb): Likewise.
2092 (vec_vpopcntd): Likewise.
2093 (vec_vpopcnth): Likewise.
2094 (vec_vpopcntw): Likewise.
2096 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
2098 PR rtl-optimization/57468
2099 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
2102 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
2104 PR rtl-optimization/57459
2105 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
2106 type when setting live regs.
2108 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
2110 * config/s390/s390.opt (mlra): New option.
2111 * config/s390/s390.c (s390_decompose_address): Check displacement
2112 for all registers for LRA.
2113 (s390_secondary_reload): Don't used secondary reloads for LRA.
2114 (s390_lra_p): New function.
2115 (TARGET_LRA_P): Define.
2116 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
2117 of attribute cpu_facility to zarch for the last alternative.
2118 (*cmpmem_short): Ditto.
2120 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
2122 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
2123 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
2124 (arm_expand_prologue): Likewise.
2126 2013-06-06 Teresa Johnson <tejohnson@google.com>
2129 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
2130 as this is now done by redirect_edge_and_branch_force.
2131 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
2132 barriers, and fix interaction with splitting.
2133 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
2134 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
2135 reflect changes made in the routine.
2136 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
2137 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
2138 since this is called in cfglayout mode, and replace partition fixup
2139 with assert as that is now done by force_nonfallthru_and_redirect.
2140 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
2141 already be marked with region crossing note.
2142 (insert_section_boundary_note): Make non-static, gate on flag
2143 has_bb_partition, rewrite to also check for multiple partitions.
2144 (rest_of_handle_reorder_blocks): Remove call to
2145 insert_section_boundary_note, now done later during free_cfg.
2146 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
2147 * bb-reorder.h (insert_section_boundary_note): Declare.
2148 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
2149 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
2150 invoke insert_section_boundary_note.
2151 (try_redirect_by_replacing_jump): Remove unnecessary
2152 check for region crossing note.
2153 (fixup_partition_crossing): New function.
2154 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
2155 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
2156 in non-cfglayout mode.
2157 (force_nonfallthru_and_redirect): Fixup partition boundaries,
2158 remove old code that tried to do this. Emit barrier correctly
2159 when we are in cfglayout mode.
2160 (last_bb_in_partition): New function.
2161 (rtl_split_edge): Correctly fixup partition boundaries.
2162 (commit_one_edge_insertion): Remove old code that tried to
2163 fixup region crossing edge since this is now handled in
2164 split_block, and set up insertion point correctly since
2165 block may now end in a jump.
2166 (verify_hot_cold_block_grouping): Guard against checking when not in
2167 linearized RTL mode.
2168 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
2170 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
2171 rtl_verify_flow_info, so not called in cfglayout mode.
2172 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
2173 (fixup_reorder_chain): Remove old code that attempted to fixup region
2174 crossing note as this is now handled in force_nonfallthru_and_redirect.
2175 (duplicate_insn_chain): Don't duplicate switch section notes.
2176 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
2178 * basic-block.h (emit_barrier_after_bb): Declare.
2180 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2182 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
2183 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
2184 arm_usatsihi): Adjust alternatives for arm_restrict_it.
2186 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2188 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
2190 * config/arm/ldmstm.md: Regenerate.
2192 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2194 * config/arm/sync.md (atomic_loaddi_1):
2195 Disable predication for arm_restrict_it.
2196 (arm_load_exclusive<mode>): Likewise.
2197 (arm_load_exclusivesi): Likewise.
2198 (arm_load_exclusivedi): Likewise.
2199 (arm_load_acquire_exclusive<mode>): Likewise.
2200 (arm_load_acquire_exclusivesi): Likewise.
2201 (arm_load_acquire_exclusivedi): Likewise.
2202 (arm_store_exclusive<mode>): Likewise.
2203 (arm_store_exclusive<mode>): Likewise.
2204 (arm_store_release_exclusivedi): Likewise.
2205 (arm_store_release_exclusive<mode>): Likewise.
2207 2013-06-06 Richard Biener <rguenther@suse.de>
2209 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
2211 (lto_tag_is_tree_code_p): Adjust.
2212 (lto_tag_is_gimple_code_p): Likewise.
2213 (lto_gimple_code_to_tag): Likewise.
2214 (lto_tag_to_gimple_code): Likewise.
2215 (lto_tree_code_to_tag): Likewise.
2216 (lto_tag_to_tree_code): Likewise.
2217 * data-streamer.h (streamer_write_hwi_in_range): Use
2218 uhwi streaming to stream the normalized range.
2219 (streamer_read_hwi_in_range): Likewise.
2221 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2223 * config/arm/arm.md (enabled_for_depr_it): New attribute.
2224 (predicable_short_it): Likewise.
2225 (predicated): Likewise.
2226 (enabled): Handle above.
2227 (define_cond_exec): Set predicated attribute to yes.
2229 2013-06-05 Mike Stump <mikestump@comcast.net>
2231 * gdbinit.in (__FUNCTION__): Add.
2233 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
2235 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
2236 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
2238 2013-06-05 Jan Hubicka <jh@suse.cz>
2240 * varasm.c (mark_decl_referenced): Revert the removal until targets
2243 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
2245 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
2246 instead of mark_decl_referenced.
2248 2013-06-05 Jan Hubicka <jh@suse.cz>
2250 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
2251 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
2252 and symtab_used_from_object_file_p.
2253 (cgraph_make_node_local_1): Clear forced_by_abi.
2254 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
2255 * cgraph.h (symtab_node_base): Add forced_by_abi.
2256 (decide_is_variable_needed): Remove.
2257 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
2258 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
2259 (decide_is_symbol_needed): ... this one; handle symbols in general;
2260 always analyze virtuals; honnor forced_by_abi.
2261 (cgraph_finalize_function): Update.
2262 (varpool_finalize_decl): Update.
2263 (symbol_defined_and_needed): Remove.
2264 (analyze_functions): Update.
2265 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
2266 output_refs, input_overwrite_node): Handle forced_by_abi.
2267 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
2268 (address_taken_from_non_vtable_p): ... this one.
2269 (comdat_can_be_unshared_p_1): New function.
2270 (cgraph_comdat_can_be_unshared_p): Rename to ...
2271 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
2272 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
2273 (function_and_variable_visibility): Clear forced_by_abi as needed.
2274 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
2275 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
2276 * symtab.c (dump_symtab_base): Dump forced_by_abi.
2277 * varpool.c (decide_is_variable_needed): Remove.
2279 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2281 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
2282 (arm_option_override): Override arm_restrict_it where appropriate.
2283 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
2284 * config/arm/arm.opt (mrestrict-it): New command-line option.
2285 * doc/invoke.texi: Document -mrestrict-it.
2287 2013-06-05 David Malcolm <dmalcolm@redhat.com>
2289 * tsan.c (tsan_atomic_table): Make const.
2291 2013-06-05 Richard Biener <rguenther@suse.de>
2293 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
2294 index associated with the tree we are supposed to replace.
2295 * tree-streamer-out.c (pack_ts_base_value_fields): Output
2296 TREE_ASM_WRITTEN as zero for everything but SSA names.
2298 2013-06-05 David Malcolm <dmalcolm@redhat.com>
2300 * tree-ssa-structalias.c (call_stmt_vars): Make static.
2302 2013-06-04 Jan Hubicka <jh@suse.cz>
2304 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
2305 (input_node, input_varpool_node): Handle correctly external same
2307 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
2308 nodes at ltrans stage.
2310 2013-06-04 Jan Hubicka <jh@suse.cz>
2312 * ipa-inline.c (update_caller_keys): Fix availability test.
2313 (update_callee_keys): Likewise.
2314 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
2315 to follow ELF standard.
2317 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
2319 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
2320 (mips64r5900el-*-elf*): New configurations.
2321 * config/mips/mips-cpus.def (r5900): New processor.
2322 * config/mips/mips-tables.opt: Regenerate.
2323 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
2324 (mips_issue_rate): Handle PROCESSOR_R5900.
2325 (mips_reorg_process_insns): Force reorder mode for the R5900.
2326 * config/mips/mips.h (TARGET_MIPS5900): Define.
2327 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
2329 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
2331 * config/mips/mips.md (processor): Add r5900.
2332 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
2334 2013-06-04 Ian Bolton <ian.bolton@arm.com>
2336 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
2337 into function to generate MOVI instruction.
2338 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
2339 (aarch64_preferred_simd_mode): Turn into wrapper.
2340 (aarch64_output_scalar_simd_mov_immediate): New function.
2341 * config/aarch64/aarch64-protos.h: Add prototype for above.
2343 2013-06-04 Ian Bolton <ian.bolton@arm.com>
2345 * config/aarch64/aarch64.c (simd_immediate_info): Remove
2346 element_char member.
2347 (sizetochar): Return signed char.
2348 (aarch64_simd_valid_immediate): Remove elchar and other
2349 unnecessary variables.
2350 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
2351 Calculate element_char as required.
2352 * config/aarch64/aarch64-protos.h: Update and move prototype
2353 for aarch64_output_simd_mov_immediate.
2354 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
2357 2013-06-04 Ian Bolton <ian.bolton@arm.com>
2359 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
2360 information completed by aarch64_simd_valid_immediate.
2361 (aarch64_legitimate_constant_p): Update arguments.
2362 (aarch64_simd_valid_immediate): Work with struct rather than many
2364 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
2365 (aarch64_simd_make_constant): Update arguments.
2366 (aarch64_output_simd_mov_immediate): Work with struct rather than
2367 many pointers. Output immediate directly rather than as operand.
2368 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
2370 * config/aarch64/constraints.md (Dn): Update arguments.
2372 2013-06-04 Ian Bolton <ian.bolton@arm.com>
2374 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
2376 (aarch64_simd_immediate_valid_for_move): Remove.
2377 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
2378 (aarch64_simd_make_constant): Update call.
2379 (aarch64_output_simd_mov_immediate): Update call.
2380 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
2382 * config/aarch64/constraints.md (Dn): Update call.
2384 2013-06-04 Ian Bolton <ian.bolton@arm.com>
2386 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
2387 return type to bool for prototype.
2388 (aarch64_legitimate_constant_p): Check for true instead of not -1.
2389 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
2390 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
2392 2013-06-04 Catherine Moore <clm@codesourcery.com>
2394 * config/mips/mips.opt (meva): New.
2395 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
2396 (ASM_SPEC): Handle -meva.
2397 * doc/invoke.texi (meva): Document.
2399 2013-06-04 Alan Modra <amodra@gmail.com>
2401 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
2404 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2406 * rtl.def: Add extra fourth optional field to define_cond_exec.
2407 * gensupport.c (process_one_cond_exec): Process attributes from
2409 * doc/md.texi: Document fourth field in define_cond_exec.
2411 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
2413 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
2414 out the processing order as in store_bit_field_1.
2416 2013-06-04 Jan Hubicka <jh@suse.cz>
2419 * cgraphunit.c (cgraph_process_same_body_aliases): Create
2420 non-VAR_DECL node if it does not exist yet.
2422 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
2424 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
2425 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
2426 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
2427 target_cpu_default setting.
2429 2013-06-03 Teresa Johnson <tejohnson@google.com>
2431 * dumpfile.c (opt_info_switch_p): Change -fopt-info
2432 default to -fopt-info=optimized instead of all.
2433 * doc/invoke.texi: Ditto.
2434 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
2435 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
2436 (execute_vect_slp): Emit BB vectorization success under
2437 MSG_OPTIMIZED_LOCATIONS.
2438 * tree-vect-slp.c (vect_slp_transform_bb): Change
2439 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
2440 * tree-vect-loop.c (vect_transform_loop): Ditto.
2442 2013-06-03 Jason Merrill <jason@redhat.com>
2445 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2446 Use TARGET_EXPR for C++.
2448 2013-06-03 Jakub Jelinek <jakub@redhat.com>
2450 PR rtl-optimization/57268
2451 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
2452 if DEBUG_INSN_P (insn).
2455 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
2457 PR rtl-optimization/57268
2458 * sched-deps.c (sched_analyze_2): Flush dependence lists if
2459 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2461 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
2463 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
2464 (ix86_avoid_lea_for_addr): Likewise.
2465 (exact_dependency_1): Likewise.
2466 (ix86_adjust_cost): Likewise.
2467 (swap_top_of_ready_list): Fix formatting and !reload_completed check
2469 (do_reorder_for_imul): Fix typo, formatting and
2470 !reload_completed check removed.
2471 (ix86_sched_reorder): Fix typo and formatting.
2472 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
2475 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
2477 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
2479 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
2481 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
2482 <STRING_CST>: Likewise.
2483 <VECTOR_CST>: Likewise.
2485 2013-06-01 Janus Weil <janus@gcc.gnu.org>
2486 Mikael Morin <mikael@gcc.gnu.org>
2488 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
2489 * config.in: Regenerated.
2490 * configure: Regenerated.
2492 2013-06-01 Jan Hubicka <jh@suse.cz>
2495 * cgraphunit.c (compile): When weakref is not supported,
2496 set up transparent aliases before final output pass.
2497 * varasm.c (assemble_alias): Do not try to do it here.
2499 2013-06-01 Jan Hubicka <jh@suse.cz>
2502 * passes.c (for_per_function): Skip unanalyzed functions.
2504 2013-06-01 Jan Hubicka <jh@suse.cz>
2506 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
2507 (lto_symtab_merge_symbols_1): ... this one.
2508 (lto_symtab_merge_cgraph_nodes): Rename to ...
2509 (lto_symtab_merge_symbols): ... this one; simplify.
2510 * cgraph.c (same_body_aliases_done): Rename to ...
2511 (cpp_implicit_aliases_done): ... this one.
2512 (cgraph_create_function_alias): Update.
2513 (cgraph_same_body_alias): Update.
2514 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
2515 (verify_edge_corresponds_to_fndecl): Simplify.
2516 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
2517 (cgraph_node): Remove same_body_alias.
2518 (varpool_node): Remove alias_of and extra_name_alias.
2519 (same_body_aliases_done): Rename to ..
2520 (cpp_implicit_aliases_done): ... this one.
2521 (symtab_alias_ultimate_target): Add default parameter.
2522 (symtab_resolve_alias): New function.
2523 (fixup_same_cpp_alias_visibility): Declare.
2524 (cgraph_function_node): Add default parameter.
2525 (cgraph_node_asm_name): Likewise.
2526 (cgraph_function_or_thunk_node): Add default parameter; do
2527 not ICE when it is NULL.
2528 (varpool_variable_node): Likewise.
2529 * tree-emutls.c (create_emultls_var): Update.
2530 (ipa_lower_emutls): Update.
2531 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
2532 (cgraph_reset_node): Reset alias info.
2533 (cgraph_finalize_function): Update.
2534 (fixup_same_cpp_alias_visibility): Move to symtab.c.
2535 (analyze_function): Simplify.
2536 (cgraph_process_same_body_aliases): Simplify.
2537 (analyze_functions): Fixup same body aliases.
2538 (handle_alias_pairs): Simplify.
2539 (assemble_thunk): Update.
2540 (assemble_thunks_and_aliases): Update.
2541 (output_weakrefs): Rewrite.
2542 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
2543 (lto_output_varpool_node): Likewise.
2544 (compute_ltrans_boundary): Remve assert.
2545 (get_alias_symbol): New functoin.
2546 (input_node): Rewrite alias handling.
2547 (input_varpool_node): Likewise.
2548 * ipa-pure-const.c (propagate_pure_const): Fix formating.
2549 * ipa.c (process_references): Handle weakrefs correctly.
2550 (symtab_remove_unreachable_nodes): Likewise.
2551 * trans-mem.c (get_cg_data): Update.
2552 (ipa_tm_create_version_alias): Update.
2553 (ipa_tm_execute): Update.
2554 * symtab.c (dump_symtab_base): Dump aliases.
2555 (verify_symtab_base): Verify aliases.
2556 (symtab_node_availability): New function.
2557 (symtab_alias_ultimate_target): Simplify.
2558 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
2559 handle all the fixup cases.
2560 (symtab_resolve_alias): New function.
2561 * passes.c (ipa_write_summaries): Handle weakrefs.
2562 * varpool.c (varpool_analyze_node): Simplify.
2563 (assemble_aliases): Update.
2564 (varpool_create_variable_alias): Simplify.
2565 (varpool_extra_name_alias): Simplify.
2566 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
2567 (lto_symtab_merge_symbols): ... this one.
2569 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
2572 PR rtl-optimization/57268
2573 * sched-deps.c (sched_analyze_2): Flush dependence lists if
2574 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2576 2013-06-01 Tobias Burnus <burnus@net-b.de>
2579 2013-05-31 Tobias Burnus <burnus@net-b.de>
2582 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
2585 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
2587 PR rtl-optimization/57268
2588 * sched-deps.c (sched_analyze_2): Flush dependence lists if
2589 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2591 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
2593 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
2594 unordered comparison operators when -fno-trapping-math is in effect
2596 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
2597 and implement unordered comparison operators properly on the e500.
2599 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
2601 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
2602 for constant scalar integers.
2603 (simplify_relational_operation_1): Likewise.
2605 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
2607 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
2608 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
2611 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
2612 Igor Zamyatin <igor.zamyatin@intel.com>
2614 Silvermont (SLM) architecture performance tuning.
2615 * config/i386/i386.h (enum ix86_tune_indices): Add
2616 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
2617 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
2619 * config/i386/i386.c (initial_ix86_tune_features)
2620 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
2621 (ix86_lea_outperforms): Handle Silvermont tuning.
2622 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
2624 (ix86_use_lea_for_mov): Likewise.
2625 (ix86_avoid_lea_for_addr): Likewise.
2626 (ix86_lea_for_add_ok): Likewise.
2627 (exact_dependency_1): New function.
2628 (exact_store_load_dependency): Likewise.
2629 (ix86_adjust_cost): Handle Silvermont tuning.
2630 (do_reoder_for_imul): Likewise.
2631 (swap_top_of_ready_list): New function.
2632 (ix86_sched_reorder): Changed to handle Silvermont tuning.
2634 * config/i386/i386.md (peepholes that split memory operand in fp
2637 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
2639 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2640 Remove un-necessary braces.
2642 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
2644 * config/aarch64/aarch64.c (aarch64_classify_symbol):
2645 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
2647 2013-05-31 Tobias Burnus <burnus@net-b.de>
2650 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
2652 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2655 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
2656 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
2657 * config/arm/neon.md (iordi3_neon): Remove.
2658 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
2659 * config/arm/predicates.md (imm_for_neon_logic_operand):
2660 Move to earlier in the file.
2661 (neon_logic_op2): Likewise.
2662 (arm_iordi_operand_neon): New predicate.
2664 2013-05-31 Richard Biener <rguenther@suse.de>
2666 PR tree-optimization/57478
2667 PR tree-optimization/57453
2668 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
2671 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
2673 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
2674 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
2676 2013-05-30 Tobias Burnus <burnus@net-b.de>
2677 Thomas Koenig <tkoenig@gcc.gnu.org>
2680 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
2681 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
2683 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
2685 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
2687 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
2689 * target.def (register_usage_leveling_p): New hook.
2690 * targhooks.c (default_register_usage_leveling_p): New.
2691 * targhooks.h (default_register_usage_leveling_p): New prototype.
2692 * lra-assigns.c (register_usage_leveling_p): Use the hook.
2693 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
2694 * doc/tm.texi: Update.
2695 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
2697 2013-05-30 Ian Bolton <ian.bolton@arm.com>
2699 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
2700 (*insv_reg<mode>): New define_insn.
2702 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
2704 PR rtl-optimization/57439
2705 * postreload.c (move2add_valid_value_p): Check that we have
2706 a zero subreg_regno_offset when accessing the register in
2709 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
2710 Igor Zamyatin <igor.zamyatin@intel.com>
2712 Silvermont (SLM) architecture pipeline model, tuning and
2714 * config.gcc: Add slm config options and target.
2716 * config/i386/slm.md: New.
2718 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
2720 * gcc/config/i386/i386-c.c (ix86_target_macros_internal): New case
2722 (ix86_target_macros_internal): Likewise.
2724 * gcc/config/i386/i386.c (slm_cost): New cost.
2725 (m_SLM): New macro flag.
2726 (initial_ix86_tune_features): Set m_SLM.
2727 (x86_accumulate_outgoing_args): Likewise.
2728 (x86_arch_always_fancy_math_387): Likewise.
2729 (processor_target_table): Add slm cost.
2730 (cpu_names): Add slm cpu name.
2731 (x86_option_override_internal): Set SLM ISA.
2732 (ix86_issue_rate): New case PROCESSOR_SLM.
2733 (ia32_multipass_dfa_lookahead): Likewise.
2734 (fold_builtin_cpu): Add slm.
2736 * config/i386/i386.h (TARGET_SLM): New target macro.
2737 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
2738 (processor_type): Add PROCESSOR_SLM.
2740 * config/i386/i386.md (cpu): Add new value "slm".
2741 (slm.md): Include slm.md.
2743 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
2744 Zhenqiang Chen <zhenqiang.chen@linaro.org>
2746 * config/arm/arm-protos.h: Add and update function protos.
2747 * config/arm/arm.c (use_simple_return_p): New added.
2748 (thumb2_expand_return): Check simple_return flag.
2749 * config/arm/arm.md: Add simple_return and conditional simple_return.
2750 * config/arm/iterators.md: Add iterator for return and simple_return.
2752 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
2754 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
2755 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
2756 (arm_emit_vfp_multi_reg_pop): Likewise.
2757 (thumb2_emit_ldrd_pop): Likewise.
2758 (arm_expand_epilogue): Add misc REG_CFA notes.
2759 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
2761 2013-05-29 Lawrence Crowl <crowl@google.com>
2763 * config/arm/t-arm: Update for below.
2765 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
2766 Change type to hash_table. Update dependent calls and types.
2768 * config/i386/t-cygming: Update for below.
2770 * config/i386/t-interix: Update for below.
2772 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
2773 Change type to hash_table. Update dependent calls and types.
2774 (i386_find_on_wrapper_list::wrappers): Likewise.
2776 * config/ia64/t-ia64: Update for below.
2778 * config/ia64/ia64.c (bundle_state_table):
2779 Change type to hash_table. Update dependent calls and types.
2781 * config/mips/mips.c (mips_reorg_process_insns::htab):
2782 Change type to hash_table. Update dependent calls and types.
2784 * config/sol2.c (solaris_comdat_htab):
2785 Change type to hash_table. Update dependent calls and types.
2787 * config/t-sol2: Update for above.
2789 2013-05-29 Teresa Johnson <tejohnson@google.com>
2791 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
2792 functions are not yet marked as defined.
2794 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
2795 Pat Haugen <pthaugen@us.ibm.com>
2796 Peter Bergner <bergner@vnet.ibm.com>
2798 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
2802 (vrotl<mode>3): Likewise.
2803 (vashl<mode>3): Likewise.
2804 (vlshr<mode>3): Likewise.
2805 (vashr<mode>3): Likewise.
2807 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2808 support for power8 V2DI builtins.
2810 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
2811 power8 V2DI builtins.
2812 (vupkhsw): Likewise.
2813 (vupklsw): Likewise.
2814 (vaddudm): Likewise.
2819 (vpkudum): Likewise.
2820 (vpksdss): Likewise.
2821 (vpkudus): Likewise.
2822 (vpksdus): Likewise.
2827 (vsubudm): Likewise.
2828 (vcmpequd): Likewise.
2829 (vcmpgtsd): Likewise.
2830 (vcmpgtud): Likewise.
2831 (vcmpequd_p): Likewise.
2832 (vcmpgtsd_p): Likewise.
2833 (vcmpgtud_p): Likewise.
2834 (vupkhsw): Likewise.
2835 (vupklsw): Likewise.
2836 (vaddudm): Likewise.
2841 (vpksdss): Likewise.
2842 (vpksdus): Likewise.
2843 (vpkudum): Likewise.
2844 (vpkudus): Likewise.
2849 (vsubudm): Likewise.
2851 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
2852 support for power8 V2DI instructions.
2854 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
2855 power8 V2DI instructions. Combine pack and unpack insns to use an
2856 iterator for each mode. Check whether a particular mode supports
2857 Altivec instructions instead of just checking TARGET_ALTIVEC.
2858 (UNSPEC_VPKUWUM): Likewise.
2859 (UNSPEC_VPKSHSS): Likewise.
2860 (UNSPEC_VPKSWSS): Likewise.
2861 (UNSPEC_VPKUHUS): Likewise.
2862 (UNSPEC_VPKSHUS): Likewise.
2863 (UNSPEC_VPKUWUS): Likewise.
2864 (UNSPEC_VPKSWUS): Likewise.
2865 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
2866 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
2867 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
2868 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
2869 (UNSPEC_VUPKHSB): Likewise.
2870 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
2871 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
2872 (UNSPEC_VUPKHSH): Likewise.
2873 (UNSPEC_VUPKLSB): Likewise.
2874 (UNSPEC_VUPKLSH): Likewise.
2876 (VI_char): Likewise.
2877 (VI_scalar): Likewise.
2878 (VI_unit): Likewise.
2880 (VP_small): Likewise.
2881 (VP_small_lc): Likewise.
2882 (VU_char): Likewise.
2883 (add<mode>3): Likewise.
2884 (altivec_vaddcuw): Likewise.
2885 (altivec_vaddu<VI_char>s): Likewise.
2886 (altivec_vadds<VI_char>s): Likewise.
2887 (sub<mode>3): Likewise.
2888 (altivec_vsubcuw): Likewise.
2889 (altivec_vsubu<VI_char>s): Likewise.
2890 (altivec_vsubs<VI_char>s): Likewise.
2891 (altivec_vavgs<VI_char>): Likewise.
2892 (altivec_vcmpbfp): Likewise.
2893 (altivec_eq<mode>): Likewise.
2894 (altivec_gt<mode>): Likewise.
2895 (altivec_gtu<mode>): Likewise.
2896 (umax<mode>3): Likewise.
2897 (smax<mode>3): Likewise.
2898 (umin<mode>3): Likewise.
2899 (smin<mode>3): Likewise.
2900 (altivec_vpkuhum): Likewise.
2901 (altivec_vpkuwum): Likewise.
2902 (altivec_vpkshss): Likewise.
2903 (altivec_vpkswss): Likewise.
2904 (altivec_vpkuhus): Likewise.
2905 (altivec_vpkshus): Likewise.
2906 (altivec_vpkuwus): Likewise.
2907 (altivec_vpkswus): Likewise.
2908 (altivec_vpks<VI_char>ss): Likewise.
2909 (altivec_vpks<VI_char>us): Likewise.
2910 (altivec_vpku<VI_char>us): Likewise.
2911 (altivec_vpku<VI_char>um): Likewise.
2912 (altivec_vrl<VI_char>): Likewise.
2913 (altivec_vsl<VI_char>): Likewise.
2914 (altivec_vsr<VI_char>): Likewise.
2915 (altivec_vsra<VI_char>): Likewise.
2916 (altivec_vsldoi_<mode>): Likewise.
2917 (altivec_vupkhsb): Likewise.
2918 (altivec_vupkhs<VU_char>): Likewise.
2919 (altivec_vupkls<VU_char>): Likewise.
2920 (altivec_vupkhsh): Likewise.
2921 (altivec_vupklsb): Likewise.
2922 (altivec_vupklsh): Likewise.
2923 (altivec_vcmpequ<VI_char>_p): Likewise.
2924 (altivec_vcmpgts<VI_char>_p): Likewise.
2925 (altivec_vcmpgtu<VI_char>_p): Likewise.
2926 (abs<mode>2): Likewise.
2927 (vec_unpacks_hi_v16qi): Likewise.
2928 (vec_unpacks_hi_v8hi): Likewise.
2929 (vec_unpacks_lo_v16qi): Likewise.
2930 (vec_unpacks_hi_<VP_small_lc>): Likewise.
2931 (vec_unpacks_lo_v8hi): Likewise.
2932 (vec_unpacks_lo_<VP_small_lc>): Likewise.
2933 (vec_pack_trunc_v8h): Likewise.
2934 (vec_pack_trunc_v4si): Likewise.
2935 (vec_pack_trunc_<mode>): Likewise.
2937 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
2939 (vec_vmaxsd): Likewise.
2940 (vec_vmaxud): Likewise.
2941 (vec_vminsd): Likewise.
2942 (vec_vminud): Likewise.
2943 (vec_vpksdss): Likewise.
2944 (vec_vpksdus): Likewise.
2945 (vec_vpkudum): Likewise.
2946 (vec_vpkudus): Likewise.
2947 (vec_vrld): Likewise.
2948 (vec_vsld): Likewise.
2949 (vec_vsrad): Likewise.
2950 (vec_vsrd): Likewise.
2951 (vec_vsubudm): Likewise.
2952 (vec_vupkhsw): Likewise.
2953 (vec_vupklsw): Likewise.
2955 2013-05-29 Jan Hubicka <jh@suse.cz>
2957 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
2958 flags; reorder rest of fields in more consistent way.
2959 (varpool_node): Remove analyzed, finalized and alias.
2960 (cgraph_ndoe): Likewise.
2961 (symtab_alias_ultimate_target): New function.
2962 (cgraph_function_node): Move offline.
2963 (cgraph_reset_node): Declare.
2964 (cgraph_comdat_can_be_unshared_p): Remove.
2965 (varpool_remove_initializer): Declare.
2966 (varpool_first_defined_variable, varpool_next_defined_variable
2967 cgraph_first_defined_function, cgraph_next_defined_function): Update.
2968 (cgraph_function_with_gimple_body_p): Update.
2969 (varpool_all_refs_explicit_p): Update.
2970 (symtab_alias_target): New function.
2971 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
2972 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
2973 (cgraph_function_or_thunk_node): Simplify using
2974 symtab_alias_ultimate_target.
2975 (varpool_variable_node): Likewise.
2976 * cgraph.c (cgraph_create_function_alias): Update.
2977 (cgraph_add_thunk): Update.
2978 (cgraph_remove_node): Update.
2979 (dump_cgraph_node): Do not dump removed flags.
2980 (cgraph_function_body_availability): Update.
2981 (cgraph_propagate_frequency): Update.
2982 (verify_cgraph_node): Check sanity of local flag.
2983 (cgraph_function_node): Move here from cgraph.h; revamp for
2984 cgraph_function_or_thunk_node.
2985 * lto-symtab.c (lto_varpool_replace_node): Update.
2986 (lto_symtab_resolve_can_prevail_p): Update.
2987 (lto_symtab_merge_cgraph_nodes): Update.
2988 * ipa-cp.c (determine_versionability, initialize_node_lattices,
2989 propagate_constants_accross_call, devirtualization_time_bonus,
2990 ipcp_propagate_stage): Update.
2991 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
2992 * ipa-inline-transform.c (clone_inlined_nodes,
2993 preserve_function_body_p): Update.
2994 * ipa-reference.c (propagate): Update.
2995 (write_node_summary_p): Update.
2996 * toplev.c (wrapup_global_declaration_2): Update.
2997 * cgraphunit.c (cgraph_analyze_function): Rename to ...
2998 (analyze_function) ... this one.
2999 (cgraph_process_new_functions): Update.
3000 (cgraph_reset_node): Export.
3001 (cgraph_finalize_function): Update.
3002 (cgraph_add_new_function): Update.
3003 (process_function_and_variable_attributes): Update.
3004 (varpool_finalize_decl): Update.
3005 (symbol_finalized): Remove.
3006 (symbol_finalized_and_needed): Rename to ...
3007 (symbol_defined_and_needed): ... update.
3008 (cgraph_analyze_functions): Update.
3009 (handle_alias_pairs): Update.
3010 (mark_functions_to_output): Update.
3011 (assemble_thunk): Update.
3012 (output_in_order): Update.
3013 (output_weakrefs): Update.
3014 (finalize_compilation_unit): Update.
3015 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
3016 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
3017 input_node, input_varpool_node): Update.
3018 * dbxout.c (dbxout_expand_expr): Update.
3019 * cgraphclones.c (cgraph_clone_node): Update.
3020 (cgraph_copy_node_for_versioning): Update.
3021 (cgraph_materialize_clone): Update.
3022 (cgraph_materialize_all_clones): Update.
3023 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
3024 propagate_pure_const, propagate_nothrow): Update.
3025 * lto-streamer-out.c (lto_output, write_symbol): Update.
3026 * ipa-utils.c (ipa_reverse_postorder): Update.
3027 * ipa-inline.c (can_inline_edge_p): Update.
3028 (update_caller_keys, ipa_inline): Update.
3029 * dwarf2out.c (reference_to_unused,
3030 premark_types_used_by_global_vars_helper): Update.
3031 * tree-eh.c (tree_could_trap_p): Update.
3032 * ipa-split.c (consider_split, execute_split_functions): Update.
3033 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
3034 has_addr_references_p): Update; move ahead in file for better
3036 (process_references): Simplify.
3037 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
3039 (cgraph_comdat_can_be_unshared_p): Make static.
3040 (cgraph_externally_visible_p): Update.
3041 (varpool_externally_visible_p): Update.
3042 (function_and_variable_visibility): Update.
3043 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
3044 ipa_tm_mark_force_output_node): Update.
3045 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
3046 estimate_edge_devirt_benefit, inline_generate_summary,
3047 inline_write_summary): Update.
3048 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
3049 * ipa-prop.c (ipa_compute_jump_functions): Update.
3050 (ipa_print_node_params, ipa_prop_read_section,
3051 ipa_update_after_lto_read, read_replacements_section): Update.
3052 * varasm.c (mark_decl_referenced): Update.
3053 (assemble_alias, dump_tm_clone_pairs): Update.
3054 * tree-inline.c (copy_bb): Update.
3055 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
3057 * symtab.c (dump_symtab_base): Print new flags.
3058 (verify_symtab_base): Verify new flags.
3059 (symtab_alias_ultimate_target): New function.
3060 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
3061 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
3063 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
3065 * i386.c (ix86_get_function_versions_dispatcher,
3066 ix86_generate_version_dispatcher_body): Update.
3067 (fold_builtin_cpu): Use varpool_add_new_variable.
3068 * varpool.c (varpool_remove_initializer): Break out from ...
3069 (varpool_remove_node): ... this one.
3070 (dump_varpool_node, varpool_node_for_asm,
3071 cgraph_variable_initializer_availability, varpool_analyze_node,
3072 varpool_assemble_decl, varpool_remove_unreferenced_decls,
3073 varpool_finalize_named_section_flags, varpool_create_variable_alias):
3076 2013-05-29 Jan Hubicka <jh@suse.cz>
3078 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
3080 2013-05-29 Easwaran Raman <eraman@google.com>
3082 PR tree-optimization/57442
3083 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
3084 when control exits the main loop.
3086 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
3088 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
3090 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
3091 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
3092 * rx/t-rx: Add rx100 under multi library matches option for nofpu
3095 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3097 PR tree-optimization/57441
3098 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
3099 Don't limit size of incr_vec to number of candidates.
3101 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
3103 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
3104 and mips16 directories.
3105 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
3106 (MULTILIB_DIRNAMES): Ditto.
3107 (MULTILIB_EXCEPTIONS): Add new exceptions.
3108 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
3109 (MULTILIB_DIRNAMES): Ditto.
3110 (MULTILIB_EXCEPTIONS): Add new exceptions.
3112 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3113 Marcus Shawcroft <marcus.shawcroft@arm.com>
3115 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
3116 SYMBOL_TINY_ABSOLUTE.
3117 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
3118 SYMBOL_TINY_ABSOLUTE.
3119 (aarch64_expand_mov_immediate): Likewise.
3120 (aarch64_classify_symbol): Likewise.
3121 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
3122 Permit SYMBOL_TINY_ABSOLUTE.
3123 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
3125 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3126 Marcus Shawcroft <marcus.shawcroft@arm.com>
3128 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
3129 Refactor if/switch. Replace gcc_assert with if.
3131 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3133 * config/i386/i386.c (initial_ix86_tune_features): Enable
3134 FP Reassociation for AMD bdver1 and bdver2.
3136 2013-05-29 Martin Jambor <mjambor@suse.cz>
3138 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
3139 and IMAGPART_EXPR do not occur within other handled_components.
3141 2013-05-29 Richard Biener <rguenther@suse.de>
3143 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
3144 access on whether the use is in the BB we currently try to
3146 (vect_bb_vectorization_profitable_p): Pass the BB we currently
3147 vectorize to vect_bb_slp_scalar_cost.
3149 2013-05-29 Richard Biener <rguenther@suse.de>
3151 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
3152 computing scalar cost offsetted by stmts that are kept live
3154 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
3155 for computation of scalar cost.
3157 2013-05-28 Steve Ellcey <sellcey@mips.com>
3159 * config/mips/mips-cpus.def (mips32r2): Change processor type.
3161 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
3163 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
3164 array notation built-in reduction functions.
3165 * doc/passes.texi (Passes): Added documentation about changes done
3167 * doc/invoke.texi (C Dialect Options): Added documentation about
3168 the -fcilkplus flag.
3169 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
3170 (BUILTINS_DEF): Depend on cilkplus.def.
3171 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
3172 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
3173 * cilkplus.def: New file.
3175 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
3177 PR rtl-optimization/57439
3178 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
3180 2013-05-28 Easwaran Raman <eraman@google.com>
3182 PR tree-optimization/57337
3183 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
3184 (find_insert_point): Correctly identify the insertion point
3185 when two statements with the same UID is compared.
3187 2013-05-28 Richard Biener <rguenther@suse.de>
3189 PR tree-optimization/56787
3190 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
3191 from the list of data references.
3192 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
3194 (vect_analyze_loop_operations): Likewise.
3195 (vect_transform_loop): Remove clobbers.
3197 2013-05-28 Martin Jambor <mjambor@suse.cz>
3199 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
3200 and REALPART_EXPRs have scalar type.
3202 2013-05-28 Richard Biener <rguenther@suse.de>
3204 PR tree-optimization/57411
3205 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
3207 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
3208 virtual operand propagation.
3210 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
3212 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
3213 destination register for bmasksi_vis.
3214 (vector_init_bshuffle): Likewise.
3215 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
3217 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
3219 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
3220 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
3221 mode if the instruction isn't available in the original mode.
3222 * config/sparc/sparc.opt (mfix-ut699): New option.
3223 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
3224 (divdf3): Turn into expander.
3225 (divdf3_nofix): New insn.
3226 (divdf3_fix): Likewise.
3227 (divsf3): Disable if -mfix-ut699.
3228 (sqrtdf2): Turn into expander.
3229 (sqrtdf2_nofix): New insn.
3230 (sqrtdf2_fix): Likewise.
3231 (sqrtsf2): Disable if -mfix-ut699.
3233 2013-05-27 Richard Biener <rguenther@suse.de>
3236 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
3237 block for the new loop.
3239 2013-05-27 Richard Biener <rguenther@suse.de>
3241 PR tree-optimization/57343
3242 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
3243 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
3244 (number_of_iterations_cond): Do not build the folded tree.
3246 2013-05-27 Richard Biener <rguenther@suse.de>
3250 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
3251 OEP_CONSTANT_ADDRESS_OF retained.
3253 PR tree-optimization/57417
3254 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
3256 (set_ssa_val_to): Compare addresses using
3257 get_addr_base_and_unit_offset.
3259 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
3261 PR rtl-optimization/56833
3262 * postreload.c (move2add_record_mode): New function.
3263 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
3264 (move2add_use_add2_insn): Use move2add_record_sym_value.
3265 (move2add_use_add3_insn): Likewise.
3266 (reload_cse_move2add): Use move2add_valid_value_p and
3267 move2add_record_mode. Invalidate call-clobbered and REG_INC
3268 affected regs by setting reg_mode to VOIDmode.
3269 (move2add_note_store): Don't pretend the inside of a SUBREG is
3270 the actual destination. Invalidate single/leading registers by
3271 setting reg_mode to VOIDmode.
3272 Use move2add_record_sym_value, move2add_valid_value_p and
3273 move2add_record_mode.
3275 2013-05-27 Richard Biener <rguenther@suse.de>
3277 PR tree-optimization/57396
3278 * tree-affine.c (double_int_constant_multiple_p): Properly
3279 return false for val == 0 and div != 0.
3281 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
3283 * config/mips/mips.h: Use #elif in preprocessor conditions.
3285 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
3288 * config/mips/constraints.md (kl): New constraint.
3289 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
3290 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
3291 constraint for operand 0. Split after CSE for MIPS16. Emit a move
3293 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
3295 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
3298 * config/mips/mips.c (mips_can_inline_p): New function.
3299 (TARGET_CAN_INLINE_P): Define.
3301 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
3303 * sched-int.h (ds_t, dw_t): Make unsigned int.
3304 Fix documentation that describes how all the ds_t bits are used.
3305 Reserve the last bit for delayed-branch scheduling.
3306 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
3307 (BITS_PER_DEP_WEAK): Fix definition and documentation.
3308 (gen_dep_weak_1): Remove prototype.
3309 * sched-deps.c (get_dep_weak_1): Make static.
3310 * target.def (speculate_insn, needs_block_p, gen_spec_check,
3311 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
3312 * doc/tm.texi: Regenerate.
3313 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
3315 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
3318 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
3320 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
3321 Sandra Loosemore <sandra@codesourcery.com>
3323 * config.gcc (powerpc-*): Allow native for with-cpu.
3325 2013-05-24 Jeff Law <law@redhat.com>
3327 PR tree-optimization/57124
3328 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
3329 conversion feeding a condition if the range has an overflow
3330 if -fstrict-overflow. Add warnings for when we do make the
3333 2013-05-24 Dehao Chen <dehao@google.com>
3335 * tree-cfg.c (locus_discrim_map): Fix the typo.
3336 (locus_discrim_hasher): Likewise.
3337 (locus_discrim_hasher::hash): Likewise.
3338 (locus_discrim_hasher::equal): Likewise.
3340 2013-05-24 Martin Jambor <mjambor@suse.cz>
3342 PR tree-optimization/57294
3343 * cgraph.h (ipa_record_stmt_references): Declare.
3344 * cgraphbuild.c (ipa_record_stmt_references): New function.
3345 (build_cgraph_edges): Use ipa_record_stmt_references.
3346 (rebuild_cgraph_edges): Likewise.
3347 (cgraph_rebuild_references): Likewise.
3348 * ipa-prop.c (ipa_modify_call_arguments): Discard references
3349 associated with the old statement and build references from the
3350 newly built statements.
3351 * ipa-ref.c (ipa_remove_stmt_references): New function.
3352 * ipa-ref.h (ipa_remove_stmt_references): Declare.
3354 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
3356 * lra-constraints.c (emit_spill_move): Use smaller mode for
3358 (check_and_process_move): Consider mem-reg moves for secondary
3360 (curr_insn_transform): Don't lose insns emitted before for
3361 secondary memory moves.
3362 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
3363 reg set up in the current insn.
3365 2013-05-24 Dehao Chen <dehao@google.com>
3367 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
3369 (locus_descrim_hasher::equal): Likewise.
3370 (build_gimple_cfg): New discriminator assignment algorithm.
3371 (make_edges): Likewise.
3372 (next_discriminator_for_locus): Likewise.
3373 (same_line_p): Likewise.
3374 (assign_discriminators): Likewise.
3375 (make_cond_expr_edges): Likewise.
3376 (make_gimple_switch_edges): Likewise.
3377 (make_goto_expr_edges): Likewise.
3378 (make_gimple_asm_edges): Likewise.
3380 2013-05-24 Ian Bolton <ian.bolton@arm.com>
3382 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
3383 X format specifier to only display bottom 16 bits.
3384 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
3385 immediate to match for operand 2, since it will be masked.
3387 2013-05-24 Richard Biener <rguenther@suse.de>
3389 PR tree-optimization/57287
3390 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
3391 all SSA names that occur in abnormal PHIs.
3393 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3396 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
3397 that index is not negative.
3399 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
3401 PR rtl-optimization/55177
3402 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
3403 (simplify_byte_swapping_operation): New.
3404 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
3405 (simplify_relational_operation_1): Deal with BSWAP.
3407 2013-05-23 Richard Henderson <rth@redhat.com>
3410 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
3411 (ix86_reorg): Call it.
3413 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
3416 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
3417 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
3418 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
3420 2013-05-23 Christian Bruel <christian.bruel@st.com>
3423 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
3425 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3426 Marcus Shawcroft <marcus.shawcroft@arm.com>
3428 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
3429 * config/aarch64/constraints.md (Usa): Remove.
3430 * doc/md.texi (AArch64 Usa): Remove.
3432 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3433 Marcus Shawcroft <marcus.shawcroft@arm.com>
3435 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
3436 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
3437 * config/aarch64/predicates.md (aarch64_const_address): Remove.
3438 (aarch64_mov_operand): Use aarch64_mov_operand_p.
3440 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
3442 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
3443 instruction (AdvSIMD).
3444 * config/aarch64/aarch64-builtins.c
3445 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
3446 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
3448 2013-05-23 Martin Jambor <mjambor@suse.cz>
3451 * tree.h (contains_bitfld_component_ref_p): Declare.
3452 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
3453 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
3455 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
3456 not access a bit-field. Assert all final offsets are byte-aligned.
3458 2013-05-23 Richard Biener <rguenther@suse.de>
3460 PR tree-optimization/57380
3461 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
3462 least one invariant or re-used load.
3463 * passes.c (init_optimization_passes): Move pass_phiprop before
3466 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
3468 * config/aarch64/aarch64-simd.md
3469 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
3471 2013-05-23 Richard Biener <rguenther@suse.de>
3474 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
3475 OEP_CONSTANT_ADDRESS_OF retained.
3477 2013-05-23 Jakub Jelinek <jakub@redhat.com>
3480 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
3481 don't lower unit. Handle unit not being always BITS_PER_WORD.
3483 2013-05-23 Richard Biener <rguenther@suse.de>
3485 PR rtl-optimization/57341
3486 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
3487 instead of true_dependence.
3489 2013-05-22 David Malcolm <dmalcolm@redhat.com>
3491 * bb-reorder.c (branch_threshold): Make const.
3492 (exec_threshold): Ditto.
3494 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
3495 Pat Haugen <pthaugen@us.ibm.com>
3496 Peter Bergner <bergner@vnet.ibm.com>
3498 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
3499 documentation for the power8 crypto builtins.
3501 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
3503 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
3504 macros for defining power8 builtin functions.
3505 (BU_P8V_AV_2): Likewise.
3506 (BU_P8V_AV_P): Likewise.
3507 (BU_P8V_VSX_1): Likewise.
3508 (BU_P8V_OVERLOAD_1): Likewise.
3509 (BU_P8V_OVERLOAD_2): Likewise.
3510 (BU_CRYPTO_1): Likewise.
3511 (BU_CRYPTO_2): Likewise.
3512 (BU_CRYPTO_3): Likewise.
3513 (BU_CRYPTO_OVERLOAD_1): Likewise.
3514 (BU_CRYPTO_OVERLOAD_2): Likewise.
3515 (XSCVSPDP): Fix typo, point to the correct instruction.
3516 (VCIPHER): Add power8 crypto builtins.
3517 (VCIPHERLAST): Likewise.
3518 (VNCIPHER): Likewise.
3519 (VNCIPHERLAST): Likewise.
3520 (VPMSUMB): Likewise.
3521 (VPMSUMH): Likewise.
3522 (VPMSUMW): Likewise.
3523 (VPERMXOR_V2DI): Likewise.
3524 (VPERMXOR_V4SI: Likewise.
3525 (VPERMXOR_V8HI: Likewise.
3526 (VPERMXOR_V16QI: Likewise.
3527 (VSHASIGMAW): Likewise.
3528 (VSHASIGMAD): Likewise.
3530 (VPERMXOR): Likewise.
3531 (VSHASIGMA): Likewise.
3533 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
3534 __CRYPTO__ if the crypto instructions are available.
3535 (altivec_overloaded_builtins): Add support for overloaded power8
3538 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
3539 support for power8 crypto builtins.
3540 (builtin_function_type): Likewise.
3541 (altivec_init_builtins): Add support for builtins that take vector
3542 long long (V2DI) arguments.
3544 * config/rs6000/crypto.md: New file, define power8 crypto
3547 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
3548 Pat Haugen <pthaugen@us.ibm.com>
3549 Peter Bergner <bergner@vnet.ibm.com>
3551 * doc/invoke.texi (Option Summary): Add power8 options.
3552 (RS/6000 and PowerPC Options): Likewise.
3554 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
3555 constraints.md instead of rs6000.h. Reorder w* constraints. Add
3556 wm, wn, wr documentation.
3558 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
3559 registers if direct move instructions are enabled.
3560 (wn): New constraint for no registers.
3561 (wq): New constraint for quad word even GPR registers.
3562 (wr): New constraint if 64-bit instructions are enabled.
3563 (wv): New constraint if power8 vector instructions are enabled.
3564 (wQ): New constraint for quad word memory locations.
3566 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
3567 constraint for 0..15 for crypto instructions.
3568 (gpc_reg_operand): If VSX allow registers in VSX registers as well
3569 as GPR and floating point registers.
3570 (int_reg_operand): New predicate to match only GPR registers.
3571 (base_reg_operand): New predicate to match base registers.
3572 (quad_int_reg_operand): New predicate to match even GPR registers
3573 for quad memory operations.
3574 (vsx_reg_or_cint_operand): New predicate to allow vector logical
3575 operations in both GPR and VSX registers.
3576 (quad_memory_operand): New predicate for quad memory operations.
3577 (reg_or_indexed_operand): New predicate for direct move support.
3579 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
3580 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
3581 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
3582 (POWERPC_MASKS): Add power8 options.
3583 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
3586 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
3587 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
3589 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
3590 (-mpower8-fusion): New power8 options.
3591 (-mpower8-fusion-sign): Likewise.
3592 (-mpower8-vector): Likewise.
3593 (-mcrypto): Likewise.
3594 (-mdirect-move): Likewise.
3595 (-mquad-memory): Likewise.
3597 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
3599 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
3601 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
3602 (rs6000_debug_vector_unit): Add p8_vector.
3603 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
3604 definitions. Also print fusion state.
3605 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
3606 (rs6000_builtin_mask_calculate): Add power8 builtin support.
3607 (rs6000_option_override_internal): Add support for power8.
3608 (rs6000_common_init_builtins): Add debugging for skipped builtins
3610 (rs6000_adjust_cost): Add power8 support.
3611 (rs6000_issue_rate): Likewise.
3612 (insn_must_be_first_in_group): Likewise.
3613 (insn_must_be_last_in_group): Likewise.
3614 (force_new_group): Likewise.
3615 (rs6000_register_move_cost): Likewise.
3616 (rs6000_opt_masks): Likewise.
3618 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
3619 power8 capable assembler, default to power7 options.
3620 (TARGET_DIRECT_MOVE): Likewise.
3621 (TARGET_CRYPTO): Likewise.
3622 (TARGET_P8_VECTOR): Likewise.
3623 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
3624 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
3625 (VECTOR_MEM_P8_VECTOR_P): Likewise.
3626 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
3627 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
3628 (TARGET_XSCVDPSPN): Likewise.
3629 (TARGET_XSCVSPDPN): Likewsie.
3630 (TARGET_SYNC_HI_QI): Likewise.
3631 (TARGET_SYNC_TI): Likewise.
3632 (MASK_CRYPTO): Likewise.
3633 (MASK_DIRECT_MOVE): Likewise.
3634 (MASK_P8_FUSION): Likewise.
3635 (MASK_P8_VECTOR): Likewise.
3636 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
3637 temporary used by some of the direct move instructions to get two FP
3638 temporary registers does not force creation of a stack frame.
3639 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
3640 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
3641 that any VSX registers are tieable, even if they are also an
3642 Altivec vector mode.
3643 (r6000_reg_class_enum): Add wm, wr, wv constraints.
3644 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
3645 (RS6000_BTM_CRYPTO): Likewise.
3646 (RS6000_BTM_COMMON): Likewise.
3648 * config/rs6000/rs6000.md (cpu attribute): Add power8.
3649 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
3650 (enum rs6000_vector): Add power8 vector support.
3652 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3656 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
3657 (any_sibcall_could_use_r3): this and handle indirect calls.
3658 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
3660 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3662 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
3664 2013-05-22 Richard Biener <rguenther@suse.de>
3667 * profile.c (branch_prob): Do not split blocks that are
3668 abnormally receiving from ECF_RETURNS_TWICE functions.
3670 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3672 * recog.c (offsettable_address_addr_space_p): Fix calculation of
3673 address mode. Move pointer mode initialization to the same place.
3675 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3677 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
3678 while it has any effect.
3680 2013-05-21 Easwaran Raman <eraman@google.com>
3682 PR tree-optimization/57322
3683 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
3684 UID of the statement added to the BB to be 1.
3686 2013-05-21 Jakub Jelinek <jakub@redhat.com>
3688 PR tree-optimization/57331
3689 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
3690 of conversion from pointer type to integral type with integer.
3692 2013-05-21 Martin Jambor <mjambor@suse.cz>
3695 * ipa-prop.c (ipa_read_node_info): Process param_used and
3696 controlled_uses in the same order as when writing.
3698 2013-05-21 Magnus Granberg <baldrick@free.fr>
3701 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
3703 2013-05-21 Richard Biener <rguenther@suse.de>
3705 PR tree-optimization/57318
3706 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
3707 estimate stmts with side-effects as likely eliminated.
3709 2013-05-21 Richard Biener <rguenther@suse.de>
3711 PR tree-optimization/57330
3712 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
3713 preserve the call stmts fntype.
3715 2013-05-21 Richard Biener <rguenther@suse.de>
3717 PR tree-optimization/57303
3718 * tree-ssa-sink.c (statement_sink_location): Improve killing
3719 stmt detection and properly handle self-assignments.
3721 2013-05-21 Christian Bruel <christian.bruel@st.com>
3723 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
3724 spanning registers. LEAF_REG_REMAP is supported only for contiguous
3725 registers. Set register size out of the PARALLEL loop.
3727 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
3730 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
3731 (*fmasf4, *fmasf4_media): New insns.
3733 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
3735 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
3736 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
3737 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
3738 (mips_idiv_insns): Update the comments to say that the returned
3739 instruction counts are in units of BASE_INSN_LENGTH.
3740 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
3741 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
3742 using 2 rather than 4 as the length of indirect MIPS16 and
3743 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
3744 length of a NOP. Don't divide MIPS16 lengths by 2.
3745 (mips16_split_long_branches): Assume a branch is long if the
3746 length is greater than 4 rather than 8.
3747 * config/mips/mips.md (length): Give MIPS16 lengths directly,
3748 rather than multiplying them by 2. Multiply instruction counts
3749 by BASE_INSN_LENGTH rather than 4.
3750 (*jump_mips16, tls_get_tp_mips16_<mode>)
3751 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
3753 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
3755 * config/mips/mips.md (extended_mips16): Remove branch case.
3756 (length): Remove duplicated extended_mips16 test.
3758 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
3760 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
3762 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
3764 * recog.h (Recog_data): Rename to...
3765 (recog_data_d): ...this.
3766 (recog_data): Update accordingly.
3767 * recog.c (recog_data): Likewise.
3768 * reload.c (save_recog_data): Likewise.
3769 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
3770 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
3772 2013-05-17 Julian Brown <julian@codesourcery.com>
3774 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
3775 found in a REG_EQUAL note, invalidate it.
3777 2013-05-17 Easwaran Raman <eraman@google.com>
3779 * tree-ssa-reassoc.c (find_insert_point): New function.
3780 (insert_stmt_after): Likewise.
3781 (get_def_stmt): Likewise.
3782 (ensure_ops_are_available): Likewise.
3783 (not_dominated_by): Likewise.
3784 (rewrite_expr_tree): Do not move statements beyond what is
3785 necessary. Remove call to swap_ops_for_binary_stmt...
3786 (reassociate_bb): ... and move it here.
3787 (build_and_add_sum): Assign UIDs for new statements.
3788 (linearize_expr): Likewise.
3789 (do_reassoc): Renumber gimple statement UIDs.
3791 2013-05-17 Jan Hubicka <jh@suse.cz>
3793 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
3795 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
3796 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
3798 (output_weakrefs): Update.
3800 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
3801 Martin Jambor <mjambor@suse.cz>
3804 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
3805 value that corresponds to the given aggval is found in values vector.
3807 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
3809 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
3810 sse, sse2, sse3, ssse3 and sse4a flags to options.
3812 2013-05-17 David Malcolm <dmalcolm@redhat.com>
3814 * gengtype-state.c: (s_expr_writer): New class, to handle
3815 prettifying of output layout of s-expressions.
3816 (state_writer): New class, to write out gtype.state.
3817 (state_written_type_count): Move this variable into member data of
3819 (s_expr_writer::s_expr_writer): New code: constructor for new class
3820 (state_writer::state_writer(): ditto
3821 (s_expr_writer::write_new_line): New function
3822 (s_expr_writer::write_any_indent): ditto
3823 (s_expr_writer::begin_s_expr): ditto
3824 (s_expr_writer::end_s_expr): ditto
3825 (write_state_fileloc): convert to method of state_writer...
3826 (state_writer:: write_state_fileloc): ...and use methods of
3827 s_expr_writer to write indentation into the gtype.state output file
3828 to visually represent the hierarchical structure of the list
3830 (write_state_fields): ditto, renaming to...
3831 (state_writer::write_state_fields)
3832 (write_state_a_string): ditto, renaming to...
3833 (state_writer::write_state_a_string)
3834 (write_state_string_option): ditto, renaming to...
3835 (state_writer::write_state_string_option)
3836 (write_state_type_option): ditto, renaming to...
3837 (state_writer::write_state_type_option)
3838 (write_state_nested_option): ditto, renaming to...
3839 (state_writer::write_state_nested_option)
3840 (write_state_option): ditto, renaming to...
3841 (state_writer::write_state_option)
3842 (write_state_options): ditto, renaming to...
3843 (state_writer::write_state_options)
3844 (write_state_lang_bitmap): ditto, renaming to...
3845 (state_writer::write_state_lang_bitmap)
3846 (write_state_version): ditto, renaming to...
3847 (state_writer::write_state_version)
3848 (write_state_scalar_type): ditto, renaming to...
3849 (state_writer::write_state_scalar_type)
3850 (write_state_string_type): ditto, renaming to...
3851 (state_writer::write_state_string_type)
3852 (write_state_undefined_type): ditto, renaming to...
3853 (state_writer::write_state_undefined_type)
3854 (write_state_struct_union_type): ditto, renaming to...
3855 (state_writer::write_state_struct_union_type)
3856 (write_state_struct_type): ditto, renaming to...
3857 (state_writer::write_state_struct_type)
3858 (write_state_user_struct_type): ditto, renaming to...
3859 (state_writer::write_state_user_struct_type)
3860 (write_state_lang_struct_type): ditto, renaming to...
3861 (state_writer::write_state_lang_struct_type)
3862 (write_state_param_struct_type): ditto, renaming to...
3863 (state_writer::write_state_param_struct_type)
3864 (write_state_pointer_type): ditto, renaming to...
3865 (state_writer::write_state_pointer_type)
3866 (write_state_array_type): ditto, renaming to...
3867 (state_writer::write_state_array_type)
3868 (write_state_gc_used): ditto, renaming to...
3869 (state_writer::write_state_gc_used)
3870 (write_state_common_type_content): ditto, renaming to...
3871 (state_writer::write_state_common_type_content)
3872 (write_state_type): ditto, renaming to...
3873 (state_writer::write_state_type)
3874 (write_state_pair_list): ditto, renaming to...
3875 (state_writer::write_state_pair_list)
3876 (write_state_pair): ditto, renaming to...
3877 (state_writer::write_state_pair)
3878 (write_state_typedefs): ditto, renaming to...
3879 (state_writer::write_state_typedefs)
3880 (write_state_structures): ditto, renaming to...
3881 (state_writer::write_state_structures)
3882 (write_state_param_structs): ditto, renaming to...
3883 (state_writer::write_state_param_structs)
3884 (write_state_variables): ditto, renaming to...
3885 (state_writer::write_state_variables)
3886 (write_state_srcdir): ditto, renaming to...
3887 (state_writer::write_state_srcdir)
3888 (write_state_files_list): ditto, renaming to...
3889 (state_writer::write_state_files_list)
3890 (write_state_languages): ditto, renaming to...
3891 (state_writer::write_state_languages)
3892 (write_state): create a state_writer instance and use it when
3893 writing out the state file
3895 2013-05-17 Mike Stump <mikestump@comcast.net>
3897 PR rtl-optimization/57304
3898 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
3899 accessing DF_REF_REAL_LOC.
3901 2013-05-17 Jakub Jelinek <jakub@redhat.com>
3903 PR rtl-optimization/57281
3904 PR rtl-optimization/57300
3905 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
3906 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
3907 what the other splitter did if the registers are dead.
3909 2013-05-17 Richard Biener <rguenther@suse.de>
3911 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
3914 2013-05-17 Jakub Jelinek <jakub@redhat.com>
3916 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
3919 2013-05-17 Marek Polacek <polacek@redhat.com>
3921 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
3922 length when doing non-zero store of storing '\0' to '\0'.
3924 2013-05-17 Jakub Jelinek <jakub@redhat.com>
3926 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
3927 vect_external_def oprnd1 with loop_vinfo, try to emit
3928 optional cast, negation and and stmts on the loop preheader
3929 edge instead of into the pattern def seq.
3931 PR tree-optimization/57051
3932 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
3933 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
3935 2013-05-16 Nick Clifton <nickc@redhat.com>
3937 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
3938 (rl78_is_naked_func): New function.
3939 (rl78_expand_prologue): Skip prologue generation for naked functions.
3940 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
3941 * doc/extend.texi (naked): Add RL78 to the list of processors
3942 that supports this attribute.
3944 2013-05-16 Jeff Law <law@redhat.com>
3946 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
3948 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
3950 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
3951 cache parameters using detect_caches_amd also for CYRIX,
3952 NSC and TM2 signatures.
3954 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
3955 Dzianis Kahanovich <mahatma@eu.by>
3959 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3960 VIA/Centaur processors and determine their cache parameters
3961 using detect_caches_amd.
3963 2013-05-16 Teresa Johnson <tejohnson@google.com>
3965 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
3966 (rtl_verify_edges): New function.
3967 (rtl_verify_bb_insns): Ditto.
3968 (rtl_verify_bb_pointers): Ditto.
3969 (rtl_verify_bb_insn_chain): Ditto.
3970 (rtl_verify_fallthru): Ditto.
3971 (rtl_verify_bb_layout): Ditto.
3972 (rtl_verify_flow_info_1): Outline checks into new functions.
3973 (rtl_verify_flow_info): Ditto.
3975 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
3977 * cfghooks.c (copy_bbs): Add update_dominance argument.
3978 * cfghooks.h (copy_bbs): Update prototype.
3979 * tree-cfg.c (gimple_duplicate_sese_region):
3980 Add update_dominance argument.
3981 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
3982 * tree-ssa-loop-ch.c (copy_loop_headers): Update
3983 gimple_duplicate_sese_region call.
3984 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
3985 Update copy_bbs call.
3986 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
3987 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
3989 2013-05-16 Jakub Jelinek <jakub@redhat.com>
3991 * tree-vectorizer.h (NUM_PATTERNS): Increment.
3992 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
3993 vect_recog_rotate_pattern.
3994 (vect_recog_rotate_pattern): New function.
3996 2013-05-16 Jason Merrill <jason@redhat.com>
3998 * Makefile.in (LLINKER): New variable.
3999 (mostlyclean): Remove link mutex.
4000 * configure.ac: Handle --enable-link-mutex.
4001 * lock-and-run.sh: New script.
4003 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4006 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
4009 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4011 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
4013 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
4015 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
4016 * config/arm/arm.c (next_consecutive_mem): New function.
4017 (gen_movmem_ldrd_strd): Likewise.
4018 * config/arm/arm.md (movmemqi): Update condition and code.
4019 (unaligned_loaddi, unaligned_storedi): New patterns.
4021 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4023 * config.gcc: Obsolete *-*-solaris2.9*.
4024 * doc/install.texi (Specific, *-*-solaris2*): Document it.
4026 2013-05-16 Richard Biener <rguenther@suse.de>
4028 * passes.c (init_optimization_passes): Move pass_parallelize_loops
4029 earlier, after GRAPHITE transforms and IV canonicalization.
4031 2013-05-16 Jakub Jelinek <jakub@redhat.com>
4033 * omp-low.c (extract_omp_for_data): For collapsed loops,
4034 if at least one of the loops is known at compile time to
4035 iterate zero times, set count to 0.
4036 (expand_omp_regimplify_p): New function.
4037 (expand_omp_for_generic): For collapsed loops, if at least
4038 one of the loops isn't known to iterate at least once,
4039 add runtime check with setting count to 0.
4040 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
4041 For unsigned types if it isn't known at compile time that
4042 the loop will iterate at least once, add runtime check to bypass
4043 the whole loop if initial condition isn't true.
4045 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
4047 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
4049 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
4052 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
4053 transformations to avoid an infinite loop.
4055 2013-05-16 Marek Polacek <polacek@redhat.com>
4057 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
4059 2013-05-15 Leif Ekblad <leif@rdos.net>
4061 * config/i386/i386.c (ix86_decompose_address): Use
4062 DEFAULT_TLS_SEG_REG to access TLS segment register.
4063 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
4064 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
4065 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
4067 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
4070 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
4071 sibling calls to functions that would normally be lazily bound,
4072 unless $gp is call-clobbered.
4074 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
4076 * config/i386/i386.c (ix86_option_override_internal): Update
4077 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
4078 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
4079 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
4080 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
4082 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
4084 2013-05-15 Andreas Schwab <schwab@suse.de>
4086 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
4087 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
4090 2013-05-15 Teresa Johnson <tejohnson@google.com>
4092 * loop-unroll.c (report_unroll_peel): Check decision before
4093 emitting unroll/peel message.
4095 2013-05-15 Teresa Johnson <tejohnson@google.com>
4097 * function.h (has_bb_partition): New rtl_data flag.
4098 (bb_reorder_complete): Ditto.
4099 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
4100 instead of flag_reorder_blocks_and_partition.
4101 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
4102 with some enhancements.
4103 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
4104 * bb-reorder.c (connect_traces): Check for has_bb_partition
4105 instead of flag_reorder_blocks_and_partition.
4106 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
4107 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
4108 verify_hot_cold_block_grouping.
4109 (partition_hot_cold_basic_blocks): Set has_bb_partition.
4111 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4114 * config/arm/predicates.md (call_insn_operand): New predicate.
4115 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
4116 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
4117 if insn is not a tail call.
4118 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
4120 * config/arm/arm.h (enum reg_class): New caller save register class.
4121 (REG_CLASS_NAMES): Likewise.
4122 (REG_CLASS_CONTENTS): Likewise.
4123 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
4126 2013-05-15 Richard Biener <rguenther@suse.de>
4128 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
4129 of MSG_OPTIMIZED_LOCATIONS.
4130 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
4131 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
4133 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
4134 of MSG_OPTIMIZED_LOCATIONS.
4135 (execute_vect_slp): Likewise.
4136 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
4137 (vect_create_cond_for_alias_checks): Likewise.
4138 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
4139 (vect_recog_widen_mult_pattern): Likewise.
4140 (vect_recog_widen_sum_pattern): Likewise.
4141 (vect_recog_over_widening_pattern): Likewise.
4142 (vect_recog_widen_shift_pattern): Likewise.
4143 (vect_recog_vector_vector_shift_pattern): Likewise.
4144 (vect_recog_divmod_pattern): Likewise.
4145 (vect_recog_mixed_size_cond_pattern): Likewise.
4146 (vect_recog_bool_pattern): Likewise.
4147 (vect_pattern_recog_1): Likewise.
4149 2013-05-15 Martin Jambor <mjambor@suse.cz>
4151 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
4152 non-functions to builtin_unreachable.
4153 * ipa-inline-transform.c (inline_call): Do not assert estimates were
4154 correct when new direct edges were discovered.
4156 2013-05-15 Martin Jambor <mjambor@suse.cz>
4158 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
4159 header, print symbol order instead of node uid, print more information
4160 about indirect edge targets.
4161 (ipa_make_edge_direct_to_target): Print symbol order instead of node
4163 (ipa_make_edge_direct_to_target): Likewise.
4164 (remove_described_reference): Likewise.
4165 (propagate_controlled_uses): Likewise.
4166 (ipa_print_node_params): Also print symbol order.
4167 (ipcp_transform_function): Print symbol order instead of node uids.
4168 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
4169 (cgraph_get_create_real_symbol_node): Likewise.
4170 * ipa-cp.c (print_lattice): Likewise.
4171 (print_all_lattices): Likewise.
4172 (determine_versionability): Likewise.
4173 (initialize_node_lattices): Likewise.
4174 (estimate_local_effects): Likewise.
4175 (update_profiling_info): Likewise.
4176 (create_specialized_node): Likewise.
4177 (perhaps_add_new_callers): Likewise.
4178 (decide_about_value): Likewise.
4179 (decide_whether_version_node): Likewise.
4180 (identify_dead_nodes): Likewise.
4181 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
4182 (dump_inline_summary): Likewise.
4183 (estimate_node_size_and_time): Likewise.
4184 (inline_analyze_function): Likewise.
4185 * ipa-inline.c (report_inline_failed_reason): Likewise.
4186 (want_early_inline_function_p): Likewise.
4187 (edge_badness): Likewise.
4188 (update_edge_key): Likewise.
4189 (inline_small_functions): Likewise. Add dumping of order to two other
4191 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
4192 instead of node uids.
4193 (propagate_pure_const): Likewise.
4194 (propagate_pure_const): Likewise.
4195 * ipa-utils.c (dump_cgraph_node_set): Likewise.
4196 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
4197 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
4199 * tree-pretty-print.c (dump_function_header): Likewise.
4200 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
4201 Print symbol order instead of node uids.
4203 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4205 * config/s390/s390.c (s390_register_move_cost): Don't impose the
4206 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
4208 2013-05-15 Richard Biener <rguenther@suse.de>
4210 PR tree-optimization/57275
4211 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
4212 return value for fail to do runtime alias checks for gather loads.
4214 2013-05-15 Jan Hubicka <jh@suse.cz>
4218 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
4219 weakrefs are not external.
4220 (lto_symtab_merge_decls): Fix thinko when dealing with
4221 non-lto_symtab decls.
4222 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
4223 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
4224 * varpool.c (dump_varpool_node): Dump more flags.
4226 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4228 * config/i386/i386.c (processor_alias_table): Add instruction
4229 FSGSBASE for AMD bdver3 architecture.
4231 2013-05-14 Jakub Jelinek <jakub@redhat.com>
4233 * tree.c (warn_deprecated_use): Print file:line using locus color.
4234 * diagnostic.c (diagnostic_report_current_module): Print file:line
4235 and file:line:column using locus color.
4237 2013-05-14 Mike Stump <mikestump@comcast.net>
4239 * gdbinit.in: Add __null.
4241 2013-05-14 Mike Stump <mikestump@comcast.net>
4243 * recog.h: Rename struct recog_data to Recog_data.
4244 * recog.c: Likewise.
4245 * reload.c (can_reload_into): Likewise.
4246 * config/picochip/picochip.c: Likewise.
4248 2013-05-14 Mike Stump <mikestump@comcast.net>
4250 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
4252 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
4254 * resource.h (struct resources): Remove unch_memory member.
4255 (CLEAR_RESOURCE): Don't clear unch_memory.
4256 * resource.c (mark_referenced_resources): Don't set it.
4257 (mark_set_resources): Likewise.
4258 (mark_target_live_regs): Don't clear it.
4259 (init_resource_info): Likewise.
4260 * reorg.c (resource_conflicts_p): Don't compare it.
4261 (redundant_insn): Don't set it.
4263 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
4265 * emit-rtl.c (next_label): Remove unused function.
4266 (skip_consecutive_labels, link_cc0_insns): Move to ...
4267 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
4268 only place where these functions are used, and make them static.
4270 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
4272 * fold-const.c (fold_negate_expr): Handle vectors.
4273 (fold_truth_not_expr): Make it static.
4274 (fold_invert_truthvalue): New static function.
4275 (invert_truthvalue_loc): Handle vectors. Do not call
4276 fold_truth_not_expr directly.
4277 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
4278 <TRUTH_NOT_EXPR>: Do not cast to boolean.
4279 (fold_comparison): Handle vector constants.
4280 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
4281 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
4282 * tree.h (fold_truth_not_expr): Remove declaration.
4284 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
4286 * config/aarch64/aarch64-simd.md
4287 (aarch64_vcond_internal<mode>): Rename to...
4288 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
4289 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
4290 float modes. Clarify all iterator modes.
4291 (vcond<mode><mode>): Use new name for vcond expanders.
4292 (vcond<v_cmp_result><mode>): Likewise.
4293 (vcondu<mode><mode>: Likewise.
4294 * config/aarch64/iterators.md (VDQF_COND): New.
4296 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
4299 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
4300 variable for the shift amount. Check that we shift by non-negative
4303 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
4306 * config/arm/arm.h (EPILOGUE_USES): Only return true
4307 for LR_REGNUM after epilogue_completed.
4309 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
4311 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
4314 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4317 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
4318 and Solaris 11+/x86 with gld.
4319 * configure: Regenerate.
4321 2013-05-14 Jakub Jelinek <jakub@redhat.com>
4323 * expmed.c (expand_shift_1): Canonicalize rotates by
4324 constant bitsize / 2 to bitsize - 1.
4325 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
4326 case ROTATERT>: Likewise.
4329 2013-05-10 Jakub Jelinek <jakub@redhat.com>
4331 * config/i386/i386.md (rotateinv): New code attr.
4332 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
4333 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
4334 roll $31, %eax, etc.
4336 2013-05-14 Richard Biener <rguenther@suse.de>
4339 * tree-eh.c (sink_clobbers): Give up for successors with
4340 multiple predecessors and no virtual uses.
4342 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
4344 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
4345 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
4347 2013-05-14 Jakub Jelinek <jakub@redhat.com>
4350 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
4351 the case when both op0 and op1 have VOIDmode.
4353 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
4355 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
4356 in multiply-accumulate mode.
4358 2013-05-13 Guozhi Wei <carrot@google.com>
4360 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
4362 2013-05-13 Kai Tietz <ktietz@redhat.com>
4365 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
4366 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
4367 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
4368 * config/i386/i386.c (ix86_option_override_internal): Likewise.
4369 (ix86_expand_prologue): Likewise.
4370 (ix86_expand_split_stack_prologue): Likewise.
4371 (legitimate_pic_address_disp_p): Likewise.
4372 (legitimize_pic_address): Likewise.
4373 (legitimize_tls_address): Likewise.
4374 (legitimize_pe_coff_symbol): Likewise.
4375 (output_pic_addr_const): Likewise.
4376 (construct_plt_address): Likewise.
4377 (ix86_expand_call): Likewise.
4378 (x86_output_mi_thunk): Likewise.
4379 (x86_function_profiler): Likewise.
4381 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
4383 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
4384 similar switch cases.
4385 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
4386 (aarch64_simd_mov_to_<mode>low): Delete.
4387 (aarch64_simd_mov_to_<mode>high): Delete.
4388 (move_lo_quad_<mode>): Add w<-r alternative.
4389 (aarch64_simd_move_hi_quad_<mode>): Likewise.
4390 (aarch64_simd_mov_from_*): Update type attribute.
4391 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
4394 2013-05-13 Jan Hubicka <jh@suse.cz>
4396 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
4397 * config/i386/i386.c (ix86_compute_frame_layout,
4398 ix86_expand_epilogue, emit_i387_cw_initialization,
4399 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
4400 ix86_local_alignment): Fix use of size/speed predicates.
4402 2013-05-13 Jakub Jelinek <jakub@redhat.com>
4404 PR tree-optimization/45216
4405 PR tree-optimization/57157
4406 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
4407 the (-Y) & (B - 1) variant if OP is |.
4408 * expmed.c (expand_shift_1): For rotations by const0_rtx just
4409 return shifted. Use (-op1) & (prec - 1) as other_amount
4410 instead of prec - op1.
4412 2013-05-13 Martin Jambor <mjambor@suse.cz>
4415 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
4416 (ipa_constant_data): New type.
4417 (ipa_jump_func): Use ipa_constant_data to hold information about
4418 constant jump functions.
4419 (ipa_get_jf_constant): Adjust to jump function type changes.
4420 (ipa_get_jf_constant_rdesc): New function.
4421 (ipa_param_descriptor): New field controlled_uses.
4422 (ipa_get_controlled_uses): New function.
4423 (ipa_set_controlled_uses): Likewise.
4424 * ipa-ref.h (ipa_find_reference): Declare.
4425 * ipa-prop.c (ipa_cst_ref_desc): New type.
4426 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
4428 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
4429 New parameter cs. Adjust all callers.
4430 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
4431 (remove_described_reference): New function.
4432 (jfunc_rdesc_usable): Likewise.
4433 (try_make_edge_direct_simple_call): Decrement controlled use count,
4434 attempt to remove reference if it hits zero.
4435 (combine_controlled_uses_counters): New function.
4436 (propagate_controlled_uses): Likewise.
4437 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
4438 (ipa_edge_duplication_hook): Duplicate reference descriptions.
4439 (ipa_print_node_params): Print described use counter.
4440 (ipa_write_jump_function): Adjust to jump function type changes.
4441 (ipa_read_jump_function): New parameter CS, pass it to
4442 ipa_set_jf_constant. Adjust caller.
4443 (ipa_write_node_info): Stream controlled use count
4444 (ipa_read_node_info): Likewise.
4445 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
4447 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
4448 count. Remove cloning-added reference if it reaches zero.
4449 * ipa-ref.c (ipa_find_reference): New function.
4451 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4453 * config/i386/i386.c (processor_target_table): Modified default
4454 alignment values for AMD BD and BT architectures.
4456 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
4458 * tree-vect-generic.c (uniform_vector_p): Move ...
4459 * tree.c (uniform_vector_p): ... here.
4460 * tree.h (uniform_vector_p): Declare it.
4461 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
4464 2013-05-13 Jakub Jelinek <jakub@redhat.com>
4466 PR tree-optimization/57230
4467 * tree-ssa-strlen.c (handle_char_store): Record length for
4468 array store from STRING_CST.
4470 PR tree-optimization/57230
4471 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
4474 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
4476 * config/epiphany/epiphany.c (epiphany_init): Check size of
4477 NUM_MODES_FOR_MODE_SWITCHING.
4478 (epiphany_expand_prologue):
4479 Remove CONFIG_REGNUM initial value handling code.
4480 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
4481 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
4482 (emit_set_fp_mode, epiphany_mode_after): Likewise.
4483 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
4484 Don't return 1 for FP_MODE_NONE.
4485 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
4486 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
4487 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
4488 * config/epiphany/epiphany.md (save_config): New pattern.
4490 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
4492 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
4494 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
4496 * config/i386/i386.md (memory): Handle sseishft1.
4497 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
4498 (*vec_extractv2di_1): Ditto.
4500 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
4502 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
4505 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
4507 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
4508 Add mthumb/march=armv7-a multilib.
4509 Add mthumb/march=armv7-r multilib.
4510 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
4512 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
4514 * config/v850/t-rtems: Add more multilibs.
4516 2013-05-10 Richard Biener <rguenther@suse.de>
4518 PR tree-optimization/57214
4519 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
4520 not propagate from SSA names that occur in abnormal PHI nodes.
4522 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
4524 * stor-layout.c (element_precision): New function.
4525 * machmode.h (element_precision): Declare it.
4526 * tree.c (build_minus_one_cst): New function.
4527 (element_precision): Likewise.
4528 * tree.h (build_minus_one_cst): Declare new function.
4529 (element_precision): Likewise.
4530 * fold-const.c (operand_equal_p): Use element_precision.
4531 (fold_binary_loc): Handle vector types.
4532 * convert.c (convert_to_integer): Use element_precision.
4533 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
4536 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
4538 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
4539 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
4540 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
4541 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
4542 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
4543 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
4544 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
4545 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
4546 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
4547 (Uuw8): New constraints.
4548 (Usb4): Move into alphabetical order.
4549 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
4550 (sd8_operand, ub8_operand, uw8_operand): New predicates.
4551 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
4552 previously unnamed patterns.
4553 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
4554 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
4555 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
4556 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
4557 of set_attr_alternative/if_then_else. Use extended_mips16 instead
4558 of specific lengths.
4560 2013-05-10 Jakub Jelinek <jakub@redhat.com>
4562 * config/i386/i386.md (rotateinv): New code attr.
4563 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
4564 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
4565 roll $31, %eax, etc.
4567 PR tree-optimization/45216
4568 PR tree-optimization/57157
4569 * tree-ssa-forwprop.c (simplify_rotate): New function.
4570 (ssa_forward_propagate_and_combine): Call it.
4572 2013-05-10 Richard Biener <rguenther@suse.de>
4574 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
4575 disable peeling when we version for aliasing.
4576 (vector_alignment_reachable_p): Honor explicit user alignment.
4577 (vect_supportable_dr_alignment): Likewise.
4578 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
4579 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
4580 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
4581 then peeling to arrange for the cost-model check to come first.
4583 2013-05-10 Alan Modra <amodra@gmail.com>
4585 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
4586 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
4587 * configure: Regenerate.
4589 2013-05-10 Alan Modra <amodra@gmail.com>
4592 * varasm.c (default_elf_select_section): Move !DECL_P check..
4593 (get_named_section): ..to here before calling get_section_name.
4595 (default_section_type_flags): Add DECL_P check.
4596 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
4597 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
4599 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
4601 * config/epiphany/epiphany.c (epiphany_expand_prologue):
4602 When using gen_stack_adjust_str with a register offset, add a
4603 REG_FRAME_RELATED_EXPR note.
4605 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
4607 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
4608 (*vec_extractv4si_zext_mem): Ditto.
4609 (*vec_extractv2di): Add 0->x and x->x alternatives.
4610 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
4611 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
4613 2013-05-09 Jason Merrill <jason@redhat.com>
4615 N3639 C++1y VLA support
4616 * gimplify.c (gimplify_vla_decl): Don't touch an existing
4619 * tree.c (build_constructor_va): New.
4620 * tree.h: Declare it.
4622 2013-05-09 Martin Jambor <mjambor@suse.cz>
4625 * gimple-fold.c (canonicalize_constructor_val): Call
4626 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
4628 2013-05-09 Jan Hubicka <jh@suse.cz>
4629 Richard Biener <rguenther@suse.de>
4632 * symtab.c (symtab_make_decl_local): Do not add private names.
4634 2013-05-09 Jan Hubicka <jh@suse.cz>
4637 * symtab.c (insert_to_assembler_name_hash): Handle clones.
4638 (unlink_from_assembler_name_hash): Likewise.
4639 (symtab_prevail_in_asm_name_hash, symtab_register_node,
4640 symtab_unregister_node, symtab_initialize_asm_name_hash,
4641 change_decl_assembler_name): Update.
4643 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
4645 * config/aarch64/aarch64.md: New movtf split.
4646 (*movtf_aarch64): Update.
4647 (aarch64_movdi_tilow): Handle TF modes and rename to
4648 aarch64_movdi_<mode>low.
4649 (aarch64_movdi_tihigh): Handle TF modes and rename to
4650 aarch64_movdi_<mode>high
4651 (aarch64_movtihigh_di): Handle TF modes and rename to
4652 aarch64_mov<mode>high_di
4653 (aarch64_movtilow_di): Handle TF modes and rename to
4654 aarch64_mov<mode>low_di
4655 (aarch64_movtilow_tilow): Remove spurious whitespace.
4656 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
4658 (aarch64_print_operand): Update.
4660 2013-05-09 Alan Modra <amodra@gmail.com>
4662 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
4664 * configure: Regenerate.
4666 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
4668 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
4669 splitter preparation statements.
4670 * config/i386/sse.md (*vec_extract* splitters): Ditto.
4671 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
4674 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4676 * gimple-ssa-strength-reduction.c (count_candidates): Change
4677 return value to int.
4678 (analyze_candidates_and_replace): Change type of length to int.
4680 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
4682 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
4683 (*vec_extract<mode>): Use VI12_128 mode iterator.
4684 (*vec_extract<mode>_mem): Ditto.
4685 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
4688 2013-05-08 Diego Novillo <dnovillo@google.com>
4693 2012-08-17 Diego Novillo <dnovillo@google.com>
4696 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
4697 * config.in: Regenerate.
4698 * configure: Regenerate.
4699 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4701 2013-05-08 Jan Hubicka <jh@suse.cz>
4704 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
4705 * cgraph.h (symtab_node_base): Add unique_name.
4706 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
4707 input_overwrite_node, input_varpool_node): Stream unique_name.
4708 * cgraphclones.c (cgraph_create_virtual_clone,
4709 cgraph_function_versioning): Set unique_name.
4710 * ipa.c (function_and_variable_visibility): Set unique_name.
4712 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4714 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
4715 (alloc_cand_and_find_basis): Restrict conditional candidate
4716 processing to CAND_MULTs.
4718 2013-05-08 Jan Hubicka <jh@suse.cz>
4721 lto-symtab.c (lto_symtab_symbol_p): New function.
4722 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
4723 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
4724 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
4725 Skip static symbols.
4727 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
4729 PR tree-optimization/57200
4730 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
4731 Only call inform if the preceding warning_at returns true.
4733 2013-05-07 Han Shen <shenhan@google.com>
4735 * cfgexpand.c (record_or_union_type_has_array_p): New function.
4736 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
4737 * common.opt (fstack-protector-strong): New option.
4738 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
4739 * doc/invoke.texi (Optimization Options): Document
4740 "-fstack-protector-strong".
4741 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
4743 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
4745 * config/mips/mips.c (mips_machine_reorg2): Return 0.
4747 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
4749 * ira.c (update_equiv_regs): Add insn having equiv memory even if
4750 it is not lhs of the insn.
4751 (setup_reg_equiv): Remove insn having equiv memory which it is not
4753 * lra-constraints.c (process_address): Try to improve generation
4754 code for address base + disp.
4755 (lra_constraints): Make correct the code for checking insn setting
4756 up backward equivalence. Remove insn only if it is in the init
4758 * lra-eliminations.c (update_reg_eliminate): Change return value.
4759 (lra_eliminate): Use the result.
4761 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
4763 * config/i386/sse.md (ssescalarnummask): New mode attribute.
4764 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
4765 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
4766 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
4767 register target operands.
4768 (*vec_extractv8hi_sse2): New pattern.
4769 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
4770 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
4771 (*vec_extract<mode>_mem): New insn and split pattern.
4773 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
4775 * config/arm/arm.c (arm_asan_shadow_offset): New function.
4776 (TARGET_ASAN_SHADOW_OFFSET): Define.
4777 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
4778 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
4780 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4782 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
4783 (incr_vec_index): Return -1 if increment not found.
4784 (create_add_on_incoming_edge): Assert if increment not found.
4785 (record_increment): Limit number of increments recorded.
4786 (all_phi_incrs_profitable): Return false if an increment not found.
4787 (replace_profitable_candidates): Don't process increments that were
4789 (analyze_candidates_and_replace): Limit size of incr_vec.
4791 2013-05-07 Richard Biener <rguenther@suse.de>
4793 * calls.c (special_function_p): setjmp-like functions are leaf.
4794 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
4795 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
4797 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
4799 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
4800 (aarch64_simd_mov<mode>): New expander.
4801 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
4802 (aarch64_simd_mov_to_<mode>high): Likewise.
4803 (aarch64_simd_mov_from_<mode>low): Likewise.
4804 (aarch64_simd_mov_from_<mode>high): Likewise.
4805 (aarch64_dup_lane<mode>): Update.
4806 (aarch64_dup_lanedi): New instruction pattern.
4807 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
4808 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
4810 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4812 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
4813 (replace_mult_candidate): Remove unnecessary argument; remove
4814 unnecessary parameter from call to introduce_cast_before_cand.
4815 (replace_unconditional_candidate): Remove unnecessary parameter
4816 from call to replace_mult_candidate.
4817 (replace_conditional_candidate): Likewise.
4818 (insert_initializers): Use make_temp_ssa_name.
4819 (introduce_cast_before_cand): Remove unnecessary argument; use
4821 (replace_one_candidate): Remove unnecessary argument; remove
4822 unnecessary parameter from calls to introduce_cast_before_cand.
4823 (replace_profitable_candidates): Remove unnecessary parameters
4824 from calls to replace_one_candidate.
4826 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4828 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
4829 phi def as possibly hiding a basis for a CAND_ADD whose operands
4830 have been commuted in the analysis.
4831 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
4833 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4835 * config/aarch64/aarch64.md
4836 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
4837 shift value between 0-4.
4839 2013-05-07 Richard Biener <rguenther@suse.de>
4841 * double-int.h (rshift): New overload.
4842 * double-int.c (rshift): New function.
4843 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
4844 (create_reference_ops_from_ref): Remove.
4845 (vn_reference_insert): Use shared ops for constructing the
4846 reference and copy it.
4848 2013-05-07 Richard Biener <rguenther@suse.de>
4851 * tree-eh.c (sink_clobbers): Properly propagate
4852 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
4854 2013-05-07 Jakub Jelinek <jakub@redhat.com>
4856 PR tree-optimization/57149
4857 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
4858 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
4859 collect_phi_def_edges, execute_late_warn_uninitialized): Use
4860 uninit_undefined_value_p instead of ssa_undefined_value_p.
4863 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
4864 for modifier == EXPAND_INITIALIZER.
4866 2013-05-07 Anton Blanchard <anton@samba.org>
4868 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
4869 for powerpc64 little endian.
4870 * configure: Regenerate.
4872 2013-05-06 Graham Stott <grahams@btinternet.com>
4874 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
4875 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
4876 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
4877 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
4879 2013-05-06 Graham Stott <grahams@btinternet.com>
4881 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
4882 codes which allow non-lvalues.
4884 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
4886 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
4887 components are all 1s.
4888 (integer_minus_onep): New function.
4889 * tree.h (integer_minus_onep): Declare it.
4890 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
4891 integer_minus_onep instead of integer_all_onesp.
4893 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
4896 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
4897 variations of these patterns.
4899 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
4901 * config/i386/i386.md (isa): Add x64_sse4 member.
4902 (enabled): Handle x64_sse4.
4903 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
4904 instruction for 64bit SSE4_1 targets. Update insn attributes.
4905 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
4906 instruction for SSE4_1 targets. Update insn attributes.
4907 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
4908 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
4909 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
4911 (*vec_extractv4si): Rename from *sse4_1_pextrd.
4912 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
4913 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
4915 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
4918 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
4920 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
4922 * final.c (do_assembler_dialects): Don't handle curly braces and
4923 vertical bar escaped by % as dialect delimiters.
4924 (output_asm_insn): Print curly braces and vertical bar if escaped
4925 by % and ASSEMBLER_DIALECT defined.
4926 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
4927 * doc/tm.texi: Regenerated.
4929 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
4931 * config/mips/mips.c: Include tree-pass.h.
4932 (mips_reorg): Split in pre- and post-dbr_schedule parts.
4933 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
4934 (pass_mips_machine_reorg2): New machine specific pass.
4935 (insert_pass_mips_machine_reorg2): New pass plugin definition.
4936 (mips_option_override): Register the new pass.
4937 * rtl.h (cleanup_barriers): Remove prototype.
4938 (dbr_schedule): Likewise.
4939 * jump.c (cleanup_barriers): Make static.
4940 * reorg.c (dbr_schedule): Likewise.
4942 2013-05-06 Richard Biener <rguenther@suse.de>
4944 PR tree-optimization/57185
4945 * tree-parloops.c (add_field_for_reduction): Handle anonymous
4948 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
4951 * config/i386/i386.c (add_parameter_dependencies): Add dependence
4952 between "first_arg" and "insn", not "last" and "insn".
4954 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4956 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
4957 (find_candidates_in_block): Re-enable slsr_process_phi.
4958 (create_phi_basis): Fix double counting of candidate adjustment.
4960 2013-05-06 Richard Biener <rguenther@suse.de>
4963 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
4964 the edge is also fallthru, preserve it and just clear the
4966 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
4967 also complex, preserve that and just clear the fallthru flag.
4968 * tree-inline.c (update_ssa_across_abnormal_edges): Also
4969 update virtual operands.
4971 2013-05-06 Alan Modra <amodra@gmail.com>
4973 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
4974 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
4975 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
4976 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
4977 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
4978 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
4980 2013-05-06 Alan Modra <amodra@gmail.com>
4982 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
4983 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
4984 (DEFAULT_ASM_ENDIAN): Define.
4985 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
4986 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
4987 Update -K PIC clause from sysv4.h.
4988 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
4989 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
4991 2013-05-06 Alan Modra <amodra@gmail.com>
4993 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
4994 twice for little-endian.
4995 (ashrdi3_no_power, ashrdi3): Support little-endian.
4997 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
5000 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
5001 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
5003 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
5004 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
5005 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
5008 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
5009 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5011 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
5012 * config/pa/pa.opt: Make mbig-switch a no-op.
5013 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
5014 (CASE_VECTOR_MODE): Always return SImode.
5015 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
5016 for the !TARGET_BIG_SWITCH case.
5017 * config/pa/pa-linux.h: Likewise.
5018 * config/pa/pa-openbsd.h: Likewise.
5019 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
5020 * config/pa/pa.md (short_jump): Remove define_insn.
5021 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
5022 (casesi0): Remove define_insn.
5023 (type): Remove btable_branch.
5024 (pa_combine_type): Likewise.
5025 (in_nullified_branch_delay): Likewise.
5026 (in_call_delay): Likewise.
5027 (define_delay): Likewise.
5028 (define_insn_reservation "Z3"): Likewise.
5029 (define_insn_reservation "Z4"): Likewise.
5030 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
5031 (pa_adjust_insn_length): Remove adjustment for btable branches.
5032 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
5035 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
5037 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
5038 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
5039 Add m->r,x alternatives.
5040 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
5041 splitters using SWI48x mode iterator.
5042 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
5043 TARGET_64BIT. Add m->x alternative.
5044 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
5045 Add o->x alternative. Enable for TARGET_SSE.
5046 (sse_storeq): Remove expander.
5047 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
5048 with memory input operand.
5049 (*vec_extractv2di_1 splitter): New.
5050 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
5051 * config/i386/i386.md (ssevecmodelower): New mode attribute.
5053 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
5055 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
5056 (INT_LOWPART): Delete.
5057 (extract_MB): Adjust.
5058 (extract_ME): Adjust.
5059 (print_operand): Adjust.
5061 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
5063 * config/rs6000/predicates.md (reg_or_add_cint_operand,
5064 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
5065 (reg_or_logical_cint_operand, easy_fp_constant,
5066 logical_const_operand): Delete "CONST_DOUBLE" case.
5067 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
5068 "HOST_BITS_PER_WIDE_INT == 64" test.
5069 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
5070 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
5071 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
5072 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
5074 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
5075 CONST_DOUBLE DImode/VOIDmode case.
5076 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
5077 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
5078 CONST_DOUBLE VOIDmode case.
5079 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
5080 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
5081 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
5082 Delete CONST_DOUBLE case.
5083 (splitters for mov FMOVE64 const_double): Delete
5084 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
5085 "HOST_BITS_PER_WIDE_INT >= 64" test.
5086 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
5088 (mov DI const_double): Delete.
5090 2013-05-04 Jakub Jelinek <jakub@redhat.com>
5092 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
5093 on op shows all bits zero in mode of a lowpart subreg, return zero.
5095 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
5098 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
5099 to save TFmode registers and DImode to save TImode registers for
5100 caller save operations.
5101 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
5102 mark being partially clobbered since they only use the first
5105 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
5106 and TDmode only use the upper 64-bits of each VSX register.
5108 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5110 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
5111 (find_candidates_in_block): Disable slsr_process_phi.
5113 2013-05-03 Guozhi Wei <carrot@google.com>
5115 * coverage.c (coverage_obj_init): Move the construction of gcov
5117 (build_init_ctor): ... here.
5119 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5121 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
5122 (slsr_cand_d): Redefine def_phi.
5123 (stride_status, phi_adjust_status, count_phis_status): New enums.
5124 (find_phi_def): New.
5125 (find_basis_for_base_expr): New.
5126 (find_basis_for_candidate): Handle hidden bases.
5127 (alloc_cand_and_find_basis): Handle phi candidates.
5128 (slsr_process_phi): New.
5129 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
5130 (create_mul_imm_cand): Likewise.
5131 (create_add_ssa_cand): Exclude phi base candidates.
5132 (create_add_imm_cand): Likewise.
5133 (slsr_process_cast): Likewise.
5134 (slsr_process_copy): Likewise.
5135 (find_candidates_in_block): Handle phi candidates.
5136 (dump_candidate): Likewise.
5137 (unconditional_cands): Delete.
5138 (unconditional_cands_with_known_stride_p): Delete.
5139 (phi_dependent_cand_p): New.
5140 (cand_increment): Handle phi-dependent candidates.
5141 (replace_dependent): Delete.
5142 (replace_mult_candidate): New.
5143 (replace_unconditional_candidate): New.
5144 (incr_vec_index): Move to avoid forward reference.
5145 (create_add_on_incoming_edge): New.
5146 (create_phi_basis): New.
5147 (replace_dependents): Delete.
5148 (replace_conditional_candidate): New.
5149 (phi_add_costs): New.
5150 (replace_uncond_cands_and_profitable_phis): New.
5151 (record_increment): Handle phi adjustments.
5152 (record_phi_increments): New.
5153 (record_increments): Handle phi adjustments.
5154 (phi_incr_cost): New.
5155 (lowest_cost_path): Handle phis.
5156 (total_savings): Likewise.
5157 (analyze_increments): Likewise.
5158 (ncd_with_phi): New.
5159 (ncd_of_cand_and_phis): New.
5160 (nearest_common_dominator_for_cands): Handle phi increments.
5161 (all_phi_incrs_profitable): New.
5162 (replace_profitable_candidates): Handle phi-dependent candidates.
5163 (analyze_candidates_and_replace): Likewise.
5165 2013-05-03 Teresa Johnson <tejohnson@google.com>
5168 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
5169 do not exceed REG_BR_PROB_BASE.
5171 2013-05-03 Jeff Law <law@redhat.com>
5173 PR tree-optimization/57144
5174 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
5175 operand of the condition will bit into the new type when eliminating
5176 a cast feeding a condition.
5178 2013-05-03 Jakub Jelinek <jakub@redhat.com>
5180 PR rtl-optimization/57130
5181 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
5182 of COMPARE as in_code to the recursive call if needed.
5184 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
5186 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
5187 (enabled): Handle new members.
5188 * config/i386/sse.md (*vec_concatv2si): Merge from
5189 *vec_concatv2si_sse2 and vec_concatv2si_sse.
5190 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
5192 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
5194 PR tree-optimization/57027
5195 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
5196 for fnms opportunity, check we got the prerequisite kind
5197 of tree / gimple before using accessor functions.
5199 2013-05-03 Richard Biener <rguenther@suse.de>
5201 * double-int.h (lshift): New overload without precision
5203 (operator *=, operator +=, operator -=): Move ...
5204 * double-int.c (operator *=, operator +=, operator -=): ... here
5205 and implement more efficiently.
5206 (mul_double_with_sign): Remove.
5207 (lshift_double): Adjust to take unsinged shift argument, push
5208 dispatching code to callers.
5209 (mul_double_wide_with_sign): Add early out for callers that
5210 are not interested in high parts or overflow.
5211 (lshift): New function.
5212 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
5214 (lrotate, rrotate): Use logical shifts.
5215 * expr.c (get_inner_reference): Use lshift.
5216 * fixed-value.c (do_fixed_divide): Likewise.
5217 * tree-dfa.c (get_ref_base_and_extent): Likewise.
5218 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
5219 (indirect_refs_may_alias_p): Likewise.
5220 (stmt_kills_ref_p_1): Likewise.
5222 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
5224 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
5226 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
5228 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
5229 scalar form of FABD instruction.
5231 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
5233 * lra-constraints.c (process_alt_operands): Add checking alt
5234 number to choose the best alternative.
5236 2013-05-02 Richard Biener <rguenther@suse.de>
5238 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
5239 bitmap and its handling.
5240 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
5242 2013-05-02 Richard Biener <rguenther@suse.de>
5245 * tree-inline.c (copy_loops): Properly handle removed loops.
5246 (copy_cfg_body): Mark destination loops for fixup if source
5249 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
5252 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
5253 generating simple_return for naked functions.
5255 2013-05-02 Martin Jambor <mjambor@suse.cz>
5258 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
5259 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
5261 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
5262 ipa_agg_replacement_value structures.
5263 (known_aggs_to_agg_replacement_list): Likewise.
5264 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
5265 (read_agg_replacement_chain): Likewise.
5266 (ipcp_transform_function): Also check that by_ref flags match.
5268 2013-05-02 Richard Biener <rguenther@suse.de>
5270 * graphds.h (struct graph): Add obstack member.
5271 * graphds.c (new_graph): Initialize obstack and allocate
5273 (add_edge): Allocate edge from the obstack.
5274 (free_graph): Free the obstack instead of all edges and vertices.
5276 2013-05-02 Teresa Johnson <tejohnson@google.com>
5278 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
5280 * cfg.c (update_bb_profile_for_threading): Ditto.
5281 * tree-inline.c (copy_bb): Ditto.
5282 (copy_edges_for_bb): Ditto.
5283 (initialize_cfun): Ditto.
5284 (copy_cfg_body): Ditto.
5285 (expand_call_inline): Ditto.
5286 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
5287 (estimate_node_size_and_time): Ditto.
5288 (inline_merge_summary): Ditto.
5289 * cgraphclones.c (cgraph_clone_edge): Ditto.
5290 (cgraph_clone_node): Ditto.
5291 * sched-rgn.c (compute_dom_prob_ps): Ditto.
5292 (compute_trg_info): Ditto.
5294 2013-05-02 Ian Bolton <ian.bolton@arm.com>
5296 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
5297 S reg when fp attribute set.
5298 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
5300 2013-05-02 Ian Bolton <ian.bolton@arm.com>
5302 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
5304 (*and_one_cmplsi3_compare0_uxtw): Likewise.
5305 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
5306 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
5308 2013-05-02 Richard Biener <rguenther@suse.de>
5310 * tree-scalar-evolution.c (scev_info_hasher): Remove.
5311 (struct instantiate_cache_entry): New type.
5312 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
5313 (struct instantiate_cache_type): New type.
5314 (set_instantiated_value, get_instantiated_value): Remove.
5315 (get_instantiated_value_entry): New function.
5316 (instantiate_scev_name): Use the new cache and adjust.
5317 (instantiate_scev_poly): Adjust.
5318 (instantiate_scev_binary): Likewise.
5319 (instantiate_array_ref): Likewise.
5320 (instantiate_scev_convert): Likewise.
5321 (instantiate_scev_not): Likewise.
5322 (instantiate_scev_3): Likewise.
5323 (instantiate_scev_2): Likewise.
5324 (instantiate_scev_r): Likewise.
5325 (instantiate_scev): Likewise.
5326 (resolve_mixers): Likewise.
5328 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
5331 * lra-constraints.c (best_small_class_operands_num): Remove.
5332 (process_alt_operands): Remove small_class_operands_num. Take
5333 small classes operands into losers and only if the operand is not
5334 matched. Modify debugging output.
5335 (curr_insn_transform): Remove best_small_class_operands_num.
5338 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5340 * config/aarch64/aarch64-builtins.c
5341 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
5342 * config/aarch64/aarch64-simd-builtins.def
5343 (reduc_splus_): Add new modes.
5344 (reduc_uplus_): New.
5345 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
5346 (reduc_uplus_v4sf): Likewise.
5347 (reduc_splus_v4sf): Likewise.
5348 (aarch64_addv<mode>): Likewise.
5349 (reduc_uplus_<mode>): Likewise.
5350 (reduc_splus_<mode>): Likewise.
5351 (aarch64_addvv2di): Likewise.
5352 (reduc_uplus_v2di): Likewise.
5353 (reduc_splus_v2di): Likewise.
5354 (aarch64_addvv2si): Likewise.
5355 (reduc_uplus_v2si): Likewise.
5356 (reduc_splus_v2si): Likewise.
5357 (reduc_<sur>plus_<mode>): New.
5358 (reduc_<sur>plus_v2di): Likewise.
5359 (reduc_<sur>plus_v2si): Likewise.
5360 (reduc_<sur>plus_v4sf): Likewise.
5361 (aarch64_addpv4sf): Likewise.
5362 * config/aarch64/arm_neon.h
5363 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
5364 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
5365 add UNSPEC_SADDV, UNSPEC_UADDV.
5367 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
5369 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5371 * config/aarch64/arm_neon.h
5372 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
5374 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5376 * config/aarch64/aarch64-builtins
5377 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
5379 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5381 * config/aarch64/aarch64-simd-builtins.def
5383 (reduc_smin_): Likewise.
5384 (reduc_umax_): Likewise.
5385 (reduc_umin_): Likewise.
5386 (reduc_smax_nan_): Likewise.
5387 (reduc_smin_nan_): Likewise.
5390 (smax): Update for V2SF, V4SF and V2DF modes.
5393 (smin_nan): Likewise.
5394 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
5395 (<su><maxmin><mode>3): ...This, refactor.
5396 (s<maxmin><mode>3): New.
5397 (<maxmin_uns><mode>3): Likewise.
5398 (reduc_<maxmin_uns>_<mode>): Refactor.
5399 (reduc_<maxmin_uns>_v4sf): Likewise.
5400 (reduc_<maxmin_uns>_v2si): Likewise.
5401 (aarch64_<fmaxmin><mode>: Remove.
5402 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
5404 (vmin<q>_f<32,64>): Likewise.
5405 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
5407 (su): Add mappings for smax, smin, umax, umin.
5409 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
5410 (FMAXMIN): Rename as...
5411 (FMAXMIN_UNS): ...This.
5413 (fmaxminv): Likewise.
5414 (fmaxmin): Likewise.
5416 (maxmin_uns_op): Likewise.
5418 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5420 * config/aarch64/arm_neon.h
5421 (vac<ge, gt><sd>_f<32, 64>): Rename to...
5422 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
5423 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
5425 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5427 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
5428 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
5430 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5432 * config/aarch64/aarch64-simd.md
5433 (vcond<mode>_internal): Handle special cases for constant masks.
5434 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
5435 (vcondu<mode><mode>): Likewise.
5436 (vcond<v_cmp_result><mode>): New.
5438 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5440 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
5441 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
5442 * config/aarch64/aarch64-simd-builtins.def
5443 (cmeq): Update to BUILTIN_VALLDI.
5448 * config/aarch64/arm_neon.h
5449 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
5450 to builtins or C as appropriate.
5452 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5454 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
5456 (cmhi): Rename to...
5458 * config/aarch64/aarch64-simd.md
5459 (simd_mode): Add SF.
5460 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
5461 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
5462 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
5463 (cstore<mode>_neg): ...This.
5464 * config/aarch64/iterators.md
5466 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
5468 (UCOMPARISONS): Likewise.
5469 (optab): Add missing comparisons.
5477 (V_cmp_result): Add DF, SF modes.
5478 (v_cmp_result): Likewise.
5481 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
5483 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
5485 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
5486 define_insn to define_insn_and_split.
5487 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
5488 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
5489 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
5490 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
5491 (thumb2_negscc): Likewise.
5493 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
5495 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
5497 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
5499 * config/arm/thumb2.md: Remove trailing whitespaces.
5501 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
5503 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
5504 Use gen_int_mode rather than GEN_INT.
5506 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
5508 * value-prof.c (stream_in_histogram_value): Remove the strayed
5511 2013-04-30 Richard Biener <rguenther@suse.de>
5514 * cfghooks.c (split_edge): Properly check for the loop latch edge.
5516 2013-04-30 Richard Biener <rguenther@suse.de>
5519 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
5521 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
5523 PR rtl-optimization/56957
5524 PR rtl-optimization/57105
5525 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
5526 variable. Use just INSN_UID for determining whether an insn
5527 should be only disconnected from the insn stream.
5528 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
5530 2013-04-30 Jakub Jelinek <jakub@redhat.com>
5532 PR tree-optimization/57104
5533 * tsan.c (instrument_expr): Don't instrument accesses to
5534 DECL_HARD_REGISTER VAR_DECLs.
5536 2013-04-30 Richard Biener <rguenther@suse.de>
5538 * function.h (loops_for_fn): New inline function.
5539 (set_loops_for_fn): Likewise.
5540 * cfgloop.h (place_new_loop): Add struct function parameter.
5541 (get_loop): Likewise.
5542 (get_loops): Likewise.
5543 (number_of_loops): Likewise.
5545 (fel_init): Likewise.
5546 * cfg.c (get_loop_copy): Adjust.
5547 * cfgloop.c (flow_loops_dump): Likewise.
5548 (record_loop_exits): Likewise.
5549 (verify_loop_structure): Likewise.
5550 * cfgloopanal.c (mark_irreducible_loops): Likewise.
5551 (estimate_reg_pressure_cost): Likewise.
5552 (mark_loop_exit_edges): Likewise.
5553 * cfgloopmanip.c (place_new_loop): Likewise.
5554 (add_loop): Likewise.
5555 (duplicate_loop): Likewise.
5556 * graph.c (draw_cfg_nodes): Likewise.
5557 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
5558 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
5559 (extract_affine_chrec): Likewise.
5560 (build_scop_iteration_domain): Likewise.
5561 * graphite.c (graphite_initialize): Likewise.
5562 * ira-build.c (create_loop_tree_nodes): Likewise.
5563 (more_one_region_p): Likewise.
5564 (rebuild_regno_allocno_maps): Likewise.
5565 (mark_loops_for_removal): Likewise.
5566 (mark_all_loops_for_removal): Likewise.
5567 (remove_unnecessary_regions): Likewise.
5568 (ira_build): Likewise.
5569 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
5570 * loop-init.c (fix_loop_structure): Likewise.
5571 (gate_rtl_move_loop_invariants): Likewise.
5572 (gate_rtl_unswitch): Likewise.
5573 (gate_rtl_unroll_and_peel_loops): Likewise.
5574 (rtl_doloop): Likewise.
5575 * lto-streamer-in.c (input_cfg): Likewise.
5576 * lto-streamer-out.c (output_cfg): Likewise.
5577 * modulo-sched.c (sms_schedule): Likewise.
5578 * predict.c (tree_estimate_probability): Likewise.
5579 (tree_estimate_probability_driver): Likewise.
5580 (estimate_loops): Likewise.
5581 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
5582 (move_sese_region_to_fn): Likewise.
5583 (debug_loop_num): Likewise.
5584 * tree-chrec.c (chrec_evaluate): Likewise.
5585 (hide_evolution_in_other_loops_than_loop): Likewise.
5586 (chrec_component_in_loop_num): Likewise.
5587 (reset_evolution_in_loop): Likewise.
5588 (evolution_function_is_invariant_rec_p): Likewise.
5589 * tree-if-conv.c (main_tree_if_conversion): Likewise.
5590 * tree-inline.c (copy_loops): Likewise.
5591 (copy_cfg_body): Likewise.
5592 (tree_function_versioning): Likewise.
5593 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
5594 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
5596 (add_to_evolution_1): Likewise.
5597 (scev_const_prop): Likewise.
5598 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
5599 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
5600 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
5601 (tree_ssa_lim_initialize): Likewise.
5602 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
5603 (verify_loop_closed_ssa): Likewise.
5604 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
5605 (tree_ssa_loop_im): Likewise.
5606 (tree_ssa_loop_unswitch): Likewise.
5607 (tree_vectorize): Likewise.
5608 (check_data_deps): Likewise.
5609 (tree_ssa_loop_ivcanon): Likewise.
5610 (tree_ssa_loop_bounds): Likewise.
5611 (tree_complete_unroll): Likewise.
5612 (tree_complete_unroll_inner): Likewise.
5613 (tree_parallelize_loops): Likewise.
5614 (tree_ssa_loop_prefetch): Likewise.
5615 (tree_ssa_loop_ivopts): Likewise.
5616 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
5617 * tree-vectorizer.c (vectorize_loops): Likewise.
5619 2013-04-29 Mike Frysinger <vapier@gentoo.org>
5621 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
5622 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
5623 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
5624 with EABI_LINK_SPEC.
5626 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
5629 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
5632 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
5635 * lra-constraints.c (process_alt_operands): Discourage a bit more
5636 using memory for pseudos. Print cost dump for alternatives.
5637 Modify cost values for conflicts with early clobbers.
5638 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
5640 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
5643 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
5645 2013-04-29 Ian Bolton <ian.bolton@arm.com>
5647 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
5649 (movdi_aarch64): Support LDR/STR from/to D register.
5651 2013-04-29 Ian Bolton <ian.bolton@arm.com>
5653 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
5654 or higher by default.
5656 2013-04-29 Richard Biener <rguenther@suse.de>
5659 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
5660 even if not adding abnormal edges for calls that can make
5663 2013-04-29 Richard Biener <rguenther@suse.de>
5666 * tree-cfg.c (move_stmt_op): Fix condition under which to update
5668 (move_stmt_r): Remove redundant checking.
5670 2013-04-29 Teresa Johnson <tejohnson@google.com>
5673 * basic-block.h (apply_scale): New function.
5674 (apply_probability): Use apply_scale.
5675 * gimple-streamer-in.c (input_bb): Ditto.
5676 * lto-streamer-in.c (input_cfg): Ditto.
5677 * lto-cgraph.c (merge_profile_summaries): Ditto.
5678 * tree-optimize.c (execute_fixup_cfg): Ditto.
5679 * tree-inline.c (copy_bb): Update comment to use apply_scale.
5680 (copy_edges_for_bb): Ditto.
5681 (copy_cfg_body): Ditto.
5683 2013-04-29 Tom de Vries <tom@codesourcery.com>
5685 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
5686 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
5687 (tail_merge_optimize): Handle current_loops == NULL.
5689 2013-04-26 Jeff Law <law@redhat.com>
5691 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
5692 (simplify_cond_using_ranges): Generalize code to simplify
5693 COND_EXPRs where one argument is a constant and the other
5694 is an SSA_NAME created by an integral type conversion.
5696 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5698 * config/arm/arm.md (store_minmaxsi): Use only when
5699 optimize_insn_for_size_p.
5701 2013-04-29 Christian Bruel <christian.bruel@st.com>
5704 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
5706 2013-04-29 Richard Biener <rguenther@suse.de>
5709 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
5710 loop tree make sure to schedule a fixup for the child as well.
5711 (expand_omp_for_generic): Properly add loops.
5712 (expand_omp_for_static_nochunk): Likewise.
5713 (expand_omp_for_static_chunk): Likewise.
5714 (expand_omp_for): For the degenerate case fixup loops.
5715 (expand_omp_sections): Fix default bb placement in loops.
5716 (expand_omp_atomic_pipeline): Properly add loops.
5718 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5720 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
5722 2013-04-29 Tom de Vries <tom@codesourcery.com>
5724 * tree-ssa-tail-merge.c: Update header comment.
5726 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5728 * config/aarch64/arm_neon.h
5729 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
5730 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
5731 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
5732 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
5733 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
5734 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
5735 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
5736 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
5738 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5740 * config/aarch64/aarch64-simd.md
5741 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
5742 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
5743 fix_trunc, fixuns_trunc.
5744 (ftrunc<VDQF:mode>2): New.
5745 * config/aarch64/iterators.md (optab): Add fix, fixuns.
5746 (fix_trunc_optab): New.
5748 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5750 * config/aarch64/aarch64-builtins.c
5751 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
5752 iceilf, lround, iroundf.
5754 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
5757 * config/i386/i386.h (enum ix86_tune_indices)
5758 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
5759 New, split from X86_TUNE_INTER_UNIT_MOVES.
5760 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
5761 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
5762 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
5763 (TARGET_INTER_UNIT_MOVES): Remove.
5764 * config/i386/i386.c (initial_ix86_tune_features): Update.
5765 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
5766 (ix86_expand_convert_uns_didf_sse): Use
5767 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
5768 (ix86_expand_vector_init_one_nonzero): Ditto.
5769 (ix86_expand_vector_init_interleave): Ditto.
5770 (inline_secondary_memory_needed): Return true for moves from SSE class
5771 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
5772 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
5773 * config/i386/constraints.md (Yi, Ym): Depend on
5774 TARGET_INTER_UNIT_MOVES_TO_VEC.
5775 (Yj, Yn): New constraints.
5776 * config/i386/i386.md (*movdi_internal): Change constraints of
5777 operand 1 from Yi to Yj and from Ym to Yn.
5778 (*movsi_internal): Ditto.
5779 (*movdf_internal): Ditto.
5780 (*movsf_internal): Ditto.
5781 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
5782 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
5783 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
5784 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
5785 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
5786 * config/i386/sse.md (movdi_to_sse): Ditto.
5787 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
5788 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
5789 TARGET_INTER_UNIT_MOVES.
5790 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
5791 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
5792 instead of TARGET_INTER_UNIT_MOVES.
5793 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
5794 operand 1 from Yi to Yj and from Ym to Yn.
5796 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5798 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
5799 (float_truncate_hi_): Likewise.
5800 (float_extend_lo_): Likewise.
5801 (float_truncate_lo_): Likewise.
5802 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
5803 (aarch64_float_extend_lo_v2df): Likewise.
5804 (vec_unpacks_hi_v4sf): Likewise.
5805 (aarch64_float_truncate_lo_v2sf): Likewise.
5806 (aarch64_float_truncate_hi_v4sf): Likewise.
5807 (vec_pack_trunc_v2df): Likewise.
5808 (vec_pack_trunc_df): Likewise.
5810 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5812 * config/aarch64/aarch64-builtins.c
5813 (aarch64_fold_builtin): Fold float conversions.
5814 * config/aarch64/aarch64-simd-builtins.def
5815 (floatv2si, floatv4si, floatv2di): New.
5816 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
5817 * config/aarch64/aarch64-simd.md
5818 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
5819 * config/aarch64/iterators.md (FLOATUORS): New.
5820 (optab): Add float, floatuns.
5821 (su_optab): Likewise.
5823 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5825 * config/aarch64/aarch64-builtins.c
5826 (aarch64_builtin_vectorized_function): Use new names for
5828 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
5829 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
5830 (fcvtzu): Split as...
5831 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
5832 (fcvtas): Split as...
5833 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
5834 (fcvtau): Split as...
5835 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
5836 (fcvtps): Split as...
5837 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
5838 (fcvtpu): Split as...
5839 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
5840 (fcvtms): Split as...
5841 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
5842 (fcvtmu): Split as...
5843 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
5844 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
5845 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
5846 (lfrintnusf, lfrintnudf): Likewise.
5847 * config/aarch64/aarch64-simd.md
5848 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
5850 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
5851 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
5852 (fcvt_pattern): Likewise.
5854 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5856 * config/aarch64/aarch64-simd.md
5857 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
5858 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
5860 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5862 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
5863 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
5864 (vrnd<a,m,n,p>_f32): Implement using builtins.
5865 (vrnd<i,x><q>_f<32, 64>): New.
5867 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5869 * config/aarch64/aarch64-builtins.c
5870 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
5871 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
5872 (frintz): Rename to...
5874 (frintp): Rename to...
5876 (frintm): Rename to...
5878 (frinti): Rename to...
5879 (nearbyint): ...this.
5880 (frintx): Rename to...
5882 (frinta): Rename to...
5884 * config/aarch64/aarch64-simd.md
5885 (aarch64_frint<frint_suffix><mode>): Delete.
5886 (<frint_pattern><mode>2): Convert to insn.
5887 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
5888 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
5889 (frint_pattern): Likewise.
5890 (frint_suffix): Likewise.
5892 2013-04-29 Richard Biener <rguenther@suse.de>
5894 PR tree-optimization/57081
5895 * loop-init.c: Include tree-flow.h.
5896 (loop_optimizer_finalize): Free number of iteration estimates.
5897 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
5899 2013-04-29 Jakub Jelinek <jakub@redhat.com>
5901 PR tree-optimization/57083
5902 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
5903 non-singleton shift count range, zero extend low_bound for uns case.
5905 * config/i386/predicates.md (general_vector_operand): New predicate.
5906 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
5907 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
5908 if they aren't nonimmediate operands. If their original values
5909 satisfy const_vector_equal_evenodd_p, don't shift them.
5910 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
5911 predicates. For the SSE4.1 case force operands[{1,2}] into registers
5912 if not nonimmediate_operand.
5913 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
5914 instead of register_operand.
5915 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
5917 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
5919 * stor-layout.c (finalize_size_functions): Allocate a structure and
5920 reset cfun before dumping the functions.
5922 2013-04-27 Jakub Jelinek <jakub@redhat.com>
5924 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
5927 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
5928 use xop_pmacsdqh if uns_p.
5929 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
5930 the immediate rotate count.
5932 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
5934 * rtl.h (struct rtx_def): Add comment for field jump.
5935 (LRA_SUBREG_P): New macro.
5936 * recog.c (register_operand): Check LRA_SUBREG_P.
5937 * lra.c (lra): Add note at the end of RTL code. Align non-empty
5939 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
5940 (lra_final_code_change): Skip subreg change for operators.
5941 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
5942 if there are no operand changes.
5943 * lra-constraints.c (curr_insn_set): New.
5944 (match_reload): Set LRA_SUBREG_P.
5945 (emit_spill_move): Ditto.
5946 (check_and_process_move): Use curr_insn_set. Process only single
5947 set insns. Don't initialize sec_mem_p and change_p.
5948 (simplify_operand_subreg): Use LRA_SUBREG_P.
5949 (reg_in_class_p): New function.
5950 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
5951 of #ifdef. Add code to remove cycling.
5952 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
5953 non-null disp. Reload inner instead of disp when base and index
5954 are null. Try to put lo_sum into register.
5955 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
5956 (check_and_process_move): Move code for move cost check to
5957 simple_move_p. Remove equiv_substitution.
5958 (simple_move_p): New function.
5959 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
5960 curr_insn_set. Call check_and_process_move only for single set
5961 insns. Use the new function. Move call of check_and_process_move
5962 after operand equiv substitution and address process.
5964 2013-04-26 Jakub Jelinek <jakub@redhat.com>
5967 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
5968 with nonlocal goto receivers or returns twice calls, ignore
5969 unininitialized values from abnormal edges to nl goto receiver
5970 or returns twice call.
5972 2013-04-26 Jakub Jelinek <jakub@redhat.com>
5974 PR tree-optimization/57051
5975 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
5976 and VEC_RSHIFT_EXPR if shift count is a multiple of element
5979 2013-04-26 Richard Biener <rguenther@suse.de>
5981 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
5982 (expand_omp_taskreg): Likewise. Mark loops for fixup.
5983 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
5984 (fixup_loop_arrays_after_move): New function.
5985 (move_sese_region_to_fn): Properly outline the loop tree parts
5988 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
5990 * config/i386/i386.md (type, unit): Fix long lines.
5992 2013-04-26 Richard Biener <rguenther@suse.de>
5994 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
5995 (lto-streamer-out.o): Likewise.
5996 * cfgloop.c (init_loops_structure): Export, add struct function
5997 argument and adjust.
5998 (flow_loops_find): Adjust.
5999 * cfgloop.h (enum loop_estimation): Add EST_LAST.
6000 (init_loops_structure): Declare.
6001 * lto-streamer-in.c: Include cfgloop.h.
6002 (input_cfg): Input the loop tree.
6003 * lto-streamer-out.c: Include cfgloop.h.
6004 (output_cfg): Output the loop tree.
6005 (output_struct_function_base): Do not drop PROP_loops.
6007 2013-03-26 Richard Biener <rguenther@suse.de>
6009 * tree-cfg.c (execute_build_cfg): Build the loop tree.
6010 (pass_build_cfg): Provide PROP_loops.
6011 (move_sese_region_to_fn): Remove loops that are outlined into fn
6013 * tree-inline.c: Include cfgloop.h.
6014 (initialize_cfun): Do not drop PROP_loops.
6015 (copy_loops): New function.
6016 (copy_cfg_body): Copy loop structure.
6017 (tree_function_versioning): Initialize destination loop tree.
6018 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
6019 (pass_parallelize_loops): Do IL verification.
6020 * loop-init.c (loop_optimizer_init): Fixup loops if required.
6021 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
6022 the CFG make sure we fixup loops as well.
6023 * tree-ssa-tail-merge.c: Include cfgloop.h.
6024 (replace_block_by): When merging loop latches mark loops for fixup.
6025 * lto-streamer-out.c (output_struct_function_base): Drop
6027 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
6028 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
6029 * ipa-split.c: Include cfgloop.h.
6030 (split_function): Add the new return block to the loop tree root.
6031 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
6032 whether we have removed the forwarder block.
6033 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
6034 * cfgloop.h (place_new_loop): Declare.
6035 * cfgloopmanip.c (place_new_loop): Export.
6036 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
6037 (tree-switch-conversion.o): Likewise.
6038 (tree-complex.o): Likewise.
6039 (tree-inline.o): Likewise.
6040 (tree-ssa-tailmerge.o): Likewise.
6041 (ipa-split.o): Likewise.
6042 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
6043 (tree-ssa-copy.o): Likewise.
6044 * tree-switch-conversion.c: Include cfgloop.h
6045 (process_switch): If we emit a bit-test cascade, schedule loops
6047 * tree-complex.c: Include cfgloop.h.
6048 (expand_complex_div_wide): Properly add new basic-blocks to loops.
6049 * asan.c: Include cfgloop.h.
6050 (create_cond_insert_point): Properly add new basic-blocks to
6051 loops, schedule loop fixup.
6052 * cfgloop.c (verify_loop_structure): Check that looks are not
6054 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
6056 (expand_omp_for_generic): Likewise.
6057 (expand_omp_sections): Likewise.
6058 (expand_omp_atomic_pipeline): Schedule loops for fixup.
6059 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
6060 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
6061 is initialized, not when loops are present.
6062 * tree-parloops.c (parallelize_loops): Remove checking here.
6063 * passes.c (init_optimization_passes): Schedule a copy-propagation
6064 pass before complete unrolling of inner loops.
6066 2013-04-26 Jakub Jelinek <jakub@redhat.com>
6068 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
6069 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
6070 (colorize_init): Add argument to _WIN32 version.
6071 * toplev.c: Include diagnostic-color.h.
6072 (process_options): Default to -fdiagnostics-color=auto if
6073 GCC_COLORS env var is in the environment.
6074 * common.opt (fdiagnostics-color=): Add Var and Init.
6075 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
6076 env var is in the environment, the default is auto rather than never.
6078 * diagnostic.h (file_name_as_prefix): Add context argument.
6079 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
6080 the string as locus.
6081 * langhooks.c (lhd_print_error_function): Adjust caller.
6083 2013-04-25 Lawrence Crowl <crowl@google.com>
6085 * var-tracking.c (shared_hash_def::htab):
6086 Change type to hash_table. Update dependent calls and types.
6088 2013-04-25 Lawrence Crowl <crowl@google.com>
6090 * Makefile.in: Update as needed below.
6092 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
6093 Move declaration to after the type's method definitons.
6095 * attribs.c (htab_t scoped_attributes::attribute_hash):
6096 Change type to hash_table. Update dependent calls and types.
6098 * bitmap.c (htab_t bitmap_desc_hash):
6099 Change type to hash_table. Update dependent calls and types.
6101 * cselib.c (htab_t cselib_hash_table):
6102 Change type to hash_table. Update dependent calls and types.
6104 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
6105 (hash_string_slot_node): Move implementation into lto-streamer.h
6106 struct string_slot_hasher.
6107 (eq_string_slot_node): Likewise.
6109 * data-streamer-out.c: Update output_block::string_hash_table
6110 dependent calls and types.
6112 * dwarf2cfi.c (htab_t trace_index):
6113 Change type to hash_table. Update dependent calls and types.
6115 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
6116 Change type to hash_table. Update dependent calls and types.
6117 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
6118 (htab_t optimize_external_refs::map): Likewise.
6119 (htab_t output_comp_unit::extern_map): Likewise.
6120 (htab_t output_comdat_type_unit::extern_map): Likewise.
6121 (htab_t output_macinfo::macinfo_htab): Likewise.
6122 (htab_t optimize_location_lists::htab): Likewise.
6123 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
6125 * except.c (htab_t ehspec_hash_type):
6126 Change type to hash_table. Update dependent calls and types.
6127 (assign_filter_values::ttypes): Likewise.
6128 (assign_filter_values::ehspec): Likewise.
6129 (sjlj_assign_call_site_values::ar_hash): Likewise.
6130 (convert_to_eh_region_ranges::ar_hash): Likewise.
6132 * gcse.c (htab_t pre_ldst_table):
6133 Change type to hash_table. Update dependent calls and types.
6135 * ggc-common.c (htab_t saving_htab):
6136 Change type to hash_table. Update dependent calls and types.
6137 (htab_t loc_hash): Likewise.
6138 (htab_t ptr_hash): Likewise.
6139 (call_count): Rename ggc_call_count.
6140 (call_alloc): Rename ggc_call_alloc.
6141 (loc_descriptor): Rename make_loc_descriptor.
6142 (add_statistics): Rename ggc_add_statistics.
6144 * ggc-common.c (saving_htab):
6145 Change type to hash_table. Update dependent calls and types.
6147 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
6148 (push_gimplify_context): Likewise.
6149 (pop_gimplify_context): Likewise.
6150 (struct gimple_temp_hash_elt): Added.
6151 (struct gimplify_hasher): Likewise.
6152 (struct gimplify_ctx.temp_htab):
6153 Change type to hash_table. Update dependent calls and types.
6155 * gimple-fold.c: Include gimplify-ctx.h.
6157 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
6158 Change type to hash_table. Update dependent calls and types.
6159 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
6160 avoid potential global name collision.
6162 * gimplify.c: Include gimplify-ctx.h.
6163 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
6164 (htab_t gimplify_ctx::temp_htab):
6165 Update dependent calls and types for new type hash_table.
6166 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
6167 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
6169 * gimplify-ctx.h: New.
6170 (struct gimple_temp_hash_elt): Move from gimplify.c.
6171 (class gimplify_hasher): New.
6172 (struct gimplify_ctx): Move from gimple.h.
6173 (htab_t gimplify_ctx::temp_htab):
6174 Change type to hash_table. Update dependent calls and types.
6176 * graphite-clast-to-gimple.c: Include graphite-htab.h.
6177 (htab_t ivs_params::newivs_index):
6178 Change type to hash_table. Update dependent calls and types.
6179 (htab_t ivs_params::params_index): Likewise.
6180 (htab_t print_generated_program::params_index): Likewise.
6181 (htab_t gloog::newivs_index): Likewise.
6182 (htab_t gloog::params_index): Likewise.
6184 * graphite.c: Include graphite-htab.h.
6185 4htab_t graphite_transform_loops::bb_pbb_mapping):
6186 Change type to hash_table. Update dependent calls and types.
6188 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
6189 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
6190 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
6192 * graphite-dependences.c: Include graphite-htab.h.
6193 (loop_is_parallel_p): Change hash table type of parameter.
6195 * graphite-htab.h: New.
6196 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
6197 (extern find_pbb_via_hash): Move from graphite-poly.h.
6198 (extern loop_is_parallel_p): Move from graphite-poly.h.
6199 (extern get_loop_body_pbbs): Move from graphite-poly.h.
6201 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
6202 (extern loop_is_parallel_p): Move to graphite-htab.h.
6203 (extern get_loop_body_pbbs): Move to graphite-htab.h.
6205 * haifa-sched.c (htab_t delay_htab):
6206 Change type to hash_table. Update dependent calls and types.
6207 (htab_t delay_htab_i2): Likewise.
6209 * ira-color.c (htab_t allocno_hard_regs_htab):
6210 Change type to hash_table. Update dependent calls and types.
6212 * ira-costs.c (htab_t cost_classes_htab):
6213 Change type to hash_table. Update dependent calls and types.
6215 * loop-invariant.c (htab_t merge_identical_invariants::eq):
6216 Change type to hash_table. Update dependent calls and types.
6218 * loop-iv.c (htab_t bivs):
6219 Change type to hash_table. Update dependent calls and types.
6221 * loop-unroll.c (htab_t opt_info::insns_to_split):
6222 Change type to hash_table. Update dependent calls and types.
6223 (htab_t opt_info::insns_with_var_to_expand): Likewise.
6225 * lto-streamer.h (struct string_slot): Move from data-streamer.h
6226 (struct string_slot_hasher): New.
6227 (htab_t output_block::string_hash_table):
6228 Change type to hash_table. Update dependent calls and types.
6230 * lto-streamer-in.c (freeing_string_slot_hasher): New.
6231 (htab_t file_name_hash_table):
6232 Change type to hash_table. Update dependent calls and types.
6234 * lto-streamer-out.c: Update output_block::string_hash_table dependent
6237 * lto-streamer.c (htab_t tree_htab):
6238 Change type to hash_table. Update dependent calls and types.
6240 * omp-low.c: Include gimplify-ctx.h.
6242 * passes.c (htab_t name_to_pass_map):
6243 Change type to hash_table. Update dependent calls and types.
6244 (pass_traverse): Rename to passes_pass_traverse.
6246 * plugin.c (htab_t event_tab):
6247 Change type to hash_table. Update dependent calls and types.
6249 * postreload-gcse.c (htab_t expr_table):
6250 Change type to hash_table. Update dependent calls and types.
6251 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
6253 * sese.c (debug_rename_map_1): Make extern.
6254 (htab_t copy_bb_and_scalar_dependences::rename_map):
6255 Change type to hash_table. Update dependent calls and types.
6257 * sese.h (extern debug_rename_map): Move to .c file.
6259 * store-motion.c (htab_t store_motion_mems_table):
6260 Change type to hash_table. Update dependent calls and types.
6262 * trans-mem.c (htab_t tm_new_mem_hash):
6263 Change type to hash_table. Update dependent calls and types.
6265 * tree-browser.c (htab_t TB_up_ht):
6266 Change type to hash_table. Update dependent calls and types.
6268 * tree-cfg.c (htab_t discriminator_per_locus):
6269 Change type to hash_table. Update dependent calls and types.
6271 * tree-complex.c: Include tree-hasher.h
6272 (htab_t complex_variable_components):
6273 Change type to hash_table. Update dependent calls and types.
6275 * tree-eh.c (htab_t finally_tree):
6276 Change type to hash_table. Update dependent calls and types.
6278 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
6279 struct int_tree_hasher.
6280 (extern int_tree_map_eq): Likewise.
6281 (uid_decl_map_hash): Removed.
6282 (extern decl_tree_map_eq): Likewise.
6284 * tree-hasher.h: New.
6285 (struct int_tree_hasher): New.
6286 (typedef int_tree_htab_type): New.
6288 * tree-inline.c: Include gimplify-ctx.h.
6290 * tree-mudflap.c: Include gimplify-ctx.h.
6292 * tree-parloops.c: Include tree-hasher.h.
6293 (htab_t eliminate_local_variables_stmt::decl_address):
6294 Change type to hash_table. Update dependent calls and types.
6295 (htab_t separate_decls_in_region::decl_copies): Likewise.
6297 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
6298 Change type to hash_table. Update dependent calls and types.
6300 * tree-sra.c (candidates):
6301 Change type to hash_table. Update dependent calls and types.
6303 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
6305 (int_tree_map_hash): Likewise.
6307 * tree-ssa-dom.c (htab_t avail_exprs):
6308 Change type to hash_table. Update dependent calls and types.
6310 * tree-ssa-live.c (var_map_base_init::tree_to_index):
6311 Change type to hash_table. Update dependent calls and types.
6313 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
6314 Change type to hash_table. Update dependent calls and types.
6316 * tree-ssa-phiopt.c (seen_ssa_names):
6317 Change type to hash_table. Update dependent calls and types.
6319 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
6320 Change type to hash_table. Update dependent calls and types.
6322 * tree-ssa-uncprop.c (equiv):
6323 Change type to hash_table. Update dependent calls and types.
6325 2013-04-25 Jakub Jelinek <jakub@redhat.com>
6327 PR rtl-optimization/57003
6328 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
6329 call note_stores with kill_clobbered_value callback again after
6330 killing regs_invalidated_by_call.
6332 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
6334 * config/aarch64/aarch64-simd.md
6335 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
6336 (aarch64_simd_bsl<mode>): Likewise.
6337 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
6339 2013-04-25 Marek Polacek <polacek@redhat.com>
6341 PR tree-optimization/57066
6342 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
6344 2013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
6346 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
6348 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
6350 * config/aarch64/aarch64-builtins.c
6351 (aarch64_fold_builtin): New.
6352 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
6353 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
6354 * config/aarch64/aarch64-simd-builtins.def (abs): New.
6355 * config/aarch64/arm_neon.h
6356 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
6358 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
6359 Tejas Belagod <tejas.belagod@arm.com>
6361 * config/aarch64/aarch64-builtins.c
6362 (aarch64_gimple_fold_builtin): New.
6363 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
6364 * config/aarch64/aarch64-simd-builtins.def (addv): New.
6365 * config/aarch64/aarch64-simd.md (addpv4sf): New.
6367 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
6369 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6371 * config/aarch64/aarch64.md
6372 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
6374 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6376 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
6377 (*ngcsi_uxtw): New pattern.
6379 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6380 Julian Brown <julian@codesourcery.com>
6382 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
6383 (TB_DREG): Add T_V4HF.
6384 (v4hf_UP): New macro.
6385 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
6386 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
6387 Handle initialisation of V4HF. Adjust initialisation of reinterpret
6389 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
6390 (arm_vector_mode_supported_p): Handle V4HF.
6391 (arm_mangle_map): Handle V4HFmode.
6392 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
6393 * config/arm/arm_neon_builtins.def: Add entries for
6394 vcvtv4hfv4sf, vcvtv4sfv4hf.
6395 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
6396 (neon_vcvtv4hfv4sf): Likewise.
6397 * config/arm/neon-gen.ml: Handle half-precision floating point
6399 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
6400 * config/arm/arm_neon.h: Regenerate.
6401 * config/arm/neon.ml (type elts): Add F16.
6402 (type vectype): Add T_float16x4, T_floatHF.
6403 (type vecmode): Add V4HF.
6404 (type features): Add Requires_FP_bit feature.
6405 (elt_width): Handle F16.
6406 (elt_class): Likewise.
6407 (elt_of_class_width): Likewise.
6408 (mode_of_elt): Refactor.
6409 (type_for_elt): Handle F16, fix error messages.
6410 (vectype_size): Handle T_float16x4.
6411 (vcvt_sh): New function.
6412 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
6413 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
6414 (string_of_mode): Handle V4HF.
6415 * doc/arm-neon-intrinsics.texi: Regenerate.
6417 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
6419 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
6420 format specifier in 'X' case.
6422 2013-04-25 Alan Modra <amodra@gmail.com>
6425 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
6426 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
6427 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
6428 Repeat for many other rotate/shift and mask patterns using subregs.
6429 Name lshiftrt insns.
6430 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
6431 on WORDS_BIG_ENDIAN.
6433 2013-04-25 Alan Modra <amodra@gmail.com>
6435 * config.gcc: Support little-endian powerpc-linux targets.
6436 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
6437 (LINK_OS_LINUX_SPEC): Define.
6438 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
6439 Preserve MASK_LITTLE_ENDIAN.
6440 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
6441 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
6442 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
6443 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
6444 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
6445 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
6446 Correct fp word order for little-endian. Don't shift toc entries
6447 smaller than a word for little-endian.
6448 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
6449 (bswapdi2 splits): Correct low-part subreg for little-endian.
6450 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
6451 low/high where such is correct only for be.
6452 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
6453 little-endian for -mcall-aixdesc.
6455 2013-04-25 Alan Modra <amodra@gmail.com>
6457 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
6458 replace_equiv_address_nv.
6460 2013-04-25 Alan Modra <amodra@gmail.com>
6462 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
6464 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
6467 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
6468 * rtl.h (struct rtx_def): ...
6470 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
6472 PR rtl-optimizations/57046
6473 * lra-constraints (split_reg): Set up lra_risky_transformations_p
6474 for multi-reg splits.
6476 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
6478 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
6480 2013-04-24 Sterling Augustine <saugustine@google.com>
6482 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
6483 (comp_dir_string, debug_str_dwo_section): New.
6484 (DEBUG_STR_DWO_SECTION): Rename to ...
6485 (DEBUG_DWO_STR_SECTION): ... this.
6486 (DEBUG_NORM_STR_SECTION): Delete.
6487 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
6488 (DEBUG_STR_DWO_SECTION_FLAGS): New.
6489 (find_AT_string): Move most logic to ...
6490 (find_AT_string_in_table): ... here. New.
6491 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
6492 add_skeleton_AT_string. Delete logic.
6493 (output_skeleton_debug_sections): Remove call to
6494 add_top_level_skeleton_die_attrs.
6495 (add_comp_dir_attribute): Move logic to comp_dir_string.
6496 (dwarf2out_init): Initialize debug_str_dwo_section.
6497 (output_indirect_string): Call find_string_form.
6498 (output_indirect_strings): Rewrite.
6499 (prune_unused_types): Empty skeleton_debug_str_hash.
6500 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
6501 (dwarf2out_finish): Call output_indirect_strings.
6503 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6505 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
6507 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
6509 * rtl.h (struct rtx_def): Add comment for field jump.
6510 (LRA_SUBREG_P): New macro.
6511 * recog.c (register_operand): Check LRA_SUBREG_P.
6512 * lra.c (lra): Add note at the end of RTL code. Align non-empty
6514 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
6515 (lra_final_code_change): Skip subreg change for operators.
6516 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
6517 if there are no operand changes.
6518 * lra-constraints.c (curr_insn_set): New.
6519 (match_reload): Set LRA_SUBREG_P.
6520 (emit_spill_move): Ditto.
6521 (check_and_process_move): Use curr_insn_set. Process only single
6522 set insns. Don't initialize sec_mem_p and change_p.
6523 (simplify_operand_subreg): Use LRA_SUBREG_P.
6524 (reg_in_class_p): New function.
6525 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
6526 of #ifdef. Add code to remove cycling.
6527 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
6528 non-null disp. Reload inner instead of disp when base and index
6529 are null. Try to put lo_sum into register.
6530 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
6531 (check_and_process_move): Move code for move cost check to
6532 simple_move_p. Remove equiv_substitution.
6533 (simple_move_p): New function.
6534 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
6535 curr_insn_set. Call check_and_process_move only for single set
6536 insns. Use the new function. Move call of check_and_process_move
6537 after operand equiv substitution and address process.
6539 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
6541 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
6542 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
6543 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
6545 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6547 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
6549 2013-04-24 Marek Polacek <polacek@redhat.com>
6551 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
6552 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
6553 (select_loops_exit_conditions): Likewise.
6554 (number_of_iterations_for_all_loops): Likewise.
6555 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
6556 (scev_analysis): Likewise.
6558 2013-04-02 Catherine Moore <clm@codesourcery.com>
6559 Chao-ying Fu <fu@mips.com>
6561 * config/mips/micromips.md (jraddiusp): New pattern.
6562 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
6563 instruction if possible.
6565 2013-04-24 Alan Modra <amodra@gmail.com>
6567 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
6569 2013-04-24 Julian Brown <julian@codesourcery.com>
6570 Chung-Lin Tang <cltang@codesourcery.com>
6572 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
6573 dependency behavior in enumeration type DIE generation. Add TODO note
6574 to comments about future DW_FORM_sdata/udata re-work of related code.
6576 2013-04-23 Lawrence Crowl <crowl@google.com>
6578 * Makefile.in: Update as needed below.
6580 * hash-table.h (class hash_table):
6581 Correct many methods with parameter types compare_type to the correct
6582 value_type. (Correct code was unlikely to notice the change.)
6583 (hash_table::elements_with_deleted) New.
6584 (class hashtable::iterator): New.
6585 (hashtable::begin()): New.
6586 (hashtable::end()): New.
6587 (FOR_EACH_HASH_TABLE_ELEMENT): New.
6589 * statistics.c (statistics_hashes):
6590 Change type to hash_table. Update dependent calls and types.
6592 * tree-into-ssa.c (var_infos):
6593 Change type to hash_table. Update dependent calls and types.
6595 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
6596 Change type to hash_table. Update dependent calls and types.
6598 * tree-ssa-loop-im.c (struct mem_ref.refs):
6599 Change type to hash_table. Update dependent calls and types.
6601 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
6602 Change type to hash_table. Update dependent calls and types.
6604 * tree-ssa-sccvn.c (vn_tables_s::nary):
6605 Change type to hash_table. Update dependent calls and types.
6606 (vn_tables_s::phis): Likewise.
6607 (vn_tables_s::references): Likewise.
6609 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
6610 (vn_reference_eq): Update parameter and return types.
6612 * tree-ssa-structalias.c (pointer_equiv_class_table):
6613 Change type to hash_table. Update dependent calls and types.
6614 (location_equiv_class_table): Likewise.
6616 * tree-vect-data-refs.c: Consequential changes for making
6617 peeling a hash_table.
6619 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
6620 (destroy_loop_vec_info): Dependent hash_table update.
6622 * tree-vectorizer.h (peeling_htab):
6623 Change type to hash_table. Update dependent calls and types.
6625 2013-04-23 Shiva Chen <shiva0217@gmail.com>
6627 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
6628 to check the register content is equal or not.
6629 * lra-constraints.c (match_reload): Use lra_assign_reg_val
6630 to assign register content record.
6631 * lra-eliminations.c (update_reg_eliminate): Use
6632 lra_update_reg_val_offset to update register content offset.
6633 * lra-int.h (struct lra_reg): Add offset member.
6634 (lra_reg_val_equal_p): New static inline function.
6635 (lra_update_reg_val_offset): New static inline function.
6636 (lra_assign_reg_val): New static inline function.
6637 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
6638 to assign register content record.
6639 (initialize_lra_reg_info_element): Initial offset to zero.
6641 2013-04-23 Catherine Moore <clm@codesourcery.com>
6643 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
6644 operands. Record compression.
6646 2013-04-23 Xinliang David Li <davidxl@google.com>
6648 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
6650 2013-04-23 Richard Biener <rguenther@suse.de>
6653 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
6654 parameter, only add abnormal goto edges from the copied body
6655 if the call could perform abnormal gotos.
6656 (copy_cfg_body): Adjust.
6658 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
6660 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
6662 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
6664 * coretypes.h (gimple_stmt_iterator): Add struct to make
6667 2013-04-23 Richard Biener <rguenther@suse.de>
6669 PR tree-optimization/57026
6670 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
6671 from SSA names occuring in abnormal PHI nodes.
6673 2013-04-22 Andi Kleen <ak@linux.intel.com>
6675 * lto/lto.c (print_lto_report_1): Fix LTO report names.
6677 2013-04-22 Andi Kleen <ak@linux.intel.com>
6679 * lto/lto.c (print_lto_report_1): Declare early.
6680 (read_cgraph_and_symbols): Call print_lto_report_1 early.
6682 2013-04-22 Andi Kleen <ak@linux.intel.com>
6684 * common.opt (-flto-report-wpa): Add.
6685 * doc/invoke.texi (-flto-report-wpa): Add.
6686 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
6689 2013-04-22 Xinliang David Li <davidxl@google.com>
6691 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
6692 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
6693 * Makefile.in: New dependency
6695 David Daney <ddaney.cavm@gmail.com>
6697 * configure.ac (gcc_cv_as_micromips_support): Use the
6698 --fatal-warnings option.
6699 * configure: Regenerate.
6701 2013-04-22 Marek Polacek <polacek@redhat.com>
6704 * tsan.c (instrument_expr): Don't instrument expression
6705 in case its size is zero.
6707 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
6711 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
6713 * config/alpha/alpha.c (TARGET_LRA_P): New define.
6715 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
6717 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
6718 (gimple_stmt_iterator): New typedef.
6719 * gimple.h (gimple_stmt_iterator): Rename to...
6720 (gimple_stmt_iterator_d): ... This.
6721 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
6722 trees be valid for GIMPLE and GENERIC.
6723 (TARGET_GIMPLE_FOLD_BUILTIN): New.
6724 * gimple-fold.c (gimple_fold_call): Call target hook
6725 gimple_fold_builtin.
6726 * hooks.c (hook_bool_gsiptr_false): New.
6727 * hooks.h (hook_bool_gsiptr_false): New.
6728 * target.def (fold_stmt): New.
6729 * doc/tm.texi: Regenerate.
6731 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
6734 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
6735 a set sp if no stack realignment.
6737 2013-04-22 Nick Clifton <nickc@redhat.com>
6739 * config.gcc (tilegx-linux): Extend extra_objs rather than
6741 (tilepro-linux): Likewise.
6743 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
6745 * config/aarch64/aarch64-builtins.c
6747 (CF0, CF1, CF2, CF3, CF4, CF10): New.
6748 (VAR<1-12>): Add MAP parameter.
6749 (BUILTIN_*): Likewise.
6750 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
6751 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
6752 (aarch64_ushl_n<mode>): Likewise.
6753 (aarch64_sshr_n<mode>): Likewise.
6754 (aarch64_ushr_n<mode>): Likewise.
6755 (aarch64_<maxmin><mode>): Likewise.
6756 (aarch64_sqrt<mode>): Likewise.
6757 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
6758 (vshr<q>_n_*): Likewise.
6760 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
6762 * config/aarch64/aarch64-builtins.c
6763 (aarch64_simd_builtin_type_mode): Handle SF types.
6765 (BUILTIN_GPF): Define.
6766 (aarch64_init_simd_builtins): Handle SF types.
6767 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
6770 * config/aarch64/aarch64-simd.md
6771 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
6772 (aarch64_frecpe<mode>): New.
6773 (aarch64_frecps<mode>): Likewise.
6774 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
6775 (v8type): Add frecp<esx>.
6776 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
6777 (aarch64_frecps<mode>): Likewise.
6778 * config/aarch64/iterators.md (FRECP): New.
6779 (frecp_suffix): Likewise.
6780 * config/aarch64/arm_neon.h
6781 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
6783 2013-04-22 Christian Bruel <christian.bruel@st.com>
6786 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
6787 (REG_CLASS_NAMES): Idem.
6788 (REG_CLASS_CONTENTS): Idem.
6789 (REGCLASS_HAS_FP_REG): Idem.
6790 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
6791 (sh_conditional_register_usage): Idem.
6793 2013-04-21 Jeff Law <law@redhat.com>
6795 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
6796 (ssa_forward_propagate_and_combine): Use it.
6798 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
6800 * lra.c: Update the flow chart diagram.
6802 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
6804 PR rtl-optimization/56847
6805 * lra-constraints.c (process_alt_operands): Discourage alternative
6806 with non-matche doffsettable memory constraint fro memory with
6809 2013-04-19 Richard Biener <rguenther@suse.de>
6811 PR tree-optimization/56982
6812 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
6814 * gimplify.c (gimplify_call_expr): Notice special calls.
6815 (gimplify_modify_expr): Likewise.
6816 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
6817 abnormal control flow receivers.
6818 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
6819 in the same way as cfun->has_nonlocal_labels.
6820 (gimple_purge_dead_abnormal_call_edges): Likewise.
6821 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
6822 receivers start a basic-block.
6824 2013-04-19 Richard Biener <rguenther@suse.de>
6826 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
6828 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
6829 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
6830 (SLP_TREE_LOAD_PERMUTATION): Add.
6831 (vect_transform_slp_perm_load): Adjust prototype.
6832 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
6833 (vect_free_slp_instance): Likewise.
6834 (vect_create_new_slp_node): Likewise.
6835 (vect_supported_slp_permutation_p): Remove.
6836 (vect_slp_rearrange_stmts): Adjust.
6837 (vect_supported_load_permutation_p): Likewise. Inline
6838 vect_supported_slp_permutation_p here.
6839 (vect_analyze_slp_instance): Compute load permutations per
6840 slp node instead of per instance.
6841 (vect_get_slp_defs): Adjust.
6842 (vect_transform_slp_perm_load): Likewise.
6843 (vect_schedule_slp_instance): Remove redundant code.
6844 (vect_schedule_slp): Remove hack for PR56270, add it ...
6845 * tree-vect-stmts.c (vectorizable_load): ... here, do not
6846 CSE loads for SLP. Adjust.
6848 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
6850 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
6851 spelling in two comments.
6853 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
6856 * config/arm/arm.c (load_multiple_sequence): Require SP
6857 as base register for loads if SP is in the register list.
6859 2013-04-19 Martin Jambor <mjambor@suse.cz>
6861 PR tree-optimization/56718
6862 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
6863 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
6864 and made public. Adjusted all callers.
6865 (ipa_intraprocedural_devirtualization): New function.
6866 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
6867 (ipa_intraprocedural_devirtualization): Likewise.
6868 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
6870 2013-04-19 Richard Biener <rguenther@suse.de>
6872 PR tree-optimization/57000
6873 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
6875 2013-04-19 Terry Guo <terry.guo@arm.com>
6877 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
6879 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
6880 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
6881 (cortex_m4_fmacs): Use new reservations.
6882 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
6884 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
6886 PR rtl-optimization/56999
6887 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
6889 (lra_coalesce): Remove split_origin_bitmap and related code.
6890 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
6891 ranges if necessary.
6893 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
6895 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
6897 (ix86_expand_call): Remove clobbered_registers array and use
6898 x86_64_ms_sysv_extra_clobbered_registers instead.
6899 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
6901 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
6903 * config/i386/i386.md (*call_rex64_ms_sysv): Use
6904 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
6905 (*call_value_rex64_ms_sysv): Ditto.
6907 2013-04-18 Cary Coutant <ccoutant@google.com>
6909 * dwarf2out.c (output_pubnames): Check die_perennial_p of
6910 parent instead of die_mark.
6912 2013-04-18 Diego Novillo <dnovillo@google.com>
6914 * gimple.c (create_gimple_tmp): New.
6915 (get_expr_type): New.
6916 (build_assign): New.
6917 (build_type_cast): New.
6918 * gimple.h (enum ssa_mode): Define.
6919 (gimple_seq_set_location): New.
6920 * asan.c (build_check_stmt): Change some gimple_build_* calls
6921 to use build_assign and build_type_cast.
6923 2013-04-18 Richard Biener <rguenther@suse.de>
6925 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
6926 handle negative step. Remove redundant checks.
6927 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
6928 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
6929 for negative step and grouped loads fail to vectorize.
6931 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
6933 * emit-rtl.c (reset_insn_used_flags): New function.
6934 (reset_all_used_flags): Use it.
6935 (verify_insn_sharing): New function.
6936 (verify_rtl_sharing): Fix verification for SEQUENCEs.
6938 2013-04-18 Jakub Jelinek <jakub@redhat.com>
6940 PR tree-optimization/56984
6941 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
6942 and (x >> M) >= N don't register any assertion if N << M is the
6945 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
6947 * lower-subreg.c (resolve_simple_move): If called self-recursive,
6948 do not delete_insn insns that have not yet been emitted, only
6949 unlink them with remove_insn.
6950 * df-scan.c (df_insn_delete): Revert r197492.
6952 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
6954 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
6955 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
6957 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
6959 * config/arm/arm.md (movsicc_insn): Convert define_insn into
6960 define_insn_and_split.
6961 (and_scc,ior_scc,negscc): Likewise.
6962 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
6964 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
6966 * config/arm/arm.c (use_return_insn): Return 0 for targets that
6967 can benefit from using a sequence of LDRD instructions in epilogue
6968 instead of a single LDM instruction.
6970 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
6973 * doc/extend.texi: Fix typo.
6975 2013-04-17 Richard Biener <rguenther@suse.de>
6977 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
6978 (vect_build_slp_tree): ... here.
6979 (vect_build_slp_tree_1): Compute which stmts of the SLP group
6980 match. Remove special-casing of mismatched complex loads.
6981 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
6982 re-try the match with swapped commutative operands.
6983 (vect_supported_load_permutation_p): Remove special-casing of
6984 mismatched complex loads.
6985 (vect_analyze_slp_instance): Adjust.
6987 2013-04-17 Richard Biener <rguenther@suse.de>
6989 PR rtl-optimization/56921
6990 * cfgloop.h (struct loop): Add simple_loop_desc member.
6991 (struct niter_desc): Mark with GTY(()).
6992 (simple_loop_desc): Do not use aux field but simple_loop_desc.
6993 * loop-iv.c (get_simple_loop_desc): Likewise.
6994 (free_simple_loop_desc): Likewise.
6997 2013-04-16 Richard Biener <rguenther@suse.de>
6999 PR rtl-optimization/56921
7000 * loop-init.c (pass_rtl_move_loop_invariants): Add
7001 TODO_do_not_ggc_collect to todo_flags_finish.
7002 (pass_rtl_unswitch): Same.
7003 (pass_rtl_unroll_and_peel_loops): Same.
7004 (pass_rtl_doloop): Same.
7006 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
7008 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
7009 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
7010 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
7012 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
7013 * tree-streamer.c (record_common_node): Adjust reference in comment.
7015 2013-04-17 Terry Guo <terry.guo@arm.com>
7017 * config/arm/cortex-m4.md: Add a new bypass.
7019 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7021 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
7023 (*subs_<optab><mode>_multp2): New pattern.
7024 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
7025 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
7027 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7029 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
7030 (*subs_mul_imm_<mode>): New pattern.
7032 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
7035 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
7036 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
7037 (vsx_movti_32bit): Change j->wa to O->wa.
7039 2013-04-16 Richard Biener <rguenther@suse.de>
7041 PR rtl-optimization/56921
7042 * loop-init.c (pass_rtl_move_loop_invariants): Add
7043 TODO_do_not_ggc_collect to todo_flags_finish.
7044 (pass_rtl_unswitch): Same.
7045 (pass_rtl_unroll_and_peel_loops): Same.
7046 (pass_rtl_doloop): Same.
7048 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
7050 * config/arm/arm.c (emit_multi_reg_push): New declaration
7051 for an existing function.
7052 (arm_emit_strd_push): New function.
7053 (arm_expand_prologue): Used here.
7054 (arm_emit_ldrd_pop): New function.
7055 (arm_expand_epilogue): Used here.
7056 (arm_get_frame_offsets): Update condition.
7057 (arm_emit_multi_reg_pop): Add a special case for load of a single
7058 register with writeback.
7060 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
7062 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
7065 2013-04-16 Richard Biener <rguenther@suse.de>
7067 PR tree-optimization/56756
7068 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
7069 (first_mem_ref_loc): New.
7070 (execute_sm): Place the load temporarily before a previous
7071 access instead of in the latch edge to ensure its SSA dependencies
7072 are defined at points dominating the load.
7074 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
7076 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
7077 correct fix by moving header and footer insn to the footer of
7078 the merged basic block. Clear BB_END of the merged-away block.
7081 * emit-rtl.c (make_note_raw): New function.
7082 (link_insn_into_chain): New static inline function.
7084 (add_insn_before, add_insn_after): Factor insn chain linking code...
7085 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
7086 using link_insn_into_chain.
7087 (note_outside_basic_block_p): New helper function for emit_note_after
7088 and emit_note_before.
7089 (emit_note_after): Use nobb variant of add_insn_after if the note
7090 should not be contained in a basic block.
7091 (emit_note_before): Use nobb variant of add_insn_before if the note
7092 should not be contained in a basic block.
7093 (emit_note_copy): Use make_note_raw.
7094 (emit_note): Likewise.
7095 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
7096 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
7097 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
7098 the moved barrier the tail of the basic block it follows.
7099 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
7101 2013-04-15 Jakub Jelinek <jakub@redhat.com>
7103 PR tree-optimization/56962
7104 * gimple-ssa-strength-reduction.c (record_increment): Only set
7105 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
7106 either rhs1 or rhs2 is equal to c->base_expr.
7108 2013-04-15 Richard Biener <rguenther@suse.de>
7110 PR tree-optimization/56933
7111 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
7113 (GROUP_READ_WRITE_DEPENDENCE): Remove.
7114 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
7115 * tree-vect-data-refs.c (vect_analyze_group_access): Move
7116 dependence check ...
7117 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
7119 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
7120 GROUP_READ_WRITE_DEPENDENCE.
7122 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7124 * emit-rtl.c (reset_all_used_flags): New function.
7125 (verify_rtl_sharing): Call reset_all_used_flags before and after
7126 performing the checks.
7128 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7130 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
7131 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
7132 * config/arm/constraints.md (De): New constraint.
7133 * config/arm/neon.md (anddi3_neon): Delete.
7134 (neon_vand<mode>): Expand to standard anddi3 pattern.
7135 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
7136 Move earlier in the file.
7137 (neon_inv_logic_op2): Likewise.
7138 (arm_anddi_operand_neon): New predicate.
7140 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7142 * configure.ac (gcc_cv_ld_as_needed): Set
7143 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
7144 Use -z ignore, -z record on *-*-solaris2*.
7145 (HAVE_LD_AS_NEEDED): Update comment.
7146 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
7147 * configure: Regenerate.
7148 * config.in: Regenerate.
7149 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
7150 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
7151 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
7152 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
7153 equivalents. Fix markup.
7154 * doc/tm.texi: Regenerate.
7156 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
7158 * config/i386/i386.opt: New option mstack-protector-guard=.
7159 * config/i386/i386-opts.h: Add enum stack_protector_guard.
7160 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
7161 TARGET_SSP_TLS_GUARD.
7162 * config/i386/i386.c (ix86_option_override_internal): Set
7163 ix86_stack_protector_guard.
7164 * config/i386/i386.md (stack_protect_set): Enable for
7165 TARGET_SSP_TLS_GUARD only.
7166 (stack_protect_set_<mode>): Ditto.
7167 (stack_protect_test): Ditto.
7168 (stack_protect_test_<mode>): Ditto.
7169 * doc/invoke.texi (i386 Option): Document.
7171 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
7174 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
7175 (S_MODES): Set H_MODE bit.
7176 (SF_MODES): Set only S_MODE and SF_MODE bits.
7177 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
7178 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
7179 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
7180 <MODE_FLOAT>: Likewise.
7182 2013-04-15 Joey Ye <joey.ye@arm.com>
7184 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
7186 2013-04-15 Joey Ye <joey.ye@arm.com>
7188 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
7190 (thumb_far_jump_used_p): Count instruction size and set
7193 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
7195 * reorg.c (fill_simple_delay_slots): Reindent block of code.
7196 * resource.c (mark_target_live_regs): Reformat conditional block.
7198 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
7200 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
7201 notes, they are emitted only just before final.
7202 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
7204 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
7206 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
7207 * cfgrtl.c (delete_insn): Call it here instead.
7208 * lra-spills.c (lra_final_code_change): Use delete_insn.
7209 * haifa-sched.c (sched_remove_insn): Likewise.
7210 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
7211 returning to the nop pool.
7212 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
7213 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
7215 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
7217 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
7218 * doc/tm.texi: Regenerated.
7220 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
7222 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
7225 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
7227 * df-core.c (df_find_def): Compare register numbers.
7228 (df_find_use): Likewise.
7230 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
7233 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
7234 lra_in_progress for return.
7236 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
7238 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
7239 define_insn into define_insn_and_split and emit movsicc patterns.
7241 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
7243 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
7245 2013-04-12 Richard Biener <rguenther@suse.de>
7247 * tree-pass.h (TODO_do_not_ggc_collect): New.
7248 * passes.c (execute_one_ipa_transform_pass): Honor
7249 TODO_do_not_ggc_collect.
7250 (execute_one_pass): Likewise.
7253 2013-04-10 Richard Biener <rguenther@suse.de>
7255 * passes.c (init_optimization_passes): Remove reload pass.
7256 * ira.c (do_reload): Merge into ...
7258 (rest_of_handle_reload): Remove.
7259 (pass_reload): Likewise.
7260 * config/i386/i386.c (ix86_option_override): Refer to ira instead
7261 of reload for vzeroupper pass placement.
7263 2013-04-12 Jakub Jelinek <jakub@redhat.com>
7265 PR tree-optimization/56918
7266 PR tree-optimization/56920
7267 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
7268 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
7269 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
7270 use wide_mul_with_sign method.
7272 2013-04-12 Richard Biener <rguenther@suse.de>
7274 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
7275 not be considered a gimple constant.
7277 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
7279 * fold-const.c (const_binop): Handle vector shifts by a scalar.
7280 (fold_binary_loc): Call const_binop also for mixed vector-scalar
7283 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
7284 Jakub Jelinek <jakub@redhat.com>
7286 * opts.c: Include diagnostic-color.h.
7287 (common_handle_option): Handle OPT_fdiagnostics_color_.
7288 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
7289 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
7290 (diagnostic-color.o): New.
7291 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
7292 (diagnostic_color_rule): New enum.
7293 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
7294 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
7295 the location string.
7296 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
7297 either NULL, or color kind.
7298 * diagnostic-color.c: New file.
7299 * diagnostic-color.h: New file.
7300 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
7302 * doc/invoke.texi (-fdiagnostics-color): Document.
7303 * pretty-print.h (pp_show_color): Define.
7304 (struct pretty_print_info): Add show_color field.
7305 * diagnostic.c: Include diagnostic-color.h.
7306 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
7307 macros. Colorize error:, warning: etc. strings and also the location
7309 (diagnostic_show_locus): Colorize the caret line.
7310 * pretty-print.c: Include diagnostic-color.h.
7311 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
7312 inside of %< %> quotes or quoted through q format modifier.
7314 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7316 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
7318 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7320 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
7322 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
7325 2013-04-11 Marek Polacek <polacek@redhat.com>
7327 PR tree-optimization/48184
7328 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
7330 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
7332 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
7333 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
7334 (skip_simple_arithmetic): Tidy up.
7335 * tree.h (skip_simple_constant_arithmetic): Declare.
7337 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7339 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
7341 2013-04-11 Richard Biener <rguenther@suse.de>
7343 * tree-vect-loop.c (get_initial_def_for_induction): Properly
7344 generate vector constants.
7346 2013-04-11 Richard Biener <rguenther@suse.de>
7348 PR tree-optimization/56878
7349 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
7350 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
7352 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7353 Prefer to align the DR with the most invariant base address.
7355 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7357 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
7360 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
7362 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
7363 floating-point vector comparisons against 0.
7365 2013-04-11 Jakub Jelinek <jakub@redhat.com>
7367 PR tree-optimization/56899
7368 * fold-const.c (extract_muldiv_1): Apply distributive law
7369 only if TYPE_OVERFLOW_WRAPS (ctype).
7371 2013-04-11 Bin Cheng <bin.cheng@arm.com>
7374 * ira-costs.c (scan_one_insn): Check whether the source rtx of
7375 loading has side effect.
7377 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
7379 * config/sparc/sparc.c: Include tree-pass.h.
7380 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
7381 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
7382 head of file. Change return type. Split off gate function.
7383 (sparc_gate_work_around_errata): New function.
7384 (pass_work_around_errata): New pass definition.
7385 (insert_pass_work_around_errata) New pass insert definition to
7386 insert pass_work_around_errata just after delayed-branch scheduling.
7387 (sparc_option_override): Insert the pass.
7388 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
7390 2013-04-10 David S. Miller <davem@davemloft.net>
7392 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
7393 or -mcpu=hypersparc.
7395 * target.def (cstore_mode): New hook.
7396 * target.h: Include insn-codes.h
7397 * targhooks.c: Likewise.
7398 (default_cstore_mode): New function.
7399 * targhooks.h: Declare it.
7400 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
7401 * doc/tm.texi: Rebuild.
7402 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
7403 target hook, rather than inspecting the insn_data.
7404 * config/sparc/sparc.c (sparc_cstore_mode): New function.
7405 (TARGET_CSTORE_MODE): Redefine.
7406 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
7408 * config/sparc/predicates.md (cstore_result_operand): New special
7410 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
7411 Use it for operand 0.
7412 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
7413 (*snesi_special): Likewise.
7414 (*snesi_zero): Likewise.
7415 (*seqsi_zero): Likewise.
7416 (*sltu_insn): Likewise.
7417 (*sgeu_insn): Likewise.
7418 (*seqdi_special): Make operand 0 and comparison operation be of
7420 (*snedi_special): Likewise.
7421 (*snedi_special_vis3): Likewise.
7422 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
7423 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
7424 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
7425 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
7426 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
7427 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
7428 (*sltu_extend_sp64): Likewise.
7429 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
7430 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
7431 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
7432 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
7433 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
7435 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
7437 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
7438 (aarch64_start_file): Use the new function.
7440 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7441 Jason Merrill <jason@redhat.com>
7443 * common.opt: Add -gdwarf.
7444 * opts.c (common_handle_option): Handle it.
7445 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
7447 2013-04-10 Richard Biener <rguenther@suse.de>
7449 * passes.c (execute_todo): Do not call ggc_collect conditional here.
7450 (execute_one_ipa_transform_pass): But unconditionally here.
7451 (execute_one_pass): And here.
7452 (init_optimization_passes): Remove reload pass.
7453 * tree-pass.h (TODO_ggc_collect): Remove.
7454 (pass_reload): Likewise.
7455 * ira.c (do_reload): Merge into ...
7457 (rest_of_handle_reload): Remove.
7458 (pass_reload): Likewise.
7459 * config/i386/i386.c (ix86_option_override): Refer to ira instead
7460 of reload for vzeroupper pass placement.
7461 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
7462 and todo_flags_finish of all passes.
7464 2013-04-10 Richard Biener <rguenther@suse.de>
7466 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
7467 first_const_oprnd field, rename first_def_type to first_op_type.
7468 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
7469 (vect_get_and_check_slp_defs): Always use the type of the
7470 operand. Allow mixed vect_external_def, vect_constant_def types.
7471 (vect_get_constant_vectors): Handle mixed vect_external_def,
7472 vect_constant_def types.
7474 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
7476 PR tree-optimization/55524
7477 * tree-ssa-math-opts.c
7478 (convert_mult_to_fma): Don't use an fms construct
7479 when we don't have an fms operation, but fnma, and it looks
7480 likely that we'll be able to use the latter.
7482 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
7484 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
7486 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
7487 inline fail caused by overwritable functions.
7489 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
7491 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
7492 unnecessary bits in the constant power of two case.
7494 2013-04-10 Richard Biener <rguenther@suse.de>
7496 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
7497 broken code swapping operands.
7498 (vect_build_slp_tree): Do not compute load permutations here.
7499 (vect_analyze_slp_instance): Compute load permutations here,
7500 after building the SLP tree.
7502 2013-04-09 Christian Bruel <christian.bruel@st.com>
7504 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
7505 of next/prev_real_insn.
7507 2013-04-09 Jan Hubicka <jh@suse.cz>
7509 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
7510 Drop aliased parameter.
7511 (function_and_variable_visibility): Do not handle alias pairs.
7512 * cgraph.c (varpool_externally_visible_p): Update prototype.
7513 * varpool.c (varpool_add_new_variable): Update.
7515 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7517 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
7519 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
7521 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
7523 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
7525 2013-04-09 Marek Polacek <polacek@redhat.com>
7527 PR tree-optimization/48762
7528 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
7530 2013-04-09 Richard Biener <rguenther@suse.de>
7532 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
7534 (vect_build_slp_tree): Likewise.
7535 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
7536 calculating the cost of a SLP instance.
7537 (vect_analyze_slp_instance): Use it from here, after building
7540 2013-04-09 Jakub Jelinek <jakub@redhat.com>
7543 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
7544 expand_omp_for_static_chunk): Use simple_p = true in
7545 force_gimple_operand_gsi calls when assigning to addressable decls.
7547 2013-04-09 Jeff Law <law@redhat.com>
7549 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
7550 when the boolean was created by converting a wider object which
7551 had a boolean range.
7553 2013-04-09 Richard Biener <rguenther@suse.de>
7555 * tree-vectorizer.h (slp_void_p): Remove.
7556 (slp_tree): Typedef before _slp_tree declaration.
7557 (struct _slp_tree): Use a vector of slp_tree as children.
7558 (vect_get_place_in_interleaving_chain): Remove.
7559 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
7561 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
7563 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
7564 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
7565 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
7566 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
7567 Use slp_node instead of slp_void_p and adjust.
7569 2013-04-09 Richard Biener <rguenther@suse.de>
7571 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
7572 work that is not necessary.
7574 2013-04-09 Jakub Jelinek <jakub@redhat.com>
7576 PR tree-optimization/56854
7577 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
7578 forward into clobber stmts if it would change MEM_REF lhs into
7581 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
7583 * tree.c (type_hash_lookup, type_hash_add): Make static.
7584 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
7586 2013-04-09 Richard Biener <rguenther@suse.de>
7588 * tree.h (unsave_expr_now): Remove.
7589 * tree-inline.c (mark_local_for_remap_r): Remove.
7590 (unsave_expr_1): Likewise.
7591 (unsave_r): Likewise.
7592 (unsave_expr_now): Likewise.
7593 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
7594 (propagate_tree_value): Likewise.
7596 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
7598 * doc/rtl.texi (sequence): Rewrite documentation to match the
7599 current use of SEQUENCE rtl objects.
7600 * rtl.def (SEQUENCE): Likewise.
7602 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
7603 Update documentation.
7604 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
7605 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
7607 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
7609 2013-04-08 Teresa Johnson <tejohnson@google.com>
7611 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
7612 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
7614 (estimate_edge_size_and_time): Add comment to suggest using rounding
7616 (estimate_node_size_and_time): Ditto.
7617 (remap_edge_change_prob): Use helper rounding divide methods.
7618 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
7619 (gimple_mod_pow2_value_transform): Ditto.
7620 (gimple_mod_subtract_transform): Ditto.
7621 (gimple_ic_transform): Ditto.
7622 (gimple_stringops_transform): Ditto.
7623 * stmt.c (conditional_probability): Ditto.
7624 (emit_case_dispatch_table): Ditto.
7625 * lto-cgraph.c (merge_profile_summaries): Ditto.
7626 * tree-optimize.c (execute_fixup_cfg): Ditto.
7627 * cfgcleanup.c (try_forward_edges): Ditto.
7628 * cfgloopmanip.c (scale_loop_profile): Ditto.
7630 (duplicate_loop_to_header_edge): Ditto.
7631 (lv_adjust_loop_entry_edge): Ditto.
7632 * tree-vect-loop.c (vect_transform_loop): Ditto.
7633 * profile.c (compute_branch_probabilities): Ditto.
7634 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
7635 * lto-streamer-in.c (input_cfg): Ditto.
7636 * gimple-streamer-in.c (input_bb): Ditto.
7637 * ipa-cp.c (update_profiling_info): Ditto.
7638 (update_specialized_profile): Ditto.
7639 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
7640 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
7642 * sched-rgn.c (compute_dom_prob_ps): Ditto.
7643 (compute_trg_info): Ditto.
7644 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
7645 (purge_dead_edges): Ditto.
7646 * loop-unswitch.c (unswitch_loop): Ditto.
7647 * cgraphclones.c (cgraph_clone_edge): Ditto.
7648 (cgraph_clone_node): Ditto.
7649 * tree-inline.c (copy_bb): Ditto.
7650 (copy_edges_for_bb): Ditto.
7651 (initialize_cfun): Ditto.
7652 (copy_cfg_body): Ditto.
7653 (expand_call_inline): Ditto.
7655 2013-04-08 Kai Tietz <ktietz@redhat.com>
7657 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
7658 TARGET_CYGWIN64 by TARGET_64BIT.
7660 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
7662 * config/epiphany/epiphany.md (GPR_1): New constant.
7663 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
7664 * config/epiphany/epiphany.c (gen_compare_reg):
7665 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
7666 is already in place.
7667 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
7668 Don't require being called during rtl expansion; If y operlaps r0,
7670 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
7671 (epiphany_expand_epilogue): Likewise.
7673 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
7674 Don't use CC_FPmode for ORDERED / UNORDERED.
7675 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
7677 * config/epiphany/constraints.md (CnL): New constraint.
7678 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
7679 * config/epiphany/predicates.md (add_operand): Allow 1024.
7681 * config/epiphany/epiphany.md (logical_op): New code iterator.
7682 (op_mnc): New code attribute.
7683 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
7684 (mov_f+1, mov_f+2): New peephole2 patterns.
7686 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
7687 (cstoresi4): Also allow re-use of zero result when doing a NE
7688 comparison to a non-zero operand.
7689 Use (clobber (scratch)) for first insn if the gpr output is not needed.
7691 * config/epiphany/epiphany.md (<insn_opname>v2si3):
7692 Use gen_addsi3_i / gen_subsi3_i.
7694 2013-04-08 Jakub Jelinek <jakub@redhat.com>
7698 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
7699 contain anything but clobbers, at most one __builtin_stack_restore,
7700 optionally debug stmts and final resx, and if it has at least one
7701 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
7702 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
7703 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
7704 which isn't defaut definition, remove them.
7705 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
7706 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
7707 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
7708 with MEM_REF LHS with SSA_NAME address.
7710 2013-04-08 Jeff Law <law@redhat.com>
7712 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
7714 2013-04-08 Richard Biener <rguenther@suse.de>
7716 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
7718 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
7719 determined vector type.
7720 (vect_analyze_data_refs): Likewise.
7721 (vect_get_new_vect_var): Adjust.
7722 (vect_create_destination_var): Preserve SSA name versions.
7723 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
7724 not dump anything here.
7726 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
7728 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
7729 Add member lr_slot_known.
7730 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
7732 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
7733 Remove code that sets lr_slot_offset according to what a previous
7734 version of epiphany_emit_save_restore used to do.
7735 (epiphany_emit_save_restore): When doing an lr save or restore,
7736 set/verify lr_slot_known and lr_slot_offset.
7738 2013-04-08 Xinyu Qi <xyqi@marvell.com>
7741 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
7744 2013-04-08 Richard Biener <rguenther@suse.de>
7746 * alias.c (find_base_term): Fix thinko in previous change.
7748 2013-04-08 Jakub Jelinek <jakub@redhat.com>
7750 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
7751 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
7752 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
7753 if possible to compute val.
7754 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
7755 For QImode integers don't require anything about precision. Use
7756 const_with_all_bytes_same to find out if the constant doesn't have
7757 repeated bytes in it.
7759 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7761 * config/s390/s390.c (s390_expand_insv): Only accept insertions
7764 2013-04-08 Marek Polacek <polacek@redhat.com>
7766 PR rtl-optimization/48182
7767 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
7770 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7773 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
7774 nuses, make sure we have a label.
7776 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7779 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
7780 (rs6000_emit_swdiv_low_precision): Remove.
7781 (rs6000_emit_swdiv): Rewrite to handle between one and four
7782 iterations of Newton-Raphson generally; modify required number of
7783 iterations for some cases.
7784 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
7786 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
7788 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
7789 set-but-unused variable.
7791 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
7792 basic blocks of released function bodies garbage-collectable.
7794 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
7795 (struct rtl_opt_pass): Add TODO_df_finish.
7797 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
7799 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7801 * config/arm/constraints.md (q): New constraint.
7802 * config/arm/ldrdstrd.md: New file.
7803 * config/arm/arm.md (ldrdstrd.md) New include.
7804 (arm_movdi): Use "q" instead of "r" constraint
7805 for double-word memory access.
7806 (movdf_soft_insn): Likewise.
7807 * config/arm/vfp.md (movdi_vfp): Likewise.
7808 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
7809 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
7810 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
7811 (mem_ok_for_ldrd_strd): Likewise.
7812 (output_move_double): Update assertion.
7814 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7816 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
7818 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7820 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
7821 define_insn_and_split.
7822 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
7824 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7826 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
7827 define_insn_and_split.
7828 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
7829 (shiftsi3_compare): New pattern.
7831 * config/arm/unspecs.md (UNSPEC_RRX): New.
7833 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7835 * config/arm/arm.md (negdi_extendsidi): New pattern.
7836 (negdi_zero_extendsidi): Likewise.
7838 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7840 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
7841 define_insn_and_split.
7842 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
7843 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
7845 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7847 * config/arm/arm.md (arm_subdi3): Convert define_insn into
7848 define_insn_and_split.
7849 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
7850 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
7852 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7854 * config/arm/arm.md (subsi3_carryin): New pattern.
7855 (subsi3_carryin_const): Likewise.
7856 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
7857 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
7859 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7861 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
7863 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7865 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
7866 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
7868 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7870 * config/arm/arm.c (arm_expand_builtin): Change fcode
7871 type to unsigned int.
7873 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7875 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
7877 2013-04-04 Ian Lance Taylor <iant@google.com>
7879 * doc/standards.texi (Standards): The Go frontend supports the Go 1
7882 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
7885 * df-scan.c (df_insn_delete): Disable failing assert.
7887 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7889 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
7890 New function prototype.
7891 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
7892 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
7893 (arm_builtin_vectorized_function): New function.
7895 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7897 * config/arm/arm_neon_builtins.def: New file.
7898 * config/arm/arm.c (neon_builtin_data): Move contents to
7899 arm_neon_builtins.def.
7900 (enum arm_builtins): Include neon builtin definitions.
7901 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
7902 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
7904 2013-04-04 Marek Polacek <polacek@redhat.com>
7906 PR tree-optimization/48186
7907 * predict.c (maybe_hot_frequency_p): Return false if
7908 HOT_BB_FREQUENCY_FRACTION is 0.
7909 (cgraph_maybe_hot_edge_p): Likewise.
7911 2013-04-04 Richard Biener <rguenther@suse.de>
7913 PR tree-optimization/56826
7914 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
7917 2013-04-04 Richard Biener <rguenther@suse.de>
7919 PR tree-optimization/56213
7920 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
7921 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
7923 2013-04-04 Richard Biener <rguenther@suse.de>
7925 PR tree-optimization/56837
7926 * tree-loop-distribution.c (classify_partition): For non-zero
7927 values require that the value has the same precision as its
7928 mode to be useful as memset value.
7930 2013-04-03 Nick Clifton <nickc@redhat.com>
7932 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
7933 (fmssf4): Use fmsf.s on E3V5 architectures.
7934 (fnmasf4): Use fnmaf.s on E3V5 architectures.
7935 (fnmssf4): Use fnmsf.s on E3V5 architectures.
7937 2013-04-03 Jeff Law <law@redhat.com>
7939 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
7940 (lra-eliminations.o): Likewise.
7942 2013-04-03 Teresa Johnson <tejohnson@google.com>
7944 * gcov-io.c (compute_working_sets): Moved most of body of old
7945 compute_working_sets here from profile.c.
7946 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
7947 (gcov_working_set_t): Moved typedef here from basic-block.h
7948 (compute_working_set): Declare.
7949 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
7950 (get_working_sets): Renamed from compute_working_set,
7951 replace most of body with call to new compute_working_sets.
7952 (get_exec_counts): Replace call to compute_working_sets
7953 to get_working_sets.
7954 * profile.h (get_working_sets): Renamed from compute_working_set.
7955 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
7956 to get_working_sets.
7957 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
7958 * gcov-dump.c (dump_working_sets): New function.
7960 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
7962 * hwint.c (sext_hwi, zext_hwi): New functions.
7963 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
7964 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
7965 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
7966 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
7967 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
7968 (sext_hwi, zext_hwi): New functions.
7970 2013-04-03 Jeff Law <law@redhat.com>
7972 PR tree-optimization/56799
7973 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
7974 back test for widening conversion erroneously dropped in prior change.
7976 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7979 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
7980 instead of next_real_insn.
7982 2013-04-03 Marek Polacek <polacek@redhat.com>
7985 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
7987 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7990 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
7992 (thumb1_output_casesi): Likewise.
7993 (thumb2_output_casesi): Likewise.
7995 2013-04-03 Richard Biener <rguenther@suse.de>
7997 PR tree-optimization/56817
7998 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
8000 (tree_unroll_loops_completely_1): ... new function to manually
8001 walk the loop tree, properly defering outer loops of unrolled
8002 loops to later iterations.
8004 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
8006 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
8007 (vectorizable_load): Likewise.
8008 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
8009 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
8011 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
8013 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
8016 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8018 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
8020 2013-04-03 Bin Cheng <bin.cheng@arm.com>
8022 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
8024 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
8026 PR tree-optimization/56790
8027 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
8030 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
8032 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
8034 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
8035 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
8038 2013-04-03 Jakub Jelinek <jakub@redhat.com>
8041 * tree.h (force_folding_builtin_constant_p): New decl.
8042 * builtins.c (force_folding_builtin_constant_p): New variable.
8043 (fold_builtin_constant_p): Fold immediately also if
8044 force_folding_builtin_constant_p.
8046 2013-04-03 Richard Biener <rguenther@suse.de>
8048 PR tree-optimization/56812
8049 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
8050 DRs of the same interleaving chain are independent.
8052 2013-04-02 Jason Merrill <jason@redhat.com>
8054 * gdbinit.in (pbb): Use debug fn.
8056 2013-04-02 Lawrence Crowl <crowl@google.com>
8058 * sese.h (struct ivtype_map_elt_s): Remove unused.
8059 (extern debug_ivtype_map): Remove unused.
8060 (extern eq_ivtype_map_elts): Remove unused.
8061 * sese.c (debug_ivtype_map): Removed unused.
8062 (debug_ivtype_map_1): Removed unused.
8063 (debug_ivtype_elt): Remove unused.
8064 (eq_ivtype_map_elts): Remove unused.
8067 2013-04-02 Kai Tietz <ktietz@redhat.com>
8070 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
8071 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
8072 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
8074 (legitimize_pe_coff_symbol): Likewise.
8075 (is_imported_p): New helper-function.
8076 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
8077 for Windows x64 targets.
8078 (ix86_expand_prologue): Optimize for pe-coff targets.
8079 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
8080 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
8081 medium/large code-model.
8082 (legitimize_pic_address): Likewise.
8083 (legitimize_tls_address): Likewise.
8084 (ix86_expand_call): Likewise.
8085 (x86_output_mi_thunk): Likewise.
8086 (get_dllimport_decl): Add new beimport argument.
8087 (construct_plt_address): Don't assert for x64 pe-coff targets.
8088 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
8090 (SYMBOL_FLAG_STUBVAR): New macro.
8091 (SYMBOL_REF_STUBVAR_P): Likewise.
8092 * config/i386/winnt.c (stub_list): New structure.
8093 (stub_head): New local variable.
8094 (i386_pe_record_stub): New function.
8095 (i386_pe_file_end): Emit refptr-stubs.
8097 2013-04-02 Jakub Jelinek <jakub@redhat.com>
8099 PR rtl-optimization/56745
8100 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
8101 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
8104 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
8105 and both of them are MEM_REFs, just compare first argument for
8106 equality and attempt to deal even with differing offsets.
8109 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
8110 of gimple_clobber_p to be MEM_REF.
8111 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
8112 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
8113 after gimplification.
8114 * asan.c (get_mem_ref_of_assignment): Don't instrument
8115 gimple_clobber_p stmts.
8116 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
8117 gimple_clobber_p stmt if they have MEM_REF lhs and
8118 are dead because of another gimple_clobber_p stmt.
8119 * tree-ssa-live.c (clear_unused_block_pointer): Treat
8120 gimple_clobber_p stmts like debug stmts.
8121 (remove_unused_locals): Remove clobbers with MEM_REF lhs
8122 that refer to unused VAR_DECLs or uninitialized values.
8123 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
8124 gimple_clobber_p stmts if they refer to removed parameters.
8125 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
8128 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
8130 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
8131 using SWI48 mode attribute.
8133 2013-04-02 Wei Mi <wmi@google.com>
8135 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
8136 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
8137 *<rotate_insn><mode>3_mask in i386.md.
8139 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
8141 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
8143 2013-04-02 Richard Biener <rguenther@suse.de>
8145 PR tree-optimization/56778
8146 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
8147 Runtime alias tests are not supported for gather loads.
8148 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
8149 stmts referenced from SSA operands before updating SSA form.
8151 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
8152 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8154 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
8155 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
8156 * config/arm/cortex-a53.md: New file.
8157 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
8158 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
8159 * config/arm/arm.c (arm_issue_rate): Likewise.
8160 * config/arm/arm-tune.md: Regenerate
8161 * config/arm/arm-tables.opt: Regenerate.
8162 * config/arm/arm-cores.def: Add cortex-a53.
8164 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
8166 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
8169 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
8171 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
8172 scalar load/store operations using B/H registers.
8173 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
8175 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
8177 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
8179 * config/aarch64/aarch64.c
8180 (aarch64_simd_scalar_immediate_valid_for_move): New.
8181 * config/aarch64/aarch64-protos.h
8182 (aarch64_simd_scalar_immediate_valid_for_move): New.
8183 * config/aarch64/constraints.md (Dh, Dq): New.
8184 * config/aarch64/iterators.md (hq): New.
8186 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
8188 * reorg.c (get_branch_condition): Deal with conditional returns.
8189 (fill_simple_delay_slots): Remove dead code dealing with jumps.
8191 2013-04-01 Wei Mi <wmi@google.com>
8193 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
8194 Truncate operand 2 using %b asm operand modifier.
8195 (*<shift_insn><mode>3_mask): Ditto.
8196 (*<rotate_insn><mode>3_mask): Ditto.
8198 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
8201 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
8203 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
8205 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
8207 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
8209 2013-03-30 Lawrence Crowl <crowl@google.com>
8211 * dse.c (clear_alias_sets): Remove never set.
8212 (disqualified_clear_alias_sets): Remove never set.
8213 (clear_alias_mode_pool): Remove never set.
8214 (dse_step0): Remove condition that is never true.
8215 (canon_address): Remove condition that is never true.
8216 (dse_step7): Remove condition that is never true.
8217 (rest_of_handle_dse): Remove condition that is never true.
8218 (rest_of_handle_dse::did_global): Remove never read from above.
8219 (dse_step2_spill): Remove never called from above.
8220 (dse_step5_spill): Remove never called from above.
8222 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
8224 * doc/md.texi (Standard Names) <casesi>: Update documentation for
8225 JUMP_TABLE_DATA changes.
8226 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
8227 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
8228 (Insns) <jump_table_data>: New entry.
8229 * doc/tm.texi: Regenerate.
8231 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
8233 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
8234 for table jump at the end of a basic block using tablejump_p.
8235 * targhooks.c (default_invalid_within_doloop): Likewise.
8236 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
8237 target hook implementation that is identical to the default hook.
8238 (rs6000_invalid_within_doloop): Remove.
8240 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
8241 unused variable from tablejump_p call.
8243 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
8244 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
8245 (INSN_DELETED_P): Likewise.
8246 (emit_jump_table_data): New prototype.
8247 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
8248 after 4th as unused.
8249 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
8250 * sched-vis.c (print_insn): Likewise.
8251 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
8252 insn for compatibility with back ends that use next_active_insn to
8253 identify jump table data.
8254 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
8255 (remove_insn): Likewise.
8256 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
8258 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
8259 (emit_jump_table_data): New function.
8261 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
8262 basic block, a JUMP_TABLE_DATA never is.
8263 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
8264 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
8265 off from code handling real insns.
8266 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
8267 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
8268 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
8269 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
8270 is not a NONDEBUG_INSN_P.
8271 * ira-costs.c (scan_one_insn): Likewise.
8272 * jump.c (mark_all_labels): Likewise.
8273 (mark_jump_label_1): Likewise.
8274 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
8275 * lra.c (get_insn_freq): Expect all insns reaching here to be in
8277 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
8278 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
8279 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
8280 JUMP_TABLE_DATA_P insns.
8281 (calculate_elim_costs_all_insns): Likewise.
8282 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
8283 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
8284 (delete_output_reload): Code style fixups.
8285 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
8286 insn flags on this non-insn.
8287 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
8288 as scheduling barriers, for pre-change compatibility.
8289 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
8290 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
8292 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
8293 redundant JUMP_TABLE_DATA_P test.
8294 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
8295 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
8296 (frv_for_each_packet): Likewise.
8297 * config/i386/i386.c (min_insn_size): Likewise.
8298 (ix86_avoid_jump_mispredicts): Likewise.
8299 * config/m32r/m32r.c (m32r_is_insn): Likewise.
8300 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
8301 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
8302 (mips16_insn_length): Robustify.
8303 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
8304 (mips16_split_long_branches): Likewise.
8305 * config/pa/pa.c (pa_combine_instructions): Likewise.
8306 * config/rs6000/rs6000.c (get_next_active_insn): Treat
8307 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
8308 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
8309 as contributing to pool range lengths.
8310 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
8311 Remove redundant JUMP_TABLE_DATA_P test.
8312 (sh_loop_align): Likewise.
8313 (split_branches): Likewise.
8314 (sh_insn_length_adjustment): Likewise.
8315 * config/spu/spu.c (get_branch_target): Likewise.
8317 2013-03-29 Jan Hubicka <jh@suse.cz>
8319 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
8320 gcov streaming; stream hot bb threshold to ltrans.
8321 * predict.c (get_hot_bb_threshold): Break out from ....
8322 (maybe_hot_count_p): ... here.
8323 (set_hot_bb_threshold): New function.
8324 * lto-section-in.c (lto_section_name): Add profile.
8325 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
8326 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
8328 (histogram_entry): New structure.
8329 (histogram, histogram_pool): New global vars.
8330 (histogram_hash): New structure.
8331 (histogram_hash::hash): New method.
8332 (histogram_hash::equal): Likewise.
8333 (account_time_size): New function.
8334 (cmp_counts): New function.
8335 (dump_histogram): New function.
8336 (ipa_profile_generate_summary): New function.
8337 (ipa_profile_write_summary): New function.
8338 (ipa_profile_read_summary): New function.
8339 (ipa_profile): Decide on threshold.
8340 (pass_ipa_profile): Add ipa_profile_write_summary and
8341 ipa_profile_read_summary.
8342 * Makefile.in (ipa.o): Update dependencies.
8343 * lto-streamer.h (LTO_section_ipa_profile): New section.
8345 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
8347 * tree.h (VAR_P): New.
8349 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
8352 * doc/invoke.texi ([-fwhole-program]): Fix typo.
8354 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
8356 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
8357 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
8358 (control_flow_insn_p): Likewise.
8359 * cfgrtl.c (duplicate_insn_chain): Likewise.
8360 * final.c (get_attr_length_1): Likewise.
8361 (shorten_branches): Likewise.
8362 (final_scan_insn): Likewise.
8363 * function.c (instantiate_virtual_regs): Likewise.
8364 * gcse.c (insert_insn_end_basic_block): Likewise.
8365 * ira-costs.c (scan_one_insn): Likewise.
8366 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
8367 * lra.c (check_rtl): Likewise.
8368 * reload1.c (elimination_costs_in_insn): Likewise.
8369 * reorg.c (follow_jumps): Likewise.
8371 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
8372 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
8373 (thumb_far_jump_used_p): Likewise.
8374 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
8375 (workaround_speculation): Likewise.
8376 (add_sched_insns_for_speculation): Likewise.
8377 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
8378 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
8379 (frv_for_each_packet): Likewise.
8380 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
8381 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
8382 (final_emit_insn_group_barriers): Likewise.
8383 * config/m32r/m32r.c (m32r_is_insn): Likewise.
8384 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
8385 (mips16_insn_length): Likewise.
8386 * config/pa/pa.c (pa_reorg): Likewise.
8387 (pa_combine_instructions): Likewise.
8388 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
8389 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
8390 (sh_reorg): Likewise.
8391 (split_branches): Likewise.
8392 * config/spu/spu.c (get_branch_target): Likewise.
8394 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
8397 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
8399 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
8400 Fix declaration name.
8402 2013-03-28 Lawrence Crowl <crowl@google.com>
8404 * graphds.h (struct graph.indicies): Remove unused.
8405 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
8406 (SCOP_ORIGINAL_PDDRS): Remove unused.
8407 * sese.h (extern insert_loop_close_phis): Removed unused.
8408 (extern insert_guard_phis): Removed unused.
8409 (extern ivtype_map_elt_info): Removed unused.
8410 (new_ivtype_map_elt): Removed unused.
8411 * sese.c (ivtype_map_elt_info): Removed unused.
8413 2013-03-28 Lawrence Crowl <crowl@google.com>
8415 * Makefile.in: Add several missing include dependences.
8417 (test-dump.o): New. This object is not added to any executable,
8418 but is present for ad-hoc testing.
8420 (debug (const bitmap_head_def &)): New.
8421 (debug (const bitmap_head_def *)): New.
8423 (extern debug (const bitmap_head_def &)): New.
8424 (extern debug (const bitmap_head_def *)): New.
8426 (debug (edge_def &)): New.
8427 (debug (edge_def *)): New.
8429 (debug (basic_block_def &)): New.
8430 (debug (basic_block_def *)): New.
8432 (dump_node (const_tree, int, FILE *)): Correct source file.
8434 (debug (die_struct &)): New.
8435 (debug (die_struct *)): New.
8437 (extern debug (die_struct &)): New.
8438 (extern debug (die_struct *)): New.
8439 * gimple-pretty-print.c
8440 (debug (gimple_statement_d &)): New.
8441 (debug (gimple_statement_d *)): New.
8442 * gimple-pretty-print.h
8443 (extern debug (gimple_statement_d &)): New.
8444 (extern debug (gimple_statement_d *)): New.
8446 (debug (ira_allocno_copy &)): New.
8447 (debug (ira_allocno_copy *)): New.
8448 (debug (ira_allocno &)): New.
8449 (debug (ira_allocno *)): New.
8451 (extern debug (ira_allocno_copy &)): New.
8452 (extern debug (ira_allocno_copy *)): New.
8453 (extern debug (ira_allocno &)): New.
8454 (extern debug (ira_allocno *)): New.
8456 (debug (live_range &)): New.
8457 (debug (live_range *)): New.
8459 (debug (lra_live_range &)): New.
8460 (debug (lra_live_range *)): New.
8462 (debug (lra_live_range &)): New.
8463 (debug (lra_live_range *)): New.
8465 (debug (omega_pb_d &)): New.
8466 (debug (omega_pb_d *)): New.
8468 (extern debug (omega_pb_d &)): New.
8469 (extern debug (omega_pb_d *)): New.
8471 (debug (const rtx_def &)): New.
8472 (debug (const rtx_def *)): New.
8474 (debug_tree (tree): Move within file.
8475 (debug_raw (const tree_node &)): New.
8476 (debug_raw (const tree_node *)): New.
8477 (dump_tree_via_hooks (const tree_node *, int)): New.
8478 (debug (const tree_node &)): New.
8479 (debug (const tree_node *)): New.
8480 (debug_verbose (const tree_node &)): New.
8481 (debug_verbose (const tree_node *)): New.
8482 (debug_head (const tree_node &)): New.
8483 (debug_head (const tree_node *)): New.
8484 (debug_body (const tree_node &)): New.
8485 (debug_body (const tree_node *)): New.
8486 (debug_vec_tree (tree): Move and reimplement in terms of dump.
8487 (debug (vec<tree, va_gc> &)): New.
8488 (debug (vec<tree, va_gc> *)): New.
8490 (extern debug (const rtx_def &)): New.
8491 (extern debug (const rtx_def *)): New.
8493 (debug_raw (simple_bitmap_def &)): New.
8494 (debug_raw (simple_bitmap_def *)): New.
8495 (debug (simple_bitmap_def &)): New.
8496 (debug (simple_bitmap_def *)): New.
8498 (extern debug (simple_bitmap_def &)): New.
8499 (extern debug (simple_bitmap_def *)): New.
8500 (extern debug_raw (simple_bitmap_def &)): New.
8501 (extern debug_raw (simple_bitmap_def *)): New.
8503 (debug (vinsn_def &)): New.
8504 (debug (vinsn_def *)): New.
8505 (debug_verbose (vinsn_def &)): New.
8506 (debug_verbose (vinsn_def *)): New.
8507 (debug (expr_def &)): New.
8508 (debug (expr_def *)): New.
8509 (debug_verbose (expr_def &)): New.
8510 (debug_verbose (expr_def *)): New.
8511 (debug (vec<rtx> &)): New.
8512 (debug (vec<rtx> *)): New.
8514 (extern debug (vinsn_def &)): New.
8515 (extern debug (vinsn_def *)): New.
8516 (extern debug_verbose (vinsn_def &)): New.
8517 (extern debug_verbose (vinsn_def *)): New.
8518 (extern debug (expr_def &)): New.
8519 (extern debug (expr_def *)): New.
8520 (extern debug_verbose (expr_def &)): New.
8521 (extern debug_verbose (expr_def *)): New.
8522 (extern debug (vec<rtx> &)): New.
8523 (extern debug (vec<rtx> *)): New.
8525 (_list_iter_cond_expr): Make inline instead of static.
8527 (debug (sreal &)): New.
8528 (debug (sreal *)): New.
8530 (extern debug (sreal &)): New.
8531 (extern debug (sreal *)): New.
8533 (extern debug_raw (const tree_node &)): New.
8534 (extern debug_raw (const tree_node *)): New.
8535 (extern debug (const tree_node &)): New.
8536 (extern debug (const tree_node *)): New.
8537 (extern debug_verbose (const tree_node &)): New.
8538 (extern debug_verbose (const tree_node *)): New.
8539 (extern debug_head (const tree_node &)): New.
8540 (extern debug_head (const tree_node *)): New.
8541 (extern debug_body (const tree_node &)): New.
8542 (extern debug_body (const tree_node *)): New.
8543 (extern debug (vec<tree, va_gc> &)): New.
8544 (extern debug (vec<tree, va_gc> *)): New.
8546 (debug (struct loop &)): New.
8547 (debug (struct loop *)): New.
8548 (debug_verbose (struct loop &)): New.
8549 (debug_verbose (struct loop *)): New.
8550 * tree-dump.c: Add header dependence.
8552 (extern debug (struct loop &)): New.
8553 (extern debug (struct loop *)): New.
8554 (extern debug_verbose (struct loop &)): New.
8555 (extern debug_verbose (struct loop *)): New.
8557 (debug (data_reference &)): New.
8558 (debug (data_reference *)): New.
8559 (debug (vec<data_reference_p> &)): New.
8560 (debug (vec<data_reference_p> *)): New.
8561 (debug (vec<ddr_p> &)): New.
8562 (debug (vec<ddr_p> *)): New.
8564 (extern debug (data_reference &)): New.
8565 (extern debug (data_reference *)): New.
8566 (extern debug (vec<data_reference_p> &)): New.
8567 (extern debug (vec<data_reference_p> *)): New.
8568 (extern debug (vec<ddr_p> &)): New.
8569 (extern debug (vec<ddr_p> *)): New.
8571 (debug (pt_solution &)): New.
8572 (debug (pt_solution *)): New.
8574 (extern debug (pt_solution &)): New.
8575 (extern debug (pt_solution *)): New.
8577 (debug (_var_map &)): New.
8578 (debug (_var_map *)): New.
8579 (debug (tree_live_info_d &)): New.
8580 (debug (tree_live_info_d *)): New.
8582 (extern debug (_var_map &)): New.
8583 (extern debug (_var_map *)): New.
8584 (extern debug (tree_live_info_d &)): New.
8585 (extern debug (tree_live_info_d *)): New.
8587 2013-03-28 Jan Hubicka <jh@suse.cz>
8589 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
8591 2013-03-28 Ian Bolton <ian.bolton@arm.com>
8593 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
8594 record only when desired or required.
8596 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
8598 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
8599 *vec_extractv2di_1_rex64. Use x64 isa attribute.
8601 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8603 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
8604 (*andsi3_compare0_uxtw): New pattern.
8605 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
8606 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
8608 2013-03-28 Jan Hubicka <jh@suse.cz>
8610 * data-streamer-in.c (streamer_read_gcov_count): New function.
8611 * gimple-streamer-out.c: Include value-prof.h.
8612 (output_gimple_stmt): Output histogram.
8613 (output_bb): Use streamer_write_gcov_count.
8614 * value-prof.c: Include data-streamer.h
8615 (dump_histogram_value): Add HIST_TYPE_MAX.
8616 (stream_out_histogram_value): New function.
8617 (stream_in_histogram_value): New function.
8618 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
8619 (stream_out_histogram_value, stream_in_histogram_value): Declare.
8620 * data-streamer-out.c (streamer_write_gcov_count): New function.
8621 (streamer_write_gcov_count_stream): New function.
8622 * lto-cgraph.c (lto_output_edge): Update counter streaming.
8623 (lto_output_node): Likewise.
8624 (input_node, input_edge): Likewise.
8625 * lto-streamer-out.c (output_cfg): Update streaming.
8626 * lto-streamer-in.c (input_cfg): Likewise.
8627 * data-streamer.h (streamer_write_gcov_count,
8628 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
8629 * gimple-streamer-in.c: Include value-prof.h
8630 (input_gimple_stmt): Input histograms.
8631 (input_bb): Update profile streaming.
8633 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8635 * genmodes.c (emit_max_int): New function.
8636 (emit_insn_modes_h): Added call to emit_max_function.
8637 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
8639 * machmode.def: Fixed comment.
8641 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8643 * combine.c (try_combine): Removed useless assert.
8644 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
8646 2013-03-28 Marek Polacek <polacek@redhat.com>
8647 Richard Biener <rguenther@suse.de>
8649 PR tree-optimization/56695
8650 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
8651 build signed result of a vector comparison.
8652 * tree-cfg.c (verify_gimple_comparison): Check that a result
8653 of a vector comparison has signed type.
8655 2013-03-28 Richard Biener <rguenther@suse.de>
8657 PR tree-optimization/37021
8658 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
8659 do not restrict gaps between groups.
8660 * tree-vect-stmts.c (vectorizable_load): Properly account for
8661 a gap between groups.
8663 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
8665 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
8666 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
8669 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
8671 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
8672 * doc/extend.texi (Named Address Spaces): Ditto.
8673 (Variable Attributes): Ditto.
8675 2013-03-27 Kai Tietz <ktietz@redhat.com>
8677 * config.build: Add support for cygwin x64 target.
8678 * config.gcc: Likewise.
8679 * config.host: Likewise.
8680 * configure.ac: Likewise
8681 * configure: Regenerated.
8683 2013-03-27 Kai Tietz <ktietz@redhat.com>
8685 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
8686 * config/i386/t-cygwin-w64: New file.
8687 * config/i386/cygwin-w64.h: New file.
8688 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
8689 and add support for x64-cygwin target.
8690 (CPP_SPEC): Likewise.
8691 (CXX_WRAP_SPEC_LIST): Undefine before define.
8692 (LIBGCJ_SONAME): Use 15 as version.
8694 2013-03-27 Richard Biener <rguenther@suse.de>
8696 PR tree-optimization/56716
8697 * tree-ssa-structalias.c (perform_var_substitution): Adjust
8698 dumping for ref nodes.
8700 2013-03-27 Martin Jambor <mjambor@suse.cz>
8702 PR tree-optimization/55334
8703 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
8704 restricted pointers to arrays.
8706 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
8708 * Makefile.in (.SUFFIXES): Add .cc.
8709 (.c.o): Apply same recipe for implicit rule .cc.o.
8711 2013-03-27 Richard Biener <rguenther@suse.de>
8713 PR tree-optimization/37021
8714 * tree-vect-data-refs.c (vect_check_strided_load): Allow
8715 REALPART/IMAGPART_EXPRs around the supported refs.
8716 * tree-ssa-structalias.c (find_func_aliases): Assume that
8717 floating-point values are not used to transfer pointers.
8719 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
8721 * target.def (TARGET_HAS_IFUNC_P): New target hook.
8722 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
8723 * doc/tm.texi: Regenerate.
8724 * targhooks.h (default_has_ifunc_p): New.
8725 * targhooks.c (default_has_ifunc_p): Ditto.
8726 * config/linux-protos.h: New file.
8727 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
8728 this hook for linux which disables support of indirect functions in
8730 * config/linux-android.c: New file.
8731 * config/t-linux-android.c: Ditto.
8732 * config.gcc: Added new object file linux-android.o.
8733 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
8734 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
8735 * varasm.c (do_assemble_alias): Likewise.
8736 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
8737 doesn't support indirect functions.
8738 * configure: Regenerate.
8740 2013-03-27 Bin Cheng <bin.cheng@arm.com>
8743 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
8744 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
8747 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8749 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
8751 2013-03-27 Terry Guo <terry.guo@arm.com>
8753 * config/arm/arm-cores.def: Added core cortex-r7.
8754 * config/arm/arm-tune.md: Regenerated.
8755 * config/arm/arm-tables.opt: Regenerated.
8756 * doc/invoke.texi: Added entry for core cortex-r7.
8758 2013-03-27 Walter Lee <walt@tilera.com>
8760 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
8761 double-decrement of next_scratch_regno.
8763 2013-03-27 Walter Lee <walt@tilera.com>
8765 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
8767 (insn_v1mulus): Ditto.
8768 (insn_v2muls): Ditto.
8770 2013-03-27 Walter Lee <walt@tilera.com>
8772 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
8773 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
8775 2013-03-27 Walter Lee <walt@tilera.com>
8777 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
8778 (*sibcall_value): Ditto.
8780 2013-03-27 Walter Lee <walt@tilera.com>
8782 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
8783 (insn_mnz_v8qi): ... this ...
8784 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
8786 (insn_v<n>mnz): Replaced by ...
8787 (insn_v1mnz): ... this ...
8788 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
8790 (insn_mz_<mode>): Replaced by ...
8791 (insn_mz_v8qi): ... this ...
8792 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
8794 (insn_v<n>mz): Replaced by ...
8795 (insn_v1mz): ... this ...
8796 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
8799 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
8801 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
8803 2013-03-26 Roland McGrath <mcgrathr@google.com>
8805 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
8806 than fprintf with a non-constant, non-format string.
8808 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
8810 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
8811 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
8812 operand 0 predicate.
8813 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
8814 attribute. Use general_x64nomem_operand as operand 1 predicate.
8815 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
8816 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
8817 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
8818 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
8819 (mov<mode>_insv_1): Remove expander. Merge insn with
8820 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
8821 Use general_x64nomem_operand as operand 1 predicate.
8822 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
8823 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
8824 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
8825 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
8826 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
8827 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
8828 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
8829 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
8830 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
8831 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
8832 (general_x64nomem_operand): Ditto.
8834 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
8836 * config/rtems.opt: Add -pthread option.
8838 2013-03-26 Richard Biener <rguenther@suse.de>
8840 * alias.c (find_base_term): Avoid redundant and not used recursion.
8841 (base_alias_check): Get the initial base term from the caller.
8842 (true_dependence_1): Compute and pass base terms to base_alias_check.
8843 (write_dependence_p): Likewise.
8844 (may_alias_p): Likewise.
8846 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
8848 * config/aarch64/aarch64.c (aarch64_classify_address): Support
8849 PC-relative load in SI modes and above only.
8851 2013-03-26 Xinyu Qi <xyqi@marvell.com>
8853 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
8854 * config/arm/iwmmxt.md (WCGR0): Update.
8855 (WCGR1, WCGR2, WCGR3): Likewise.
8857 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
8859 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
8860 Use x64 and nox64 isa attributes.
8862 2013-03-26 Richard Biener <rguenther@suse.de>
8864 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
8865 alignment computations and rely on get_object_alignment_1
8866 for the !TYPE_P case.
8867 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
8869 2013-03-26 Walter Lee <walt@tilera.com>
8871 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
8872 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
8874 2013-03-25 Jeff Law <law@redhat.com>
8876 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
8877 check for INTEGRAL_TYPE_P that was missing due to checking in
8878 wrong version of prior patch.
8880 2013-03-25 Walter Lee <walt@tilera.com>
8882 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
8883 TILEGX_INSN_SHUFFLEBYTES1.
8884 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
8886 (tilegx_builtins): Ditto.
8887 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
8889 2013-03-25 Walter Lee <walt@tilera.com>
8891 * config/tilegx/tilegx.md (floatsisf2): New pattern.
8892 (floatunssisf2): New pattern.
8893 (floatsidf2): New pattern.
8894 (floatunssidf2): New pattern.
8896 2013-03-25 Walter Lee <walt@tilera.com>
8898 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
8899 tests for constraint J, K, N, P.
8901 2013-03-25 Walter Lee <walt@tilera.com>
8903 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
8904 Use indirect/pcrel encoding.
8905 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
8908 2013-03-25 Steve Ellcey <sellcey@mips.com>
8910 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
8911 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
8912 * config/mips/mips.c (mips_option_override): Set IMADD default.
8913 * config/mips/mips.h (PTF_AVOID_IMADD): New.
8914 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
8915 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
8916 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
8917 * doc/invoke.texi (-mimadd/-mno-imadd): New.
8919 2013-03-25 Jeff Law <law@redhat.com>
8921 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
8922 slightly to avoid creating and folding useless trees. Simplify
8923 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
8925 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
8927 * config/i386/i386.md (*zero_extendsidi2): Merge with
8928 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
8929 * config/i386/predicates.md (x86_64_zext_operand): Rename from
8930 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
8931 targets. Clarify comment.
8933 2013-03-25 Martin Jambor <mjambor@suse.cz>
8935 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
8936 pass-through jump functions differently.
8937 (ipa_read_jump_function): Likewise. Also use setter functions to set
8940 2013-03-25 Martin Jambor <mjambor@suse.cz>
8942 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
8943 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
8945 (ipa_get_indirect_edge_target): New function.
8946 (devirtualization_time_bonus): New parameter known_aggs, pass it to
8947 ipa_get_indirect_edge_target. Update all callers.
8948 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
8949 ipa_get_indirect_edge_target_1 instead of calling
8950 ipa_get_indirect_edge_target.
8951 (create_specialized_node): Pass aggvlas to
8952 ipcp_discover_new_direct_edges.
8954 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8956 * config/arm/arm.md (f_sels, f_seld): New types.
8957 (*cmov<mode>): New pattern.
8958 * config/arm/predicates.md (arm_vsel_comparison_operator): New
8961 2013-03-25 Kai Tietz <ktietz@redhat.com>
8963 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
8964 POSIX-printf for mingw-hosted builds.
8966 2013-03-25 Richard Biener <rguenther@suse.de>
8969 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
8970 must-not-throw stmt location.
8972 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8974 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
8975 Emit load-acquire versions when acq is true.
8976 (arm_emit_store_exclusive): Add rel parameter.
8977 Emit store-release versions when rel is true.
8978 (arm_split_compare_and_swap): Use acquire-release instructions
8980 of barriers when appropriate.
8981 (arm_split_atomic_op): Likewise.
8982 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
8983 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
8984 (VUNSPEC_SLX): Likewise.
8985 (VUNSPEC_LDA): Likewise.
8986 (VUNSPEC_STL): Likewise.
8987 * config/arm/sync.md (atomic_load<mode>): New pattern.
8988 (atomic_store<mode>): Likewise.
8989 (arm_load_acquire_exclusive<mode>): Likewise.
8990 (arm_load_acquire_exclusivesi): Likewise.
8991 (arm_load_acquire_exclusivedi): Likewise.
8992 (arm_store_release_exclusive<mode>): Likewise.
8994 2013-03-25 Catherine Moore <clm@codesourcery.com>
8996 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
8997 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
8998 * config/mip/predicates.md (lwsp_swsp_operand,
8999 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
9000 sb16_operand, db4_operand, db7_operand, ib3_operand,
9001 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
9002 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
9003 andi16_operand): New predicates.
9004 * config/mips/mips.md (compression): New attribute.
9005 (enabled): New attribute.
9006 (length): Consider compression in computing length.
9007 (shift_compression): New code attribute.
9008 (*add<mode>3): New operands. Record compression.
9009 (sub<mode>3): Likewise.
9010 (one_cmpl<mode>2): Likewise.
9011 (*and<mode>3): Likewise.
9012 (*ior<mode>3): Likewise.
9013 (unnamed pattern for xor): Likewise.
9014 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
9015 (*<optab><mode>3): Likewise.
9016 (*mov<mode>_internal: Likewise.
9017 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
9018 (mips_unsigned_immediate_p): New.
9019 (umips_lwsp_swsp_address_p): New.
9020 (m16_based_address_p): New.
9021 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
9022 (mips_unsigned_immediate_p): New prototype.
9023 (lwsp_swsp_address_p): New prototype.
9024 (m16_based_address_p): New prototype.
9025 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
9026 (mips_signed_immediate_p): New function.
9027 (m16_based_address_p): New function.
9028 (lwsp_swsp_address_p): New function.
9029 (mips_print_operand_punctuation): Recognize short delay slot insns
9030 for microMIPS.add<mode>3"
9032 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9035 * config/arm/iterators.md (v_cmp_result): New mode attribute.
9036 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
9038 2013-03-25 Richard Biener <rguenther@suse.de>
9040 PR tree-optimization/56689
9041 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
9044 2013-03-25 Richard Biener <rguenther@suse.de>
9046 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
9048 (memory_references): Likewise.
9049 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
9050 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
9051 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
9052 (gather_mem_refs_in_loops): Fold into ...
9053 (analyze_memory_references): ... this. Move initialization
9054 to tree_ssa_lim_initialize.
9055 (fill_always_executed_in): Rename to ...
9056 (fill_always_executed_in_1): ... this.
9057 (fill_always_executed_in): Move contains_call computation to
9058 this new function from ...
9059 (tree_ssa_lim_initialize): ... here.
9060 (tree_ssa_lim): Call fill_always_executed_in.
9062 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
9064 * postreload.c (reload_combine): Fix code detecting returns.
9066 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
9068 * function.c (emit_use_return_register_into_block): On cc0 targets,
9069 do not emit the sequence between cc0 setter and user.
9071 2013-03-25 Kai Tietz <ktietz@redhat.com>
9073 * config/i386/predicates.md (local_symbolic_operand): Interpret
9074 dll-imported symbols as none-local.
9076 2013-03-25 Richard Biener <rguenther@suse.de>
9078 * tree-ssa-loop-im.c (struct depend): Remove.
9079 (struct lim_aux_data): Make depends a vec of gimples.
9080 (free_lim_aux_data): Adjust.
9081 (add_dependency): Likewise.
9082 (set_level): Likewise.
9084 2013-03-25 Richard Biener <rguenther@suse.de>
9087 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
9088 the pointer returned by calls with ECF_MALLOC set.
9090 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
9092 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
9094 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
9096 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
9097 using MMXMODE mode iterator.
9098 (*move<mode>_internal): Merge with *movv2sf_internal and
9099 *movv2sf_internal_rex64 using MMXMODE mode iterator.
9101 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
9103 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
9104 (record_last_mem_set_info): Likewise.
9106 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
9107 of XNEWVEC followed by memset.
9108 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
9110 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
9112 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
9113 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
9114 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
9115 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
9116 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
9117 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
9118 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
9119 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
9120 BARRIER_P instead of GET_CODE.
9122 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
9124 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
9125 inaccuracy in the probing code.
9127 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
9128 (ctrapdi4): Likewise.
9130 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
9132 * calls.c (expand_call): Add missing guard to code handling return
9133 of non-BLKmode structures in MSB.
9134 * function.c (expand_function_end): Likewise.
9136 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
9138 * combine.c (try_combine): Adjust comment. Do not add the set of
9139 insn #0 if the destination indirectly is set or dies in insn #2.
9140 Tidy up code to distribute a new note.
9142 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
9144 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
9145 also for alternatives 16 and 17.
9147 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
9149 * config/i386/sse.md (*mov<mode>_internal): Merge with
9150 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
9151 Emit insn template depending on type attribute. Use
9152 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
9153 movd instead of movq mnemonic for interunit moves. Rewrite mode
9154 attribute calculation. Remove unit attribute calculation.
9155 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
9156 Set prefix_data16 attribute for DImode ssemov types.
9157 Use Ym instead of y for SSE-MMX conversion alternatives.
9158 Reorder operand constraints.
9160 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
9162 * df.h (df_insn_delete): Adjust prototype.
9163 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
9164 and let it decide whether mark the basic block dirty.
9165 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
9166 * df-scan.c (df_insn_info_delete): New helper function, split
9167 off from df_insn_delete.
9168 (df_scan_free_bb_info): Use it.
9169 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
9171 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
9172 that the insn is actually an insn and it has a non-NULL basic block.
9173 Do not mark basic block dirty if only deleting a DEBUG_INSN.
9175 2013-03-22 Richard Biener <rguenther@suse.de>
9177 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
9179 (mem_ref_alloc): Do not allocate them.
9180 (refs_independent_p): Do not query or maintain a cache.
9182 2013-03-22 Richard Biener <rguenther@suse.de>
9184 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
9185 (gather_mem_refs_in_loops): Do not compute it.
9186 (analyze_memory_references): Do not allocate it.
9187 (tree_ssa_lim_finalize): Do not free it.
9188 (for_all_locs_in_loop): Do not query all_refs_in_loop.
9190 2013-03-22 Richard Biener <rguenther@suse.de>
9192 * is-a.h (as_a): Use gcc_checking_assert.
9194 2013-03-22 Ian Bolton <ian.bolton@arm.com>
9196 * config/aarch64/aarch64.c (aarch64_print_operand): New
9197 format specifier for printing a constant in hex.
9198 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
9199 format specifier for printing second operand.
9201 2013-03-22 Richard Biener <rguenther@suse.de>
9203 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
9205 (gather_mem_refs_in_loops): Perform store accumulation here.
9206 (create_vop_ref_mapping_loop): Remove.
9207 (create_vop_ref_mapping): Likewise.
9208 (analyze_memory_references): Initialize refs_stored_in_loop.
9209 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
9210 (record_indep_loop): Remove.
9211 (record_dep_loop): New function.
9212 (ref_indep_loop_p_1): Adjust to only walk over references
9213 in the loop, not its subloops.
9214 (ref_indep_loop_p): Rename to ...
9215 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
9216 maintaining a more fine-grained cache.
9217 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
9218 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
9220 2013-03-22 Richard Biener <rguenther@suse.de>
9222 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
9223 (struct mem_ref): Make accesses_in_loop a vec of a vec of
9224 aggregate mem_ref_loc.
9225 (free_mem_ref_locs): Inline into ...
9226 (memref_free): ... this and adjust.
9227 (mem_ref_alloc): Adjust.
9228 (mem_ref_locs_alloc): Remove.
9229 (record_mem_ref_loc): Adjust.
9230 (get_all_locs_in_loop): Rewrite into ...
9231 (for_all_locs_in_loop): ... this iterator.
9232 (rewrite_mem_ref_loc): New functor.
9233 (rewrite_mem_refs): Use for_all_locs_in_loop.
9234 (sm_set_flag_if_changed): New functor.
9235 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
9236 (ref_always_accessed): New functor.
9237 (ref_always_accessed_p): Use for_all_locs_in_loop.
9239 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
9241 * tree-pass.h (PROP_gimple_lvec): New.
9242 * passes.c (dump_properties): Handle PROP_gimple_lvec.
9243 (init_optimization_passes): Move pass_lower_vector.
9244 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
9246 (pass_lower_vector): Provide PROP_gimple_lvec.
9247 (pass_lower_vector_ssa): Likewise.
9248 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
9250 2013-03-21 Mark Wielaard <mjw@redhat.com>
9252 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
9254 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
9256 * config/i386/i386.md (*movdi_internal): Disparage slightly
9257 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
9258 conversion alternatives.
9260 2013-03-21 Jakub Jelinek <jakub@redhat.com>
9263 * diagnostic.def (DK_WERROR): New kind.
9264 * diagnostic.h (werrorcount): Define.
9265 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
9266 promoted to DK_ERROR, increment DK_WERROR counter instead of
9268 * toplev.c (toplev_main): Call print_ignored_options even if
9269 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
9270 even if just werrorcount is non-zero.
9273 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
9275 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
9276 (string_cst_pool_decl): New function.
9277 (optimize_one_addr_into_implicit_ptr): New function.
9278 (resolve_addr_in_expr): Optimize DWARF location expression
9279 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
9280 which doesn't live in memory, but has DW_AT_location or
9281 DW_AT_const_value, or refers to a string literal, into
9282 DW_OP_GNU_implicit_pointer.
9283 (optimize_location_into_implicit_ptr): New function.
9284 (resolve_addr): If removing DW_AT_location of a variable because
9285 it was DW_OP_addr of address of the variable, but the variable doesn't
9286 live in memory, try to emit const value attribute for the initializer.
9288 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
9290 * tree.h (VECTOR_TYPE_P): New macro.
9291 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
9293 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
9294 VEC_COND_EXPR cannot be lvalues.
9295 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
9297 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
9299 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
9300 Restrict the transformation to equal modes.
9302 2013-03-21 Richard Biener <rguenther@suse.de>
9304 PR tree-optimization/39326
9305 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
9306 (MEM_ANALYZABLE): Adjust.
9307 (record_mem_ref_loc): Move bitmap ops ...
9308 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
9309 unanalyzable refs, do not record locations for it.
9310 (analyze_memory_references): Allocate ref zero as shared
9312 (refs_independent_p): Do not test for unanalyzed mems here.
9313 (ref_indep_loop_p_1): Special-case disambiguation against
9315 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
9317 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
9319 * config/arm/arm-protos.h (tune_params): Add
9320 prefer_neon_for_64bits field.
9321 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
9322 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
9323 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
9324 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
9325 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
9326 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
9327 (arm_option_override): Handle -mneon-for-64bits new option.
9328 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
9329 (prefer_neon_for_64bits): Declare new variable.
9330 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
9331 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
9332 (arch_enabled): Handle new arch types. Remove support for onlya8
9334 (one_cmpldi2): Use new arch names.
9335 (zero_extend<mode>di2, extend<mode>di2): Ditto.
9336 * config/arm/arm.opt (mneon-for-64bits): Add option.
9337 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
9338 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
9339 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
9341 * doc/invoke.texi (-mneon-for-64bits): Document.
9343 2013-03-21 Richard Biener <rguenther@suse.de>
9345 PR tree-optimization/39326
9346 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
9347 (sort_bbs_in_loop_postorder_cmp): New function.
9348 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
9350 2013-03-21 Richard Biener <rguenther@suse.de>
9352 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
9353 (vect_insert_into_interleaving_chain): Likewise.
9354 (vect_drs_dependent_in_basic_block): Inline ...
9355 (vect_slp_analyze_data_ref_dependence): ... here. New function,
9357 (vect_analyze_data_ref_dependence): ... here. Simplify.
9358 (vect_check_interleaving): Simplify.
9359 (vect_analyze_data_ref_dependences): Likewise. Split out ...
9360 (vect_slp_analyze_data_ref_dependences): ... this new function.
9361 (dr_group_sort_cmp): New function.
9362 (vect_analyze_data_ref_accesses): Compute data-reference groups
9363 here instead of in vect_analyze_data_ref_dependence. Use
9364 a more efficient algorithm.
9365 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
9366 vect_slp_analyze_data_ref_dependences. Call
9367 vect_analyze_data_ref_accesses earlier.
9368 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
9369 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
9370 (vect_slp_analyze_data_ref_dependences): New prototype.
9372 2013-03-21 Richard Biener <rguenther@suse.de>
9374 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
9375 ref is stored in the loop.
9376 (find_refs_for_sm): Walk only over all stores.
9377 (store_motion_loop): Allocate from lim_bitmap_obstack.
9378 (store_motion): Likewise.
9380 2013-03-21 Richard Biener <rguenther@suse.de>
9382 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
9383 Update virtual SSA form.
9385 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9387 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
9388 * configure: Regenerate.
9389 * config.in: Regenerate.
9390 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
9391 if !HAVE_LD_EH_FRAME_CIEV3.
9393 2013-03-21 Richard Biener <rguenther@suse.de>
9395 * tree-cfg.c (verify_expr_no_block): New function.
9396 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
9397 nor DECL_VALUE_EXPR have locations with associated blocks.
9398 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
9399 (clear_unused_block_pointer): Remove code dealing with
9400 blocks in DECL_DEBUG_EXPR locations.
9402 2013-03-21 Richard Biener <rguenther@suse.de>
9404 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
9405 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
9406 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
9407 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
9408 instead of DECL_DEBUG_EXPR_IS_FROM.
9409 * gimplify.c (gimplify_modify_expr): Likewise.
9410 * tree-cfg.c (verify_expr_location_1): Likewise.
9411 * tree-complex.c (create_one_component_var): Likewise.
9412 * tree-sra.c (create_access_replacement): Likewise.
9413 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
9414 (clear_unused_block_pointer): Likewise.
9415 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
9416 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
9417 * var-tracking.c (var_debug_decl): Likewise.
9418 (track_expr_p): Likewise.
9419 * tree-inline.c (add_local_variables): Likewise. Set
9420 DECL_HAS_DEBUG_EXPR_P after copying it.
9421 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
9422 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
9424 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
9427 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
9428 * configure: Regenerate.
9429 * config.in: Regenerate.
9430 * config/i386/i386.md (*movdf_internal): Use
9431 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
9432 movd instead of movq mnemonic for interunit moves.
9433 (*movdi_internal): Ditto.
9435 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9437 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
9438 (abd<mode>_3): New pattern.
9439 (aba<mode>_3): New pattern.
9440 (fabd<mode>_3): New pattern.
9442 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9444 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
9445 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
9446 occurrence of REGISTER_PREFIX as its empty string.
9448 2013-03-20 Jeff Law <law@redhat.com>
9450 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
9451 addititional equivalences for equality comparisons between an SSA_NAME
9452 and a constant where the SSA_NAME was set from a widening conversion.
9454 2013-03-20 Walter Lee <walt@tilera.com>
9456 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
9458 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
9460 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
9461 depending on type attribute.
9462 (*movti_internal): Ditto.
9463 (*movtf_internal): Ditto.
9464 (*movxf_internal): Ditto.
9465 (*movdf_internal): Ditto.
9466 (*movsf_internal): Ditto.
9468 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
9470 * config/i386/i386.md (*movti_internal): Set prefix attribute to
9471 maybe_vex for sselog1 and ssemov types.
9472 (*movdi_internal): Reorder operand constraints.
9473 (*movsi_internal): Ditto. Set prefix attribute to
9474 maybe_vex for sselog1 and ssemov types.
9475 (*movtf_internal): Set prefix attribute to maybe_vex
9476 for sselog1 and ssemov types.
9477 (*movdf_internal): Ditto. Set prefix_data16 attribute for
9478 DImode ssemov types. Reorder operand constraints.
9479 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
9480 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
9481 attribute for SImode ssemov types. Reorder operand constraints.
9483 2013-03-20 Martin Jambor <mjambor@suse.cz>
9485 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
9486 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
9488 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
9490 * config/rs6000/predicates.md (indexed_address, update_address_mem
9491 update_indexed_address_mem): New predicates.
9492 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
9493 attribute for load/store instructions.
9494 * config/rs6000/dfp.md (movsd_store): Likewise.
9495 (movsd_load): Likewise.
9496 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
9497 (unnamed HI->DI extend define_insn): Likewise.
9498 (unnamed SI->DI extend define_insn): Likewise.
9499 (unnamed QI->SI extend define_insn): Likewise.
9500 (unnamed QI->HI extend define_insn): Likewise.
9501 (unnamed HI->SI extend define_insn): Likewise.
9502 (unnamed HI->SI extend define_insn): Likewise.
9503 (extendsfdf2_fpr): Likewise.
9504 (movsi_internal1): Likewise.
9505 (movsi_internal1_single): Likewise.
9506 (movhi_internal): Likewise.
9507 (movqi_internal): Likewise.
9508 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
9509 attribute for load/store instructions.
9510 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
9512 (mov<mode>_softfloat): Likewise.
9513 (mov<mode>_hardfloat32): Likewise.
9514 (mov<mode>_hardfloat64): Likewise.
9515 (mov<mode>_softfloat64): Likewise.
9516 (movdi_internal32): Likewise.
9517 (movdi_internal64): Likewise.
9518 (probe_stack_<mode>): Likewise.
9520 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
9522 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
9523 floating point, and decimal floating point to reload iterator.
9525 * config/rs6000/constraints.md (wl constraint): New constraints to
9526 return FLOAT_REGS if certain options are used to reduce the number
9527 of separate patterns that exist in the file.
9528 (wx constraint): Likewise.
9529 (wz constraint): Likewise.
9531 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
9532 -mdebug=reg, print wg, wl, wx, and wz constraints.
9533 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
9534 Initialize the reload functions for 64-bit binary/decimal floating
9536 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
9537 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
9538 create the buffer on the stack to overcome not having a 32-bit
9540 (rs6000_emit_move): Likewise.
9541 (rs6000_secondary_memory_needed_rtx): Likewise.
9542 (rs6000_alloc_sdmode_stack_slot): Likewise.
9543 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
9544 via xxlxor, just like DFmode 0.0.
9546 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
9547 define as 1 if we are running on a power7 or newer.
9548 (enum r6000_reg_class_enum): Add new constraints.
9550 * config/rs6000/dfp.md (movsd): Delete, combine with binary
9551 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
9552 with other moves by using conditional constraits (wg). Use LFIWZX
9553 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
9554 (movsd splitter): Likewise.
9555 (movsd_hardfloat): Likewise.
9556 (movsd_softfloat): Likewise.
9558 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
9559 binary and decimal floating point moves.
9560 (fmove_ok): New attributes to combine binary and decimal floating
9561 point moves, and to combine power6x (mfpgpr) moves along normal
9563 (real_value_to_target): Likewise.
9570 (movsf): Combine binary and decimal floating point moves. Combine
9571 power6x (mfpgpr) moves with other moves by using conditional
9572 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
9573 (mov<mode> for SFmode/SDmode); Likewise.
9574 (SFmode/SDmode splitters): Likewise.
9575 (movsf_hardfloat): Likewise.
9576 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
9577 (movsf_softfloat): Likewise.
9578 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
9580 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
9581 wx and wz constraints.
9583 * config/rs6000/constraints.md (wg constraint): New constraint to
9584 return FLOAT_REGS if -mmfpgpr (power6x) was used.
9586 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
9589 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
9590 -mdebug=reg, print wg, wl, wx, and wz constraints.
9591 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
9592 Initialize the reload functions for 64-bit binary/decimal floating
9594 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
9595 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
9596 create the buffer on the stack to overcome not having a 32-bit
9598 (rs6000_emit_move): Likewise.
9599 (rs6000_secondary_memory_needed_rtx): Likewise.
9600 (rs6000_alloc_sdmode_stack_slot): Likewise.
9601 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
9602 via xxlxor, just like DFmode 0.0.
9604 * config/rs6000/dfp.md (movdd): Delete, combine with binary
9605 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
9606 with other moves by using conditional constraits (wg). Use LFIWZX
9607 and STFIWX for loading SDmode on power7.
9608 (movdd splitters): Likewise.
9609 (movdd_hardfloat32): Likewise.
9610 (movdd_softfloat32): Likewise.
9611 (movdd_hardfloat64_mfpgpr): Likewise.
9612 (movdd_hardfloat64): Likewise.
9613 (movdd_softfloat64): Likewise.
9615 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
9616 64-bit binary and decimal floating point moves.
9617 (FMOVE64X): Likewise.
9618 (movdf): Combine 64-bit binary and decimal floating point moves.
9619 Combine power6x (mfpgpr) moves with other moves by using
9620 conditional constraits (wg).
9621 (mov<mode> for DFmode/DDmode): Likewise.
9622 (DFmode/DDmode splitters): Likewise.
9623 (movdf_hardfloat32): Likewise.
9624 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
9625 (movdf_softfloat32): Likewise.
9626 (movdf_hardfloat64_mfpgpr): Likewise.
9627 (movdf_hardfloat64): Likewise.
9628 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
9629 (movdf_softfloat64): Likewise.
9630 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
9631 (reload_<mode>_load): Move to later in the file so they aren't in
9632 the middle of the floating point move insns.
9633 (reload_<mode>_store): Likewise.
9635 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
9638 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
9639 constraint if -mdebug=reg.
9640 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
9641 Enable using dd reload support if needed.
9643 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
9644 binary and decimal floating point moves in rs6000.md.
9645 (movtd_internal): Likewise.
9647 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
9648 decimal floating point moves.
9650 (movtf_internal): Likewise.
9651 (mov<mode>_internal, TDmode/TFmode): Likewise.
9652 (movtf_softfloat): Likewise.
9653 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
9655 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
9656 movdi_internal64, using wg constraint for move direct operations.
9657 (movdi_internal64): Likewise.
9659 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
9660 MODES_TIEABLE_P for selected modes. Print the numerical value of
9661 the various virtual registers. Use GPR/FPR first/last values,
9662 instead of hard coding the register numbers. Print which modes
9663 have reload functions registered.
9664 (rs6000_option_override_internal): If -mdebug=reg, trace the options
9665 settings before/after setting cpu, target and subtarget settings.
9666 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
9667 and for secondary reload failures in rs6000_secondary_reload_inner.
9668 (rs6000_secondary_reload_fail): Likewise.
9669 (rs6000_secondary_reload_inner): Likewise.
9671 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
9672 macros for first/last GPR and FPR registers.
9673 (LAST_GPR_REGNO): Likewise.
9674 (FIRST_FPR_REGNO): Likewise.
9675 (LAST_FPR_REGNO): Likewise.
9677 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
9678 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
9679 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
9680 (vcond<mode><mode>): Likewise.
9681 (vcondu<mode><mode>): Likewise.
9682 (vector_gtu<mode>): Likewise.
9683 (vector_gte<mode>): Likewise.
9684 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
9685 to prevent the compiler from converting DImode operations to TImode.
9686 (ior<mode>3): Likewise.
9687 (and<mode>3): Likewise.
9688 (one_cmpl<mode>2): Likewise.
9689 (nor<mode>3): Likewise.
9690 (andc<mode>3): Likewise.
9692 * config/rs6000/constraints.md (wt constraint): New constraint
9693 that returns VSX_REGS if TImode is allowed in VSX registers.
9695 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
9698 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
9699 similar to TImode, but it is restricted to being in the GPRs.
9701 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
9702 TImode to occupy a single VSX register.
9704 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
9705 -mvsx-timode for power7/power8.
9706 (power7 cpu): Likewise.
9707 (power8 cpu): Likewise.
9709 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
9710 sure that TFmode/TDmode take up two registers if they are ever
9711 allowed in the upper VSX registers.
9712 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
9714 (rs6000_init_hard_regno_mode_ok): Likewise.
9715 (rs6000_debug_reg_global): Add debugging for PTImode and wt
9716 constraint. Print if LRA is turned on.
9717 (rs6000_option_override_internal): Give an error if -mvsx-timode
9718 and VSX is not enabled.
9719 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
9720 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
9721 to reg+offset addressing. Use PTImode when checking offset
9722 addresses for validity.
9723 (reg_offset_addressing_ok_p): Likewise.
9724 (rs6000_legitimate_offset_address_p): Likewise.
9725 (rs6000_legitimize_address): Likewise.
9726 (rs6000_legitimize_reload_address): Likewise.
9727 (rs6000_legitimate_address_p): Likewise.
9728 (rs6000_eliminate_indexed_memrefs): Likewise.
9729 (rs6000_emit_move): Likewise.
9730 (rs6000_secondary_reload): Likewise.
9731 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
9732 reloads to fpr registers to continue to use reg+offset addressing,
9733 but 64-bit reloads to altivec registers need reg+reg addressing.
9734 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
9735 it. Treat LO_SUM like a PLUS operation.
9736 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
9737 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
9738 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
9739 registers to share a register with a smaller sized type, since VSX
9740 puts scalars in the upper 64-bits.
9741 (print_operand): Add support for PTImode.
9742 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
9743 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
9744 registers, but don't have arithmetic support.
9745 (rs6000_memory_move_cost): Add test for VSX.
9746 (rs6000_opt_masks): Add -mvsx-timode.
9748 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
9751 (VSr): Use wt constraint for TImode.
9752 (VSv): Drop TImode support.
9753 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
9754 (vsx_movti_64bit): Likewise.
9755 (vsx_movti_32bit): Likewise.
9756 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
9757 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
9758 one '?' on the appropriate output constraint. Do not allow TImode
9759 logical operations on 32-bit systems.
9760 (vsx_ior<mode>3): Likewise.
9761 (vsx_xor<mode>3): Likewise.
9762 (vsx_one_cmpl<mode>2): Likewise.
9763 (vsx_nor<mode>3): Likewise.
9764 (vsx_andc<mode>3): Likewise.
9765 (vsx_concat_<mode>): Likewise.
9766 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
9768 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
9769 OPTION_MASK_VSX_TIMODE.
9770 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
9771 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
9773 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
9774 (TI2 iterator): New iterator for TImode, PTImode.
9775 (wd mode attribute): Add values for vector types.
9776 (movti_string): Replace TI move operations with operations for TImode
9777 and PTImode. Add support for TImode being allowed in VSX registers.
9778 (mov<mode>_string, TImode/PTImode): Likewise.
9779 (movti_ppc64): Likewise.
9780 (mov<mode>_ppc64, TImode/PTImode): Likewise.
9781 (TI mode splitters): Likewise.
9783 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
9786 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
9788 PR tree-optimization/56355
9789 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
9790 Also handle integers with undefined overflow.
9792 2013-03-20 Catherine Moore <clm@codesourcery.com>
9793 Maciej W. Rozycki <macro@codesourcery.com>
9794 Tom de Vries <tom@codesourcery.com>
9795 Nathan Sidwell <nathan@codesourcery.com>
9796 Iain Sandoe <iain@codesourcery.com>
9797 Nathan Froyd <froydnj@codesourcery.com>
9798 Chao-ying Fu <fu@mips.com>
9800 * doc/extend.texi: (micromips, nomicromips, nocompression):
9801 Document new function attributes.
9802 * doc/invoke.texi (minterlink-compressed, mmicromips,
9803 m14k, m14ke, m14kec): Document new options.
9804 (minterlink-mips16): Update documentation.
9805 * doc/md.texi (ZC, ZD): Document new constraints.
9806 * configure.ac (gcc_cv_as_micromips): Check if linker
9807 supports the .set micromips directive.
9808 * configure: Regenerate.
9809 * config.in: Regenerate.
9810 * config/mips/mips-tables.opt: Regenerate.
9811 * config/mips/micromips.md: New file.
9812 * constraints.md (ZC, ZD): New constraints.
9813 * config/mips/predicates.md (movep_src_register): New predicate.
9814 (movep_src_operand): New predicate.
9815 (non_volatile_mem_operand): New predicate.
9816 * config/mips/mips.md (multimem): New type.
9817 (length): Differentiate between 17-bit and 18-bit branch offsets.
9818 (MOVEP1, MOVEP2): New mode iterator.
9819 (mov_<load>l): Use ZC constraint.
9820 (mov_<load>r): Likewise.
9821 (mov_<store>l): Likewise.
9822 (mov_<store>r): Likewise.
9823 (*branch_equality<mode>_inverted): Add microMIPS support.
9824 (*branch_equality<mode>): Likewise.
9825 (*jump_absolute): Likewise.
9826 (indirect_jump_<mode>): Likewise.
9827 (tablejump_<mode>): Likewise.
9828 (<optab>_internal): Likewise.
9829 (sibcall_internal): Likewise.
9830 (sibcall_value_internal): Likewise.
9831 (prefetch): Use constraint ZD.
9832 * config/mips/mips.opt (minterlink-compressed): New option.
9833 (minterlink-mips16): Now an alias for minterlink-compressed.
9834 (mmicromips): New option.
9835 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
9836 (compare_and_swap_12): Likewise.
9837 (sync_add<mode>): Likewise.
9838 (sync_<optab>_12): Likewise.
9839 (sync_old_<optab>_12): Likewise.
9840 (sync_new_<optab>_12): Likewise.
9841 (sync_nand_12): Likewise.
9842 (sync_old_nand_12): Likewise.
9843 (sync_new_nand_12): Likewise.
9844 (sync_sub<mode>): Likewise.
9845 (sync_old_add<mode>): Likewise.
9846 (sync_old_sub<mode>): Likewise.
9847 (sync_new_add<mode>): Likewise.
9848 (sync_new_sub<mode>): Likewise.
9849 (sync_<optab><mode>): Likewise.
9850 (sync_old_<optab><mode>): Likewise.
9851 (sync_new_<optab><mode>): Likewise.
9852 (sync_nand<mode>): Likewise.
9853 (sync_old_nand<mode>): Likewise.
9854 (sync_new_nand<mode>): Likewise.
9855 (sync_lock_test_and_set<mode>): Likewise.
9856 (test_and_set_12): Likewise.
9857 (atomic_compare_and_swap<mode>): Likewise.
9858 (atomic_exchange<mode>_llsc): Likewise.
9859 (atomic_fetch_add<mode>_llsc): Likewise.
9860 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
9861 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
9862 (umips_save_restore_pattern_p): Likewise.
9863 (umips_load_store_pair_p): Likewise.
9864 (umips_output_load_store_pair): Likewise.
9865 (umips_movep_target_p): Likewise.
9866 (umips_12bit_offset_address_p): Likewise.
9867 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
9868 (mips_base_mips16): Rename this...
9869 (mips_base_compression_flags): ...to this. Update all uses.
9870 (mips_attribute_table): Add micromips, nomicromips and nocompression.
9871 (mips_mips16_decl_p): Delete.
9872 (mips_nomips16_decl_p): Delete.
9873 (mips_get_compress_on_flags): New function.
9874 (mips_get_compress_off_flags): New function.
9875 (mips_get_compress_mode): New function.
9876 (mips_get_compress_on_name): New function.
9877 (mips_get_compress_off_name): New function.
9878 (mips_insert_attributes): Support multiple compression types.
9879 (mips_merge_decl_attributes): Likewise.
9880 (umips_12bit_offset_address_p): New function.
9881 (mips_start_function_definition): Emit .set micromips directive.
9882 (mips_call_may_need_jalx_p): New function.
9883 (mips_function_ok_for_sibcall): Add microMIPS support.
9884 (mips_print_operand_punctuation): Support short delay slots and
9886 (umips_swm_mask, umips_swm_encoding): New.
9887 (umips_build_save_restore): New function.
9888 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
9889 (was_mips16_p): Remove.
9890 (old_compression_mode): New.
9891 (mips_set_compression_mode): New function.
9892 (mips_set_current_function): Add microMIPS support.
9893 (mips_option_override): Likewise.
9894 (umips_save_restore_pattern_p): New function.
9895 (umips_output_save_restore): New function.
9896 (umips_load_store_pair_p_1): New function.
9897 (umips_load_store_pair_p): New function.
9898 (umips_output_load_store_pair_1): New function.
9899 (umips_output_load_store_pair): New function.
9900 (umips_movep_target_p) New function.
9901 (mips_prepare_pch_save): Add microMIPS support.
9902 * config/mips/mips.h (TARGET_COMPRESSION): New.
9903 (TARGET_CPU_CPP_BUILTINS): Update macro
9904 to use new compression flags and to support microMIPS.
9905 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
9906 (MIPS_ARCH_FLOAT_SPEC): Likewise.
9907 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
9908 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
9909 (ASM_SPEC): Support mmicromips and mno-micromips.
9910 (M16STORE_REG_P): New macro.
9911 (MIPS_CALL): Support TARGET_MICROMIPS.
9912 (MICROMIPS_J): New macro.
9913 (mips_base_mips16): Rename this...
9914 (mips_base_compression_flags): ...to this.
9915 (UMIPS_12BIT_OFFSET_P): New macro.
9916 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
9917 (MULTILIB_DIRNAMES): Likewise.
9918 2013-03-20 Richard Biener <rguenther@suse.de>
9920 PR tree-optimization/56661
9921 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
9922 the result does not have to be distinct.
9924 2013-03-20 Richard Biener <rguenther@suse.de>
9926 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
9929 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9930 Steven Bosscher <steven@gcc.gnu.org>
9932 PR rtl-optimization/56605
9933 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
9935 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
9938 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
9939 that require movd instead of movq.
9941 2013-03-20 Richard Biener <rguenther@suse.de>
9943 * tree-ssa-structalias.c (struct variable_info): Add pointer
9944 to the first field of an aggregate with sub-vars. Make
9945 this and the pointer to the next subfield its ID.
9946 (vi_next): New function.
9947 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
9948 storedanything_id, integer_id): Increment by one.
9949 (new_var_info, get_call_vi, lookup_call_clobber_vi,
9950 get_call_clobber_vi): Adjust.
9951 (solution_set_expand): Simplify and speedup.
9952 (solution_set_add): Inline into ...
9953 (set_union_with_increment): ... this. Adjust accordingly.
9954 (do_sd_constraint): Likewise.
9955 (do_ds_constraint): Likewise.
9956 (do_complex_constraint): Simplify.
9957 (build_pred_graph): Adjust.
9958 (solve_graph): Likewise. Simplify and speedup.
9959 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
9960 get_constraint_for_component_ref, get_constraint_for_1,
9961 first_vi_for_offset, first_or_preceding_vi_for_offset,
9962 create_function_info_for, create_variable_info_for_1,
9963 create_variable_info_for, intra_create_variable_infos): Adjust.
9964 (init_base_vars): Push NULL for ID zero.
9965 (compute_points_to_sets): Adjust.
9967 2013-03-20 Richard Biener <rguenther@suse.de>
9969 * cfgloop.c (verify_loop_structure): Streamline and avoid
9970 ICEing on corrupt loop tree.
9971 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
9974 2013-03-20 Richard Biener <rguenther@suse.de>
9976 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
9977 check whether an SSA update is needed.
9979 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
9981 * config/mips/constraints.md (T): Rename to...
9985 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
9986 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
9988 2013-03-19 Ian Bolton <ian.bolton@arm.com>
9990 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
9991 (*subsi3_carryin_uxtw): Likewise.
9993 2013-03-19 Ian Bolton <ian.bolton@arm.com>
9995 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
9996 (*rorsi3_insn_uxtw): Likewise.
9998 2013-03-19 Ian Bolton <ian.bolton@arm.com>
10000 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
10001 (*extrsi5_insn_uxtw): Likewise.
10003 2013-03-19 Richard Biener <rguenther@suse.de>
10005 PR tree-optimization/56273
10006 * passes.c (init_optimization_passes): Move second VRP after DOM.
10008 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
10010 * config/i386/i386.md (*movti_internal): Merge from
10011 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
10012 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
10013 nox64 isa attributes.
10015 2013-03-18 Richard Biener <rguenther@suse.de>
10017 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
10019 (merge_node_constraints): Likewise.
10020 (build_succ_graph): Likewise.
10021 (valid_graph_edge): Inline into single caller.
10022 (unify_nodes): Likewise. Use bitmap_set_bit return value
10024 (scc_visit): Fix formatting and variable use.
10025 (do_sd_constraint): Use gcc_checking_assert.
10026 (do_ds_constraint): Likewise.
10027 (do_complex_constraint): Likewise.
10028 (condense_visit): Likewise. Cleanup.
10029 (dump_pred_graph): New function.
10030 (perform_var_substitution): Dump the pred-graph before
10031 variable substitution.
10032 (find_equivalent_node): Use gcc_checking_assert.
10033 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
10035 2013-03-18 Richard Biener <rguenther@suse.de>
10037 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
10038 Remove cond_expr_stmt_list argument and do not gimplify the
10040 (vect_loop_versioning): Adjust.
10041 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
10042 Cleanup to use less temporaries.
10043 (vect_create_data_ref_ptr): Cleanup.
10045 2013-03-18 Jakub Jelinek <jakub@redhat.com>
10047 PR tree-optimization/56635
10048 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
10049 require types_compatible_p types.
10051 2013-03-18 Nick Clifton <nickc@redhat.com>
10053 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
10054 spurious backslash.
10056 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
10057 Add missing line to comment describing function.
10059 2013-03-18 Richard Biener <rguenther@suse.de>
10061 PR tree-optimization/56210
10062 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10063 Handle string / character search functions.
10064 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
10066 2013-03-18 Richard Biener <rguenther@suse.de>
10068 PR middle-end/56483
10069 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
10070 and implement properly.
10071 * gimple.h (gimple_cond_single_var_p): Remove.
10073 2013-03-18 Richard Biener <rguenther@suse.de>
10075 * tree-data-ref.h (find_data_references_in_loop): Declare.
10076 * tree-data-ref.c (get_references_in_stmt): Use a stack
10077 vector pre-allocated in the callers.
10078 (find_data_references_in_stmt): Adjust.
10079 (graphite_find_data_references_in_stmt): Likewise.
10080 (create_rdg_vertices): Likewise.
10081 (find_data_references_in_loop): Export.
10082 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
10083 Compute dependences here...
10084 (vect_analyze_data_refs): ...not here. When we encounter
10085 a non-vectorizable data reference in basic-block vectorization
10086 truncate the data reference vector. Do not bother to
10087 fixup data-dependence information for gather loads.
10088 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
10089 of data references, as reported.
10091 2013-03-18 Richard Biener <rguenther@suse.de>
10093 PR tree-optimization/3713
10094 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
10095 has_constants and expr.
10096 (stmt_has_constants): Properly valueize SSA names when deciding
10097 whether the stmt has constants.
10099 2013-03-18 Richard Biener <rguenther@suse.de>
10101 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
10102 whole function when there is nothing to do.
10103 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
10104 * tree-vectorizer.c (vectorize_loops): Update virtual and
10105 loop-closed SSA once.
10106 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
10108 2013-03-18 Richard Biener <rguenther@suse.de>
10110 PR middle-end/56113
10111 * domwalk.c (bb_postorder): New global static.
10112 (cmp_bb_postorder): New function.
10113 (walk_dominator_tree): Replace scheme imposing an order for
10114 visiting dominator sons by one sorting them at the time they
10115 are pushed on the stack.
10117 2013-03-18 Richard Biener <rguenther@suse.de>
10119 PR tree-optimization/39326
10120 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
10121 (struct mem_ref): Replace mem member with ao_ref typed member.
10122 (MEM_ANALYZABLE): Adjust.
10123 (memref_eq): Likewise.
10124 (mem_ref_alloc): Likewise.
10125 (gather_mem_refs_stmt): Likewise.
10126 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
10127 (execute_sm_if_changed_flag_set): Adjust.
10128 (execute_sm): Likewise.
10129 (ref_always_accessed_p): Likewise.
10130 (refs_independent_p): Likewise.
10131 (can_sm_ref_p): Likewise.
10133 2013-03-18 Jakub Jelinek <jakub@redhat.com>
10136 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
10137 return 1 even for !unsignedp.
10139 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
10141 * config/i386/i386.md (isa): Add x64 and nox64.
10142 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
10143 (*pushtf): Enable *roF alternative for x64 isa only.
10144 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
10145 mode attribute of integer alternatives to DImode for TARGET_64BIT.
10146 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
10147 (*movtf_internal): Merge from *movtf_internal_rex64 and
10148 *movtf_internal_sse. Use x64 and nox64 isa attributes.
10149 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
10150 nox64 isa attributes.
10151 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
10152 nox64 isa attributes.
10153 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
10155 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
10157 * config/alpha/alpha.c (TARGET_LRA_P): New define.
10159 2013-03-17 Jakub Jelinek <jakub@redhat.com>
10162 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
10163 class names. Remove trailing comma after "ALL_REGS".
10165 2013-03-16 Jan Hubicka <jh@suse.cz>
10167 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
10168 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
10169 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
10170 of cgraph_get_create_node.
10171 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10173 2013-03-16 Jason Merrill <jason@redhat.com>
10176 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
10177 with DW_AT_default_value.
10179 2013-03-16 Jakub Jelinek <jakub@redhat.com>
10181 * BASE-VER: Set to 4.9.0.
10183 2013-03-14 Andi Kleen <ak@linux.intel.com>
10186 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
10187 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
10188 Document _x* TSX intrinsics.
10190 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
10191 David Holsgrove <david.holsgrove@xilinx.com>
10193 * configure.ac: Add MicroBlaze TLS support detection.
10194 * configure: Regenerate.
10195 * config/microblaze/microblaze-protos.h
10196 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
10197 symbol_mentioned_p, label_mentioned_p): Add prototypes.
10198 * config/microblaze/microblaze.c (microblaze_address_type): Add
10199 ADDRESS_TLS and tls_reloc address types.
10200 (microblaze_address_info): Add tls_reloc.
10201 (TARGET_HAVE_TLS): Define.
10202 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
10203 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
10204 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
10205 load_tls_operand, microblaze_call_tls_get_addr,
10206 microblaze_legitimize_tls_address): New functions.
10207 (microblaze_classify_unspec): Handle UNSPEC_TLS.
10208 (get_base_reg): Use microblaze_tls_symbol_p.
10209 (microblaze_classify_address): Handle TLS.
10210 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
10211 label_mentioned_p and microblaze_tls_referenced_p.
10212 (microblaze_legitimize_address): Handle TLS.
10213 (microblaze_address_insns): Handle ADDRESS_TLS.
10214 (pic_address_needs_scratch): Handle TLS.
10215 (print_operand_address): Handle TLS.
10216 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
10217 (microblaze_expand_move): Handle TLS.
10218 (microblaze_legitimate_constant_p): Check
10219 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
10220 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
10221 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
10222 (PIC_OFFSET_TABLE_REGNUM): Set.
10223 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
10224 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
10225 (addsi3, movsi_internal2, movdf_internal): Update constraints
10226 * config/microblaze/predicates.md (arith_plus_operand): Define
10227 (move_operand): Redefine as move_src_operand,
10228 check microblaze_tls_referenced_p.
10230 2013-03-14 Ian Bolton <ian.bolton@arm.com>
10232 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
10233 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
10235 2013-03-14 Ian Bolton <ian.bolton@arm.com>
10237 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
10240 2013-03-14 Jakub Jelinek <jakub@redhat.com>
10242 PR tree-optimization/53265
10243 * common.opt (Waggressive-loop-optimizations): New option.
10244 * tree-ssa-loop-niter.c: Include tree-pass.h.
10245 (do_warn_aggressive_loop_optimizations): New function.
10246 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
10247 if number_of_latch_executions returned constant.
10248 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
10249 early. If number_of_latch_executions returned constant, set
10250 nb_iterations_upper_bound back to it.
10251 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
10253 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
10254 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
10256 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
10257 (MULTILIB_OSDIRNAMES): Set.
10258 * genmultilib: If defaultosdirname doesn't start with :: , set
10259 defaultosdirname2 instead, clear it and emit two . multilib_raw
10260 entries instead of just one.
10262 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
10264 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
10265 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
10266 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
10267 (SUBTARGET_OVERRIDE_OPTIONS): New.
10269 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
10272 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
10273 (musermode): Convert to Var(TARGET_USERMODE).
10274 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
10275 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
10276 * config/sh/sh.c (sh_option_override): Use
10277 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
10278 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
10280 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
10282 (udivsi3_i4_single, divsi3_i4_single): Use
10283 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
10285 2013-03-13 Dave Korn <dave.korn.cygwin@....>
10287 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
10290 2013-03-13 Richard Biener <rguenther@suse.de>
10292 PR tree-optimization/56608
10293 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
10294 calls when vectorizing basic-blocks.
10296 2013-03-13 Jakub Jelinek <jakub@redhat.com>
10299 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
10302 2013-03-12 Jakub Jelinek <jakub@redhat.com>
10304 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
10306 2013-03-11 Jan Hubicka <jh@suse.cz>
10309 * lto-streamer-out.c (output_symbol_p): Skip references from
10310 constructors of external variables.
10312 2013-03-11 Jan Hubicka <jh@suse.cz>
10314 PR middle-end/56571
10315 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
10317 * emit-rtl.c (verify_rtx_sharing): Likewise.
10318 (copy_insn_1): Likewise.
10319 * rtl.c (copy_rtx): Likewise.
10321 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
10324 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
10325 output_operand_lossage message.
10327 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
10330 * arm.c (shift_op): Validate RTL pattern on the fly.
10331 (arm_print_operand, case 'S'): Don't use shift_operator to validate
10334 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10337 * config/pa/pa.md (call_value): Check for calls to powf and direct to
10338 new call patterns that clobber %fr12.
10339 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
10340 split and postreload patterns.
10341 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
10342 registers %fr12 and %fr12R as call used.
10344 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
10346 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
10347 (canon_address, record_store, replace_read, check_mem_read_rtx,
10348 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
10349 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
10350 rest_of_handle_dse): Likewise.
10352 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
10354 PR middle-end/56524
10355 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
10357 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
10358 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
10359 (save_optabs_if_changed): Replace with...
10360 (init_tree_optimization_optabs): ...this.
10361 * optabs.c (save_optabs_if_changed): Rename to...
10362 (init_tree_optimization_optabs): ...this. Take the optimization node
10363 as argument. Do nothing if the base optabs are already correct.
10364 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
10365 to recompute optabs.
10366 * function.h (function): Remove optabs field.
10367 * function.c (invoke_set_current_function_hook): Call
10368 init_tree_optimization_optabs. Use the result to initialize
10371 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
10373 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
10374 if GTMA_HAS_NO_INSTRUMENTATION.
10375 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
10376 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
10377 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
10378 * gimple-pretty-print.c (dump_gimple_transaction): Handle
10379 GTMA_HAS_NO_INSTRUMENTATION.
10381 2013-03-08 Jakub Jelinek <jakub@redhat.com>
10383 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
10386 2013-03-08 Marek Polacek <polacek@redhat.com>
10387 Jakub Jelinek <jakub@redhat.com>
10389 PR tree-optimization/56478
10390 * predict.c (is_comparison_with_loop_invariant_p): Change the
10391 type of loop_step to tree.
10392 (predict_loops): Adjust.
10393 (predict_iv_comparison): Perform the computations on double_ints.
10395 2013-03-08 Richard Biener <rguenther@suse.de>
10397 PR tree-optimization/56570
10398 * tree-cfg.c (verify_expr_location_1): Verify locations for
10400 * tree-sra.c (create_access_replacement): Strip locations
10401 from DECL_DEBUG_EXPRs.
10403 2013-03-08 Richard Biener <rguenther@suse.de>
10405 * tree-inline.c (expand_call_inline): Do not associate
10406 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
10407 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
10409 2013-03-08 Richard Biener <rguenther@suse.de>
10411 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
10412 or block changes with -Og. Fix for location / block encoding
10413 changes and PHI arguments with locations.
10415 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
10417 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
10419 (struct output_info): Likewise.
10420 (register_overhead): Remove bad gcc_assert.
10421 (bitmap_find_bit): If there is only a single bitmap element, do not
10422 count a miss as a search.
10423 (print_statistics): Update for counter type changes.
10424 (dump_bitmap_statistics): Likewise. Print headers such that they
10425 are properly lined up with the printed counters.
10427 2013-03-07 Jakub Jelinek <jakub@redhat.com>
10429 PR tree-optimization/56559
10430 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
10431 check that it has only a single use.
10433 2013-03-07 Richard Biener <rguenther@suse.de>
10435 * doc/invoke.texi (fwhole-program): Discourage use in combination
10438 2013-03-06 Jakub Jelinek <jakub@redhat.com>
10440 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
10442 PR tree-optimization/56539
10443 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
10444 instead of GSI_CONTINUE_LINKING as last argument to
10445 force_gimple_operand_gsi. Adjust function comment.
10447 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
10450 PR middle-end/56548
10451 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
10452 promoted mode, convert the result back to the original mode.
10454 2013-03-06 Richard Biener <rguenther@suse.de>
10456 PR middle-end/56294
10457 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
10458 (insert_updated_phi_nodes_compare_uids): New function.
10459 (update_ssa): Sort symbols_to_rename after UID before
10460 traversing it to insert PHI nodes.
10462 2013-03-06 Richard Biener <rguenther@suse.de>
10464 PR middle-end/50494
10465 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
10466 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
10469 2013-02-13 Richard Biener <rguenther@suse.de>
10472 * varasm.c (output_constant_def_1): Get the decl representing
10473 the constant as argument.
10474 (output_constant_def): Wrap output_constant_def_1.
10475 (make_decl_rtl): Use output_constant_def_1 with the decl
10476 representing the constant.
10477 (build_constant_desc): Optionally re-use a decl already
10478 representing the constant.
10479 (tree_output_constant_def): Adjust.
10481 2013-03-06 Joey Ye <joey.ye@arm.com>
10484 * gcc.c (convert_white_space): New function.
10485 (main): Handles white space in function name.
10487 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
10490 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
10491 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
10492 to SH_DIV_CALL_TABLE for TARGET_SH2.
10493 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
10495 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
10496 call-table options.
10498 2013-03-05 Sterling Augustine <saugustine@google.com>
10499 Cary Coutant <ccoutant@google.com>
10502 * dwarf2out.c (resolve_addr): Don't call
10503 remove_loc_list_addr_table_entries a second time for the same
10506 2013-03-05 Jakub Jelinek <jakub@redhat.com>
10509 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
10510 (avoid_complex_debug_insns): New function.
10511 (expand_debug_locations): Call it.
10513 PR rtl-optimization/56484
10514 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
10515 lifetimes of hard registers on small register class machines.
10517 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
10519 * config/microblaze/microblaze-protos.h: Rename
10520 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
10521 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
10523 (microblaze_fast_interrupt_function_p): New function.
10524 (microblaze_is_interrupt_handler): Rename to
10525 microblaze_is_interrupt_variant and add fast_interrupt check.
10526 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
10527 (save_restore_insns): Likewise.
10528 (compute_frame_size): Likewise.
10529 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
10530 (microblaze_globalize_label): Likewise.
10531 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
10532 * config/microblaze/microblaze.md: Use wrapper
10533 microblaze_is_interrupt_variant.
10535 2013-03-05 Kai Tietz <ktietz@redhat.com>
10537 * sdbout.c (sdbout_one_type): Switch to current function's section
10538 supporting cold/hot.
10540 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
10542 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
10545 2013-03-05 Jakub Jelinek <jakub@redhat.com>
10547 PR middle-end/56461
10548 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
10549 if VALGRIND_GET_VBITS is defined, temporarily make object
10550 memory all defined, and restore previous valgrind addressability
10551 and definability afterwards. Free this_object at the end.
10553 PR middle-end/56461
10554 * lra.c (lra): Call lra_clear_live_ranges if live_p,
10555 right before calling lra_create_live_ranges, also call it
10556 when clearing live_p. Only call lra_clear_live_ranges
10557 at the end if live_p.
10559 PR middle-end/56461
10560 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
10562 2013-03-05 Richard Biener <rguenther@suse.de>
10564 PR tree-optimization/56521
10565 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
10568 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
10571 * except.h (remove_unreachable_eh_regions): New prototype.
10572 * except.c (remove_eh_handler_splicer): New function, split out
10573 of remove_eh_handler.
10574 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
10575 warning about running it on many EH regions one at a time.
10576 (remove_unreachable_eh_regions_worker): New function, walk the
10577 EH tree in depth-first order and remove non-marked regions.
10578 (remove_unreachable_eh_regions): New function.
10579 * tree-eh.c (mark_reachable_handlers): New function, split out
10580 from remove_unreachable_handlers.
10581 (remove_unreachable_handlers): Use mark_reachable_handlers and
10582 remove_unreachable_eh_regions.
10583 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
10584 and remove_unreachable_eh_regions.
10586 2013-03-05 Richard Biener <rguenther@suse.de>
10588 PR middle-end/56525
10589 * loop-init.c (fix_loop_structure): Remove loops in two stages,
10590 not freeing them until the end.
10592 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10594 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
10596 2013-03-05 Richard Biener <rguenther@suse.de>
10598 PR tree-optimization/56270
10599 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
10600 of loads after scheduling an SLP instance.
10602 2013-03-05 Jakub Jelinek <jakub@redhat.com>
10604 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
10606 (check_gcc_parallelize): Run guality.exp as a separate job from
10607 vect.exp with unsorted.exp and $(dg_target_exps) separately from
10608 struct-layout-1.exp with stackalign.exp.
10610 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
10612 PR middle-end/56461
10613 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
10614 load_index sbitmap even if some bit in it isn't set.
10616 PR middle-end/56461
10617 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
10618 (discover_iteration_bound_by_body_walk): Change queues to
10619 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
10620 spelling in comment. Call safe_push on queues[bound_index] directly.
10621 Release queues[queue_index] in every iteration unconditionally.
10622 Release bounds vector.
10624 PR middle-end/56461
10625 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
10626 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
10627 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
10630 2013-03-05 Richard Biener <rguenther@suse.de>
10633 * tree-inline.c (remap_blocks_to_null): New function.
10634 (expand_call_inline): When expanding a call stmt without
10635 an associated block inline remap all callee blocks to NULL.
10637 2013-03-05 Jakub Jelinek <jakub@redhat.com>
10639 PR rtl-optimization/56494
10640 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
10641 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
10642 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
10644 PR middle-end/56461
10645 * sel-sched-ir.c (free_sched_pools): Release
10646 succs_info_pool.stack[succs_info_pool.max_top] vectors too
10647 if succs_info_pool.max_top isn't -1.
10650 * opts.c (opts_obstack, opts_concat): Moved to...
10651 * opts-common.c (opts_obstack, opts_concat): ... here.
10653 2013-03-04 Jakub Jelinek <jakub@redhat.com>
10655 PR middle-end/56461
10656 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
10658 2013-03-04 Martin Jambor <mjambor@suse.cz>
10660 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
10661 all appropriate places.
10663 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
10665 PR tree-optimization/56424
10666 * ipa-split.c (split_function): Do not set the RSO flag if result is
10667 not by reference and its type is a register type.
10669 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
10671 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
10672 (microblaze_legitimate_pic_operand): Likewise
10673 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
10674 new function microblaze_legitimate_pic_operand
10675 * config/microblaze/microblaze-protos.h
10676 (microblaze_legitimate_pic_operand): Declare.
10678 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10680 * config/microblaze/predicates.md (call_insn_simple_operand):
10681 New predicate for supported rtx code types.
10682 * config/microblaze/microblaze.md (call_internal1): Use
10683 call_insn_simple_operand predicate.
10685 2013-03-04 Jakub Jelinek <jakub@redhat.com>
10687 PR middle-end/56461
10688 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
10689 partitions.ordered_remove.
10691 PR middle-end/56461
10692 * tree-vect-stmts.c (vectorizable_conversion): Don't call
10693 vec_oprnds0.create (1) for modifier == NONE.
10695 PR middle-end/56461
10696 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
10697 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
10698 vec_oprnds1 right before pushing anything to it for
10701 PR middle-end/56461
10702 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
10703 set nbbs to 0 instead of having separate code path.
10704 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
10705 instead of false as last argument if returning NULL.
10707 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
10709 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
10710 the attribute is now called "target" instead of "option".
10711 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
10712 * doc/tm.texi.in (Target Attributes): Likewise document the correct
10713 attribute/pragma name for TARGET_OPTION_VALID_P and
10714 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
10715 * doc/tm.texi: Regenerated.
10717 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
10719 * config/microblaze/microblaze.c:
10720 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
10721 * config/microblaze/microblaze.h: Add -mxl-reorder to
10723 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
10724 instructions emitted if TARGET_REORDER.
10725 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
10726 or 0 for -m/-mno case, but initialises as 2 to detect default use case
10729 2013-03-01 Xinliang David Li <davidxl@google.com>
10731 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
10734 2013-03-01 Jakub Jelinek <jakub@redhat.com>
10736 PR middle-end/56461
10737 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
10738 vector even when returning true. Fix up function comment formatting.
10740 PR middle-end/56461
10741 * ira-build.c (ira_loop_nodes_count): New variable.
10742 (create_loop_tree_nodes): Initialize it.
10743 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
10745 PR middle-end/56461
10746 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
10747 method on dr_chain and result_chain.
10748 * tree-vect-stmts.c (vectorizable_store): Only call
10749 result_chain.create if j == 0.
10751 PR middle-end/56461
10752 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
10753 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
10754 before overwriting it.
10756 2013-03-01 Tobias Burnus <burnus@net-b.de>
10758 * doc/extended.texi (C Extensions): Change order in @menu
10760 (Other MIPS Built-in Functions): Move last MIPS entry before
10761 "picoChip Built-in Functions".
10762 (SH Built-in Functions): Move after RX Built-in Functions.
10763 * doc/gcc.texi (Introduction): Change order in @menu
10765 * doc/md.texi (Constraints): Ditto.
10766 * gty.texi (Type Information): Ditto.
10767 (User-provided marking routines for template types): Make
10769 * doc/invoke.texi (AArch64 Options): Move before
10770 "Adapteva Epiphany Options".
10772 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
10773 Jakub Jelinek <jakub@redhat.com>
10776 * asan.c (gate_asan): Lookup no_sanitize_address instead of
10777 no_address_safety_analysis attribute.
10778 * doc/extend.texi (no_address_safety_attribute): Rename to
10779 no_sanitize_address attribute, mention no_address_safety_analysis
10780 attribute as deprecated alias.
10782 2013-02-28 Jakub Jelinek <jakub@redhat.com>
10784 PR middle-end/56461
10785 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
10786 type to vec<vec<tree> > *.
10787 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
10788 to be vec<tree> instead of vec<tree> *, set vec_defs
10789 to vNULL and call vec_defs.create (number_of_vects), adjust other
10791 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
10792 vectorizable_condition): Adjust vect_get_slp_defs callers.
10794 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10796 * config/aarch64/aarch64.c
10797 (aarch64_float_const_representable): Remove unused variable.
10799 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10801 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
10803 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10805 * config/aarch64/aarch64-builtins.c
10806 (aarch64_init_simd_builtins): Make static.
10808 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10810 * config/aarch64/aarch64.c
10811 (aarch64_simd_make_constant): Make static.
10813 2013-02-28 Martin Jambor <mjambor@suse.cz>
10815 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
10816 with no initialization to the RHS of debug statements.
10818 2013-02-28 Martin Jambor <mjambor@suse.cz>
10820 PR tree-optimization/56294
10821 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
10823 (get_access_replacement): Do not call create_access_replacement.
10824 Assert a replacement exists.
10825 (get_repl_default_def_ssa_name): Create the replacement declaration
10828 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10830 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
10831 final_end_function.
10833 2013-02-28 Marek Polacek <polacek@redhat.com>
10835 PR rtl-optimization/56466
10836 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
10837 if we're changing a loop.
10838 (peel_loops_completely): Likewise.
10840 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
10843 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
10845 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
10848 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
10849 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
10850 INTX_FTYPE_FX, FX_FTYPE_INTX.
10851 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
10853 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
10855 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
10856 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
10857 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
10858 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
10859 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
10860 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
10861 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
10862 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
10863 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
10864 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
10865 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
10866 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
10867 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
10868 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
10869 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
10870 (avrxmega6): Increase max flash segments from 5 to 6.
10871 * config/avr/t-multilib: Regenerate.
10872 * config/avr/avr-tables.opt: Regenerate.
10873 * doc/avr-mmcu.texi: Regenerate.
10875 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
10877 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
10878 (avr_device_to_arch): Rename to avr_device_to_ld.
10879 (avr_device_to_as): New prototype.
10880 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
10881 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
10882 * config/avr/driver-avr.c (avr_device_to_as): New.
10883 (avr_device_to_arch): Rename to avr_device_to_ld.
10885 2013-02-27 Jakub Jelinek <jakub@redhat.com>
10887 PR middle-end/56461
10888 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
10889 method on dr_chain and result_chain.
10891 PR middle-end/56461
10892 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
10893 pointer_set_destroy on not_executed_last_iteration.
10895 PR middle-end/56461
10896 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
10898 PR middle-end/56461
10899 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
10900 FOR_EACH_DEFINED_FUNCTION when freeing state.
10902 PR middle-end/56461
10903 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
10905 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
10908 PR middle-end/56461
10909 * ipa-cp.c (decide_whether_version_node): Call vec_free on
10910 known_aggs[i].items and release known_aggs vector.
10912 PR middle-end/56461
10913 * ipa-reference.c (propagate): Free node_info even for alias nodes.
10915 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10917 * config/microblaze/microblaze.c (microblaze_emit_compare):
10918 Use xor for EQ/NE comparisions.
10919 * config/microblaze/microblaze.md (cstoresf4): Add constraints
10920 (cbranchsf4): Adjust operator to comparison_operator.
10922 2013-02-27 Jakub Jelinek <jakub@redhat.com>
10924 PR middle-end/56461
10925 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
10927 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
10928 vec_safe_push, always update *slot.
10929 (redirect_edge_var_map_clear): Use vec_free.
10930 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
10931 (free_var_map_entry): Use vec_free.
10932 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
10933 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
10935 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
10937 PR middle-end/45472
10938 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
10939 when the may_trap_p bit of the exprs being merged differs.
10940 Reorder tests for speculativeness in the logical and operator.
10942 2013-02-27 Jakub Jelinek <jakub@redhat.com>
10944 * incpath.c (add_standard_paths): Use reconcat instead of concat
10945 where appropriate and avoid leaking memory.
10947 * opts.h: Include obstack.h.
10948 (opts_concat): New prototype.
10949 (opts_obstack): New declaration.
10950 * opts.c (opts_concat): New function.
10951 (opts_obstack): New variable.
10952 (init_options_struct): Call gcc_init_obstack on opts_obstack.
10953 (finish_options): Use opts_concat instead of concat
10954 and XOBNEWVEC instead of XNEWVEC.
10955 * opts-common.c (generate_canonical_option, decode_cmdline_option,
10956 generate_option): Likewise.
10957 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
10958 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
10961 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
10962 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
10964 2013-02-26 Jakub Jelinek <jakub@redhat.com>
10966 PR middle-end/56461
10967 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
10969 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
10971 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
10972 (arm_block_move_unaligned_straight): Likewise.
10973 (arm_adjust_block_mem): Likewise.
10975 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
10978 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
10979 temp, cond and label.
10980 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
10983 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
10984 * config/c6x/c6x.h (dbx_register_map): Update declaration.
10987 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
10988 of prologue/epilogue functions.
10991 * config/tilegx/tilegx.c (tilegx_expand_prologue):
10992 Remove unused variable cfa_offset.
10993 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
10996 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
10997 type promotion to unsigned.
11000 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
11001 for HOST_WIDE_INT of 32 bit / same size as int.
11002 (arm_block_move_unaligned_straight): Likewise.
11003 (arm_adjust_block_mem): Likewise.
11006 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
11009 2013-02-26 Marek Polacek <polacek@redhat.com>
11011 PR tree-optimization/56426
11012 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
11014 2013-02-26 Richard Biener <rguenther@suse.de>
11017 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
11018 unused variable loops.
11020 2013-02-26 Jakub Jelinek <jakub@redhat.com>
11022 PR tree-optimization/56448
11023 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
11024 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
11025 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
11026 later operands of the references, or even first operand for
11027 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
11029 PR tree-optimization/56443
11030 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
11031 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
11032 to type_for_mode langhook.
11034 2013-02-25 Matt Turner <mattst88@gmail.com>
11036 * doc/invoke.texi: Document r4700.
11038 2013-02-25 Richard Biener <rguenther@suse.de>
11040 PR tree-optimization/56175
11041 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
11043 (simplify_bitwise_binary): ... here. Also guard the conversion
11044 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
11046 2013-02-25 Catherine Moore <clm@codesourcery.com>
11049 2013-02-24 Catherine Moore <clm@codesourcery.com>
11050 Maciej W. Rozycki <macro@codesourcery.com>
11051 Tom de Vries <tom@codesourcery.com>
11052 Nathan Sidwell <nathan@codesourcery.com>
11053 Iain Sandoe <iain@codesourcery.com>
11054 Nathan Froyd <froydnj@codesourcery.com>
11055 Chao-ying Fu <fu@mips.com>
11057 * doc/extend.texi: (micromips, nomicromips, nocompression):
11058 Document new function attributes.
11059 * doc/invoke.texi (minterlink-compressed, mmicromips,
11060 m14k, m14ke, m14kec): Document new options.
11061 (minterlink-mips16): Update documentation.
11062 * doc/md.texi (ZC, ZD): Document new constraints.
11063 * configure.ac (gcc_cv_as_micromips): Check if linker
11064 supports the .set micromips directive.
11065 * configure: Regenerate.
11066 * config.in: Regenerate.
11067 * config/mips/mips-tables.opt: Regenerate.
11068 * config/mips/micromips.md: New file.
11069 * constraints.md (ZC, AD): New constraints.
11070 * config/mips/predicates.md (movep_src_register): New predicate.
11071 (movep_src_operand): New predicate.
11072 (non_volatile_mem_operand): New predicate.
11073 * config/mips/mips.md (multimem): New type.
11074 (length): Differentiate between 17-bit and 18-bit branch offsets.
11075 (MOVEP1, MOVEP2): New mode iterator.
11076 (mov_<load>l): Use ZC constraint.
11077 (mov_<load>r): Likewise.
11078 (mov_<store>l): Likewise.
11079 (mov_<store>r): Likewise.
11080 (*branch_equality<mode>_inverted): Add microMIPS support.
11081 (*branch_equality<mode>): Likewise.
11082 (*jump_absolute): Likewise.
11083 (indirect_jump_<mode>): Likewise.
11084 (tablejump_<mode>): Likewise.
11085 (<optab>_internal): Likewise.
11086 (sibcall_internal): Likewise.
11087 (sibcall_value_internal): Likewise.
11088 (prefetch): Use constraint ZD.
11089 * config/mips/mips.opt (minterlink-compressed): New option.
11090 (minterlink-mips16): Now an alias for minterlink-compressed.
11091 (mmicromips): New option.
11092 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
11093 (compare_and_swap_12): Likewise.
11094 (sync_add<mode>): Likewise.
11095 (sync_<optab>_12): Likewise.
11096 (sync_old_<optab>_12): Likewise.
11097 (sync_new_<optab>_12): Likewise.
11098 (sync_nand_12): Likewise.
11099 (sync_old_nand_12): Likewise.
11100 (sync_new_nand_12): Likewise.
11101 (sync_sub<mode>): Likewise.
11102 (sync_old_add<mode>): Likewise.
11103 (sync_old_sub<mode>): Likewise.
11104 (sync_new_add<mode>): Likewise.
11105 (sync_new_sub<mode>): Likewise.
11106 (sync_<optab><mode>): Likewise.
11107 (sync_old_<optab><mode>): Likewise.
11108 (sync_new_<optab><mode>): Likewise.
11109 (sync_nand<mode>): Likewise.
11110 (sync_old_nand<mode>): Likewise.
11111 (sync_new_nand<mode>): Likewise.
11112 (sync_lock_test_and_set<mode>): Likewise.
11113 (test_and_set_12): Likewise.
11114 (atomic_compare_and_swap<mode>): Likewise.
11115 (atomic_exchange<mode>_llsc): Likewise.
11116 (atomic_fetch_add<mode>_llsc): Likewise.
11117 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
11118 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
11119 (umips_save_restore_pattern_p): Likewise.
11120 (umips_load_store_pair_p): Likewise.
11121 (umips_output_load_store_pair): Likewise.
11122 (umips_movep_target_p): Likewise.
11123 (umips_12bit_offset_address_p): Likewise.
11124 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
11125 (mips_base_mips16): Rename this...
11126 (mips_base_compression_flags): ...to this. Update all uses.
11127 (mips_attribute_table): Add micromips, nomicromips and nocompression.
11128 (mips_mips16_decl_p): Delete.
11129 (mips_nomips16_decl_p): Delete.
11130 (mips_get_compress_on_flags): New function.
11131 (mips_get_compress_off_flags): New function.
11132 (mips_get_compress_mode): New function.
11133 (mips_get_compress_on_name): New function.
11134 (mips_get_compress_off_name): New function.
11135 (mips_insert_attributes): Support multiple compression types.
11136 (mips_merge_decl_attributes): Likewise.
11137 (umips_12bit_offset_address_p): New function.
11138 (mips_start_function_definition): Emit .set micromips directive.
11139 (mips_call_may_need_jalx_p): New function.
11140 (mips_function_ok_for_sibcall): Add microMIPS support.
11141 (mips_print_operand_punctuation): Support short delay slots and
11143 (umips_swm_mask, umips_swm_encoding): New.
11144 (umips_build_save_restore): New function.
11145 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
11146 (was_mips16_p): Remove.
11147 (old_compression_mode): New.
11148 (mips_set_compression_mode): New function.
11149 (mips_set_current_function): Add microMIPS support.
11150 (mips_option_override): Likewise.
11151 (umips_save_restore_pattern_p): New function.
11152 (umips_output_save_restore): New function.
11153 (umips_load_store_pair_p_1): New function.
11154 (umips_load_store_pair_p): New function.
11155 (umips_output_load_store_pair_1): New function.
11156 (umips_output_load_store_pair): New function.
11157 (umips_movep_target_p) New function.
11158 (mips_prepare_pch_save): Add microMIPS support.
11159 * config/mips/mips.h (TARGET_COMPRESSION): New.
11160 (TARGET_CPU_CPP_BUILTINS): Update macro
11161 to use new compression flags and to support microMIPS.
11162 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
11163 (MIPS_ARCH_FLOAT_SPEC): Likewise.
11164 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
11165 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
11166 (ASM_SPEC): Support mmicromips and mno-micromips.
11167 (M16STORE_REG_P): New macro.
11168 (MIPS_CALL): Support TARGET_MICROMIPS.
11169 (MICROMIPS_J): New macro.
11170 (mips_base_mips16): Rename this...
11171 (mips_base_compression_flags): ...to this.
11172 (UMIPS_12BIT_OFFSET_P): New macro.
11173 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
11174 (MULTILIB_DIRNAMES): Likewise.
11176 2013-02-25 Tom de Vries <tom@codesourcery.com>
11178 PR rtl-optimization/56131
11179 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
11180 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
11181 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
11183 2013-02-25 Tobias Burnus <burnus@net-b.de>
11185 * doc/invoke.texi (-fsanitize=): Move from optimization
11186 to debugging options.
11188 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
11190 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
11192 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
11193 Alexander Monakov <amonakov@ispras.ru>
11195 PR middle-end/56077
11196 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
11197 flush pending lists also on non-jumps. Adjust comment.
11199 2013-02-24 Catherine Moore <clm@codesourcery.com>
11200 Maciej W. Rozycki <macro@codesourcery.com>
11201 Tom de Vries <tom@codesourcery.com>
11202 Nathan Sidwell <nathan@codesourcery.com>
11203 Iain Sandoe <iain@codesourcery.com>
11204 Nathan Froyd <froydnj@codesourcery.com>
11205 Chao-ying Fu <fu@mips.com>
11207 * doc/extend.texi: (micromips, nomicromips, nocompression):
11208 Document new function attributes.
11209 * doc/invoke.texi (minterlink-compressed, mmicromips,
11210 m14k, m14ke, m14kec): Document new options.
11211 (minterlink-mips16): Update documentation.
11212 * doc/md.texi (ZC, ZD): Document new constraints.
11213 * configure.ac (gcc_cv_as_micromips): Check if linker
11214 supports the .set micromips directive.
11215 * configure: Regenerate.
11216 * config.in: Regenerate.
11217 * config/mips/mips-tables.opt: Regenerate.
11218 * config/mips/micromips.md: New file.
11219 * constraints.md (ZC, AD): New constraints.
11220 * config/mips/predicates.md (movep_src_register): New predicate.
11221 (movep_src_operand): New predicate.
11222 (non_volatile_mem_operand): New predicate.
11223 * config/mips/mips.md (multimem): New type.
11224 (length): Differentiate between 17-bit and 18-bit branch offsets.
11225 (MOVEP1, MOVEP2): New mode iterator.
11226 (mov_<load>l): Use ZC constraint.
11227 (mov_<load>r): Likewise.
11228 (mov_<store>l): Likewise.
11229 (mov_<store>r): Likewise.
11230 (*branch_equality<mode>_inverted): Add microMIPS support.
11231 (*branch_equality<mode>): Likewise.
11232 (*jump_absolute): Likewise.
11233 (indirect_jump_<mode>): Likewise.
11234 (tablejump_<mode>): Likewise.
11235 (<optab>_internal): Likewise.
11236 (sibcall_internal): Likewise.
11237 (sibcall_value_internal): Likewise.
11238 (prefetch): Use constraint ZD.
11239 * config/mips/mips.opt (minterlink-compressed): New option.
11240 (minterlink-mips16): Now an alias for minterlink-compressed.
11241 (mmicromips): New option.
11242 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
11243 (compare_and_swap_12): Likewise.
11244 (sync_add<mode>): Likewise.
11245 (sync_<optab>_12): Likewise.
11246 (sync_old_<optab>_12): Likewise.
11247 (sync_new_<optab>_12): Likewise.
11248 (sync_nand_12): Likewise.
11249 (sync_old_nand_12): Likewise.
11250 (sync_new_nand_12): Likewise.
11251 (sync_sub<mode>): Likewise.
11252 (sync_old_add<mode>): Likewise.
11253 (sync_old_sub<mode>): Likewise.
11254 (sync_new_add<mode>): Likewise.
11255 (sync_new_sub<mode>): Likewise.
11256 (sync_<optab><mode>): Likewise.
11257 (sync_old_<optab><mode>): Likewise.
11258 (sync_new_<optab><mode>): Likewise.
11259 (sync_nand<mode>): Likewise.
11260 (sync_old_nand<mode>): Likewise.
11261 (sync_new_nand<mode>): Likewise.
11262 (sync_lock_test_and_set<mode>): Likewise.
11263 (test_and_set_12): Likewise.
11264 (atomic_compare_and_swap<mode>): Likewise.
11265 (atomic_exchange<mode>_llsc): Likewise.
11266 (atomic_fetch_add<mode>_llsc): Likewise.
11267 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
11268 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
11269 (umips_save_restore_pattern_p): Likewise.
11270 (umips_load_store_pair_p): Likewise.
11271 (umips_output_load_store_pair): Likewise.
11272 (umips_movep_target_p): Likewise.
11273 (umips_12bit_offset_address_p): Likewise.
11274 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
11275 (mips_base_mips16): Rename this...
11276 (mips_base_compression_flags): ...to this. Update all uses.
11277 (mips_attribute_table): Add micromips, nomicromips and nocompression.
11278 (mips_mips16_decl_p): Delete.
11279 (mips_nomips16_decl_p): Delete.
11280 (mips_get_compress_on_flags): New function.
11281 (mips_get_compress_off_flags): New function.
11282 (mips_get_compress_mode): New function.
11283 (mips_get_compress_on_name): New function.
11284 (mips_get_compress_off_name): New function.
11285 (mips_insert_attributes): Support multiple compression types.
11286 (mips_merge_decl_attributes): Likewise.
11287 (umips_12bit_offset_address_p): New function.
11288 (mips_start_function_definition): Emit .set micromips directive.
11289 (mips_call_may_need_jalx_p): New function.
11290 (mips_function_ok_for_sibcall): Add microMIPS support.
11291 (mips_print_operand_punctuation): Support short delay slots and
11293 (umips_swm_mask, umips_swm_encoding): New.
11294 (umips_build_save_restore): New function.
11295 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
11296 (was_mips16_p): Remove.
11297 (old_compression_mode): New.
11298 (mips_set_compression_mode): New function.
11299 (mips_set_current_function): Add microMIPS support.
11300 (mips_option_override): Likewise.
11301 (umips_save_restore_pattern_p): New function.
11302 (umips_output_save_restore): New function.
11303 (umips_load_store_pair_p_1): New function.
11304 (umips_load_store_pair_p): New function.
11305 (umips_output_load_store_pair_1): New function.
11306 (umips_output_load_store_pair): New function.
11307 (umips_movep_target_p) New function.
11308 (mips_prepare_pch_save): Add microMIPS support.
11309 * config/mips/mips.h (TARGET_COMPRESSION): New.
11310 (TARGET_CPU_CPP_BUILTINS): Update macro
11311 to use new compression flags and to support microMIPS.
11312 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
11313 (MIPS_ARCH_FLOAT_SPEC): Likewise.
11314 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
11315 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
11316 (ASM_SPEC): Support mmicromips and mno-micromips.
11317 (M16STORE_REG_P): New macro.
11318 (MIPS_CALL): Support TARGET_MICROMIPS.
11319 (MICROMIPS_J): New macro.
11320 (mips_base_mips16): Rename this...
11321 (mips_base_compression_flags): ...to this.
11322 (UMIPS_12BIT_OFFSET_P): New macro.
11323 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
11324 (MULTILIB_DIRNAMES): Likewise.
11326 2013-02-24 Jakub Jelinek <jakub@redhat.com>
11329 * target-globals.c (save_target_globals): For init_reg_sets and
11330 target_reinit remporarily set this_fn_optabs to this_target_optabs.
11332 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
11334 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
11335 * config/aarch64/t-aarch64
11336 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
11338 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
11340 PR inline-asm/56148
11341 * lra-constraints.c (process_alt_operands): Reload operand
11342 conflicting with earlier clobber only if no more other conflicting
11345 2013-02-22 Jakub Jelinek <jakub@redhat.com>
11348 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
11349 if not linking a shared library.
11351 2013-02-22 Seth LaForge <sethml@google.com>
11353 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
11355 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
11357 * config/arm/arm.md (split for extendsidi): Update condition.
11358 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
11359 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
11360 (qhs_zextenddi_cstr): Likewise.
11362 2013-02-21 Jakub Jelinek <jakub@redhat.com>
11364 PR middle-end/56420
11365 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
11366 avoid signed wrapping.
11367 (expand_mult): Handle properly multiplication by
11368 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
11369 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
11370 in the compiler if coeff is HOST_WIDE_INT_MIN.
11371 (expand_divmod): Don't make ext_op1 static, change it's type to
11372 uhwi. Avoid undefined behavior in -INTVAL (op1).
11374 PR rtl-optimization/50339
11375 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
11377 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
11378 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
11379 into splitting_ashiftrt field.
11380 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
11382 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
11385 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
11387 PR middle-end/56108
11388 * trans-mem.c (execute_tm_mark): Do not expand transactions that
11389 are sure to go irrevocable.
11391 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
11393 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
11394 scalars are valid operands.
11396 2013-02-21 Martin Jambor <mjambor@suse.cz>
11398 PR tree-optimization/56310
11399 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
11400 only matching indices and non-negative final offsets.
11401 (intersect_aggregates_with_edge): Pass src_idx to
11402 agg_replacements_to_vector. Pass src_idx insstead of index to
11403 intersect_with_agg_replacements.
11405 2013-02-21 Martin Jambor <mjambor@suse.cz>
11407 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
11408 instead of hard-wired defaults.
11410 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
11412 * doc/invoke.texi (MIPS Options): Update documentation of the
11413 floating-point multiply-accumulate instruction restrictions.
11415 2013-02-21 Kostya Serebryany <kcc@google.com>
11417 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
11418 asan_shadow_offset on x86_64 linux.
11420 2013-02-21 Richard Biener <rguenther@suse.de>
11422 PR tree-optimization/56415
11424 2013-02-11 Richard Biener <rguenther@suse.de>
11426 PR tree-optimization/56273
11427 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
11430 2013-02-21 Jakub Jelinek <jakub@redhat.com>
11433 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
11436 PR inline-asm/56405
11437 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
11438 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
11440 2013-02-20 Jan Hubicka <jh@suse.cz>
11442 PR tree-optimization/56265
11443 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
11444 when target is referenced for first time.
11446 2013-02-20 Richard Biener <rguenther@suse.de>
11448 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
11449 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
11450 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
11451 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
11452 not return anything.
11453 (rename_ssa_copies): Do not remove unused locals.
11454 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
11455 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
11456 * passes.c (execute_function_todo): Do not schedule unused locals
11457 removal if cleanup_tree_cfg did something.
11458 * tree-ssa-live.c (remove_unused_locals): Dump statistics
11459 about the number of removed locals.
11461 2013-02-20 Richard Biener <rguenther@suse.de>
11463 PR tree-optimization/56398
11464 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
11466 2013-02-20 Martin Jambor <mjambor@suse.cz>
11468 PR tree-optimization/55334
11469 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
11470 restricted pointers to arrays.
11472 2013-02-20 Richard Biener <rguenther@suse.de>
11473 Jakub Jelinek <jakub@redhat.com>
11475 PR tree-optimization/56396
11476 * tree-ssa-ccp.c (n_const_val): New static variable.
11477 (get_value): Return NULL for SSA names we don't have a lattice
11479 (ccp_initialize): Initialize n_const_val.
11480 * tree-ssa-copy.c (n_copy_of): New static variable.
11481 (init_copy_prop): Initialize n_copy_of.
11482 (get_value): Return NULL_TREE for SSA names we don't have a
11485 2013-02-20 Martin Jambor <mjambor@suse.cz>
11487 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
11489 2013-02-20 Richard Biener <rguenther@suse.de>
11491 * genpreds.c (write_lookup_constraint): Do not compare first
11492 letter of the constraint again.
11494 2013-02-20 Richard Biener <rguenther@suse.de>
11496 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
11498 (get_use_iv_cost): Terminate hashtable walk when coming across
11501 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
11503 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
11504 reassociation for avx2 targets.
11506 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11508 * config/microblaze/microblaze.c: microblaze_has_clz = 0
11509 Add version check for v8.10.a to enable microblaze_has_clz
11510 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
11511 version and TARGET_PATTERN_COMPARE check
11512 * config/microblaze/microblaze.md: New clzsi2 instruction
11514 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11516 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
11517 function before branching.
11519 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
11521 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
11523 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
11525 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
11527 PR middle-end/55889
11528 * sel-sched.c: Include ira.h.
11529 (implicit_clobber_conflict_p): New function.
11530 (moveup_expr): Use it.
11531 * Makefile.in (sel-sched.o): Depend on ira.h.
11533 2013-02-19 Richard Biener <rguenther@suse.de>
11535 PR tree-optimization/56384
11536 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
11537 (vn_hash_type): Split out from ...
11538 (vn_hash_constant_with_type): ... here.
11539 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
11540 (vn_phi_eq): Compare types from vn_phi_s structure.
11541 (vn_phi_lookup): Populate vn_phi_s type.
11542 (vn_phi_insert): Likewise.
11544 2013-02-19 Jakub Jelinek <jakub@redhat.com>
11546 PR tree-optimization/56350
11547 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
11548 if haven't found reduction or nested cycle operand, rather than
11549 asserting we must find it.
11551 PR tree-optimization/56381
11552 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
11555 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
11556 Jakub Jelinek <jakub@redhat.com>
11559 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
11560 (swap_optab_enable): Same.
11561 (init_all_optabs): Use argument instead of global.
11562 * tree.h (struct tree_optimization_option): New field target_optabs.
11563 * expr.h (init_all_optabs): Add argument to prototype.
11564 (TREE_OPTIMIZATION_OPTABS): New.
11565 (save_optabs_if_changed): Protoize.
11566 * optabs.h: Declare this_fn_optabs.
11567 * optabs.c (save_optabs_if_changed): New.
11568 Declare this_fn_optabs.
11569 (init_optabs): Add argument to init_all_optabs() call.
11570 * function.c (invoke_set_current_function_hook): Handle per
11572 * function.h (struct function): New field optabs.
11573 * config/mips/mips.c (mips_set_mips16_mode): Handle when
11574 optimization_current_node has changed.
11575 * target-globals.h (save_target_globals_default_opts): Protoize.
11576 * target-globals.c (save_target_globals_default_opts): New.
11578 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11581 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
11582 registers %fr12 and %fr12R as call used.
11585 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
11586 and HImode, require all displacements to be an integer multiple of
11588 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
11589 only allow QImode and HImode when reload is in progress and strict is
11590 true. Likewise for symbolic addresses. Use base14_operand to check
11591 displacements in REG+BASE addresses.
11593 2013-02-18 Richard Biener <rguenther@suse.de>
11595 PR tree-optimization/56366
11596 * tree-vect-loop.c (get_initial_def_for_induction): Properly
11597 handle sign-conversion of outer-loop initial induction value.
11599 2013-02-18 Richard Biener <rguenther@suse.de>
11601 PR middle-end/56349
11602 * cfghooks.c (merge_blocks): If we merge a latch into another
11603 block adjust references to it.
11604 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
11605 (verify_loop_structure): Verify that a recorded latch is in fact
11608 2013-02-18 Richard Biener <rguenther@suse.de>
11610 PR tree-optimization/56321
11611 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
11612 order SSA name release and virtual operand unlinking.
11614 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11616 * config/microblaze/microblaze.md (save_stack_block): Define.
11617 (restore_stack_block): Likewise.
11619 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11621 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
11622 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
11623 * config/microblaze/microblaze.c (microblaze_option_override):
11624 Bail out early for PIC modes when target does not support PIC.
11626 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11628 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
11629 Replace with a microblaze version.
11630 (microblaze_trampoline_init): Adapt for microblaze.
11631 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
11634 2013-02-16 Jakub Jelinek <jakub@redhat.com>
11635 Dodji Seketeli <dodji@redhat.com>
11638 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
11639 (instrument_mem_region_access): Do not forget to always put
11640 instrumentation of the of 'base' and 'base + len' in a "if (len !=
11641 0) statement, even for cases where either 'base' or 'base + len'
11642 are not instrumented -- because they have been previously
11643 instrumented. Simplify the logic by putting all the statements
11644 instrument 'base + len' inside a sequence, and then insert that
11645 sequence right before the current insertion point. Then, to
11646 instrument 'base + len', just get an iterator on that statement.
11647 And do not forget to update the pointer to iterator the function
11648 received as argument.
11650 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
11652 PR rtl-optimization/56348
11653 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
11655 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
11657 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
11658 (clean_graph_dump_file): Pass base to start_graph_dump.
11660 2013-02-14 Richard Henderson <rth@redhat.com>
11663 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
11665 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
11667 * collect2-aix.h: Define F_LOADONLY.
11669 2013-02-14 Richard Biener <rguenther@suse.de>
11672 * varasm.c (output_constant_def_1): Get the decl representing
11673 the constant as argument.
11674 (output_constant_def): Wrap output_constant_def_1.
11675 (make_decl_rtl): Use output_constant_def_1 with the decl
11676 representing the constant.
11677 (build_constant_desc): Optionally re-use a decl already
11678 representing the constant.
11679 (tree_output_constant_def): Adjust.
11681 2013-02-14 Dodji Seketeli <dodji@redhat.com>
11684 * asan.c (instrument_builtin_call): Really put the length of the
11685 second source argument into src1_len.
11687 2013-02-13 Jakub Jelinek <jakub@redhat.com>
11689 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
11690 argument. If it is false, don't create edge from then_bb to
11692 (insert_if_then_before_iter): Pass true to it.
11693 (build_check_stmt): Pass false to it.
11694 (transform_statements): Flush hash table only on extended basic
11695 block boundaries, rather than at the beginning of every bb.
11696 Don't flush hash table on nonfreeing_call_p calls.
11697 * tree-flow.h (nonfreeing_call_p): New prototype.
11698 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
11700 2013-02-13 David S. Miller <davem@davemloft.net>
11702 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
11704 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
11707 * ira.c (max_regno_before_ira): Move from ...
11709 (fix_reg_equiv_init): Use max_regno_before_ira instead of
11712 2013-02-13 Jakub Jelinek <jakub@redhat.com>
11714 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
11716 2013-02-13 Richard Biener <rguenther@suse.de>
11719 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
11720 globals in MEM_REFs.
11722 2013-02-13 Richard Biener <rguenther@suse.de>
11724 * loop-init.c (loop_optimizer_init): Clear loop state when
11725 re-initializing preserved loops.
11726 * loop-unswitch.c (unswitch_single_loop): Return whether
11727 we unswitched the loop. Do not verify loop state here.
11728 (unswitch_loops): When we unswitched a loop discover new loops.
11730 2013-02-13 Kostya Serebryany <kcc@google.com>
11732 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
11734 * sanitizer.def: Rename __asan_init to __asan_init_v1.
11736 2013-02-12 Dodji Seketeli <dodji@redhat.com>
11738 Avoid instrumenting duplicated memory access in the same basic block
11739 * Makefile.in (asan.o): Add new dependency on hash-table.h
11740 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
11741 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
11742 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
11743 (free_mem_ref_resources, has_mem_ref_been_instrumented)
11744 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
11745 (get_mem_ref_of_assignment): New functions.
11746 (get_mem_refs_of_builtin_call): Extract from
11747 instrument_builtin_call and tweak a little bit to make it fit with
11749 (instrument_builtin_call): Use the new
11750 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
11751 of is_gimple_builtin_call.
11752 (instrument_derefs, instrument_mem_region_access): Insert the
11753 instrumented memory reference into the hash table.
11754 (maybe_instrument_assignment): Renamed instrument_assignment into
11755 this, and change it to advance the iterator when instrumentation
11756 actually happened and return true in that case. This makes it
11757 homogeneous with maybe_instrument_assignment, and thus give a
11758 chance to callers to be more 'regular'.
11759 (transform_statements): Clear the memory reference hash table
11760 whenever we enter a new BB, when we cross a function call, or when
11761 we are done transforming statements. Use
11762 maybe_instrument_assignment instead of instrumentation. No more
11763 need to special case maybe_instrument_assignment and advance the
11764 iterator after calling it; it's now handled just like
11765 maybe_instrument_call. Update comment.
11767 2013-02-13 Richard Biener <rguenther@suse.de>
11769 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
11770 Fix loop discovery code.
11772 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
11774 PR inline-asm/56148
11775 * lra-constraints.c (process_alt_operands): Match early clobber
11776 operand with itself. Check conflicts with earlyclobber only if
11777 the operand is not reloaded. Prefer to reload conflicting operand
11778 if earlyclobber and matching operands are the same.
11780 2013-02-12 Richard Biener <rguenther@suse.de>
11783 * lto-streamer-out.c (write_symbol): Do not output symbols
11784 for hard register variables.
11786 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
11789 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
11790 (umulsidi3_insn, mulsidi3_insn): New insns.
11792 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
11794 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
11795 (struct tune_params): Add vec_costs field.
11796 * config/arm/arm.c (arm_builtin_vectorization_cost)
11797 (arm_add_stmt_cost): New functions.
11798 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
11799 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
11800 (arm_default_vec_cost): New struct of type cpu_vec_costs.
11801 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
11802 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
11803 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
11804 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
11806 2013-02-12 Richard Biener <rguenther@suse.de>
11809 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
11810 decls again if possible.
11812 2013-02-12 Richard Biener <rguenther@suse.de>
11814 PR middle-end/56288
11815 * tree-ssa.c (verify_ssa_name): Fix check, move
11816 SSA_NAME_IN_FREE_LIST check up.
11818 2013-02-12 Jakub Jelinek <jakub@redhat.com>
11819 Steven Bosscher <steven@gcc.gnu.org>
11821 PR rtl-optimization/56151
11822 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
11823 equal to op0 or op1, and last_insn pattern is CODE operation
11824 with MEM dest and one of the operands matches that MEM.
11826 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
11828 * doc/extend.texi: Document Function Multiversioning and "default"
11829 parameter string to target attribute.
11830 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
11831 target attribute parameter is "default".
11832 (ix86_compare_version_priority): Remove checks for target attribute.
11833 (ix86_mangle_function_version_assembler_name): Change error to sorry.
11834 Remove check for target attribute equal to NULL. Add assert.
11835 (ix86_generate_version_dispatcher_body): Change error to sorry.
11837 2013-02-11 Iain Sandoe <iain@codesourcery.com>
11838 Jack Howarth <howarth@bromo.med.uc.edu>
11839 Patrick Marlier <patrick.marlier@gmail.com>
11842 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
11843 define ENDFILE_SPEC as TM_DESTRUCTOR.
11844 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
11846 2013-02-11 Alexander Potapenko <glider@google.com>
11847 Jack Howarth <howarth@bromo.med.uc.edu>
11848 Jakub Jelinek <jakub@redhat.com>
11851 * config/darwin.c (cdtor_record): Rename ctor_record.
11852 (sort_cdtor_records): Rename sort_ctor_records.
11853 (finalize_dtors): New routine to sort destructors by
11854 priority before use in assemble_integer.
11855 (machopic_asm_out_destructor): Use finalize_dtors if needed.
11857 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
11859 PR rtl-optimization/56275
11860 * simplify-rtx.c (avoid_constant_pool_reference): Check that
11861 offset is non-negative and less than cmode size before
11862 calling simplify_subreg.
11864 2013-02-11 Richard Biener <rguenther@suse.de>
11866 PR tree-optimization/56264
11867 * cfgloop.h (fix_loop_structure): Adjust prototype.
11868 * loop-init.c (fix_loop_structure): Return the number of
11869 newly discovered loops.
11870 * tree-cfgcleanup.c (repair_loop_structures): When new loops
11871 are discovered, do a full loop-closed SSA rewrite.
11873 2013-02-11 Richard Biener <rguenther@suse.de>
11875 PR tree-optimization/56273
11876 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
11878 (check_array_ref): Fix missing newline in dumps.
11879 (search_for_addr_array): Likewise.
11881 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
11883 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
11885 2013-02-09 Jakub Jelinek <jakub@redhat.com>
11888 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
11890 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
11892 PR rtl-optimization/56246
11893 * lra-constraints.c (simplify_operand_subreg): Try to reuse
11895 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
11896 constraints are satisfied.
11898 2013-02-08 Jeff Law <law@redhat.com>
11901 * emit-rtl.c (reg_is_parm_p): New function.
11902 * regs.h (reg_is_parm_p): New prototype.
11903 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
11904 callee-clobbered registers.
11906 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
11909 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
11910 If there is no implicit builtin declaration, just return NULL.
11912 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
11914 * config/i386/sse.md (FMAMODEM): New mode iterator.
11915 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
11916 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
11918 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
11920 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
11921 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
11922 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
11924 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11926 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
11927 (microblaze*-*-elf): Likewise.
11928 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
11930 * config/microblaze/microblaze-c.c: Add builtin defines for
11931 _LITTLE_ENDIAN and _BIG_ENDIAN.
11932 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
11933 add to TARGET_DEFAULT flags.
11934 Expand ASM_SPEC and LINK_SPEC.
11935 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
11936 * config/microblaze/microblaze.md: Update extendsidi2 and
11937 movdi_internal instructions to use low-order / high-order reg
11939 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
11940 options and inversemask / mask of LITTLE_ENDIAN.
11941 * config/microblaze/t-microblaze: Expand multilib options to
11942 include mlittle-endian (le) and update exceptions patterns.
11944 2013-02-08 Jakub Jelinek <jakub@redhat.com>
11946 PR rtl-optimization/56195
11947 * lra-constraints.c (get_reload_reg): Don't reuse regs
11948 if they have smaller mode than requested, if they have
11949 wider mode than requested, try to return a SUBREG.
11951 PR tree-optimization/56250
11952 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
11953 if type is unsigned and code isn't MULT_EXPR.
11955 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
11957 PR tree-optimization/56064
11958 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
11959 bits according to mode.
11960 * fixed-value.h (fixed_from_double_int)
11961 (const_fixed_from_double_int): Adjust comments.
11963 2013-02-08 Richard Biener <rguenther@suse.de>
11966 * lto-streamer.h (struct data_in): Remove current_file, current_line
11967 and current_col members.
11968 * lto-streamer-out.c (lto_output_location): Stream changed bits
11969 en-block for efficiency.
11970 * lto-streamer-in.c (clear_line_info): Remove.
11971 (lto_input_location): Cache current file, line and column
11972 globally via local statics. Read changed bits en-block.
11973 (input_function): Do not call clear_line_info.
11974 (lto_read_body): Likewise.
11975 (lto_input_toplevel_asms): Likewise.
11977 2013-02-08 Michael Matz <matz@suse.de>
11979 PR tree-optimization/52448
11980 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
11981 (nt_call_phase): New static.
11982 (add_or_mark_expr): Only mark accesses with newer phase than any
11984 (nonfreeing_call_p): New.
11985 (nt_init_block): Update nt_call_phase, mark blocks as visited.
11986 (nt_fini_block): Keep blocks marked as visited.
11987 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
11989 2013-02-08 Richard Biener <rguenther@suse.de>
11991 * ira.c (ira): Free broken dominator information.
11993 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
11995 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
11997 2013-02-08 Marek Polacek <polacek@redhat.com>
11999 * cfgloop.c (verify_loop_structure): Add more checking of headers.
12001 2013-02-08 Richard Biener <rguenther@suse.de>
12003 PR middle-end/56181
12004 * cfgloop.h (flow_loops_find): Adjust.
12005 (bb_loop_header_p): Declare.
12006 * cfgloop.c (bb_loop_header_p): New function split out from ...
12007 (flow_loops_find): ... here. Adjust function signature,
12008 support incremental loop structure update.
12009 (verify_loop_structure): Cleanup. Verify a loop is a loop.
12010 * cfgloopmanip.c (fix_loop_structure): Move ...
12011 * loop-init.c (fix_loop_structure): ... here.
12012 (apply_loop_flags): Split out from ...
12013 (loop_optimizer_init): ... here.
12014 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
12015 in incremental mode, only remove dead loops here.
12017 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
12020 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
12021 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
12022 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
12023 (*round<mode>3.libgcc): New insns for fixed-modes.
12024 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
12025 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
12026 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
12027 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
12028 implementations. Define to __builtin_avr_absFX,
12029 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
12030 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
12031 __builtin_avr_countlsFX, respectively.
12032 * config/avr/avr-c.c (target.h): Include it.
12033 (enum avr_builtin_id): New enum.
12034 (avr_resolve_overloaded_builtin): New static function.
12035 (avr_register_target_pragmas): Use it to set
12036 targetm.resolve_overloaded_builtin.
12037 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
12038 tree nodes used by DEF_BUILTIN.
12039 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
12040 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
12041 <AVR_BUILTIN_xxBITS>: Same.
12043 2013-02-08 Richard Biener <rguenther@suse.de>
12045 * cfgloop.c (verify_loop_structure): Properly handle
12046 a loop exiting to another loop header.
12047 * ira-int.h (ira_loops): Remove.
12048 * ira.c (ira_loops): Remove.
12049 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
12050 (do_reload): Use loop_optimizer_finalize.
12051 * ira-build.c (create_loop_tree_nodes): Use get_loops and
12052 number_of_loops to access the loop tree.
12053 (more_one_region_p): Likewise.
12054 (finish_loop_tree_nodes): Likewise.
12055 (rebuild_regno_allocno_maps): Likewise.
12056 (mark_loops_for_removal): Likewise.
12057 (mark_all_loops_for_removal): Likewise.
12058 (remove_unnecessary_regions): Likewise.
12059 (ira_build): Likewise.
12060 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
12062 2013-02-08 Richard Biener <rguenther@suse.de>
12064 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
12065 * ipa-pure-const.c (analyze_function): Avoid calling
12066 mark_irreducible_loops twice.
12067 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
12069 2013-02-07 David S. Miller <davem@davemloft.net>
12071 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
12073 * var-tracking.c (vt_add_function_parameter): Test the presence of
12074 HAVE_window_save properly and do not remap argument registers when
12075 we have a leaf function.
12077 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
12080 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
12082 * config/i386/i386.c (ix86_print_operand): Ditto.
12084 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
12086 * lra-constraints.c (process_alt_operands): Fix recently added comment.
12088 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
12090 PR rtl-optimization/56225
12091 * lra-constraints.c (process_alt_operands): Check that reload hard
12092 reg can hold value for strict_low_part.
12094 2013-02-07 Jakub Jelinek <jakub@redhat.com>
12097 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
12098 dwarf2out_end_function.
12099 (in_first_function_p, maybe_at_text_label_p,
12100 first_loclabel_num_not_at_text_label): New variables.
12101 (dwarf2out_var_location): In the first function find out
12102 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
12103 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
12106 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
12108 PR rtl-optimization/56178
12109 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
12110 SUBREG of a register. Tidy up related block of code.
12111 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
12112 note if the source is a register or a SUBREG of a register.
12114 2013-02-07 Jakub Jelinek <jakub@redhat.com>
12117 * config/rs6000/rs6000.md (ptrm): New mode attr.
12118 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
12119 call_value_indirect_aix<pttrsize>,
12120 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
12123 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
12125 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
12126 if -bnortl. Convert to strcmp and strncmp.
12128 2013-02-07 Alan Modra <amodra@gmail.com>
12131 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
12132 addresses won't wrap when offsetting.
12133 (rs6000_secondary_reload): Provide secondary reloads needed for
12134 wrapping LO_SUM addresses.
12136 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
12138 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
12139 MACH, just __MACH__.
12141 2013-02-06 Richard Biener <rguenther@suse.de>
12143 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
12144 instead of calling fix_loop_structure.
12146 2013-02-06 Jakub Jelinek <jakub@redhat.com>
12148 PR middle-end/56217
12149 * omp-low.c (use_pointer_for_field): Return false if
12150 lower_send_shared_vars doesn't generate any copy-out code.
12152 2013-02-06 Tom de Vries <tom@codesourcery.com>
12154 PR rtl-optimization/56131
12155 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
12156 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
12157 of the label is NULL. Add comment.
12159 2013-02-05 Jakub Jelinek <jakub@redhat.com>
12161 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
12164 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
12165 (STATIC_LIBTSAN_LIBS): Likewise.
12166 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
12167 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
12168 is defined, don't add anything else beyond that.
12169 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
12170 (LINK_COMMAND_SPEC): Use them.
12172 PR tree-optimization/56205
12173 * tree-stdarg.c (check_all_va_list_escapes): Return true if
12174 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
12175 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
12177 2013-02-05 Richard Biener <rguenther@suse.de>
12179 PR tree-optimization/53342
12180 PR tree-optimization/53185
12181 * tree-vectorizer.h (vect_check_strided_load): Remove.
12182 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
12183 not disallow peeling for vectorized strided loads.
12184 (vect_check_strided_load): Make static and simplify.
12185 (vect_analyze_data_refs): Adjust.
12186 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
12187 correctly when vectorizing strided loads.
12189 2013-02-05 Richard Biener <rguenther@suse.de>
12191 * doc/install.texi: Refer to ISL, not PPL.
12193 2013-02-05 Jan Hubicka <jh@suse.cz>
12195 PR tree-optimization/55789
12196 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
12198 2013-02-05 Jan Hubicka <jh@suse.cz>
12200 PR tree-optimization/55789
12201 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
12202 the dead call anyway.
12204 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
12207 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
12209 2013-02-04 Alexander Potapenko <glider@google.com>
12210 Jack Howarth <howarth@bromo.med.uc.edu>
12211 Jakub Jelinek <jakub@redhat.com>
12214 * config/darwin.c (sort_ctor_records): Stabilized qsort
12215 on constructor priority by using original position.
12216 (finalize_ctors): New routine to sort constructors by
12217 priority before use in assemble_integer.
12218 (machopic_asm_out_constructor): Use finalize_ctors if needed.
12220 2013-02-04 Jakub Jelinek <jakub@redhat.com>
12223 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
12224 about visibility on artificial decls.
12225 * config/sol2.c (solaris_assemble_visibility): Likewise.
12227 2013-02-04 Kai Tietz <ktietz@redhat.com>
12230 * config/i386/i386.c (function_value_ms_64): Add additional valtype
12231 argument and improve checking of return-argument types for 16-byte
12233 (ix86_function_value_1): Add additional valtype argument on call
12234 of function_value_64.
12235 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
12236 handling infunction_value_64 function.
12238 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
12240 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
12242 2013-02-04 Richard Biener <rguenther@suse.de>
12244 PR tree-optimization/56188
12245 * tree-ssa-structalias.c (label_visit): Consider case with
12246 initially non-empty points-to set.
12247 (perform_var_substitution): Dump node mapping and clean up.
12249 2013-02-04 Richard Guenther <rguenther@suse.de>
12252 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
12253 node prevail as last resort.
12254 (lto_symtab_merge_decls): Remove guard on LTRANS here.
12255 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
12257 2013-02-04 Richard Biener <rguenther@suse.de>
12259 PR tree-optimization/56113
12260 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
12262 (equiv_class_lookup_or_add): ... this.
12263 (label_visit): Adjust and fix error in previous patch.
12264 (perform_var_substitution): Adjust.
12266 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
12268 * config/sh/divtab.c: Fix formatting and comments throughout the file.
12269 * config/sh/sh4-300.md: Likewise.
12270 * config/sh/sh4a.md: Likewise.
12271 * config/sh/constraints.md: Likewise.
12272 * config/sh/sh.md: Likewise.
12273 * config/sh/netbsd-elf.h: Likewise.
12274 * config/sh/predicates.md: Likewise.
12275 * config/sh/sh-protos.h: Likewise.
12276 * config/sh/ushmedia.h: Likewise.
12277 * config/sh/linux.h: Likewise.
12278 * config/sh/sh.c: Likewise.
12279 * config/sh/superh.h: Likewise.
12280 * config/sh/elf.h: Likewise.
12281 * config/sh/sh4.md: Likewise.
12282 * config/sh/sh.h: Likewise.
12284 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12286 * config/pa/constraints.md: Adjust unused letters. Change "T"
12287 constraint to match_test floating_point_store_memory_operand().
12288 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
12289 (base14_operand): New.
12290 (floating_point_store_memory_operand): New.
12291 (integer_store_memory_operand): Revise to use base14_operand and
12292 reg_plus_base_memory_operand.
12293 (move_dest_operand): Allow symbolic_memory_operands.
12294 (symbolic_memory_operand): Check for LO_SOM.
12295 (symbolic_operand): Change default case to break.
12296 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
12297 CONST_DOUBLE values to be reloaded by putting them into memory when
12298 the destination is a floating point register.
12299 (movdf): Remove code to handle CONST_DOUBLE.
12301 (reload_indf_r1): New.
12302 (reload_insf_r1): New.
12303 Consistently use "Q" and "T" constraints with integer and floating
12304 point move instructions, respectively.
12305 (movdi): Remove FAIL.
12306 Change predicate for source operand unamed DImode move from
12307 general_operand to move_src_operand.
12308 (umulsidi3): Change predicate for destination operand to
12310 Likewise for similar unamed patterns.
12311 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
12312 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
12313 (hppa_legitimize_address): Simplify mask calculation.
12314 (pa_emit_move_sequence): Revised handling of secondary reloads from
12315 REG+D addresses for floating point loads and stores. Directly handle
12316 loading CONST0_RTX (mode) to a floating point register.
12317 (pa_secondary_reload): Handle reloading DF and SFmode constant values
12318 to floating point registers. Don't restrict secondary reloads to
12319 floating point registers to integer modes. Revise some comments and
12321 (TARGET_LEGITIMATE_ADDRESS_P): Define.
12322 (pa_legitimate_address_p): New.
12323 (pa_legitimize_reload_address): New.
12324 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
12325 (STRICT_REG_OK_FOR_BASE_P): New.
12326 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
12327 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
12329 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
12330 Andrew Dixie <andrewd@gentrack.com>
12332 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
12335 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
12337 * expmed.c (extract_bit_field_1): Pass the full width of the
12338 structure to get_best_reg_extraction_insn.
12340 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
12343 * configure.ac (use_cxa_atexit): Add AIX.
12344 * configure: Regenerate.
12346 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
12348 2013-02-01 Jakub Jelinek <jakub@redhat.com>
12351 * final.c (need_profile_function): New variable.
12352 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
12353 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
12354 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
12355 notes, targetm.asm_out.function_prologue doesn't emit anything,
12356 HAVE_prologue and profiler should be emitted before prologue,
12357 set need_profile_function instead of emitting it.
12358 (final_scan_insn): If need_profile_function, emit
12359 profile_function on the first NOTE_INSN_BASIC_BLOCK or
12360 NOTE_INSN_FUNCTION_BEG note.
12362 2013-02-01 Richard Henderson <rth@redhat.com>
12364 * config/rs6000/rs6000.md (smulditi3): New.
12367 * config/alpha/alpha.md (umulditi3): New.
12369 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
12371 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
12372 (ASM_OUTPUT_ALIGNED_LOCAL): New.
12374 2013-02-01 Richard Biener <rguenther@suse.de>
12376 PR tree-optimization/56113
12377 * tree-ssa-structalias.c (label_visit): Reduce work for
12378 single-predecessor nodes.
12380 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
12382 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
12383 range isn't testing for zero.
12385 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
12387 PR middle-end/56113
12388 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
12390 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
12391 Nick Clifton <nickc@redhat.com>
12393 * config/v850/constraints.md (Q): Define as a memory constraint.
12394 * config/v850/predicates.md (label_ref_operand): New predicate.
12395 (e3v5_shift_operand): New predicate.
12396 (ior_operator): New predicate.
12397 * config/v850/t-v850: Add e3v5 multilib.
12398 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
12399 (v850_gen_movdi): Prototype.
12400 * config/v850/v850.c: Add support for e3v5 architecture.
12401 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
12403 (construct_save_jarl): Add e3v5 long JARL support.
12404 (v850_adjust_insn_length): New function. Adjust length of call
12405 insns when using e3v5 instructions.
12406 (v850_gen_movdi): New function: Generate instructions to move a
12408 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
12409 (CPP_SPEC): Define __v850e3v5__ as appropriate.
12410 (TARGET_USE_FPU): Enable for e3v5.
12411 (CONST_OK_FOR_W): New macro.
12412 (ADJUST_INSN_LENGTH): Define.
12413 * config/v850/v850.md (UNSPEC_LOOP): Define.
12414 (attr cpu): Add v850e3v5.
12415 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
12416 (movdi): New pattern.
12417 (movdi_internal): New pattern.
12418 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
12419 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
12420 (cstoresf4): Likewise.
12421 (cstoredf4): Likewise.
12422 (insv): New pattern.
12423 (rotlso3_a): New pattern.
12424 (rotlsi3_b): New pattern
12425 (rotlsi3_v850e3v5): New pattern.
12426 (doloop_begin): New pattern.
12427 (fix_loop_counter): New pattern.
12428 (doloop_end): New pattern.
12429 (branch_normal): Add e3v5 long branch support.
12430 (branch_invert): Likewise.
12431 (branch_z_normal): Likewise.
12432 (branch_z_invert): Likewise.
12433 (branch_nz_normal): Likewise.
12434 (branch_nz_invert): Likewise.
12435 (call_internal_short): Add e3v5 register-indirect JARL support.
12436 (call_internal_long): Likewise.
12437 (call_value_internal_short): Likewise.
12438 (call_value_internal_long): Likewise.
12439 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
12440 (mloop): New option.
12441 * config.gcc: Add support for configuring v840e3v5 target.
12442 * doc/invoke.texi: Document new v850 specific command line options.
12444 2013-01-31 Paul Koning <ni1d@arrl.net>
12448 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
12449 children if parent is a class.
12450 (prune_unused_types_prune): Don't add DW_AT_declaration.
12452 2013-01-31 Richard Biener <rguenther@suse.de>
12454 PR tree-optimization/56157
12455 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
12456 match up operand with SLP child.
12458 2013-01-31 Jason Merrill <jason@redhat.com>
12461 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
12462 parameters the first time.
12463 (gen_scheduled_generic_parms_dies): Check completeness here.
12465 2013-01-31 Richard Biener <rguenther@suse.de>
12467 PR middle-end/53073
12468 * common.opt (faggressive-loop-optimizations): New flag,
12469 enabled by default.
12470 * doc/invoke.texi (faggressive-loop-optimizations): Document.
12471 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
12472 infer_loop_bounds_from_undefined by it.
12474 2013-01-31 Richard Biener <rguenther@suse.de>
12476 PR tree-optimization/56150
12477 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
12478 visit virtual operands.
12479 (find_uses_to_rename_bb): Likewise.
12481 2013-01-31 Richard Biener <rguenther@suse.de>
12483 PR tree-optimization/56150
12484 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
12485 mixed store non-store stmts.
12487 2013-01-30 Jakub Jelinek <jakub@redhat.com>
12490 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
12491 LIBASAN_EARLY_SPEC is defined.
12492 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
12493 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
12495 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
12498 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
12499 invalid args instead of ICEing on it.
12500 (ix86_valid_target_attribute_tree): Return error_mark_node if
12501 ix86_valid_target_attribute_inner_p failed.
12502 (ix86_valid_target_attribute_p): Return false only if
12503 ix86_valid_target_attribute_tree returned error_mark_node. Allow
12504 target("default") attribute.
12505 (sorted_attr_string): Change argument from const char * to tree,
12506 merge in all target attribute arguments rather than just one.
12507 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
12508 instead of free. Avoid using strcat.
12509 (ix86_mangle_function_version_assembler_name): Mangle
12510 target("default") as if no target attribute is present. Adjust
12511 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
12512 instead of xmalloc and XDELETEVEC instead of free.
12513 (ix86_function_versions): Don't return true if one of the decls
12514 doesn't have target attribute. If they don't and one of the decls
12515 is DECL_FUNCTION_VERSIONED, report an error. Adjust
12516 sorted_attr_string caller. Use XDELETEVEC instead of free.
12517 (ix86_supports_function_versions): Remove.
12518 (make_name): Fix up formatting.
12519 (make_dispatcher_decl): Remove resolver_name and its initialization.
12520 Avoid leaking memory.
12521 (is_function_default_version): Return true if there is
12522 target("default") attribute rather than no target attribute at all.
12523 (make_resolver_func): Avoid leaking memory.
12524 (ix86_generate_version_dispatcher_body): Likewise.
12525 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
12526 * target.def (supports_function_versions): Remove.
12527 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
12528 * doc/tm.texi: Regenerated.
12530 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
12532 PR rtl-optimization/56144
12533 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
12534 for values with side effects.
12536 2013-01-30 Richard Biener <rguenther@suse.de>
12538 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
12539 (sparseset_pop): Likewise.
12540 * cfganal.c (compute_idf): Likewise. Increase work-stack size
12541 to be able to use quick_push in the worker loop.
12543 2013-01-30 Marek Polacek <polacek@redhat.com>
12545 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
12547 2013-01-30 Richard Biener <rguenther@suse.de>
12550 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
12552 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
12554 PR tree-optimization/56064
12555 * fixed-value.c (fixed_from_double_int): New function.
12556 * fixed-value.h (fixed_from_double_int): New prototype.
12557 (const_fixed_from_double_int): New static inline function.
12558 * fold-const.c (native_interpret_fixed): New static function.
12559 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
12560 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
12561 (native_encode_fixed): New static function.
12562 (native_encode_expr) <FIXED_CST>: Use it.
12563 (native_interpret_int): Move double_int worker code to...
12564 * double-int.c (double_int::from_buffer): ...this new static method.
12565 * double-int.h (double_int::from_buffer): Prototype it.
12567 2013-01-30 Richard Biener <rguenther@suse.de>
12569 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
12570 New pointer-map and obstack.
12571 (init_alias_vars): Allocate pointer-map and obstack.
12572 (delete_points_to_sets): Free them.
12573 (find_what_var_points_to): Cache result.
12574 (find_what_p_points_to): Adjust for changed interface of
12575 find_what_var_points_to.
12576 (compute_points_to_sets): Likewise.
12577 (ipa_pta_execute): Likewise.
12579 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12581 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
12582 * configure: Regenerate.
12583 * config.in: Regenerate.
12584 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
12585 #nobits/#progbits if supported.
12587 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
12590 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
12591 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
12592 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
12594 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12596 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
12597 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
12599 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12601 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
12602 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
12604 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12606 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
12608 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
12609 * config/arm/cortex-a7.md: New bypasses using
12610 arm_mac_accumulator_is_result.
12612 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12614 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
12615 (cortex_a7_neon_mla): Likewise.
12616 (cortex_a7_fpfmad): New reservation.
12617 (cortex_a7_fpmacs): Use ffmas and update required units.
12618 (cortex_a7_fpmuld): Update required units and latency.
12619 (cortex_a7_fpmacd): Likewise.
12620 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
12621 (cortex_a7_neon). Likewise.
12622 (bypass) Update participating units.
12624 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12626 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
12627 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
12629 * config/arm/vfp11.md (vfp_farith): Use ffmas.
12630 (vfp_fmul): Use ffmad.
12631 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
12632 (cortex_r4_fmacd): Use ffmad.
12633 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
12634 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
12635 (cortex_a9_fmacd): Use ffmad.
12636 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
12637 (cortex_a8_vfp_macd): Use ffmad.
12638 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
12639 (cortex_a5_fpmacd): Use ffmad.
12640 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
12641 (cortex_a15_vfp_macd): Use ffmad.
12642 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
12644 2013-01-29 Jason Merrill <jason@redhat.com>
12647 * varasm.c (default_assemble_visibility): Don't warn about
12648 visibility on artificial decls.
12650 2013-01-29 Richard Biener <rguenther@suse.de>
12652 PR tree-optimization/56113
12653 * tree-ssa-structalias.c (equiv_class_lookup): Also return
12655 (label_visit): Free duplicate bitmaps and record the leader instead.
12656 (perform_var_substitution): Adjust.
12658 2013-01-29 Richard Biener <rguenther@suse.de>
12660 PR tree-optimization/55270
12661 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
12662 the CFG, schedule loops for fixup.
12664 2013-01-29 Nick Clifton <nickc@redhat.com>
12666 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
12669 2013-01-28 Leif Ekblad <leif@rdos.net>
12671 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
12672 * config/i386/i386.h (TARGET_RDOS): New macro.
12673 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
12674 * config/i386/i386.c (ix86_option_override_internal): For 64bit
12675 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
12676 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
12677 DEFAULT_LARGE_SECTION_THRESHOLD.
12678 * config/i386/i386.md (R14_REG, R15_REG): New constants.
12679 * config/i386/rdos.h: New file.
12680 * config/i386/rdos64.h: New file.
12682 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
12685 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
12688 2013-01-28 Jakub Jelinek <jakub@redhat.com>
12690 PR rtl-optimization/56117
12691 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
12692 call cselib_lookup_from_insn on the MEM before calling
12693 add_insn_mem_dependence.
12695 2013-01-28 Richard Biener <rguenther@suse.de>
12697 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
12698 to a stmt that didn't have one.
12699 (copy_phis_for_bb): Likewise for PHI arguments.
12700 (copy_debug_stmt): Likewise for debug stmts.
12702 2013-01-28 Richard Biener <rguenther@suse.de>
12704 PR tree-optimization/56034
12705 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
12706 (partition_builtin_p): Adjust.
12707 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
12708 it is the last partition.
12709 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
12710 up the vertex for the definition.
12711 (classify_partition): Classify whether a partition is a
12712 PKIND_REDUCTION, thus has uses outside of the loop.
12713 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
12714 Merge all PKIND_REDUCTION partitions into the last partition.
12715 (tree_loop_distribution): Seed partitions from reductions as well.
12717 2013-01-28 Jakub Jelinek <jakub@redhat.com>
12719 PR tree-optimization/56125
12720 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
12721 pow(x,c) into sqrt(x) * powi(x, n/2) or
12722 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
12723 optimizing for size.
12724 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
12725 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
12728 PR tree-optimization/56094
12729 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
12730 to UNKNOWN_LOCATION while gimplifying expr.
12732 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
12735 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
12736 operand 0 in movabs insn template for -masm=intel asm alternative.
12737 (*movabs<mode>_2): Ditto for operand 1.
12739 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
12742 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
12745 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12747 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
12750 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
12752 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
12753 Undef to avoid warning.
12755 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
12757 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
12758 * configure: Regenerate.
12760 2013-01-25 Jakub Jelinek <jakub@redhat.com>
12762 PR tree-optimization/56098
12763 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
12764 for stmts with volatile ops.
12765 (cond_store_replacement): Don't optimize if assign has volatile ops.
12766 (cond_if_else_store_replacement_1): Don't optimize if either
12767 then_assign or else_assign have volatile ops.
12768 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
12771 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
12773 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
12775 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
12777 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
12778 missing ':' in asm example.
12780 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
12782 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
12783 entries into lane and laneq entries.
12784 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
12785 Remove AdvSIMD scalar modes.
12786 (aarch64_sq<r>dmulh_laneq<mode>): New.
12787 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
12789 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
12790 builtin implementations to relfect changes in RTL in aarch64-simd.md.
12791 * config/aarch64/iterators.md (VCOND): New.
12794 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
12797 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
12798 Add NULL LIBNAME argument to existing definitions.
12799 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
12800 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
12801 * config/avr/avr.c (DEF_BUILTIN): Same.
12802 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
12803 (avr_expand_builtin): Expand to a vanilla call if a libgcc
12804 implementation is available (DECL_ASSEMBLER_NAME is set).
12805 (avr_fold_absfx): New static function.
12806 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
12807 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
12808 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
12809 AVR_BUILTIN_ABSLLK.
12810 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
12811 (abshk, absk, abslk, absllk): Provide as static inline functions.
12813 2013-01-25 Marek Polacek <polacek@redhat.com>
12815 PR tree-optimization/56035
12816 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
12818 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
12820 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
12821 (*movtf_internal_rex64): Add (!o,C) alternative
12822 (*movxf_internal_rex64): Ditto.
12823 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
12825 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
12827 * doc/invoke.texi: fix typo.
12828 * doc/objc.texi: fix typo.
12830 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
12832 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
12833 for the first two alternatives.
12835 2013-01-24 Diego Novillo <dnovillo@google.com>
12837 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
12838 (ggc-zone.o): Remove.
12839 * configure.ac: Remove option --with-gc.
12840 * configure: Re-generate.
12841 * doc/install.texi: Remove documentation for --with-gc.
12842 * gengtype.c (write_enum_defn): Remove. Update all users.
12843 (write_Types_process_field): Remove generation of gt_e_* argument.
12844 (output_type_enum): Remove. Update all users.
12845 (write_enum_defn): Remove. Update all users.
12846 (enum alloc_zone): Remove. Update all users.
12847 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
12848 * ggc-common.c (ggc_splay_alloc): Remove first argument.
12849 Update all callers.
12850 (struct ptr_data): Remove field TYPE. Update all users.
12851 (gt_pch_note_object): Remove argument TYPE. Update all users.
12852 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
12854 * ggc-none.c (ggc_alloc_typed_stat): Remove.
12855 (struct alloc_zone): Remove.
12856 (ggc_internal_alloc_zone_stat): Remove.
12857 (ggc_internal_cleared_alloc_zone_stat): Remove.
12858 * ggc-page.c (ggc_alloc_typed_stat): Remove.
12859 (ggc_pch_count_object): Remove last argument. Update all users.
12860 (ggc_pch_alloc_object): Remove last argument. Update all users.
12861 (struct alloc_zone): Remove.
12862 * ggc-zone.c: Remove.
12863 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
12864 (struct alloc_zone): Remove.
12865 (ggc_alloc_typed_stat): Remove.
12866 (ggc_alloc_typed): Remove.
12867 (ggc_splay_alloc): Remove first argument.
12868 (rtl_zone): Remove. Update all users.
12869 (tree_zone): Remove. Update all users.
12870 (tree_id_zone): Remove. Update all users.
12871 (ggc_internal_zone_alloc_stat): Remove. Update all users.
12872 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
12873 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
12874 * tree-ssanames.c: Remove references to zone allocator in comments.
12876 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
12878 * config/avr/avr.c (avr_out_fract): Make register numbers that
12879 might be outside of source operand signed.
12881 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
12883 * config/i386/constraints.md (Yf): New constraint.
12884 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
12885 of f constraint to conditionaly disable x87 register preferences.
12886 (*movdf_internal): Ditto.
12887 (*movsf_internal): Ditto.
12889 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
12891 PR inline-asm/55934
12892 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
12893 that have operands with impossible constraints.
12894 Add a FIXME for a speed-up opportunity.
12895 * lra-constraints.c (process_alt_operands): Verify that a class
12896 selected from constraints on asms is valid for the operand mode.
12897 (curr_insn_transform): Remove incorrect comment.
12899 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
12901 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
12902 TOC operand is a valid symbol ref in the constant pool.
12904 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12906 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
12908 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
12911 * config/avr/stdfix.h: New file.
12912 * t-avr (stdfix-gcc.h): New rule to build it.
12913 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
12915 2013-01-23 Kostya Serebryany <kcc@google.com>
12917 * config/darwin.h: remove dependency on
12918 CoreFoundation (asan on Mac OS).
12920 2013-01-23 Jakub Jelinek <jakub@redhat.com>
12923 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
12924 instead of cmpdi_operand for first comparison operand.
12925 Don't assert that comparison operands aren't both constants.
12927 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
12929 * doc/install.texi (Downloading the Source): Update references to
12930 downloading separate components.
12932 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
12934 * doc/extend.texi (__int128): Improve grammar.
12936 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
12939 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
12940 alternative to (o,r).
12941 (*movdi_internal_rex64): Remove (!o,n) alternative.
12942 (DImode immediate->memory splitter): Remove.
12943 (DImode immediate->memory peephole2): Remove.
12944 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
12945 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
12946 alternative to (!o,*r).
12947 (*movtf_internal_sse): New pattern.
12948 (*movxf_internal_rex64): New pattern.
12949 (*movxf_internal): Disable for TARGET_64BIT.
12950 (*movdf_internal_rex64): Remove (!o,F) alternative.
12952 2013-01-22 Jakub Jelinek <jakub@redhat.com>
12954 PR middle-end/56074
12955 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
12956 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
12957 * tree-vect-loop-manip.c (find_loop_location): Also ignore
12958 stmt locations where LOCATION_LOCUS of the stmt location is
12959 UNKNOWN_LOCATION or BUILTINS_LOCATION.
12962 * config/i386/i386.md (UNSPEC_STOS): New.
12963 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
12964 *strsetqi_1): Add UNSPEC_STOS.
12966 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
12969 * doc/invoke.texi: Remove left over -Wsynth example.
12971 2013-01-21 Jakub Jelinek <jakub@redhat.com>
12973 PR tree-optimization/56051
12974 * fold-const.c (fold_binary_loc): Don't fold
12975 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
12976 a narrowing conversion, or widening conversion from signed
12979 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
12981 PR rtl-optimization/56023
12982 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
12983 dependent on debug instruction.
12985 2013-01-21 Martin Jambor <mjambor@suse.cz>
12987 PR middle-end/56022
12988 * function.c (allocate_struct_function): Call
12989 invoke_set_current_function_hook earlier.
12991 2013-01-21 Jakub Jelinek <jakub@redhat.com>
12993 * reload1.c (init_reload): Only initialize reload_obstack
12994 during the first call.
12996 2013-01-21 Marek Polacek <polacek@redhat.com>
12998 * cfgloop.c (verify_loop_structure): Fix up grammar.
13000 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
13002 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
13003 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
13005 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13008 * config/arm/marvell-pj4.md: Update copyright year.
13009 Fix up use of alu to alu_reg and simple_alu_imm.
13011 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
13013 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
13015 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
13018 * lra-constraints.c (curr_insn_transform): Don't reuse original
13019 insn for secondary memory move when memory mode should be different.
13021 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13023 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
13024 atomic_storedi_1): New patterns.
13026 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13028 btver2 pipeline descriptions.
13029 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
13031 * config/i386/i386.md (btver2_decode): New type attributes.
13032 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
13034 * config/i386/btver2.md: New file describing btver2 pipelines.
13036 2013-01-19 Andrew Pinski <apinski@cavium.com>
13038 PR tree-optimization/52631
13039 * tree-ssa-sccvn (visit_use): Before looking up the original
13040 statement, try looking up the simplified expression.
13042 2013-01-19 Anthony Green <green@moxielogic.com>
13044 * config/moxie/moxie.c (moxie_expand_prologue): Set
13045 current_function_static_stack_size.
13047 2013-01-18 Jakub Jelinek <jakub@redhat.com>
13049 PR tree-optimization/56029
13050 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
13051 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
13053 2013-01-18 Sharad Singhai <singhai@google.com>
13055 PR tree-optimization/55995
13056 * dumpfile.c (dump_loc): Print location only if available.
13057 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
13059 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
13062 * lra-constraints.c (curr_insn_transform): Reuse original insn for
13063 secondary memory move.
13064 (inherit_reload_reg): Use rclass instead of cl for
13065 check_secondary_memory_needed_p.
13067 2013-01-18 Jakub Jelinek <jakub@redhat.com>
13069 PR middle-end/56015
13070 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
13071 the case where writing real complex part of target modifies op1.
13073 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
13075 * config/aarch64/aarch64-simd.md
13076 (aarch64_vcond_internal<mode>): Handle unordered cases.
13077 * config/aarch64/iterators.md (v_cmp_result): New.
13079 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
13080 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13082 * config/arm/marvell-pj4.md: New file.
13083 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
13084 * config/arm/arm.md (generic_sched): Add marvell_pj4.
13085 (generic_vfp): Likewise.
13086 * config/arm/arm-cores.def: Add marvell-pj4.
13087 * config/arm/arm-tune.md: Regenerate.
13088 * config/arm/arm-tables.opt: Regenerate.
13089 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
13090 * doc/invoke.texi: Document marvell-pj4.
13092 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
13094 * config/aarch64/arm_neon.h: Map scalar types to standard types.
13096 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
13101 * var-tracking.c (negative_power_of_two_p): New.
13102 (global_get_addr_cache, local_get_addr_cache): New.
13103 (get_addr_from_global_cache, get_addr_from_local_cache): New.
13104 (vt_canonicalize_addr): Rewrite using the above. Adjust the
13106 (vt_stack_offset_p): Remove.
13107 (vt_canon_true_dep): Always canonicalize loc's address.
13108 (clobber_overlapping_mems): Make sure we have a MEM.
13109 (local_get_addr_clear_given_value): New.
13110 (val_reset): Clear local cached entries.
13111 (compute_bb_dataflow): Create and release the local cache.
13112 Disable duplicate MEMs clobbering.
13113 (emit_notes_in_bb): Clobber MEMs likewise.
13114 (vt_emit_notes): Create and release the local cache.
13115 (vt_initialize, vt_finalize): Create and release the global
13116 cache, respectively.
13117 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
13119 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
13121 PR libmudflap/53359
13122 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
13123 not found in the symtab.
13125 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
13128 PR rtl-optimization/55547
13129 PR rtl-optimization/53827
13132 * alias.c (offset_overlap_p): New, factored out of...
13133 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
13134 the conservative special case for symbolic constants. Don't
13135 adjust zero sizes on alignment.
13137 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
13139 PR rtl-optimization/52573
13140 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
13141 REG_UNUSED for the same register.
13143 2013-01-17 Richard Biener <rguenther@suse.de>
13144 Marek Polacek <polacek@redhat.com>
13146 PR rtl-optimization/55833
13147 * loop-unswitch.c (unswitch_loops): Move loop verification...
13148 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
13149 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
13150 Set it to true when we're removing a loop from hierarchy tree in
13151 an irreducible region.
13152 (fix_bb_placements): Adjust caller.
13153 (fix_loop_placements): Likewise.
13155 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
13157 * config/avr/builtins.def (DEF_BUILTIN): Factor out
13158 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
13159 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
13160 Remove ID. Adjust comments.
13161 * config/avr/avr-c.c (avr_builtin_name): Remove.
13162 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
13163 * config/avr/avr.c (avr_tolower): New static function.
13164 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
13165 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
13166 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
13169 2013-01-17 Jan Hubicka <jh@suse.cz>
13171 PR tree-optimization/55273
13172 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
13174 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
13177 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
13178 store through atomic_store<mode>_1.
13179 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
13181 2013-01-17 Martin Jambor <mjambor@suse.cz>
13183 PR tree-optimizations/55264
13184 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
13185 for virtual methods.
13186 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
13187 virtual methods before inlining is over.
13188 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
13190 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
13193 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
13195 PR rtl-optimization/56005
13196 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
13197 pending reads for prefetch.
13199 2013-01-16 Ian Bolton <ian.bolton@arm.com>
13201 * config/aarch64/aarch64.md
13202 (*cstoresi_neg_uxtw): New pattern.
13203 (*cmovsi_insn_uxtw): New pattern.
13204 (*<optab>si3_uxtw): New pattern.
13205 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
13206 (*<optab>si3_insn_uxtw): New pattern.
13207 (*bswapsi2_uxtw): New pattern.
13209 2013-01-16 Richard Biener <rguenther@suse.de>
13211 * tree-inline.c (tree_function_versioning): Remove set but
13212 never used variable.
13214 2013-01-16 Richard Biener <rguenther@suse.de>
13216 PR tree-optimization/55964
13217 * tree-flow.h (rename_variables_in_loop): Remove.
13218 (rename_variables_in_bb): Likewise.
13219 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
13220 (copy_loop_before): Adjust and delete update-ssa status.
13221 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
13222 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
13223 (rename_variables_in_loop): Remove.
13224 (slpeel_update_phis_for_duplicate_loop): Likewise.
13225 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
13226 use available cfg machinery instead of duplicating it.
13227 Update PHI nodes and perform poor-mans SSA update here.
13228 (slpeel_tree_peel_loop_to_edge): Adjust.
13230 2013-01-16 Richard Biener <rguenther@suse.de>
13232 PR tree-optimization/54767
13233 PR tree-optimization/53465
13234 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
13235 (vrp_visit_phi_node): For PHI arguments coming via backedges
13236 drop all symbolical range information.
13237 (execute_vrp): Compute backedges.
13239 2013-01-16 Richard Biener <rguenther@suse.de>
13241 * doc/install.texi: Update CLooG and ISL requirements to
13244 2013-01-16 Christian Bruel <christian.bruel@st.com>
13247 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
13248 (broken_move): Handle UNSPECV_SP_SWITCH_B.
13249 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
13251 2013-01-16 DJ Delorie <dj@redhat.com>
13253 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
13254 (UNSPECV_SP_SWITCH_E): New.
13255 (sp_switch_1): Change to an unspec.
13256 (sp_switch_2): Change to an unspec. Don't use post-inc when we
13259 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
13261 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
13262 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
13263 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
13264 (expand_mem_thread_fence): Ditto.
13265 (expand_mem_signal_fence): Ditto.
13266 (expand_atomic_load): Ditto.
13267 (expand_atomic_store): Ditto.
13269 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
13271 PR rtl-optimization/55547
13272 PR rtl-optimization/53827
13275 * alias.c (memrefs_conflict_p): Set sizes to negative after
13278 2013-01-15 Jakub Jelinek <jakub@redhat.com>
13281 * function.c (thread_prologue_and_epilogue_insns): Always
13282 add crtl->drap_reg to set_up_by_prologue.set, even if
13283 stack_realign_drap is false.
13285 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13287 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
13288 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
13289 *call): Fix indention.
13291 2013-01-15 Tom de Vries <tom@codesourcery.com>
13294 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
13297 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
13299 PR rtl-optimization/55153
13300 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
13302 2013-01-15 Martin Jambor <mjambor@suse.cz>
13304 PR tree-optimization/55920
13305 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
13306 accesses as grp_to_be_debug_replaced.
13308 2013-01-15 Jakub Jelinek <jakub@redhat.com>
13310 PR tree-optimization/55920
13311 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
13312 there is non-useless type conversion needed from debug rhs to lhs,
13313 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
13315 2013-01-15 Joseph Myers <joseph@codesourcery.com>
13316 Mikael Pettersson <mikpe@it.uu.se>
13319 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
13321 (ASM_OUTPUT_CASE_LABEL): Remove.
13322 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
13323 * final.c (shorten_branches): Update alignment of labels before
13324 jump tables if CASE_VECTOR_SHORTEN_MODE.
13326 2013-01-15 Richard Biener <rguenther@suse.de>
13329 * system.h: Do not include gmp.h for building host tools.
13331 2013-01-15 Richard Biener <rguenther@suse.de>
13333 PR middle-end/55882
13334 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
13335 account for bitpos when computing alignment.
13337 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
13339 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
13340 (ix86_target_macros_internal): Likewise.
13342 * config/i386/i386.c (m_CORE2I7): Removed.
13343 (m_CORE_HASWELL): New macro.
13344 (m_CORE_ALL): Likewise.
13345 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
13346 (initial_ix86_arch_features): Likewise.
13347 (processor_target_table): Initializations for Core avx2.
13348 (cpu_names): New names "core-avx2".
13349 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
13350 PROCESSOR_CORE_HASWELL.
13351 (ix86_issue_rate): New case.
13352 (ia32_multipass_dfa_lookahead): Likewise.
13353 (ix86_sched_init_global): Likewise.
13355 * config/i386/i386.h (TARGET_HASWELL): New macro.
13356 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
13357 (processor_type): New PROCESSOR_HASWELL.
13359 2013-01-15 Jakub Jelinek <jakub@redhat.com>
13361 PR tree-optimization/55955
13362 * tree-vect-loop.c (vectorizable_reduction): Give up early on
13363 *SHIFT_EXPR and *ROTATE_EXPR codes.
13365 PR tree-optimization/48766
13366 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
13367 -ftrapv disable -fwrapv.
13369 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
13372 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
13373 etc. to 1 and not to __flash.
13374 Use LL suffix for __INT24_MAX__ with -mint8.
13375 Use ULL suffix for __UINT24_MAX__ with -mint8.
13377 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
13379 * config/avr/avr-arch.h
13380 (struct base_arch_s): Use typedef avr_arch_t instead.
13381 (struct arch_info_s): Use typedef avr_arch_info_t instead.
13382 (struct mcu_type_s): Use typedef avr_mcu_t instead.
13383 * config/avr/avr.c: Same.
13384 * config/avr/avr-devices.c: Same.
13385 * config/avr/driver-avr.c: Same.
13386 * config/avr/gen-avr-mmcu-texi.c: Same.
13387 * config/avr/avr-mcus.def: Adjust comment.
13389 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
13391 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
13392 * config/aarch64/iterators.md (VALLDI): New.
13394 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
13395 Andi Kleen <ak@linux.intel.com>
13398 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
13399 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
13402 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
13404 * config/avr/avr-stdint.h: Remove trailing blanks.
13405 * config/avr/avr-log.h: Same.
13406 * config/avr/avr-arch.h: Same.
13407 * config/avr/avr-devices.c: Same.
13408 * config/avr/avr-dimode.md: Same.
13409 * config/avr/predicates.md: Same.
13410 * config/avr/avr-c.c: Same. And fix typo.
13412 * config/avr/avr-protos.h: Same. And:
13413 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
13414 (init_cumulative_args): Rename to avr_init_cumulative_args.
13415 (expand_prologue): Rename to avr_expand_prologue.
13416 (expand_epilogue): Rename to avr_expand_epilogue.
13417 (adjust_insn_length): Rename to avr_adjust_insn_length.
13418 (notice_update_cc): Rename to avr_notice_update_cc.
13419 (final_prescan_insn): Rename to avr_final_prescan_insn.
13420 * config/avr/avr.c: Same.
13421 * config/avr/avr.h: Same.
13422 * config/avr/avr.md: Remove trailing blanks.
13423 (prologue): Use avr_expand_prologue.
13424 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
13426 2013-01-14 Richard Biener <rguenther@suse.de>
13428 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
13429 verify_location, collect_subblocks): New functions.
13430 (verify_gimple_in_cfg): Verify that locations only reference
13431 BLOCKs in the functions BLOCK tree.
13433 2013-01-14 Richard Biener <rguenther@suse.de>
13435 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
13437 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
13439 (insert_out_of_ssa_copy_on_edge): Likewise.
13440 (rewrite_close_phi_out_of_ssa): Likewise.
13441 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
13443 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
13444 propagated constants.
13445 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
13448 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
13450 * config/avr/avr-modes.def: Add GPL copyright notice.
13452 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
13454 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
13455 MEMMODEL_MASK to determine memory model.
13456 (atomic_store<mode>): Ditto from operands[2].
13457 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
13459 2013-01-13 Jakub Jelinek <jakub@redhat.com>
13462 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
13463 (fold_gimple_assign): Don't call unshare_expr here.
13464 (fold_ctor_reference): Call unshare_expr.
13466 2013-01-13 Terry Guo <terry.guo@arm.com>
13468 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
13469 * doc/fragments.texi: Document MULTILIB_REUSE.
13470 * gcc.c (multilib_reuse): New internal spec.
13471 (set_multilib_dir): Also search multilib from multilib_reuse.
13472 * genmultilib (tmpmultilib3): Refactor code.
13473 (tmpmultilib4): Ditto.
13474 (multilib_reuse): New multilib argument.
13476 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
13478 * Makefile.in: Update copyright.
13480 2013-01-12 Tom de Vries <tom@codesourcery.com>
13482 PR middle-end/55890
13483 * calls.c (expand_call): Check if arg_nr is valid.
13485 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
13487 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
13488 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
13489 documentation. Add missing '__' in front of
13490 __builtin_ia32_packssdw256.
13492 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13495 * config/s390/s390.c (s390_preferred_reload_class): Do not return
13496 NO_REGS for larl operands.
13497 (s390_reload_larl_operand): Use s390_load_address instead of
13500 2013-01-11 Richard Biener <rguenther@suse.de>
13502 * tree-cfg.c (verify_node_sharing_1): Split out from ...
13503 (verify_node_sharing): ... here.
13504 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
13506 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
13508 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
13509 Substitute TREECHECKING.
13510 * configure: Regenerate.
13511 * Makefile.in (TREECHECKING): New.
13513 2013-01-11 Richard Guenther <rguenther@suse.de>
13515 PR tree-optimization/44061
13516 * tree-vrp.c (extract_range_basic): Compute zero as
13517 value-range for __builtin_constant_p of function parameters.
13519 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
13521 Update copyright years.
13523 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
13525 PR rtl-optimization/55672
13526 * lra-eliminations.c (mark_not_eliminable): Permit addition with
13527 const to be eliminable.
13529 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
13531 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
13532 * configure: Regenerate.
13534 2013-01-10 Richard Biener <rguenther@suse.de>
13536 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
13538 2013-01-10 Richard Biener <rguenther@suse.de>
13541 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
13542 locations for virtual PHI arguments.
13543 (rewrite_update_phi_arguments): Likewise.
13545 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
13547 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
13550 2013-01-10 Jakub Jelinek <jakub@redhat.com>
13552 PR tree-optimization/55921
13553 * tree-complex.c (expand_complex_asm): New function.
13554 (expand_complex_operations_1): Call it for GIMPLE_ASM.
13556 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13559 * config/s390/s390.c (s390_symref_operand_p)
13560 (s390_loadrelative_operand_p): Merge the two functions.
13561 (s390_check_qrst_address, print_operand_address): Add parameters
13562 to s390_loadrelative_operand_p invokation.
13563 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
13564 (s390_reload_larl_operand, s390_secondary_reload): Use
13565 s390_loadrelative_operand_p instead of s390_symref_operand_p.
13566 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
13568 2013-01-09 Mike Stump <mikestump@comcast.net>
13570 * dse.c (record_store): Remove unnecessary assert.
13572 2013-01-09 Jan Hubicka <jh@suse.cz>
13574 PR tree-optimization/55569
13575 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
13576 * cfgloop.h (scale_loop_profile): Likewise.
13578 2013-01-09 Jan Hubicka <jh@suse.cz>
13581 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
13583 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
13585 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
13587 PR middle-end/55114
13588 * expr.h (maybe_emit_group_store): Declare.
13589 * expr.c (maybe_emit_group_store): New function.
13590 * builtins.c (expand_builtin_int_roundingfn): Call it.
13591 (expand_builtin_int_roundingfn_2): Likewise.
13593 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
13595 PR rtl-optimization/55829
13596 * lra-constraints.c (match_reload): Add code for absent output.
13597 (curr_insn_transform): Add code for reloads of matched inputs
13600 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
13602 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
13603 attribute of movddup insn to DF.
13604 (*vec_interleave_lowv2df): Ditto.
13605 (vec_dupv2df): Ditto.
13607 2013-01-09 Jan Hubicka <jh@suse.cz>
13609 PR tree-optimiation/55875
13610 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
13611 EVERY_ITERATION parameter.
13612 (number_of_iterations_exit): Check if exit is executed every iteration.
13613 (idx_infer_loop_bounds): Similarly here.
13614 (n_of_executions_at_most): Simplify
13615 to only test for cases where statement is dominated by the
13616 particular bound; handle correctly the "postdominance" test.
13617 (scev_probably_wraps_p): Use max loop iterations info
13618 as a global bound first.
13620 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
13621 Nick Clifton <nickc@redhat.com>
13623 * config/v850/v850.md (cbranchsf4): New pattern.
13624 (cstoresf4): New pattern.
13625 (cbranchdf4): New pattern.
13626 (cstoredf4): New pattern.
13627 (movsicc): Disallow floating point comparisons.
13628 (cmpsf_le_insn): Fix order of operators.
13629 (cmpsf_lt_insn): Likewise.
13630 (cmpsf_eq_insn): Likewise.
13631 (cmpdf_le_insn): Likewise.
13632 (cmpdf_lt_insn): Likewise.
13633 (cmpdf_eq_insn): Likewise.
13634 (cmpsf_ge_insn): Use LE comparison.
13635 (cmpdf_ge_insn): Likewise.
13636 (cmpsf_gt_insn): Use LT comparison.
13637 (cmpdf_gt_insn): Likewise.
13638 (cmpsf_ne_insn): Delete pattern.
13639 (cmpdf_ne_insn): Delete pattern.
13640 * config/v850/v850.c (v850_gen_float_compare): Use
13641 gen_cmpdf_eq_insn for NE comparison.
13642 (v850_float_z_comparison_operator)
13643 (v850_float_nz_comparison_operator): Move from here ...
13644 * config/v850/predicates.md: ... to here. Move GT and GE
13645 comparisons into v850_float_z_comparison_operator.
13646 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
13648 (v850_float_nz_comparison_operator): Likewise.
13650 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13652 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
13653 with calls to gen_insvsi/gen_insvdi.
13655 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13657 * config/i386/i386.c (initial_ix86_tune_features): Set up
13658 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
13660 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
13661 Jakub Jelinek <jakub@redhat.com>
13663 PR tree-optimization/48189
13664 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
13665 If nitercst is 0, don't predict the exit edge.
13667 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13669 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
13670 in asm_fprintf with reg_names.
13671 (aarch64_print_operand_address): Likewise.
13672 (aarch64_return_addr): Likewise.
13673 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
13675 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13677 * config/pa/pa.h (VAL_U6_BITS_P): Define.
13678 (INT_U6_BITS): Likewise.
13679 * config/pa/predicates.md (uint6_operand): New predicate.
13680 (shift5_operand, shift6_operand): Likewise.
13681 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
13683 (lshrdi3): Use shift6_operand.
13684 (shrpsi4, shrpdi4): New insn patterns.
13685 (extzv): Delete expander.
13686 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
13687 predicates in unamed zero extract patterns. Tighten common constraint.
13688 (extv): Delete expander.
13689 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
13690 predicates in unamed sign extract patterns. Tighten common constraint.
13691 (insv): Delete expander.
13692 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
13693 predicates in unamed insert patterns. Tighten common constraint.
13694 Change uint32_operand predicate to uint6_operand predicate in unamed
13695 DImode pattern to insert constant values of type 1...1xxxx.
13697 2013-01-04 Jan Hubicka <jh@suse.cz>
13699 PR tree-optimization/55823
13700 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
13703 2013-01-08 Jakub Jelinek <jakub@redhat.com>
13704 Uros Bizjak <ubizjak@gmail.com>
13706 PR rtl-optimization/55845
13707 * df-problems.c (can_move_insns_across): Stop scanning at
13708 volatile_insn_p source instruction or give up if
13709 across_from .. across_to range contains any volatile_insn_p
13712 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
13714 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
13715 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
13717 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
13718 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
13720 2013-01-08 Jakub Jelinek <jakub@redhat.com>
13723 * asan.c (asan_clear_shadow): New function.
13724 (asan_emit_stack_protection): Use it.
13726 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
13728 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
13729 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
13730 with tab instead of space.
13732 2013-01-08 Nick Clifton <nickc@redhat.com>
13734 * config/rl78/rl78.c (rl78_expand_prologue): Always select
13735 register bank 0 at the start of an interrupt handler.
13736 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
13739 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
13741 * config/aarch64/aarch64-simd.md
13742 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
13743 (aarch64_simd_bsl): Likewise.
13744 (aarch64_vcond_internal<mode>): Likewise.
13745 (vcond<mode><mode>): Likewise.
13746 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
13747 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
13749 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
13751 * config/aarch64/aarch64-builtins.c
13752 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
13754 2013-01-08 Martin Jambor <mjambor@suse.cz>
13757 * tree-sra.c (analyze_access_subtree): Return true also after
13758 potentially creating a debug-only replacement.
13760 2013-01-08 Jakub Jelinek <jakub@redhat.com>
13762 PR middle-end/55890
13763 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
13765 PR tree-optimization/54120
13766 * tree-vrp.c (range_fits_type_p): Don't allow
13767 src_precision < precision from signed vr to unsigned_p
13768 if vr->min or vr->max is negative.
13769 (simplify_float_conversion_using_ranges): Test can_float_p
13770 against CODE_FOR_nothing.
13772 2013-01-08 Jakub Jelinek <jakub@redhat.com>
13773 Richard Biener <rguenther@suse.de>
13775 PR middle-end/55851
13776 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
13777 types instead of just INTEGER_TYPE types.
13779 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
13781 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
13784 2013-01-07 Steve Ellcey <sellcey@mips.com>
13787 * config/mips/mips.opt: Change mad to mmad to match documentation.
13789 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
13792 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
13793 .progmemx.data now.
13795 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
13798 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
13799 (avr_addrspace_t): Add .section_name field.
13800 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
13802 (avr_addrspace): Same. Initialize .section_name. Remove last
13803 NULL entry. Put __memx into .progmemx.data.
13804 (progmem_section_prefix): Remove.
13805 (avr_asm_init_sections): No need to initialize progmem_section.
13806 (avr_asm_named_section): Use avr_addrspace[].section_name to get
13807 section name prefix.
13808 (avr_asm_select_section): Ditto. And use get_unnamed_section to
13809 retrieve the progmem section.
13810 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
13811 boundary to run over avr_addrspace[].
13812 (avr_register_target_pragmas): Ditto.
13814 2013-01-06 Jakub Jelinek <jakub@redhat.com>
13816 * varasm.c (output_constant_def_contents): For asan_protect_global
13817 protected strings, adjust DECL_ALIGN if needed, before testing for
13819 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
13820 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
13822 (output_object_block): For asan protected decls, emit asan padding
13823 after their contents.
13824 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
13825 (asan_finish_file): Test it here instead.
13827 2013-01-07 Nick Clifton <nickc@redhat.com>
13828 Matthias Klose <doko@debian.org>
13829 Doug Kwan <dougkwan@google.com>
13830 H.J. Lu <hongjiu.lu@intel.com>
13833 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
13835 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
13837 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
13839 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
13841 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
13843 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
13846 * doc/install.texi (Cross-Compiler-Specific Options): Document
13849 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
13851 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
13852 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
13853 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
13854 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
13855 vqmovun_high_s64): Fix source operand number and update copyright.
13857 2013-01-07 Richard Biener <rguenther@suse.de>
13859 PR middle-end/55890
13860 * gimple.h (gimple_call_builtin_p): New overload.
13861 * gimple.c (validate_call): New function.
13862 (gimple_call_builtin_p): Likewise.
13863 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
13864 Use gimple_call_builtin_p.
13865 (find_func_clobbers): Likewise.
13866 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
13867 (strlen_optimize_stmt): Likewise.
13869 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
13871 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
13872 (vld1q_dup_*): Likewise.
13873 (vld1_*): Likewise.
13874 (vld1q_*): Likewise.
13875 (vld1_lane_*): Likewise.
13876 (vld1q_lane_*): Likewise.
13878 2013-01-07 Richard Biener <rguenther@suse.de>
13880 * lto-streamer.h (LTO_minor_version): Bump to 2.
13882 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
13884 * config/aarch64/aarch64-protos.h
13885 (aarch64_const_double_zero_rtx_p): Rename to...
13886 (aarch64_float_const_zero_rtx_p): ...this.
13887 (aarch64_float_const_representable_p): New.
13888 (aarch64_output_simd_mov_immediate): Likewise.
13889 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
13890 move immediate case.
13891 * config/aarch64/aarch64.c
13892 (aarch64_const_double_zero_rtx_p): Rename to...
13893 (aarch64_float_const_zero_rtx_p): ...this.
13894 (aarch64_print_operand): Allow printing of new constants.
13895 (aarch64_valid_floating_const): New.
13896 (aarch64_legitimate_constant_p): Check for valid floating-point
13898 (aarch64_simd_valid_immediate): Likewise.
13899 (aarch64_vect_float_const_representable_p): New.
13900 (aarch64_float_const_representable_p): Likewise.
13901 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
13902 (aarch64_output_simd_mov_immediate): New.
13903 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
13904 (*movdf_aarch64): Likewise.
13905 * config/aarch64/constraints.md (Ufc): New.
13906 (Y): call aarch64_float_const_zero_rtx.
13907 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
13909 2013-01-07 Richard Biener <rguenther@suse.de>
13911 PR tree-optimization/55888
13912 PR tree-optimization/55862
13913 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
13914 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
13915 not if it is contained therein.
13917 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
13919 * config/avr/t-avr: Typo.
13921 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
13924 * config/avr/t-avr: Don't automatically rebuild
13925 $(srcdir)/config/avr/t-multilib
13926 $(srcdir)/config/avr/avr-tables.opt
13927 $(srcdir)/doc/avr-mmcu.texi
13928 (avr-mcus): New phony target to build them on request.
13929 (s-avr-mlib, s-avr-mmcu-texi): Remove.
13930 * avr/avr-mcus.def: Adjust comments.
13932 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
13934 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
13936 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
13938 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
13940 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
13942 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
13944 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
13946 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
13947 to generate profiling.
13948 * config/rs6000/aix64.h (LIB_SPEC): Same.
13950 2013-01-04 Andrew Pinski <apinski@cavium.com>
13952 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
13954 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
13956 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
13958 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
13960 (ix86_expand_move): Ditto.
13961 (ix86_zero_extend_to_Pmode): Ditto.
13962 (ix86_expand_call): Ditto.
13963 (ix86_expand_special_args_builtin): Ditto.
13964 (ix86_expand_builtin): Ditto.
13966 2013-01-04 Richard Biener <rguenther@suse.de>
13968 PR tree-optimization/55862
13969 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
13970 translating them through PHI nodes.
13972 2013-01-04 Martin Jambor <mjambor@suse.cz>
13974 PR tree-optimization/55755
13975 * tree-sra.c (sra_modify_assign): Do not check that an access has no
13976 children when trying to avoid producing a VIEW_CONVERT_EXPR.
13978 2013-01-04 Marek Polacek <polacek@redhat.com>
13980 PR middle-end/55859
13981 * opts.c (default_options_optimization): Clarify error message.
13983 2013-01-04 Richard Biener <rguenther@suse.de>
13985 PR middle-end/55863
13986 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
13989 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13992 * config/pa/pa.md (movsi): Revert previous change.
13993 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
13996 2013-01-03 Richard Henderson <rth@redhat.com>
13998 * config/i386/i386.c (ix86_expand_move): Always assign to op1
13999 after eliminating TLS symbols.
14001 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
14004 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
14005 * graphite-poly.c (debug_gmp_value): Likewise.
14007 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
14010 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
14011 selected code model, define __code_mode_small__, __code_model_medium__,
14012 __code_model_large__, __code_model_32__ or __code_model_kernel__.
14013 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
14014 xchg temporary register with %k. Declare temporary register as
14016 [__x86_64__]: For medium and large code models, preserve %rbx register.
14018 2013-01-03 Richard Biener <rguenther@suse.de>
14020 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
14021 (dump_subscript): Adjust.
14022 (finalize_ddr_dependent): Do not dump redundant info.
14023 (analyze_siv_subscript): Adjust.
14024 (subscript_dependence_tester): Likewise.
14025 (compute_affine_dependence): Likewise.
14027 2013-01-03 Richard Biener <rguenther@suse.de>
14030 2013-01-03 Richard Biener <rguenther@suse.de>
14032 PR tree-optimization/55857
14033 * tree-vect-stmts.c (vectorizable_load): Do not setup
14034 re-alignment for invariant loads.
14036 2013-01-02 Richard Biener <rguenther@suse.de>
14038 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
14039 invariant load do not generate a vector load from the scalar location.
14041 2013-01-03 Richard Biener <rguenther@suse.de>
14043 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
14044 for not vectorizing.
14045 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
14046 not build INDIRECT_REFs, call get_name once only.
14047 (vect_create_data_ref_ptr): Likewise. Dump base object kind
14048 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
14050 2013-01-03 Richard Biener <rguenther@suse.de>
14052 PR tree-optimization/55857
14053 * tree-vect-stmts.c (vectorizable_load): Do not setup
14054 re-alignment for invariant loads.
14056 2013-01-03 Richard Biener <rguenther@suse.de>
14059 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
14060 prefer a built-in decl.
14062 2013-01-03 Jakub Jelinek <jakub@redhat.com>
14064 * gcc.c (process_command): Update copyright notice dates.
14065 * gcov.c (print_version): Likewise.
14066 * gcov-dump.c (print_version): Likewise.
14068 PR rtl-optimization/55838
14069 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
14070 iv0.step, iv1.step and step.
14072 2013-01-03 Jakub Jelinek <jakub@redhat.com>
14073 Marc Glisse <marc.glisse@inria.fr>
14075 PR tree-optimization/55832
14076 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
14077 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
14078 integer_{one,zero}_node.
14080 2013-01-03 Jakub Jelinek <jakub@redhat.com>
14083 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
14084 * var-tracking.c (reverse_op): Don't add reverse ops to
14085 VALUEs that have already
14086 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
14088 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
14090 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
14092 2013-01-02 Teresa Johnson <tejohnson@google.com>
14094 * dumpfile.c (dump_loc): Print filename with location.
14095 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
14096 new location_t parameter to emit complete unroll message with
14097 new dump framework.
14098 (canonicalize_loop_induction_variables): Compute loops location
14099 and pass to try_unroll_loop_completely.
14100 * loop-unroll.c (report_unroll_peel): New function.
14101 (peel_loops_completely): Use new dump format with location
14102 for main dumpfile message, and invoke report_unroll_peel on success.
14103 (decide_unrolling_and_peeling): Ditto.
14104 (decide_peel_once_rolling): Remove old dumpfile message subsumed
14105 by report_unroll_peel.
14106 (decide_peel_completely): Ditto.
14107 (decide_unroll_constant_iterations): Ditto.
14108 (decide_unroll_runtime_iterations): Ditto.
14109 (decide_peel_simple): Ditto.
14110 (decide_unroll_stupid): Ditto.
14111 * cfgloop.c (get_loop_location): New function.
14112 * cfgloop.h (get_loop_location): Declare.
14114 2013-01-02 Sriraman Tallam <tmsriram@google.com>
14116 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
14119 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14121 PR middle-end/55198
14122 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
14123 BLKmode objects when EXPAND_MEMORY is specified.
14125 2013-01-02 Sriraman Tallam <tmsriram@google.com>
14127 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
14129 (fold_builtin_cpu): Do not share cpu model decls across statements.
14131 2013-01-02 Jason Merrill <jason@redhat.com>
14134 * tree.c (build_array_type_1): Revert earlier change.
14136 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
14138 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
14140 * config/aarch64/aarch64-tune.md: Re-generate.
14142 2013-01-02 Richard Biener <rguenther@suse.de>
14144 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
14145 invariant load do not generate a vector load from the scalar location.
14147 2013-01-02 Richard Biener <rguenther@suse.de>
14150 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
14151 * configure: Regenerate.
14153 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
14155 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
14156 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
14157 (expand_builtin_int_roundingfn_2): Keep the original target around
14158 for the fallback case.
14160 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
14162 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
14163 to be clear for sign changes.
14165 2013-01-01 Jan Hubicka <jh@suse.cz>
14167 * ipa-inline-analysis.c: Fix formatting.
14169 2013-01-01 Jakub Jelinek <jakub@redhat.com>
14171 PR tree-optimization/55831
14172 * tree-vect-loop.c (get_initial_def_for_induction): Use
14173 gsi_after_labels instead of gsi_start_bb.
14175 Copyright (C) 2013 Free Software Foundation, Inc.
14177 Copying and distribution of this file, with or without modification,
14178 are permitted in any medium without royalty provided the copyright
14179 notice and this notice are preserved.