]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
re PR rtl-optimization/57786 (wasted work in distribute_notes)
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
75fefa91
PCC
12013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
2
3 PR rtl-optimization/57786
4 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
5 and break out of the loop when it is set to false.
6
046f1eee
JJ
72013-07-08 Jakub Jelinek <jakub@redhat.com>
8
8140c065
JJ
9 PR target/57819
10 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
11 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
12 (const_int 63)) 0)).
13 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
14 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
15 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
16
046f1eee
JJ
17 PR rtl-optimization/57829
18 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
19 mask bits outside of mode are just sign-extension from mode to HWI.
20
930b700b
MZ
212013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
22
23 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
24 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
25 adjust_address instead of change_address to keep info about alignment.
26 (emit_strmov): Remove.
27 (emit_memmov): New function.
28 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
29 (expand_movmem_epilogue): Likewise and return updated rtx for
30 destination.
31 (expand_constant_movmem_prologue): Likewise and return updated rtx for
32 destination and source.
33 (decide_alignment): Refactor, handle vector_loop.
34 (ix86_expand_movmem): Likewise.
35 (ix86_expand_setmem): Likewise.
36 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
37
7b9d1bd8
UB
382013-07-07 Uros Bizjak <ubizjak@gmail.com>
39
40 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
41 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
42
eabb5f48
UB
432013-07-06 Uros Bizjak <ubizjak@gmail.com>
44
45 * config/i386/sse.md (sse_movlhps): Change alternative 3
46 of operand 2 to "m".
47
482013-07-06 Uros Bizjak <ubizjak@gmail.com>
49
50 PR target/57807
51 * config/i386/sse.md (iptr): New mode attribute.
52 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
53 (<sse>_vm<plusminus_insn><mode>3): Ditto.
54 (<sse>_vmmul<mode>3): Ditto.
55 (<sse>_vmdiv<mode>3): Ditto.
56 (sse_vmrcpv4sf2): Ditto.
57 (<sse>_vmsqrt<mode>2): Ditto.
58 (sse_vmrsqrtv4sf2): Ditto.
59 (<sse>_vm<code><mode>3): Ditto.
60 (avx_vmcmp<mode>3): Ditto.
61 (<sse>_vmmaskcmp<mode>3): Ditto.
62 (<sse>_comi): Ditto.
63 (<sse>_ucomi): Ditto.
64 (*xop_vmfrcz_<mode>): Ditto.
65 (*fmai_fmadd_<mode>): Ditto.
66 (*fmai_fmsub_<mode>): Ditto.
67 (*fmai_fnmadd_<mode>): Ditto.
68 (*fmai_fnmsub_<mode>): Ditto.
69 (*fma4i_vmfmadd_<mode>): Ditto.
70 (*fma4i_vmfmsub_<mode>): Ditto.
71 (*fma4i_vmfnmadd_<mode>): Ditto.
72 (*fma4i_vmfnmsub_<mode>): Ditto.
73 (*xop_vmfrcz_<mode>): Ditto.
74 (sse_cvtps2pi): Ditto.
75 (sse_cvttps2pi): Ditto.
76 (sse_cvtss2si): Ditto.
77 (sse_cvtss2si_2): Ditto.
78 (sse_cvtss2siq_2): Ditto.
79 (sse_cvttss2si): Ditto.
80 (sse_cvttss2siq): Ditto.
81 (sse_cvtsd2si): Ditto.
82 (sse_cvtsd2si_2): Ditto.
83 (sse_cvtsd2siq_2): Ditto.
84 (sse_cvttsd2si): Ditto.
85 (sse_cvttsd2siq): Ditto.
86 (sse_cvtsd2ss): Ditto.
87 (sse_cvtss2sd): Ditto.
88 (avx2_pbroadcast<mode>): Ditto.
89 (avx2_pbroadcast<mode>_1): Ditto.
90 (*avx_vperm_broadcast_v4sf): Ditto.
91
92 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
93 (sse_movlhps): Ditto.
94 (sse_storehps): Ditto.
95 (sse_loadhps): Ditto.
96 (sse_storelps): Ditto.
97 (sse_loadlps): Ditto.
98 (*vec_concatv4sf): Ditto.
99 (*vec_interleave_highv2df): Ditto.
100 (*vec_interleave_lowv2df): Ditto.
101 (*vec_extractv2df_1_sse): Ditto.
102 (*vec_extractv2df_0_sse): Ditto.
103 (sse2_storelpd): Ditto.
104 (sse2_loadlpd): Ditto.
105 (sse2_movsd): Ditto.
106 (*vec_concatv4si): Ditto.
107 (vec_concatv2di): Ditto.
108
109 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
110 for Intel asm dialect.
111 (mmx_punpcklwd): Ditto.
112 (mmx_punpckldq): Ditto.
113
114 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
115 for intel assembler dialect.
116
1f6eac90
JJ
1172013-07-06 Jakub Jelinek <jakub@redhat.com>
118
119 PR target/29776
120 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
121 for BUILT_IN_C{LZ,LRSB}*.
122 * tree.h (CASE_INT_FN): Add FN##IMAX case.
123 * tree-vrp.c (extract_range_basic): Handle
124 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
125 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
126 fall thru to code calling set_value*.
127 * builtins.c (expand_builtin): Remove *IMAX cases.
128 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
129 if width is bigger than 2*HWI.
130
2b778c9d
VM
1312013-07-05 Vladimir Makarov <vmakarov@redhat.com>
132
133 PR rtl-optimization/55342
134 * lra-int.h (lra_subreg_reload_pseudos): New.
135 * lra.c: Add undoing optional reloads to the block diagram.
136 (lra_subreg_reload_pseudos): New.
137 (lra_optional_reload_pseudos): Change comments.
138 (lra): Init and clear lra_subreg_reload_pseudos. Clear
139 lra_optional_reload_pseudos after undo transformations.
140 * lra-assigns.c (pseudo_prefix_title): New.
141 (lra_setup_reg_renumber): Use it.
142 (spill_for): Ditto. Check subreg reload pseudos too.
143 (assign_by_spills): Consider subreg reload pseudos too.
144 * lra-constraints.c (simplify_operand_subreg): Use
145 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
146 (curr_insn_transform): Recognize and do optional reloads.
147 (undo_optional_reloads): New.
148 (lra_undo_inheritance): Call undo_optional_reloads.
149
207156e4
TQ
1502013-07-05 Thomas Quinot <quinot@adacore.com>
151
152 * tree-complex.c (expand_complex_operations_1): Fix typo.
153
8990e73a
TB
1542013-07-04 Tejas Belagod <tejas.belagod@arm.com>
155
156 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
157 (tune_params): New member 'const vec_costs'.
158 * config/aarch64/aarch64.c (generic_vector_cost): New.
159 (generic_tunings): New member 'generic_vector_cost'.
160 (aarch64_builtin_vectorization_cost): New.
161 (aarch64_add_stmt_cost): New.
162 (TARGET_VECTORIZE_ADD_STMT_COST): New.
163 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
164
f7bc421d
JJ
1652013-07-03 Jakub Jelinek <jakub@redhat.com>
166
167 PR target/57777
168 * config/i386/predicates.md (vsib_address_operand): Disallow
169 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
170
e90d1568
HPN
1712013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
172
173 PR middle-end/55030
174 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
175 expand_builtin_setjmp_receiver.
176 (expand_label): Adjust, call expand_builtin_setjmp_receiver
177 with NULL for the label parameter.
178 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
179 the frame-pointer. Adjust comments.
180 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
181 only if LABEL is non-NULL.
182
cbd7413b
YZ
1832013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
184
185 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
186 (ARM_ABI_AAPCS64): Ditto.
187 (arm_abi): Ditto.
188 (ARM_DEFAULT_ABI): Ditto.
189
dec11868
JG
1902013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
191
192 * config/aarch64/aarch64-builtins.c
193 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
194 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
195 (st1): Likewise.
196 * config/aarch64/aarch64-simd.md
197 (aarch64_ld1<VALL:mode>): New.
198 (aarch64_st1<VALL:mode>): Likewise.
199 * config/aarch64/arm_neon.h
200 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
201
786fb9b6
ST
2022013-07-02 Sriraman Tallam <tmsriram@google.com>
203
0ba6aff3
UB
204 * config/i386/i386.c (gate_insert_vzeroupper): Check if
205 target ISA is AVX.
786fb9b6
ST
206 (ix86_option_override_internal):Turn on all -mavx target flags by
207 default as they are dependent on AVX anyway.
208
4b043553
CC
2092013-07-02 Cary Coutant <ccoutant@google.com>
210
211 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
212 deterministic hash.
213 (loc_checksum_ordered): Likewise.
214 (hash_loc_operands): Remove inline keyword.
215
c4e87a13
JJ
2162013-07-02 Jakub Jelinek <jakub@redhat.com>
217
218 PR tree-optimization/57741
219 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
220 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
221 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
222 Allow REAL_CST step_exprs if flag_associative_math.
223 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
224
26366d28
IB
2252013-07-02 Ian Bolton <ian.bolton@arm.com>
226
0ba6aff3 227 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
26366d28 228
2879bb2b
IB
2292013-07-02 Ian Bolton <ian.bolton@arm.com>
230
231 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
232
afc5e8a6
KT
2332013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
234
235 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
236 encoding.
237 (iorsi3_insn): Likewise.
238 (arm_xorsi3): Likewise.
239
31f8442b
SN
2402013-07-01 Sofiane Naci <sofiane.naci@arm.com>
241
242 * arm.md (attribute "wtype"): Delete. Move attribute values from here
243 to ...
244 (attribute "type"): ... here, and prefix with "wmmx_".
245 (attribute "core_cycles"): Update for attribute changes.
246 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
247 (tbcstv4hi): Likewise.
248 (tbcstv2si): Likewise.
249 (iwmmxt_iordi3): Likewise.
250 (iwmmxt_xordi3): Likewise.
251 (iwmmxt_anddi3): Likewise.
252 (iwmmxt_nanddi3): Likewise.
253 (iwmmxt_arm_movdi): Likewise.
254 (iwmmxt_movsi_insn): Likewise.
255 (mov<mode>_internal): Likewise.
256 (and<mode>3_iwmmxt): Likewise.
257 (ior<mode>3_iwmmxt): Likewise.
258 (xor<mode>3_iwmmxt): Likewise.
259 (add<mode>3_iwmmxt): Likewise.
260 (ssaddv8qi3): Likewise.
261 (ssaddv4hi3): Likewise.
262 (ssaddv2si3): Likewise.
263 (usaddv8qi3): Likewise.
264 (usaddv4hi3): Likewise.
265 (usaddv2si3): Likewise.
266 (sub<mode>3_iwmmxt): Likewise.
267 (sssubv8qi3): Likewise.
268 (sssubv4hi3): Likewise.
269 (sssubv2si3): Likewise.
270 (ussubv8qi3): Likewise.
271 (ussubv4hi3): Likewise.
272 (ussubv2si3): Likewise.
273 (mulv4hi3_iwmmxt): Likewise.
274 (smulv4hi3_highpart): Likewise.
275 (umulv4hi3_highpart): Likewise.
276 (iwmmxt_wmacs): Likewise.
277 (iwmmxt_wmacsz): Likewise.
278 (iwmmxt_wmacu): Likewise.
279 (iwmmxt_wmacuz): Likewise.
280 (iwmmxt_clrdi): Likewise.
281 (iwmmxt_clrv8qi): Likewise.
282 (iwmmxt_clr4hi): Likewise.
283 (iwmmxt_clr2si): Likewise.
284 (iwmmxt_uavgrndv8qi3): Likewise.
285 (iwmmxt_uavgrndv4hi3): Likewise.
286 (iwmmxt_uavgv8qi3): Likewise.
287 (iwmmxt_uavgv4hi3): Likewise.
288 (iwmmxt_tinsrb): Likewise.
289 (iwmmxt_tinsrh): Likewise.
290 (iwmmxt_tinsrw): Likewise.
291 (iwmmxt_textrmub): Likewise.
292 (iwmmxt_textrmsb): Likewise.
293 (iwmmxt_textrmuh): Likewise.
294 (iwmmxt_textrmsh): Likewise.
295 (iwmmxt_textrmw): Likewise.
296 (iwmxxt_wshufh): Likewise.
297 (eqv8qi3): Likewise.
298 (eqv4hi3): Likewise.
299 (eqv2si3): Likewise.
300 (gtuv8qi3): Likewise.
301 (gtuv4hi3): Likewise.
302 (gtuv2si3): Likewise.
303 (gtv8qi3): Likewise.
304 (gtv4hi3): Likewise.
305 (gtv2si3): Likewise.
306 (smax<mode>3_iwmmxt): Likewise.
307 (umax<mode>3_iwmmxt): Likewise.
308 (smin<mode>3_iwmmxt): Likewise.
309 (umin<mode>3_iwmmxt): Likewise.
310 (iwmmxt_wpackhss): Likewise.
311 (iwmmxt_wpackwss): Likewise.
312 (iwmmxt_wpackdss): Likewise.
313 (iwmmxt_wpackhus): Likewise.
314 (iwmmxt_wpackwus): Likewise.
315 (iwmmxt_wpackdus): Likewise.
316 (iwmmxt_wunpckihb): Likewise.
317 (iwmmxt_wunpckihh): Likewise.
318 (iwmmxt_wunpckihw): Likewise.
319 (iwmmxt_wunpckilb): Likewise.
320 (iwmmxt_wunpckilh): Likewise.
321 (iwmmxt_wunpckilw): Likewise.
322 (iwmmxt_wunpckehub): Likewise.
323 (iwmmxt_wunpckehuh): Likewise.
324 (iwmmxt_wunpckehuw): Likewise.
325 (iwmmxt_wunpckehsb): Likewise.
326 (iwmmxt_wunpckehsh): Likewise.
327 (iwmmxt_wunpckehsw): Likewise.
328 (iwmmxt_wunpckelub): Likewise.
329 (iwmmxt_wunpckeluh): Likewise.
330 (iwmmxt_wunpckeluw): Likewise.
331 (iwmmxt_wunpckelsb): Likewise.
332 (iwmmxt_wunpckelsh): Likewise.
333 (iwmmxt_wunpckelsw): Likewise.
334 (ror<mode>3): Likewise.
335 (ashr<mode>3_iwmmxt): Likewise.
336 (lshr<mode>3_iwmmxt): Likewise.
337 (ashl<mode>3_iwmmxt): Likewise.
338 (ror<mode>3_di): Likewise.
339 (ashr<mode>3_di): Likewise.
340 (lshr<mode>3_di): Likewise.
341 (ashl<mode>3_di): Likewise.
342 (iwmmxt_wmadds): Likewise.
343 (iwmmxt_wmaddu): Likewise.
344 (iwmmxt_tmia): Likewise.
345 (iwmmxt_tmiaph): Likewise.
346 (iwmmxt_tmiabb): Likewise.
347 (iwmmxt_tmiatb): Likewise.
348 (iwmmxt_tmiabt): Likewise.
349 (iwmmxt_tmiatt): Likewise.
350 (iwmmxt_tmovmskb): Likewise.
351 (iwmmxt_tmovmskh): Likewise.
352 (iwmmxt_tmovmskw): Likewise.
353 (iwmmxt_waccb): Likewise.
354 (iwmmxt_wacch): Likewise.
355 (iwmmxt_waccw): Likewise.
356 (iwmmxt_waligni): Likewise.
357 (iwmmxt_walignr): Likewise.
358 (iwmmxt_walignr0): Likewise.
359 (iwmmxt_walignr1): Likewise.
360 (iwmmxt_walignr2): Likewise.
361 (iwmmxt_walignr3): Likewise.
362 (iwmmxt_wsadb): Likewise.
363 (iwmmxt_wsadh): Likewise.
364 (iwmmxt_wsadbz): Likewise.
365 (iwmmxt_wsadhz): Likewise.
366 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
367 (iwmmxt_wabsdiffb): Likewise.
368 (iwmmxt_wabsdiffh): Likewise.
369 (iwmmxt_wabsdiffw): Likewise.
370 (iwmmxt_waddsubhx): Likewise
371 (iwmmxt_wsubaddhx): Likewise.
372 (addc<mode>3): Likewise.
373 (iwmmxt_avg4): Likewise.
374 (iwmmxt_avg4r): Likewise.
375 (iwmmxt_wmaddsx): Likewise.
376 (iwmmxt_wmaddux): Likewise.
377 (iwmmxt_wmaddsn): Likewise.
378 (iwmmxt_wmaddun): Likewise.
379 (iwmmxt_wmulwsm): Likewise.
380 (iwmmxt_wmulwum): Likewise.
381 (iwmmxt_wmulsmr): Likewise.
382 (iwmmxt_wmulumr): Likewise.
383 (iwmmxt_wmulwsmr): Likewise.
384 (iwmmxt_wmulwumr): Likewise.
385 (iwmmxt_wmulwl): Likewise.
386 (iwmmxt_wqmulm): Likewise.
387 (iwmmxt_wqmulwm): Likewise.
388 (iwmmxt_wqmulmr): Likewise.
389 (iwmmxt_wqmulwmr): Likewise.
390 (iwmmxt_waddbhusm): Likewise.
391 (iwmmxt_waddbhusl): Likewise.
392 (iwmmxt_wqmiabb): Likewise.
393 (iwmmxt_wqmiabt): Likewise.
394 (iwmmxt_wqmiatb): Likewise.
395 (iwmmxt_wqmiatt): Likewise.
396 (iwmmxt_wqmiabbn): Likewise.
397 (iwmmxt_wqmiabtn): Likewise.
398 (iwmmxt_wqmiatbn): Likewise.
399 (iwmmxt_wqmiattn): Likewise.
400 (iwmmxt_wmiabb): Likewise.
401 (iwmmxt_wmiabt): Likewise.
402 (iwmmxt_wmiatb): Likewise.
403 (iwmmxt_wmiatt): Likewise.
404 (iwmmxt_wmiabbn): Likewise.
405 (iwmmxt_wmiabtn): Likewise.
406 (iwmmxt_wmiatbn): Likewise.
407 (iwmmxt_wmiattn): Likewise.
408 (iwmmxt_wmiawbb): Likewise.
409 (iwmmxt_wmiawbt): Likewise.
410 (iwmmxt_wmiawtb): Likewise.
411 (iwmmxt_wmiawtt): Likewise.
412 (iwmmxt_wmiawbbn): Likewise.
413 (iwmmxt_wmiawbtn): Likewise.
414 (iwmmxt_wmiawtbn): Likewise.
415 (iwmmxt_wmiawttn): Likewise.
416 (iwmmxt_wmerge): Likewise.
417 (iwmmxt_tandc<mode>3): Likewise.
418 (iwmmxt_torc<mode>3): Likewise.
419 (iwmmxt_torvsc<mode>3): Likewise.
420 (iwmmxt_textrc<mode>3): Likewise.
421 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
422 (wmmxt_pack): Likewise.
423 (wmmxt_mult_c1): Likewise.
424 (wmmxt_mult_c2): Likewise.
425 (wmmxt_alu_c1): Likewise.
426 (wmmxt_alu_c2): Likewise.
427 (wmmxt_alu_c3): Likewise.
428 (wmmxt_transfer_c1): Likewise.
429 (wmmxt_transfer_c2): Likewise.
430 (wmmxt_transfer_c3): Likewise.
431 (marvell_f_iwmmxt_wstr): Likewise.
432 (marvell_f_iwmmxt_wldr): Likewise.
433
bdb7bf8a
YZ
4342013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
435
0ba6aff3 436 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
bdb7bf8a 437
e6631d38
VM
4382013-06-28 Vladimir Makarov <vmakarov@redhat.com>
439
440 Revert:
441 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
442 * lra-constraints.c (need_for_split_p): Check call used hard regs
443 living through calls.
444
445 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
446 call used regs for call insn.
447
53c1275b
JJ
4482013-06-28 Jakub Jelinek <jakub@redhat.com>
449
450 PR target/57736
0ba6aff3
UB
451 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
452 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
53c1275b 453
1141ed3f
BI
4542013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
455
456 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
e6631d38 457
e32e4c4a
VM
4582013-06-28 Vladimir Makarov <vmakarov@redhat.com>
459
460 * lra-constraints.c (need_for_split_p): Check call used hard regs
461 living through calls.
462
f161bfd3
MM
4632013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
464
465 PR target/57744
466 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
467 to tie with any other modes. Eliminate Altivec vector mode tests,
468 since these are a subset of ALTIVEC or VSX vector modes. Simplify
469 code, to return 0 if testing MODE2 for a condition, if we've
470 already tested MODE1 for the same condition.
471
7eda14e1
MS
4722013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
473
474 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
475 layout.
476
c822f852
MS
4772013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
478
479 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
480 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
481
da4f13a4
MS
4822013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
483
0ba6aff3
UB
484 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
485 Define.
da4f13a4
MS
486 (aarch64_symbolic_constant_p): Remove.
487 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
488 static. Fix line length and white space.
489 (aarch64_symbolic_constant_p): Remove.
490 * config/aarch64/predicates.md (aarch64_valid_symref):
491 Use aarch64_classify_symbol_expression.
492
956a95a5
KT
4932013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
494
495 * config/arm/constraints.md (Ts): New constraint.
496 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
497 16-bit encodings.
498 (compare_scc): Use "Ts" constraint for operand 0.
499 (ior_scc_scc): Likewise.
500 (and_scc_scc): Likewise.
501 (and_scc_scc_nodom): Likewise.
502 (ior_scc_scc_cmp): Likewise for operand 7.
503 (and_scc_scc_cmp): Likewise.
504 * config/arm/thumb2.md (thumb2_movsi_insn):
505 Add alternatives for 16-bit encodings.
506 (thumb2_movhi_insn): Likewise.
507 (thumb2_movsicc_insn): Likewise.
508 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
509 (thumb2_negscc): Use "Ts" constraint.
510 Move mvn instruction outside cond_exec block.
511 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
512 for 16-bit encodings.
513
31dfce10
KT
5142013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
515
516 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
517 encoding.
518 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
519 (mulsi3subsi): Likewise.
520 (mulsidi3adddi): Likewise.
521 (mulsidi3_v6): Likewise.
522 (umulsidi3_v6): Likewise.
523 (umulsidi3adddi_v6): Likewise.
524 (smulsi3_highpart_v6): Likewise.
525 (umulsi3_highpart_v6): Likewise.
526 (mulhisi3tb): Likewise.
527 (mulhisi3bt): Likewise.
528 (mulhisi3tt): Likewise.
529 (maddhisi4): Likewise.
530 (maddhisi4tb): Likewise.
531 (maddhisi4tt): Likewise.
532 (maddhidi4): Likewise.
533 (maddhidi4tb): Likewise.
534 (maddhidi4tt): Likewise.
535 (zeroextractsi_compare0_scratch): Likewise.
536 (insv_zero): Likewise.
537 (insv_t2): Likewise.
538 (anddi_notzesidi_di): Likewise.
539 (anddi_notsesidi_di): Likewise.
540 (andsi_notsi_si): Likewise.
541 (iordi_zesidi_di): Likewise.
542 (xordi_zesidi_di): Likewise.
543 (andsi_iorsi3_notsi): Likewise.
544 (smax_0): Likewise.
545 (smax_m1): Likewise.
546 (smin_0): Likewise.
547 (not_shiftsi): Likewise.
548 (unaligned_loadsi): Likewise.
549 (unaligned_loadhis): Likewise.
550 (unaligned_loadhiu): Likewise.
551 (unaligned_storesi): Likewise.
552 (unaligned_storehi): Likewise.
553 (extv_reg): Likewise.
554 (extzv_t2): Likewise.
555 (divsi3): Likewise.
556 (udivsi3): Likewise.
557 (arm_zero_extendhisi2addsi): Likewise.
558 (arm_zero_extendqisi2addsi): Likewise.
559 (compareqi_eq0): Likewise.
560 (arm_extendhisi2_v6): Likewise.
561 (arm_extendqisi2addsi): Likewise.
562 (arm_movt): Likewise.
563 (thumb2_ldrd): Likewise.
564 (thumb2_ldrd_base): Likewise.
565 (thumb2_ldrd_base_neg): Likewise.
566 (thumb2_strd): Likewise.
567 (thumb2_strd_base): Likewise.
568 (thumb2_strd_base_neg): Likewise.
569 (arm_negsi2): Add alternative for 16-bit encoding.
570 (arm_one_cmplsi2): Likewise.
571
1572e697
KT
5722013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
573
574 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
575 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
576 (movdfcc): Likewise.
577 * config/arm/vfp.md (*thumb2_movsf_vfp):
578 Disable predication for arm_restrict_it.
579 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
580 (*thumb2_movdfcc_vfp): Likewise.
581 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
582 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
583 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
584 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
585 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
586 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
587 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
588 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
589 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
590 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
591 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
592 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
593 Disable predication for arm_restrict_it.
594
ebf8f0ea
KY
5952013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
596
597 * config/i386/bmiintrin.h (_bextr_u32): New.
598 (_bextr_u64): Ditto.
599
a290fcda
RS
6002013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
601
602 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
603 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
604 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
605 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
606 * config/mips/n32-elf.h: ...this new file.
607
ea169996
MG
6082013-06-27 Marc Glisse <marc.glisse@inria.fr>
609
610 PR target/57224
611 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
612 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
613
8e932114
CM
6142013-06-27 Catherine Moore <clm@codesourcery.com>
615
616 * config/mips/mips-tables.opt: Regenerate.
617 * config/mips/mips-cpus.def: Add m14ke and m14kec.
0ba6aff3 618 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
8e932114 619 * doc/invoke.texi: Add -m14kc.
ebf8f0ea 620
2444244e
JJ
6212013-06-27 Jakub Jelinek <jakub@redhat.com>
622
cd06d2a2
JJ
623 PR target/57623
624 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
625 constraints of operand 1 and 2.
626
2444244e
JJ
627 PR target/57623
628 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
629 to match RTL canonicalization. Swap predicates and
630 constraints of operand 1 and 2.
631
2f259720
VM
6322013-06-27 Vladimir Makarov <vmakarov@redhat.com>
633
0ba6aff3
UB
634 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
635 Process OP_INOUT regs for splitting too.
2f259720 636
fef4d2b3
JJ
6372013-06-27 Jakub Jelinek <jakub@redhat.com>
638
639 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
640 decl before the loop, initialize to NULL.
641 (vectorizable_load): Initialize ptr_incr to NULL.
642
79ee9826
MJ
6432013-06-27 Martin Jambor <mjambor@suse.cz>
644
645 PR lto/57208
646 * ipa-ref.h (ipa_maybe_record_reference): Declare.
647 * ipa-ref.c (ipa_maybe_record_reference): New function.
648 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
649 * ipa-cp.c (create_specialized_node): Record potential references from
650 aggvals.
651 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
652
e18b4a81
YZ
6532013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
654
655 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
656 parameter 'mode' of type 'enum machine_mode mode'; change to pass
657 'mode' to force_reg.
658 (aarch64_add_offset): Update calls to aarch64_force_temporary.
659 (aarch64_expand_mov_immediate): Likewise.
660
9c023bf0
YZ
6612013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
662
663 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
664 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
665
5a3fe9b6
AK
6662013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
667
668 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
669 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
670 (struct machine_function): Add tbegin_p.
671 (s390_canonicalize_comparison): Fold CC mode compares to
672 conditional jump if possible.
673 (s390_emit_jump): Return the emitted jump.
674 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
675 Handle CCRAWmode compares.
676 (s390_option_override): Default to -mhtm if available.
677 (s390_reg_clobbered_rtx): Handle floating point regs as well.
678 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
679 FPRs instead of df_regs_ever_live_p.
680 (s390_optimize_nonescaping_tx): New function.
681 (s390_init_frame_layout): Extend clobbered_regs array to cover
682 FPRs as well.
683 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
684 (s390_expand_tbegin): New function.
685 (enum s390_builtin): New enum definition.
686 (code_for_builtin): New array definition.
687 (s390_init_builtins): New function.
688 (s390_expand_builtin): New function.
689 (TARGET_INIT_BUILTINS): Define.
690 (TARGET_EXPAND_BUILTIN): Define.
0ba6aff3 691 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
5a3fe9b6
AK
692 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
693 (s390_alc_comparison): Likewise.
694 * config/s390/s390-modes.def: Add CCRAWmode.
695 * config/s390/s390.h (processor_flags): Add PF_TX.
696 (TARGET_CPU_HTM): Define macro.
697 (TARGET_HTM): Define macro.
698 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
699 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
700 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
701 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
0ba6aff3 702 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
5a3fe9b6
AK
703 (TBEGIN_MASK, TBEGINC_MASK): New constants.
704 ("*cc_to_int"): Move up.
705 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
706 constants other than 0.
707 ("*ccraw_to_int"): New insn and splitter definition.
708 ("tbegin", "tbegin_nofloat", "tbegin_retry")
709 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
710 ("tx_assist"): New expander.
711 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
712 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
713 * config/s390/s390.opt: Add -mhtm option.
714 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
715 * config/s390/htmxlintrin.h: New file.
716 * config/s390/htmintrin.h: New file.
717 * config/s390/s390intrin.h: New file.
718 * doc/extend.texi: Document htm builtins.
719 * config.gcc: Add the new header files to extra_headers.
720
9e216629
TS
7212013-06-26 Thomas Schwinge <thomas@codesourcery.com>
722
723 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
0ba6aff3 724 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
9e216629 725
fd8c65e7
MM
7262013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
727 Pat Haugen <pthaugen@us.ibm.com>
728 Peter Bergner <bergner@vnet.ibm.com>
729
730 * config/rs6000/power8.md: New.
731 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
732 setting for power8 entry.
733 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
734 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
735 test for Power4/Power5 only.
736 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
737 support.
738 (force_new_group): Adjust comment.
739 * config/rs6000/rs6000.md: Include power8.md.
740
b24a2ce5
GY
7412013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
742
743 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
744 * config/arm/arm-protos.h (arm_max_conditional_execute): New
745 declaration.
746 (tune_params): Update comment.
747 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
748 (arm_max_conditional_execute): New function.
749 (thumb2_final_prescan_insn): Use max_insn_skipped and
750 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
751
f6fdeb62
JJ
7522013-06-25 Jakub Jelinek <jakub@redhat.com>
753
754 PR tree-optimization/57705
755 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
756 SSA_NAME step, provided that it is not defined inside the loop.
0ba6aff3 757 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
f6fdeb62
JJ
758 (get_initial_def_for_induction): Handle SSA_NAME IV step.
759
c13bc3d9
MJ
7602013-06-25 Martin Jambor <mjambor@suse.cz>
761
762 PR middle-end/57670
763 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
764 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
765 calls in the dump.
766 (ipa_note_param_call): Initialize member_ptr flag.
767 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
768 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
769 (ipa_write_indirect_edge_info): Stream member_ptr flag.
770 (ipa_read_indirect_edge_info): Likewise.
771
8a845901
RB
7722013-06-25 Richard Biener <rguenther@suse.de>
773
774 PR middle-end/56977
775 * passes.c (init_optimization_passes): Move pass_fold_builtins
776 and pass_dce earlier with -Og.
777
33be0bec
EB
7782013-06-25 Eric Botcazou <ebotcazou@adacore.com>
779
780 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
781 <BIT_FIELD_REF>: Remove trailing TAB.
782 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
783 remove blank line.
784
5fe8e757
MJ
7852013-06-24 Martin Jambor <mjambor@suse.cz>
786
787 PR tree-optimization/57358
788 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
789 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
790 (ipa_analyze_params_uses): Generate pessimistic info when true.
791
44a60244
MJ
7922013-06-24 Martin Jambor <mjambor@suse.cz>
793
794 PR tree-optimization/57539
795 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
796 global.inlined_to of the new node to it. All callers changed.
797 * ipa-inline-transform.c (clone_inlined_nodes): New variable
798 inlining_into, pass it to cgraph_clone_node.
799 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
800 ipa_free_edge_args_substructures.
801 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
802 rdesc linked list. Do not assert rdesc edges have inlined caller.
803 Assert we have found an rdesc in the rdesc list.
804
7c5848b8
RB
8052013-06-24 Richard Biener <rguenther@suse.de>
806
0ba6aff3 807 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
7c5848b8
RB
808 (pointer_set_lookup): Declare.
809 (class pointer_map): New template class implementing a
810 generic pointer to T map.
811 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
812 pointer_map<T>::contains, pointer_map<T>::insert,
813 pointer_map<T>::traverse): New functions.
814 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
815 (pointer_set_lookup): New function.
816 (pointer_set_contains): Use pointer_set_lookup.
817 (pointer_set_insert): Likewise.
818 (insert_aux): Remove.
819 (struct pointer_map_t): Embed a pointer_set_t.
820 (pointer_map_create): Adjust.
821 (pointer_map_destroy): Likewise.
822 (pointer_map_contains): Likewise.
823 (pointer_map_insert): Likewise.
824 (pointer_map_traverse): Likewise.
825 * tree-streamer.h (struct streamer_tree_cache_d): Use a
826 pointer_map<unsigned> instead of a pointer_map_t.
827 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
828 (streamer_tree_cache_lookup): Likewise.
829 (streamer_tree_cache_create): Likewise.
830 (streamer_tree_cache_delete): Likewise.
831 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
832 pointer_map<unsigned> instead of a pointer_map_t.
833 (lto_init_tree_ref_encoder): Adjust.
834 (lto_destroy_tree_ref_encoder): Likewise.
835 * lto-section-out.c (lto_output_decl_index): Likewise.
836 (lto_record_function_out_decl_state): Likewise.
837 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
838
3dbc97a9
RB
8392013-06-24 Richard Biener <rguenther@suse.de>
840
841 PR tree-optimization/57488
842 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
843
8345965a
AM
8442013-06-24 Alan Modra <amodra@gmail.com>
845
846 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
847 (gen_easy_altivec_constant): Likewise.
848 * config/rs6000/predicates.md (easy_vector_constant_add_self,
849 easy_vector_constant_msb): Likewise.
850
b7df379f
JJ
8512013-06-23 Jakub Jelinek <jakub@redhat.com>
852
853 PR target/57688
854 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
855 add missing return true.
856
0bcf9a09
OE
8572013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
858
859 PR target/52483
860 * config/sh/predicates.md (general_extend_operand): Invoke
861 general_movsrc_operand for memory operands.
862 (general_movsrc_operand): Allow reg+reg addressing, do not use
863 general_operand for memory operands.
864
97db2bf7
ST
8652013-06-23 Sriraman Tallam <tmsriram@google.com>
866
867 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
868 when current target options does not apply.
869 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
870 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
0ba6aff3
UB
871 * config/i386/bmiintrin.h: Pass appropriate target
872 attributes to header.
97db2bf7
ST
873 * config/i386/mmintrin.h: Ditto.
874 * config/i386/nmmintrin.h: Ditto.
875 * config/i386/avx2intrin.h: Ditto.
876 * config/i386/fxsrintrin.h: Ditto.
877 * config/i386/tbmintrin.h: Ditto.
878 * config/i386/xsaveintrin.h: Ditto.
879 * config/i386/f16cintrin.h: Ditto.
880 * config/i386/xtestintrin.h: Ditto.
881 * config/i386/xsaveoptintrin.h: Ditto.
882 * config/i386/bmi2intrin.h: Ditto.
883 * config/i386/lzcntintrin.h: Ditto.
884 * config/i386/smmintrin.h: Ditto.
885 * config/i386/wmmintrin.h: Ditto.
886 * config/i386/x86intrin.h: Remove all header include guards.
887 * config/i386/prfchwintrin.h: Ditto.
888 * config/i386/pmmintrin.h: Ditto.
889 * config/i386/tmmintrin.h: Ditto.
890 * config/i386/xmmintrin.h: Ditto.
891 * config/i386/popcntintrin.h: Ditto.
892 * config/i386/rdseedintrin.h: Ditto.
893 * config/i386/ammintrin.h: Ditto.
894 * config/i386/emmintrin.h: Ditto.
895 * config/i386/immintrin.h: Remove all header include guards.
896 * config/i386/fma4intrin.h: Ditto.
897 * config/i386/lwpintrin.h: Ditto.
898 * config/i386/xopintrin.h: Ditto.
899 * config/i386/ia32intrin.h: Ditto.
900 * config/i386/avxintrin.h: Ditto.
901 * config/i386/rtmintrin.h: Ditto.
902 * config/i386/fmaintrin.h: Ditto.
903 * config/i386/mm3dnow.h: Ditto.
904
495e6879
ST
9052013-06-22 Sriraman Tallam <tmsriram@google.com>
906
907 * common/config/i386/i386-common.c: Handle LZCNT.
908
11e8f687
AK
9092013-06-22 Andi Kleen <ak@linux.intel.com>
910
911 * doc/extend.texi: Use __atomic_store_n instead of
912 __atomic_store in HLE example.
913
664dd721
OE
9142013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
915
916 * config/sh/sh.c: Remove <cstdlib> workaround.
917
927f908b
AK
9182013-06-21 Andi Kleen <ak@linux.intel.com>
919
0ba6aff3 920 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
927f908b 921
cca410b6
AK
9222013-06-21 Andi Kleen <ak@linux.intel.com>
923
924 * doc/extend.texi: Document that __atomic_clear and
925 __atomic_test_and_set should only be used with bool.
926
d84db1ed
JH
9272013-06-20 Jan Hubicka <jh@suse.cz>
928
929 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
930 types_same_for_odr.
931 * tree.c (decls_same_for_odr): New function.
932 (same_for_edr): New function.
933 (types_same_for_odr): New function.
934 (get_binfo_at_offset): Use it.
935 * tree.h (types_same_for_odr): Declare.
936
664dd721 9372013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
469a31a9
OE
938 Jason Merrill <jason@redhat.com>
939
940 * system.h: Include <cstdlib> as well as <stdlib.h>.
941
49b4ff63
UB
9422013-06-20 Uros Bizjak <ubizjak@gmail.com>
943
944 PR target/57655
945 * config/i386/i386.c (construct_container): Report error if
946 long double is used with disabled x87 float returns.
947
7a89ad00
JH
9482013-06-20 Jan Hubicka <jh@suse.cz>
949
950 * lto-cgraph.c (input_symtab): Do not set cgraph state.
951
bd280792
JR
9522013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
953
954 PR rtl-optimization/57425
955 PR rtl-optimization/57569
956 * alias.c (write_dependence_p): Remove parameters mem_mode and
957 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
958 Changed all callers.
959 (canon_anti_dependence): Get comments and semantics in sync.
960 Add parameter mem_canonicalized. Changed all callers.
961 * rtl.h (canon_anti_dependence): Update prototype.
962
d16e9a99
RB
9632013-06-20 Richard Biener <rguenther@suse.de>
964
965 * data-streamer-in.c (streamer_read_uhwi): Optimize single
966 byte case, inline streamer_read_uchar and defer section
967 overrun check.
968
c3a9b91b
RB
9692013-06-20 Richard Biener <rguenther@suse.de>
970
971 PR tree-optimization/57584
972 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
973 SSA names into the expanded expression that take part in
974 abnormal coalescing.
975
fc8a650e
SS
9762013-06-19 <singhai@google.com>
977
978 * gcov.c (print_usage): Handle new option.
979 (process_args): Ditto.
980 (get_gcov_intermediate_filename): New function.
981 (output_intermediate_file): New function.
982 (output_gcov_file): New function
983 (generate_results): Handle new option.
984 (release_function): Relase demangled name.
985 (read_graph_file): Handle demangled name.
986 (output_lines): Ditto.
987 * doc/gcov.texi: Document gcov intermediate format.
988
11f5b71a
VM
9892013-06-19 Vladimir Makarov <vmakarov@redhat.com>
990
991 PR bootstrap/57604
992 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
993 (lra_emit_add): Use the functions. Add comment about Y as an
994 address segment.
995
e1f9340b
DE
9962013-06-19 David Edelsohn <dje.gcc@gmail.com>
997
998 PR driver/57652
999 * collect2.c (collect_atexit): New.
1000 (collect_exit): Delete.
1001 (main): Register collect_atexit with atexit.
1002 (collect_wait): Change collect_exit to exit.
1003 (do_wait): Same.
1004 * collect2.h (collect_exit): Delete.
1005 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
1006
e3f9e0ac
WM
10072013-06-19 Wei Mi <wmi@google.com>
1008
1009 PR rtl-optimization/57518
1010 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
1011 if regno is used in paradoxical subreg.
1012 (update_equiv_regs): Check pdx_subregs[regno] before
1013 set a reg to be equivalent with a mem.
1014
a09f1a76
MK
10152013-06-19 Matthias Klose <doko@ubuntu.com>
1016
1017 PR driver/57651
1018 * file-find.h (find_a_file): Add a mode parameter.
1019 * file-find.c (find_a_file): Likewise.
1020 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
1021 with X_OK for the executables.
1022 * collect2.c (main): Call find_a_file with X_OK.
1023
7d18b0ad
SE
10242013-06-19 Steve Ellcey <sellcey@mips.com>
1025
1026 PR target/56942
1027 * config/mips/mips.md (casesi_internal_mips16_<mode>):
1028 Use NEXT_INSN instead of next_real_insn.
1029
6a6dac52
JH
10302013-06-19 Jan Hubicka <jh@suse.cz>
1031
1032 * cgraph.h (const_value_known_p): Replace by ...
1033 (ctor_for_folding): .. this one.
1034 * cgraphunit.c (process_function_and_variable_attributes): Use it.
1035 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
1036 * expr.c (expand_expr_real_1): Likewise.
1037 (string_constant): Likewise.
1038 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
1039 * ipa.c (process_references): Likewise.
1040 (symtab_remove_unreachable_nodes): Likewise.
1041 * ipa-inline-analysis.c (param_change_prob): Likewise.
1042 * gimple-fold.c (canonicalize_constructor_val): Likewise.
1043 (get_base_constructor): Likwise.
1044 * varpool.c (varpool_remove_node): Likewise.
1045 (varpool_remove_initializer): LIkewise.
1046 (dump_varpool_node): LIkwise.
1047 (const_value_known_p): Rewrite to ...
1048 (ctor_for_folding): ... this one.
1049
216c12ab
JJ
10502013-06-19 Jakub Jelinek <jakub@redhat.com>
1051
1052 PR driver/57651
1053 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
1054 PERSONALITY in $PATH derived prefixes.
1055
d53e2f99
JL
10562013-06-19 Jeff Law <law@redhat.com>
1057
ecdbf306
JL
1058 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
1059 in comment.
1060
d53e2f99
JL
1061 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
1062 (simplify_bitwise_binary): Use it to simpify certain binary ops on
1063 booleans.
1064
89e7fc04
SN
10652013-06-19 Sofiane Naci <sofiane.naci@arm.com>
1066
1067 * config/arm/vfp.md: Move VFP instruction classification documentation
1068 to ...
1069 * config/arm/arm.md: ... here. Update instruction classification
1070 documentation.
1071
5e7f6aaa
RE
10722013-06-19 Richard Earnshaw <rearnsha@arm.com>
1073
1074 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
1075 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
1076 pattern. Use more efficient sequences on ARMv5 and Thumb2.
1077
5fdc1e5d
SB
10782013-06-19 Steven Bosscher <steven@gcc.gnu.org>
1079
1080 PR target/57609
1081 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
1082 with NEXT_INSN. Use tablejump_p to check for jump table data
1083 insns.
1084
e952afba
PC
10852013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
1086
1087 PR c++/56544
1088 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
1089 that now in C++ the value is correct per the C++ standards.
1090
3fd0303a
RB
10912013-06-19 Richard Biener <rguenther@suse.de>
1092
1093 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
1094 for global context.
1095
b04e4b08
AK
10962013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1097
1098 Revert:
1099 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1100
1101 PR target/57609
1102 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
1103 with next_active_insn.
1104
bef8491a
ST
11052013-06-18 Sriraman Tallam <tmsriram@google.com>
1106
1107 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
1108 functions are inlined during failures to flag an error.
1109 * tree-inline.c (expand_call_inline): Allow the error to be flagged
1110 in early inline pass.
22fc7d3d 1111
c21b257d
L
11122013-06-18 H.J. Lu <hongjiu.lu@intel.com>
1113
1114 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
1115 in comments.
1116
33255ae3
JB
11172013-06-18 Julian Brown <julian@codesourcery.com>
1118
1119 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
1120 Permit virtual register pre-reload if !strict.
1121 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
1122 change.
1123 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
1124 prototype.
1125 * config/arm/neon.md (movmisalign<mode>): Use
1126 neon_perm_struct_or_reg_operand instead of
1127 neon_struct_or_register_operand.
1128 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
1129 neon_permissive_struct_operand instead of neon_struct_operand.
1130 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
1131 neon_vector_mem_operand.
1132 * config/arm/predicates.md (neon_struct_operand): Adjust call to
1133 neon_vector_mem_operand.
1134 (neon_permissive_struct_operand): New.
1135 (neon_struct_or_register_operand): Rename to...
1136 (neon_perm_struct_or_reg_operand): This. Adjust call to
1137 neon_vector_mem_operand.
1138
d579fcda
RB
11392013-06-18 Richard Biener <rguenther@suse.de>
1140
1141 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
1142 * lto-streamer.h: Include pointer-set.h.
1143 (struct lto_decl_slot): Remove.
1144 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
1145 Remove next_index entry.
1146 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
1147 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
1148 (lto_init_tree_ref_encoder): Adjust.
1149 (lto_destroy_tree_ref_encoder): Likewise.
1150 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
1151 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
1152 (lto_output_decl_index): Adjust.
1153 (lto_new_out_decl_state): Likewise.
1154 (lto_record_function_out_decl_state): Likewise.
1155 * lto-streamer-out.c (copy_function): Likewise.
1156
31ee20ba
RB
11572013-06-18 Richard Biener <rguenther@suse.de>
1158
1159 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
1160 * cgraphunit.c: Include cfgloop.h.
1161 (init_lowered_empty_function): Initialize the loop tree.
1162 (assemble_thunk): Insert new BBs into loops.
1163
ac0511f2
RB
11642013-06-18 Richard Biener <rguenther@suse.de>
1165
1166 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
1167 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
1168 the map from cache entry to cache index optional.
1169 (streamer_tree_cache_replace_tree): Adjust accordingly.
1170 (streamer_tree_cache_append): Likewise.
1171 (streamer_tree_cache_delete): Likewise.
1172 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
1173 streamer cache map from cache entry to cache index.
1174 * lto-streamer-out.c (create_output_block): Adjust.
1175
09485a08
SN
11762013-06-18 Sofiane Naci <sofiane.naci@arm.com>
1177
22fc7d3d
UB
1178 * config/arm/arm.md (attribute "insn"): Move multiplication and
1179 division attributes to...
09485a08
SN
1180 (attribute "type"): ... here. Remove mult.
1181 (attribute "mul32"): New attribute.
1182 (attribute "mul64"): Add umaal.
1183 (*arm_mulsi3): Update attributes.
1184 (*arm_mulsi3_v6): Likewise.
1185 (*thumb_mulsi3): Likewise.
1186 (*thumb_mulsi3_v6): Likewise.
1187 (*mulsi3_compare0): Likewise.
1188 (*mulsi3_compare0_v6): Likewise.
1189 (*mulsi_compare0_scratch): Likewise.
1190 (*mulsi_compare0_scratch_v6): Likewise.
1191 (*mulsi3addsi): Likewise.
1192 (*mulsi3addsi_v6): Likewise.
1193 (*mulsi3addsi_compare0): Likewise.
1194 (*mulsi3addsi_compare0_v6): Likewise.
1195 (*mulsi3addsi_compare0_scratch): Likewise.
1196 (*mulsi3addsi_compare0_scratch_v6): Likewise.
1197 (*mulsi3subsi): Likewise.
1198 (*mulsidi3adddi): Likewise.
1199 (*mulsi3addsi_v6): Likewise.
1200 (*mulsidi3adddi_v6): Likewise.
1201 (*mulsidi3_nov6): Likewise.
1202 (*mulsidi3_v6): Likewise.
1203 (*umulsidi3_nov6): Likewise.
1204 (*umulsidi3_v6): Likewise.
1205 (*umulsidi3adddi): Likewise.
1206 (*umulsidi3adddi_v6): Likewise.
1207 (*smulsi3_highpart_nov6): Likewise.
1208 (*smulsi3_highpart_v6): Likewise.
1209 (*umulsi3_highpart_nov6): Likewise.
1210 (*umulsi3_highpart_v6): Likewise.
1211 (mulhisi3): Likewise.
1212 (*mulhisi3tb): Likewise.
1213 (*mulhisi3bt): Likewise.
1214 (*mulhisi3tt): Likewise.
1215 (maddhisi4): Likewise.
1216 (*maddhisi4tb): Likewise.
1217 (*maddhisi4tt): Likewise.
1218 (maddhidi4): Likewise.
1219 (*maddhidi4tb): Likewise.
1220 (*maddhidi4tt): Likewise.
1221 (divsi3): Likewise.
1222 (udivsi3): Likewise.
1223 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
1224 (thumb2_mulsi_short_compare0): Likewise.
1225 (thumb2_mulsi_short_compare0_scratch): Likewise.
1226 * config/arm/arm1020e.md (1020mult1): Update attribute change.
1227 (1020mult2): Likewise.
1228 (1020mult3): Likewise.
1229 (1020mult4): Likewise.
1230 (1020mult5): Likewise.
1231 (1020mult6): Likewise.
22fc7d3d
UB
1232 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
1233 change.
09485a08
SN
1234 (cortex_a15_mult64): Likewise.
1235 (cortex_a15_sdiv): Likewise.
1236 (cortex_a15_udiv): Likewise.
1237 * config/arm/arm1026ejs.md (mult1): Update attribute change.
1238 (mult2): Likewise.
1239 (mult3): Likewise.
1240 (mult4): Likewise.
1241 (mult5): Likewise.
1242 (mult6): Likewise.
1243 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
1244 (pj4_ir_div): Likewise.
1245 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
1246 (11_mult2): Likewise.
1247 (11_mult3): Likewise.
1248 (11_mult4): Likewise.
1249 (11_mult5): Likewise.
1250 (11_mult6): Likewise.
1251 (11_mult7): Likewise.
1252 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
1253 (cortex_a8_mla): Likewise.
1254 (cortex_a8_mull): Likewise.
1255 (cortex_a8_smulwy): Likewise.
1256 (cortex_a8_smlald): Likewise.
1257 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
1258 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
1259 (cortex_r4_mul_3): Likewise.
1260 (cortex_r4_mla_4): Likewise.
1261 (cortex_r4_mla_3): Likewise.
1262 (cortex_r4_smlald): Likewise.
1263 (cortex_r4_mull): Likewise.
1264 (cortex_r4_sdiv): Likewise.
1265 (cortex_r4_udiv): Likewise.
1266 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
1267 (cortex_a7_idiv): Likewise.
1268 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
1269 (9_mult2): Likewise.
1270 (9_mult3): Likewise.
1271 (9_mult4): Likewise.
1272 (9_mult5): Likewise.
1273 (9_mult6): Likewise.
1274 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
1275 (cortex_a53_sdiv): Likewise.
1276 (cortex_a53_udiv): Likewise.
1277 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
1278 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
1279 (mp626_mult2): Likewise.
1280 (mp626_mult3): Likewise.
1281 (mp626_mult4): Likewise.
1282 * config/arm/fa526.md (526_mult1): Update attribute change.
1283 (526_mult2): Likewise.
1284 * config/arm/arm-generic.md (mult): Update attribute change.
1285 (mult_ldsched_strongarm): Likewise.
1286 (mult_ldsched): Likewise.
1287 (multi_cycle): Likewise.
1288 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
1289 * config/arm/fa606te.md (606te_mult1): Update attribute change.
1290 (606te_mult2): Likewise.
1291 (606te_mult3): Likewise.
1292 (606te_mult4): Likewise.
1293 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
1294 (cortex_a9_mac16): Likewise.
1295 (cortex_a9_multiply): Likewise.
1296 (cortex_a9_mac): Likewise.
1297 (cortex_a9_multiply_long): Likewise.
1298 * config/arm/fa626te.md (626te_mult1): Update attribute change.
1299 (626te_mult2): Likewise.
1300 (626te_mult3): Likewise.
1301 (626te_mult4): Likewise.
1302
8951f345
RB
13032013-06-18 Richard Biener <rguenther@suse.de>
1304
1305 PR lto/57334
1306 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
1307
d8101d05
AK
13082013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1309
1310 PR target/57609
1311 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
1312 with next_active_insn.
1313
69eff9da
AM
13142013-06-18 Alan Modra <amodra@gmail.com>
1315
1316 * config/rs6000/rs6000.h (enum data_align): New.
1317 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
1318 (DATA_ABI_ALIGNMENT): Define.
1319 (CONSTANT_ALIGNMENT): Correct comment.
1320 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
1321 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
1322
8ed00d76
DM
13232013-06-17 David Malcolm <dmalcolm@redhat.com>
1324
1325 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
1326 ATTRIBUTE_UNUSED marking.
1327
3d33d06b
SN
13282013-06-17 Sofiane Naci <sofiane.naci@arm.com>
1329
1330 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
1331 alternative and update.
1332 (aarch64_dup_lanedi): Delete.
1333 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
1334 * config/aarch64/aarch64-simd-builtins.def: Update.
1335
ee03e71d
RB
13362013-06-17 Richard Biener <rguenther@suse.de>
1337
1338 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
1339 (lto_input_scc): Declare.
1340 (lto_input_tree_1): Likewise.
1341 (struct lto_stats_d): Add num_tree_bodies_output and
1342 num_pickle_refs_output.
1343 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
1344 (lto_read_tree_1): Split out from ...
1345 (lto_read_tree): ... this.
1346 (lto_input_scc): New function.
1347 (lto_input_tree_1): Split out from ...
1348 (lto_input_tree): ... this. Handle LTO_tree_scc.
1349 (lto_data_in_create): Create the streamer cache without hashes.
1350 * lto-streamer-out.c (create_output_block): Create the streamer
1351 cache with hashes when not doing WPA.
1352 (lto_write_tree_1): Split out from ...
1353 (lto_write_tree): ... this.
1354 (get_symbol_initial_value): New function.
1355 (lto_output_tree_1): Split out from ...
1356 (lto_output_tree): ... this. Write trees as series of SCCs
1357 using a DFS walk via DFS_write_tree.
1358 (struct sccs, struct scc_entry): New types.
1359 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
1360 (DFS_write_tree_body): New function.
1361 (DFS_write_tree): Likewise.
1362 (hash_tree): Likewise.
1363 (scc_entry_compare): Likewise.
1364 (hash_scc): Likewise.
1365 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
1366 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
1367 TREE_CHAIN as regular reference.
1368 (streamer_read_integer_cst): Remove.
1369 (streamer_get_pickled_tree): Adjust.
1370 * tree-streamer-out.c (streamer_write_chain): Disable streaming
1371 of DECL_EXTERNALs in BLOCK_VARS for now.
1372 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
1373 reference.
1374 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
1375 Add hash value argument and record that if hashes are recorded
1376 in the cache.
1377 (streamer_tree_cache_insert_1): Adjust.
1378 (streamer_tree_cache_insert): Likewise.
1379 (streamer_tree_cache_insert_at): Rename to ...
1380 (streamer_tree_cache_replace_tree): ... this and adjust.
1381 (streamer_tree_cache_append): Adjust.
1382 (record_common_node): Likewise.
1383 (streamer_tree_cache_create): Add argument whether to
1384 record hash values together with trees.
1385 (streamer_tree_cache_delete): Adjust.
1386 * tree-streamer.h (struct streamer_tree_cache_d): Add
1387 vector of hashes.
1388 (streamer_read_integer_cst): Remove.
1389 (streamer_tree_cache_insert): Adjust.
1390 (streamer_tree_cache_append): Likewise.
1391 (streamer_tree_cache_insert_at): Rename to ...
1392 (streamer_tree_cache_replace_tree): ... this and adjust.
1393 (streamer_tree_cache_create): Add argument whether to record hashes.
1394 (streamer_tree_cache_get): Rename to ...
1395 (streamer_tree_cache_get_tree): ... this.
1396 (streamer_tree_cache_get_hash): New function.
1397 * tree.c (cache_integer_cst): New function.
1398 * tree.h (cache_integer_cst): Declare.
1399 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
1400 * lto-symtab.c (lto_varpool_replace_node): Only release
1401 DECL_INITIAL of non-prevailing decls.
1402 * varpool.c (varpool_remove_initializer): Do not release
1403 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
1404
0de86a92
JU
14052013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
1406
1407 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
1408 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
1409 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
1410 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
1411 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
1412 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
1413 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
1414 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
1415 instead of TARGET_64BIT.
1416 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
1417 Require ISA_HAS_<D>DIV.
1418
74240413
RS
14192013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
1420
1421 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
1422 (mips*-*-linux*): Move default with_llsc setting to where other
1423 defaults are set.
1424 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
1425 with_arch block.
1426 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
1427 Likewise. Remove default with_tune setting. Move default float
1428 setting to its own block. Handle with_llsc in the same block as above.
1429
393f9fed
JR
14302013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
1431
1432 PR rtl-optimization/57425
1433 PR rtl-optimization/57569
299a5f6a 1434 * alias.c (write_dependence_p): Add new parameters mem_mode,
393f9fed
JR
1435 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
1436 Changed all callers.
1437 (canon_anti_dependence): New function.
1438 * cse.c (check_dependence): Use canon_anti_dependence.
1439 * cselib.c (cselib_invalidate_mem): Likewise.
1440 * rtl.h (canon_anti_dependence): Declare.
1441
b259d352
JU
14422013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
1443
1444 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
1445 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
1446 ".set mips3" for 64-bit targets.
1447
4de09b85
DC
14482013-06-15 Dehao Chen <dehao@google.com>
1449
1450 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
1451 * gimple-low.c (gimple_check_call_matching_types): Likewise.
1452 (gimple_check_call_args): Likewise.
1453 * value-prof.c (check_ic_target): Likewise.
1454 * ipa-inline.c (early_inliner): Likewise.
1455 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
1456 * cgraph.c (cgraph_create_edge_1): Likewise.
1457 (cgraph_make_edge_direct): Likewise.
1458
d1aa4a76
MM
14592013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1460
1461 PR target/57615
1462 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
1463 rs6000_output_move_128bit to handle emitting quad memory
1464 operations. Set attribute length to 8 bytes.
1465
24244e4d
VP
14662013-06-14 Vidya Praveen <vidyapraveen@arm.com>
1467
1468 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
1469 New pattern.
1470 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
1471 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
1472 (aarch64_<su>mlsl<mode>): Likewise.
1473
f5273574
MS
14742013-06-14 Mike Stump <mikestump@comcast.net>
1475
1476 * Makefile.in (TARGET_H): Add insn-codes.h.
1477
ef7e7ab2
AM
14782013-06-14 Alan Modra <amodra@gmail.com>
1479
1480 PR middle-end/57134
1481 PR middle-end/57586
1482 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
1483 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
1484 bitfield expansion when EXPAND_MEMORY.
1485 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
1486
135faab6
MM
14872013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
1488
1489 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1490 test for clearing quad memory on 32-bit later.
1491
948a1fd9
MG
14922013-06-13 Marc Glisse <marc.glisse@inria.fr>
1493
1494 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
1495 (fold_negate_expr): Likewise.
1496 (fold_real_zero_addition_p): Handle vectors.
1497 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
1498
0597fb9c
AM
14992013-06-14 Alan Modra <amodra@gmail.com>
1500
1501 * varasm.c (force_const_mem): Revert 2013-06-07 change.
1502
e5b962d0
JH
15032013-06-13 Jan Hubicka <jh@suse.cz>
1504
1505 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
1506 Local comdats are not externally visible.
1507 * symtab.c (dump_symtab_base): Dump externally visible.
1508 (verify_symtab_base): Verify back links in the symtab hash.
1509
a8355e51
BC
15102013-06-13 Bin Cheng <bin.cheng@arm.com>
1511
1512 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
1513 CONVERT_EXPR as equal nodes.
1514
8f7e6e33
BC
15152013-06-13 Bin Cheng <bin.cheng@arm.com>
1516
22fc7d3d 1517 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
8f7e6e33 1518
5d418483
MG
15192013-06-13 Marc Glisse <marc.glisse@inria.fr>
1520
1521 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
1522 Generalize to complex and vector.
1523 * tree.c (build_all_ones_cst): New function.
1524 * tree.h (build_all_ones_cst): Declare it.
1525
50751417
AM
15262013-06-13 Alan Modra <amodra@gmail.com>
1527
1528 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
1529 * config/rs6000/rs6000.md (signbittf2): New insn.
1530 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
1531 (abstf2_internal, cmptf_internal2): Likewise.
1532 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
1533
4b02c962
MM
15342013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
1535 Pat Haugen <pthaugen@us.ibm.com>
1536 Peter Bergner <bergner@vnet.ibm.com>
1537
1538 * config/rs6000/rs6000.c (emit_load_locked): Add support for
1539 power8 byte, half-word, and quad-word atomic instructions.
1540 (emit_store_conditional): Likewise.
1541 (rs6000_expand_atomic_compare_and_swap): Likewise.
1542 (rs6000_expand_atomic_op): Likewise.
1543
1544 * config/rs6000/sync.md (larx): Add new modes for power8.
1545 (stcx): Likewise.
1546 (AINT): New mode iterator to include TImode as well as normal
1547 integer modes on power8.
1548 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
1549 that VSX registers are not considered. Use AINT mode iterator
1550 instead of INT1 to allow inclusion of quad word atomic operations
1551 on power8.
1552 (load_locked<mode>): Likewise.
1553 (store_conditional<mode>): Likewise.
1554 (atomic_compare_and_swap<mode>): Likewise.
1555 (atomic_exchange<mode>): Likewise.
1556 (atomic_nand<mode>): Likewise.
1557 (atomic_fetch_<fetchop_name><mode>): Likewise.
1558 (atomic_nand_fetch<mode>): Likewise.
1559 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
1560 each type.
1561 (ATOMIC): On power8, add QImode, HImode modes.
1562 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
1563 modes that promote to SImode.
1564 (load_lockedti): Convert TImode arguments to PTImode, so that we
1565 get a guaranteed even/odd register pair.
1566 (load_lockedpti): Likewise.
1567 (store_conditionalti): Likewise.
1568 (store_conditionalpti): Likewise.
1569
1570 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
1571 atomic load/store instructions.
1572 (HSI): Likewise.
1573
710b6cc1
RS
15742013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
1575
1576 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
1577 loads.
1578 (insn_count): New attribute, with most cases extracted from...
1579 (length): ...here. Redefine most cases in terms of insn_count.
1580 (single_insn): Delete.
1581 (can_delay): Use insn_count to check for single instructions.
1582 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
1583 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
1584 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
1585 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
1586 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
1587 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
1588 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
1589 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
1590 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
1591 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
1592 rather than "length".
1593 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
1594 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
1595 Use "insn_count" rather than "length".
1596 * config/mips/mips-dsp.md
1597 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
1598 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
1599 length attributes.
1600
1951f101
MG
16012013-06-12 Marc Glisse <marc.glisse@inria.fr>
1602
1603 PR tree-optimization/57361
1604 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
1605
8b033a8a
SN
16062013-06-12 Sofiane Naci <sofiane.naci@arm.com>
1607
22fc7d3d
UB
1608 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
1609 to split.
8b033a8a
SN
1610 (aarch64_simd_combine<mode>): New instruction expansion.
1611 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
1612 function prototype.
1613 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
1614 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
1615
ca0f62a8
JH
16162013-06-12 Jan Hubicka <jh@suse.cz>
1617
1618 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
1619 decl has when in streaming stage.
1620 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
1621 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
1622
cddd69eb
RS
16232013-06-12 Roland Stigge <stigge@antcom.de>
1624
1625 PR target/57578
1626 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
1627
bfdeda2c
JJ
16282013-06-12 Jakub Jelinek <jakub@redhat.com>
1629
1630 PR tree-optimization/57537
1631 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
1632 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
1633
a4fa02d1
RB
16342013-06-12 Richard Biener <rguenther@suse.de>
1635
1636 * data-streamer.h (streamer_write_char_stream): CSE
1637 obs->current_pointer.
1638 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
1639 streamer_write_char_stream manually and optimize the resulting loop.
1640 (streamer_write_hwi_stream): Likewise.
1641
bbf9ad07
JH
16422013-06-12 Jan Hubicka <jh@suse.cz>
1643
1644 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
1645 * cgraph.h (varpool_create_empty_node): Declare.
1646 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
1647 duplicated nodes.
1648 * symtab.c (symtab_unregister_node): Be lax about missin entries
1649 in node hash.
1650 (symtab_get_node): Update comment.
1651 * varpool.c (varpool_create_empty_node): Break out from ...
1652 (varpool_node_for_decl): ... here.
1653 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
1654
a53f90ad
EB
16552013-06-12 Eric Botcazou <ebotcazou@adacore.com>
1656
1657 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
1658 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
1659 part. Use straight-line flow at the end.
1660 <COMPONENT_REF>: Remove superfluous else.
1661 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
1662
946f9306
JJ
16632013-06-12 Jakub Jelinek <jakub@redhat.com>
1664
1665 PR target/56564
1666 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
1667 target hook even for !TREE_PUBLIC decls. If no resolution info
1668 is available, return false for common and external decls.
1669
a7fca6f0
KP
16702013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1671
1672 * config/rl78/constraints.md (U): New constraint.
1673 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
1674 valloc attribute.
1675
c7d8f446
MM
16762013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1677
1678 PR target/57589
1679 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
1680 to allow returning address to AT_PLATFORM name.
1681
08346abd
JH
16822013-06-11 Jan Hubicka <jh@suse.cz>
1683
1684 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
1685 * cgraph.h (symtab_node_base): Add weakref flag.
1686 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
1687 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
1688 (output_weakrefs): Use weakref flag.
1689 * fold-const.c (simple_operand_p): Handle WEAK.
1690 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
1691 * ipa.c (varpool_externally_visible_p): Drop weakref.
1692 (function_and_variable_visibility): Update comment; fix weakref
1693 sanity checks; do not clear DECL_WEAK on them.
1694 * lto-cgraph.c (lto_output_node): update.
1695 (lto_output_varpool_node): Update.
1696 (input_overwrite_node): Update.
1697 (input_node): Update.
1698 (input_varpool_node): Update.
1699 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
1700 (lto_symtab_merge_symbols): Add sanity check.
1701 (lto_symtab_prevailing_decl): Do not special case weakrefs.
1702 * passes.c (rest_of_decl_compilation): Set static flag, too.
1703 * symtab.c (dump_symtab_base): Dump weakref.
1704 (verify_symtab_base): Sanity check weakrefs.
1705 (symtab_make_decl_local): Remove duplicated code.
1706 (symtab_alias_ultimate_target): Simplify.
1707 * varpool.c (varpool_create_variable_alias): Set weakref flag.
c7d8f446 1708
d9af3652
DD
17092013-06-11 DJ Delorie <dj@redhat.com>
1710
1711 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
1712 (rl78_unwind_word_mode): New.
1713
ffa66012
DM
17142013-06-11 David Malcolm <dmalcolm@redhat.com>
1715
1716 * final.c (debug_prefix_maps): Make static.
1717
783f2d35
DM
17182013-06-11 David Malcolm <dmalcolm@redhat.com>
1719
1720 * function.c (initial_trampoline): Remove stray copy.
1721
7af26def
SN
17222013-06-11 Sofiane Naci <sofiane.naci@arm.com>
1723
1724 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
1725
97756c0e
MJ
17262013-06-11 Martin Jambor <mjambor@suse.cz>
1727
1728 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
1729 within bounds at the beginning of the function.
1730
2c7b8bf6
AM
17312013-06-11 Alan Modra <amodra@gmail.com>
1732
1733 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
1734 reporting.
1735 (get_named_section): Don't NULL !DECL_P decl.
1736
77cea46e
IZ
17372013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
1738
1739 * doc/invoke.texi (core-avx2): Document.
1740 (slm): Likewise.
1741 (atom): Updated with MOVBE.
1742
888f0920
RB
17432013-06-11 Richard Biener <rguenther@suse.de>
1744
22fc7d3d 1745 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
888f0920 1746
6b438d58
AB
17472013-06-11 Anton Blanchard <anton@samba.org>
1748
1749 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
1750 correct shift value in little-endian mode.
1751
3bc66938
JJ
17522013-06-11 Jakub Jelinek <jakub@redhat.com>
1753
1754 PR target/56564
1755 * varasm.c (get_variable_align): Move #endif to the right place.
1756
a5dc7f88
CC
17572013-06-10 Cary Coutant <ccoutant@google.com>
1758
1759 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
1760 for hash so that hash table traversal order is deterministic.
1761
19be72ab
MM
17622013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
1763 Pat Haugen <pthaugen@us.ibm.com>
1764 Peter Bergner <bergner@vnet.ibm.com>
1765
1766 * config/rs6000/vector.md (GPR move splitter): Do not split moves
1767 of vectors in GPRS if they are direct moves or quad word load or
1768 store moves.
1769
1770 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
1771 declaration.
1772 (direct_move_p): Likewise.
1773 (quad_load_store_p): Likewise.
1774
1775 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
1776 classes into bins based on the physical register type.
1777 (reg_class_to_reg_type): Likewise.
1778 (IS_STD_REG_TYPE): Likewise.
1779 (IS_FP_VECT_REG_TYPE): Likewise.
1780 (reload_fpr_gpr): Arrays to determine what insn to use if we can
1781 use direct move instructions.
1782 (reload_gpr_vsx): Likewise.
1783 (reload_vsx_gpr): Likewise.
1784 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
1785 information that is a simplification of register classes. Also
1786 precalculate direct move reload helpers.
1787 (direct_move_p): New function to return true if the operation can
1788 be done as a direct move instruciton.
1789 (quad_load_store_p): New function to return true if the operation
1790 is a quad memory operation.
1791 (rs6000_legitimize_address): If quad memory, only allow register
1792 indirect for TImode addresses.
1793 (rs6000_legitimate_address_p): Likewise.
1794 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
1795 (rs6000_reload_register_type): Likewise.
1796 (register_to_reg_type): Return register type.
1797 (rs6000_secondary_reload_simple_move): New helper function for
1798 secondary reload and secondary memory needed to identify anything
1799 that is a simple move, and does not need reloading.
1800 (rs6000_secondary_reload_direct_move): New helper function for
1801 secondary reload to identify cases that can be done with several
1802 instructions via the direct move instructions.
1803 (rs6000_secondary_reload_move): New helper function for secondary
1804 reload to identify moves between register types that can be done.
1805 (rs6000_secondary_reload): Add support for quad memory operations
1806 and for direct move.
1807 (rs6000_secondary_memory_needed): Likewise.
1808 (rs6000_debug_secondary_memory_needed): Change argument names.
1809 (rs6000_output_move_128bit): New function to return the move to
1810 use for 128-bit moves, including knowing about the various
1811 limitations of quad memory operations.
1812
1813 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
1814 memory operations. call rs6000_output_move_128bit for the actual
1815 instruciton(s) to generate.
1816 (vsx_movti_64bit): Likewise.
1817
1818 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
1819 (UNSPEC_P8V_MTVSRWZ): Likewise.
1820 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
1821 (UNSPEC_P8V_MTVSRD): Likewise.
1822 (UNSPEC_P8V_XXPERMDI): Likewise.
1823 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
1824 (UNSPEC_FUSION_GPR): Likewise.
1825 (FMOVE128_GPR): New iterator for direct move.
22fc7d3d 1826 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
19be72ab
MM
1827 (f32_sv): Likewise.
1828 (f32_dm): Likewise.
1829 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
1830 loads and direct move instructions.
1831 (zero_extendsidi2_lfiwzx): Likewise.
1832 (extendsidi2_lfiwax): Likewise.
1833 (extendsidi2_nocell): Likewise.
1834 (floatsi<mode>2_lfiwax): Likewise.
1835 (lfiwax): Likewise.
1836 (floatunssi<mode>2_lfiwzx): Likewise.
1837 (lfiwzx): Likewise.
1838 (fix_trunc<mode>_stfiwx): Likewise.
1839 (fixuns_trunc<mode>_stfiwx): Likewise.
1840 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
1841 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
1842 (parity<mode>2_cmpb): Set length/type attr.
1843 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
1844 for 'mr.' to fast_compare.
1845 (bpermd_<mode>): Change type attr to popcnt.
1846 (p8_fmrgow_<mode>): New insns for power8 direct move support.
1847 (p8_mtvsrwz_1): Likewise.
1848 (p8_mtvsrwz_2): Likewise.
1849 (reload_fpr_from_gpr<mode>): Likewise.
1850 (p8_mtvsrd_1): Likewise.
1851 (p8_mtvsrd_2): Likewise.
1852 (p8_xxpermdi_<mode>): Likewise.
1853 (reload_vsx_from_gpr<mode>): Likewise.
1854 (reload_vsx_from_gprsf): Likewise.
1855 (p8_mfvsrd_3_<mode>): LIkewise.
1856 (reload_gpr_from_vsx<mode>): Likewise.
1857 (reload_gpr_from_vsxsf): Likewise.
1858 (p8_mfvsrd_4_disf): Likewise.
1859 (multi-word GPR splits): Do not split direct moves or quad memory
1860 operations.
1861
16876bdc
DM
18622013-06-10 David Malcolm <dmalcolm@redhat.com>
1863
1864 * tree-into-ssa.c (interesting_blocks): Make static.
1865
df8a1d28
JJ
18662013-06-10 Jakub Jelinek <jakub@redhat.com>
1867
1868 PR target/56564
1869 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
1870 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
1871 Use DATA_ABI_ALIGNMENT for that case instead if defined.
1872 (get_variable_align): New function.
1873 (get_variable_section, emit_bss, emit_common,
1874 assemble_variable_contents, place_block_symbol): Use
1875 get_variable_align instead of DECL_ALIGN.
1876 (assemble_noswitch_variable): Add align argument, use it
1877 instead of DECL_ALIGN.
1878 (assemble_variable): Adjust caller. Use get_variable_align
1879 instead of DECL_ALIGN.
1880 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
1881 caller.
1882 (DATA_ABI_ALIGNMENT): Define.
1883 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
1884 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
1885 opt is false, only return the psABI mandated alignment increase.
1886 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
1887 (DATA_ABI_ALIGNMENT): ... this.
1888 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
1889 (DATA_ABI_ALIGNMENT): ... this.
1890 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
1891 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
1892 (DATA_ABI_ALIGNMENT): ... this.
1893 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
1894 * doc/tm.texi: Regenerated.
1895
57b29ca6
UB
18962013-06-10 Uros Bizjak <ubizjak@gmail.com>
1897
1898 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
1899 cmp_code to construct REG_EQUAL note.
1900
3e56ed50
JJ
19012013-06-09 Jakub Jelinek <jakub@redhat.com>
1902
1903 PR target/57568
1904 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
1905 that operands[2] doesn't overlap with operands[0].
1906
74fe2a1d
DE
19072013-06-09 David Edelsohn <dje.gcc@gmail.com>
1908 Jan Hubicka <jh@suse.cz>
1909
1910 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
1911 hack to mark symbols as used.
1912
ed52a84e
VM
19132013-06-08 Vladimir Makarov <vmakarov@redhat.com>
1914
1915 PR rtl-optimization/57559
1916 * lra-constraints.c (process_alt_operands): Don't discourage
1917 memory with known offset for offsetable memory constraint.
1918 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
1919
299316ed
EB
19202013-06-08 Eric Botcazou <ebotcazou@adacore.com>
1921
1922 * varasm.c (struct oc_local_state): Reorder fields.
1923 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
1924 and adjust accordingly.
1925 (output_constructor): Reorder initialization code and adjust call to
1926 output_constructor_bitfield.
1927
88ac60d3
JH
19282013-06-07 Jan Hubicka <jh@suse.cz>
1929
1930 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
1931
4cdce1a8
DM
19322013-06-07 David Malcolm <dmalcolm@redhat.com>
1933
1934 * tree-object-size.c (unknown): Make const.
1935
b5e0425c
AK
19362013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1937
1938 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
1939 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
1940 for last alternative in the cpu_facility attribute.
1941
79678d04
KT
19422013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1943
1944 PR target/56315
1945 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
1946 (xordi3): Change operand 2 constraint to arm_xordi_operand.
1947 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
1948 * config/arm/constraints.md (Dg): New constraint.
1949 * config/arm/neon.md (xordi3_neon): Remove.
1950 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
1951 * config/arm/predicates.md (arm_xordi_operand): New predicate.
1952
b31ddbdb
KT
19532013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1954
1955 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
1956 Clean up alternatives.
1957
8f90b7d4
AM
19582013-06-07 Alan Modra <amodra@gmail.com>
1959
1960 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
1961 va_list_gpr_size.
1962
961ce119
AM
19632013-06-07 Alan Modra <amodra@gmail.com>
1964
1965 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
1966
33e49835
KT
19672013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1968
1969 * config/arm/constraints.md (Df): New constraint.
1970 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
1971 Correct length attribute for last two alternatives.
1972
acd17ae6
AM
19732013-06-07 Alan Modra <amodra@gmail.com>
1974
1975 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
1976 override user -mfp-in-toc.
1977 (offsettable_ok_by_alignment): Consider just the current access
1978 rather than the whole object, unless BLKmode. Handle
1979 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
1980 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
1981 for -mcmodel=medium.
1982 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
1983 override user -mfp-in-toc or -msum-in-toc. Default to
1984 -mno-fp-in-toc for -mcmodel=medium.
1985
73310b0e
DD
19862013-06-06 DJ Delorie <dj@redhat.com>
1987
1988 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
1989 TARGET_VALID_POINTER_MODE.
1990
0bd62dca
MM
19912013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
1992 Pat Haugen <pthaugen@us.ibm.com>
1993 Peter Bergner <bergner@vnet.ibm.com>
1994
1995 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
1996 Document new power8 builtins.
1997
1998 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
1999 condition code register, to allow 128-bit logical operations to be
2000 done in the VSX or GPR registers.
2001 (nor<mode>3): Use the canonical form for nor.
2002 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
2003 vclz*, and vpopcnt* vector instructions.
2004 (nand<mode>3): Likewise.
2005 (orc<mode>3): Likewise.
2006 (clz<mode>2): LIkewise.
2007 (popcount<mode>2): Likewise.
2008
2009 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
2010 that only the GPRs are recognized.
2011
2012 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2013 support for new power8 builtins.
2014
2015 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
2016 builtin functions.
2017 (xscvdpspn): Likewise.
2018 (vclz): Likewise.
2019 (vclzb): Likewise.
2020 (vclzh): Likewise.
2021 (vclzw): Likewise.
2022 (vclzd): Likewise.
2023 (vpopcnt): Likewise.
2024 (vpopcntb): Likewise.
2025 (vpopcnth): Likewise.
2026 (vpopcntw): Likewise.
2027 (vpopcntd): Likewise.
2028 (vgbbd): Likewise.
2029 (vmrgew): Likewise.
2030 (vmrgow): Likewise.
2031 (eqv): Likewise.
2032 (eqv_v16qi3): Likewise.
2033 (eqv_v8hi3): Likewise.
2034 (eqv_v4si3): Likewise.
2035 (eqv_v2di3): Likewise.
2036 (eqv_v4sf3): Likewise.
2037 (eqv_v2df3): Likewise.
2038 (nand): Likewise.
2039 (nand_v16qi3): Likewise.
2040 (nand_v8hi3): Likewise.
2041 (nand_v4si3): Likewise.
2042 (nand_v2di3): Likewise.
2043 (nand_v4sf3): Likewise.
2044 (nand_v2df3): Likewise.
2045 (orc): Likewise.
2046 (orc_v16qi3): Likewise.
2047 (orc_v8hi3): Likewise.
2048 (orc_v4si3): Likewise.
2049 (orc_v2di3): Likewise.
2050 (orc_v4sf3): Likewise.
2051 (orc_v2df3): Likewise.
2052
2053 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
2054 allow power8 quad mode in 64-bit.
2055 (rs6000_builtin_vectorized_function): Add support to vectorize
2056 ISA 2.07 count leading zeros, population count builtins.
2057 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
2058 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
2059 (builtin_function_type): Add vgbbd builtin function which takes an
2060 unsigned argument.
2061 (altivec_expand_vec_perm_const): Add support for new power8 merge
2062 instructions.
2063
2064 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
2065 that does not include TImdoe for use with 32-bit.
2066 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
2067 instructions.
2068 (UNSPEC_VSX_CVDPSPN): Likewise.
2069 (vsx_xscvdpspn): Likewise.
2070 (vsx_xscvspdpn): Likewise.
2071 (vsx_xscvdpspn_scalar): Likewise.
2072 (vsx_xscvspdpn_directmove): Likewise.
2073 (vsx_and<mode>3): Split logical operations into 32-bit and
2074 64-bit. Add support to do logical operations on TImode as well as
2075 VSX vector types. Allow logical operations to be done in either
2076 VSX registers or in general purpose registers in 64-bit mode. Add
2077 splitters if GPRs were used. For AND, add clobber of CCmode to
2078 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
2079 encoding.
2080 (vsx_and<mode>3_32bit): Likewise.
2081 (vsx_and<mode>3_64bit): Likewise.
2082 (vsx_ior<mode>3): Likewise.
2083 (vsx_ior<mode>3_32bit): Likewise.
2084 (vsx_ior<mode>3_64bit): Likewise.
2085 (vsx_xor<mode>3): Likewise.
2086 (vsx_xor<mode>3_32bit): Likewise.
2087 (vsx_xor<mode>3_64bit): Likewise.
2088 (vsx_one_cmpl<mode>2): Likewise.
2089 (vsx_one_cmpl<mode>2_32bit): Likewise.
2090 (vsx_one_cmpl<mode>2_64bit): Likewise.
2091 (vsx_nor<mode>3): Likewise.
2092 (vsx_nor<mode>3_32bit): Likewise.
2093 (vsx_nor<mode>3_64bit): Likewise.
2094 (vsx_andc<mode>3): Likewise.
2095 (vsx_andc<mode>3_32bit): Likewise.
2096 (vsx_andc<mode>3_64bit): Likewise.
2097 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
2098 and xxlorc instructions.
2099 (vsx_eqv<mode>3_64bit): Likewise.
2100 (vsx_nand<mode>3_32bit): Likewise.
2101 (vsx_nand<mode>3_64bit): Likewise.
2102 (vsx_orc<mode>3_32bit): Likewise.
2103 (vsx_orc<mode>3_64bit): Likewise.
2104
2105 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
2106
2107 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
2108 instruction.
2109 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
2110 (p8_vmrgow): Likewise.
2111 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
2112 GPRs to be split under VSX.
2113 (p8v_clz<mode>2): Add power8 count leading zero support.
2114 (p8v_popcount<mode>2): Add power8 population count support.
2115 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
2116 support.
2117
2118 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
2119 instruction.
2120
2121 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
2122 builtin functions.
2123 (vec_nand): Likewise.
2124 (vec_vclz): Likewise.
2125 (vec_vclzb): Likewise.
2126 (vec_vclzd): Likewise.
2127 (vec_vclzh): Likewise.
2128 (vec_vclzw): Likewise.
2129 (vec_vgbbd): Likewise.
2130 (vec_vmrgew): Likewise.
2131 (vec_vmrgow): Likewise.
2132 (vec_vpopcnt): Likewise.
2133 (vec_vpopcntb): Likewise.
2134 (vec_vpopcntd): Likewise.
2135 (vec_vpopcnth): Likewise.
2136 (vec_vpopcntw): Likewise.
2137
37684c46
VM
21382013-06-06 Vladimir Makarov <vmakarov@redhat.com>
2139
2140 PR rtl-optimization/57468
2141 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
2142 spilled pseudos.
2143
d89ae27c
VM
21442013-06-06 Vladimir Makarov <vmakarov@redhat.com>
2145
2146 PR rtl-optimization/57459
2147 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
2148 type when setting live regs.
2149
3597e113
VM
21502013-06-06 Vladimir Makarov <vmakarov@redhat.com>
2151
2152 * config/s390/s390.opt (mlra): New option.
2153 * config/s390/s390.c (s390_decompose_address): Check displacement
2154 for all registers for LRA.
2155 (s390_secondary_reload): Don't used secondary reloads for LRA.
2156 (s390_lra_p): New function.
2157 (TARGET_LRA_P): Define.
2158 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
2159 of attribute cpu_facility to zarch for the last alternative.
2160 (*cmpmem_short): Ditto.
2161
01037aeb
EB
21622013-06-06 Eric Botcazou <ebotcazou@adacore.com>
2163
2164 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
2165 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
2166 (arm_expand_prologue): Likewise.
2167
3371a64f
TJ
21682013-06-06 Teresa Johnson <tejohnson@google.com>
2169
2170 PR c++/53743
2171 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
2172 as this is now done by redirect_edge_and_branch_force.
2173 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
2174 barriers, and fix interaction with splitting.
2175 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
2176 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
2177 reflect changes made in the routine.
2178 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
2179 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
2180 since this is called in cfglayout mode, and replace partition fixup
2181 with assert as that is now done by force_nonfallthru_and_redirect.
2182 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
2183 already be marked with region crossing note.
2184 (insert_section_boundary_note): Make non-static, gate on flag
2185 has_bb_partition, rewrite to also check for multiple partitions.
2186 (rest_of_handle_reorder_blocks): Remove call to
2187 insert_section_boundary_note, now done later during free_cfg.
2188 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
2189 * bb-reorder.h (insert_section_boundary_note): Declare.
2190 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
2191 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
2192 invoke insert_section_boundary_note.
2193 (try_redirect_by_replacing_jump): Remove unnecessary
2194 check for region crossing note.
2195 (fixup_partition_crossing): New function.
2196 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
2197 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
2198 in non-cfglayout mode.
2199 (force_nonfallthru_and_redirect): Fixup partition boundaries,
2200 remove old code that tried to do this. Emit barrier correctly
2201 when we are in cfglayout mode.
2202 (last_bb_in_partition): New function.
2203 (rtl_split_edge): Correctly fixup partition boundaries.
2204 (commit_one_edge_insertion): Remove old code that tried to
2205 fixup region crossing edge since this is now handled in
2206 split_block, and set up insertion point correctly since
2207 block may now end in a jump.
2208 (verify_hot_cold_block_grouping): Guard against checking when not in
2209 linearized RTL mode.
2210 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
2211 notes.
2212 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
2213 rtl_verify_flow_info, so not called in cfglayout mode.
2214 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
2215 (fixup_reorder_chain): Remove old code that attempted to fixup region
2216 crossing note as this is now handled in force_nonfallthru_and_redirect.
2217 (duplicate_insn_chain): Don't duplicate switch section notes.
2218 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
2219 note.
2220 * basic-block.h (emit_barrier_after_bb): Declare.
2221
66071e10
KT
22222013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2223
2224 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
2225 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
2226 arm_usatsihi): Adjust alternatives for arm_restrict_it.
2227
0e26bf3d
KT
22282013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2229
2230 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
2231 where appropriate.
2232 * config/arm/ldmstm.md: Regenerate.
2233
12b4e7ef
KT
22342013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2235
2236 * config/arm/sync.md (atomic_loaddi_1):
2237 Disable predication for arm_restrict_it.
2238 (arm_load_exclusive<mode>): Likewise.
2239 (arm_load_exclusivesi): Likewise.
2240 (arm_load_exclusivedi): Likewise.
2241 (arm_load_acquire_exclusive<mode>): Likewise.
2242 (arm_load_acquire_exclusivesi): Likewise.
2243 (arm_load_acquire_exclusivedi): Likewise.
2244 (arm_store_exclusive<mode>): Likewise.
2245 (arm_store_exclusive<mode>): Likewise.
2246 (arm_store_release_exclusivedi): Likewise.
2247 (arm_store_release_exclusive<mode>): Likewise.
2248
15d16c8a
RB
22492013-06-06 Richard Biener <rguenther@suse.de>
2250
2251 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
2252 after LTO_null.
2253 (lto_tag_is_tree_code_p): Adjust.
2254 (lto_tag_is_gimple_code_p): Likewise.
2255 (lto_gimple_code_to_tag): Likewise.
2256 (lto_tag_to_gimple_code): Likewise.
2257 (lto_tree_code_to_tag): Likewise.
2258 (lto_tag_to_tree_code): Likewise.
2259 * data-streamer.h (streamer_write_hwi_in_range): Use
2260 uhwi streaming to stream the normalized range.
2261 (streamer_read_hwi_in_range): Likewise.
2262
17a7fc37
KT
22632013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2264
2265 * config/arm/arm.md (enabled_for_depr_it): New attribute.
2266 (predicable_short_it): Likewise.
2267 (predicated): Likewise.
2268 (enabled): Handle above.
2269 (define_cond_exec): Set predicated attribute to yes.
2270
b57ca59b
MS
22712013-06-05 Mike Stump <mikestump@comcast.net>
2272
2273 * gdbinit.in (__FUNCTION__): Add.
2274
c1e183a9
UB
22752013-06-05 Uros Bizjak <ubizjak@gmail.com>
2276
2277 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
2278 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
2279
0378bddb
JH
22802013-06-05 Jan Hubicka <jh@suse.cz>
2281
2282 * varasm.c (mark_decl_referenced): Revert the removal until targets
2283 are fixed.
2284
8f8a2057
DE
22852013-06-05 David Edelsohn <dje.gcc@gmail.com>
2286
2287 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
2288 instead of mark_decl_referenced.
2289
edb983b2
JH
22902013-06-05 Jan Hubicka <jh@suse.cz>
2291
2292 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
2293 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
2294 and symtab_used_from_object_file_p.
2295 (cgraph_make_node_local_1): Clear forced_by_abi.
2296 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
2297 * cgraph.h (symtab_node_base): Add forced_by_abi.
2298 (decide_is_variable_needed): Remove.
2299 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
2300 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
2301 (decide_is_symbol_needed): ... this one; handle symbols in general;
2302 always analyze virtuals; honnor forced_by_abi.
2303 (cgraph_finalize_function): Update.
2304 (varpool_finalize_decl): Update.
2305 (symbol_defined_and_needed): Remove.
2306 (analyze_functions): Update.
2307 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
2308 output_refs, input_overwrite_node): Handle forced_by_abi.
2309 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
2310 (address_taken_from_non_vtable_p): ... this one.
2311 (comdat_can_be_unshared_p_1): New function.
2312 (cgraph_comdat_can_be_unshared_p): Rename to ...
2313 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
2314 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
2315 (function_and_variable_visibility): Clear forced_by_abi as needed.
2316 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
2317 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
edb983b2
JH
2318 * symtab.c (dump_symtab_base): Dump forced_by_abi.
2319 * varpool.c (decide_is_variable_needed): Remove.
2320
9912dbe5
KT
23212013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2322
2323 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
2324 (arm_option_override): Override arm_restrict_it where appropriate.
2325 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
2326 * config/arm/arm.opt (mrestrict-it): New command-line option.
2327 * doc/invoke.texi: Document -mrestrict-it.
2328
34c136b6
DM
23292013-06-05 David Malcolm <dmalcolm@redhat.com>
2330
2331 * tsan.c (tsan_atomic_table): Make const.
2332
a367df53
RB
23332013-06-05 Richard Biener <rguenther@suse.de>
2334
2335 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
2336 index associated with the tree we are supposed to replace.
2337 * tree-streamer-out.c (pack_ts_base_value_fields): Output
2338 TREE_ASM_WRITTEN as zero for everything but SSA names.
2339
70d51a19
DM
23402013-06-05 David Malcolm <dmalcolm@redhat.com>
2341
2342 * tree-ssa-structalias.c (call_stmt_vars): Make static.
2343
b9bd2075
JH
23442013-06-04 Jan Hubicka <jh@suse.cz>
2345
2346 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
2347 (input_node, input_varpool_node): Handle correctly external same
2348 body aliases.
2349 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
2350 nodes at ltrans stage.
2351
aaae719d
JH
23522013-06-04 Jan Hubicka <jh@suse.cz>
2353
2354 * ipa-inline.c (update_caller_keys): Fix availability test.
2355 (update_callee_keys): Likewise.
2356 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
2357 to follow ELF standard.
2358
107eea2c
JU
23592013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
2360
2361 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
2362 (mips64r5900el-*-elf*): New configurations.
2363 * config/mips/mips-cpus.def (r5900): New processor.
2364 * config/mips/mips-tables.opt: Regenerate.
2365 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
2366 (mips_issue_rate): Handle PROCESSOR_R5900.
2367 (mips_reorg_process_insns): Force reorder mode for the R5900.
2368 * config/mips/mips.h (TARGET_MIPS5900): Define.
2369 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
2370 TARGET_MIPS5900.
2371 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
2372 TARGET_MIPS5900.
2373 * config/mips/mips.md (processor): Add r5900.
2374 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
2375
b7342d25
IB
23762013-06-04 Ian Bolton <ian.bolton@arm.com>
2377
2378 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
2379 into function to generate MOVI instruction.
c1e183a9 2380 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
b7342d25
IB
2381 (aarch64_preferred_simd_mode): Turn into wrapper.
2382 (aarch64_output_scalar_simd_mov_immediate): New function.
2383 * config/aarch64/aarch64-protos.h: Add prototype for above.
2384
81c2dfb9
IB
23852013-06-04 Ian Bolton <ian.bolton@arm.com>
2386
2387 * config/aarch64/aarch64.c (simd_immediate_info): Remove
2388 element_char member.
2389 (sizetochar): Return signed char.
2390 (aarch64_simd_valid_immediate): Remove elchar and other
2391 unnecessary variables.
2392 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
2393 Calculate element_char as required.
2394 * config/aarch64/aarch64-protos.h: Update and move prototype
2395 for aarch64_output_simd_mov_immediate.
2396 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
2397 Update arguments.
2398
48063b9d
IB
23992013-06-04 Ian Bolton <ian.bolton@arm.com>
2400
2401 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
2402 information completed by aarch64_simd_valid_immediate.
2403 (aarch64_legitimate_constant_p): Update arguments.
2404 (aarch64_simd_valid_immediate): Work with struct rather than many
2405 pointers.
2406 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
2407 (aarch64_simd_make_constant): Update arguments.
2408 (aarch64_output_simd_mov_immediate): Work with struct rather than
2409 many pointers. Output immediate directly rather than as operand.
2410 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
2411 Update prototype.
2412 * config/aarch64/constraints.md (Dn): Update arguments.
2413
3ea63f60
IB
24142013-06-04 Ian Bolton <ian.bolton@arm.com>
2415
2416 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
2417 longer static.
2418 (aarch64_simd_immediate_valid_for_move): Remove.
2419 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
2420 (aarch64_simd_make_constant): Update call.
2421 (aarch64_output_simd_mov_immediate): Update call.
2422 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
2423 Add prototype.
2424 * config/aarch64/constraints.md (Dn): Update call.
2425
d8edd899
IB
24262013-06-04 Ian Bolton <ian.bolton@arm.com>
2427
2428 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
2429 return type to bool for prototype.
2430 (aarch64_legitimate_constant_p): Check for true instead of not -1.
2431 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
2432 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
2433
44b20bb8
CM
24342013-06-04 Catherine Moore <clm@codesourcery.com>
2435
2436 * config/mips/mips.opt (meva): New.
c1e183a9 2437 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
44b20bb8
CM
2438 (ASM_SPEC): Handle -meva.
2439 * doc/invoke.texi (meva): Document.
2440
52befbd8
AM
24412013-06-04 Alan Modra <amodra@gmail.com>
2442
2443 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
2444 constant output.
2445
aadaf24e
KT
24462013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2447
2448 * rtl.def: Add extra fourth optional field to define_cond_exec.
2449 * gensupport.c (process_one_cond_exec): Process attributes from
2450 define_cond_exec.
2451 * doc/md.texi: Document fourth field in define_cond_exec.
2452
0cd9e9ee
EB
24532013-06-04 Eric Botcazou <ebotcazou@adacore.com>
2454
2455 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
2456 out the processing order as in store_bit_field_1.
2457
cb0f665d
JH
24582013-06-04 Jan Hubicka <jh@suse.cz>
2459
2460 PR middle-end/57500
2461 * cgraphunit.c (cgraph_process_same_body_aliases): Create
2462 non-VAR_DECL node if it does not exist yet.
2463
53984b9b
RS
24642013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
2465
2466 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
2467 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
2468 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
2469 target_cpu_default setting.
2470
5d318fd4
TJ
24712013-06-03 Teresa Johnson <tejohnson@google.com>
2472
2473 * dumpfile.c (opt_info_switch_p): Change -fopt-info
2474 default to -fopt-info=optimized instead of all.
2475 * doc/invoke.texi: Ditto.
2476 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
2477 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
2478 (execute_vect_slp): Emit BB vectorization success under
2479 MSG_OPTIMIZED_LOCATIONS.
2480 * tree-vect-slp.c (vect_slp_transform_bb): Change
2481 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
2482 * tree-vect-loop.c (vect_transform_loop): Ditto.
2483
ec3af349
JM
24842013-06-03 Jason Merrill <jason@redhat.com>
2485
2486 PR c++/57415
2487 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2488 Use TARGET_EXPR for C++.
2489
1baf9159
JJ
24902013-06-03 Jakub Jelinek <jakub@redhat.com>
2491
2492 PR rtl-optimization/57268
0cd9e9ee 2493 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
1baf9159
JJ
2494 if DEBUG_INSN_P (insn).
2495
2496 Reapply
2497 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
2498
2499 PR rtl-optimization/57268
2500 * sched-deps.c (sched_analyze_2): Flush dependence lists if
2501 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2502
0f1d3965
YR
25032013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
2504
2505 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
2506 (ix86_avoid_lea_for_addr): Likewise.
2507 (exact_dependency_1): Likewise.
2508 (ix86_adjust_cost): Likewise.
2509 (swap_top_of_ready_list): Fix formatting and !reload_completed check
2510 removed.
2511 (do_reorder_for_imul): Fix typo, formatting and
2512 !reload_completed check removed.
2513 (ix86_sched_reorder): Fix typo and formatting.
2514 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
2515 list.
2516
3bc30db4
SN
25172013-06-03 Sofiane Naci <sofiane.naci@arm.com>
2518
2519 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
2520
19cc6fac
EB
25212013-06-03 Eric Botcazou <ebotcazou@adacore.com>
2522
2523 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
2524 <STRING_CST>: Likewise.
2525 <VECTOR_CST>: Likewise.
2526
c68a6e08
JW
25272013-06-01 Janus Weil <janus@gcc.gnu.org>
2528 Mikael Morin <mikael@gcc.gnu.org>
2529
2530 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
2531 * config.in: Regenerated.
2532 * configure: Regenerated.
2533
38e55e5c
JH
25342013-06-01 Jan Hubicka <jh@suse.cz>
2535
2536 PR middle-end/57366
2537 * cgraphunit.c (compile): When weakref is not supported,
2538 set up transparent aliases before final output pass.
2539 * varasm.c (assemble_alias): Do not try to do it here.
2540
eb51d2ff
JH
25412013-06-01 Jan Hubicka <jh@suse.cz>
2542
2543 PR middle-end/57467
2544 * passes.c (for_per_function): Skip unanalyzed functions.
2545
40a7fe1e
JH
25462013-06-01 Jan Hubicka <jh@suse.cz>
2547
2548 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
2549 (lto_symtab_merge_symbols_1): ... this one.
2550 (lto_symtab_merge_cgraph_nodes): Rename to ...
2551 (lto_symtab_merge_symbols): ... this one; simplify.
2552 * cgraph.c (same_body_aliases_done): Rename to ...
2553 (cpp_implicit_aliases_done): ... this one.
2554 (cgraph_create_function_alias): Update.
2555 (cgraph_same_body_alias): Update.
c1e183a9 2556 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
40a7fe1e 2557 (verify_edge_corresponds_to_fndecl): Simplify.
c1e183a9 2558 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
40a7fe1e
JH
2559 (cgraph_node): Remove same_body_alias.
2560 (varpool_node): Remove alias_of and extra_name_alias.
2561 (same_body_aliases_done): Rename to ..
2562 (cpp_implicit_aliases_done): ... this one.
2563 (symtab_alias_ultimate_target): Add default parameter.
2564 (symtab_resolve_alias): New function.
2565 (fixup_same_cpp_alias_visibility): Declare.
2566 (cgraph_function_node): Add default parameter.
2567 (cgraph_node_asm_name): Likewise.
2568 (cgraph_function_or_thunk_node): Add default parameter; do
2569 not ICE when it is NULL.
2570 (varpool_variable_node): Likewise.
2571 * tree-emutls.c (create_emultls_var): Update.
2572 (ipa_lower_emutls): Update.
2573 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
2574 (cgraph_reset_node): Reset alias info.
2575 (cgraph_finalize_function): Update.
2576 (fixup_same_cpp_alias_visibility): Move to symtab.c.
2577 (analyze_function): Simplify.
2578 (cgraph_process_same_body_aliases): Simplify.
2579 (analyze_functions): Fixup same body aliases.
2580 (handle_alias_pairs): Simplify.
2581 (assemble_thunk): Update.
2582 (assemble_thunks_and_aliases): Update.
2583 (output_weakrefs): Rewrite.
2584 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
2585 (lto_output_varpool_node): Likewise.
2586 (compute_ltrans_boundary): Remve assert.
2587 (get_alias_symbol): New functoin.
2588 (input_node): Rewrite alias handling.
2589 (input_varpool_node): Likewise.
2590 * ipa-pure-const.c (propagate_pure_const): Fix formating.
2591 * ipa.c (process_references): Handle weakrefs correctly.
2592 (symtab_remove_unreachable_nodes): Likewise.
2593 * trans-mem.c (get_cg_data): Update.
2594 (ipa_tm_create_version_alias): Update.
2595 (ipa_tm_execute): Update.
2596 * symtab.c (dump_symtab_base): Dump aliases.
2597 (verify_symtab_base): Verify aliases.
2598 (symtab_node_availability): New function.
2599 (symtab_alias_ultimate_target): Simplify.
2600 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
2601 handle all the fixup cases.
2602 (symtab_resolve_alias): New function.
2603 * passes.c (ipa_write_summaries): Handle weakrefs.
2604 * varpool.c (varpool_analyze_node): Simplify.
2605 (assemble_aliases): Update.
2606 (varpool_create_variable_alias): Simplify.
2607 (varpool_extra_name_alias): Simplify.
2608 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
2609 (lto_symtab_merge_symbols): ... this one.
2610
21759881
DT
26112013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
2612
2613 Revert
2614 PR rtl-optimization/57268
2615 * sched-deps.c (sched_analyze_2): Flush dependence lists if
2616 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2617
daf4e940
TB
26182013-06-01 Tobias Burnus <burnus@net-b.de>
2619
2620 Partially reverted:
2621 2013-05-31 Tobias Burnus <burnus@net-b.de>
2622
2623 PR middle-end/57073
2624 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
2625 further up.
2626
c359d8d0
DT
26272013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
2628
2629 PR rtl-optimization/57268
2630 * sched-deps.c (sched_analyze_2): Flush dependence lists if
2631 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2632
4172215d
EB
26332013-05-31 Eric Botcazou <ebotcazou@adacore.com>
2634
2635 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
2636 unordered comparison operators when -fno-trapping-math is in effect
2637 on the e500.
2638 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
2639 and implement unordered comparison operators properly on the e500.
2640
a8c50132
EB
26412013-05-31 Eric Botcazou <ebotcazou@adacore.com>
2642
2643 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
2644 for constant scalar integers.
2645 (simplify_relational_operation_1): Likewise.
2646
44626634
SB
26472013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
2648
2649 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
2650 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
2651 Fix comment.
2652
55805e54
YR
26532013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
2654 Igor Zamyatin <igor.zamyatin@intel.com>
2655
2656 Silvermont (SLM) architecture performance tuning.
2657 * config/i386/i386.h (enum ix86_tune_indices): Add
2658 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
2659 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
2660
2661 * config/i386/i386.c (initial_ix86_tune_features)
2662 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
2663 (ix86_lea_outperforms): Handle Silvermont tuning.
2664 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
2665 call.
2666 (ix86_use_lea_for_mov): Likewise.
2667 (ix86_avoid_lea_for_addr): Likewise.
2668 (ix86_lea_for_add_ok): Likewise.
2669 (exact_dependency_1): New function.
2670 (exact_store_load_dependency): Likewise.
2671 (ix86_adjust_cost): Handle Silvermont tuning.
2672 (do_reoder_for_imul): Likewise.
2673 (swap_top_of_ready_list): New function.
2674 (ix86_sched_reorder): Changed to handle Silvermont tuning.
2675
2676 * config/i386/i386.md (peepholes that split memory operand in fp
2677 converts): New.
2678
e19c9de2
MS
26792013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
2680
2681 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2682 Remove un-necessary braces.
2683
38e6c9a6
MS
26842013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
2685
2686 * config/aarch64/aarch64.c (aarch64_classify_symbol):
2687 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
2688
e3530904
TB
26892013-05-31 Tobias Burnus <burnus@net-b.de>
2690
2691 PR middle-end/57073
c1e183a9 2692 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
e3530904 2693
b6af05a9
KT
26942013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2695
2696 PR target/56315
2697 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
2698 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
2699 * config/arm/neon.md (iordi3_neon): Remove.
2700 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
2701 * config/arm/predicates.md (imm_for_neon_logic_operand):
2702 Move to earlier in the file.
2703 (neon_logic_op2): Likewise.
2704 (arm_iordi_operand_neon): New predicate.
2705
f800c166
RB
27062013-05-31 Richard Biener <rguenther@suse.de>
2707
2708 PR tree-optimization/57478
2709 PR tree-optimization/57453
2710 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
2711 are life as well.
2712
e571fa59
KP
27132013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
2714
2715 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
2716 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
2717
0fa6e0ef
TB
27182013-05-30 Tobias Burnus <burnus@net-b.de>
2719 Thomas Koenig <tkoenig@gcc.gnu.org>
2720
2721 PR middle-end/57073
2722 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
2723 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
2724
4688ddf5
SB
27252013-05-30 Steven Bosscher <steven@gcc.gnu.org>
2726
0fa6e0ef 2727 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
4688ddf5 2728
3b9ceb4b
VM
27292013-05-30 Vladimir Makarov <vmakarov@redhat.com>
2730
2731 * target.def (register_usage_leveling_p): New hook.
2732 * targhooks.c (default_register_usage_leveling_p): New.
2733 * targhooks.h (default_register_usage_leveling_p): New prototype.
2734 * lra-assigns.c (register_usage_leveling_p): Use the hook.
2735 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
2736 * doc/tm.texi: Update.
2737 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
2738
65f9e789
IB
27392013-05-30 Ian Bolton <ian.bolton@arm.com>
2740
2741 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
2742 (*insv_reg<mode>): New define_insn.
2743
ca035367
JR
27442013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
2745
2746 PR rtl-optimization/57439
2747 * postreload.c (move2add_valid_value_p): Check that we have
2748 a zero subreg_regno_offset when accessing the register in
2749 the requested mode.
2750
0b871ccf
YR
27512013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
2752 Igor Zamyatin <igor.zamyatin@intel.com>
2753
2754 Silvermont (SLM) architecture pipeline model, tuning and
2755 insn selection.
2756 * config.gcc: Add slm config options and target.
2757
2758 * config/i386/slm.md: New.
2759
2760 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
2761
2762 * gcc/config/i386/i386-c.c (ix86_target_macros_internal): New case
2763 PROCESSOR_SLM.
2764 (ix86_target_macros_internal): Likewise.
2765
2766 * gcc/config/i386/i386.c (slm_cost): New cost.
2767 (m_SLM): New macro flag.
2768 (initial_ix86_tune_features): Set m_SLM.
2769 (x86_accumulate_outgoing_args): Likewise.
2770 (x86_arch_always_fancy_math_387): Likewise.
2771 (processor_target_table): Add slm cost.
2772 (cpu_names): Add slm cpu name.
2773 (x86_option_override_internal): Set SLM ISA.
2774 (ix86_issue_rate): New case PROCESSOR_SLM.
2775 (ia32_multipass_dfa_lookahead): Likewise.
2776 (fold_builtin_cpu): Add slm.
2777
2778 * config/i386/i386.h (TARGET_SLM): New target macro.
2779 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
2780 (processor_type): Add PROCESSOR_SLM.
2781
2782 * config/i386/i386.md (cpu): Add new value "slm".
2783 (slm.md): Include slm.md.
2784
24d5b097
XG
27852013-05-30 Bernd Schmidt <bernds@codesourcery.com>
2786 Zhenqiang Chen <zhenqiang.chen@linaro.org>
2787
2788 * config/arm/arm-protos.h: Add and update function protos.
2789 * config/arm/arm.c (use_simple_return_p): New added.
2790 (thumb2_expand_return): Check simple_return flag.
2791 * config/arm/arm.md: Add simple_return and conditional simple_return.
2792 * config/arm/iterators.md: Add iterator for return and simple_return.
2793
c1cccc15
ZC
27942013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
2795
2796 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
2797 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
2798 (arm_emit_vfp_multi_reg_pop): Likewise.
2799 (thumb2_emit_ldrd_pop): Likewise.
2800 (arm_expand_epilogue): Add misc REG_CFA notes.
2801 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
2802
3a4f280b
LC
28032013-05-29 Lawrence Crowl <crowl@google.com>
2804
2805 * config/arm/t-arm: Update for below.
2806
2807 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
2808 Change type to hash_table. Update dependent calls and types.
2809
2810 * config/i386/t-cygming: Update for below.
2811
2812 * config/i386/t-interix: Update for below.
2813
2814 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
2815 Change type to hash_table. Update dependent calls and types.
2816 (i386_find_on_wrapper_list::wrappers): Likewise.
2817
2818 * config/ia64/t-ia64: Update for below.
2819
2820 * config/ia64/ia64.c (bundle_state_table):
2821 Change type to hash_table. Update dependent calls and types.
2822
2823 * config/mips/mips.c (mips_reorg_process_insns::htab):
2824 Change type to hash_table. Update dependent calls and types.
2825
2826 * config/sol2.c (solaris_comdat_htab):
2827 Change type to hash_table. Update dependent calls and types.
2828
2829 * config/t-sol2: Update for above.
2830
1388a0e3
TJ
28312013-05-29 Teresa Johnson <tejohnson@google.com>
2832
2833 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
2834 functions are not yet marked as defined.
2835
a5965b52
MM
28362013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
2837 Pat Haugen <pthaugen@us.ibm.com>
2838 Peter Bergner <bergner@vnet.ibm.com>
2839
2840 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
2841 instructions.
2842 (VEC_A): Likewise.
2843 (VEC_C): Likewise.
2844 (vrotl<mode>3): Likewise.
2845 (vashl<mode>3): Likewise.
2846 (vlshr<mode>3): Likewise.
2847 (vashr<mode>3): Likewise.
2848
2849 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2850 support for power8 V2DI builtins.
2851
2852 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
2853 power8 V2DI builtins.
2854 (vupkhsw): Likewise.
2855 (vupklsw): Likewise.
2856 (vaddudm): Likewise.
2857 (vminsd): Likewise.
2858 (vmaxsd): Likewise.
2859 (vminud): Likewise.
2860 (vmaxud): Likewise.
2861 (vpkudum): Likewise.
2862 (vpksdss): Likewise.
2863 (vpkudus): Likewise.
2864 (vpksdus): Likewise.
2865 (vrld): Likewise.
2866 (vsld): Likewise.
2867 (vsrd): Likewise.
2868 (vsrad): Likewise.
2869 (vsubudm): Likewise.
2870 (vcmpequd): Likewise.
2871 (vcmpgtsd): Likewise.
2872 (vcmpgtud): Likewise.
2873 (vcmpequd_p): Likewise.
2874 (vcmpgtsd_p): Likewise.
2875 (vcmpgtud_p): Likewise.
2876 (vupkhsw): Likewise.
2877 (vupklsw): Likewise.
2878 (vaddudm): Likewise.
2879 (vmaxsd): Likewise.
2880 (vmaxud): Likewise.
2881 (vminsd): Likewise.
2882 (vminud): Likewise.
2883 (vpksdss): Likewise.
2884 (vpksdus): Likewise.
2885 (vpkudum): Likewise.
2886 (vpkudus): Likewise.
2887 (vrld): Likewise.
2888 (vsld): Likewise.
2889 (vsrad): Likewise.
2890 (vsrd): Likewise.
2891 (vsubudm): Likewise.
2892
2893 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
2894 support for power8 V2DI instructions.
2895
2896 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
2897 power8 V2DI instructions. Combine pack and unpack insns to use an
2898 iterator for each mode. Check whether a particular mode supports
2899 Altivec instructions instead of just checking TARGET_ALTIVEC.
2900 (UNSPEC_VPKUWUM): Likewise.
2901 (UNSPEC_VPKSHSS): Likewise.
2902 (UNSPEC_VPKSWSS): Likewise.
2903 (UNSPEC_VPKUHUS): Likewise.
2904 (UNSPEC_VPKSHUS): Likewise.
2905 (UNSPEC_VPKUWUS): Likewise.
2906 (UNSPEC_VPKSWUS): Likewise.
2907 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
2908 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
2909 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
2910 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
2911 (UNSPEC_VUPKHSB): Likewise.
2912 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
2913 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
2914 (UNSPEC_VUPKHSH): Likewise.
2915 (UNSPEC_VUPKLSB): Likewise.
2916 (UNSPEC_VUPKLSH): Likewise.
2917 (VI2): Likewise.
2918 (VI_char): Likewise.
2919 (VI_scalar): Likewise.
2920 (VI_unit): Likewise.
2921 (VP): Likewise.
2922 (VP_small): Likewise.
2923 (VP_small_lc): Likewise.
2924 (VU_char): Likewise.
2925 (add<mode>3): Likewise.
2926 (altivec_vaddcuw): Likewise.
2927 (altivec_vaddu<VI_char>s): Likewise.
2928 (altivec_vadds<VI_char>s): Likewise.
2929 (sub<mode>3): Likewise.
2930 (altivec_vsubcuw): Likewise.
2931 (altivec_vsubu<VI_char>s): Likewise.
2932 (altivec_vsubs<VI_char>s): Likewise.
2933 (altivec_vavgs<VI_char>): Likewise.
2934 (altivec_vcmpbfp): Likewise.
2935 (altivec_eq<mode>): Likewise.
2936 (altivec_gt<mode>): Likewise.
2937 (altivec_gtu<mode>): Likewise.
2938 (umax<mode>3): Likewise.
2939 (smax<mode>3): Likewise.
2940 (umin<mode>3): Likewise.
2941 (smin<mode>3): Likewise.
2942 (altivec_vpkuhum): Likewise.
2943 (altivec_vpkuwum): Likewise.
2944 (altivec_vpkshss): Likewise.
2945 (altivec_vpkswss): Likewise.
2946 (altivec_vpkuhus): Likewise.
2947 (altivec_vpkshus): Likewise.
2948 (altivec_vpkuwus): Likewise.
2949 (altivec_vpkswus): Likewise.
2950 (altivec_vpks<VI_char>ss): Likewise.
2951 (altivec_vpks<VI_char>us): Likewise.
2952 (altivec_vpku<VI_char>us): Likewise.
2953 (altivec_vpku<VI_char>um): Likewise.
2954 (altivec_vrl<VI_char>): Likewise.
2955 (altivec_vsl<VI_char>): Likewise.
2956 (altivec_vsr<VI_char>): Likewise.
2957 (altivec_vsra<VI_char>): Likewise.
2958 (altivec_vsldoi_<mode>): Likewise.
2959 (altivec_vupkhsb): Likewise.
2960 (altivec_vupkhs<VU_char>): Likewise.
2961 (altivec_vupkls<VU_char>): Likewise.
2962 (altivec_vupkhsh): Likewise.
2963 (altivec_vupklsb): Likewise.
2964 (altivec_vupklsh): Likewise.
2965 (altivec_vcmpequ<VI_char>_p): Likewise.
2966 (altivec_vcmpgts<VI_char>_p): Likewise.
2967 (altivec_vcmpgtu<VI_char>_p): Likewise.
2968 (abs<mode>2): Likewise.
2969 (vec_unpacks_hi_v16qi): Likewise.
2970 (vec_unpacks_hi_v8hi): Likewise.
2971 (vec_unpacks_lo_v16qi): Likewise.
2972 (vec_unpacks_hi_<VP_small_lc>): Likewise.
2973 (vec_unpacks_lo_v8hi): Likewise.
2974 (vec_unpacks_lo_<VP_small_lc>): Likewise.
2975 (vec_pack_trunc_v8h): Likewise.
2976 (vec_pack_trunc_v4si): Likewise.
2977 (vec_pack_trunc_<mode>): Likewise.
2978
2979 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
2980 V2DI builtins.
2981 (vec_vmaxsd): Likewise.
2982 (vec_vmaxud): Likewise.
2983 (vec_vminsd): Likewise.
2984 (vec_vminud): Likewise.
2985 (vec_vpksdss): Likewise.
2986 (vec_vpksdus): Likewise.
2987 (vec_vpkudum): Likewise.
2988 (vec_vpkudus): Likewise.
2989 (vec_vrld): Likewise.
2990 (vec_vsld): Likewise.
2991 (vec_vsrad): Likewise.
2992 (vec_vsrd): Likewise.
2993 (vec_vsubudm): Likewise.
2994 (vec_vupkhsw): Likewise.
2995 (vec_vupklsw): Likewise.
2996
e70670cf
JH
29972013-05-29 Jan Hubicka <jh@suse.cz>
2998
2999 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
3000 flags; reorder rest of fields in more consistent way.
3001 (varpool_node): Remove analyzed, finalized and alias.
3002 (cgraph_ndoe): Likewise.
3003 (symtab_alias_ultimate_target): New function.
3004 (cgraph_function_node): Move offline.
3005 (cgraph_reset_node): Declare.
3006 (cgraph_comdat_can_be_unshared_p): Remove.
3007 (varpool_remove_initializer): Declare.
3008 (varpool_first_defined_variable, varpool_next_defined_variable
3009 cgraph_first_defined_function, cgraph_next_defined_function): Update.
3010 (cgraph_function_with_gimple_body_p): Update.
3011 (varpool_all_refs_explicit_p): Update.
3012 (symtab_alias_target): New function.
3013 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
3014 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
c1e183a9
UB
3015 (cgraph_function_or_thunk_node): Simplify using
3016 symtab_alias_ultimate_target.
e70670cf
JH
3017 (varpool_variable_node): Likewise.
3018 * cgraph.c (cgraph_create_function_alias): Update.
3019 (cgraph_add_thunk): Update.
3020 (cgraph_remove_node): Update.
3021 (dump_cgraph_node): Do not dump removed flags.
3022 (cgraph_function_body_availability): Update.
3023 (cgraph_propagate_frequency): Update.
3024 (verify_cgraph_node): Check sanity of local flag.
3025 (cgraph_function_node): Move here from cgraph.h; revamp for
3026 cgraph_function_or_thunk_node.
3027 * lto-symtab.c (lto_varpool_replace_node): Update.
3028 (lto_symtab_resolve_can_prevail_p): Update.
3029 (lto_symtab_merge_cgraph_nodes): Update.
3030 * ipa-cp.c (determine_versionability, initialize_node_lattices,
3031 propagate_constants_accross_call, devirtualization_time_bonus,
3032 ipcp_propagate_stage): Update.
3033 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
c1e183a9
UB
3034 * ipa-inline-transform.c (clone_inlined_nodes,
3035 preserve_function_body_p): Update.
e70670cf
JH
3036 * ipa-reference.c (propagate): Update.
3037 (write_node_summary_p): Update.
3038 * toplev.c (wrapup_global_declaration_2): Update.
3039 * cgraphunit.c (cgraph_analyze_function): Rename to ...
3040 (analyze_function) ... this one.
3041 (cgraph_process_new_functions): Update.
3042 (cgraph_reset_node): Export.
3043 (cgraph_finalize_function): Update.
3044 (cgraph_add_new_function): Update.
3045 (process_function_and_variable_attributes): Update.
3046 (varpool_finalize_decl): Update.
3047 (symbol_finalized): Remove.
3048 (symbol_finalized_and_needed): Rename to ...
3049 (symbol_defined_and_needed): ... update.
3050 (cgraph_analyze_functions): Update.
3051 (handle_alias_pairs): Update.
3052 (mark_functions_to_output): Update.
3053 (assemble_thunk): Update.
3054 (output_in_order): Update.
3055 (output_weakrefs): Update.
3056 (finalize_compilation_unit): Update.
3057 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
3058 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
3059 input_node, input_varpool_node): Update.
3060 * dbxout.c (dbxout_expand_expr): Update.
3061 * cgraphclones.c (cgraph_clone_node): Update.
3062 (cgraph_copy_node_for_versioning): Update.
3063 (cgraph_materialize_clone): Update.
3064 (cgraph_materialize_all_clones): Update.
3065 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
3066 propagate_pure_const, propagate_nothrow): Update.
3067 * lto-streamer-out.c (lto_output, write_symbol): Update.
3068 * ipa-utils.c (ipa_reverse_postorder): Update.
3069 * ipa-inline.c (can_inline_edge_p): Update.
3070 (update_caller_keys, ipa_inline): Update.
3071 * dwarf2out.c (reference_to_unused,
3072 premark_types_used_by_global_vars_helper): Update.
3073 * tree-eh.c (tree_could_trap_p): Update.
3074 * ipa-split.c (consider_split, execute_split_functions): Update.
3075 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
c1e183a9
UB
3076 has_addr_references_p): Update; move ahead in file for better
3077 readability.
e70670cf
JH
3078 (process_references): Simplify.
3079 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
3080 bodies are removed.
3081 (cgraph_comdat_can_be_unshared_p): Make static.
3082 (cgraph_externally_visible_p): Update.
3083 (varpool_externally_visible_p): Update.
3084 (function_and_variable_visibility): Update.
3085 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
3086 ipa_tm_mark_force_output_node): Update.
3087 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
3088 estimate_edge_devirt_benefit, inline_generate_summary,
3089 inline_write_summary): Update.
3090 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
3091 * ipa-prop.c (ipa_compute_jump_functions): Update.
c1e183a9
UB
3092 (ipa_print_node_params, ipa_prop_read_section,
3093 ipa_update_after_lto_read, read_replacements_section): Update.
e70670cf
JH
3094 * varasm.c (mark_decl_referenced): Update.
3095 (assemble_alias, dump_tm_clone_pairs): Update.
3096 * tree-inline.c (copy_bb): Update.
3097 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
3098 Update.
3099 * symtab.c (dump_symtab_base): Print new flags.
3100 (verify_symtab_base): Verify new flags.
3101 (symtab_alias_ultimate_target): New function.
3102 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
3103 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
3104 Update.
c1e183a9
UB
3105 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
3106 Update.
e70670cf
JH
3107 * i386.c (ix86_get_function_versions_dispatcher,
3108 ix86_generate_version_dispatcher_body): Update.
3109 (fold_builtin_cpu): Use varpool_add_new_variable.
3110 * varpool.c (varpool_remove_initializer): Break out from ...
3111 (varpool_remove_node): ... this one.
3112 (dump_varpool_node, varpool_node_for_asm,
3113 cgraph_variable_initializer_availability, varpool_analyze_node,
3114 varpool_assemble_decl, varpool_remove_unreferenced_decls,
c1e183a9
UB
3115 varpool_finalize_named_section_flags, varpool_create_variable_alias):
3116 Update.
e70670cf 3117
182802ad
JH
31182013-05-29 Jan Hubicka <jh@suse.cz>
3119
3120 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
3121
8190b609
ER
31222013-05-29 Easwaran Raman <eraman@google.com>
3123
3124 PR tree-optimization/57442
3125 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
3126 when control exits the main loop.
3127
69f5aa9b
SKS
31282013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
3129
3130 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
3131 and RX600.
c1e183a9 3132 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
69f5aa9b
SKS
3133 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
3134 * rx/t-rx: Add rx100 under multi library matches option for nofpu
3135 option.
3136
4b847da9
BS
31372013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3138
3139 PR tree-optimization/57441
3140 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
3141 Don't limit size of incr_vec to number of candidates.
3142
4fc43c39
SE
31432013-05-29 Steve Ellcey <sellcey@imgtec.com>
3144
3145 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
3146 and mips16 directories.
c1e183a9 3147 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
4fc43c39
SE
3148 (MULTILIB_DIRNAMES): Ditto.
3149 (MULTILIB_EXCEPTIONS): Add new exceptions.
3150 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
3151 (MULTILIB_DIRNAMES): Ditto.
3152 (MULTILIB_EXCEPTIONS): Add new exceptions.
3153
a5350ddc
CSS
31542012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3155 Marcus Shawcroft <marcus.shawcroft@arm.com>
3156
3157 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
3158 SYMBOL_TINY_ABSOLUTE.
3159 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
3160 SYMBOL_TINY_ABSOLUTE.
3161 (aarch64_expand_mov_immediate): Likewise.
3162 (aarch64_classify_symbol): Likewise.
3163 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
3164 Permit SYMBOL_TINY_ABSOLUTE.
3165 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
3166
17f4d4bf
CSS
31672013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3168 Marcus Shawcroft <marcus.shawcroft@arm.com>
3169
3170 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
3171 Refactor if/switch. Replace gcc_assert with if.
3172
c0186656
GG
31732013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3174
3175 * config/i386/i386.c (initial_ix86_tune_features): Enable
3176 FP Reassociation for AMD bdver1 and bdver2.
3177
d20188f3
MJ
31782013-05-29 Martin Jambor <mjambor@suse.cz>
3179
3180 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
3181 and IMAGPART_EXPR do not occur within other handled_components.
3182
292cba13
RB
31832013-05-29 Richard Biener <rguenther@suse.de>
3184
3185 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
3186 access on whether the use is in the BB we currently try to
3187 vectorize.
3188 (vect_bb_vectorization_profitable_p): Pass the BB we currently
3189 vectorize to vect_bb_slp_scalar_cost.
3190
6eddf228
RB
31912013-05-29 Richard Biener <rguenther@suse.de>
3192
3193 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
3194 computing scalar cost offsetted by stmts that are kept live
3195 by scalar uses.
3196 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
3197 for computation of scalar cost.
3198
7df36117
SE
31992013-05-28 Steve Ellcey <sellcey@mips.com>
3200
3201 * config/mips/mips-cpus.def (mips32r2): Change processor type.
3202
36536d79
BI
32032013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
3204
3205 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
3206 array notation built-in reduction functions.
3207 * doc/passes.texi (Passes): Added documentation about changes done
3208 for Cilk Plus.
3209 * doc/invoke.texi (C Dialect Options): Added documentation about
3210 the -fcilkplus flag.
3211 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
3212 (BUILTINS_DEF): Depend on cilkplus.def.
3213 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
3214 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
3215 * cilkplus.def: New file.
3216
b49eefa5
JR
32172013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
3218
3219 PR rtl-optimization/57439
3220 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
3221
9daf6dbb
ER
32222013-05-28 Easwaran Raman <eraman@google.com>
3223
3224 PR tree-optimization/57337
3225 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
3226 (find_insert_point): Correctly identify the insertion point
3227 when two statements with the same UID is compared.
3228
fbd7e877
RB
32292013-05-28 Richard Biener <rguenther@suse.de>
3230
3231 PR tree-optimization/56787
3232 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
3233 from the list of data references.
3234 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
3235 clobbers.
3236 (vect_analyze_loop_operations): Likewise.
3237 (vect_transform_loop): Remove clobbers.
3238
bbba1117
MJ
32392013-05-28 Martin Jambor <mjambor@suse.cz>
3240
3241 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
3242 and REALPART_EXPRs have scalar type.
3243
bd388c2a
RB
32442013-05-28 Richard Biener <rguenther@suse.de>
3245
3246 PR tree-optimization/57411
3247 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
3248 virtual operands.
3249 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
3250 virtual operand propagation.
3251
2f56a311
EB
32522013-05-28 Eric Botcazou <ebotcazou@adacore.com>
3253
3254 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
3255 destination register for bmasksi_vis.
3256 (vector_init_bshuffle): Likewise.
3257 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
3258
5c3eacbb
EB
32592013-05-28 Eric Botcazou <ebotcazou@adacore.com>
3260
3261 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
3262 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
3263 mode if the instruction isn't available in the original mode.
3264 * config/sparc/sparc.opt (mfix-ut699): New option.
3265 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
3266 (divdf3): Turn into expander.
3267 (divdf3_nofix): New insn.
3268 (divdf3_fix): Likewise.
3269 (divsf3): Disable if -mfix-ut699.
3270 (sqrtdf2): Turn into expander.
3271 (sqrtdf2_nofix): New insn.
3272 (sqrtdf2_fix): Likewise.
3273 (sqrtsf2): Disable if -mfix-ut699.
3274
a1756c0a
RB
32752013-05-27 Richard Biener <rguenther@suse.de>
3276
3277 PR middle-end/57412
3278 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
3279 block for the new loop.
3280
5a892248
RB
32812013-05-27 Richard Biener <rguenther@suse.de>
3282
3283 PR tree-optimization/57343
3284 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
3285 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
3286 (number_of_iterations_cond): Do not build the folded tree.
3287
d1de852b
RB
32882013-05-27 Richard Biener <rguenther@suse.de>
3289
3290 Revert
3291 PR middle-end/57381
3292 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
3293 OEP_CONSTANT_ADDRESS_OF retained.
3294
3295 PR tree-optimization/57417
3296 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
3297 for unchanged base.
3298 (set_ssa_val_to): Compare addresses using
3299 get_addr_base_and_unit_offset.
3300
7894bc6b
JR
33012013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
3302
3303 PR rtl-optimization/56833
3304 * postreload.c (move2add_record_mode): New function.
3305 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
3306 (move2add_use_add2_insn): Use move2add_record_sym_value.
3307 (move2add_use_add3_insn): Likewise.
3308 (reload_cse_move2add): Use move2add_valid_value_p and
3309 move2add_record_mode. Invalidate call-clobbered and REG_INC
3310 affected regs by setting reg_mode to VOIDmode.
3311 (move2add_note_store): Don't pretend the inside of a SUBREG is
3312 the actual destination. Invalidate single/leading registers by
3313 setting reg_mode to VOIDmode.
3314 Use move2add_record_sym_value, move2add_valid_value_p and
3315 move2add_record_mode.
3316
b03be25f
RB
33172013-05-27 Richard Biener <rguenther@suse.de>
3318
3319 PR tree-optimization/57396
3320 * tree-affine.c (double_int_constant_multiple_p): Properly
3321 return false for val == 0 and div != 0.
3322
44e88db2
RS
33232013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
3324
3325 * config/mips/mips.h: Use #elif in preprocessor conditions.
3326
3b859704
RS
33272013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
3328
3329 PR target/53916
3330 * config/mips/constraints.md (kl): New constraint.
3331 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
3332 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
3333 constraint for operand 0. Split after CSE for MIPS16. Emit a move
3334 from LO for MIPS16.
3335 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
3336
c979d5f5
RS
33372013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
3338
3339 PR target/55777
3340 * config/mips/mips.c (mips_can_inline_p): New function.
3341 (TARGET_CAN_INLINE_P): Define.
3342
8e90de43
SB
33432013-05-25 Steven Bosscher <steven@gcc.gnu.org>
3344
3345 * sched-int.h (ds_t, dw_t): Make unsigned int.
3346 Fix documentation that describes how all the ds_t bits are used.
3347 Reserve the last bit for delayed-branch scheduling.
3348 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
3349 (BITS_PER_DEP_WEAK): Fix definition and documentation.
3350 (gen_dep_weak_1): Remove prototype.
3351 * sched-deps.c (get_dep_weak_1): Make static.
3352 * target.def (speculate_insn, needs_block_p, gen_spec_check,
3353 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
3354 * doc/tm.texi: Regenerate.
3355 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
3356
cb5cb194
SB
33572013-05-24 Steven Bosscher <steven@gcc.gnu.org>
3358
3359 PR debug/56950
3360 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
3361
5bd93ff6
NS
33622013-05-24 Nathan Sidwell <nathan@codesourcery.com>
3363 Sandra Loosemore <sandra@codesourcery.com>
3364
3365 * config.gcc (powerpc-*): Allow native for with-cpu.
3366
2343af65
JL
33672013-05-24 Jeff Law <law@redhat.com>
3368
3369 PR tree-optimization/57124
3370 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
3371 conversion feeding a condition if the range has an overflow
3372 if -fstrict-overflow. Add warnings for when we do make the
3373 transformation.
3374
3ad695b9
DC
33752013-05-24 Dehao Chen <dehao@google.com>
3376
04960246 3377 * tree-cfg.c (locus_discrim_map): Fix the typo.
3ad695b9
DC
3378 (locus_discrim_hasher): Likewise.
3379 (locus_discrim_hasher::hash): Likewise.
3380 (locus_discrim_hasher::equal): Likewise.
3381
82338059
MJ
33822013-05-24 Martin Jambor <mjambor@suse.cz>
3383
3384 PR tree-optimization/57294
3385 * cgraph.h (ipa_record_stmt_references): Declare.
3386 * cgraphbuild.c (ipa_record_stmt_references): New function.
3387 (build_cgraph_edges): Use ipa_record_stmt_references.
3388 (rebuild_cgraph_edges): Likewise.
3389 (cgraph_rebuild_references): Likewise.
3390 * ipa-prop.c (ipa_modify_call_arguments): Discard references
3391 associated with the old statement and build references from the
3392 newly built statements.
3393 * ipa-ref.c (ipa_remove_stmt_references): New function.
3394 * ipa-ref.h (ipa_remove_stmt_references): Declare.
3395
1ccd4874
VM
33962013-05-24 Vladimir Makarov <vmakarov@redhat.com>
3397
55805e54 3398 * lra-constraints.c (emit_spill_move): Use smaller mode for
1ccd4874 3399 mem-mem moves.
55805e54 3400 (check_and_process_move): Consider mem-reg moves for secondary
1ccd4874 3401 too.
55805e54 3402 (curr_insn_transform): Don't lose insns emitted before for
1ccd4874
VM
3403 secondary memory moves.
3404 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
3405 reg set up in the current insn.
3406
25e25c73
DC
34072013-05-24 Dehao Chen <dehao@google.com>
3408
04960246 3409 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
25e25c73
DC
3410 hash function.
3411 (locus_descrim_hasher::equal): Likewise.
04960246 3412 (build_gimple_cfg): New discriminator assignment algorithm.
25e25c73
DC
3413 (make_edges): Likewise.
3414 (next_discriminator_for_locus): Likewise.
3415 (same_line_p): Likewise.
3416 (assign_discriminators): Likewise.
3417 (make_cond_expr_edges): Likewise.
3418 (make_gimple_switch_edges): Likewise.
3419 (make_goto_expr_edges): Likewise.
3420 (make_gimple_asm_edges): Likewise.
3421
50d38551
IB
34222013-05-24 Ian Bolton <ian.bolton@arm.com>
3423
3424 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
3425 X format specifier to only display bottom 16 bits.
3426 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
3427 immediate to match for operand 2, since it will be masked.
3428
aea0101d
RB
34292013-05-24 Richard Biener <rguenther@suse.de>
3430
3431 PR tree-optimization/57287
3432 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
3433 all SSA names that occur in abnormal PHIs.
3434
634e03d3
AI
34352013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3436
3437 PR tree-ssa/57385
3438 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
3439 that index is not negative.
3440
b17c024f
EB
34412013-05-24 Eric Botcazou <ebotcazou@adacore.com>
3442
3443 PR rtl-optimization/55177
3444 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
3445 (simplify_byte_swapping_operation): New.
3446 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
3447 (simplify_relational_operation_1): Deal with BSWAP.
3448
46aeac1b
RH
34492013-05-23 Richard Henderson <rth@redhat.com>
3450
3451 PR target/56742
3452 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
3453 (ix86_reorg): Call it.
3454
70cc1536
UB
34552013-05-23 Uros Bizjak <ubizjak@gmail.com>
3456
3457 PR target/57379
3458 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
3459 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
3460 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
3461
b3851501
CB
34622013-05-23 Christian Bruel <christian.bruel@st.com>
3463
3464 PR debug/57351
3465 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
3466
4e194912
CSS
34672013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3468 Marcus Shawcroft <marcus.shawcroft@arm.com>
3469
3470 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
3471 * config/aarch64/constraints.md (Usa): Remove.
3472 * doc/md.texi (AArch64 Usa): Remove.
3473
83f8c414
CSS
34742013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3475 Marcus Shawcroft <marcus.shawcroft@arm.com>
3476
3477 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
3478 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
3479 * config/aarch64/predicates.md (aarch64_const_address): Remove.
3480 (aarch64_mov_operand): Use aarch64_mov_operand_p.
3481
b5574232
VP
34822013-05-23 Vidya Praveen <vidyapraveen@arm.com>
3483
3484 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
3485 instruction (AdvSIMD).
3486 * config/aarch64/aarch64-builtins.c
3487 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
3488 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
3489
76c36cb1 34902013-05-23 Martin Jambor <mjambor@suse.cz>
7d2fb524
MJ
3491
3492 PR middle-end/57347
3493 * tree.h (contains_bitfld_component_ref_p): Declare.
3494 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
70cc1536
UB
3495 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
3496 caller.
7d2fb524
MJ
3497 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
3498 not access a bit-field. Assert all final offsets are byte-aligned.
3499
ce521ae6
RB
35002013-05-23 Richard Biener <rguenther@suse.de>
3501
3502 PR tree-optimization/57380
3503 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
3504 least one invariant or re-used load.
3505 * passes.c (init_optimization_passes): Move pass_phiprop before
3506 pass_forwprop.
3507
75c7257f
JG
35082013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
3509
3510 * config/aarch64/aarch64-simd.md
3511 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
3512
af6d44b5
RB
35132013-05-23 Richard Biener <rguenther@suse.de>
3514
3515 PR middle-end/57381
3516 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
3517 OEP_CONSTANT_ADDRESS_OF retained.
3518
bd3647bf
JJ
35192013-05-23 Jakub Jelinek <jakub@redhat.com>
3520
3521 PR middle-end/57344
70cc1536
UB
3522 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
3523 don't lower unit. Handle unit not being always BITS_PER_WORD.
bd3647bf 3524
a55757ea
RB
35252013-05-23 Richard Biener <rguenther@suse.de>
3526
3527 PR rtl-optimization/57341
3528 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
3529 instead of true_dependence.
3530
cfb00b41
DM
35312013-05-22 David Malcolm <dmalcolm@redhat.com>
3532
dd1c676f
DM
3533 * bb-reorder.c (branch_threshold): Make const.
3534 (exec_threshold): Ditto.
cfb00b41 3535
f62511da
MM
35362013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
3537 Pat Haugen <pthaugen@us.ibm.com>
3538 Peter Bergner <bergner@vnet.ibm.com>
3539
3540 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
3541 documentation for the power8 crypto builtins.
3542
3543 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
3544
3545 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
3546 macros for defining power8 builtin functions.
3547 (BU_P8V_AV_2): Likewise.
3548 (BU_P8V_AV_P): Likewise.
3549 (BU_P8V_VSX_1): Likewise.
3550 (BU_P8V_OVERLOAD_1): Likewise.
3551 (BU_P8V_OVERLOAD_2): Likewise.
3552 (BU_CRYPTO_1): Likewise.
3553 (BU_CRYPTO_2): Likewise.
3554 (BU_CRYPTO_3): Likewise.
3555 (BU_CRYPTO_OVERLOAD_1): Likewise.
3556 (BU_CRYPTO_OVERLOAD_2): Likewise.
3557 (XSCVSPDP): Fix typo, point to the correct instruction.
3558 (VCIPHER): Add power8 crypto builtins.
3559 (VCIPHERLAST): Likewise.
3560 (VNCIPHER): Likewise.
3561 (VNCIPHERLAST): Likewise.
3562 (VPMSUMB): Likewise.
3563 (VPMSUMH): Likewise.
3564 (VPMSUMW): Likewise.
3565 (VPERMXOR_V2DI): Likewise.
3566 (VPERMXOR_V4SI: Likewise.
3567 (VPERMXOR_V8HI: Likewise.
3568 (VPERMXOR_V16QI: Likewise.
3569 (VSHASIGMAW): Likewise.
3570 (VSHASIGMAD): Likewise.
3571 (VPMSUM): Likewise.
3572 (VPERMXOR): Likewise.
3573 (VSHASIGMA): Likewise.
3574
3575 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
3576 __CRYPTO__ if the crypto instructions are available.
3577 (altivec_overloaded_builtins): Add support for overloaded power8
3578 builtins.
3579
3580 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
3581 support for power8 crypto builtins.
3582 (builtin_function_type): Likewise.
3583 (altivec_init_builtins): Add support for builtins that take vector
3584 long long (V2DI) arguments.
3585
3586 * config/rs6000/crypto.md: New file, define power8 crypto
3587 instructions.
3588
35892013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
3590 Pat Haugen <pthaugen@us.ibm.com>
3591 Peter Bergner <bergner@vnet.ibm.com>
3592
3593 * doc/invoke.texi (Option Summary): Add power8 options.
3594 (RS/6000 and PowerPC Options): Likewise.
3595
3596 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
3597 constraints.md instead of rs6000.h. Reorder w* constraints. Add
3598 wm, wn, wr documentation.
3599
3600 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
3601 registers if direct move instructions are enabled.
3602 (wn): New constraint for no registers.
3603 (wq): New constraint for quad word even GPR registers.
3604 (wr): New constraint if 64-bit instructions are enabled.
3605 (wv): New constraint if power8 vector instructions are enabled.
3606 (wQ): New constraint for quad word memory locations.
3607
3608 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
3609 constraint for 0..15 for crypto instructions.
3610 (gpc_reg_operand): If VSX allow registers in VSX registers as well
3611 as GPR and floating point registers.
3612 (int_reg_operand): New predicate to match only GPR registers.
3613 (base_reg_operand): New predicate to match base registers.
3614 (quad_int_reg_operand): New predicate to match even GPR registers
3615 for quad memory operations.
3616 (vsx_reg_or_cint_operand): New predicate to allow vector logical
3617 operations in both GPR and VSX registers.
3618 (quad_memory_operand): New predicate for quad memory operations.
3619 (reg_or_indexed_operand): New predicate for direct move support.
3620
3621 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
3622 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
3623 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
3624 (POWERPC_MASKS): Add power8 options.
3625 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
3626 various options.
3627
3628 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
3629 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
3630
3631 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
3632 (-mpower8-fusion): New power8 options.
3633 (-mpower8-fusion-sign): Likewise.
3634 (-mpower8-vector): Likewise.
3635 (-mcrypto): Likewise.
3636 (-mdirect-move): Likewise.
3637 (-mquad-memory): Likewise.
3638
3639 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
3640 power8.
3641 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
3642 registers.
70cc1536 3643 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
f62511da
MM
3644 (rs6000_debug_vector_unit): Add p8_vector.
3645 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
3646 definitions. Also print fusion state.
3647 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
3648 (rs6000_builtin_mask_calculate): Add power8 builtin support.
3649 (rs6000_option_override_internal): Add support for power8.
3650 (rs6000_common_init_builtins): Add debugging for skipped builtins
3651 if -mdebug=builtin.
3652 (rs6000_adjust_cost): Add power8 support.
3653 (rs6000_issue_rate): Likewise.
3654 (insn_must_be_first_in_group): Likewise.
3655 (insn_must_be_last_in_group): Likewise.
3656 (force_new_group): Likewise.
3657 (rs6000_register_move_cost): Likewise.
3658 (rs6000_opt_masks): Likewise.
3659
3660 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
3661 power8 capable assembler, default to power7 options.
3662 (TARGET_DIRECT_MOVE): Likewise.
3663 (TARGET_CRYPTO): Likewise.
3664 (TARGET_P8_VECTOR): Likewise.
3665 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
3666 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
3667 (VECTOR_MEM_P8_VECTOR_P): Likewise.
3668 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
3669 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
3670 (TARGET_XSCVDPSPN): Likewise.
3671 (TARGET_XSCVSPDPN): Likewsie.
3672 (TARGET_SYNC_HI_QI): Likewise.
3673 (TARGET_SYNC_TI): Likewise.
3674 (MASK_CRYPTO): Likewise.
3675 (MASK_DIRECT_MOVE): Likewise.
3676 (MASK_P8_FUSION): Likewise.
3677 (MASK_P8_VECTOR): Likewise.
70cc1536
UB
3678 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
3679 temporary used by some of the direct move instructions to get two FP
3680 temporary registers does not force creation of a stack frame.
f62511da
MM
3681 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
3682 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
3683 that any VSX registers are tieable, even if they are also an
3684 Altivec vector mode.
3685 (r6000_reg_class_enum): Add wm, wr, wv constraints.
3686 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
3687 (RS6000_BTM_CRYPTO): Likewise.
3688 (RS6000_BTM_COMMON): Likewise.
3689
3690 * config/rs6000/rs6000.md (cpu attribute): Add power8.
3691 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
3692 (enum rs6000_vector): Add power8 vector support.
3693
73a1a707
RR
36942013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3695
3696 PR target/19599
3697 PR target/57340
3698 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
3699 (any_sibcall_could_use_r3): this and handle indirect calls.
3700 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
3701
d28073d4
BS
37022013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3703
3704 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
3705
bee0b10c
RB
37062013-05-22 Richard Biener <rguenther@suse.de>
3707
3708 PR middle-end/57349
3709 * profile.c (branch_prob): Do not split blocks that are
3710 abnormally receiving from ECF_RETURNS_TWICE functions.
3711
98409b51
RS
37122013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3713
3714 * recog.c (offsettable_address_addr_space_p): Fix calculation of
3715 address mode. Move pointer mode initialization to the same place.
3716
c0602ab8
MZ
37172013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3718
3719 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
3720 while it has any effect.
3721
4f7a634e
ER
37222013-05-21 Easwaran Raman <eraman@google.com>
3723
3724 PR tree-optimization/57322
9daf6dbb
ER
3725 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
3726 UID of the statement added to the BB to be 1.
4f7a634e 3727
a4ce1258
JJ
37282013-05-21 Jakub Jelinek <jakub@redhat.com>
3729
3730 PR tree-optimization/57331
70cc1536
UB
3731 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
3732 of conversion from pointer type to integral type with integer.
a4ce1258 3733
1b14621a
MJ
37342013-05-21 Martin Jambor <mjambor@suse.cz>
3735
3736 PR lto/57289
3737 * ipa-prop.c (ipa_read_node_info): Process param_used and
3738 controlled_uses in the same order as when writing.
3739
e60661f0
MG
37402013-05-21 Magnus Granberg <baldrick@free.fr>
3741
3742 PR plugins/56754
ee49aa34 3743 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
e60661f0 3744
4a61be9a
RB
37452013-05-21 Richard Biener <rguenther@suse.de>
3746
3747 PR tree-optimization/57318
3748 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
3749 estimate stmts with side-effects as likely eliminated.
3750
c52da5f7
RB
37512013-05-21 Richard Biener <rguenther@suse.de>
3752
3753 PR tree-optimization/57330
3754 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
3755 preserve the call stmts fntype.
3756
7ec67e2a
RB
37572013-05-21 Richard Biener <rguenther@suse.de>
3758
3759 PR tree-optimization/57303
3760 * tree-ssa-sink.c (statement_sink_location): Improve killing
3761 stmt detection and properly handle self-assignments.
3762
b112d513
CB
37632013-05-21 Christian Bruel <christian.bruel@st.com>
3764
55805e54
YR
3765 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
3766 spanning registers. LEAF_REG_REMAP is supported only for contiguous
b112d513
CB
3767 registers. Set register size out of the PARALLEL loop.
3768
14c2ec26
OE
37692013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
3770
3771 PR target/56547
3772 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
3773 (*fmasf4, *fmasf4_media): New insns.
3774
da734fa1
RS
37752013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
3776
3777 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
3778 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
3779 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
3780 (mips_idiv_insns): Update the comments to say that the returned
3781 instruction counts are in units of BASE_INSN_LENGTH.
3782 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
3783 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
3784 using 2 rather than 4 as the length of indirect MIPS16 and
3785 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
3786 length of a NOP. Don't divide MIPS16 lengths by 2.
3787 (mips16_split_long_branches): Assume a branch is long if the
3788 length is greater than 4 rather than 8.
3789 * config/mips/mips.md (length): Give MIPS16 lengths directly,
3790 rather than multiplying them by 2. Multiply instruction counts
3791 by BASE_INSN_LENGTH rather than 4.
3792 (*jump_mips16, tls_get_tp_mips16_<mode>)
3793 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
3794
13719e8b
RS
37952013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
3796
3797 * config/mips/mips.md (extended_mips16): Remove branch case.
3798 (length): Remove duplicated extended_mips16 test.
3799
c3850d14
RS
38002013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
3801
3802 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
3803
8da2e059
RS
38042013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
3805
3806 * recog.h (Recog_data): Rename to...
3807 (recog_data_d): ...this.
3808 (recog_data): Update accordingly.
3809 * recog.c (recog_data): Likewise.
3810 * reload.c (save_recog_data): Likewise.
3811 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
3812 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
3813
2df013f3
JB
38142013-05-17 Julian Brown <julian@codesourcery.com>
3815
3816 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
3817 found in a REG_EQUAL note, invalidate it.
3818
933f507d
ER
38192013-05-17 Easwaran Raman <eraman@google.com>
3820
3821 * tree-ssa-reassoc.c (find_insert_point): New function.
3822 (insert_stmt_after): Likewise.
3823 (get_def_stmt): Likewise.
3824 (ensure_ops_are_available): Likewise.
3825 (not_dominated_by): Likewise.
3826 (rewrite_expr_tree): Do not move statements beyond what is
3827 necessary. Remove call to swap_ops_for_binary_stmt...
3828 (reassociate_bb): ... and move it here.
3829 (build_and_add_sum): Assign UIDs for new statements.
3830 (linearize_expr): Likewise.
3831 (do_reassoc): Renumber gimple statement UIDs.
3832
e01c7cca
JH
38332013-05-17 Jan Hubicka <jh@suse.cz>
3834
3835 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
3836 weakrefs.
3837 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
e2420687
UB
3838 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
3839 weakrefs.
e01c7cca
JH
3840 (output_weakrefs): Update.
3841
c3272a92
PCC
38422013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
3843 Martin Jambor <mjambor@suse.cz>
3844
3845 PR middle-end/57276
3846 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
3847 value that corresponds to the given aggval is found in values vector.
3848
11c2aa39
UB
38492013-05-17 Uros Bizjak <ubizjak@gmail.com>
3850
3851 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
3852 sse, sse2, sse3, ssse3 and sse4a flags to options.
3853
abecc8c6
DM
38542013-05-17 David Malcolm <dmalcolm@redhat.com>
3855
3856 * gengtype-state.c: (s_expr_writer): New class, to handle
3857 prettifying of output layout of s-expressions.
3858 (state_writer): New class, to write out gtype.state.
3859 (state_written_type_count): Move this variable into member data of
3860 state_writer.
3861 (s_expr_writer::s_expr_writer): New code: constructor for new class
3862 (state_writer::state_writer(): ditto
3863 (s_expr_writer::write_new_line): New function
3864 (s_expr_writer::write_any_indent): ditto
3865 (s_expr_writer::begin_s_expr): ditto
3866 (s_expr_writer::end_s_expr): ditto
3867 (write_state_fileloc): convert to method of state_writer...
3868 (state_writer:: write_state_fileloc): ...and use methods of
3869 s_expr_writer to write indentation into the gtype.state output file
3870 to visually represent the hierarchical structure of the list
3871 structures
3872 (write_state_fields): ditto, renaming to...
3873 (state_writer::write_state_fields)
3874 (write_state_a_string): ditto, renaming to...
3875 (state_writer::write_state_a_string)
3876 (write_state_string_option): ditto, renaming to...
3877 (state_writer::write_state_string_option)
3878 (write_state_type_option): ditto, renaming to...
3879 (state_writer::write_state_type_option)
3880 (write_state_nested_option): ditto, renaming to...
3881 (state_writer::write_state_nested_option)
3882 (write_state_option): ditto, renaming to...
3883 (state_writer::write_state_option)
3884 (write_state_options): ditto, renaming to...
3885 (state_writer::write_state_options)
3886 (write_state_lang_bitmap): ditto, renaming to...
3887 (state_writer::write_state_lang_bitmap)
3888 (write_state_version): ditto, renaming to...
3889 (state_writer::write_state_version)
3890 (write_state_scalar_type): ditto, renaming to...
3891 (state_writer::write_state_scalar_type)
3892 (write_state_string_type): ditto, renaming to...
3893 (state_writer::write_state_string_type)
3894 (write_state_undefined_type): ditto, renaming to...
3895 (state_writer::write_state_undefined_type)
3896 (write_state_struct_union_type): ditto, renaming to...
3897 (state_writer::write_state_struct_union_type)
3898 (write_state_struct_type): ditto, renaming to...
3899 (state_writer::write_state_struct_type)
3900 (write_state_user_struct_type): ditto, renaming to...
3901 (state_writer::write_state_user_struct_type)
3902 (write_state_lang_struct_type): ditto, renaming to...
3903 (state_writer::write_state_lang_struct_type)
3904 (write_state_param_struct_type): ditto, renaming to...
3905 (state_writer::write_state_param_struct_type)
3906 (write_state_pointer_type): ditto, renaming to...
3907 (state_writer::write_state_pointer_type)
3908 (write_state_array_type): ditto, renaming to...
3909 (state_writer::write_state_array_type)
3910 (write_state_gc_used): ditto, renaming to...
3911 (state_writer::write_state_gc_used)
3912 (write_state_common_type_content): ditto, renaming to...
3913 (state_writer::write_state_common_type_content)
3914 (write_state_type): ditto, renaming to...
3915 (state_writer::write_state_type)
3916 (write_state_pair_list): ditto, renaming to...
3917 (state_writer::write_state_pair_list)
3918 (write_state_pair): ditto, renaming to...
3919 (state_writer::write_state_pair)
3920 (write_state_typedefs): ditto, renaming to...
3921 (state_writer::write_state_typedefs)
3922 (write_state_structures): ditto, renaming to...
3923 (state_writer::write_state_structures)
3924 (write_state_param_structs): ditto, renaming to...
3925 (state_writer::write_state_param_structs)
3926 (write_state_variables): ditto, renaming to...
3927 (state_writer::write_state_variables)
3928 (write_state_srcdir): ditto, renaming to...
3929 (state_writer::write_state_srcdir)
3930 (write_state_files_list): ditto, renaming to...
3931 (state_writer::write_state_files_list)
3932 (write_state_languages): ditto, renaming to...
3933 (state_writer::write_state_languages)
3934 (write_state): create a state_writer instance and use it when
3935 writing out the state file
3936
d6545f29
MS
39372013-05-17 Mike Stump <mikestump@comcast.net>
3938
816a3f73 3939 PR rtl-optimization/57304
d6545f29
MS
3940 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
3941 accessing DF_REF_REAL_LOC.
3942
38c821cf
JJ
39432013-05-17 Jakub Jelinek <jakub@redhat.com>
3944
3945 PR rtl-optimization/57281
3946 PR rtl-optimization/57300
3947 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
3948 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
3949 what the other splitter did if the registers are dead.
3950
2a293391
RB
39512013-05-17 Richard Biener <rguenther@suse.de>
3952
3953 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
3954 MEM_REF offsets.
3955
17042d2b
JJ
39562013-05-17 Jakub Jelinek <jakub@redhat.com>
3957
3958 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
3959 linking.
3960
5b115c1f
MP
39612013-05-17 Marek Polacek <polacek@redhat.com>
3962
11c2aa39
UB
3963 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
3964 length when doing non-zero store of storing '\0' to '\0'.
5b115c1f 3965
52d84413
JJ
39662013-05-17 Jakub Jelinek <jakub@redhat.com>
3967
68119618
JJ
3968 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
3969 vect_external_def oprnd1 with loop_vinfo, try to emit
3970 optional cast, negation and and stmts on the loop preheader
3971 edge instead of into the pattern def seq.
3972
52d84413
JJ
3973 PR tree-optimization/57051
3974 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
3975 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
3976
17b962bd
NC
39772013-05-16 Nick Clifton <nickc@redhat.com>
3978
3979 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
3980 (rl78_is_naked_func): New function.
56aefbf7
UB
3981 (rl78_expand_prologue): Skip prologue generation for naked functions.
3982 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
17b962bd
NC
3983 * doc/extend.texi (naked): Add RL78 to the list of processors
3984 that supports this attribute.
3985
b1a0f84e
JL
39862013-05-16 Jeff Law <law@redhat.com>
3987
3988 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
3989
af0e415b
UB
39902013-05-16 Uros Bizjak <ubizjak@gmail.com>
3991
3992 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
3993 cache parameters using detect_caches_amd also for CYRIX,
3994 NSC and TM2 signatures.
3995
19db293a
UB
39962013-05-16 Uros Bizjak <ubizjak@gmail.com>
3997 Dzianis Kahanovich <mahatma@eu.by>
3998
3999 PR target/45359
4000 PR target/46396
4001 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
4002 VIA/Centaur processors and determine their cache parameters
4003 using detect_caches_amd.
4004
251a41b9
TJ
40052013-05-16 Teresa Johnson <tejohnson@google.com>
4006
4007 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
4008 (rtl_verify_edges): New function.
4009 (rtl_verify_bb_insns): Ditto.
4010 (rtl_verify_bb_pointers): Ditto.
4011 (rtl_verify_bb_insn_chain): Ditto.
4012 (rtl_verify_fallthru): Ditto.
4013 (rtl_verify_bb_layout): Ditto.
4014 (rtl_verify_flow_info_1): Outline checks into new functions.
4015 (rtl_verify_flow_info): Ditto.
4016
f14540b6
SE
40172013-05-16 Steve Ellcey <sellcey@imgtec.com>
4018
4019 * cfghooks.c (copy_bbs): Add update_dominance argument.
4020 * cfghooks.h (copy_bbs): Update prototype.
4021 * tree-cfg.c (gimple_duplicate_sese_region):
4022 Add update_dominance argument.
4023 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
4024 * tree-ssa-loop-ch.c (copy_loop_headers): Update
4025 gimple_duplicate_sese_region call.
4026 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
4027 Update copy_bbs call.
4028 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
4029 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
4030
7e9a3abb
JJ
40312013-05-16 Jakub Jelinek <jakub@redhat.com>
4032
4033 * tree-vectorizer.h (NUM_PATTERNS): Increment.
4034 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
4035 vect_recog_rotate_pattern.
4036 (vect_recog_rotate_pattern): New function.
4037
427b248d
JM
40382013-05-16 Jason Merrill <jason@redhat.com>
4039
4040 * Makefile.in (LLINKER): New variable.
4041 (mostlyclean): Remove link mutex.
4042 * configure.ac: Handle --enable-link-mutex.
4043 * lock-and-run.sh: New script.
4044
b871e3d2
RR
40452013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4046
4047 PR target/19599
4048 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
4049 for NULL decl.
4050
ce858126
RO
40512013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4052
4053 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
4054
798d3d04
GY
40552013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
4056
4057 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
4058 * config/arm/arm.c (next_consecutive_mem): New function.
4059 (gen_movmem_ldrd_strd): Likewise.
4060 * config/arm/arm.md (movmemqi): Update condition and code.
4061 (unaligned_loaddi, unaligned_storedi): New patterns.
4062
0baddc45
RO
40632013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4064
4065 * config.gcc: Obsolete *-*-solaris2.9*.
4066 * doc/install.texi (Specific, *-*-solaris2*): Document it.
4067
aa9d5bcf
RB
40682013-05-16 Richard Biener <rguenther@suse.de>
4069
4070 * passes.c (init_optimization_passes): Move pass_parallelize_loops
4071 earlier, after GRAPHITE transforms and IV canonicalization.
4072
5a0f4dd3
JJ
40732013-05-16 Jakub Jelinek <jakub@redhat.com>
4074
4075 * omp-low.c (extract_omp_for_data): For collapsed loops,
4076 if at least one of the loops is known at compile time to
4077 iterate zero times, set count to 0.
4078 (expand_omp_regimplify_p): New function.
4079 (expand_omp_for_generic): For collapsed loops, if at least
4080 one of the loops isn't known to iterate at least once,
4081 add runtime check with setting count to 0.
4082 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
4083 For unsigned types if it isn't known at compile time that
4084 the loop will iterate at least once, add runtime check to bypass
4085 the whole loop if initial condition isn't true.
4086
e3753785
NS
40872013-05-16 Nathan Sidwell <nathan@codesourcery.com>
4088
4089 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
4090
43bb4dd1
MG
40912013-05-16 Marc Glisse <marc.glisse@inria.fr>
4092
4093 PR middle-end/57286
4094 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
4095 transformations to avoid an infinite loop.
4096
3571dde6
MP
40972013-05-16 Marek Polacek <polacek@redhat.com>
4098
4099 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
4100
b8b3f0ca
LE
41012013-05-15 Leif Ekblad <leif@rdos.net>
4102
4103 * config/i386/i386.c (ix86_decompose_address): Use
4104 DEFAULT_TLS_SEG_REG to access TLS segment register.
4105 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
4106 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
4107 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
4108
e299a383
RS
41092013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
4110
4111 PR target/57260
4112 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
4113 sibling calls to functions that would normally be lazily bound,
4114 unless $gp is call-clobbered.
4115
e7208ea3
UB
41162013-05-15 Uros Bizjak <ubizjak@gmail.com>
4117
19db293a 4118 * config/i386/i386.c (ix86_option_override_internal): Update
e7208ea3 4119 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
5d280e2b
UB
4120 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
4121 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
e7208ea3
UB
4122 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
4123 of TARGET_3DNOW.
4124 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
4125
e7413f3d
AS
41262013-05-15 Andreas Schwab <schwab@suse.de>
4127
4128 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
4129 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
4130 third operand.
4131
ad4db775
TJ
41322013-05-15 Teresa Johnson <tejohnson@google.com>
4133
4134 * loop-unroll.c (report_unroll_peel): Check decision before
4135 emitting unroll/peel message.
4136
af205f67
TJ
41372013-05-15 Teresa Johnson <tejohnson@google.com>
4138
4139 * function.h (has_bb_partition): New rtl_data flag.
4140 (bb_reorder_complete): Ditto.
4141 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
4142 instead of flag_reorder_blocks_and_partition.
4143 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
4144 with some enhancements.
4145 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
4146 * bb-reorder.c (connect_traces): Check for has_bb_partition
4147 instead of flag_reorder_blocks_and_partition.
4148 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
4149 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
4150 verify_hot_cold_block_grouping.
4151 (partition_hot_cold_basic_blocks): Set has_bb_partition.
4152
9adcfa3c
RR
41532013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4154
4155 PR target/19599
4156 * config/arm/predicates.md (call_insn_operand): New predicate.
4157 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
4158 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
4159 if insn is not a tail call.
4160 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
4161 registers.
4162 * config/arm/arm.h (enum reg_class): New caller save register class.
4163 (REG_CLASS_NAMES): Likewise.
4164 (REG_CLASS_CONTENTS): Likewise.
4165 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
4166 without decls.
4167
ccb3ad87
RB
41682013-05-15 Richard Biener <rguenther@suse.de>
4169
4170 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
4171 of MSG_OPTIMIZED_LOCATIONS.
4172 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
4173 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
4174 message.
4175 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
4176 of MSG_OPTIMIZED_LOCATIONS.
4177 (execute_vect_slp): Likewise.
4178 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
4179 (vect_create_cond_for_alias_checks): Likewise.
4180 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
4181 (vect_recog_widen_mult_pattern): Likewise.
4182 (vect_recog_widen_sum_pattern): Likewise.
4183 (vect_recog_over_widening_pattern): Likewise.
4184 (vect_recog_widen_shift_pattern): Likewise.
4185 (vect_recog_vector_vector_shift_pattern): Likewise.
4186 (vect_recog_divmod_pattern): Likewise.
4187 (vect_recog_mixed_size_cond_pattern): Likewise.
4188 (vect_recog_bool_pattern): Likewise.
4189 (vect_pattern_recog_1): Likewise.
4190
48b1474e
MJ
41912013-05-15 Martin Jambor <mjambor@suse.cz>
4192
4193 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
4194 non-functions to builtin_unreachable.
4195 * ipa-inline-transform.c (inline_call): Do not assert estimates were
4196 correct when new direct edges were discovered.
4197
9de04252
MJ
41982013-05-15 Martin Jambor <mjambor@suse.cz>
4199
4200 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
4201 header, print symbol order instead of node uid, print more information
4202 about indirect edge targets.
4203 (ipa_make_edge_direct_to_target): Print symbol order instead of node
4204 uids.
4205 (ipa_make_edge_direct_to_target): Likewise.
4206 (remove_described_reference): Likewise.
4207 (propagate_controlled_uses): Likewise.
4208 (ipa_print_node_params): Also print symbol order.
4209 (ipcp_transform_function): Print symbol order instead of node uids.
4210 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
4211 (cgraph_get_create_real_symbol_node): Likewise.
4212 * ipa-cp.c (print_lattice): Likewise.
4213 (print_all_lattices): Likewise.
4214 (determine_versionability): Likewise.
4215 (initialize_node_lattices): Likewise.
4216 (estimate_local_effects): Likewise.
4217 (update_profiling_info): Likewise.
4218 (create_specialized_node): Likewise.
4219 (perhaps_add_new_callers): Likewise.
4220 (decide_about_value): Likewise.
4221 (decide_whether_version_node): Likewise.
4222 (identify_dead_nodes): Likewise.
4223 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
4224 (dump_inline_summary): Likewise.
4225 (estimate_node_size_and_time): Likewise.
4226 (inline_analyze_function): Likewise.
4227 * ipa-inline.c (report_inline_failed_reason): Likewise.
4228 (want_early_inline_function_p): Likewise.
4229 (edge_badness): Likewise.
4230 (update_edge_key): Likewise.
4231 (inline_small_functions): Likewise. Add dumping of order to two other
4232 dumps.
4233 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
4234 instead of node uids.
4235 (propagate_pure_const): Likewise.
4236 (propagate_pure_const): Likewise.
4237 * ipa-utils.c (dump_cgraph_node_set): Likewise.
4238 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
4239 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
4240 of node uids.
4241 * tree-pretty-print.c (dump_function_header): Likewise.
4242 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
4243 Print symbol order instead of node uids.
4244
1dd03b91
AK
42452013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4246
4247 * config/s390/s390.c (s390_register_move_cost): Don't impose the
4248 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
4249
fdf6a7b9
RB
42502013-05-15 Richard Biener <rguenther@suse.de>
4251
4252 PR tree-optimization/57275
4253 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
4254 return value for fail to do runtime alias checks for gather loads.
4255
2d6e4603
JH
42562013-05-15 Jan Hubicka <jh@suse.cz>
4257
4258 PR lto/57038
4259 PR lto/47375
e7208ea3
UB
4260 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
4261 weakrefs are not external.
4262 (lto_symtab_merge_decls): Fix thinko when dealing with
4263 non-lto_symtab decls.
2d6e4603
JH
4264 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
4265 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
4266 * varpool.c (dump_varpool_node): Dump more flags.
4267
83f44b39
GG
42682013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4269
4270 * config/i386/i386.c (processor_alias_table): Add instruction
4271 FSGSBASE for AMD bdver3 architecture.
4272
2e55d062
JJ
42732013-05-14 Jakub Jelinek <jakub@redhat.com>
4274
4275 * tree.c (warn_deprecated_use): Print file:line using locus color.
4276 * diagnostic.c (diagnostic_report_current_module): Print file:line
4277 and file:line:column using locus color.
4278
0bfdb81e
MS
42792013-05-14 Mike Stump <mikestump@comcast.net>
4280
4281 * gdbinit.in: Add __null.
4282
a508ef22
MS
42832013-05-14 Mike Stump <mikestump@comcast.net>
4284
4285 * recog.h: Rename struct recog_data to Recog_data.
4286 * recog.c: Likewise.
4287 * reload.c (can_reload_into): Likewise.
4288 * config/picochip/picochip.c: Likewise.
4289
e7180acb
MS
42902013-05-14 Mike Stump <mikestump@comcast.net>
4291
4292 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
4293
61216c26
SB
42942013-05-14 Steven Bosscher <steven@gcc.gnu.org>
4295
fd6beed4
SB
4296 * resource.h (struct resources): Remove unch_memory member.
4297 (CLEAR_RESOURCE): Don't clear unch_memory.
4298 * resource.c (mark_referenced_resources): Don't set it.
4299 (mark_set_resources): Likewise.
4300 (mark_target_live_regs): Don't clear it.
4301 (init_resource_info): Likewise.
4302 * reorg.c (resource_conflicts_p): Don't compare it.
4303 (redundant_insn): Don't set it.
4304
61216c26
SB
4305 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
4306 Remove prototypes.
4307 * emit-rtl.c (next_label): Remove unused function.
4308 (skip_consecutive_labels, link_cc0_insns): Move to ...
4309 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
4310 only place where these functions are used, and make them static.
4311
418d1b87
MG
43122013-05-14 Marc Glisse <marc.glisse@inria.fr>
4313
4314 * fold-const.c (fold_negate_expr): Handle vectors.
4315 (fold_truth_not_expr): Make it static.
4316 (fold_invert_truthvalue): New static function.
4317 (invert_truthvalue_loc): Handle vectors. Do not call
4318 fold_truth_not_expr directly.
4319 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
4320 <TRUTH_NOT_EXPR>: Do not cast to boolean.
4321 (fold_comparison): Handle vector constants.
4322 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
4323 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
4324 * tree.h (fold_truth_not_expr): Remove declaration.
4325
fc21784d
JG
43262013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
4327
4328 * config/aarch64/aarch64-simd.md
4329 (aarch64_vcond_internal<mode>): Rename to...
4330 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
4331 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
4332 float modes. Clarify all iterator modes.
4333 (vcond<mode><mode>): Use new name for vcond expanders.
4334 (vcond<v_cmp_result><mode>): Likewise.
4335 (vcondu<mode><mode>: Likewise.
4336 * config/aarch64/iterators.md (VDQF_COND): New.
4337
d4c52634
MG
43382013-05-14 Marc Glisse <marc.glisse@inria.fr>
4339
4340 PR bootstrap/57266
4341 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
4342 variable for the shift amount. Check that we shift by non-negative
4343 amounts.
4344
2b261262
CLT
43452013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
4346
4347 PR target/42017
4348 * config/arm/arm.h (EPILOGUE_USES): Only return true
4349 for LR_REGNUM after epilogue_completed.
4350
6e022d7b
JR
43512013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
4352
4353 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
e7208ea3 4354 is error_mark_node.
6e022d7b 4355
56cf7859
RO
43562013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4357
4358 PR target/57261
4359 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
4360 and Solaris 11+/x86 with gld.
4361 * configure: Regenerate.
4362
75776c6d
JJ
43632013-05-14 Jakub Jelinek <jakub@redhat.com>
4364
4365 * expmed.c (expand_shift_1): Canonicalize rotates by
4366 constant bitsize / 2 to bitsize - 1.
7f998021 4367 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
75776c6d
JJ
4368 case ROTATERT>: Likewise.
4369
4370 Revert:
4371 2013-05-10 Jakub Jelinek <jakub@redhat.com>
4372
4373 * config/i386/i386.md (rotateinv): New code attr.
4374 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
4375 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
4376 roll $31, %eax, etc.
4377
df35498a
RB
43782013-05-14 Richard Biener <rguenther@suse.de>
4379
4380 PR middle-end/57235
4381 * tree-eh.c (sink_clobbers): Give up for successors with
4382 multiple predecessors and no virtual uses.
4383
cc6e7ece
EB
43842013-05-14 Eric Botcazou <ebotcazou@adacore.com>
4385
4386 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
4387 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
4388
f778dd4d
JJ
43892013-05-14 Jakub Jelinek <jakub@redhat.com>
4390
4391 PR middle-end/57251
4392 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
4393 the case when both op0 and op1 have VOIDmode.
4394
bad4df9b
KP
43952013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
4396
4397 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
4398 in multiply-accumulate mode.
4399
56f3e9ac
GW
44002013-05-13 Guozhi Wei <carrot@google.com>
4401
4402 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
4403
a3d7ab92
KT
44042013-05-13 Kai Tietz <ktietz@redhat.com>
4405
4406 PR target/56975
4407 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
e7208ea3 4408 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
a3d7ab92 4409 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
e7208ea3 4410 * config/i386/i386.c (ix86_option_override_internal): Likewise.
a3d7ab92
KT
4411 (ix86_expand_prologue): Likewise.
4412 (ix86_expand_split_stack_prologue): Likewise.
4413 (legitimate_pic_address_disp_p): Likewise.
4414 (legitimize_pic_address): Likewise.
4415 (legitimize_tls_address): Likewise.
4416 (legitimize_pe_coff_symbol): Likewise.
4417 (output_pic_addr_const): Likewise.
4418 (construct_plt_address): Likewise.
4419 (ix86_expand_call): Likewise.
4420 (x86_output_mi_thunk): Likewise.
4421 (x86_function_profiler): Likewise.
4422
c59b7e28
SN
44232013-05-13 Sofiane Naci <sofiane.naci@arm.com>
4424
4425 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
4426 similar switch cases.
4427 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
4428 (aarch64_simd_mov_to_<mode>low): Delete.
4429 (aarch64_simd_mov_to_<mode>high): Delete.
4430 (move_lo_quad_<mode>): Add w<-r alternative.
4431 (aarch64_simd_move_hi_quad_<mode>): Likewise.
4432 (aarch64_simd_mov_from_*): Update type attribute.
4433 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
4434 statement.
4435
5f28524a
JH
44362013-05-13 Jan Hubicka <jh@suse.cz>
4437
4438 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
4439 * config/i386/i386.c (ix86_compute_frame_layout,
e7208ea3
UB
4440 ix86_expand_epilogue, emit_i387_cw_initialization,
4441 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
4442 ix86_local_alignment): Fix use of size/speed predicates.
5f28524a 4443
ae6fa899
JJ
44442013-05-13 Jakub Jelinek <jakub@redhat.com>
4445
4446 PR tree-optimization/45216
4447 PR tree-optimization/57157
4448 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
4449 the (-Y) & (B - 1) variant if OP is |.
4450 * expmed.c (expand_shift_1): For rotations by const0_rtx just
4451 return shifted. Use (-op1) & (prec - 1) as other_amount
4452 instead of prec - op1.
4453
4502fe8d
MJ
44542013-05-13 Martin Jambor <mjambor@suse.cz>
4455
4456 PR middle-end/42371
4457 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
4458 (ipa_constant_data): New type.
4459 (ipa_jump_func): Use ipa_constant_data to hold information about
4460 constant jump functions.
4461 (ipa_get_jf_constant): Adjust to jump function type changes.
4462 (ipa_get_jf_constant_rdesc): New function.
4463 (ipa_param_descriptor): New field controlled_uses.
4464 (ipa_get_controlled_uses): New function.
4465 (ipa_set_controlled_uses): Likewise.
4466 * ipa-ref.h (ipa_find_reference): Declare.
4467 * ipa-prop.c (ipa_cst_ref_desc): New type.
4468 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
4469 changes.
4470 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
4471 New parameter cs. Adjust all callers.
4472 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
4473 (remove_described_reference): New function.
4474 (jfunc_rdesc_usable): Likewise.
4475 (try_make_edge_direct_simple_call): Decrement controlled use count,
4476 attempt to remove reference if it hits zero.
4477 (combine_controlled_uses_counters): New function.
4478 (propagate_controlled_uses): Likewise.
4479 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
4480 (ipa_edge_duplication_hook): Duplicate reference descriptions.
4481 (ipa_print_node_params): Print described use counter.
4482 (ipa_write_jump_function): Adjust to jump function type changes.
4483 (ipa_read_jump_function): New parameter CS, pass it to
4484 ipa_set_jf_constant. Adjust caller.
4485 (ipa_write_node_info): Stream controlled use count
4486 (ipa_read_node_info): Likewise.
4487 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
4488 asserting.
4489 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
4490 count. Remove cloning-added reference if it reaches zero.
4491 * ipa-ref.c (ipa_find_reference): New function.
4492
0864bfc2
GG
44932013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4494
e7208ea3 4495 * config/i386/i386.c (processor_target_table): Modified default
0864bfc2
GG
4496 alignment values for AMD BD and BT architectures.
4497
640bfeb2
MG
44982013-05-13 Marc Glisse <marc.glisse@inria.fr>
4499
4500 * tree-vect-generic.c (uniform_vector_p): Move ...
4501 * tree.c (uniform_vector_p): ... here.
4502 * tree.h (uniform_vector_p): Declare it.
4503 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
4504 into a scalar.
4505
3a60f32b
JJ
45062013-05-13 Jakub Jelinek <jakub@redhat.com>
4507
198fe1bf
JJ
4508 PR tree-optimization/57230
4509 * tree-ssa-strlen.c (handle_char_store): Record length for
4510 array store from STRING_CST.
4511
3a60f32b
JJ
4512 PR tree-optimization/57230
4513 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
4514 check.
4515
566be57c
JR
45162013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
4517
4518 * config/epiphany/epiphany.c (epiphany_init): Check size of
4519 NUM_MODES_FOR_MODE_SWITCHING.
4520 (epiphany_expand_prologue):
4521 Remove CONFIG_REGNUM initial value handling code.
4522 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
4523 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
2710a27a 4524 (emit_set_fp_mode, epiphany_mode_after): Likewise.
566be57c
JR
4525 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
4526 Don't return 1 for FP_MODE_NONE.
4527 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
4528 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
4529 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
4530 * config/epiphany/epiphany.md (save_config): New pattern.
4531
0f2c2331
UB
45322013-05-12 Uros Bizjak <ubizjak@gmail.com>
4533
4534 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
4535
5b3f93c7
UB
45362013-05-10 Uros Bizjak <ubizjak@gmail.com>
4537
4538 * config/i386/i386.md (memory): Handle sseishft1.
4539 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
4540 (*vec_extractv2di_1): Ditto.
4541
1f873f0e
VM
45422013-05-10 Vladimir Makarov <vmakarov@redhat.com>
4543
4544 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
4545 saved registers.
4546
341427fa 45472013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
d7de6455
SH
4548
4549 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
4550 Add mthumb/march=armv7-a multilib.
4551 Add mthumb/march=armv7-r multilib.
4552 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
4553
9e69bdde
RC
45542013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
4555
4556 * config/v850/t-rtems: Add more multilibs.
4557
9ff09a22
RB
45582013-05-10 Richard Biener <rguenther@suse.de>
4559
4560 PR tree-optimization/57214
4561 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
4562 not propagate from SSA names that occur in abnormal PHI nodes.
4563
a5e0cd1d
MG
45642013-05-10 Marc Glisse <marc.glisse@inria.fr>
4565
4566 * stor-layout.c (element_precision): New function.
4567 * machmode.h (element_precision): Declare it.
4568 * tree.c (build_minus_one_cst): New function.
4569 (element_precision): Likewise.
4570 * tree.h (build_minus_one_cst): Declare new function.
4571 (element_precision): Likewise.
4572 * fold-const.c (operand_equal_p): Use element_precision.
4573 (fold_binary_loc): Handle vector types.
4574 * convert.c (convert_to_integer): Use element_precision.
4575 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
4576 separately.
4577
cb2558bc
RS
45782013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
4579
4580 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
4581 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
4582 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
4583 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
4584 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
4585 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
4586 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
4587 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
4588 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
4589 (Uuw8): New constraints.
4590 (Usb4): Move into alphabetical order.
4591 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
4592 (sd8_operand, ub8_operand, uw8_operand): New predicates.
4593 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
4594 previously unnamed patterns.
4595 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
4596 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
4597 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
4598 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
4599 of set_attr_alternative/if_then_else. Use extended_mips16 instead
4600 of specific lengths.
4601
cb3b8d33
JJ
46022013-05-10 Jakub Jelinek <jakub@redhat.com>
4603
6f93c008
JJ
4604 * config/i386/i386.md (rotateinv): New code attr.
4605 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
4606 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
4607 roll $31, %eax, etc.
4608
cb3b8d33
JJ
4609 PR tree-optimization/45216
4610 PR tree-optimization/57157
4611 * tree-ssa-forwprop.c (simplify_rotate): New function.
4612 (ssa_forward_propagate_and_combine): Call it.
4613
afb119be
RB
46142013-05-10 Richard Biener <rguenther@suse.de>
4615
4616 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
4617 disable peeling when we version for aliasing.
4618 (vector_alignment_reachable_p): Honor explicit user alignment.
4619 (vect_supportable_dr_alignment): Likewise.
4620 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
4621 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
4622 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
4623 then peeling to arrange for the cost-model check to come first.
4624
01ae4861
AM
46252013-05-10 Alan Modra <amodra@gmail.com>
4626
4627 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
4628 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
4629 * configure: Regenerate.
4630
ebc9a431
AM
46312013-05-10 Alan Modra <amodra@gmail.com>
4632
4633 PR target/55033
4634 * varasm.c (default_elf_select_section): Move !DECL_P check..
4635 (get_named_section): ..to here before calling get_section_name.
4636 Adjust assertion.
4637 (default_section_type_flags): Add DECL_P check.
4638 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
4639 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
4640
d4bca93c
JR
46412013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
4642
4643 * config/epiphany/epiphany.c (epiphany_expand_prologue):
4644 When using gen_stack_adjust_str with a register offset, add a
4645 REG_FRAME_RELATED_EXPR note.
4646
60ca9a65
UB
46472013-05-09 Uros Bizjak <ubizjak@gmail.com>
4648
4649 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
4650 (*vec_extractv4si_zext_mem): Ditto.
4651 (*vec_extractv2di): Add 0->x and x->x alternatives.
4652 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
4653 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
4654
a3409c02
JM
46552013-05-09 Jason Merrill <jason@redhat.com>
4656
0138d6b2
JM
4657 N3639 C++1y VLA support
4658 * gimplify.c (gimplify_vla_decl): Don't touch an existing
4659 DECL_VALUE_EXPR.
4660
a3409c02
JM
4661 * tree.c (build_constructor_va): New.
4662 * tree.h: Declare it.
4663
66e6b990
MJ
46642013-05-09 Martin Jambor <mjambor@suse.cz>
4665
4666 PR lto/57084
4667 * gimple-fold.c (canonicalize_constructor_val): Call
4668 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
4669
64cfa6c0
JH
46702013-05-09 Jan Hubicka <jh@suse.cz>
4671 Richard Biener <rguenther@suse.de>
4672
4673 PR lto/54095
4674 * symtab.c (symtab_make_decl_local): Do not add private names.
4675
c3167b00
JH
46762013-05-09 Jan Hubicka <jh@suse.cz>
4677
4678 PR lto/54095
4679 * symtab.c (insert_to_assembler_name_hash): Handle clones.
4680 (unlink_from_assembler_name_hash): Likewise.
4681 (symtab_prevail_in_asm_name_hash, symtab_register_node,
4682 symtab_unregister_node, symtab_initialize_asm_name_hash,
4683 change_decl_assembler_name): Update.
4684
12dc6974
SN
46852013-05-09 Sofiane Naci <sofiane.naci@arm.com>
4686
4687 * config/aarch64/aarch64.md: New movtf split.
4688 (*movtf_aarch64): Update.
4689 (aarch64_movdi_tilow): Handle TF modes and rename to
4690 aarch64_movdi_<mode>low.
4691 (aarch64_movdi_tihigh): Handle TF modes and rename to
4692 aarch64_movdi_<mode>high
4693 (aarch64_movtihigh_di): Handle TF modes and rename to
4694 aarch64_mov<mode>high_di
4695 (aarch64_movtilow_di): Handle TF modes and rename to
4696 aarch64_mov<mode>low_di
4697 (aarch64_movtilow_tilow): Remove spurious whitespace.
4698 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
4699 splits.
4700 (aarch64_print_operand): Update.
4701
227eb343
AM
47022013-05-09 Alan Modra <amodra@gmail.com>
4703
4704 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
4705 powerpc64le.
4706 * configure: Regenerate.
4707
0b013847
UB
47082013-05-08 Uros Bizjak <ubizjak@gmail.com>
4709
4710 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
4711 splitter preparation statements.
4712 * config/i386/sse.md (*vec_extract* splitters): Ditto.
4713 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
4714 adjust_address_nv.
4715
1dc3d6e9
BS
47162013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4717
4718 * gimple-ssa-strength-reduction.c (count_candidates): Change
4719 return value to int.
4720 (analyze_candidates_and_replace): Change type of length to int.
4721
e61e7d28
UB
47222013-05-08 Uros Bizjak <ubizjak@gmail.com>
4723
4724 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
4725 (*vec_extract<mode>): Use VI12_128 mode iterator.
4726 (*vec_extract<mode>_mem): Ditto.
4727 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
4728 attribute.
4729
4fbfcf44
DN
47302013-05-08 Diego Novillo <dnovillo@google.com>
4731
4732 PR bootstrap/54659
4733
4734 Revert:
4fbfcf44
DN
4735 2012-08-17 Diego Novillo <dnovillo@google.com>
4736
e61e7d28
UB
4737 PR bootstrap/54281
4738 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
4739 * config.in: Regenerate.
4740 * configure: Regenerate.
4741 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4fbfcf44 4742
702d8703
JH
47432013-05-08 Jan Hubicka <jh@suse.cz>
4744
4745 PR lto/54095
4746 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
4747 * cgraph.h (symtab_node_base): Add unique_name.
4748 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
4749 input_overwrite_node, input_varpool_node): Stream unique_name.
4750 * cgraphclones.c (cgraph_create_virtual_clone,
4751 cgraph_function_versioning): Set unique_name.
4752 * ipa.c (function_and_variable_visibility): Set unique_name.
4753
8b28cf47
BS
47542013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4755
4756 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
4757 (alloc_cand_and_find_basis): Restrict conditional candidate
4758 processing to CAND_MULTs.
4759
e86074fd
JH
47602013-05-08 Jan Hubicka <jh@suse.cz>
4761
4762 PR lto/54095
4763 lto-symtab.c (lto_symtab_symbol_p): New function.
4764 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
4765 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
4766 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
4767 Skip static symbols.
4768
44398cbe
PC
47692013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
4770
4771 PR tree-optimization/57200
4772 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
4773 Only call inform if the preceding warning_at returns true.
4774
f6bc1c4a
HS
47752013-05-07 Han Shen <shenhan@google.com>
4776
4777 * cfgexpand.c (record_or_union_type_has_array_p): New function.
4778 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
4779 * common.opt (fstack-protector-strong): New option.
4780 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
4781 * doc/invoke.texi (Optimization Options): Document
4782 "-fstack-protector-strong".
4783 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
4784
4ffecb1f
SB
47852013-05-06 Steven Bosscher <steven@gcc.gnu.org>
4786
4787 * config/mips/mips.c (mips_machine_reorg2): Return 0.
4788
5a107a0f
VM
47892013-05-07 Vladimir Makarov <vmakarov@redhat.com>
4790
4791 * ira.c (update_equiv_regs): Add insn having equiv memory even if
4792 it is not lhs of the insn.
4793 (setup_reg_equiv): Remove insn having equiv memory which it is not
4794 lhs of the insn.
4795 * lra-constraints.c (process_address): Try to improve generation
4796 code for address base + disp.
4797 (lra_constraints): Make correct the code for checking insn setting
4798 up backward equivalence. Remove insn only if it is in the init
4799 insn list.
4800 * lra-eliminations.c (update_reg_eliminate): Change return value.
4801 (lra_eliminate): Use the result.
4802
3f5783ea
UB
48032013-05-07 Uros Bizjak <ubizjak@gmail.com>
4804
4805 * config/i386/sse.md (ssescalarnummask): New mode attribute.
4806 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
4807 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
4808 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
4809 register target operands.
4810 (*vec_extractv8hi_sse2): New pattern.
4811 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
4812 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
4813 (*vec_extract<mode>_mem): New insn and split pattern.
4814
8a5800b8
CL
48152013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
4816
4817 * config/arm/arm.c (arm_asan_shadow_offset): New function.
4818 (TARGET_ASAN_SHADOW_OFFSET): Define.
4819 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
4820 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
4821
7bf55a70
BS
48222013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4823
4824 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
4825 (incr_vec_index): Return -1 if increment not found.
4826 (create_add_on_incoming_edge): Assert if increment not found.
4827 (record_increment): Limit number of increments recorded.
4828 (all_phi_incrs_profitable): Return false if an increment not found.
4829 (replace_profitable_candidates): Don't process increments that were
4830 not recorded.
4831 (analyze_candidates_and_replace): Limit size of incr_vec.
4832
3f8825c0
RB
48332013-05-07 Richard Biener <rguenther@suse.de>
4834
4835 * calls.c (special_function_p): setjmp-like functions are leaf.
4836 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
4837 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
4838
fd4842cd
SN
48392013-05-07 Sofiane Naci <sofiane.naci@arm.com>
4840
4841 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
4842 (aarch64_simd_mov<mode>): New expander.
4843 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
4844 (aarch64_simd_mov_to_<mode>high): Likewise.
4845 (aarch64_simd_mov_from_<mode>low): Likewise.
4846 (aarch64_simd_mov_from_<mode>high): Likewise.
4847 (aarch64_dup_lane<mode>): Update.
4848 (aarch64_dup_lanedi): New instruction pattern.
4849 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
4850 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
4851
a7a7d10e
BS
48522013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4853
4854 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
4855 (replace_mult_candidate): Remove unnecessary argument; remove
4856 unnecessary parameter from call to introduce_cast_before_cand.
4857 (replace_unconditional_candidate): Remove unnecessary parameter
4858 from call to replace_mult_candidate.
4859 (replace_conditional_candidate): Likewise.
4860 (insert_initializers): Use make_temp_ssa_name.
4861 (introduce_cast_before_cand): Remove unnecessary argument; use
4862 make_temp_ssa_name.
4863 (replace_one_candidate): Remove unnecessary argument; remove
4864 unnecessary parameter from calls to introduce_cast_before_cand.
4865 (replace_profitable_candidates): Remove unnecessary parameters
4866 from calls to replace_one_candidate.
4867
29105868
BS
48682013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4869
4870 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
4871 phi def as possibly hiding a basis for a CAND_ADD whose operands
4872 have been commuted in the analysis.
4873 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
4874
4095f9fa
N
48752013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4876
4877 * config/aarch64/aarch64.md
4878 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
4879 shift value between 0-4.
4880
39e843e8
RB
48812013-05-07 Richard Biener <rguenther@suse.de>
4882
4883 * double-int.h (rshift): New overload.
4884 * double-int.c (rshift): New function.
4885 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
4886 (create_reference_ops_from_ref): Remove.
4887 (vn_reference_insert): Use shared ops for constructing the
4888 reference and copy it.
4889
0a1a83cb
RB
48902013-05-07 Richard Biener <rguenther@suse.de>
4891
4892 PR middle-end/57190
4893 * tree-eh.c (sink_clobbers): Properly propagate
4894 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
4895
43303d6f
JJ
48962013-05-07 Jakub Jelinek <jakub@redhat.com>
4897
ba7e83f8
JJ
4898 PR tree-optimization/57149
4899 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
4900 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
4901 collect_phi_def_edges, execute_late_warn_uninitialized): Use
4902 uninit_undefined_value_p instead of ssa_undefined_value_p.
4903
43303d6f
JJ
4904 PR debug/57184
4905 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
4906 for modifier == EXPAND_INITIALIZER.
4907
14523c25
AB
49082013-05-07 Anton Blanchard <anton@samba.org>
4909
4910 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
4911 for powerpc64 little endian.
4912 * configure: Regenerate.
4913
cb7c8be9
GS
49142013-05-06 Graham Stott <grahams@btinternet.com>
4915
4916 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
4917 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
4918 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
4919 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
4920
49212013-05-06 Graham Stott <grahams@btinternet.com>
a8fd4225
GS
4922
4923 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
4924 codes which allow non-lvalues.
4925
9a0ee7b0
MG
49262013-05-06 Marc Glisse <marc.glisse@inria.fr>
4927
4928 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
4929 components are all 1s.
4930 (integer_minus_onep): New function.
4931 * tree.h (integer_minus_onep): Declare it.
4932 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
4933 integer_minus_onep instead of integer_all_onesp.
4934
f2c17ea9
OE
49352013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
4936
4937 PR target/52933
4938 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
4939 variations of these patterns.
4940
f75e6a51
UB
49412013-05-06 Uros Bizjak <ubizjak@gmail.com>
4942
4943 * config/i386/i386.md (isa): Add x64_sse4 member.
4944 (enabled): Handle x64_sse4.
4945 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
4946 instruction for 64bit SSE4_1 targets. Update insn attributes.
4947 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
4948 instruction for SSE4_1 targets. Update insn attributes.
4949 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
4950 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
4951 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
4952 const_1 selector.
4953 (*vec_extractv4si): Rename from *sse4_1_pextrd.
4954 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
4955 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
4956
a986d468
OE
49572013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
4958
4959 PR target/57108
4960 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
4961
382522cb
MK
49622013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
4963
4964 * final.c (do_assembler_dialects): Don't handle curly braces and
4965 vertical bar escaped by % as dialect delimiters.
4966 (output_asm_insn): Print curly braces and vertical bar if escaped
4967 by % and ASSEMBLER_DIALECT defined.
4968 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
4969 * doc/tm.texi: Regenerated.
4970
fb0d5c60
SB
49712013-05-06 Steven Bosscher <steven@gcc.gnu.org>
4972
fb0d5c60
SB
4973 * config/mips/mips.c: Include tree-pass.h.
4974 (mips_reorg): Split in pre- and post-dbr_schedule parts.
4975 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
4976 (pass_mips_machine_reorg2): New machine specific pass.
4977 (insert_pass_mips_machine_reorg2): New pass plugin definition.
4978 (mips_option_override): Register the new pass.
4979 * rtl.h (cleanup_barriers): Remove prototype.
4980 (dbr_schedule): Likewise.
4981 * jump.c (cleanup_barriers): Make static.
4982 * reorg.c (dbr_schedule): Likewise.
4983
aa06a978
RB
49842013-05-06 Richard Biener <rguenther@suse.de>
4985
4986 PR tree-optimization/57185
4987 * tree-parloops.c (add_field_for_reduction): Handle anonymous
4988 SSA names properly.
4989
0b953bec
UB
49902013-05-06 Uros Bizjak <ubizjak@gmail.com>
4991
4992 PR target/57106
4993 * config/i386/i386.c (add_parameter_dependencies): Add dependence
4994 between "first_arg" and "insn", not "last" and "insn".
4995
28708525
WS
49962013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4997
4998 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
4999 (find_candidates_in_block): Re-enable slsr_process_phi.
5000 (create_phi_basis): Fix double counting of candidate adjustment.
5001
0107dca2
RB
50022013-05-06 Richard Biener <rguenther@suse.de>
5003
5004 PR middle-end/57147
5005 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
5006 the edge is also fallthru, preserve it and just clear the
5007 abnormal flag.
5008 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
5009 also complex, preserve that and just clear the fallthru flag.
5010 * tree-inline.c (update_ssa_across_abnormal_edges): Also
5011 update virtual operands.
5012
470d4d13
AM
50132013-05-06 Alan Modra <amodra@gmail.com>
5014
5015 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
5016 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
5017 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
5018 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
5019 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
5020 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
5021
8f1dbf8d
AM
50222013-05-06 Alan Modra <amodra@gmail.com>
5023
5024 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
5025 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
5026 (DEFAULT_ASM_ENDIAN): Define.
5027 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
5028 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
5029 Update -K PIC clause from sysv4.h.
5030 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
5031 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
5032
54890767
AM
50332013-05-06 Alan Modra <amodra@gmail.com>
5034
5035 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
5036 twice for little-endian.
5037 (ashrdi3_no_power, ashrdi3): Support little-endian.
5038
2353515d
OE
50392013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
5040
5041 PR target/55303
5042 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
5043 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
5044 related expanders.
5045 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
5046 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
5047 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
5048 New predicates.
5049
33e67557
SB
50502013-05-05 Steven Bosscher <steven@gcc.gnu.org>
5051 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5052
5053 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
5054 * config/pa/pa.opt: Make mbig-switch a no-op.
5055 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
5056 (CASE_VECTOR_MODE): Always return SImode.
5057 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
5058 for the !TARGET_BIG_SWITCH case.
5059 * config/pa/pa-linux.h: Likewise.
5060 * config/pa/pa-openbsd.h: Likewise.
5061 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
5062 * config/pa/pa.md (short_jump): Remove define_insn.
5063 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
5064 (casesi0): Remove define_insn.
5065 (type): Remove btable_branch.
5066 (pa_combine_type): Likewise.
5067 (in_nullified_branch_delay): Likewise.
5068 (in_call_delay): Likewise.
5069 (define_delay): Likewise.
5070 (define_insn_reservation "Z3"): Likewise.
5071 (define_insn_reservation "Z4"): Likewise.
5072 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
5073 (pa_adjust_insn_length): Remove adjustment for btable branches.
5074 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
5075 and mno-big-switch
5076
3095685e
UB
50772013-05-05 Uros Bizjak <ubizjak@gmail.com>
5078
5079 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
5080 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
5081 Add m->r,x alternatives.
5082 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
5083 splitters using SWI48x mode iterator.
5084 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
5085 TARGET_64BIT. Add m->x alternative.
5086 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
5087 Add o->x alternative. Enable for TARGET_SSE.
5088 (sse_storeq): Remove expander.
5089 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
5090 with memory input operand.
5091 (*vec_extractv2di_1 splitter): New.
5092 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
5093 * config/i386/i386.md (ssevecmodelower): New mode attribute.
5094
4b36ae28
SB
50952013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
5096
5097 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
5098 (INT_LOWPART): Delete.
5099 (extract_MB): Adjust.
5100 (extract_ME): Adjust.
5101 (print_operand): Adjust.
5102
da226db2
SB
51032013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
5104
5105 * config/rs6000/predicates.md (reg_or_add_cint_operand,
5106 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
5107 (reg_or_logical_cint_operand, easy_fp_constant,
5108 logical_const_operand): Delete "CONST_DOUBLE" case.
5109 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
5110 "HOST_BITS_PER_WIDE_INT == 64" test.
3095685e 5111 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
da226db2
SB
5112 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
5113 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
5114 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
5115 test.
5116 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
5117 CONST_DOUBLE DImode/VOIDmode case.
5118 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
5119 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
5120 CONST_DOUBLE VOIDmode case.
5121 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
5122 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
5123 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
5124 Delete CONST_DOUBLE case.
5125 (splitters for mov FMOVE64 const_double): Delete
5126 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
5127 "HOST_BITS_PER_WIDE_INT >= 64" test.
5128 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
5129 case.
5130 (mov DI const_double): Delete.
5131
40de22d6
JJ
51322013-05-04 Jakub Jelinek <jakub@redhat.com>
5133
5134 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
5135 on op shows all bits zero in mode of a lowpart subreg, return zero.
5136
5ec6aff2
MM
51372013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
5138
5139 PR target/57150
5140 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
5141 to save TFmode registers and DImode to save TImode registers for
5142 caller save operations.
5143 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
5144 mark being partially clobbered since they only use the first
5145 double word.
5146
5147 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
5148 and TDmode only use the upper 64-bits of each VSX register.
5149
2cefad90
BS
51502013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5151
5152 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
5153 (find_candidates_in_block): Disable slsr_process_phi.
5154
d6d7eee1
GW
51552013-05-03 Guozhi Wei <carrot@google.com>
5156
5157 * coverage.c (coverage_obj_init): Move the construction of gcov
3095685e
UB
5158 constructor to ...
5159 (build_init_ctor): ... here.
d6d7eee1 5160
9b92d12b
BS
51612013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5162
5163 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
5164 (slsr_cand_d): Redefine def_phi.
5165 (stride_status, phi_adjust_status, count_phis_status): New enums.
5166 (find_phi_def): New.
5167 (find_basis_for_base_expr): New.
5168 (find_basis_for_candidate): Handle hidden bases.
5169 (alloc_cand_and_find_basis): Handle phi candidates.
5170 (slsr_process_phi): New.
5171 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
5172 (create_mul_imm_cand): Likewise.
5173 (create_add_ssa_cand): Exclude phi base candidates.
5174 (create_add_imm_cand): Likewise.
5175 (slsr_process_cast): Likewise.
5176 (slsr_process_copy): Likewise.
5177 (find_candidates_in_block): Handle phi candidates.
5178 (dump_candidate): Likewise.
5179 (unconditional_cands): Delete.
5180 (unconditional_cands_with_known_stride_p): Delete.
5181 (phi_dependent_cand_p): New.
5182 (cand_increment): Handle phi-dependent candidates.
5183 (replace_dependent): Delete.
5184 (replace_mult_candidate): New.
5185 (replace_unconditional_candidate): New.
5186 (incr_vec_index): Move to avoid forward reference.
5187 (create_add_on_incoming_edge): New.
5188 (create_phi_basis): New.
5189 (replace_dependents): Delete.
5190 (replace_conditional_candidate): New.
5191 (phi_add_costs): New.
5192 (replace_uncond_cands_and_profitable_phis): New.
5193 (record_increment): Handle phi adjustments.
5194 (record_phi_increments): New.
5195 (record_increments): Handle phi adjustments.
5196 (phi_incr_cost): New.
5197 (lowest_cost_path): Handle phis.
5198 (total_savings): Likewise.
5199 (analyze_increments): Likewise.
5200 (ncd_with_phi): New.
5201 (ncd_of_cand_and_phis): New.
5202 (nearest_common_dominator_for_cands): Handle phi increments.
5203 (all_phi_incrs_profitable): New.
5204 (replace_profitable_candidates): Handle phi-dependent candidates.
5205 (analyze_candidates_and_replace): Likewise.
5206
68f073d4
TJ
52072013-05-03 Teresa Johnson <tejohnson@google.com>
5208
5209 PR bootstrap/57154
5210 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
5211 do not exceed REG_BR_PROB_BASE.
5212
a4ee7cb9
JL
52132013-05-03 Jeff Law <law@redhat.com>
5214
ade67f70 5215 PR tree-optimization/57144
a4ee7cb9
JL
5216 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
5217 operand of the condition will bit into the new type when eliminating
5218 a cast feeding a condition.
5219
47954c4e
JJ
52202013-05-03 Jakub Jelinek <jakub@redhat.com>
5221
5222 PR rtl-optimization/57130
3095685e
UB
5223 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
5224 of COMPARE as in_code to the recursive call if needed.
47954c4e 5225
3c21604f
UB
52262013-05-03 Uros Bizjak <ubizjak@gmail.com>
5227
5228 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
5229 (enabled): Handle new members.
5230 * config/i386/sse.md (*vec_concatv2si): Merge from
5231 *vec_concatv2si_sse2 and vec_concatv2si_sse.
5232 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
5233
95c03b36
JR
52342013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
5235
5236 PR tree-optimization/57027
5237 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
5238 for fnms opportunity, check we got the prerequisite kind
5239 of tree / gimple before using accessor functions.
5240
07bfc9ec
RB
52412013-05-03 Richard Biener <rguenther@suse.de>
5242
5243 * double-int.h (lshift): New overload without precision
5244 and arith argument.
5245 (operator *=, operator +=, operator -=): Move ...
5246 * double-int.c (operator *=, operator +=, operator -=): ... here
5247 and implement more efficiently.
5248 (mul_double_with_sign): Remove.
5249 (lshift_double): Adjust to take unsinged shift argument, push
5250 dispatching code to callers.
5251 (mul_double_wide_with_sign): Add early out for callers that
5252 are not interested in high parts or overflow.
5253 (lshift): New function.
5254 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
5255 dispatch code here.
5256 (lrotate, rrotate): Use logical shifts.
5257 * expr.c (get_inner_reference): Use lshift.
5258 * fixed-value.c (do_fixed_divide): Likewise.
5259 * tree-dfa.c (get_ref_base_and_extent): Likewise.
5260 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
5261 (indirect_refs_may_alias_p): Likewise.
5262 (stmt_kills_ref_p_1): Likewise.
5263
7769bb64
VP
52642013-05-03 Vidya Praveen <vidyapraveen@arm.com>
5265
5266 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
5267
1d0c8e5c
VP
52682013-05-03 Vidya Praveen <vidyapraveen@arm.com>
5269
5270 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
5271 scalar form of FABD instruction.
5272
f15feaf9
VM
52732013-05-02 Vladimir Makarov <vmakarov@redhat.com>
5274
5275 * lra-constraints.c (process_alt_operands): Add checking alt
5276 number to choose the best alternative.
5277
d90e76d4
RB
52782013-05-02 Richard Biener <rguenther@suse.de>
5279
5280 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
5281 bitmap and its handling.
5282 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
5283
9f8e7a96
RB
52842013-05-02 Richard Biener <rguenther@suse.de>
5285
5286 PR middle-end/57140
5287 * tree-inline.c (copy_loops): Properly handle removed loops.
5288 (copy_cfg_body): Mark destination loops for fixup if source
5289 loops needed fixup.
5290
f3a81b39
GY
52912013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
5292
5293 PR target/56732
5294 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
5295 generating simple_return for naked functions.
5296
7b920a9a
MJ
52972013-05-02 Martin Jambor <mjambor@suse.cz>
5298
5299 PR middle-end/56988
5300 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
5301 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
5302 flags match.
5303 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
5304 ipa_agg_replacement_value structures.
5305 (known_aggs_to_agg_replacement_list): Likewise.
5306 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
5307 (read_agg_replacement_chain): Likewise.
5308 (ipcp_transform_function): Also check that by_ref flags match.
5309
2c41c19d
RB
53102013-05-02 Richard Biener <rguenther@suse.de>
5311
5312 * graphds.h (struct graph): Add obstack member.
5313 * graphds.c (new_graph): Initialize obstack and allocate
5314 vertices from it.
5315 (add_edge): Allocate edge from the obstack.
3c21604f 5316 (free_graph): Free the obstack instead of all edges and vertices.
2c41c19d 5317
8b47039c
TJ
53182013-05-02 Teresa Johnson <tejohnson@google.com>
5319
5320 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
5321 divides.
5322 * cfg.c (update_bb_profile_for_threading): Ditto.
5323 * tree-inline.c (copy_bb): Ditto.
5324 (copy_edges_for_bb): Ditto.
5325 (initialize_cfun): Ditto.
5326 (copy_cfg_body): Ditto.
5327 (expand_call_inline): Ditto.
5328 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
5329 (estimate_node_size_and_time): Ditto.
5330 (inline_merge_summary): Ditto.
5331 * cgraphclones.c (cgraph_clone_edge): Ditto.
5332 (cgraph_clone_node): Ditto.
5333 * sched-rgn.c (compute_dom_prob_ps): Ditto.
5334 (compute_trg_info): Ditto.
5335
da65928c
IB
53362013-05-02 Ian Bolton <ian.bolton@arm.com>
5337
5338 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
5339 S reg when fp attribute set.
5340 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
5341
add3c965
IB
53422013-05-02 Ian Bolton <ian.bolton@arm.com>
5343
5344 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
5345 New pattern.
5346 (*and_one_cmplsi3_compare0_uxtw): Likewise.
5347 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
5348 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
5349
fdd43ac4
RB
53502013-05-02 Richard Biener <rguenther@suse.de>
5351
5352 * tree-scalar-evolution.c (scev_info_hasher): Remove.
5353 (struct instantiate_cache_entry): New type.
5354 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
5355 (struct instantiate_cache_type): New type.
5356 (set_instantiated_value, get_instantiated_value): Remove.
5357 (get_instantiated_value_entry): New function.
5358 (instantiate_scev_name): Use the new cache and adjust.
5359 (instantiate_scev_poly): Adjust.
5360 (instantiate_scev_binary): Likewise.
5361 (instantiate_array_ref): Likewise.
5362 (instantiate_scev_convert): Likewise.
5363 (instantiate_scev_not): Likewise.
5364 (instantiate_scev_3): Likewise.
5365 (instantiate_scev_2): Likewise.
5366 (instantiate_scev_r): Likewise.
5367 (instantiate_scev): Likewise.
5368 (resolve_mixers): Likewise.
5369
36ff9dfb
VM
53702013-05-01 Vladimir Makarov <vmakarov@redhat.com>
5371
5372 PR target/57091
5373 * lra-constraints.c (best_small_class_operands_num): Remove.
5374 (process_alt_operands): Remove small_class_operands_num. Take
5375 small classes operands into losers and only if the operand is not
5376 matched. Modify debugging output.
5377 (curr_insn_transform): Remove best_small_class_operands_num.
5378 Print insn name.
5379
36054fab
JG
53802013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5381
5382 * config/aarch64/aarch64-builtins.c
5383 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
5384 * config/aarch64/aarch64-simd-builtins.def
5385 (reduc_splus_): Add new modes.
5386 (reduc_uplus_): New.
5387 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
5388 (reduc_uplus_v4sf): Likewise.
5389 (reduc_splus_v4sf): Likewise.
5390 (aarch64_addv<mode>): Likewise.
5391 (reduc_uplus_<mode>): Likewise.
5392 (reduc_splus_<mode>): Likewise.
5393 (aarch64_addvv2di): Likewise.
5394 (reduc_uplus_v2di): Likewise.
5395 (reduc_splus_v2di): Likewise.
5396 (aarch64_addvv2si): Likewise.
5397 (reduc_uplus_v2si): Likewise.
5398 (reduc_splus_v2si): Likewise.
5399 (reduc_<sur>plus_<mode>): New.
5400 (reduc_<sur>plus_v2di): Likewise.
5401 (reduc_<sur>plus_v2si): Likewise.
5402 (reduc_<sur>plus_v4sf): Likewise.
5403 (aarch64_addpv4sf): Likewise.
5404 * config/aarch64/arm_neon.h
5405 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
5406 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
5407 add UNSPEC_SADDV, UNSPEC_UADDV.
5408 (SUADDV): New.
5409 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
5410
6dce23a8
JG
54112013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5412
5413 * config/aarch64/arm_neon.h
5414 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
5415
1598945b
JG
54162013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5417
5418 * config/aarch64/aarch64-builtins
5419 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
5420
998eaf97
JG
54212013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5422
5423 * config/aarch64/aarch64-simd-builtins.def
5424 (reduc_smax_): New.
5425 (reduc_smin_): Likewise.
5426 (reduc_umax_): Likewise.
5427 (reduc_umin_): Likewise.
5428 (reduc_smax_nan_): Likewise.
5429 (reduc_smin_nan_): Likewise.
5430 (fmax): Remove.
5431 (fmin): Likewise.
5432 (smax): Update for V2SF, V4SF and V2DF modes.
5433 (smin): Likewise.
5434 (smax_nan): New.
5435 (smin_nan): Likewise.
5436 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
5437 (<su><maxmin><mode>3): ...This, refactor.
5438 (s<maxmin><mode>3): New.
5439 (<maxmin_uns><mode>3): Likewise.
5440 (reduc_<maxmin_uns>_<mode>): Refactor.
5441 (reduc_<maxmin_uns>_v4sf): Likewise.
5442 (reduc_<maxmin_uns>_v2si): Likewise.
5443 (aarch64_<fmaxmin><mode>: Remove.
5444 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
5445 new builtin names.
5446 (vmin<q>_f<32,64>): Likewise.
5447 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
5448 (FMAXMIN): New.
5449 (su): Add mappings for smax, smin, umax, umin.
5450 (maxmin): New.
5451 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
5452 (FMAXMIN): Rename as...
5453 (FMAXMIN_UNS): ...This.
5454 (maxminv): Remove.
5455 (fmaxminv): Likewise.
5456 (fmaxmin): Likewise.
5457 (maxmin_uns): New.
5458 (maxmin_uns_op): Likewise.
5459
bd11644e
JG
54602013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5461
5462 * config/aarch64/arm_neon.h
5463 (vac<ge, gt><sd>_f<32, 64>): Rename to...
5464 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
5465 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
5466
75dd5ace
JG
54672013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5468
5469 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
5470 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
5471
7c19979f
JG
54722013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5473
5474 * config/aarch64/aarch64-simd.md
5475 (vcond<mode>_internal): Handle special cases for constant masks.
5476 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
5477 (vcondu<mode><mode>): Likewise.
5478 (vcond<v_cmp_result><mode>): New.
5479
bb60efd9
JG
54802013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5481
5482 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
5483 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
5484 * config/aarch64/aarch64-simd-builtins.def
5485 (cmeq): Update to BUILTIN_VALLDI.
5486 (cmgt): Likewise.
5487 (cmge): Likewise.
5488 (cmle): Likewise.
5489 (cmlt): Likewise.
5490 * config/aarch64/arm_neon.h
5491 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
5492 to builtins or C as appropriate.
5493
889b9412
JG
54942013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5495
5496 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
5497 (cmgeu): ...This.
5498 (cmhi): Rename to...
5499 (cmgtu): ...This.
5500 * config/aarch64/aarch64-simd.md
5501 (simd_mode): Add SF.
5502 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
5503 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
5504 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
5505 (cstore<mode>_neg): ...This.
5506 * config/aarch64/iterators.md
5507 (VALLF): new.
5508 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
5509 (COMPARISONS): New.
5510 (UCOMPARISONS): Likewise.
5511 (optab): Add missing comparisons.
5512 (n_optab): New.
5513 (cmp_1): Likewise.
5514 (cmp_2): Likewise.
5515 (CMP): Likewise.
5516 (cmp): Remove.
5517 (VCMP_S): Likewise.
5518 (VCMP_U): Likewise.
5519 (V_cmp_result): Add DF, SF modes.
5520 (v_cmp_result): Likewise.
5521 (v): Likewise.
5522 (vmtype): Likewise.
5523 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
5524
0a7dbb76
GY
55252013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
5526
5527 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
5528 define_insn to define_insn_and_split.
5529 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
5530 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
5531 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
5532 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
5533 (thumb2_negscc): Likewise.
5534
fb614ca6
GY
55352013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
5536
5537 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
5538
9e64a0bf
GY
55392013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
5540
5541 * config/arm/thumb2.md: Remove trailing whitespaces.
5542
d6b28156
RS
55432013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
5544
5545 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
5546 Use gen_int_mode rather than GEN_INT.
5547
f91674c3
L
55482013-04-30 H.J. Lu <hongjiu.lu@intel.com>
5549
b0dec607 5550 * value-prof.c (stream_in_histogram_value): Remove the strayed
f91674c3
L
5551 debug_gimple_stmt.
5552
3551257c
RB
55532013-04-30 Richard Biener <rguenther@suse.de>
5554
5555 PR middle-end/57122
3c21604f 5556 * cfghooks.c (split_edge): Properly check for the loop latch edge.
3551257c 5557
4c1aff1c
RB
55582013-04-30 Richard Biener <rguenther@suse.de>
5559
5560 PR middle-end/57107
5561 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
5562
54b8379a
AB
55632013-04-30 Andrey Belevantsev <abel@ispras.ru>
5564
5565 PR rtl-optimization/56957
5566 PR rtl-optimization/57105
54b8379a
AB
5567 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
5568 variable. Use just INSN_UID for determining whether an insn
5569 should be only disconnected from the insn stream.
5570 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
5571
abc27962
JJ
55722013-04-30 Jakub Jelinek <jakub@redhat.com>
5573
5574 PR tree-optimization/57104
5575 * tsan.c (instrument_expr): Don't instrument accesses to
5576 DECL_HARD_REGISTER VAR_DECLs.
5577
0fc822d0
RB
55782013-04-30 Richard Biener <rguenther@suse.de>
5579
5580 * function.h (loops_for_fn): New inline function.
5581 (set_loops_for_fn): Likewise.
5582 * cfgloop.h (place_new_loop): Add struct function parameter.
5583 (get_loop): Likewise.
5584 (get_loops): Likewise.
5585 (number_of_loops): Likewise.
5586 (fel_next): Adjust.
5587 (fel_init): Likewise.
5588 * cfg.c (get_loop_copy): Adjust.
5589 * cfgloop.c (flow_loops_dump): Likewise.
5590 (record_loop_exits): Likewise.
5591 (verify_loop_structure): Likewise.
5592 * cfgloopanal.c (mark_irreducible_loops): Likewise.
5593 (estimate_reg_pressure_cost): Likewise.
5594 (mark_loop_exit_edges): Likewise.
5595 * cfgloopmanip.c (place_new_loop): Likewise.
5596 (add_loop): Likewise.
5597 (duplicate_loop): Likewise.
5598 * graph.c (draw_cfg_nodes): Likewise.
5599 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
5600 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
5601 (extract_affine_chrec): Likewise.
5602 (build_scop_iteration_domain): Likewise.
5603 * graphite.c (graphite_initialize): Likewise.
5604 * ira-build.c (create_loop_tree_nodes): Likewise.
5605 (more_one_region_p): Likewise.
5606 (rebuild_regno_allocno_maps): Likewise.
5607 (mark_loops_for_removal): Likewise.
5608 (mark_all_loops_for_removal): Likewise.
5609 (remove_unnecessary_regions): Likewise.
5610 (ira_build): Likewise.
5611 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
5612 * loop-init.c (fix_loop_structure): Likewise.
5613 (gate_rtl_move_loop_invariants): Likewise.
5614 (gate_rtl_unswitch): Likewise.
5615 (gate_rtl_unroll_and_peel_loops): Likewise.
5616 (rtl_doloop): Likewise.
5617 * lto-streamer-in.c (input_cfg): Likewise.
5618 * lto-streamer-out.c (output_cfg): Likewise.
5619 * modulo-sched.c (sms_schedule): Likewise.
5620 * predict.c (tree_estimate_probability): Likewise.
5621 (tree_estimate_probability_driver): Likewise.
5622 (estimate_loops): Likewise.
5623 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
5624 (move_sese_region_to_fn): Likewise.
5625 (debug_loop_num): Likewise.
5626 * tree-chrec.c (chrec_evaluate): Likewise.
5627 (hide_evolution_in_other_loops_than_loop): Likewise.
5628 (chrec_component_in_loop_num): Likewise.
5629 (reset_evolution_in_loop): Likewise.
5630 (evolution_function_is_invariant_rec_p): Likewise.
5631 * tree-if-conv.c (main_tree_if_conversion): Likewise.
5632 * tree-inline.c (copy_loops): Likewise.
5633 (copy_cfg_body): Likewise.
5634 (tree_function_versioning): Likewise.
5635 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
5636 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
5637 Likewise.
5638 (add_to_evolution_1): Likewise.
5639 (scev_const_prop): Likewise.
5640 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
5641 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
5642 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
5643 (tree_ssa_lim_initialize): Likewise.
5644 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
5645 (verify_loop_closed_ssa): Likewise.
5646 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
5647 (tree_ssa_loop_im): Likewise.
5648 (tree_ssa_loop_unswitch): Likewise.
5649 (tree_vectorize): Likewise.
5650 (check_data_deps): Likewise.
5651 (tree_ssa_loop_ivcanon): Likewise.
5652 (tree_ssa_loop_bounds): Likewise.
5653 (tree_complete_unroll): Likewise.
5654 (tree_complete_unroll_inner): Likewise.
5655 (tree_parallelize_loops): Likewise.
5656 (tree_ssa_loop_prefetch): Likewise.
5657 (tree_ssa_loop_ivopts): Likewise.
5658 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
5659 * tree-vectorizer.c (vectorize_loops): Likewise.
5660
37953bd3
MF
56612013-04-29 Mike Frysinger <vapier@gentoo.org>
5662
5663 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
5664 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
5665 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
5666 with EABI_LINK_SPEC.
5667
f9ed28db
UB
56682013-04-29 Uros Bizjak <ubizjak@gmail.com>
5669
5670 PR target/44578
5671 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
5672 alternative.
5673
deca73f5
VM
56742013-04-29 Vladimir Makarov <vmakarov@redhat.com>
5675
5676 PR target/57097
37953bd3 5677 * lra-constraints.c (process_alt_operands): Discourage a bit more
deca73f5
VM
5678 using memory for pseudos. Print cost dump for alternatives.
5679 Modify cost values for conflicts with early clobbers.
5680 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
5681
fdca7d03
UB
56822013-04-29 Uros Bizjak <ubizjak@gmail.com>
5683
5684 PR target/57098
5685 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
5686
0b064172
IB
56872013-04-29 Ian Bolton <ian.bolton@arm.com>
5688
5689 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
5690 from/to S register.
5691 (movdi_aarch64): Support LDR/STR from/to D register.
5692
473cec55
IB
56932013-04-29 Ian Bolton <ian.bolton@arm.com>
5694
5695 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
5696 or higher by default.
5697
a6f30e66
RB
56982013-04-29 Richard Biener <rguenther@suse.de>
5699
5700 PR middle-end/57075
5701 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
5702 even if not adding abnormal edges for calls that can make
5703 abnormal gotos.
5704
0c2b2040
RB
57052013-04-29 Richard Biener <rguenther@suse.de>
5706
5707 PR middle-end/57103
5708 * tree-cfg.c (move_stmt_op): Fix condition under which to update
5709 TREE_BLOCK.
5710 (move_stmt_r): Remove redundant checking.
5711
f41f80f9
TJ
57122013-04-29 Teresa Johnson <tejohnson@google.com>
5713
5714 PR bootstrap/57077
5715 * basic-block.h (apply_scale): New function.
5716 (apply_probability): Use apply_scale.
5717 * gimple-streamer-in.c (input_bb): Ditto.
5718 * lto-streamer-in.c (input_cfg): Ditto.
5719 * lto-cgraph.c (merge_profile_summaries): Ditto.
5720 * tree-optimize.c (execute_fixup_cfg): Ditto.
fdca7d03 5721 * tree-inline.c (copy_bb): Update comment to use apply_scale.
f41f80f9
TJ
5722 (copy_edges_for_bb): Ditto.
5723 (copy_cfg_body): Ditto.
5724
315bbd2e
TV
57252013-04-29 Tom de Vries <tom@codesourcery.com>
5726
5727 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
5728 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
5729 (tail_merge_optimize): Handle current_loops == NULL.
5730
ebbd90d8
JL
57312013-04-26 Jeff Law <law@redhat.com>
5732
5733 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
5734 (simplify_cond_using_ranges): Generalize code to simplify
5735 COND_EXPRs where one argument is a constant and the other
5736 is an SSA_NAME created by an integral type conversion.
5737
8b9b57eb
KT
57382013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5739
5740 * config/arm/arm.md (store_minmaxsi): Use only when
5741 optimize_insn_for_size_p.
5742
9498e5dc
CB
57432013-04-29 Christian Bruel <christian.bruel@st.com>
5744
5745 PR target/57108
5746 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
5747
6093bc06
RB
57482013-04-29 Richard Biener <rguenther@suse.de>
5749
5750 PR middle-end/57089
fdca7d03
UB
5751 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
5752 loop tree make sure to schedule a fixup for the child as well.
6093bc06
RB
5753 (expand_omp_for_generic): Properly add loops.
5754 (expand_omp_for_static_nochunk): Likewise.
5755 (expand_omp_for_static_chunk): Likewise.
5756 (expand_omp_for): For the degenerate case fixup loops.
5757 (expand_omp_sections): Fix default bb placement in loops.
5758 (expand_omp_atomic_pipeline): Properly add loops.
5759
84aacbfd
KT
57602013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5761
5762 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
5763
8dee4479
TV
57642013-04-29 Tom de Vries <tom@codesourcery.com>
5765
5766 * tree-ssa-tail-merge.c: Update header comment.
5767
47934dc4
JG
57682013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5769
5770 * config/aarch64/arm_neon.h
5771 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
5772 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
5773 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
5774 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
5775 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
5776 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
5777 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
5778 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
5779
384be29f
JG
57802013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5781
5782 * config/aarch64/aarch64-simd.md
5783 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
5784 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
5785 fix_trunc, fixuns_trunc.
5786 (ftrunc<VDQF:mode>2): New.
5787 * config/aarch64/iterators.md (optab): Add fix, fixuns.
5788 (fix_trunc_optab): New.
5789
0386b123
JG
57902013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5791
5792 * config/aarch64/aarch64-builtins.c
5793 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
5794 iceilf, lround, iroundf.
5795
00fcb892
UB
57962013-04-29 Uros Bizjak <ubizjak@gmail.com>
5797
5798 PR target/54349
5799 * config/i386/i386.h (enum ix86_tune_indices)
5800 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
5801 New, split from X86_TUNE_INTER_UNIT_MOVES.
5802 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
5803 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
5804 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
5805 (TARGET_INTER_UNIT_MOVES): Remove.
5806 * config/i386/i386.c (initial_ix86_tune_features): Update.
5807 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
5808 (ix86_expand_convert_uns_didf_sse): Use
5809 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
5810 (ix86_expand_vector_init_one_nonzero): Ditto.
5811 (ix86_expand_vector_init_interleave): Ditto.
5812 (inline_secondary_memory_needed): Return true for moves from SSE class
5813 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
5814 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
5815 * config/i386/constraints.md (Yi, Ym): Depend on
5816 TARGET_INTER_UNIT_MOVES_TO_VEC.
5817 (Yj, Yn): New constraints.
5818 * config/i386/i386.md (*movdi_internal): Change constraints of
5819 operand 1 from Yi to Yj and from Ym to Yn.
5820 (*movsi_internal): Ditto.
5821 (*movdf_internal): Ditto.
5822 (*movsf_internal): Ditto.
5823 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
5824 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
5825 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
5826 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
5827 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
5828 * config/i386/sse.md (movdi_to_sse): Ditto.
5829 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
5830 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
5831 TARGET_INTER_UNIT_MOVES.
5832 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
5833 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
5834 instead of TARGET_INTER_UNIT_MOVES.
5835 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
5836 operand 1 from Yi to Yj and from Ym to Yn.
5837
4c871069
JG
58382013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5839
5840 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
5841 (float_truncate_hi_): Likewise.
5842 (float_extend_lo_): Likewise.
5843 (float_truncate_lo_): Likewise.
5844 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
5845 (aarch64_float_extend_lo_v2df): Likewise.
5846 (vec_unpacks_hi_v4sf): Likewise.
5847 (aarch64_float_truncate_lo_v2sf): Likewise.
5848 (aarch64_float_truncate_hi_v4sf): Likewise.
5849 (vec_pack_trunc_v2df): Likewise.
5850 (vec_pack_trunc_df): Likewise.
5851
1709ff9b
JG
58522013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5853
5854 * config/aarch64/aarch64-builtins.c
5855 (aarch64_fold_builtin): Fold float conversions.
5856 * config/aarch64/aarch64-simd-builtins.def
5857 (floatv2si, floatv4si, floatv2di): New.
5858 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
5859 * config/aarch64/aarch64-simd.md
5860 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
5861 * config/aarch64/iterators.md (FLOATUORS): New.
5862 (optab): Add float, floatuns.
5863 (su_optab): Likewise.
5864
ce966824
JG
58652013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5866
5867 * config/aarch64/aarch64-builtins.c
5868 (aarch64_builtin_vectorized_function): Use new names for
5869 fcvt builtins.
5870 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
5871 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
5872 (fcvtzu): Split as...
5873 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
5874 (fcvtas): Split as...
5875 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
5876 (fcvtau): Split as...
5877 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
5878 (fcvtps): Split as...
5879 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
5880 (fcvtpu): Split as...
5881 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
5882 (fcvtms): Split as...
5883 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
5884 (fcvtmu): Split as...
5885 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
5886 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
5887 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
5888 (lfrintnusf, lfrintnudf): Likewise.
5889 * config/aarch64/aarch64-simd.md
5890 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
5891 define_insn.
5892 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
5893 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
5894 (fcvt_pattern): Likewise.
5895
b9de24fe
JG
58962013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5897
5898 * config/aarch64/aarch64-simd.md
5899 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
5900 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
5901
77a205be
JG
59022013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5903
5904 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
5905 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
5906 (vrnd<a,m,n,p>_f32): Implement using builtins.
5907 (vrnd<i,x><q>_f<32, 64>): New.
5908
0659ce6f
JG
59092013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5910
5911 * config/aarch64/aarch64-builtins.c
5912 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
5913 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
5914 (frintz): Rename to...
5915 (btrunc): ...this.
5916 (frintp): Rename to...
5917 (ceil): ...this.
5918 (frintm): Rename to...
5919 (floor): ...this.
5920 (frinti): Rename to...
5921 (nearbyint): ...this.
5922 (frintx): Rename to...
5923 (rint): ...this.
5924 (frinta): Rename to...
5925 (round): ...this.
5926 * config/aarch64/aarch64-simd.md
5927 (aarch64_frint<frint_suffix><mode>): Delete.
5928 (<frint_pattern><mode>2): Convert to insn.
5929 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
5930 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
5931 (frint_pattern): Likewise.
5932 (frint_suffix): Likewise.
5933
ea78906a
RB
59342013-04-29 Richard Biener <rguenther@suse.de>
5935
5936 PR tree-optimization/57081
5937 * loop-init.c: Include tree-flow.h.
5938 (loop_optimizer_finalize): Free number of iteration estimates.
5939 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
5940
baee1763
JJ
59412013-04-29 Jakub Jelinek <jakub@redhat.com>
5942
94dc5332
JJ
5943 PR tree-optimization/57083
5944 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
5945 non-singleton shift count range, zero extend low_bound for uns case.
5946
baee1763
JJ
5947 * config/i386/predicates.md (general_vector_operand): New predicate.
5948 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
5949 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
5950 if they aren't nonimmediate operands. If their original values
5951 satisfy const_vector_equal_evenodd_p, don't shift them.
5952 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
5953 predicates. For the SSE4.1 case force operands[{1,2}] into registers
5954 if not nonimmediate_operand.
5955 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
5956 instead of register_operand.
5957 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
5958
a9073727 59592013-04-28 Eric Botcazou <ebotcazou@adacore.com>
22ad5e0a
EB
5960
5961 * stor-layout.c (finalize_size_functions): Allocate a structure and
5962 reset cfun before dumping the functions.
5963
ba8011e6
JJ
59642013-04-27 Jakub Jelinek <jakub@redhat.com>
5965
d6fde69e
JJ
5966 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
5967
ba8011e6
JJ
5968 PR target/56866
5969 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
5970 use xop_pmacsdqh if uns_p.
5971 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
5972 the immediate rotate count.
5973
2c62cbaa
VM
59742013-04-26 Vladimir Makarov <vmakarov@redhat.com>
5975
5976 * rtl.h (struct rtx_def): Add comment for field jump.
5977 (LRA_SUBREG_P): New macro.
5978 * recog.c (register_operand): Check LRA_SUBREG_P.
5979 * lra.c (lra): Add note at the end of RTL code. Align non-empty
5980 stack frame.
5981 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
5982 (lra_final_code_change): Skip subreg change for operators.
5983 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
5984 if there are no operand changes.
5985 * lra-constraints.c (curr_insn_set): New.
5986 (match_reload): Set LRA_SUBREG_P.
5987 (emit_spill_move): Ditto.
5988 (check_and_process_move): Use curr_insn_set. Process only single
5989 set insns. Don't initialize sec_mem_p and change_p.
5990 (simplify_operand_subreg): Use LRA_SUBREG_P.
5991 (reg_in_class_p): New function.
5992 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
5993 of #ifdef. Add code to remove cycling.
5994 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
5995 non-null disp. Reload inner instead of disp when base and index
5996 are null. Try to put lo_sum into register.
5997 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
5998 (check_and_process_move): Move code for move cost check to
5999 simple_move_p. Remove equiv_substitution.
6000 (simple_move_p): New function.
6001 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
6002 curr_insn_set. Call check_and_process_move only for single set
6003 insns. Use the new function. Move call of check_and_process_move
6004 after operand equiv substitution and address process.
6005
e7d764f3
JJ
60062013-04-26 Jakub Jelinek <jakub@redhat.com>
6007
6008 PR go/57045
6009 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
6010 with nonlocal goto receivers or returns twice calls, ignore
6011 unininitialized values from abnormal edges to nl goto receiver
6012 or returns twice call.
6013
41e10689
JJ
60142013-04-26 Jakub Jelinek <jakub@redhat.com>
6015
6016 PR tree-optimization/57051
6017 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
6018 and VEC_RSHIFT_EXPR if shift count is a multiple of element
6019 bitsize.
6020
d7ed20db
RB
60212013-04-26 Richard Biener <rguenther@suse.de>
6022
6023 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
6024 (expand_omp_taskreg): Likewise. Mark loops for fixup.
6025 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
6026 (fixup_loop_arrays_after_move): New function.
6027 (move_sese_region_to_fn): Properly outline the loop tree parts
6028 of the SESE region.
6029
df93505e
UB
60302013-04-26 Uros Bizjak <ubizjak@gmail.com>
6031
6032 * config/i386/i386.md (type, unit): Fix long lines.
6033
dd366ec3
RB
60342013-04-26 Richard Biener <rguenther@suse.de>
6035
6036 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
6037 (lto-streamer-out.o): Likewise.
6038 * cfgloop.c (init_loops_structure): Export, add struct function
6039 argument and adjust.
6040 (flow_loops_find): Adjust.
6041 * cfgloop.h (enum loop_estimation): Add EST_LAST.
6042 (init_loops_structure): Declare.
6043 * lto-streamer-in.c: Include cfgloop.h.
6044 (input_cfg): Input the loop tree.
6045 * lto-streamer-out.c: Include cfgloop.h.
6046 (output_cfg): Output the loop tree.
6047 (output_struct_function_base): Do not drop PROP_loops.
6048
a9e0d843
RB
60492013-03-26 Richard Biener <rguenther@suse.de>
6050
6051 * tree-cfg.c (execute_build_cfg): Build the loop tree.
6052 (pass_build_cfg): Provide PROP_loops.
6053 (move_sese_region_to_fn): Remove loops that are outlined into fn
6054 for now.
6055 * tree-inline.c: Include cfgloop.h.
6056 (initialize_cfun): Do not drop PROP_loops.
6057 (copy_loops): New function.
6058 (copy_cfg_body): Copy loop structure.
6059 (tree_function_versioning): Initialize destination loop tree.
6060 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
6061 (pass_parallelize_loops): Do IL verification.
6062 * loop-init.c (loop_optimizer_init): Fixup loops if required.
6063 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
6064 the CFG make sure we fixup loops as well.
6065 * tree-ssa-tail-merge.c: Include cfgloop.h.
6066 (replace_block_by): When merging loop latches mark loops for fixup.
6067 * lto-streamer-out.c (output_struct_function_base): Drop
6068 PROP_loops for now.
6069 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
6070 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
6071 * ipa-split.c: Include cfgloop.h.
6072 (split_function): Add the new return block to the loop tree root.
6073 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
6074 whether we have removed the forwarder block.
6075 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
6076 * cfgloop.h (place_new_loop): Declare.
6077 * cfgloopmanip.c (place_new_loop): Export.
6078 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
6079 (tree-switch-conversion.o): Likewise.
6080 (tree-complex.o): Likewise.
6081 (tree-inline.o): Likewise.
6082 (tree-ssa-tailmerge.o): Likewise.
6083 (ipa-split.o): Likewise.
6084 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
6085 (tree-ssa-copy.o): Likewise.
6086 * tree-switch-conversion.c: Include cfgloop.h
6087 (process_switch): If we emit a bit-test cascade, schedule loops
6088 for fixup.
6089 * tree-complex.c: Include cfgloop.h.
6090 (expand_complex_div_wide): Properly add new basic-blocks to loops.
6091 * asan.c: Include cfgloop.h.
6092 (create_cond_insert_point): Properly add new basic-blocks to
6093 loops, schedule loop fixup.
6094 * cfgloop.c (verify_loop_structure): Check that looks are not
6095 marked for fixup.
6096 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
6097 to loops.
6098 (expand_omp_for_generic): Likewise.
6099 (expand_omp_sections): Likewise.
6100 (expand_omp_atomic_pipeline): Schedule loops for fixup.
6101 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
6102 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
6103 is initialized, not when loops are present.
6104 * tree-parloops.c (parallelize_loops): Remove checking here.
6105 * passes.c (init_optimization_passes): Schedule a copy-propagation
6106 pass before complete unrolling of inner loops.
6107
e78e8a0b
JJ
61082013-04-26 Jakub Jelinek <jakub@redhat.com>
6109
a2e836b2
JJ
6110 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
6111 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
6112 (colorize_init): Add argument to _WIN32 version.
6113 * toplev.c: Include diagnostic-color.h.
6114 (process_options): Default to -fdiagnostics-color=auto if
6115 GCC_COLORS env var is in the environment.
6116 * common.opt (fdiagnostics-color=): Add Var and Init.
df93505e
UB
6117 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
6118 env var is in the environment, the default is auto rather than never.
a2e836b2 6119
e78e8a0b
JJ
6120 * diagnostic.h (file_name_as_prefix): Add context argument.
6121 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
6122 the string as locus.
6123 * langhooks.c (lhd_print_error_function): Adjust caller.
6124
013e5ef9
LC
61252013-04-25 Lawrence Crowl <crowl@google.com>
6126
6127 * var-tracking.c (shared_hash_def::htab):
6128 Change type to hash_table. Update dependent calls and types.
6129
4a8fb1a1
LC
61302013-04-25 Lawrence Crowl <crowl@google.com>
6131
6132 * Makefile.in: Update as needed below.
6133
6134 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
6135 Move declaration to after the type's method definitons.
6136
6137 * attribs.c (htab_t scoped_attributes::attribute_hash):
6138 Change type to hash_table. Update dependent calls and types.
6139
6140 * bitmap.c (htab_t bitmap_desc_hash):
6141 Change type to hash_table. Update dependent calls and types.
6142
6143 * cselib.c (htab_t cselib_hash_table):
6144 Change type to hash_table. Update dependent calls and types.
6145
6146 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
6147 (hash_string_slot_node): Move implementation into lto-streamer.h
6148 struct string_slot_hasher.
6149 (eq_string_slot_node): Likewise.
6150
6151 * data-streamer-out.c: Update output_block::string_hash_table
6152 dependent calls and types.
6153
6154 * dwarf2cfi.c (htab_t trace_index):
6155 Change type to hash_table. Update dependent calls and types.
6156
6157 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
6158 Change type to hash_table. Update dependent calls and types.
6159 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
6160 (htab_t optimize_external_refs::map): Likewise.
6161 (htab_t output_comp_unit::extern_map): Likewise.
6162 (htab_t output_comdat_type_unit::extern_map): Likewise.
6163 (htab_t output_macinfo::macinfo_htab): Likewise.
6164 (htab_t optimize_location_lists::htab): Likewise.
6165 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
6166
6167 * except.c (htab_t ehspec_hash_type):
6168 Change type to hash_table. Update dependent calls and types.
6169 (assign_filter_values::ttypes): Likewise.
6170 (assign_filter_values::ehspec): Likewise.
6171 (sjlj_assign_call_site_values::ar_hash): Likewise.
6172 (convert_to_eh_region_ranges::ar_hash): Likewise.
6173
6174 * gcse.c (htab_t pre_ldst_table):
6175 Change type to hash_table. Update dependent calls and types.
6176
6177 * ggc-common.c (htab_t saving_htab):
6178 Change type to hash_table. Update dependent calls and types.
6179 (htab_t loc_hash): Likewise.
6180 (htab_t ptr_hash): Likewise.
6181 (call_count): Rename ggc_call_count.
6182 (call_alloc): Rename ggc_call_alloc.
6183 (loc_descriptor): Rename make_loc_descriptor.
6184 (add_statistics): Rename ggc_add_statistics.
6185
6186 * ggc-common.c (saving_htab):
6187 Change type to hash_table. Update dependent calls and types.
6188
6189 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
6190 (push_gimplify_context): Likewise.
6191 (pop_gimplify_context): Likewise.
6192 (struct gimple_temp_hash_elt): Added.
6193 (struct gimplify_hasher): Likewise.
6194 (struct gimplify_ctx.temp_htab):
6195 Change type to hash_table. Update dependent calls and types.
6196
6197 * gimple-fold.c: Include gimplify-ctx.h.
6198
6199 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
6200 Change type to hash_table. Update dependent calls and types.
6201 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
6202 avoid potential global name collision.
6203
6204 * gimplify.c: Include gimplify-ctx.h.
6205 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
6206 (htab_t gimplify_ctx::temp_htab):
6207 Update dependent calls and types for new type hash_table.
6208 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
6209 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
6210
6211 * gimplify-ctx.h: New.
6212 (struct gimple_temp_hash_elt): Move from gimplify.c.
6213 (class gimplify_hasher): New.
6214 (struct gimplify_ctx): Move from gimple.h.
6215 (htab_t gimplify_ctx::temp_htab):
6216 Change type to hash_table. Update dependent calls and types.
6217
6218 * graphite-clast-to-gimple.c: Include graphite-htab.h.
6219 (htab_t ivs_params::newivs_index):
6220 Change type to hash_table. Update dependent calls and types.
6221 (htab_t ivs_params::params_index): Likewise.
6222 (htab_t print_generated_program::params_index): Likewise.
6223 (htab_t gloog::newivs_index): Likewise.
6224 (htab_t gloog::params_index): Likewise.
6225
6226 * graphite.c: Include graphite-htab.h.
6227 4htab_t graphite_transform_loops::bb_pbb_mapping):
6228 Change type to hash_table. Update dependent calls and types.
6229
6230 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
6231 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
6232 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
6233
6234 * graphite-dependences.c: Include graphite-htab.h.
6235 (loop_is_parallel_p): Change hash table type of parameter.
6236
6237 * graphite-htab.h: New.
6238 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
6239 (extern find_pbb_via_hash): Move from graphite-poly.h.
6240 (extern loop_is_parallel_p): Move from graphite-poly.h.
6241 (extern get_loop_body_pbbs): Move from graphite-poly.h.
6242
6243 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
6244 (extern loop_is_parallel_p): Move to graphite-htab.h.
6245 (extern get_loop_body_pbbs): Move to graphite-htab.h.
6246
6247 * haifa-sched.c (htab_t delay_htab):
6248 Change type to hash_table. Update dependent calls and types.
6249 (htab_t delay_htab_i2): Likewise.
6250
6251 * ira-color.c (htab_t allocno_hard_regs_htab):
6252 Change type to hash_table. Update dependent calls and types.
6253
6254 * ira-costs.c (htab_t cost_classes_htab):
6255 Change type to hash_table. Update dependent calls and types.
6256
6257 * loop-invariant.c (htab_t merge_identical_invariants::eq):
6258 Change type to hash_table. Update dependent calls and types.
6259
6260 * loop-iv.c (htab_t bivs):
6261 Change type to hash_table. Update dependent calls and types.
6262
6263 * loop-unroll.c (htab_t opt_info::insns_to_split):
6264 Change type to hash_table. Update dependent calls and types.
6265 (htab_t opt_info::insns_with_var_to_expand): Likewise.
6266
6267 * lto-streamer.h (struct string_slot): Move from data-streamer.h
6268 (struct string_slot_hasher): New.
6269 (htab_t output_block::string_hash_table):
6270 Change type to hash_table. Update dependent calls and types.
6271
6272 * lto-streamer-in.c (freeing_string_slot_hasher): New.
6273 (htab_t file_name_hash_table):
6274 Change type to hash_table. Update dependent calls and types.
6275
6276 * lto-streamer-out.c: Update output_block::string_hash_table dependent
6277 calls and types.
6278
6279 * lto-streamer.c (htab_t tree_htab):
6280 Change type to hash_table. Update dependent calls and types.
6281
6282 * omp-low.c: Include gimplify-ctx.h.
6283
6284 * passes.c (htab_t name_to_pass_map):
6285 Change type to hash_table. Update dependent calls and types.
6286 (pass_traverse): Rename to passes_pass_traverse.
6287
6288 * plugin.c (htab_t event_tab):
6289 Change type to hash_table. Update dependent calls and types.
6290
6291 * postreload-gcse.c (htab_t expr_table):
6292 Change type to hash_table. Update dependent calls and types.
6293 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
6294
6295 * sese.c (debug_rename_map_1): Make extern.
6296 (htab_t copy_bb_and_scalar_dependences::rename_map):
6297 Change type to hash_table. Update dependent calls and types.
6298
6299 * sese.h (extern debug_rename_map): Move to .c file.
6300
6301 * store-motion.c (htab_t store_motion_mems_table):
6302 Change type to hash_table. Update dependent calls and types.
6303
6304 * trans-mem.c (htab_t tm_new_mem_hash):
6305 Change type to hash_table. Update dependent calls and types.
6306
6307 * tree-browser.c (htab_t TB_up_ht):
6308 Change type to hash_table. Update dependent calls and types.
6309
6310 * tree-cfg.c (htab_t discriminator_per_locus):
6311 Change type to hash_table. Update dependent calls and types.
6312
6313 * tree-complex.c: Include tree-hasher.h
6314 (htab_t complex_variable_components):
6315 Change type to hash_table. Update dependent calls and types.
6316
6317 * tree-eh.c (htab_t finally_tree):
6318 Change type to hash_table. Update dependent calls and types.
6319
6320 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
6321 struct int_tree_hasher.
6322 (extern int_tree_map_eq): Likewise.
6323 (uid_decl_map_hash): Removed.
6324 (extern decl_tree_map_eq): Likewise.
6325
6326 * tree-hasher.h: New.
6327 (struct int_tree_hasher): New.
6328 (typedef int_tree_htab_type): New.
6329
6330 * tree-inline.c: Include gimplify-ctx.h.
6331
6332 * tree-mudflap.c: Include gimplify-ctx.h.
6333
6334 * tree-parloops.c: Include tree-hasher.h.
6335 (htab_t eliminate_local_variables_stmt::decl_address):
6336 Change type to hash_table. Update dependent calls and types.
6337 (htab_t separate_decls_in_region::decl_copies): Likewise.
6338
6339 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
6340 Change type to hash_table. Update dependent calls and types.
6341
6342 * tree-sra.c (candidates):
6343 Change type to hash_table. Update dependent calls and types.
6344
6345 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
6346 in tree-flow.h.
6347 (int_tree_map_hash): Likewise.
6348
6349 * tree-ssa-dom.c (htab_t avail_exprs):
6350 Change type to hash_table. Update dependent calls and types.
6351
6352 * tree-ssa-live.c (var_map_base_init::tree_to_index):
6353 Change type to hash_table. Update dependent calls and types.
6354
6355 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
6356 Change type to hash_table. Update dependent calls and types.
6357
6358 * tree-ssa-phiopt.c (seen_ssa_names):
6359 Change type to hash_table. Update dependent calls and types.
6360
6361 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
6362 Change type to hash_table. Update dependent calls and types.
6363
6364 * tree-ssa-uncprop.c (equiv):
6365 Change type to hash_table. Update dependent calls and types.
6366
c5a44004
JJ
63672013-04-25 Jakub Jelinek <jakub@redhat.com>
6368
6369 PR rtl-optimization/57003
6370 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
6371 call note_stores with kill_clobbered_value callback again after
6372 killing regs_invalidated_by_call.
6373
09962a4a
JG
63742013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
6375
6376 * config/aarch64/aarch64-simd.md
6377 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
6378 (aarch64_simd_bsl<mode>): Likewise.
6379 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
6380
ea28bb0b
MP
63812013-04-25 Marek Polacek <polacek@redhat.com>
6382
6383 PR tree-optimization/57066
3c21604f 6384 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
ea28bb0b 6385
96659611
JG
63862013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
6387
6388 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
6389
9697e620
JG
63902013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
6391
6392 * config/aarch64/aarch64-builtins.c
6393 (aarch64_fold_builtin): New.
6394 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
6395 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
6396 * config/aarch64/aarch64-simd-builtins.def (abs): New.
6397 * config/aarch64/arm_neon.h
6398 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
6399
0ac198d3
JG
64002013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
6401 Tejas Belagod <tejas.belagod@arm.com>
6402
6403 * config/aarch64/aarch64-builtins.c
6404 (aarch64_gimple_fold_builtin): New.
6405 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
6406 * config/aarch64/aarch64-simd-builtins.def (addv): New.
6407 * config/aarch64/aarch64-simd.md (addpv4sf): New.
6408 (addvv4sf): Update.
6409 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
6410
58cff58c
N
64112013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6412
df93505e 6413 * config/aarch64/aarch64.md
58cff58c
N
6414 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
6415
7e0228bf
N
64162013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6417
6418 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
6419 (*ngcsi_uxtw): New pattern.
6420
5819f96f 64212013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3c21604f 6422 Julian Brown <julian@codesourcery.com>
5819f96f
KT
6423
6424 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
6425 (TB_DREG): Add T_V4HF.
6426 (v4hf_UP): New macro.
6427 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
df93505e 6428 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
6429 Handle initialisation of V4HF. Adjust initialisation of reinterpret
6430 built-ins.
df93505e 6431 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
6432 (arm_vector_mode_supported_p): Handle V4HF.
6433 (arm_mangle_map): Handle V4HFmode.
6434 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
6435 * config/arm/arm_neon_builtins.def: Add entries for
6436 vcvtv4hfv4sf, vcvtv4sfv4hf.
6437 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
6438 (neon_vcvtv4hfv4sf): Likewise.
6439 * config/arm/neon-gen.ml: Handle half-precision floating point
6440 features.
6441 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
6442 * config/arm/arm_neon.h: Regenerate.
6443 * config/arm/neon.ml (type elts): Add F16.
6444 (type vectype): Add T_float16x4, T_floatHF.
6445 (type vecmode): Add V4HF.
6446 (type features): Add Requires_FP_bit feature.
6447 (elt_width): Handle F16.
6448 (elt_class): Likewise.
6449 (elt_of_class_width): Likewise.
6450 (mode_of_elt): Refactor.
6451 (type_for_elt): Handle F16, fix error messages.
6452 (vectype_size): Handle T_float16x4.
6453 (vcvt_sh): New function.
6454 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
6455 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
6456 (string_of_mode): Handle V4HF.
6457 * doc/arm-neon-intrinsics.texi: Regenerate.
6458
1ef395e4
JG
64592013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
6460
6461 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
6462 format specifier in 'X' case.
6463
41c34e94
AM
64642013-04-25 Alan Modra <amodra@gmail.com>
6465
6466 PR target/57052
6467 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
6468 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
6469 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
6470 Repeat for many other rotate/shift and mask patterns using subregs.
6471 Name lshiftrt insns.
6472 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
6473 on WORDS_BIG_ENDIAN.
6474
b9a7eb5d
AM
64752013-04-25 Alan Modra <amodra@gmail.com>
6476
6477 * config.gcc: Support little-endian powerpc-linux targets.
6478 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
6479 (LINK_OS_LINUX_SPEC): Define.
6480 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
6481 Preserve MASK_LITTLE_ENDIAN.
6482 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
6483 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
6484 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
6485 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
6486 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
6487 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
6488 Correct fp word order for little-endian. Don't shift toc entries
6489 smaller than a word for little-endian.
6490 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
6491 (bswapdi2 splits): Correct low-part subreg for little-endian.
6492 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
6493 low/high where such is correct only for be.
6494 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
6495 little-endian for -mcall-aixdesc.
6496
87f73374
AM
64972013-04-25 Alan Modra <amodra@gmail.com>
6498
6499 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
6500 replace_equiv_address_nv.
6501
cabf91cd
AM
65022013-04-25 Alan Modra <amodra@gmail.com>
6503
6504 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
6505
0ae24cc8
VM
65062013-04-24 Vladimir Makarov <vmakarov@redhat.com>
6507
6508 Revert:
6509 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
6510 * rtl.h (struct rtx_def): ...
cabf91cd 6511
77bce07c
VM
65122013-04-24 Vladimir Makarov <vmakarov@redhat.com>
6513
6514 PR rtl-optimizations/57046
6515 * lra-constraints (split_reg): Set up lra_risky_transformations_p
6516 for multi-reg splits.
6517
0db63e7f
L
65182013-04-24 H.J. Lu <hongjiu.lu@intel.com>
6519
6520 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
6521
3362b6b6
SA
65222013-04-24 Sterling Augustine <saugustine@google.com>
6523
6524 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
6525 (comp_dir_string, debug_str_dwo_section): New.
6526 (DEBUG_STR_DWO_SECTION): Rename to ...
6527 (DEBUG_DWO_STR_SECTION): ... this.
6528 (DEBUG_NORM_STR_SECTION): Delete.
6529 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
6530 (DEBUG_STR_DWO_SECTION_FLAGS): New.
6531 (find_AT_string): Move most logic to ...
6532 (find_AT_string_in_table): ... here. New.
6533 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
6534 add_skeleton_AT_string. Delete logic.
6535 (output_skeleton_debug_sections): Remove call to
6536 add_top_level_skeleton_die_attrs.
6537 (add_comp_dir_attribute): Move logic to comp_dir_string.
6538 (dwarf2out_init): Initialize debug_str_dwo_section.
6539 (output_indirect_string): Call find_string_form.
6540 (output_indirect_strings): Rewrite.
6541 (prune_unused_types): Empty skeleton_debug_str_hash.
6542 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
6543 (dwarf2out_finish): Call output_indirect_strings.
6544
e93e18e9
PC
65452013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6546
6547 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
6548
f6ce35ac
VM
65492013-04-24 Vladimir Makarov <vmakarov@redhat.com>
6550
cabf91cd 6551 * rtl.h (struct rtx_def): Add comment for field jump.
f6ce35ac
VM
6552 (LRA_SUBREG_P): New macro.
6553 * recog.c (register_operand): Check LRA_SUBREG_P.
6554 * lra.c (lra): Add note at the end of RTL code. Align non-empty
6555 stack frame.
6556 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
6557 (lra_final_code_change): Skip subreg change for operators.
6558 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
6559 if there are no operand changes.
6560 * lra-constraints.c (curr_insn_set): New.
6561 (match_reload): Set LRA_SUBREG_P.
6562 (emit_spill_move): Ditto.
6563 (check_and_process_move): Use curr_insn_set. Process only single
6564 set insns. Don't initialize sec_mem_p and change_p.
6565 (simplify_operand_subreg): Use LRA_SUBREG_P.
6566 (reg_in_class_p): New function.
6567 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
6568 of #ifdef. Add code to remove cycling.
6569 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
6570 non-null disp. Reload inner instead of disp when base and index
6571 are null. Try to put lo_sum into register.
6572 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
cabf91cd 6573 (check_and_process_move): Move code for move cost check to
f6ce35ac 6574 simple_move_p. Remove equiv_substitution.
cabf91cd 6575 (simple_move_p): New function.
f6ce35ac
VM
6576 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
6577 curr_insn_set. Call check_and_process_move only for single set
6578 insns. Use the new function. Move call of check_and_process_move
6579 after operand equiv substitution and address process.
6580
38047d90
JG
65812013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
6582
6583 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
6584 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
6585 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
6586
13f39b2e
PC
65872013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6588
6589 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
6590
97c116dc
MP
65912013-04-24 Marek Polacek <polacek@redhat.com>
6592
6593 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
6594 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
6595 (select_loops_exit_conditions): Likewise.
6596 (number_of_iterations_for_all_loops): Likewise.
6597 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
6598 (scev_analysis): Likewise.
6599
83082391
CM
66002013-04-02 Catherine Moore <clm@codesourcery.com>
6601 Chao-ying Fu <fu@mips.com>
6602
cabf91cd
AM
6603 * config/mips/micromips.md (jraddiusp): New pattern.
6604 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
6605 instruction if possible.
83082391 6606
19e34aa2
AM
66072013-04-24 Alan Modra <amodra@gmail.com>
6608
6609 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
6610
fdb6603c
JB
66112013-04-24 Julian Brown <julian@codesourcery.com>
6612 Chung-Lin Tang <cltang@codesourcery.com>
6613
6614 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
df93505e
UB
6615 dependency behavior in enumeration type DIE generation. Add TODO note
6616 to comments about future DW_FORM_sdata/udata re-work of related code.
fdb6603c 6617
bf190e8d
LC
66182013-04-23 Lawrence Crowl <crowl@google.com>
6619
6620 * Makefile.in: Update as needed below.
6621
6622 * hash-table.h (class hash_table):
6623 Correct many methods with parameter types compare_type to the correct
6624 value_type. (Correct code was unlikely to notice the change.)
6625 (hash_table::elements_with_deleted) New.
6626 (class hashtable::iterator): New.
6627 (hashtable::begin()): New.
6628 (hashtable::end()): New.
6629 (FOR_EACH_HASH_TABLE_ELEMENT): New.
6630
6631 * statistics.c (statistics_hashes):
6632 Change type to hash_table. Update dependent calls and types.
6633
6634 * tree-into-ssa.c (var_infos):
6635 Change type to hash_table. Update dependent calls and types.
6636
6637 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
6638 Change type to hash_table. Update dependent calls and types.
6639
6640 * tree-ssa-loop-im.c (struct mem_ref.refs):
6641 Change type to hash_table. Update dependent calls and types.
6642
6643 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
6644 Change type to hash_table. Update dependent calls and types.
6645
6646 * tree-ssa-sccvn.c (vn_tables_s::nary):
6647 Change type to hash_table. Update dependent calls and types.
6648 (vn_tables_s::phis): Likewise.
6649 (vn_tables_s::references): Likewise.
6650
6651 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
6652 (vn_reference_eq): Update parameter and return types.
6653
6654 * tree-ssa-structalias.c (pointer_equiv_class_table):
6655 Change type to hash_table. Update dependent calls and types.
6656 (location_equiv_class_table): Likewise.
6657
6658 * tree-vect-data-refs.c: Consequential changes for making
6659 peeling a hash_table.
6660
6661 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
6662 (destroy_loop_vec_info): Dependent hash_table update.
6663
6664 * tree-vectorizer.h (peeling_htab):
6665 Change type to hash_table. Update dependent calls and types.
6666
d70a81dd
SC
66672013-04-23 Shiva Chen <shiva0217@gmail.com>
6668
cabf91cd
AM
6669 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
6670 to check the register content is equal or not.
6671 * lra-constraints.c (match_reload): Use lra_assign_reg_val
6672 to assign register content record.
6673 * lra-eliminations.c (update_reg_eliminate): Use
d70a81dd 6674 lra_update_reg_val_offset to update register content offset.
cabf91cd
AM
6675 * lra-int.h (struct lra_reg): Add offset member.
6676 (lra_reg_val_equal_p): New static inline function.
6677 (lra_update_reg_val_offset): New static inline function.
6678 (lra_assign_reg_val): New static inline function.
6679 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
6680 to assign register content record.
6681 (initialize_lra_reg_info_element): Initial offset to zero.
d70a81dd 6682
b894a1f3
CM
66832013-04-23 Catherine Moore <clm@codesourcery.com>
6684
6685 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
6686 operands. Record compression.
6687
ecd14de9
XDL
66882013-04-23 Xinliang David Li <davidxl@google.com>
6689
6690 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
6691
92e776e9
RB
66922013-04-23 Richard Biener <rguenther@suse.de>
6693
6694 PR middle-end/57036
6695 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
6696 parameter, only add abnormal goto edges from the copied body
6697 if the call could perform abnormal gotos.
6698 (copy_cfg_body): Adjust.
6699
a15ee567
SN
67002013-04-23 Sofiane Naci <sofiane.naci@arm.com>
6701
6702 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
6703
08c52234
AS
67042013-04-23 Andreas Schwab <schwab@linux-m68k.org>
6705
6706 * coretypes.h (gimple_stmt_iterator): Add struct to make
6707 compatible with C.
6708
999c1171
RB
67092013-04-23 Richard Biener <rguenther@suse.de>
6710
6711 PR tree-optimization/57026
6712 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
6713 from SSA names occuring in abnormal PHI nodes.
6714
53669259
AK
67152013-04-22 Andi Kleen <ak@linux.intel.com>
6716
6717 * lto/lto.c (print_lto_report_1): Fix LTO report names.
6718
1a0ad150
AK
67192013-04-22 Andi Kleen <ak@linux.intel.com>
6720
6721 * lto/lto.c (print_lto_report_1): Declare early.
6722 (read_cgraph_and_symbols): Call print_lto_report_1 early.
6723
057f8f20
AK
67242013-04-22 Andi Kleen <ak@linux.intel.com>
6725
6726 * common.opt (-flto-report-wpa): Add.
6727 * doc/invoke.texi (-flto-report-wpa): Add.
6728 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
6729 (lto_main): dito.
6730
473b1e05
XDL
67312013-04-22 Xinliang David Li <davidxl@google.com>
6732
6733 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
6734 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
6735 * Makefile.in: New dependency
6736
cabf91cd 6737 David Daney <ddaney.cavm@gmail.com>
b1485a33 6738
cabf91cd
AM
6739 * configure.ac (gcc_cv_as_micromips_support): Use the
6740 --fatal-warnings option.
6741 * configure: Regenerate.
b1485a33 6742
829d0168
MP
67432013-04-22 Marek Polacek <polacek@redhat.com>
6744
6745 PR sanitizer/56990
6746 * tsan.c (instrument_expr): Don't instrument expression
6747 in case its size is zero.
6748
6d9b7208
UB
67492013-04-22 Uros Bizjak <ubizjak@gmail.com>
6750
6751 PR target/57032
6752 Revert:
6753 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
6754
6755 * config/alpha/alpha.c (TARGET_LRA_P): New define.
6756
ea679d55
JG
67572013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
6758
6759 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
6760 (gimple_stmt_iterator): New typedef.
6761 * gimple.h (gimple_stmt_iterator): Rename to...
6762 (gimple_stmt_iterator_d): ... This.
6763 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
6764 trees be valid for GIMPLE and GENERIC.
6765 (TARGET_GIMPLE_FOLD_BUILTIN): New.
6766 * gimple-fold.c (gimple_fold_call): Call target hook
6767 gimple_fold_builtin.
6768 * hooks.c (hook_bool_gsiptr_false): New.
6769 * hooks.h (hook_bool_gsiptr_false): New.
6770 * target.def (fold_stmt): New.
6771 * doc/tm.texi: Regenerate.
6772
88a581da
VM
67732013-04-22 Vladimir Makarov <vmakarov@redhat.com>
6774
6775 PR target/57018
6776 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
6777 a set sp if no stack realignment.
6778
92be22dc
NC
67792013-04-22 Nick Clifton <nickc@redhat.com>
6780
6781 * config.gcc (tilegx-linux): Extend extra_objs rather than
6782 overwriting it.
6783 (tilepro-linux): Likewise.
6784
0ddec79f
JG
67852013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
6786
6787 * config/aarch64/aarch64-builtins.c
6788 (CF): Remove.
6789 (CF0, CF1, CF2, CF3, CF4, CF10): New.
6790 (VAR<1-12>): Add MAP parameter.
6791 (BUILTIN_*): Likewise.
6792 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
6793 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
6794 (aarch64_ushl_n<mode>): Likewise.
6795 (aarch64_sshr_n<mode>): Likewise.
6796 (aarch64_ushr_n<mode>): Likewise.
6797 (aarch64_<maxmin><mode>): Likewise.
6798 (aarch64_sqrt<mode>): Likewise.
6799 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
6800 (vshr<q>_n_*): Likewise.
6801
0050faf8
JG
68022013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
6803
6804 * config/aarch64/aarch64-builtins.c
6805 (aarch64_simd_builtin_type_mode): Handle SF types.
6806 (sf_UP): Define.
6807 (BUILTIN_GPF): Define.
6808 (aarch64_init_simd_builtins): Handle SF types.
6809 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
6810 (frecps): Likewise.
6811 (frecpx): Likewise.
6812 * config/aarch64/aarch64-simd.md
6813 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
6814 (aarch64_frecpe<mode>): New.
6815 (aarch64_frecps<mode>): Likewise.
6816 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
6817 (v8type): Add frecp<esx>.
6818 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
6819 (aarch64_frecps<mode>): Likewise.
6820 * config/aarch64/iterators.md (FRECP): New.
6821 (frecp_suffix): Likewise.
6822 * config/aarch64/arm_neon.h
6823 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
6824
0fad3dbc 68252013-04-22 Christian Bruel <christian.bruel@st.com>
1818d01c
CB
6826
6827 PR target/56995
6828 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
6829 (REG_CLASS_NAMES): Idem.
6830 (REG_CLASS_CONTENTS): Idem.
6831 (REGCLASS_HAS_FP_REG): Idem.
6832 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
6833 (sh_conditional_register_usage): Idem.
6834
3e8a33f9
JL
68352013-04-21 Jeff Law <law@redhat.com>
6836
6837 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
6838 (ssa_forward_propagate_and_combine): Use it.
6839
f38e1b0a
VM
68402013-04-19 Vladimir Makarov <vmakarov@redhat.com>
6841
6842 * lra.c: Update the flow chart diagram.
6843
682303da
VM
68442013-04-19 Vladimir Makarov <vmakarov@redhat.com>
6845
6846 PR rtl-optimization/56847
6847 * lra-constraints.c (process_alt_operands): Discourage alternative
6848 with non-matche doffsettable memory constraint fro memory with
6849 known offset.
6850
f6b64c35
RB
68512013-04-19 Richard Biener <rguenther@suse.de>
6852
6853 PR tree-optimization/56982
6854 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
6855 function.
6856 * gimplify.c (gimplify_call_expr): Notice special calls.
6857 (gimplify_modify_expr): Likewise.
6858 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
6859 abnormal control flow receivers.
6860 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
6861 in the same way as cfun->has_nonlocal_labels.
6862 (gimple_purge_dead_abnormal_call_edges): Likewise.
6863 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
6864 receivers start a basic-block.
6865
01d8bf07
RB
68662013-04-19 Richard Biener <rguenther@suse.de>
6867
6868 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
6869 member ...
6870 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
6871 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
6872 (SLP_TREE_LOAD_PERMUTATION): Add.
6873 (vect_transform_slp_perm_load): Adjust prototype.
6874 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
6875 (vect_free_slp_instance): Likewise.
6876 (vect_create_new_slp_node): Likewise.
6877 (vect_supported_slp_permutation_p): Remove.
6878 (vect_slp_rearrange_stmts): Adjust.
6879 (vect_supported_load_permutation_p): Likewise. Inline
6880 vect_supported_slp_permutation_p here.
6881 (vect_analyze_slp_instance): Compute load permutations per
6882 slp node instead of per instance.
6883 (vect_get_slp_defs): Adjust.
6884 (vect_transform_slp_perm_load): Likewise.
6885 (vect_schedule_slp_instance): Remove redundant code.
6886 (vect_schedule_slp): Remove hack for PR56270, add it ...
6887 * tree-vect-stmts.c (vectorizable_load): ... here, do not
6888 CSE loads for SLP. Adjust.
6889
ede22fc3
GY
68902013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
6891
6892 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
6893 spelling in two comments.
6894
67bc84fb
GY
68952013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
6896
6897 PR target/56797
6898 * config/arm/arm.c (load_multiple_sequence): Require SP
6899 as base register for loads if SP is in the register list.
6900
e248d83f
MJ
69012013-04-19 Martin Jambor <mjambor@suse.cz>
6902
6903 PR tree-optimization/56718
6904 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
6905 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
6906 and made public. Adjusted all callers.
6907 (ipa_intraprocedural_devirtualization): New function.
6908 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
6909 (ipa_intraprocedural_devirtualization): Likewise.
6910 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
6911
4891e8f8
RB
69122013-04-19 Richard Biener <rguenther@suse.de>
6913
6914 PR tree-optimization/57000
6915 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
6916
dad89f7c
TG
69172013-04-19 Terry Guo <terry.guo@arm.com>
6918
6919 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
6920 Replace with ...
6921 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
6922 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
6923 (cortex_m4_fmacs): Use new reservations.
6924 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
6925
72ea0d47
VM
69262013-04-18 Vladimir Makarov <vmakarov@redhat.com>
6927
f1e6512c 6928 PR rtl-optimization/56999
72ea0d47
VM
6929 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
6930 related code.
6931 (lra_coalesce): Remove split_origin_bitmap and related code.
6932 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
6933 ranges if necessary.
6934
780a5b71
UB
69352013-04-18 Uros Bizjak <ubizjak@gmail.com>
6936
6937 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
6938 New array.
6939 (ix86_expand_call): Remove clobbered_registers array and use
6940 x86_64_ms_sysv_extra_clobbered_registers instead.
6941 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
6942 Declare here.
6943 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
6944 predicate.
6945 * config/i386/i386.md (*call_rex64_ms_sysv): Use
6946 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
6947 (*call_value_rex64_ms_sysv): Ditto.
6948
6f5a366a
CC
69492013-04-18 Cary Coutant <ccoutant@google.com>
6950
6951 * dwarf2out.c (output_pubnames): Check die_perennial_p of
6952 parent instead of die_mark.
6953
475b8f37
DN
69542013-04-18 Diego Novillo <dnovillo@google.com>
6955
6956 * gimple.c (create_gimple_tmp): New.
6957 (get_expr_type): New.
6958 (build_assign): New.
6959 (build_type_cast): New.
6960 * gimple.h (enum ssa_mode): Define.
6961 (gimple_seq_set_location): New.
6962 * asan.c (build_check_stmt): Change some gimple_build_* calls
780a5b71 6963 to use build_assign and build_type_cast.
475b8f37 6964
08940f33
RB
69652013-04-18 Richard Biener <rguenther@suse.de>
6966
6967 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
6968 handle negative step. Remove redundant checks.
6969 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
6970 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
6971 for negative step and grouped loads fail to vectorize.
6972
0e0f87d4
SB
69732013-04-18 Steven Bosscher <steven@gcc.gnu.org>
6974
6975 * emit-rtl.c (reset_insn_used_flags): New function.
6976 (reset_all_used_flags): Use it.
6977 (verify_insn_sharing): New function.
6978 (verify_rtl_sharing): Fix verification for SEQUENCEs.
6979
4c445590
JJ
69802013-04-18 Jakub Jelinek <jakub@redhat.com>
6981
6982 PR tree-optimization/56984
6983 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
6984 and (x >> M) >= N don't register any assertion if N << M is the
6985 minimum value.
6986
6873ecab
SB
69872013-04-18 Steven Bosscher <steven@gcc.gnu.org>
6988
6989 * lower-subreg.c (resolve_simple_move): If called self-recursive,
6990 do not delete_insn insns that have not yet been emitted, only
6991 unlink them with remove_insn.
6992 * df-scan.c (df_insn_delete): Revert r197492.
6993
3ccb989e
SB
69942013-04-17 Steven Bosscher <steven@gcc.gnu.org>
6995
6996 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
6997 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
6998
69992013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
0480fff0
GY
7000
7001 * config/arm/arm.md (movsicc_insn): Convert define_insn into
7002 define_insn_and_split.
7003 (and_scc,ior_scc,negscc): Likewise.
7004 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
7005
3ccb989e 70062013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
367075fe
GY
7007
7008 * config/arm/arm.c (use_return_insn): Return 0 for targets that
7009 can benefit from using a sequence of LDRD instructions in epilogue
7010 instead of a single LDM instruction.
7011
6d10a203
MLI
70122013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
7013
7014 PR 45688
7015 * doc/extend.texi: Fix typo.
7016
6983e6b5
RB
70172013-04-17 Richard Biener <rguenther@suse.de>
7018
7019 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
7020 (vect_build_slp_tree): ... here.
7021 (vect_build_slp_tree_1): Compute which stmts of the SLP group
7022 match. Remove special-casing of mismatched complex loads.
7023 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
7024 re-try the match with swapped commutative operands.
7025 (vect_supported_load_permutation_p): Remove special-casing of
7026 mismatched complex loads.
7027 (vect_analyze_slp_instance): Adjust.
7028
ef23e6a2
RB
70292013-04-17 Richard Biener <rguenther@suse.de>
7030
7031 PR rtl-optimization/56921
7032 * cfgloop.h (struct loop): Add simple_loop_desc member.
7033 (struct niter_desc): Mark with GTY(()).
7034 (simple_loop_desc): Do not use aux field but simple_loop_desc.
7035 * loop-iv.c (get_simple_loop_desc): Likewise.
7036 (free_simple_loop_desc): Likewise.
7037
7038 Revert
7039 2013-04-16 Richard Biener <rguenther@suse.de>
7040
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.
7047
fc6f94f5
EB
70482013-04-17 Eric Botcazou <ebotcazou@adacore.com>
7049
7050 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
7051 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
7052 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
7053 references.
7054 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
7055 * tree-streamer.c (record_common_node): Adjust reference in comment.
7056
10a88311
TG
70572013-04-17 Terry Guo <terry.guo@arm.com>
7058
7059 * config/arm/cortex-m4.md: Add a new bypass.
7060
6d9b7208 70612013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f3d096b0
N
7062
7063 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
7064 New pattern.
7065 (*subs_<optab><mode>_multp2): New pattern.
7066 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
7067 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
7068
6d9b7208 70692013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
860ad33f
N
7070
7071 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
7072 (*subs_mul_imm_<mode>): New pattern.
7073
18a6701e
DE
70742013-04-16 David Edelsohn <dje.gcc@gmail.com>
7075
7076 PR target/56948
7077 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
7078 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
7079 (vsx_movti_32bit): Change j->wa to O->wa.
7080
07c37b2f
RB
70812013-04-16 Richard Biener <rguenther@suse.de>
7082
7083 PR rtl-optimization/56921
7084 * loop-init.c (pass_rtl_move_loop_invariants): Add
7085 TODO_do_not_ggc_collect to todo_flags_finish.
7086 (pass_rtl_unswitch): Same.
7087 (pass_rtl_unroll_and_peel_loops): Same.
7088 (pass_rtl_doloop): Same.
7089
0e0f87d4 70902013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
974ba22d
GY
7091
7092 * config/arm/arm.c (emit_multi_reg_push): New declaration
7093 for an existing function.
7094 (arm_emit_strd_push): New function.
7095 (arm_expand_prologue): Used here.
7096 (arm_emit_ldrd_pop): New function.
7097 (arm_expand_epilogue): Used here.
7098 (arm_get_frame_offsets): Update condition.
7099 (arm_emit_multi_reg_pop): Add a special case for load of a single
7100 register with writeback.
7101
5e8e2af4
UB
71022013-04-16 Uros Bizjak <ubizjak@gmail.com>
7103
7104 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
7105 description.
7106
9fd9ccf7
RB
71072013-04-16 Richard Biener <rguenther@suse.de>
7108
7109 PR tree-optimization/56756
7110 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
7111 (first_mem_ref_loc): New.
7112 (execute_sm): Place the load temporarily before a previous
7113 access instead of in the latch edge to ensure its SSA dependencies
7114 are defined at points dominating the load.
7115
96fba521
SB
71162013-04-16 Steven Bosscher <steven@gcc.gnu.org>
7117
4c8af858
SB
7118 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
7119 correct fix by moving header and footer insn to the footer of
7120 the merged basic block. Clear BB_END of the merged-away block.
7121
96fba521
SB
7122 PR middle-end/43631
7123 * emit-rtl.c (make_note_raw): New function.
7124 (link_insn_into_chain): New static inline function.
7125 (add_insn): Use it.
7126 (add_insn_before, add_insn_after): Factor insn chain linking code...
7127 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
7128 using link_insn_into_chain.
7129 (note_outside_basic_block_p): New helper function for emit_note_after
7130 and emit_note_before.
7131 (emit_note_after): Use nobb variant of add_insn_after if the note
7132 should not be contained in a basic block.
7133 (emit_note_before): Use nobb variant of add_insn_before if the note
7134 should not be contained in a basic block.
7135 (emit_note_copy): Use make_note_raw.
7136 (emit_note): Likewise.
7137 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
7138 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
7139 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
7140 the moved barrier the tail of the basic block it follows.
7141 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
7142
7b8265ba
JJ
71432013-04-15 Jakub Jelinek <jakub@redhat.com>
7144
7145 PR tree-optimization/56962
7146 * gimple-ssa-strength-reduction.c (record_increment): Only set
7147 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
7148 either rhs1 or rhs2 is equal to c->base_expr.
7149
5185d248
RB
71502013-04-15 Richard Biener <rguenther@suse.de>
7151
7152 PR tree-optimization/56933
7153 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
7154 member.
7155 (GROUP_READ_WRITE_DEPENDENCE): Remove.
7156 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
7157 * tree-vect-data-refs.c (vect_analyze_group_access): Move
7158 dependence check ...
7159 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
7160 ... here.
7161 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
7162 GROUP_READ_WRITE_DEPENDENCE.
7163
a24243a0
AK
71642013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7165
7166 * emit-rtl.c (reset_all_used_flags): New function.
7167 (verify_rtl_sharing): Call reset_all_used_flags before and after
7168 performing the checks.
7169
1c50eada
KT
71702013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7171
7172 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
7173 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
7174 * config/arm/constraints.md (De): New constraint.
7175 * config/arm/neon.md (anddi3_neon): Delete.
7176 (neon_vand<mode>): Expand to standard anddi3 pattern.
7177 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
7178 Move earlier in the file.
7179 (neon_inv_logic_op2): Likewise.
7180 (arm_anddi_operand_neon): New predicate.
7181
e927b6ad
RO
71822013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7183
7184 * configure.ac (gcc_cv_ld_as_needed): Set
7185 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
7186 Use -z ignore, -z record on *-*-solaris2*.
7187 (HAVE_LD_AS_NEEDED): Update comment.
7188 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
7189 * configure: Regenerate.
7190 * config.in: Regenerate.
7191 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
7192 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
7193 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
7194 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
7195 equivalents. Fix markup.
7196 * doc/tm.texi: Regenerate.
7197
e0ea8797
AH
71982013-04-15 Andrew Hsieh <andrewhsieh.google.com>
7199
7200 * config/i386/i386.opt: New option mstack-protector-guard=.
7201 * config/i386/i386-opts.h: Add enum stack_protector_guard.
7202 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
7203 TARGET_SSP_TLS_GUARD.
7204 * config/i386/i386.c (ix86_option_override_internal): Set
7205 ix86_stack_protector_guard.
7206 * config/i386/i386.md (stack_protect_set): Enable for
7207 TARGET_SSP_TLS_GUARD only.
7208 (stack_protect_set_<mode>): Ditto.
7209 (stack_protect_test): Ditto.
7210 (stack_protect_test_<mode>): Ditto.
7211 * doc/invoke.texi (i386 Option): Document.
7212
811b72f9
EB
72132013-04-15 Eric Botcazou <ebotcazou@adacore.com>
7214
7215 PR target/56890
7216 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
7217 (S_MODES): Set H_MODE bit.
7218 (SF_MODES): Set only S_MODE and SF_MODE bits.
7219 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
7220 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
7221 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
7222 <MODE_FLOAT>: Likewise.
7223
5529fdd6
JY
72242013-04-15 Joey Ye <joey.ye@arm.com>
7225
7226 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
7227
517b1da2
JY
72282013-04-15 Joey Ye <joey.ye@arm.com>
7229
7230 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
7231 for real far jump.
7232 (thumb_far_jump_used_p): Count instruction size and set
7233 far_jump_used.
7234
01007ae0
EB
72352013-04-14 Eric Botcazou <ebotcazou@adacore.com>
7236
7237 * reorg.c (fill_simple_delay_slots): Reindent block of code.
7238 * resource.c (mark_target_live_regs): Reformat conditional block.
7239
c46f6580
SB
72402013-04-13 Steven Bosscher <steven@gcc.gnu.org>
7241
7242 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
7243 notes, they are emitted only just before final.
7244 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
7245
1f397f45
SB
72462013-04-13 Steven Bosscher <steven@gcc.gnu.org>
7247
7248 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
7249 * cfgrtl.c (delete_insn): Call it here instead.
7250 * lra-spills.c (lra_final_code_change): Use delete_insn.
7251 * haifa-sched.c (sched_remove_insn): Likewise.
7252 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
7253 returning to the nop pool.
7254 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
7255 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
7256
58a51369
SB
72572013-04-12 Steven Bosscher <steven@gcc.gnu.org>
7258
7259 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
7260 * doc/tm.texi: Regenerated.
7261
33159866
UB
72622013-04-12 Uros Bizjak <ubizjak@gmail.com>
7263
7264 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
7265 QImode checks.
7266
226e378f
SB
72672013-04-12 Steven Bosscher <steven@gcc.gnu.org>
7268
7269 * df-core.c (df_find_def): Compare register numbers.
7270 (df_find_use): Likewise.
7271
fafb9b18
VM
72722013-04-12 Vladimir Makarov <vmakarov@redhat.com>
7273
7274 PR target/56903
7275 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
7276 lra_in_progress for return.
7277
9a946fd6
GY
72782013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
7279
7280 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
7281 define_insn into define_insn_and_split and emit movsicc patterns.
7282
41b83758
GY
72832013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
7284
7285 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
7286
d3afd9aa
RB
72872013-04-12 Richard Biener <rguenther@suse.de>
7288
7289 * tree-pass.h (TODO_do_not_ggc_collect): New.
7290 * passes.c (execute_one_ipa_transform_pass): Honor
7291 TODO_do_not_ggc_collect.
7292 (execute_one_pass): Likewise.
7293
7294 Revert
7295 2013-04-10 Richard Biener <rguenther@suse.de>
7296
7297 * passes.c (init_optimization_passes): Remove reload pass.
7298 * ira.c (do_reload): Merge into ...
7299 (ira): ... this.
7300 (rest_of_handle_reload): Remove.
7301 (pass_reload): Likewise.
7302 * config/i386/i386.c (ix86_option_override): Refer to ira instead
7303 of reload for vzeroupper pass placement.
7304
06f9b387
JJ
73052013-04-12 Jakub Jelinek <jakub@redhat.com>
7306
7307 PR tree-optimization/56918
7308 PR tree-optimization/56920
7309 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
7310 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
7311 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
7312 use wide_mul_with_sign method.
7313
953094d2
RB
73142013-04-12 Richard Biener <rguenther@suse.de>
7315
7316 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
7317 not be considered a gimple constant.
7318
bb506982
MG
73192013-04-12 Marc Glisse <marc.glisse@inria.fr>
7320
7321 * fold-const.c (const_binop): Handle vector shifts by a scalar.
7322 (fold_binary_loc): Call const_binop also for mixed vector-scalar
7323 operations.
7324
4b84d650
JJ
73252013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
7326 Jakub Jelinek <jakub@redhat.com>
7327
7328 * opts.c: Include diagnostic-color.h.
7329 (common_handle_option): Handle OPT_fdiagnostics_color_.
7330 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
7331 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
7332 (diagnostic-color.o): New.
7333 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
7334 (diagnostic_color_rule): New enum.
7335 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
7336 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
7337 the location string.
7338 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
7339 either NULL, or color kind.
7340 * diagnostic-color.c: New file.
7341 * diagnostic-color.h: New file.
7342 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
7343 arguments.
7344 * doc/invoke.texi (-fdiagnostics-color): Document.
7345 * pretty-print.h (pp_show_color): Define.
7346 (struct pretty_print_info): Add show_color field.
7347 * diagnostic.c: Include diagnostic-color.h.
7348 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
7349 macros. Colorize error:, warning: etc. strings and also the location
7350 string.
7351 (diagnostic_show_locus): Colorize the caret line.
7352 * pretty-print.c: Include diagnostic-color.h.
7353 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
7354 inside of %< %> quotes or quoted through q format modifier.
7355
067a1e71
AK
73562013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7357
33159866 7358 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
067a1e71 7359
33159866 73602013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
b056c910
N
7361
7362 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
7363 code in CC_NZ mode.
7364 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
7365 pattern.
7366
7b55f98f
MP
73672013-04-11 Marek Polacek <polacek@redhat.com>
7368
7369 PR tree-optimization/48184
33159866 7370 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
7b55f98f 7371
966b587e
EB
73722013-04-11 Eric Botcazou <ebotcazou@adacore.com>
7373
7374 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
7375 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
7376 (skip_simple_arithmetic): Tidy up.
7377 * tree.h (skip_simple_constant_arithmetic): Declare.
7378
33159866 73792013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f8bf91ab
N
7380
7381 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
7382
1d42c1ec
RB
73832013-04-11 Richard Biener <rguenther@suse.de>
7384
7385 * tree-vect-loop.c (get_initial_def_for_induction): Properly
7386 generate vector constants.
7387
4ba5ea11
RB
73882013-04-11 Richard Biener <rguenther@suse.de>
7389
7390 PR tree-optimization/56878
7391 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
7392 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
7393 New function.
7394 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7395 Prefer to align the DR with the most invariant base address.
7396
f0defe58
SKS
73972013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7398
7399 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
7400 comment.
7401
d07458be
JG
74022013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
7403
7404 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
7405 floating-point vector comparisons against 0.
7406
146b8692
JJ
74072013-04-11 Jakub Jelinek <jakub@redhat.com>
7408
7409 PR tree-optimization/56899
7410 * fold-const.c (extract_muldiv_1): Apply distributive law
7411 only if TYPE_OVERFLOW_WRAPS (ctype).
7412
b8578ff7
BC
74132013-04-11 Bin Cheng <bin.cheng@arm.com>
7414
7415 PR target/56124
7416 * ira-costs.c (scan_one_insn): Check whether the source rtx of
7417 loading has side effect.
7418
0ea8a6f9
SB
74192013-04-10 Steven Bosscher <steven@gcc.gnu.org>
7420
7421 * config/sparc/sparc.c: Include tree-pass.h.
7422 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
7423 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
7424 head of file. Change return type. Split off gate function.
7425 (sparc_gate_work_around_errata): New function.
7426 (pass_work_around_errata): New pass definition.
7427 (insert_pass_work_around_errata) New pass insert definition to
7428 insert pass_work_around_errata just after delayed-branch scheduling.
7429 (sparc_option_override): Insert the pass.
7430 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
7431
42e37616
DM
74322013-04-10 David S. Miller <davem@davemloft.net>
7433
89deeb3b
DM
7434 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
7435 or -mcpu=hypersparc.
7436
42e37616
DM
7437 * target.def (cstore_mode): New hook.
7438 * target.h: Include insn-codes.h
7439 * targhooks.c: Likewise.
7440 (default_cstore_mode): New function.
7441 * targhooks.h: Declare it.
7442 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
7443 * doc/tm.texi: Rebuild.
7444 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
7445 target hook, rather than inspecting the insn_data.
7446 * config/sparc/sparc.c (sparc_cstore_mode): New function.
7447 (TARGET_CSTORE_MODE): Redefine.
7448 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
7449 result patterns.
7450 * config/sparc/predicates.md (cstore_result_operand): New special
7451 predicate.
7452 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
7453 Use it for operand 0.
7454 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
7455 (*snesi_special): Likewise.
7456 (*snesi_zero): Likewise.
7457 (*seqsi_zero): Likewise.
7458 (*sltu_insn): Likewise.
7459 (*sgeu_insn): Likewise.
7460 (*seqdi_special): Make operand 0 and comparison operation be of
7461 DImode.
7462 (*snedi_special): Likewise.
7463 (*snedi_special_vis3): Likewise.
7464 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
7465 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
7466 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
7467 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
7468 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
7469 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
7470 (*sltu_extend_sp64): Likewise.
7471 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
7472 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
7473 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
7474 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
7475 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
7476
95ca411e
YZ
74772013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
7478
7479 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
7480 (aarch64_start_file): Use the new function.
7481
6782438d 74822013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
33159866 7483 Jason Merrill <jason@redhat.com>
6782438d
SKS
7484
7485 * common.opt: Add -gdwarf.
7486 * opts.c (common_handle_option): Handle it.
7487 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
7488
bb313b93
RB
74892013-04-10 Richard Biener <rguenther@suse.de>
7490
7491 * passes.c (execute_todo): Do not call ggc_collect conditional here.
7492 (execute_one_ipa_transform_pass): But unconditionally here.
7493 (execute_one_pass): And here.
7494 (init_optimization_passes): Remove reload pass.
7495 * tree-pass.h (TODO_ggc_collect): Remove.
7496 (pass_reload): Likewise.
7497 * ira.c (do_reload): Merge into ...
7498 (ira): ... this.
7499 (rest_of_handle_reload): Remove.
7500 (pass_reload): Likewise.
7501 * config/i386/i386.c (ix86_option_override): Refer to ira instead
7502 of reload for vzeroupper pass placement.
7503 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
7504 and todo_flags_finish of all passes.
7505
793d9a16
RB
75062013-04-10 Richard Biener <rguenther@suse.de>
7507
7508 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
7509 first_const_oprnd field, rename first_def_type to first_op_type.
7510 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
7511 (vect_get_and_check_slp_defs): Always use the type of the
7512 operand. Allow mixed vect_external_def, vect_constant_def types.
7513 (vect_get_constant_vectors): Handle mixed vect_external_def,
7514 vect_constant_def types.
7515
ee8a9b7b
JR
75162013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
7517
7518 PR tree-optimization/55524
7519 * tree-ssa-math-opts.c
7520 (convert_mult_to_fma): Don't use an fms construct
7521 when we don't have an fms operation, but fnma, and it looks
7522 likely that we'll be able to use the latter.
7523
6957a6f6
ZZ
75242013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
7525
7526 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
7527 function.
7528 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
7529 inline fail caused by overwritable functions.
7530
34ab4a5b
CJW
75312013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
7532
7533 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
7534 unnecessary bits in the constant power of two case.
7535
abf9bfbc
RB
75362013-04-10 Richard Biener <rguenther@suse.de>
7537
7538 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
7539 broken code swapping operands.
7540 (vect_build_slp_tree): Do not compute load permutations here.
7541 (vect_analyze_slp_instance): Compute load permutations here,
7542 after building the SLP tree.
7543
f408477e
CB
75442013-04-09 Christian Bruel <christian.bruel@st.com>
7545
7546 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
7547 of next/prev_real_insn.
7548
5ac42672
JH
75492013-04-09 Jan Hubicka <jh@suse.cz>
7550
abf9bfbc
RB
7551 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
7552 Drop aliased parameter.
5ac42672
JH
7553 (function_and_variable_visibility): Do not handle alias pairs.
7554 * cgraph.c (varpool_externally_visible_p): Update prototype.
7555 * varpool.c (varpool_add_new_variable): Update.
7556
5017f1d2
KT
75572013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7558
7559 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
7560
48eecbee
SB
75612013-04-09 Steven Bosscher <steven@gcc.gnu.org>
7562
a949cf1c
SB
7563 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
7564
48eecbee
SB
7565 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
7566
75ef8e3d
MP
75672013-04-09 Marek Polacek <polacek@redhat.com>
7568
7569 PR tree-optimization/48762
33159866 7570 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
75ef8e3d 7571
23847df4
RB
75722013-04-09 Richard Biener <rguenther@suse.de>
7573
7574 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
7575 dealing with cost.
7576 (vect_build_slp_tree): Likewise.
7577 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
7578 calculating the cost of a SLP instance.
7579 (vect_analyze_slp_instance): Use it from here, after building
7580 the SLP tree.
7581
ea3a0fde
JJ
75822013-04-09 Jakub Jelinek <jakub@redhat.com>
7583
7584 PR middle-end/56883
7585 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
7586 expand_omp_for_static_chunk): Use simple_p = true in
7587 force_gimple_operand_gsi calls when assigning to addressable decls.
7588
a32dfe9d
JL
75892013-04-09 Jeff Law <law@redhat.com>
7590
7591 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
7592 when the boolean was created by converting a wider object which
7593 had a boolean range.
7594
d755c7ef
RB
75952013-04-09 Richard Biener <rguenther@suse.de>
7596
7597 * tree-vectorizer.h (slp_void_p): Remove.
7598 (slp_tree): Typedef before _slp_tree declaration.
7599 (struct _slp_tree): Use a vector of slp_tree as children.
7600 (vect_get_place_in_interleaving_chain): Remove.
7601 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
7602 Move ...
7603 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
7604 and make static.
7605 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
7606 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
7607 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
7608 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
7609 Use slp_node instead of slp_void_p and adjust.
7610
3d741091
RB
76112013-04-09 Richard Biener <rguenther@suse.de>
7612
7613 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
7614 work that is not necessary.
7615
39307ba7
JJ
76162013-04-09 Jakub Jelinek <jakub@redhat.com>
7617
7618 PR tree-optimization/56854
7619 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
7620 forward into clobber stmts if it would change MEM_REF lhs into
7621 non-MEM_REF.
7622
343881fd
MK
76232013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
7624
7625 * tree.c (type_hash_lookup, type_hash_add): Make static.
7626 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
7627
3922658a
RB
76282013-04-09 Richard Biener <rguenther@suse.de>
7629
7630 * tree.h (unsave_expr_now): Remove.
7631 * tree-inline.c (mark_local_for_remap_r): Remove.
7632 (unsave_expr_1): Likewise.
7633 (unsave_r): Likewise.
7634 (unsave_expr_now): Likewise.
7635 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
7636 (propagate_tree_value): Likewise.
7637
9fb6b620
SB
76382013-04-08 Steven Bosscher <steven@gcc.gnu.org>
7639
7640 * doc/rtl.texi (sequence): Rewrite documentation to match the
7641 current use of SEQUENCE rtl objects.
7642 * rtl.def (SEQUENCE): Likewise.
7643
7644 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
7645 Update documentation.
7646 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
7647 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
7648
7649 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
7650
8ddb5a29
TJ
76512013-04-08 Teresa Johnson <tejohnson@google.com>
7652
7653 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
7654 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
33159866 7655 methods.
8ddb5a29
TJ
7656 (estimate_edge_size_and_time): Add comment to suggest using rounding
7657 methods.
7658 (estimate_node_size_and_time): Ditto.
7659 (remap_edge_change_prob): Use helper rounding divide methods.
7660 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
7661 (gimple_mod_pow2_value_transform): Ditto.
7662 (gimple_mod_subtract_transform): Ditto.
7663 (gimple_ic_transform): Ditto.
7664 (gimple_stringops_transform): Ditto.
7665 * stmt.c (conditional_probability): Ditto.
7666 (emit_case_dispatch_table): Ditto.
7667 * lto-cgraph.c (merge_profile_summaries): Ditto.
7668 * tree-optimize.c (execute_fixup_cfg): Ditto.
7669 * cfgcleanup.c (try_forward_edges): Ditto.
7670 * cfgloopmanip.c (scale_loop_profile): Ditto.
7671 (loopify): Ditto.
7672 (duplicate_loop_to_header_edge): Ditto.
7673 (lv_adjust_loop_entry_edge): Ditto.
7674 * tree-vect-loop.c (vect_transform_loop): Ditto.
7675 * profile.c (compute_branch_probabilities): Ditto.
7676 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
7677 * lto-streamer-in.c (input_cfg): Ditto.
7678 * gimple-streamer-in.c (input_bb): Ditto.
7679 * ipa-cp.c (update_profiling_info): Ditto.
7680 (update_specialized_profile): Ditto.
7681 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
7682 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
33159866 7683 rounding methods.
8ddb5a29
TJ
7684 * sched-rgn.c (compute_dom_prob_ps): Ditto.
7685 (compute_trg_info): Ditto.
7686 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
7687 (purge_dead_edges): Ditto.
7688 * loop-unswitch.c (unswitch_loop): Ditto.
7689 * cgraphclones.c (cgraph_clone_edge): Ditto.
7690 (cgraph_clone_node): Ditto.
7691 * tree-inline.c (copy_bb): Ditto.
7692 (copy_edges_for_bb): Ditto.
7693 (initialize_cfun): Ditto.
7694 (copy_cfg_body): Ditto.
7695 (expand_call_inline): Ditto.
7696
661e6bd7
KT
76972013-04-08 Kai Tietz <ktietz@redhat.com>
7698
7699 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
7700 TARGET_CYGWIN64 by TARGET_64BIT.
7701
105766f3
JR
77022013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
7703
7704 * config/epiphany/epiphany.md (GPR_1): New constant.
7705 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
7706 * config/epiphany/epiphany.c (gen_compare_reg):
7707 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
7708 is already in place.
7709 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
7710 Don't require being called during rtl expansion; If y operlaps r0,
7711 return 0.
7712 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
7713 (epiphany_expand_epilogue): Likewise.
7714
8afab237
JR
7715 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
7716 Don't use CC_FPmode for ORDERED / UNORDERED.
33159866 7717 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
8afab237 7718
fa7707d6
JR
7719 * config/epiphany/constraints.md (CnL): New constraint.
7720 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
7721 * config/epiphany/predicates.md (add_operand): Allow 1024.
7722
5138e18d
JR
7723 * config/epiphany/epiphany.md (logical_op): New code iterator.
7724 (op_mnc): New code attribute.
7725 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
7726 (mov_f+1, mov_f+2): New peephole2 patterns.
7727
2ccc703d
JR
7728 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
7729 (cstoresi4): Also allow re-use of zero result when doing a NE
7730 comparison to a non-zero operand.
aefb0819 7731 Use (clobber (scratch)) for first insn if the gpr output is not needed.
2ccc703d 7732
093ac0a5
JR
7733 * config/epiphany/epiphany.md (<insn_opname>v2si3):
7734 Use gen_addsi3_i / gen_subsi3_i.
7735
f223bb13
JJ
77362013-04-08 Jakub Jelinek <jakub@redhat.com>
7737
7738 PR c++/34949
7739 PR c++/50243
7740 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
7741 contain anything but clobbers, at most one __builtin_stack_restore,
7742 optionally debug stmts and final resx, and if it has at least one
7743 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
7744 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
7745 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
7746 which isn't defaut definition, remove them.
7747 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
7748 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
7749 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
7750 with MEM_REF LHS with SSA_NAME address.
7751
4481581f
JL
77522013-04-08 Jeff Law <law@redhat.com>
7753
7754 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
a32dfe9d 7755
451dabda
RB
77562013-04-08 Richard Biener <rguenther@suse.de>
7757
7758 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
7759 extra newline.
7760 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
7761 determined vector type.
7762 (vect_analyze_data_refs): Likewise.
7763 (vect_get_new_vect_var): Adjust.
7764 (vect_create_destination_var): Preserve SSA name versions.
7765 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
7766 not dump anything here.
7767
3b088b47
JR
77682013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
7769
7770 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
7771 Add member lr_slot_known.
7772 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
7773 if necessary.
7774 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
7775 Remove code that sets lr_slot_offset according to what a previous
7776 version of epiphany_emit_save_restore used to do.
7777 (epiphany_emit_save_restore): When doing an lr save or restore,
7778 set/verify lr_slot_known and lr_slot_offset.
7779
d8484d41
XQ
77802013-04-08 Xinyu Qi <xyqi@marvell.com>
7781
33159866
UB
7782 PR target/54338
7783 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
d8484d41
XQ
7784 in ALL_REGS.
7785
481be1c4
RB
77862013-04-08 Richard Biener <rguenther@suse.de>
7787
7788 * alias.c (find_base_term): Fix thinko in previous change.
7789
401f3a81
JJ
77902013-04-08 Jakub Jelinek <jakub@redhat.com>
7791
7792 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
7793 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
7794 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
7795 if possible to compute val.
7796 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
7797 For QImode integers don't require anything about precision. Use
7798 const_with_all_bytes_same to find out if the constant doesn't have
7799 repeated bytes in it.
7800
03ed99a8
AK
78012013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7802
7803 * config/s390/s390.c (s390_expand_insv): Only accept insertions
7804 within mode size.
7805
781b2e62
MP
78062013-04-08 Marek Polacek <polacek@redhat.com>
7807
7808 PR rtl-optimization/48182
7809 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
7810 value to 1.
7811
27e430a2
JDA
78122013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7813
7814 PR target/55487
7815 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
7816 nuses, make sure we have a label.
7817
4902aa64
BS
78182013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7819
7820 PR target/56843
7821 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
7822 (rs6000_emit_swdiv_low_precision): Remove.
7823 (rs6000_emit_swdiv): Rewrite to handle between one and four
7824 iterations of Newton-Raphson generally; modify required number of
7825 iterations for some cases.
7826 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
7827
7bca81dc
SB
78282013-04-05 Steven Bosscher <steven@gcc.gnu.org>
7829
7830 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
7831 set-but-unused variable.
7832
7833 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
7834 basic blocks of released function bodies garbage-collectable.
7835
7836 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
7837 (struct rtl_opt_pass): Add TODO_df_finish.
7838
7839 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
7840
4542a38a
GY
78412013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7842
7843 * config/arm/constraints.md (q): New constraint.
7844 * config/arm/ldrdstrd.md: New file.
7845 * config/arm/arm.md (ldrdstrd.md) New include.
7846 (arm_movdi): Use "q" instead of "r" constraint
7847 for double-word memory access.
7848 (movdf_soft_insn): Likewise.
7849 * config/arm/vfp.md (movdi_vfp): Likewise.
7850 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
33159866 7851 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
4542a38a
GY
7852 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
7853 (mem_ok_for_ldrd_strd): Likewise.
7854 (output_move_double): Update assertion.
7855
2385b218
GY
78562013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7857
7858 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
7859
75fe1cb5
GY
78602013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7861
7862 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
7863 define_insn_and_split.
7864 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
7865
dd660e8e
GY
78662013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7867
7868 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
7869 define_insn_and_split.
33159866 7870 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
dd660e8e
GY
7871 (shiftsi3_compare): New pattern.
7872 (rrx): New pattern.
7873 * config/arm/unspecs.md (UNSPEC_RRX): New.
7874
045e472c
GY
78752013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7876
7877 * config/arm/arm.md (negdi_extendsidi): New pattern.
7878 (negdi_zero_extendsidi): Likewise.
7879
3f3bf1a8
GY
78802013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7881
7882 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
7883 define_insn_and_split.
7884 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
7885 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
7886
b0b49556
GY
78872013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7888
7889 * config/arm/arm.md (arm_subdi3): Convert define_insn into
7890 define_insn_and_split.
7891 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
7892 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
7893
d633dd84
GY
78942013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7895
7896 * config/arm/arm.md (subsi3_carryin): New pattern.
7897 (subsi3_carryin_const): Likewise.
7898 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
7899 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
7900
f4499066
GY
79012013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7902
7903 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
7904
ceef6fd9
GY
79052013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7906
7907 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
d633dd84 7908 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
ceef6fd9 7909
ddbdd8a7
KT
79102013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7911
7912 * config/arm/arm.c (arm_expand_builtin): Change fcode
7913 type to unsigned int.
7914
8456d78a
RR
79152013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7916
7917 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
7918
526c230f
ILT
79192013-04-04 Ian Lance Taylor <iant@google.com>
7920
33159866
UB
7921 * doc/standards.texi (Standards): The Go frontend supports the Go 1
7922 language standard.
526c230f 7923
3cfbe04d
SB
79242013-04-04 Steven Bosscher <steven@gcc.gnu.org>
7925
7926 PR middle-end/56729
7927 * df-scan.c (df_insn_delete): Disable failing assert.
7928
dfa3f8d0
KT
79292013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7930
7931 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
7932 New function prototype.
7933 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
7934 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
7935 (arm_builtin_vectorized_function): New function.
7936
f7837758
KT
79372013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7938
7939 * config/arm/arm_neon_builtins.def: New file.
7940 * config/arm/arm.c (neon_builtin_data): Move contents to
7941 arm_neon_builtins.def.
7942 (enum arm_builtins): Include neon builtin definitions.
7943 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
33159866 7944 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
f7837758 7945
39c1b6db
MP
79462013-04-04 Marek Polacek <polacek@redhat.com>
7947
7948 PR tree-optimization/48186
7949 * predict.c (maybe_hot_frequency_p): Return false if
7950 HOT_BB_FREQUENCY_FRACTION is 0.
7951 (cgraph_maybe_hot_edge_p): Likewise.
7952
314f64eb
RB
79532013-04-04 Richard Biener <rguenther@suse.de>
7954
7955 PR tree-optimization/56826
7956 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
7957 more accurately.
7958
51a905b2
RB
79592013-04-04 Richard Biener <rguenther@suse.de>
7960
7961 PR tree-optimization/56213
7962 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
33159866 7963 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
51a905b2 7964
f1bf4f3a
RB
79652013-04-04 Richard Biener <rguenther@suse.de>
7966
7967 PR tree-optimization/56837
7968 * tree-loop-distribution.c (classify_partition): For non-zero
7969 values require that the value has the same precision as its
7970 mode to be useful as memset value.
7971
0bca7ded
NC
79722013-04-03 Nick Clifton <nickc@redhat.com>
7973
33159866 7974 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
0bca7ded
NC
7975 (fmssf4): Use fmsf.s on E3V5 architectures.
7976 (fnmasf4): Use fnmaf.s on E3V5 architectures.
7977 (fnmssf4): Use fnmsf.s on E3V5 architectures.
7978
b4019227
JL
79792013-04-03 Jeff Law <law@redhat.com>
7980
7981 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
7982 (lra-eliminations.o): Likewise.
7983
f57ddb5b
TJ
79842013-04-03 Teresa Johnson <tejohnson@google.com>
7985
7986 * gcov-io.c (compute_working_sets): Moved most of body of old
33159866 7987 compute_working_sets here from profile.c.
f57ddb5b 7988 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
33159866
UB
7989 (gcov_working_set_t): Moved typedef here from basic-block.h
7990 (compute_working_set): Declare.
f57ddb5b
TJ
7991 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
7992 (get_working_sets): Renamed from compute_working_set,
33159866 7993 replace most of body with call to new compute_working_sets.
f57ddb5b 7994 (get_exec_counts): Replace call to compute_working_sets
33159866
UB
7995 to get_working_sets.
7996 * profile.h (get_working_sets): Renamed from compute_working_set.
f57ddb5b 7997 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
33159866 7998 to get_working_sets.
f57ddb5b
TJ
7999 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
8000 * gcov-dump.c (dump_working_sets): New function.
8001
5e0919f1
KZ
80022013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
8003
8004 * hwint.c (sext_hwi, zext_hwi): New functions.
8005 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
8006 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
8007 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
8008 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
8009 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
8010 (sext_hwi, zext_hwi): New functions.
0bca7ded 8011
be672e08
JL
80122013-04-03 Jeff Law <law@redhat.com>
8013
8014 PR tree-optimization/56799
33159866
UB
8015 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
8016 back test for widening conversion erroneously dropped in prior change.
be672e08 8017
9d821fa5
KT
80182013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8019
8020 PR target/56809
8021 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
8022 instead of next_real_insn.
8023
71c581e7
MP
80242013-04-03 Marek Polacek <polacek@redhat.com>
8025
8026 PR sanitizer/55702
33159866 8027 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
71c581e7 8028
4a32ef80
KT
80292013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8030
8031 PR target/56809
8032 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
8033 next_real_insn.
8034 (thumb1_output_casesi): Likewise.
8035 (thumb2_output_casesi): Likewise.
8036
1b2253d4
RB
80372013-04-03 Richard Biener <rguenther@suse.de>
8038
8039 PR tree-optimization/56817
8040 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
8041 Split out ...
8042 (tree_unroll_loops_completely_1): ... new function to manually
8043 walk the loop tree, properly defering outer loops of unrolled
8044 loops to later iterations.
8045
38000232
MG
80462013-04-03 Marc Glisse <marc.glisse@inria.fr>
8047
8048 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
8049 (vectorizable_load): Likewise.
8050 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
8051 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
8052
3fa35298
MG
80532013-04-03 Marc Glisse <marc.glisse@inria.fr>
8054
8055 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
8056 BIT_FIELD_REF.
8057
b3d45ff0
UW
80582013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8059
8060 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
8061
ec9202a8
BC
80622013-04-03 Bin Cheng <bin.cheng@arm.com>
8063
8064 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
8065
6805bd36
MG
80662013-04-03 Marc Glisse <marc.glisse@inria.fr>
8067
8068 PR tree-optimization/56790
33159866
UB
8069 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
8070 folding.
6805bd36 8071
da694a77
MG
80722013-04-03 Marc Glisse <marc.glisse@inria.fr>
8073
8074 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
8075 Handle VEC_MERGE.
8076 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
8077 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
8078 equal arguments.
8079
4e7d7b3d
JJ
80802013-04-03 Jakub Jelinek <jakub@redhat.com>
8081
8082 PR c/19449
8083 * tree.h (force_folding_builtin_constant_p): New decl.
8084 * builtins.c (force_folding_builtin_constant_p): New variable.
8085 (fold_builtin_constant_p): Fold immediately also if
8086 force_folding_builtin_constant_p.
8087
e6c9d234
RB
80882013-04-03 Richard Biener <rguenther@suse.de>
8089
8090 PR tree-optimization/56812
8091 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
8092 DRs of the same interleaving chain are independent.
8093
984d07dd
JM
80942013-04-02 Jason Merrill <jason@redhat.com>
8095
8096 * gdbinit.in (pbb): Use debug fn.
8097
622849c9
LC
80982013-04-02 Lawrence Crowl <crowl@google.com>
8099
8100 * sese.h (struct ivtype_map_elt_s): Remove unused.
8101 (extern debug_ivtype_map): Remove unused.
8102 (extern eq_ivtype_map_elts): Remove unused.
8103 * sese.c (debug_ivtype_map): Removed unused.
8104 (debug_ivtype_map_1): Removed unused.
8105 (debug_ivtype_elt): Remove unused.
8106 (eq_ivtype_map_elts): Remove unused.
8107
8108
82c0e1a0
KT
81092013-04-02 Kai Tietz <ktietz@redhat.com>
8110
8111 PR target/52790
8112 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
8113 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
33159866
UB
8114 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
8115 function.
82c0e1a0
KT
8116 (legitimize_pe_coff_symbol): Likewise.
8117 (is_imported_p): New helper-function.
8118 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
8119 for Windows x64 targets.
8120 (ix86_expand_prologue): Optimize for pe-coff targets.
8121 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
8122 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
8123 medium/large code-model.
8124 (legitimize_pic_address): Likewise.
8125 (legitimize_tls_address): Likewise.
8126 (ix86_expand_call): Likewise.
8127 (x86_output_mi_thunk): Likewise.
8128 (get_dllimport_decl): Add new beimport argument.
8129 (construct_plt_address): Don't assert for x64 pe-coff targets.
8130 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
8131 targets.
8132 (SYMBOL_FLAG_STUBVAR): New macro.
8133 (SYMBOL_REF_STUBVAR_P): Likewise.
8134 * config/i386/winnt.c (stub_list): New structure.
8135 (stub_head): New local variable.
8136 (i386_pe_record_stub): New function.
8137 (i386_pe_file_end): Emit refptr-stubs.
8138
5d751b0c
JJ
81392013-04-02 Jakub Jelinek <jakub@redhat.com>
8140
09bb4c99
JJ
8141 PR rtl-optimization/56745
8142 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
8143 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
8144
a1d8947a
JJ
8145 PR c++/34949
8146 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
8147 and both of them are MEM_REFs, just compare first argument for
8148 equality and attempt to deal even with differing offsets.
8149
5d751b0c
JJ
8150 PR c++/34949
8151 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
8152 of gimple_clobber_p to be MEM_REF.
8153 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
8154 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
8155 after gimplification.
8156 * asan.c (get_mem_ref_of_assignment): Don't instrument
8157 gimple_clobber_p stmts.
8158 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
8159 gimple_clobber_p stmt if they have MEM_REF lhs and
8160 are dead because of another gimple_clobber_p stmt.
8161 * tree-ssa-live.c (clear_unused_block_pointer): Treat
8162 gimple_clobber_p stmts like debug stmts.
8163 (remove_unused_locals): Remove clobbers with MEM_REF lhs
8164 that refer to unused VAR_DECLs or uninitialized values.
8165 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
8166 gimple_clobber_p stmts if they refer to removed parameters.
8167 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
8168 formatting.
8169
e594716a
UB
81702013-04-02 Uros Bizjak <ubizjak@gmail.com>
8171
8172 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
8173 using SWI48 mode attribute.
8174
7a80735b
WM
81752013-04-02 Wei Mi <wmi@google.com>
8176
8177 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
8178 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
8179 *<rotate_insn><mode>3_mask in i386.md.
8180
f423a9e4
AI
81812013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
8182
8183 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
8184
90eb75f2
RB
81852013-04-02 Richard Biener <rguenther@suse.de>
8186
8187 PR tree-optimization/56778
8188 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
8189 Runtime alias tests are not supported for gather loads.
8190 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
8191 stmts referenced from SSA operands before updating SSA form.
8192
d8c69a92
IC
81932013-04-02 Ian Caulfield <ian.caulfield@arm.com>
8194 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8195
8196 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
e594716a
UB
8197 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
8198 * config/arm/cortex-a53.md: New file.
8199 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
8200 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
8201 * config/arm/arm.c (arm_issue_rate): Likewise.
8202 * config/arm/arm-tune.md: Regenerate
8203 * config/arm/arm-tables.opt: Regenerate.
8204 * config/arm/arm-cores.def: Add cortex-a53.
d8c69a92 8205
239eb04c
ZC
82062013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
8207
8208 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
8209 non-static link.
8210
c902d3c8
SN
82112013-04-02 Sofiane Naci <sofiane.naci@arm.com>
8212
d8c69a92
IC
8213 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
8214 scalar load/store operations using B/H registers.
c902d3c8
SN
8215 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
8216
051d0e2f
SN
82172013-04-02 Sofiane Naci <sofiane.naci@arm.com>
8218
8219 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
8220 scalar move.
8221 * config/aarch64/aarch64.c
8222 (aarch64_simd_scalar_immediate_valid_for_move): New.
8223 * config/aarch64/aarch64-protos.h
8224 (aarch64_simd_scalar_immediate_valid_for_move): New.
8225 * config/aarch64/constraints.md (Dh, Dq): New.
8226 * config/aarch64/iterators.md (hq): New.
8227
0ee1e3d9
EB
82282013-04-02 Eric Botcazou <ebotcazou@adacore.com>
8229
8230 * reorg.c (get_branch_condition): Deal with conditional returns.
8231 (fill_simple_delay_slots): Remove dead code dealing with jumps.
8232
136fb3f7
WM
82332013-04-01 Wei Mi <wmi@google.com>
8234
8235 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
8236 Truncate operand 2 using %b asm operand modifier.
8237 (*<shift_insn><mode>3_mask): Ditto.
8238 (*<rotate_insn><mode>3_mask): Ditto.
8239
6388c738
SB
82402013-04-01 Steven Bosscher <steven@gcc.gnu.org>
8241
8242 PR middle-end/56798
8243 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
8244
f7a4d826
KK
82452013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
8246
8247 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
8248 of next_real_insn.
8249 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
8250
4b943a49
LC
82512013-03-30 Lawrence Crowl <crowl@google.com>
8252
8253 * dse.c (clear_alias_sets): Remove never set.
8254 (disqualified_clear_alias_sets): Remove never set.
8255 (clear_alias_mode_pool): Remove never set.
8256 (dse_step0): Remove condition that is never true.
8257 (canon_address): Remove condition that is never true.
8258 (dse_step7): Remove condition that is never true.
8259 (rest_of_handle_dse): Remove condition that is never true.
8260 (rest_of_handle_dse::did_global): Remove never read from above.
8261 (dse_step2_spill): Remove never called from above.
8262 (dse_step5_spill): Remove never called from above.
8263
39718607
SB
82642013-03-30 Steven Bosscher <steven@gcc.gnu.org>
8265
da5c6bde
SB
8266 * doc/md.texi (Standard Names) <casesi>: Update documentation for
8267 JUMP_TABLE_DATA changes.
8268 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
8269 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
8270 (Insns) <jump_table_data>: New entry.
8271 * doc/tm.texi: Regenerate.
8272
39718607
SB
8273 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
8274
8275 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
8276 for table jump at the end of a basic block using tablejump_p.
8277 * targhooks.c (default_invalid_within_doloop): Likewise.
8278 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
8279 target hook implementation that is identical to the default hook.
8280 (rs6000_invalid_within_doloop): Remove.
8281
8282 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
8283 unused variable from tablejump_p call.
8284
8285 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
8286 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
8287 (INSN_DELETED_P): Likewise.
8288 (emit_jump_table_data): New prototype.
8289 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
8290 after 4th as unused.
8291 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
8292 * sched-vis.c (print_insn): Likewise.
8293 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
8294 insn for compatibility with back ends that use next_active_insn to
8295 identify jump table data.
8296 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
8297 (remove_insn): Likewise.
8298 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
8299 to be emitted.
8300 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
8301 (emit_jump_table_data): New function.
8302
8303 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
8304 basic block, a JUMP_TABLE_DATA never is.
8305 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
8306 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
8307 off from code handling real insns.
8308 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
8309 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
8310 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
8311 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
8312 is not a NONDEBUG_INSN_P.
8313 * ira-costs.c (scan_one_insn): Likewise.
8314 * jump.c (mark_all_labels): Likewise.
8315 (mark_jump_label_1): Likewise.
8316 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
8317 * lra.c (get_insn_freq): Expect all insns reaching here to be in
8318 a basic block.
8319 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
8320 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
8321 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
8322 JUMP_TABLE_DATA_P insns.
8323 (calculate_elim_costs_all_insns): Likewise.
8324 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
8325 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
8326 (delete_output_reload): Code style fixups.
8327 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
8328 insn flags on this non-insn.
8329 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
8330 as scheduling barriers, for pre-change compatibility.
8331 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
8332 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
8333
8334 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
8335 redundant JUMP_TABLE_DATA_P test.
8336 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
8337 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
8338 (frv_for_each_packet): Likewise.
8339 * config/i386/i386.c (min_insn_size): Likewise.
8340 (ix86_avoid_jump_mispredicts): Likewise.
8341 * config/m32r/m32r.c (m32r_is_insn): Likewise.
8342 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
8343 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
8344 (mips16_insn_length): Robustify.
8345 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
8346 (mips16_split_long_branches): Likewise.
8347 * config/pa/pa.c (pa_combine_instructions): Likewise.
8348 * config/rs6000/rs6000.c (get_next_active_insn): Treat
8349 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
8350 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
8351 as contributing to pool range lengths.
8352 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
8353 Remove redundant JUMP_TABLE_DATA_P test.
8354 (sh_loop_align): Likewise.
8355 (split_branches): Likewise.
8356 (sh_insn_length_adjustment): Likewise.
8357 * config/spu/spu.c (get_branch_target): Likewise.
8358
0208f7da
JH
83592013-03-29 Jan Hubicka <jh@suse.cz>
8360
8361 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
8362 gcov streaming; stream hot bb threshold to ltrans.
8363 * predict.c (get_hot_bb_threshold): Break out from ....
8364 (maybe_hot_count_p): ... here.
8365 (set_hot_bb_threshold): New function.
8366 * lto-section-in.c (lto_section_name): Add profile.
8367 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
8368 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
8369 and data-streamer.h
8370 (histogram_entry): New structure.
8371 (histogram, histogram_pool): New global vars.
8372 (histogram_hash): New structure.
8373 (histogram_hash::hash): New method.
8374 (histogram_hash::equal): Likewise.
8375 (account_time_size): New function.
8376 (cmp_counts): New function.
8377 (dump_histogram): New function.
8378 (ipa_profile_generate_summary): New function.
8379 (ipa_profile_write_summary): New function.
8380 (ipa_profile_read_summary): New function.
8381 (ipa_profile): Decide on threshold.
e594716a
UB
8382 (pass_ipa_profile): Add ipa_profile_write_summary and
8383 ipa_profile_read_summary.
0208f7da
JH
8384 * Makefile.in (ipa.o): Update dependencies.
8385 * lto-streamer.h (LTO_section_ipa_profile): New section.
8386
5a6ccc94
GDR
83872013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
8388
8389 * tree.h (VAR_P): New.
8390
39385fa6
PC
83912013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
8392
8393 PR lto/56777
8394 * doc/invoke.texi ([-fwhole-program]): Fix typo.
8395
34f0d87a
SB
83962013-03-29 Steven Bosscher <steven@gcc.gnu.org>
8397
8398 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
8399 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
8400 (control_flow_insn_p): Likewise.
8401 * cfgrtl.c (duplicate_insn_chain): Likewise.
8402 * final.c (get_attr_length_1): Likewise.
8403 (shorten_branches): Likewise.
8404 (final_scan_insn): Likewise.
8405 * function.c (instantiate_virtual_regs): Likewise.
8406 * gcse.c (insert_insn_end_basic_block): Likewise.
8407 * ira-costs.c (scan_one_insn): Likewise.
8408 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
8409 * lra.c (check_rtl): Likewise.
8410 * reload1.c (elimination_costs_in_insn): Likewise.
8411 * reorg.c (follow_jumps): Likewise.
8412
8413 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
8414 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
8415 (thumb_far_jump_used_p): Likewise.
8416 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
8417 (workaround_speculation): Likewise.
8418 (add_sched_insns_for_speculation): Likewise.
8419 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
8420 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
8421 (frv_for_each_packet): Likewise.
8422 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
8423 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
8424 (final_emit_insn_group_barriers): Likewise.
8425 * config/m32r/m32r.c (m32r_is_insn): Likewise.
8426 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
8427 (mips16_insn_length): Likewise.
8428 * config/pa/pa.c (pa_reorg): Likewise.
8429 (pa_combine_instructions): Likewise.
8430 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
8431 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
8432 (sh_reorg): Likewise.
8433 (split_branches): Likewise.
8434 * config/spu/spu.c (get_branch_target): Likewise.
8435
8436 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
8437 JUMP_TABLE_DATA_P.
8438
4ac761b0
KY
84392013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
8440
39385fa6 8441 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
4ac761b0
KY
8442 Fix declaration name.
8443
58a49189
LC
84442013-03-28 Lawrence Crowl <crowl@google.com>
8445
8446 * graphds.h (struct graph.indicies): Remove unused.
8447 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
8448 (SCOP_ORIGINAL_PDDRS): Remove unused.
8449 * sese.h (extern insert_loop_close_phis): Removed unused.
8450 (extern insert_guard_phis): Removed unused.
8451 (extern ivtype_map_elt_info): Removed unused.
8452 (new_ivtype_map_elt): Removed unused.
8453 * sese.c (ivtype_map_elt_info): Removed unused.
8454
7b3b6ae4
LC
84552013-03-28 Lawrence Crowl <crowl@google.com>
8456
8457 * Makefile.in: Add several missing include dependences.
8458 (DUMPFILE_H): New.
8459 (test-dump.o): New. This object is not added to any executable,
8460 but is present for ad-hoc testing.
8461 * bitmap.c
8462 (debug (const bitmap_head_def &)): New.
8463 (debug (const bitmap_head_def *)): New.
8464 * bitmap.h
8465 (extern debug (const bitmap_head_def &)): New.
8466 (extern debug (const bitmap_head_def *)): New.
8467 * cfg.c
8468 (debug (edge_def &)): New.
8469 (debug (edge_def *)): New.
8470 * cfghooks.c
8471 (debug (basic_block_def &)): New.
8472 (debug (basic_block_def *)): New.
8473 * dumpfile.h
8474 (dump_node (const_tree, int, FILE *)): Correct source file.
8475 * dwarf2out.c
8476 (debug (die_struct &)): New.
8477 (debug (die_struct *)): New.
8478 * dwarf2out.h
8479 (extern debug (die_struct &)): New.
8480 (extern debug (die_struct *)): New.
8481 * gimple-pretty-print.c
8482 (debug (gimple_statement_d &)): New.
8483 (debug (gimple_statement_d *)): New.
8484 * gimple-pretty-print.h
8485 (extern debug (gimple_statement_d &)): New.
8486 (extern debug (gimple_statement_d *)): New.
8487 * ira-build.c
8488 (debug (ira_allocno_copy &)): New.
8489 (debug (ira_allocno_copy *)): New.
8490 (debug (ira_allocno &)): New.
8491 (debug (ira_allocno *)): New.
8492 * ira-int.h
8493 (extern debug (ira_allocno_copy &)): New.
8494 (extern debug (ira_allocno_copy *)): New.
8495 (extern debug (ira_allocno &)): New.
8496 (extern debug (ira_allocno *)): New.
8497 * ira-lives.c
8498 (debug (live_range &)): New.
8499 (debug (live_range *)): New.
8500 * lra-int.h
8501 (debug (lra_live_range &)): New.
8502 (debug (lra_live_range *)): New.
8503 * lra-lives.c
8504 (debug (lra_live_range &)): New.
8505 (debug (lra_live_range *)): New.
8506 * omega.c
8507 (debug (omega_pb_d &)): New.
8508 (debug (omega_pb_d *)): New.
8509 * omega.h
8510 (extern debug (omega_pb_d &)): New.
8511 (extern debug (omega_pb_d *)): New.
8512 * print-rtl.c
8513 (debug (const rtx_def &)): New.
8514 (debug (const rtx_def *)): New.
8515 * print-tree.c
8516 (debug_tree (tree): Move within file.
8517 (debug_raw (const tree_node &)): New.
8518 (debug_raw (const tree_node *)): New.
8519 (dump_tree_via_hooks (const tree_node *, int)): New.
8520 (debug (const tree_node &)): New.
8521 (debug (const tree_node *)): New.
8522 (debug_verbose (const tree_node &)): New.
8523 (debug_verbose (const tree_node *)): New.
8524 (debug_head (const tree_node &)): New.
8525 (debug_head (const tree_node *)): New.
8526 (debug_body (const tree_node &)): New.
8527 (debug_body (const tree_node *)): New.
8528 (debug_vec_tree (tree): Move and reimplement in terms of dump.
8529 (debug (vec<tree, va_gc> &)): New.
8530 (debug (vec<tree, va_gc> *)): New.
8531 * rtl.h
8532 (extern debug (const rtx_def &)): New.
8533 (extern debug (const rtx_def *)): New.
8534 * sbitmap.c
8535 (debug_raw (simple_bitmap_def &)): New.
8536 (debug_raw (simple_bitmap_def *)): New.
8537 (debug (simple_bitmap_def &)): New.
8538 (debug (simple_bitmap_def *)): New.
8539 * sbitmap.h
8540 (extern debug (simple_bitmap_def &)): New.
8541 (extern debug (simple_bitmap_def *)): New.
8542 (extern debug_raw (simple_bitmap_def &)): New.
8543 (extern debug_raw (simple_bitmap_def *)): New.
8544 * sel-sched-dump.c
8545 (debug (vinsn_def &)): New.
8546 (debug (vinsn_def *)): New.
8547 (debug_verbose (vinsn_def &)): New.
8548 (debug_verbose (vinsn_def *)): New.
8549 (debug (expr_def &)): New.
8550 (debug (expr_def *)): New.
8551 (debug_verbose (expr_def &)): New.
8552 (debug_verbose (expr_def *)): New.
8553 (debug (vec<rtx> &)): New.
8554 (debug (vec<rtx> *)): New.
8555 * sel-sched-dump.h
8556 (extern debug (vinsn_def &)): New.
8557 (extern debug (vinsn_def *)): New.
8558 (extern debug_verbose (vinsn_def &)): New.
8559 (extern debug_verbose (vinsn_def *)): New.
8560 (extern debug (expr_def &)): New.
8561 (extern debug (expr_def *)): New.
8562 (extern debug_verbose (expr_def &)): New.
8563 (extern debug_verbose (expr_def *)): New.
8564 (extern debug (vec<rtx> &)): New.
8565 (extern debug (vec<rtx> *)): New.
8566 * sel-sched-ir.h
8567 (_list_iter_cond_expr): Make inline instead of static.
8568 * sreal.c
8569 (debug (sreal &)): New.
8570 (debug (sreal *)): New.
8571 * sreal.h
8572 (extern debug (sreal &)): New.
8573 (extern debug (sreal *)): New.
8574 * tree.h
8575 (extern debug_raw (const tree_node &)): New.
8576 (extern debug_raw (const tree_node *)): New.
8577 (extern debug (const tree_node &)): New.
8578 (extern debug (const tree_node *)): New.
8579 (extern debug_verbose (const tree_node &)): New.
8580 (extern debug_verbose (const tree_node *)): New.
8581 (extern debug_head (const tree_node &)): New.
8582 (extern debug_head (const tree_node *)): New.
8583 (extern debug_body (const tree_node &)): New.
8584 (extern debug_body (const tree_node *)): New.
8585 (extern debug (vec<tree, va_gc> &)): New.
8586 (extern debug (vec<tree, va_gc> *)): New.
8587 * tree-cfg.c
8588 (debug (struct loop &)): New.
8589 (debug (struct loop *)): New.
8590 (debug_verbose (struct loop &)): New.
8591 (debug_verbose (struct loop *)): New.
8592 * tree-dump.c: Add header dependence.
8593 * tree-flow.h
8594 (extern debug (struct loop &)): New.
8595 (extern debug (struct loop *)): New.
8596 (extern debug_verbose (struct loop &)): New.
8597 (extern debug_verbose (struct loop *)): New.
8598 * tree-data-ref.c
8599 (debug (data_reference &)): New.
8600 (debug (data_reference *)): New.
8601 (debug (vec<data_reference_p> &)): New.
8602 (debug (vec<data_reference_p> *)): New.
8603 (debug (vec<ddr_p> &)): New.
8604 (debug (vec<ddr_p> *)): New.
8605 * tree-data-ref.h
8606 (extern debug (data_reference &)): New.
8607 (extern debug (data_reference *)): New.
8608 (extern debug (vec<data_reference_p> &)): New.
8609 (extern debug (vec<data_reference_p> *)): New.
8610 (extern debug (vec<ddr_p> &)): New.
8611 (extern debug (vec<ddr_p> *)): New.
8612 * tree-ssa-alias.c
8613 (debug (pt_solution &)): New.
8614 (debug (pt_solution *)): New.
8615 * tree-ssa-alias.h
8616 (extern debug (pt_solution &)): New.
8617 (extern debug (pt_solution *)): New.
8618 * tree-ssa-alias.c
8619 (debug (_var_map &)): New.
8620 (debug (_var_map *)): New.
8621 (debug (tree_live_info_d &)): New.
8622 (debug (tree_live_info_d *)): New.
8623 * tree-ssa-alias.h
8624 (extern debug (_var_map &)): New.
8625 (extern debug (_var_map *)): New.
8626 (extern debug (tree_live_info_d &)): New.
8627 (extern debug (tree_live_info_d *)): New.
8628
be77e1e5
JH
86292013-03-28 Jan Hubicka <jh@suse.cz>
8630
8631 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
8632
777e6976
IB
86332013-03-28 Ian Bolton <ian.bolton@arm.com>
8634
8635 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
8636 record only when desired or required.
8637
9cd347ae
UB
86382013-03-28 Uros Bizjak <ubizjak@gmail.com>
8639
8640 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
8641 *vec_extractv2di_1_rex64. Use x64 isa attribute.
8642
33159866 86432013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2a1d1991
N
8644
8645 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
8646 (*andsi3_compare0_uxtw): New pattern.
8647 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
8648 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
8649
89ab31c1
JH
86502013-03-28 Jan Hubicka <jh@suse.cz>
8651
8652 * data-streamer-in.c (streamer_read_gcov_count): New function.
8653 * gimple-streamer-out.c: Include value-prof.h.
8654 (output_gimple_stmt): Output histogram.
8655 (output_bb): Use streamer_write_gcov_count.
8656 * value-prof.c: Include data-streamer.h
8657 (dump_histogram_value): Add HIST_TYPE_MAX.
8658 (stream_out_histogram_value): New function.
8659 (stream_in_histogram_value): New function.
8660 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
8661 (stream_out_histogram_value, stream_in_histogram_value): Declare.
8662 * data-streamer-out.c (streamer_write_gcov_count): New function.
8663 (streamer_write_gcov_count_stream): New function.
8664 * lto-cgraph.c (lto_output_edge): Update counter streaming.
8665 (lto_output_node): Likewise.
8666 (input_node, input_edge): Likewise.
8667 * lto-streamer-out.c (output_cfg): Update streaming.
8668 * lto-streamer-in.c (input_cfg): Likewise.
8669 * data-streamer.h (streamer_write_gcov_count,
8670 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
8671 * gimple-streamer-in.c: Include value-prof.h
8672 (input_gimple_stmt): Input histograms.
8673 (input_bb): Update profile streaming.
8674
e594716a 86752013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
b4c73eed 8676
33159866 8677 * genmodes.c (emit_max_int): New function.
8697be17 8678 (emit_insn_modes_h): Added call to emit_max_function.
39385fa6
PC
8679 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
8680 Added doc.
8697be17 8681 * machmode.def: Fixed comment.
89ab31c1 8682
e594716a 86832013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8697be17
KZ
8684
8685 * combine.c (try_combine): Removed useless assert.
b4c73eed
KZ
8686 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
8687
74946978
MP
86882013-03-28 Marek Polacek <polacek@redhat.com>
8689 Richard Biener <rguenther@suse.de>
8690
8691 PR tree-optimization/56695
8692 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
8693 build signed result of a vector comparison.
8694 * tree-cfg.c (verify_gimple_comparison): Check that a result
8695 of a vector comparison has signed type.
8696
a64b9c26
RB
86972013-03-28 Richard Biener <rguenther@suse.de>
8698
8699 PR tree-optimization/37021
8700 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
8701 do not restrict gaps between groups.
8702 * tree-vect-stmts.c (vectorizable_load): Properly account for
8703 a gap between groups.
8704
a9dc2a2f
EB
87052013-03-28 Eric Botcazou <ebotcazou@adacore.com>
8706
8707 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
8708 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
8709 is not enabled.
8710
53cb97f9
GP
87112013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
8712
8713 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
8714 * doc/extend.texi (Named Address Spaces): Ditto.
8715 (Variable Attributes): Ditto.
8716
b802ae5c
KT
87172013-03-27 Kai Tietz <ktietz@redhat.com>
8718
eddae10a
KT
8719 * config.build: Add support for cygwin x64 target.
8720 * config.gcc: Likewise.
8721 * config.host: Likewise.
8722 * configure.ac: Likewise
8723 * configure: Regenerated.
b802ae5c 8724
8269de54
KT
87252013-03-27 Kai Tietz <ktietz@redhat.com>
8726
8727 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
8728 * config/i386/t-cygwin-w64: New file.
8729 * config/i386/cygwin-w64.h: New file.
8730 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
8731 and add support for x64-cygwin target.
8732 (CPP_SPEC): Likewise.
8733 (CXX_WRAP_SPEC_LIST): Undefine before define.
8734 (LIBGCJ_SONAME): Use 15 as version.
8735
f49b33cb
RB
87362013-03-27 Richard Biener <rguenther@suse.de>
8737
8738 PR tree-optimization/56716
8739 * tree-ssa-structalias.c (perform_var_substitution): Adjust
8740 dumping for ref nodes.
8741
b37a6ce5
MJ
87422013-03-27 Martin Jambor <mjambor@suse.cz>
8743
8744 PR tree-optimization/55334
8745 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
8746 restricted pointers to arrays.
8747
9469b9b2
GDR
87482013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
8749
8750 * Makefile.in (.SUFFIXES): Add .cc.
8751 (.c.o): Apply same recipe for implicit rule .cc.o.
8752
7d24f650
RB
87532013-03-27 Richard Biener <rguenther@suse.de>
8754
8755 PR tree-optimization/37021
8756 * tree-vect-data-refs.c (vect_check_strided_load): Allow
8757 REALPART/IMAGPART_EXPRs around the supported refs.
8758 * tree-ssa-structalias.c (find_func_aliases): Assume that
8759 floating-point values are not used to transfer pointers.
8760
2f251a05
AI
87612013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
8762
39385fa6
PC
8763 * target.def (TARGET_HAS_IFUNC_P): New target hook.
8764 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
8765 * doc/tm.texi: Regenerate.
8766 * targhooks.h (default_has_ifunc_p): New.
8767 * targhooks.c (default_has_ifunc_p): Ditto.
8768 * config/linux-protos.h: New file.
8769 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
2f251a05
AI
8770 this hook for linux which disables support of indirect functions in
8771 android.
39385fa6
PC
8772 * config/linux-android.c: New file.
8773 * config/t-linux-android.c: Ditto.
8774 * config.gcc: Added new object file linux-android.o.
8775 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
2f251a05 8776 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
39385fa6 8777 * varasm.c (do_assemble_alias): Likewise.
2f251a05
AI
8778 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
8779 doesn't support indirect functions.
8780 * configure: Regenerate.
8781
78b4e425
BC
87822013-03-27 Bin Cheng <bin.cheng@arm.com>
8783
8784 PR target/56102
8785 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
8786 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
8787 mult-word mode.
8788
a5ba7b92
AK
87892013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8790
8791 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
8792
be624986
TG
87932013-03-27 Terry Guo <terry.guo@arm.com>
8794
8795 * config/arm/arm-cores.def: Added core cortex-r7.
8796 * config/arm/arm-tune.md: Regenerated.
8797 * config/arm/arm-tables.opt: Regenerated.
8798 * doc/invoke.texi: Added entry for core cortex-r7.
8799
0a514f47
WL
88002013-03-27 Walter Lee <walt@tilera.com>
8801
8802 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
8803 double-decrement of next_scratch_regno.
8804
9332b0d2
WL
88052013-03-27 Walter Lee <walt@tilera.com>
8806
801d9b2a 8807 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
9332b0d2
WL
8808 input operands.
8809 (insn_v1mulus): Ditto.
8810 (insn_v2muls): Ditto.
8811
f54ea5dd
WL
88122013-03-27 Walter Lee <walt@tilera.com>
8813
e594716a 8814 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
f54ea5dd
WL
8815 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
8816
bf60f4ca
WL
88172013-03-27 Walter Lee <walt@tilera.com>
8818
e594716a 8819 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
bf60f4ca
WL
8820 (*sibcall_value): Ditto.
8821
e3b51eeb
WL
88222013-03-27 Walter Lee <walt@tilera.com>
8823
8824 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
8825 (insn_mnz_v8qi): ... this ...
8826 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
8827 vector equivalent.
8828 (insn_v<n>mnz): Replaced by ...
8829 (insn_v1mnz): ... this ...
8830 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
8831 equivalent.
8832 (insn_mz_<mode>): Replaced by ...
8833 (insn_mz_v8qi): ... this ...
8834 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
8835 vector equivalent.
8836 (insn_v<n>mz): Replaced by ...
8837 (insn_v1mz): ... this ...
8838 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
8839 equivalent.
8840
4fc7b145
EB
88412013-03-26 Eric Botcazou <ebotcazou@adacore.com>
8842
8843 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
8844
6f33817e
RM
88452013-03-26 Roland McGrath <mcgrathr@google.com>
8846
8847 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
8848 than fprintf with a non-constant, non-format string.
8849
93a4145b
UB
88502013-03-26 Uros Bizjak <ubizjak@gmail.com>
8851
8852 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
8853 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
8854 operand 0 predicate.
8855 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
8856 attribute. Use general_x64nomem_operand as operand 1 predicate.
8857 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
8858 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
8859 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
8860 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
8861 (mov<mode>_insv_1): Remove expander. Merge insn with
8862 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
8863 Use general_x64nomem_operand as operand 1 predicate.
8864 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
8865 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
8866 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
8867 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
8868 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
8869 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
8870 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
8871 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
8872 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
8873 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
8874 (general_x64nomem_operand): Ditto.
8875
c6a9ed5a 88762013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
df599020
SH
8877
8878 * config/rtems.opt: Add -pthread option.
8879
31b0a960
RB
88802013-03-26 Richard Biener <rguenther@suse.de>
8881
93a4145b
UB
8882 * alias.c (find_base_term): Avoid redundant and not used recursion.
8883 (base_alias_check): Get the initial base term from the caller.
31b0a960
RB
8884 (true_dependence_1): Compute and pass base terms to base_alias_check.
8885 (write_dependence_p): Likewise.
8886 (may_alias_p): Likewise.
8887
79517551
SN
88882013-03-26 Sofiane Naci <sofiane.naci@arm.com>
8889
8890 * config/aarch64/aarch64.c (aarch64_classify_address): Support
8891 PC-relative load in SI modes and above only.
8892
a76213b9
XQ
88932013-03-26 Xinyu Qi <xyqi@marvell.com>
8894
8895 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
33159866
UB
8896 * config/arm/iwmmxt.md (WCGR0): Update.
8897 (WCGR1, WCGR2, WCGR3): Likewise.
a76213b9 8898
37ff9355
UB
88992013-03-26 Uros Bizjak <ubizjak@gmail.com>
8900
8901 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
8902 Use x64 and nox64 isa attributes.
8903
30b0317c
RB
89042013-03-26 Richard Biener <rguenther@suse.de>
8905
8906 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
8907 alignment computations and rely on get_object_alignment_1
8908 for the !TYPE_P case.
8909 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
8910
cbcdb140
WL
89112013-03-26 Walter Lee <walt@tilera.com>
8912
8913 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
8914 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
8915
dd884525 89162013-03-25 Jeff Law <law@redhat.com>
be672e08 8917
33159866
UB
8918 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
8919 check for INTEGRAL_TYPE_P that was missing due to checking in
dd884525
JL
8920 wrong version of prior patch.
8921
0051d3ec
WL
89222013-03-25 Walter Lee <walt@tilera.com>
8923
8924 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
8925 TILEGX_INSN_SHUFFLEBYTES1.
8926 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
8927 shufflebytes1.
8928 (tilegx_builtins): Ditto.
8929 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
8930
065a3605
WL
89312013-03-25 Walter Lee <walt@tilera.com>
8932
8933 * config/tilegx/tilegx.md (floatsisf2): New pattern.
0051d3ec
WL
8934 (floatunssisf2): New pattern.
8935 (floatsidf2): New pattern.
8936 (floatunssidf2): New pattern.
065a3605 8937
5b2a3c82
WL
89382013-03-25 Walter Lee <walt@tilera.com>
8939
8940 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
8941 tests for constraint J, K, N, P.
8942
192ea533
WL
89432013-03-25 Walter Lee <walt@tilera.com>
8944
8945 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
8946 Use indirect/pcrel encoding.
8947 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
8948 Ditto.
8949
855e0d0b
SE
89502013-03-25 Steve Ellcey <sellcey@mips.com>
8951
8952 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
8953 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
8954 * config/mips/mips.c (mips_option_override): Set IMADD default.
8955 * config/mips/mips.h (PTF_AVOID_IMADD): New.
8956 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
8957 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
8958 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
8959 * doc/invoke.texi (-mimadd/-mno-imadd): New.
8960
39e45653
JL
89612013-03-25 Jeff Law <law@redhat.com>
8962
8963 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
8964 slightly to avoid creating and folding useless trees. Simplify
8965 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
8966
7482c470
UB
89672013-03-25 Uros Bizjak <ubizjak@gmail.com>
8968
8969 * config/i386/i386.md (*zero_extendsidi2): Merge with
8970 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
8971 * config/i386/predicates.md (x86_64_zext_operand): Rename from
8972 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
8973 targets. Clarify comment.
8974
4a53743e
MJ
89752013-03-25 Martin Jambor <mjambor@suse.cz>
8976
8977 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
8978 pass-through jump functions differently.
8979 (ipa_read_jump_function): Likewise. Also use setter functions to set
8980 up jump functions.
8981
162712de
MJ
89822013-03-25 Martin Jambor <mjambor@suse.cz>
8983
8984 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
8985 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
8986 process it.
8987 (ipa_get_indirect_edge_target): New function.
8988 (devirtualization_time_bonus): New parameter known_aggs, pass it to
8989 ipa_get_indirect_edge_target. Update all callers.
8990 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
8991 ipa_get_indirect_edge_target_1 instead of calling
8992 ipa_get_indirect_edge_target.
8993 (create_specialized_node): Pass aggvlas to
8994 ipcp_discover_new_direct_edges.
8995
a5a4c20a
KT
89962013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8997
8998 * config/arm/arm.md (f_sels, f_seld): New types.
8999 (*cmov<mode>): New pattern.
9000 * config/arm/predicates.md (arm_vsel_comparison_operator): New
9001 predicate.
9002
f992b9fc
KT
90032013-03-25 Kai Tietz <ktietz@redhat.com>
9004
9005 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
9006 POSIX-printf for mingw-hosted builds.
9007
c16fd676
RB
90082013-03-25 Richard Biener <rguenther@suse.de>
9009
9010 PR middle-end/56694
9011 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
9012 must-not-throw stmt location.
9013
5ad29f12
KT
90142013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9015
9016 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
9017 Emit load-acquire versions when acq is true.
9018 (arm_emit_store_exclusive): Add rel parameter.
9019 Emit store-release versions when rel is true.
9020 (arm_split_compare_and_swap): Use acquire-release instructions
9021 instead.
9022 of barriers when appropriate.
9023 (arm_split_atomic_op): Likewise.
9024 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
9025 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
9026 (VUNSPEC_SLX): Likewise.
9027 (VUNSPEC_LDA): Likewise.
9028 (VUNSPEC_STL): Likewise.
9029 * config/arm/sync.md (atomic_load<mode>): New pattern.
9030 (atomic_store<mode>): Likewise.
9031 (arm_load_acquire_exclusive<mode>): Likewise.
9032 (arm_load_acquire_exclusivesi): Likewise.
9033 (arm_load_acquire_exclusivedi): Likewise.
9034 (arm_store_release_exclusive<mode>): Likewise.
9035
03a7dddb
CM
90362013-03-25 Catherine Moore <clm@codesourcery.com>
9037
9038 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
9039 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
9040 * config/mip/predicates.md (lwsp_swsp_operand,
9041 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
9042 sb16_operand, db4_operand, db7_operand, ib3_operand,
9043 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
9044 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
9045 andi16_operand): New predicates.
9046 * config/mips/mips.md (compression): New attribute.
9047 (enabled): New attribute.
9048 (length): Consider compression in computing length.
9049 (shift_compression): New code attribute.
9050 (*add<mode>3): New operands. Record compression.
9051 (sub<mode>3): Likewise.
9052 (one_cmpl<mode>2): Likewise.
9053 (*and<mode>3): Likewise.
9054 (*ior<mode>3): Likewise.
9055 (unnamed pattern for xor): Likewise.
9056 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
9057 (*<optab><mode>3): Likewise.
9058 (*mov<mode>_internal: Likewise.
9059 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
9060 (mips_unsigned_immediate_p): New.
9061 (umips_lwsp_swsp_address_p): New.
9062 (m16_based_address_p): New.
9063 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
9064 (mips_unsigned_immediate_p): New prototype.
9065 (lwsp_swsp_address_p): New prototype.
9066 (m16_based_address_p): New prototype.
9067 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
9068 (mips_signed_immediate_p): New function.
9069 (m16_based_address_p): New function.
9070 (lwsp_swsp_address_p): New function.
9071 (mips_print_operand_punctuation): Recognize short delay slot insns
9072 for microMIPS.add<mode>3"
9073
f35c297f 90742013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
a5784ce6 9075
f35c297f
KT
9076 PR target/56720
9077 * config/arm/iterators.md (v_cmp_result): New mode attribute.
9078 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
9079
051b9446
RB
90802013-03-25 Richard Biener <rguenther@suse.de>
9081
9082 PR tree-optimization/56689
9083 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
9084 any edge.
9085
374001cb
RB
90862013-03-25 Richard Biener <rguenther@suse.de>
9087
9088 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
9089 of bitmap.
9090 (memory_references): Likewise.
9091 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
9092 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
9093 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
9094 (gather_mem_refs_in_loops): Fold into ...
9095 (analyze_memory_references): ... this. Move initialization
9096 to tree_ssa_lim_initialize.
9097 (fill_always_executed_in): Rename to ...
9098 (fill_always_executed_in_1): ... this.
9099 (fill_always_executed_in): Move contains_call computation to
9100 this new function from ...
9101 (tree_ssa_lim_initialize): ... here.
9102 (tree_ssa_lim): Call fill_always_executed_in.
9103
57895947
EB
91042013-03-25 Eric Botcazou <ebotcazou@adacore.com>
9105
9106 * postreload.c (reload_combine): Fix code detecting returns.
9107
1e1b18c1
EB
91082013-03-25 Eric Botcazou <ebotcazou@adacore.com>
9109
9110 * function.c (emit_use_return_register_into_block): On cc0 targets,
9111 do not emit the sequence between cc0 setter and user.
9112
9216baf1
KT
91132013-03-25 Kai Tietz <ktietz@redhat.com>
9114
1e1b18c1
EB
9115 * config/i386/predicates.md (local_symbolic_operand): Interpret
9116 dll-imported symbols as none-local.
9216baf1 9117
76421b44
RB
91182013-03-25 Richard Biener <rguenther@suse.de>
9119
9120 * tree-ssa-loop-im.c (struct depend): Remove.
9121 (struct lim_aux_data): Make depends a vec of gimples.
9122 (free_lim_aux_data): Adjust.
9123 (add_dependency): Likewise.
9124 (set_level): Likewise.
9125
d154bfa2
RB
91262013-03-25 Richard Biener <rguenther@suse.de>
9127
9128 PR middle-end/56434
9129 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
9130 the pointer returned by calls with ECF_MALLOC set.
9131
2cd9804e
UB
91322013-03-24 Uros Bizjak <ubizjak@gmail.com>
9133
acef5fe0
UB
9134 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
9135
91362013-03-24 Uros Bizjak <ubizjak@gmail.com>
9137
9138 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
2cd9804e
UB
9139 using MMXMODE mode iterator.
9140 (*move<mode>_internal): Merge with *movv2sf_internal and
9141 *movv2sf_internal_rex64 using MMXMODE mode iterator.
9142
225ccc68
SB
91432013-03-23 Steven Bosscher <steven@gcc.gnu.org>
9144
85c0f02d
SB
9145 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
9146 (record_last_mem_set_info): Likewise.
9147
225ccc68
SB
9148 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
9149 of XNEWVEC followed by memset.
9150 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
9151
b64925dc
SB
91522013-03-23 Steven Bosscher <steven@gcc.gnu.org>
9153
9154 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
9155 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
9156 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
9157 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
9158 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
9159 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
9160 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
9161 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
9162 BARRIER_P instead of GET_CODE.
9163
b9aaf52e
EB
91642013-03-23 Eric Botcazou <ebotcazou@adacore.com>
9165
9166 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
9167 inaccuracy in the probing code.
9168
9169 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
9170 (ctrapdi4): Likewise.
9171
66de4d7c
EB
91722013-03-23 Eric Botcazou <ebotcazou@adacore.com>
9173
9174 * calls.c (expand_call): Add missing guard to code handling return
9175 of non-BLKmode structures in MSB.
9176 * function.c (expand_function_end): Likewise.
9177
4f25c8fb
EB
91782013-03-23 Eric Botcazou <ebotcazou@adacore.com>
9179
9180 * combine.c (try_combine): Adjust comment. Do not add the set of
9181 insn #0 if the destination indirectly is set or dies in insn #2.
9182 Tidy up code to distribute a new note.
9183
23b7850d
UB
91842013-03-22 Uros Bizjak <ubizjak@gmail.com>
9185
9186 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
9187 also for alternatives 16 and 17.
9188
bed852cf
UB
91892013-03-22 Uros Bizjak <ubizjak@gmail.com>
9190
9191 * config/i386/sse.md (*mov<mode>_internal): Merge with
9192 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
9193 Emit insn template depending on type attribute. Use
9194 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
9195 movd instead of movq mnemonic for interunit moves. Rewrite mode
9196 attribute calculation. Remove unit attribute calculation.
9197 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
9198 Set prefix_data16 attribute for DImode ssemov types.
9199 Use Ym instead of y for SSE-MMX conversion alternatives.
9200 Reorder operand constraints.
9201
1e8a7937
SB
92022013-03-22 Steven Bosscher <steven@gcc.gnu.org>
9203
9204 * df.h (df_insn_delete): Adjust prototype.
9205 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
9206 and let it decide whether mark the basic block dirty.
9207 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
9208 * df-scan.c (df_insn_info_delete): New helper function, split
9209 off from df_insn_delete.
9210 (df_scan_free_bb_info): Use it.
9211 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
9212 Likewise.
9213 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
9214 that the insn is actually an insn and it has a non-NULL basic block.
9215 Do not mark basic block dirty if only deleting a DEBUG_INSN.
9216
e14d094c
RB
92172013-03-22 Richard Biener <rguenther@suse.de>
9218
9219 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
9220 dep_ref members.
9221 (mem_ref_alloc): Do not allocate them.
9222 (refs_independent_p): Do not query or maintain a cache.
9223
e9cf7316
RB
92242013-03-22 Richard Biener <rguenther@suse.de>
9225
9226 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
9227 (gather_mem_refs_in_loops): Do not compute it.
9228 (analyze_memory_references): Do not allocate it.
9229 (tree_ssa_lim_finalize): Do not free it.
9230 (for_all_locs_in_loop): Do not query all_refs_in_loop.
9231
f046e81b
RB
92322013-03-22 Richard Biener <rguenther@suse.de>
9233
9234 * is-a.h (as_a): Use gcc_checking_assert.
bed852cf 9235
a05c0ddf
IB
92362013-03-22 Ian Bolton <ian.bolton@arm.com>
9237
9238 * config/aarch64/aarch64.c (aarch64_print_operand): New
9239 format specifier for printing a constant in hex.
9240 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
9241 format specifier for printing second operand.
9242
c00217fc
RB
92432013-03-22 Richard Biener <rguenther@suse.de>
9244
9245 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
9246 bitmaps.
9247 (gather_mem_refs_in_loops): Perform store accumulation here.
9248 (create_vop_ref_mapping_loop): Remove.
9249 (create_vop_ref_mapping): Likewise.
9250 (analyze_memory_references): Initialize refs_stored_in_loop.
bed852cf 9251 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
c00217fc
RB
9252 (record_indep_loop): Remove.
9253 (record_dep_loop): New function.
9254 (ref_indep_loop_p_1): Adjust to only walk over references
9255 in the loop, not its subloops.
9256 (ref_indep_loop_p): Rename to ...
9257 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
9258 maintaining a more fine-grained cache.
9259 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
9260 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
9261
15d19bf8
RB
92622013-03-22 Richard Biener <rguenther@suse.de>
9263
9264 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
9265 (struct mem_ref): Make accesses_in_loop a vec of a vec of
9266 aggregate mem_ref_loc.
9267 (free_mem_ref_locs): Inline into ...
9268 (memref_free): ... this and adjust.
9269 (mem_ref_alloc): Adjust.
9270 (mem_ref_locs_alloc): Remove.
9271 (record_mem_ref_loc): Adjust.
9272 (get_all_locs_in_loop): Rewrite into ...
9273 (for_all_locs_in_loop): ... this iterator.
9274 (rewrite_mem_ref_loc): New functor.
9275 (rewrite_mem_refs): Use for_all_locs_in_loop.
9276 (sm_set_flag_if_changed): New functor.
9277 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
9278 (ref_always_accessed): New functor.
9279 (ref_always_accessed_p): Use for_all_locs_in_loop.
9280
6f37411d
MG
92812013-03-21 Marc Glisse <marc.glisse@inria.fr>
9282
9283 * tree-pass.h (PROP_gimple_lvec): New.
9284 * passes.c (dump_properties): Handle PROP_gimple_lvec.
9285 (init_optimization_passes): Move pass_lower_vector.
9286 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
9287 PROP_gimple_lvec.
9288 (pass_lower_vector): Provide PROP_gimple_lvec.
9289 (pass_lower_vector_ssa): Likewise.
9290 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
9291
511ef689
MW
92922013-03-21 Mark Wielaard <mjw@redhat.com>
9293
9294 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
9295
cc1df30b
UB
92962013-03-21 Uros Bizjak <ubizjak@gmail.com>
9297
9298 * config/i386/i386.md (*movdi_internal): Disparage slightly
9299 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
9300 conversion alternatives.
9301
c845cfe1
JJ
93022013-03-21 Jakub Jelinek <jakub@redhat.com>
9303
37e99116
JJ
9304 PR middle-end/48087
9305 * diagnostic.def (DK_WERROR): New kind.
9306 * diagnostic.h (werrorcount): Define.
9307 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
9308 promoted to DK_ERROR, increment DK_WERROR counter instead of
9309 DK_ERROR counter.
9310 * toplev.c (toplev_main): Call print_ignored_options even if
9311 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
9312 even if just werrorcount is non-zero.
9313
c845cfe1
JJ
9314 PR debug/55608
9315 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
9316 on failure.
9317 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
9318 (string_cst_pool_decl): New function.
9319 (optimize_one_addr_into_implicit_ptr): New function.
9320 (resolve_addr_in_expr): Optimize DWARF location expression
9321 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
9322 which doesn't live in memory, but has DW_AT_location or
9323 DW_AT_const_value, or refers to a string literal, into
9324 DW_OP_GNU_implicit_pointer.
9325 (optimize_location_into_implicit_ptr): New function.
9326 (resolve_addr): If removing DW_AT_location of a variable because
9327 it was DW_OP_addr of address of the variable, but the variable doesn't
9328 live in memory, try to emit const value attribute for the initializer.
9329
08e0cda6
MG
93302013-03-21 Marc Glisse <marc.glisse@inria.fr>
9331
9332 * tree.h (VECTOR_TYPE_P): New macro.
9333 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
9334 TYPE_MODE): Use it.
9335 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
9336 VEC_COND_EXPR cannot be lvalues.
9337 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
9338
d08633b4
MG
93392013-03-21 Marc Glisse <marc.glisse@inria.fr>
9340
9341 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
9342 Restrict the transformation to equal modes.
9343
e6647190
RB
93442013-03-21 Richard Biener <rguenther@suse.de>
9345
9346 PR tree-optimization/39326
9347 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
9348 (MEM_ANALYZABLE): Adjust.
9349 (record_mem_ref_loc): Move bitmap ops ...
9350 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
9351 unanalyzable refs, do not record locations for it.
9352 (analyze_memory_references): Allocate ref zero as shared
9353 unanalyzable ref.
9354 (refs_independent_p): Do not test for unanalyzed mems here.
9355 (ref_indep_loop_p_1): Special-case disambiguation against
9356 the unanalyzed ref.
cc1df30b 9357 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
e6647190 9358
65074f54
CL
93592013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
9360
9361 * config/arm/arm-protos.h (tune_params): Add
9362 prefer_neon_for_64bits field.
9363 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
9364 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
9365 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
9366 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
9367 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
9368 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
9369 (arm_option_override): Handle -mneon-for-64bits new option.
9370 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
9371 (prefer_neon_for_64bits): Declare new variable.
9372 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
cc1df30b 9373 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
65074f54
CL
9374 (arch_enabled): Handle new arch types. Remove support for onlya8
9375 and nota8.
9376 (one_cmpldi2): Use new arch names.
bc5faa5b 9377 (zero_extend<mode>di2, extend<mode>di2): Ditto.
65074f54
CL
9378 * config/arm/arm.opt (mneon-for-64bits): Add option.
9379 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
9380 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
9381 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
9382 of onlya8.
9383 * doc/invoke.texi (-mneon-for-64bits): Document.
9384
5a2d2a79
RB
93852013-03-21 Richard Biener <rguenther@suse.de>
9386
9387 PR tree-optimization/39326
9388 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
9389 (sort_bbs_in_loop_postorder_cmp): New function.
cc1df30b 9390 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
5a2d2a79 9391
5abe1e05
RB
93922013-03-21 Richard Biener <rguenther@suse.de>
9393
9394 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
9395 (vect_insert_into_interleaving_chain): Likewise.
9396 (vect_drs_dependent_in_basic_block): Inline ...
9397 (vect_slp_analyze_data_ref_dependence): ... here. New function,
9398 split out from ...
9399 (vect_analyze_data_ref_dependence): ... here. Simplify.
9400 (vect_check_interleaving): Simplify.
9401 (vect_analyze_data_ref_dependences): Likewise. Split out ...
9402 (vect_slp_analyze_data_ref_dependences): ... this new function.
9403 (dr_group_sort_cmp): New function.
9404 (vect_analyze_data_ref_accesses): Compute data-reference groups
9405 here instead of in vect_analyze_data_ref_dependence. Use
9406 a more efficient algorithm.
9407 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
9408 vect_slp_analyze_data_ref_dependences. Call
9409 vect_analyze_data_ref_accesses earlier.
9410 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
9411 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
9412 (vect_slp_analyze_data_ref_dependences): New prototype.
9413
cad1735b
RB
94142013-03-21 Richard Biener <rguenther@suse.de>
9415
9416 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
9417 ref is stored in the loop.
9418 (find_refs_for_sm): Walk only over all stores.
9419 (store_motion_loop): Allocate from lim_bitmap_obstack.
9420 (store_motion): Likewise.
9421
141310ef
RB
94222013-03-21 Richard Biener <rguenther@suse.de>
9423
9424 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
9425 Update virtual SSA form.
9426
5022315a
RO
94272013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9428
9429 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
9430 * configure: Regenerate.
9431 * config.in: Regenerate.
9432 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
9433 if !HAVE_LD_EH_FRAME_CIEV3.
9434
50d4421c
RB
94352013-03-21 Richard Biener <rguenther@suse.de>
9436
9437 * tree-cfg.c (verify_expr_no_block): New function.
9438 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
9439 nor DECL_VALUE_EXPR have locations with associated blocks.
9440 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
9441 (clear_unused_block_pointer): Remove code dealing with
9442 blocks in DECL_DEBUG_EXPR locations.
9443
839b422f
RB
94442013-03-21 Richard Biener <rguenther@suse.de>
9445
9446 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
9447 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
9448 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
9449 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
9450 instead of DECL_DEBUG_EXPR_IS_FROM.
9451 * gimplify.c (gimplify_modify_expr): Likewise.
9452 * tree-cfg.c (verify_expr_location_1): Likewise.
9453 * tree-complex.c (create_one_component_var): Likewise.
9454 * tree-sra.c (create_access_replacement): Likewise.
9455 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
9456 (clear_unused_block_pointer): Likewise.
9457 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
9458 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
9459 * var-tracking.c (var_debug_decl): Likewise.
9460 (track_expr_p): Likewise.
9461 * tree-inline.c (add_local_variables): Likewise. Set
9462 DECL_HAS_DEBUG_EXPR_P after copying it.
9463 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
9464 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
9465
fe04878d
UB
94662013-03-21 Uros Bizjak <ubizjak@gmail.com>
9467
9468 PR bootstrap/56656
9469 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
9470 * configure: Regenerate.
9471 * config.in: Regenerate.
9472 * config/i386/i386.md (*movdf_internal): Use
9473 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
9474 movd instead of movq mnemonic for interunit moves.
9475 (*movdi_internal): Ditto.
9476
bd059b26 94772013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
fa2e9a58
N
9478
9479 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
9480 (abd<mode>_3): New pattern.
9481 (aba<mode>_3): New pattern.
9482 (fabd<mode>_3): New pattern.
9483
bd059b26 94842013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
50ce6f88
N
9485
9486 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
9487 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
9488 occurrence of REGISTER_PREFIX as its empty string.
9489
4f1f78b9
JL
94902013-03-20 Jeff Law <law@redhat.com>
9491
9492 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
9493 addititional equivalences for equality comparisons between an SSA_NAME
9494 and a constant where the SSA_NAME was set from a widening conversion.
9495
327a1118
WL
94962013-03-20 Walter Lee <walt@tilera.com>
9497
9498 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
9499
813e0036
UB
95002013-03-20 Uros Bizjak <ubizjak@gmail.com>
9501
9502 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
9503 depending on type attribute.
9504 (*movti_internal): Ditto.
9505 (*movtf_internal): Ditto.
9506 (*movxf_internal): Ditto.
9507 (*movdf_internal): Ditto.
9508 (*movsf_internal): Ditto.
9509
7cf34aae
UB
95102013-03-20 Uros Bizjak <ubizjak@gmail.com>
9511
9512 * config/i386/i386.md (*movti_internal): Set prefix attribute to
9513 maybe_vex for sselog1 and ssemov types.
9514 (*movdi_internal): Reorder operand constraints.
9515 (*movsi_internal): Ditto. Set prefix attribute to
9516 maybe_vex for sselog1 and ssemov types.
9517 (*movtf_internal): Set prefix attribute to maybe_vex
9518 for sselog1 and ssemov types.
9519 (*movdf_internal): Ditto. Set prefix_data16 attribute for
9520 DImode ssemov types. Reorder operand constraints.
9521 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
9522 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
9523 attribute for SImode ssemov types. Reorder operand constraints.
9524
19321415
MJ
95252013-03-20 Martin Jambor <mjambor@suse.cz>
9526
9527 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
9528 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
9529
c6d5ff83
MM
95302013-03-20 Pat Haugen <pthaugen@us.ibm.com>
9531
9532 * config/rs6000/predicates.md (indexed_address, update_address_mem
9533 update_indexed_address_mem): New predicates.
9534 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
9535 attribute for load/store instructions.
9536 * config/rs6000/dfp.md (movsd_store): Likewise.
9537 (movsd_load): Likewise.
9538 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
9539 (unnamed HI->DI extend define_insn): Likewise.
9540 (unnamed SI->DI extend define_insn): Likewise.
9541 (unnamed QI->SI extend define_insn): Likewise.
9542 (unnamed QI->HI extend define_insn): Likewise.
9543 (unnamed HI->SI extend define_insn): Likewise.
9544 (unnamed HI->SI extend define_insn): Likewise.
9545 (extendsfdf2_fpr): Likewise.
9546 (movsi_internal1): Likewise.
9547 (movsi_internal1_single): Likewise.
9548 (movhi_internal): Likewise.
9549 (movqi_internal): Likewise.
9550 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
9551 attribute for load/store instructions.
9552 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
9553 instructions.
9554 (mov<mode>_softfloat): Likewise.
9555 (mov<mode>_hardfloat32): Likewise.
9556 (mov<mode>_hardfloat64): Likewise.
9557 (mov<mode>_softfloat64): Likewise.
9558 (movdi_internal32): Likewise.
9559 (movdi_internal64): Likewise.
9560 (probe_stack_<mode>): Likewise.
9561
95622013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
9563
9564 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
9565 floating point, and decimal floating point to reload iterator.
9566
9567 * config/rs6000/constraints.md (wl constraint): New constraints to
9568 return FLOAT_REGS if certain options are used to reduce the number
9569 of separate patterns that exist in the file.
9570 (wx constraint): Likewise.
9571 (wz constraint): Likewise.
9572
9573 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
9574 -mdebug=reg, print wg, wl, wx, and wz constraints.
9575 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
9576 Initialize the reload functions for 64-bit binary/decimal floating
9577 point types.
9578 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
9579 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
9580 create the buffer on the stack to overcome not having a 32-bit
9581 load and store.
9582 (rs6000_emit_move): Likewise.
9583 (rs6000_secondary_memory_needed_rtx): Likewise.
9584 (rs6000_alloc_sdmode_stack_slot): Likewise.
9585 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
9586 via xxlxor, just like DFmode 0.0.
9587
9588 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
9589 define as 1 if we are running on a power7 or newer.
9590 (enum r6000_reg_class_enum): Add new constraints.
9591
9592 * config/rs6000/dfp.md (movsd): Delete, combine with binary
9593 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
9594 with other moves by using conditional constraits (wg). Use LFIWZX
bd059b26 9595 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
c6d5ff83
MM
9596 (movsd splitter): Likewise.
9597 (movsd_hardfloat): Likewise.
9598 (movsd_softfloat): Likewise.
9599
9600 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
9601 binary and decimal floating point moves.
9602 (fmove_ok): New attributes to combine binary and decimal floating
9603 point moves, and to combine power6x (mfpgpr) moves along normal
9604 floating moves.
9605 (real_value_to_target): Likewise.
9606 (f32_lr): Likewise.
9607 (f32_lm): Likewise.
9608 (f32_li): Likewise.
9609 (f32_sr): Likewise.
9610 (f32_sm): Likewise.
9611 (f32_si): Likewise.
9612 (movsf): Combine binary and decimal floating point moves. Combine
9613 power6x (mfpgpr) moves with other moves by using conditional
bd059b26 9614 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
c6d5ff83
MM
9615 (mov<mode> for SFmode/SDmode); Likewise.
9616 (SFmode/SDmode splitters): Likewise.
9617 (movsf_hardfloat): Likewise.
9618 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
9619 (movsf_softfloat): Likewise.
9620 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
9621
9622 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
9623 wx and wz constraints.
9624
9625 * config/rs6000/constraints.md (wg constraint): New constraint to
9626 return FLOAT_REGS if -mmfpgpr (power6x) was used.
9627
9628 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
9629 constraint.
9630
9631 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
9632 -mdebug=reg, print wg, wl, wx, and wz constraints.
9633 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
9634 Initialize the reload functions for 64-bit binary/decimal floating
9635 point types.
9636 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
9637 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
9638 create the buffer on the stack to overcome not having a 32-bit
9639 load and store.
9640 (rs6000_emit_move): Likewise.
9641 (rs6000_secondary_memory_needed_rtx): Likewise.
9642 (rs6000_alloc_sdmode_stack_slot): Likewise.
9643 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
9644 via xxlxor, just like DFmode 0.0.
9645
c6d5ff83
MM
9646 * config/rs6000/dfp.md (movdd): Delete, combine with binary
9647 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
9648 with other moves by using conditional constraits (wg). Use LFIWZX
9649 and STFIWX for loading SDmode on power7.
9650 (movdd splitters): Likewise.
9651 (movdd_hardfloat32): Likewise.
9652 (movdd_softfloat32): Likewise.
9653 (movdd_hardfloat64_mfpgpr): Likewise.
9654 (movdd_hardfloat64): Likewise.
9655 (movdd_softfloat64): Likewise.
9656
9657 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
9658 64-bit binary and decimal floating point moves.
9659 (FMOVE64X): Likewise.
9660 (movdf): Combine 64-bit binary and decimal floating point moves.
9661 Combine power6x (mfpgpr) moves with other moves by using
9662 conditional constraits (wg).
9663 (mov<mode> for DFmode/DDmode): Likewise.
9664 (DFmode/DDmode splitters): Likewise.
9665 (movdf_hardfloat32): Likewise.
9666 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
9667 (movdf_softfloat32): Likewise.
9668 (movdf_hardfloat64_mfpgpr): Likewise.
9669 (movdf_hardfloat64): Likewise.
9670 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
9671 (movdf_softfloat64): Likewise.
9672 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
9673 (reload_<mode>_load): Move to later in the file so they aren't in
9674 the middle of the floating point move insns.
9675 (reload_<mode>_store): Likewise.
9676
9677 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
9678 constraint.
9679
9680 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
9681 constraint if -mdebug=reg.
bd059b26
UB
9682 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
9683 Enable using dd reload support if needed.
c6d5ff83
MM
9684
9685 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
9686 binary and decimal floating point moves in rs6000.md.
9687 (movtd_internal): Likewise.
9688
9689 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
9690 decimal floating point moves.
9691 (movtf): Likewise.
9692 (movtf_internal): Likewise.
9693 (mov<mode>_internal, TDmode/TFmode): Likewise.
9694 (movtf_softfloat): Likewise.
9695 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
9696
9697 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
9698 movdi_internal64, using wg constraint for move direct operations.
9699 (movdi_internal64): Likewise.
9700
9701 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
9702 MODES_TIEABLE_P for selected modes. Print the numerical value of
9703 the various virtual registers. Use GPR/FPR first/last values,
9704 instead of hard coding the register numbers. Print which modes
9705 have reload functions registered.
bd059b26
UB
9706 (rs6000_option_override_internal): If -mdebug=reg, trace the options
9707 settings before/after setting cpu, target and subtarget settings.
9708 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
9709 and for secondary reload failures in rs6000_secondary_reload_inner.
c6d5ff83
MM
9710 (rs6000_secondary_reload_fail): Likewise.
9711 (rs6000_secondary_reload_inner): Likewise.
9712
9713 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
9714 macros for first/last GPR and FPR registers.
9715 (LAST_GPR_REGNO): Likewise.
9716 (FIRST_FPR_REGNO): Likewise.
9717 (LAST_FPR_REGNO): Likewise.
9718
9719 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
9720 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
9721 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
9722 (vcond<mode><mode>): Likewise.
9723 (vcondu<mode><mode>): Likewise.
9724 (vector_gtu<mode>): Likewise.
9725 (vector_gte<mode>): Likewise.
9726 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
bd059b26 9727 to prevent the compiler from converting DImode operations to TImode.
c6d5ff83
MM
9728 (ior<mode>3): Likewise.
9729 (and<mode>3): Likewise.
9730 (one_cmpl<mode>2): Likewise.
9731 (nor<mode>3): Likewise.
9732 (andc<mode>3): Likewise.
9733
9734 * config/rs6000/constraints.md (wt constraint): New constraint
9735 that returns VSX_REGS if TImode is allowed in VSX registers.
9736
9737 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
9738 constant under VSX.
9739
9740 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
9741 similar to TImode, but it is restricted to being in the GPRs.
9742
9743 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
9744 TImode to occupy a single VSX register.
9745
9746 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
9747 -mvsx-timode for power7/power8.
9748 (power7 cpu): Likewise.
9749 (power8 cpu): Likewise.
9750
9751 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
9752 sure that TFmode/TDmode take up two registers if they are ever
9753 allowed in the upper VSX registers.
9754 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
9755 registers.
9756 (rs6000_init_hard_regno_mode_ok): Likewise.
9757 (rs6000_debug_reg_global): Add debugging for PTImode and wt
9758 constraint. Print if LRA is turned on.
9759 (rs6000_option_override_internal): Give an error if -mvsx-timode
9760 and VSX is not enabled.
9761 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
9762 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
9763 to reg+offset addressing. Use PTImode when checking offset
9764 addresses for validity.
9765 (reg_offset_addressing_ok_p): Likewise.
9766 (rs6000_legitimate_offset_address_p): Likewise.
9767 (rs6000_legitimize_address): Likewise.
9768 (rs6000_legitimize_reload_address): Likewise.
9769 (rs6000_legitimate_address_p): Likewise.
9770 (rs6000_eliminate_indexed_memrefs): Likewise.
9771 (rs6000_emit_move): Likewise.
9772 (rs6000_secondary_reload): Likewise.
9773 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
9774 reloads to fpr registers to continue to use reg+offset addressing,
9775 but 64-bit reloads to altivec registers need reg+reg addressing.
9776 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
9777 it. Treat LO_SUM like a PLUS operation.
9778 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
bd059b26 9779 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
c6d5ff83
MM
9780 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
9781 registers to share a register with a smaller sized type, since VSX
9782 puts scalars in the upper 64-bits.
9783 (print_operand): Add support for PTImode.
9784 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
9785 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
9786 registers, but don't have arithmetic support.
9787 (rs6000_memory_move_cost): Add test for VSX.
9788 (rs6000_opt_masks): Add -mvsx-timode.
9789
9790 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
9791 for TImode.
9792 (VSs): Likewise.
9793 (VSr): Use wt constraint for TImode.
9794 (VSv): Drop TImode support.
9795 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
9796 (vsx_movti_64bit): Likewise.
9797 (vsx_movti_32bit): Likewise.
9798 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
9799 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
9800 one '?' on the appropriate output constraint. Do not allow TImode
9801 logical operations on 32-bit systems.
9802 (vsx_ior<mode>3): Likewise.
9803 (vsx_xor<mode>3): Likewise.
9804 (vsx_one_cmpl<mode>2): Likewise.
9805 (vsx_nor<mode>3): Likewise.
9806 (vsx_andc<mode>3): Likewise.
9807 (vsx_concat_<mode>): Likewise.
9808 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
9809
9810 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
9811 OPTION_MASK_VSX_TIMODE.
9812 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
9813 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
9814
9815 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
9816 (TI2 iterator): New iterator for TImode, PTImode.
9817 (wd mode attribute): Add values for vector types.
bd059b26
UB
9818 (movti_string): Replace TI move operations with operations for TImode
9819 and PTImode. Add support for TImode being allowed in VSX registers.
c6d5ff83
MM
9820 (mov<mode>_string, TImode/PTImode): Likewise.
9821 (movti_ppc64): Likewise.
9822 (mov<mode>_ppc64, TImode/PTImode): Likewise.
9823 (TI mode splitters): Likewise.
9824
9825 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
9826 constraint.
9827
1fc5eced
MG
98282013-03-20 Marc Glisse <marc.glisse@inria.fr>
9829
9830 PR tree-optimization/56355
9831 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
9832 Also handle integers with undefined overflow.
9833
22c4c869
CM
98342013-03-20 Catherine Moore <clm@codesourcery.com>
9835 Maciej W. Rozycki <macro@codesourcery.com>
9836 Tom de Vries <tom@codesourcery.com>
9837 Nathan Sidwell <nathan@codesourcery.com>
9838 Iain Sandoe <iain@codesourcery.com>
9839 Nathan Froyd <froydnj@codesourcery.com>
9840 Chao-ying Fu <fu@mips.com>
9841
9842 * doc/extend.texi: (micromips, nomicromips, nocompression):
7cf34aae 9843 Document new function attributes.
22c4c869
CM
9844 * doc/invoke.texi (minterlink-compressed, mmicromips,
9845 m14k, m14ke, m14kec): Document new options.
9846 (minterlink-mips16): Update documentation.
9847 * doc/md.texi (ZC, ZD): Document new constraints.
9848 * configure.ac (gcc_cv_as_micromips): Check if linker
9849 supports the .set micromips directive.
9850 * configure: Regenerate.
9851 * config.in: Regenerate.
9852 * config/mips/mips-tables.opt: Regenerate.
9853 * config/mips/micromips.md: New file.
9854 * constraints.md (ZC, ZD): New constraints.
9855 * config/mips/predicates.md (movep_src_register): New predicate.
9856 (movep_src_operand): New predicate.
9857 (non_volatile_mem_operand): New predicate.
9858 * config/mips/mips.md (multimem): New type.
9859 (length): Differentiate between 17-bit and 18-bit branch offsets.
9860 (MOVEP1, MOVEP2): New mode iterator.
33159866 9861 (mov_<load>l): Use ZC constraint.
22c4c869
CM
9862 (mov_<load>r): Likewise.
9863 (mov_<store>l): Likewise.
9864 (mov_<store>r): Likewise.
9865 (*branch_equality<mode>_inverted): Add microMIPS support.
9866 (*branch_equality<mode>): Likewise.
9867 (*jump_absolute): Likewise.
9868 (indirect_jump_<mode>): Likewise.
9869 (tablejump_<mode>): Likewise.
9870 (<optab>_internal): Likewise.
9871 (sibcall_internal): Likewise.
9872 (sibcall_value_internal): Likewise.
9873 (prefetch): Use constraint ZD.
9874 * config/mips/mips.opt (minterlink-compressed): New option.
9875 (minterlink-mips16): Now an alias for minterlink-compressed.
9876 (mmicromips): New option.
9877 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
9878 (compare_and_swap_12): Likewise.
9879 (sync_add<mode>): Likewise.
9880 (sync_<optab>_12): Likewise.
9881 (sync_old_<optab>_12): Likewise.
9882 (sync_new_<optab>_12): Likewise.
9883 (sync_nand_12): Likewise.
9884 (sync_old_nand_12): Likewise.
9885 (sync_new_nand_12): Likewise.
9886 (sync_sub<mode>): Likewise.
9887 (sync_old_add<mode>): Likewise.
9888 (sync_old_sub<mode>): Likewise.
9889 (sync_new_add<mode>): Likewise.
9890 (sync_new_sub<mode>): Likewise.
9891 (sync_<optab><mode>): Likewise.
9892 (sync_old_<optab><mode>): Likewise.
9893 (sync_new_<optab><mode>): Likewise.
9894 (sync_nand<mode>): Likewise.
9895 (sync_old_nand<mode>): Likewise.
9896 (sync_new_nand<mode>): Likewise.
9897 (sync_lock_test_and_set<mode>): Likewise.
9898 (test_and_set_12): Likewise.
9899 (atomic_compare_and_swap<mode>): Likewise.
9900 (atomic_exchange<mode>_llsc): Likewise.
9901 (atomic_fetch_add<mode>_llsc): Likewise.
9902 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
9903 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
9904 (umips_save_restore_pattern_p): Likewise.
9905 (umips_load_store_pair_p): Likewise.
9906 (umips_output_load_store_pair): Likewise.
9907 (umips_movep_target_p): Likewise.
9908 (umips_12bit_offset_address_p): Likewise.
9909 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
9910 (mips_base_mips16): Rename this...
9911 (mips_base_compression_flags): ...to this. Update all uses.
9912 (mips_attribute_table): Add micromips, nomicromips and nocompression.
9913 (mips_mips16_decl_p): Delete.
9914 (mips_nomips16_decl_p): Delete.
33159866 9915 (mips_get_compress_on_flags): New function.
22c4c869
CM
9916 (mips_get_compress_off_flags): New function.
9917 (mips_get_compress_mode): New function.
9918 (mips_get_compress_on_name): New function.
9919 (mips_get_compress_off_name): New function.
9920 (mips_insert_attributes): Support multiple compression types.
9921 (mips_merge_decl_attributes): Likewise.
9922 (umips_12bit_offset_address_p): New function.
9923 (mips_start_function_definition): Emit .set micromips directive.
9924 (mips_call_may_need_jalx_p): New function.
9925 (mips_function_ok_for_sibcall): Add microMIPS support.
9926 (mips_print_operand_punctuation): Support short delay slots and
9927 compact jumps.
9928 (umips_swm_mask, umips_swm_encoding): New.
9929 (umips_build_save_restore): New function.
9930 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
9931 (was_mips16_p): Remove.
9932 (old_compression_mode): New.
9933 (mips_set_compression_mode): New function.
9934 (mips_set_current_function): Add microMIPS support.
9935 (mips_option_override): Likewise.
9936 (umips_save_restore_pattern_p): New function.
9937 (umips_output_save_restore): New function.
9938 (umips_load_store_pair_p_1): New function.
9939 (umips_load_store_pair_p): New function.
9940 (umips_output_load_store_pair_1): New function.
9941 (umips_output_load_store_pair): New function.
9942 (umips_movep_target_p) New function.
9943 (mips_prepare_pch_save): Add microMIPS support.
9944 * config/mips/mips.h (TARGET_COMPRESSION): New.
9945 (TARGET_CPU_CPP_BUILTINS): Update macro
9946 to use new compression flags and to support microMIPS.
9947 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
9948 (MIPS_ARCH_FLOAT_SPEC): Likewise.
9949 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
9950 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
9951 (ASM_SPEC): Support mmicromips and mno-micromips.
9952 (M16STORE_REG_P): New macro.
9953 (MIPS_CALL): Support TARGET_MICROMIPS.
9954 (MICROMIPS_J): New macro.
9955 (mips_base_mips16): Rename this...
9956 (mips_base_compression_flags): ...to this.
9957 (UMIPS_12BIT_OFFSET_P): New macro.
9958 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
9959 (MULTILIB_DIRNAMES): Likewise.
92a8d7a7
RB
99602013-03-20 Richard Biener <rguenther@suse.de>
9961
9962 PR tree-optimization/56661
9963 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
9964 the result does not have to be distinct.
9965
54714c68
RB
99662013-03-20 Richard Biener <rguenther@suse.de>
9967
9968 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
9969 remap_gimple_op_r.
9970
cca1130d
BS
99712013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9972 Steven Bosscher <steven@gcc.gnu.org>
9973
9974 PR rtl-optimization/56605
9975 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
9976
2a930377
UB
99772013-03-20 Uros Bizjak <ubizjak@gmail.com>
9978
9979 PR bootstrap/56656
9980 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
9981 that require movd instead of movq.
9982
d6d305fe
RB
99832013-03-20 Richard Biener <rguenther@suse.de>
9984
9985 * tree-ssa-structalias.c (struct variable_info): Add pointer
9986 to the first field of an aggregate with sub-vars. Make
9987 this and the pointer to the next subfield its ID.
9988 (vi_next): New function.
9989 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
9990 storedanything_id, integer_id): Increment by one.
9991 (new_var_info, get_call_vi, lookup_call_clobber_vi,
9992 get_call_clobber_vi): Adjust.
9993 (solution_set_expand): Simplify and speedup.
9994 (solution_set_add): Inline into ...
9995 (set_union_with_increment): ... this. Adjust accordingly.
9996 (do_sd_constraint): Likewise.
9997 (do_ds_constraint): Likewise.
9998 (do_complex_constraint): Simplify.
9999 (build_pred_graph): Adjust.
10000 (solve_graph): Likewise. Simplify and speedup.
10001 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
10002 get_constraint_for_component_ref, get_constraint_for_1,
10003 first_vi_for_offset, first_or_preceding_vi_for_offset,
10004 create_function_info_for, create_variable_info_for_1,
10005 create_variable_info_for, intra_create_variable_infos): Adjust.
10006 (init_base_vars): Push NULL for ID zero.
10007 (compute_points_to_sets): Adjust.
10008
a271b42d
RB
100092013-03-20 Richard Biener <rguenther@suse.de>
10010
10011 * cfgloop.c (verify_loop_structure): Streamline and avoid
10012 ICEing on corrupt loop tree.
10013 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
10014 loop tree.
10015
ebd65954
RB
100162013-03-20 Richard Biener <rguenther@suse.de>
10017
10018 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
10019 check whether an SSA update is needed.
10020
4547b7ee
RS
100212013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
10022
10023 * config/mips/constraints.md (T): Rename to...
10024 (Yf): ...this.
10025 (U): Rename to...
10026 (Yd): ...this.
10027 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
10028 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
10029
0b8cdc58
IB
100302013-03-19 Ian Bolton <ian.bolton@arm.com>
10031
10032 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
10033 (*subsi3_carryin_uxtw): Likewise.
10034
5977a10d
IB
100352013-03-19 Ian Bolton <ian.bolton@arm.com>
10036
10037 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
10038 (*rorsi3_insn_uxtw): Likewise.
10039
bd83ff2c
IB
100402013-03-19 Ian Bolton <ian.bolton@arm.com>
10041
10042 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
10043 (*extrsi5_insn_uxtw): Likewise.
10044
ba65123c
RB
100452013-03-19 Richard Biener <rguenther@suse.de>
10046
10047 PR tree-optimization/56273
10048 * passes.c (init_optimization_passes): Move second VRP after DOM.
10049
2eac0476
UB
100502013-03-19 Uros Bizjak <ubizjak@gmail.com>
10051
10052 * config/i386/i386.md (*movti_internal): Merge from
10053 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
10054 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
10055 nox64 isa attributes.
10056
6e55eda7
RB
100572013-03-18 Richard Biener <rguenther@suse.de>
10058
10059 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
10060 (unite): Likewise.
10061 (merge_node_constraints): Likewise.
10062 (build_succ_graph): Likewise.
10063 (valid_graph_edge): Inline into single caller.
10064 (unify_nodes): Likewise. Use bitmap_set_bit return value
10065 and cache varinfo.
10066 (scc_visit): Fix formatting and variable use.
10067 (do_sd_constraint): Use gcc_checking_assert.
10068 (do_ds_constraint): Likewise.
10069 (do_complex_constraint): Likewise.
10070 (condense_visit): Likewise. Cleanup.
10071 (dump_pred_graph): New function.
10072 (perform_var_substitution): Dump the pred-graph before
10073 variable substitution.
10074 (find_equivalent_node): Use gcc_checking_assert.
10075 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
10076
4bdd44c4
RB
100772013-03-18 Richard Biener <rguenther@suse.de>
10078
10079 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
10080 Remove cond_expr_stmt_list argument and do not gimplify the
10081 built expression.
10082 (vect_loop_versioning): Adjust.
10083 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
10084 Cleanup to use less temporaries.
10085 (vect_create_data_ref_ptr): Cleanup.
10086
38c56a5b
JJ
100872013-03-18 Jakub Jelinek <jakub@redhat.com>
10088
10089 PR tree-optimization/56635
10090 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
10091 require types_compatible_p types.
10092
20b2e6a0
NC
100932013-03-18 Nick Clifton <nickc@redhat.com>
10094
a6178a25
NC
10095 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
10096 spurious backslash.
10097
20b2e6a0
NC
10098 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
10099 Add missing line to comment describing function.
10100
92608d0e
RB
101012013-03-18 Richard Biener <rguenther@suse.de>
10102
10103 PR tree-optimization/56210
10104 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10105 Handle string / character search functions.
10106 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
10107
31348d52
RB
101082013-03-18 Richard Biener <rguenther@suse.de>
10109
10110 PR middle-end/56483
10111 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
10112 and implement properly.
10113 * gimple.h (gimple_cond_single_var_p): Remove.
10114
fcac74a1
RB
101152013-03-18 Richard Biener <rguenther@suse.de>
10116
10117 * tree-data-ref.h (find_data_references_in_loop): Declare.
10118 * tree-data-ref.c (get_references_in_stmt): Use a stack
10119 vector pre-allocated in the callers.
10120 (find_data_references_in_stmt): Adjust.
10121 (graphite_find_data_references_in_stmt): Likewise.
10122 (create_rdg_vertices): Likewise.
10123 (find_data_references_in_loop): Export.
10124 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
10125 Compute dependences here...
10126 (vect_analyze_data_refs): ...not here. When we encounter
10127 a non-vectorizable data reference in basic-block vectorization
10128 truncate the data reference vector. Do not bother to
10129 fixup data-dependence information for gather loads.
10130 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
10131 of data references, as reported.
10132
0d5a1b56
RB
101332013-03-18 Richard Biener <rguenther@suse.de>
10134
10135 PR tree-optimization/3713
10136 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
10137 has_constants and expr.
10138 (stmt_has_constants): Properly valueize SSA names when deciding
10139 whether the stmt has constants.
10140
789c34e3
RB
101412013-03-18 Richard Biener <rguenther@suse.de>
10142
10143 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
10144 whole function when there is nothing to do.
10145 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
10146 * tree-vectorizer.c (vectorize_loops): Update virtual and
10147 loop-closed SSA once.
10148 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
10149
076b4605
RB
101502013-03-18 Richard Biener <rguenther@suse.de>
10151
10152 PR middle-end/56113
10153 * domwalk.c (bb_postorder): New global static.
10154 (cmp_bb_postorder): New function.
10155 (walk_dominator_tree): Replace scheme imposing an order for
10156 visiting dominator sons by one sorting them at the time they
10157 are pushed on the stack.
10158
bdb01696
RB
101592013-03-18 Richard Biener <rguenther@suse.de>
10160
10161 PR tree-optimization/39326
10162 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
10163 (struct mem_ref): Replace mem member with ao_ref typed member.
10164 (MEM_ANALYZABLE): Adjust.
10165 (memref_eq): Likewise.
10166 (mem_ref_alloc): Likewise.
10167 (gather_mem_refs_stmt): Likewise.
10168 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
10169 (execute_sm_if_changed_flag_set): Adjust.
10170 (execute_sm): Likewise.
10171 (ref_always_accessed_p): Likewise.
10172 (refs_independent_p): Likewise.
10173 (can_sm_ref_p): Likewise.
10174
12d2dc5e
JJ
101752013-03-18 Jakub Jelinek <jakub@redhat.com>
10176
10177 PR c/56566
10178 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
10179 return 1 even for !unsignedp.
10180
286fb677
UB
101812013-03-17 Uros Bizjak <ubizjak@gmail.com>
10182
10183 * config/i386/i386.md (isa): Add x64 and nox64.
10184 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
10185 (*pushtf): Enable *roF alternative for x64 isa only.
10186 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
10187 mode attribute of integer alternatives to DImode for TARGET_64BIT.
10188 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
10189 (*movtf_internal): Merge from *movtf_internal_rex64 and
10190 *movtf_internal_sse. Use x64 and nox64 isa attributes.
10191 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
10192 nox64 isa attributes.
10193 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
10194 nox64 isa attributes.
10195 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
10196
88b97037
UB
101972013-03-17 Uros Bizjak <ubizjak@gmail.com>
10198
10199 * config/alpha/alpha.c (TARGET_LRA_P): New define.
10200
9f4f1735
JJ
102012013-03-17 Jakub Jelinek <jakub@redhat.com>
10202
10203 PR target/56640
10204 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
10205 class names. Remove trailing comma after "ALL_REGS".
10206
48f4a6fa
JH
102072013-03-16 Jan Hubicka <jh@suse.cz>
10208
10209 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
10210 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
10211 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
10212 of cgraph_get_create_node.
10213 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10214
98e81123
JM
102152013-03-16 Jason Merrill <jason@redhat.com>
10216
10217 PR debug/49090
10218 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
10219 with DW_AT_default_value.
10220
8a298c04
JJ
102212013-03-16 Jakub Jelinek <jakub@redhat.com>
10222
10223 * BASE-VER: Set to 4.9.0.
10224
4323afa0
AK
102252013-03-14 Andi Kleen <ak@linux.intel.com>
10226
10227 PR target/56619
10228 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
10229 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
10230 Document _x* TSX intrinsics.
10231
b3c0d469
JJ
102322013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
10233 David Holsgrove <david.holsgrove@xilinx.com>
8cc9a5a5
EI
10234
10235 * configure.ac: Add MicroBlaze TLS support detection.
10236 * configure: Regenerate.
88b97037
UB
10237 * config/microblaze/microblaze-protos.h
10238 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
10239 symbol_mentioned_p, label_mentioned_p): Add prototypes.
10240 * config/microblaze/microblaze.c (microblaze_address_type): Add
10241 ADDRESS_TLS and tls_reloc address types.
8cc9a5a5
EI
10242 (microblaze_address_info): Add tls_reloc.
10243 (TARGET_HAVE_TLS): Define.
10244 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
10245 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
88b97037
UB
10246 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
10247 load_tls_operand, microblaze_call_tls_get_addr,
10248 microblaze_legitimize_tls_address): New functions.
8cc9a5a5
EI
10249 (microblaze_classify_unspec): Handle UNSPEC_TLS.
10250 (get_base_reg): Use microblaze_tls_symbol_p.
10251 (microblaze_classify_address): Handle TLS.
88b97037
UB
10252 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
10253 label_mentioned_p and microblaze_tls_referenced_p.
8cc9a5a5
EI
10254 (microblaze_legitimize_address): Handle TLS.
10255 (microblaze_address_insns): Handle ADDRESS_TLS.
10256 (pic_address_needs_scratch): Handle TLS.
10257 (print_operand_address): Handle TLS.
10258 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
10259 (microblaze_expand_move): Handle TLS.
88b97037
UB
10260 (microblaze_legitimate_constant_p): Check
10261 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
8cc9a5a5
EI
10262 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
10263 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
10264 (PIC_OFFSET_TABLE_REGNUM): Set.
10265 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
10266 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
10267 (addsi3, movsi_internal2, movdf_internal): Update constraints
10268 * config/microblaze/predicates.md (arith_plus_operand): Define
88b97037
UB
10269 (move_operand): Redefine as move_src_operand,
10270 check microblaze_tls_referenced_p.
8cc9a5a5 10271
d803a491
IB
102722013-03-14 Ian Bolton <ian.bolton@arm.com>
10273
10274 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
10275 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
10276
a8504f22
IB
102772013-03-14 Ian Bolton <ian.bolton@arm.com>
10278
10279 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
10280 CC mode for AND.
10281
df2dfaea
JJ
102822013-03-14 Jakub Jelinek <jakub@redhat.com>
10283
fbd28bc3
JJ
10284 PR tree-optimization/53265
10285 * common.opt (Waggressive-loop-optimizations): New option.
10286 * tree-ssa-loop-niter.c: Include tree-pass.h.
10287 (do_warn_aggressive_loop_optimizations): New function.
10288 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
10289 if number_of_latch_executions returned constant.
10290 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
10291 early. If number_of_latch_executions returned constant, set
10292 nb_iterations_upper_bound back to it.
10293 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
10294 field.
10295 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
10296 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
10297
df2dfaea
JJ
10298 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
10299 (MULTILIB_OSDIRNAMES): Set.
10300 * genmultilib: If defaultosdirname doesn't start with :: , set
10301 defaultosdirname2 instead, clear it and emit two . multilib_raw
10302 entries instead of just one.
10303
ee0d2b68
KK
103042013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
10305
10306 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
10307 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
10308 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
10309 (SUBTARGET_OVERRIDE_OPTIONS): New.
10310
decc676e
OE
103112013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
10312
10313 PR target/49880
10314 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
10315 (musermode): Convert to Var(TARGET_USERMODE).
10316 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
10317 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
10318 * config/sh/sh.c (sh_option_override): Use
10319 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
10320 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
10321 condition.
10322 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
10323 TARGET_SH4.
10324 (udivsi3_i4_single, divsi3_i4_single): Use
10325 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
10326
f4b719c7
DK
103272013-03-13 Dave Korn <dave.korn.cygwin@....>
10328
10329 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
10330 default setting.
10331
c40eced0
RB
103322013-03-13 Richard Biener <rguenther@suse.de>
10333
10334 PR tree-optimization/56608
10335 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
10336 calls when vectorizing basic-blocks.
10337
1bfa5973
JJ
103382013-03-13 Jakub Jelinek <jakub@redhat.com>
10339
10340 PR plugins/45078
10341 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
10342 tm_file.
10343
6fcf5434
JJ
103442013-03-12 Jakub Jelinek <jakub@redhat.com>
10345
10346 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
10347
4f38fa8c
JH
103482013-03-11 Jan Hubicka <jh@suse.cz>
10349
10350 PR lto/56557
10351 * lto-streamer-out.c (output_symbol_p): Skip references from
10352 constructors of external variables.
10353
c5c5ba89
JH
103542013-03-11 Jan Hubicka <jh@suse.cz>
10355
10356 PR middle-end/56571
10357 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
10358 from pseudos.
10359 * emit-rtl.c (verify_rtx_sharing): Likewise.
10360 (copy_insn_1): Likewise.
10361 * rtl.c (copy_rtx): Likewise.
10362
c2a939b1
GJL
103632013-03-11 Georg-Johann Lay <avr@gjlay.de>
10364
10365 PR target/56591
10366 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
10367 output_operand_lossage message.
88b97037 10368
3c3279fb
RE
103692013-03-11 Richard Earnshaw <rearnsha@arm.com>
10370
10371 PR target/56470
10372 * arm.c (shift_op): Validate RTL pattern on the fly.
10373 (arm_print_operand, case 'S'): Don't use shift_operator to validate
10374 the RTL.
10375
aef5ef9d
JDA
103762013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10377
10378 PR target/56347
10379 * config/pa/pa.md (call_value): Check for calls to powf and direct to
10380 new call patterns that clobber %fr12.
10381 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
10382 split and postreload patterns.
10383 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
10384 registers %fr12 and %fr12R as call used.
10385
456610d3
SB
103862013-03-09 Steven Bosscher <steven@gcc.gnu.org>
10387
10388 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
10389 (canon_address, record_store, replace_read, check_mem_read_rtx,
10390 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
10391 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
10392 rest_of_handle_dse): Likewise.
10393
4b1baac8
RS
103942013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
10395
10396 PR middle-end/56524
10397 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
10398 Add base_optabs.
10399 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
10400 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
10401 (save_optabs_if_changed): Replace with...
10402 (init_tree_optimization_optabs): ...this.
10403 * optabs.c (save_optabs_if_changed): Rename to...
10404 (init_tree_optimization_optabs): ...this. Take the optimization node
10405 as argument. Do nothing if the base optabs are already correct.
10406 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
10407 to recompute optabs.
10408 * function.h (function): Remove optabs field.
10409 * function.c (invoke_set_current_function_hook): Call
10410 init_tree_optimization_optabs. Use the result to initialize
10411 this_fn_optabs.
10412
b7a78683
AH
104132013-02-27 Aldy Hernandez <aldyh@redhat.com>
10414
10415 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
10416 if GTMA_HAS_NO_INSTRUMENTATION.
10417 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
10418 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
10419 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
10420 * gimple-pretty-print.c (dump_gimple_transaction): Handle
10421 GTMA_HAS_NO_INSTRUMENTATION.
10422
6384c29b
JJ
104232013-03-08 Jakub Jelinek <jakub@redhat.com>
10424
10425 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
10426 libasan_preinit.o.
10427
ecd4f20a
MP
104282013-03-08 Marek Polacek <polacek@redhat.com>
10429 Jakub Jelinek <jakub@redhat.com>
10430
10431 PR tree-optimization/56478
10432 * predict.c (is_comparison_with_loop_invariant_p): Change the
10433 type of loop_step to tree.
10434 (predict_loops): Adjust.
10435 (predict_iv_comparison): Perform the computations on double_ints.
10436
64366d35
RB
104372013-03-08 Richard Biener <rguenther@suse.de>
10438
10439 PR tree-optimization/56570
10440 * tree-cfg.c (verify_expr_location_1): Verify locations for
10441 DECL_DEBUG_EXPR.
10442 * tree-sra.c (create_access_replacement): Strip locations
10443 from DECL_DEBUG_EXPRs.
10444
a9d5a059
RB
104452013-03-08 Richard Biener <rguenther@suse.de>
10446
10447 * tree-inline.c (expand_call_inline): Do not associate
10448 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
10449 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
10450
b7aa4e9a
RB
104512013-03-08 Richard Biener <rguenther@suse.de>
10452
10453 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
10454 or block changes with -Og. Fix for location / block encoding
10455 changes and PHI arguments with locations.
10456
c4c2f9fa
SB
104572013-03-07 Steven Bosscher <steven@gcc.gnu.org>
10458
10459 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
10460 for all counters.
10461 (struct output_info): Likewise.
10462 (register_overhead): Remove bad gcc_assert.
10463 (bitmap_find_bit): If there is only a single bitmap element, do not
10464 count a miss as a search.
10465 (print_statistics): Update for counter type changes.
10466 (dump_bitmap_statistics): Likewise. Print headers such that they
10467 are properly lined up with the printed counters.
10468
5bf6606a
JJ
104692013-03-07 Jakub Jelinek <jakub@redhat.com>
10470
10471 PR tree-optimization/56559
10472 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
10473 check that it has only a single use.
10474
2c653d46
RB
104752013-03-07 Richard Biener <rguenther@suse.de>
10476
10477 * doc/invoke.texi (fwhole-program): Discourage use in combination
10478 with -flto.
10479
a72d8780
JJ
104802013-03-06 Jakub Jelinek <jakub@redhat.com>
10481
01a454df
JJ
10482 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
10483
c1781047
JJ
10484 PR tree-optimization/56539
10485 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
10486 instead of GSI_CONTINUE_LINKING as last argument to
10487 force_gimple_operand_gsi. Adjust function comment.
10488
9772c47a
JJ
10489 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
10490 aarch64-cores.def.
10491
a72d8780
JJ
10492 PR middle-end/56548
10493 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
10494 promoted mode, convert the result back to the original mode.
10495
fa5556de
RB
104962013-03-06 Richard Biener <rguenther@suse.de>
10497
10498 PR middle-end/56294
10499 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
10500 (insert_updated_phi_nodes_compare_uids): New function.
10501 (update_ssa): Sort symbols_to_rename after UID before
10502 traversing it to insert PHI nodes.
10503
010403d1
RB
105042013-03-06 Richard Biener <rguenther@suse.de>
10505
10506 PR middle-end/50494
10507 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
10508 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
10509
10510 Revert
10511 2013-02-13 Richard Biener <rguenther@suse.de>
10512
10513 PR lto/50494
10514 * varasm.c (output_constant_def_1): Get the decl representing
10515 the constant as argument.
10516 (output_constant_def): Wrap output_constant_def_1.
10517 (make_decl_rtl): Use output_constant_def_1 with the decl
10518 representing the constant.
10519 (build_constant_desc): Optionally re-use a decl already
10520 representing the constant.
10521 (tree_output_constant_def): Adjust.
10522
3c27ce4c
JY
105232013-03-06 Joey Ye <joey.ye@arm.com>
10524
10525 PR lto/50293
10526 * gcc.c (convert_white_space): New function.
10527 (main): Handles white space in function name.
10528
8f6d1c86
OE
105292013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
10530
10531 PR target/56529
10532 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
10533 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
10534 to SH_DIV_CALL_TABLE for TARGET_SH2.
10535 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
10536 list.
10537 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
10538 call-table options.
10539
798a209f
SA
105402013-03-05 Sterling Augustine <saugustine@google.com>
10541 Cary Coutant <ccoutant@google.com>
10542
10543 PR debug/55364
10544 * dwarf2out.c (resolve_addr): Don't call
10545 remove_loc_list_addr_table_entries a second time for the same
10546 expression.
10547
6cfa417f 105482013-03-05 Jakub Jelinek <jakub@redhat.com>
ee61ea38 10549
6cfa417f
JJ
10550 PR debug/56510
10551 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
10552 (avoid_complex_debug_insns): New function.
10553 (expand_debug_locations): Call it.
10554
10555 PR rtl-optimization/56484
10556 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
10557 lifetimes of hard registers on small register class machines.
10558
105592013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
10560
10561 * config/microblaze/microblaze-protos.h: Rename
ee61ea38 10562 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
6cfa417f 10563 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
ee61ea38
DH
10564 fast_interrupt.
10565 (microblaze_fast_interrupt_function_p): New function.
10566 (microblaze_is_interrupt_handler): Rename to
10567 microblaze_is_interrupt_variant and add fast_interrupt check.
10568 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
10569 (save_restore_insns): Likewise.
10570 (compute_frame_size): Likewise.
10571 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
10572 (microblaze_globalize_label): Likewise.
6cfa417f
JJ
10573 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
10574 * config/microblaze/microblaze.md: Use wrapper
ee61ea38
DH
10575 microblaze_is_interrupt_variant.
10576
731aefac
KT
105772013-03-05 Kai Tietz <ktietz@redhat.com>
10578
10579 * sdbout.c (sdbout_one_type): Switch to current function's section
10580 supporting cold/hot.
10581
a72d8780 105822013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
e34fd5a7
DH
10583
10584 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
10585 -mxl-reorder.
10586
334e71e8
JJ
105872013-03-05 Jakub Jelinek <jakub@redhat.com>
10588
0b50e654
JJ
10589 PR middle-end/56461
10590 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
10591 if VALGRIND_GET_VBITS is defined, temporarily make object
10592 memory all defined, and restore previous valgrind addressability
10593 and definability afterwards. Free this_object at the end.
10594
4ccf8f43
JJ
10595 PR middle-end/56461
10596 * lra.c (lra): Call lra_clear_live_ranges if live_p,
10597 right before calling lra_create_live_ranges, also call it
10598 when clearing live_p. Only call lra_clear_live_ranges
10599 at the end if live_p.
10600
334e71e8
JJ
10601 PR middle-end/56461
10602 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
10603
9ca966ca
RB
106042013-03-05 Richard Biener <rguenther@suse.de>
10605
10606 PR tree-optimization/56521
10607 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
10608 value-id.
10609
d273b176
SB
106102013-03-05 Steven Bosscher <steven@gcc.gnu.org>
10611
10612 PR c++/55135
10613 * except.h (remove_unreachable_eh_regions): New prototype.
10614 * except.c (remove_eh_handler_splicer): New function, split out
10615 of remove_eh_handler.
10616 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
10617 warning about running it on many EH regions one at a time.
10618 (remove_unreachable_eh_regions_worker): New function, walk the
10619 EH tree in depth-first order and remove non-marked regions.
10620 (remove_unreachable_eh_regions): New function.
10621 * tree-eh.c (mark_reachable_handlers): New function, split out
10622 from remove_unreachable_handlers.
10623 (remove_unreachable_handlers): Use mark_reachable_handlers and
10624 remove_unreachable_eh_regions.
10625 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
10626 and remove_unreachable_eh_regions.
10627
5e7f1aef
RB
106282013-03-05 Richard Biener <rguenther@suse.de>
10629
10630 PR middle-end/56525
10631 * loop-init.c (fix_loop_structure): Remove loops in two stages,
10632 not freeing them until the end.
10633
f276b762
AK
106342013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10635
10636 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
10637
12a43ab8
RB
106382013-03-05 Richard Biener <rguenther@suse.de>
10639
10640 PR tree-optimization/56270
10641 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
10642 of loads after scheduling an SLP instance.
10643
93675444
JJ
106442013-03-05 Jakub Jelinek <jakub@redhat.com>
10645
db4138e3
JJ
10646 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
10647 tic6x.exp.
10648 (check_gcc_parallelize): Run guality.exp as a separate job from
10649 vect.exp with unsorted.exp and $(dg_target_exps) separately from
10650 struct-layout-1.exp with stackalign.exp.
10651
dd3d1ec0
JJ
10652 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
10653
b8d381a3
JJ
10654 PR middle-end/56461
10655 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
10656 load_index sbitmap even if some bit in it isn't set.
10657
b4f9786b
JJ
10658 PR middle-end/56461
10659 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
10660 (discover_iteration_bound_by_body_walk): Change queues to
10661 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
10662 spelling in comment. Call safe_push on queues[bound_index] directly.
10663 Release queues[queue_index] in every iteration unconditionally.
10664 Release bounds vector.
10665
93675444
JJ
10666 PR middle-end/56461
10667 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
10668 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
10669 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
10670 inner_phis vector.
10671
3e492e9c
RB
106722013-03-05 Richard Biener <rguenther@suse.de>
10673
10674 PR lto/56515
10675 * tree-inline.c (remap_blocks_to_null): New function.
10676 (expand_call_inline): When expanding a call stmt without
10677 an associated block inline remap all callee blocks to NULL.
10678
a5d1569a
JJ
106792013-03-05 Jakub Jelinek <jakub@redhat.com>
10680
86efb5cd
JJ
10681 PR rtl-optimization/56494
10682 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
10683 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
10684 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
10685
85f5dbea
JJ
10686 PR middle-end/56461
10687 * sel-sched-ir.c (free_sched_pools): Release
10688 succs_info_pool.stack[succs_info_pool.max_top] vectors too
10689 if succs_info_pool.max_top isn't -1.
10690
a5d1569a
JJ
10691 PR bootstrap/56509
10692 * opts.c (opts_obstack, opts_concat): Moved to...
10693 * opts-common.c (opts_obstack, opts_concat): ... here.
10694
4432aa6c
JJ
106952013-03-04 Jakub Jelinek <jakub@redhat.com>
10696
10697 PR middle-end/56461
10698 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
10699
f3a1fb91
MJ
107002013-03-04 Martin Jambor <mjambor@suse.cz>
10701
10702 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
10703 all appropriate places.
10704
22110e6c
EB
107052013-01-04 Eric Botcazou <ebotcazou@adacore.com>
10706
10707 PR tree-optimization/56424
10708 * ipa-split.c (split_function): Do not set the RSO flag if result is
10709 not by reference and its type is a register type.
10710
a72d8780 107112013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
91c4e421 10712
88b97037 10713 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
91c4e421 10714 (microblaze_legitimate_pic_operand): Likewise
88b97037 10715 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
91c4e421
DH
10716 new function microblaze_legitimate_pic_operand
10717 * config/microblaze/microblaze-protos.h
10718 (microblaze_legitimate_pic_operand): Declare.
10719
a72d8780 107202013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
82f8f53a 10721
a72d8780 10722 * config/microblaze/predicates.md (call_insn_simple_operand):
82f8f53a 10723 New predicate for supported rtx code types.
a72d8780 10724 * config/microblaze/microblaze.md (call_internal1): Use
82f8f53a
EI
10725 call_insn_simple_operand predicate.
10726
541d9ac8
JJ
107272013-03-04 Jakub Jelinek <jakub@redhat.com>
10728
5eb010bc
JJ
10729 PR middle-end/56461
10730 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
10731 partitions.ordered_remove.
10732
30862efc
JJ
10733 PR middle-end/56461
10734 * tree-vect-stmts.c (vectorizable_conversion): Don't call
10735 vec_oprnds0.create (1) for modifier == NONE.
10736
8930f723
JJ
10737 PR middle-end/56461
10738 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
10739 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
10740 vec_oprnds1 right before pushing anything to it for
10741 scalar_shift_arg.
10742
541d9ac8
JJ
10743 PR middle-end/56461
10744 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
10745 set nbbs to 0 instead of having separate code path.
10746 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
10747 instead of false as last argument if returning NULL.
10748
7aa7f2e3
SL
107492013-03-03 Sandra Loosemore <sandra@codesourcery.com>
10750
10751 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
10752 the attribute is now called "target" instead of "option".
10753 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
10754 * doc/tm.texi.in (Target Attributes): Likewise document the correct
10755 attribute/pragma name for TARGET_OPTION_VALID_P and
10756 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
10757 * doc/tm.texi: Regenerated.
10758
8930f723 107592013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
cb8a1637 10760
8930f723 10761 * config/microblaze/microblaze.c:
cb8a1637 10762 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8930f723
JJ
10763 * config/microblaze/microblaze.h: Add -mxl-reorder to
10764 DRIVER_SELF_SPECS.
10765 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
10766 instructions emitted if TARGET_REORDER.
88b97037
UB
10767 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
10768 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8930f723 10769 separately.
cb8a1637 10770
4dc1d68c
XDL
107712013-03-01 Xinliang David Li <davidxl@google.com>
10772
10773 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
10774 walk length.
10775
689eaba3
JJ
107762013-03-01 Jakub Jelinek <jakub@redhat.com>
10777
9d676bf6
JJ
10778 PR middle-end/56461
10779 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
10780 vector even when returning true. Fix up function comment formatting.
10781
caff7edf
JJ
10782 PR middle-end/56461
10783 * ira-build.c (ira_loop_nodes_count): New variable.
10784 (create_loop_tree_nodes): Initialize it.
10785 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
10786
b6b9227d
JJ
10787 PR middle-end/56461
10788 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
10789 method on dr_chain and result_chain.
10790 * tree-vect-stmts.c (vectorizable_store): Only call
10791 result_chain.create if j == 0.
10792
689eaba3
JJ
10793 PR middle-end/56461
10794 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
10795 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
10796 before overwriting it.
10797
40bf31ed
TB
107982013-03-01 Tobias Burnus <burnus@net-b.de>
10799
10800 * doc/extended.texi (C Extensions): Change order in @menu
10801 to match @node.
10802 (Other MIPS Built-in Functions): Move last MIPS entry before
10803 "picoChip Built-in Functions".
10804 (SH Built-in Functions): Move after RX Built-in Functions.
10805 * doc/gcc.texi (Introduction): Change order in @menu
10806 to match @node.
10807 * doc/md.texi (Constraints): Ditto.
10808 * gty.texi (Type Information): Ditto.
10809 (User-provided marking routines for template types): Make
10810 subsection.
10811 * doc/invoke.texi (AArch64 Options): Move before
10812 "Adapteva Epiphany Options".
10813
e664c61c
KS
108142013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
10815 Jakub Jelinek <jakub@redhat.com>
10816
10817 PR sanitizer/56454
10818 * asan.c (gate_asan): Lookup no_sanitize_address instead of
10819 no_address_safety_analysis attribute.
10820 * doc/extend.texi (no_address_safety_attribute): Rename to
10821 no_sanitize_address attribute, mention no_address_safety_analysis
10822 attribute as deprecated alias.
10823
37b5ec8f
JJ
108242013-02-28 Jakub Jelinek <jakub@redhat.com>
10825
10826 PR middle-end/56461
10827 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
10828 type to vec<vec<tree> > *.
10829 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
10830 to be vec<tree> instead of vec<tree> *, set vec_defs
10831 to vNULL and call vec_defs.create (number_of_vects), adjust other
10832 uses of vec_defs.
10833 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
10834 vectorizable_condition): Adjust vect_get_slp_defs callers.
10835
ba96cdfb
JG
108362013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10837
10838 * config/aarch64/aarch64.c
10839 (aarch64_float_const_representable): Remove unused variable.
10840
6f549691
JG
108412013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10842
10843 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
10844
af55e82d
JG
108452013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10846
10847 * config/aarch64/aarch64-builtins.c
10848 (aarch64_init_simd_builtins): Make static.
10849
1df3f464
JG
108502013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10851
10852 * config/aarch64/aarch64.c
10853 (aarch64_simd_make_constant): Make static.
10854
f8f42513
MJ
108552013-02-28 Martin Jambor <mjambor@suse.cz>
10856
10857 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
10858 with no initialization to the RHS of debug statements.
10859
b48b3fc4
MJ
108602013-02-28 Martin Jambor <mjambor@suse.cz>
10861
10862 PR tree-optimization/56294
10863 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
10864 Adjust dumping.
10865 (get_access_replacement): Do not call create_access_replacement.
10866 Assert a replacement exists.
10867 (get_repl_default_def_ssa_name): Create the replacement declaration
10868 itself.
10869
c3ae224c
RR
108702013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10871
10872 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
10873 final_end_function.
10874
45fa0eef
MP
108752013-02-28 Marek Polacek <polacek@redhat.com>
10876
10877 PR rtl-optimization/56466
10878 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
10879 if we're changing a loop.
10880 (peel_loops_completely): Likewise.
10881
502c067d
PC
108822013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
10883
10884 PR c++/55813
10885 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
10886
ff24afc8
GJL
108872013-02-28 Georg-Johann Lay <avr@gjlay.de>
10888
10889 PR target/56445
10890 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
10891 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
10892 INTX_FTYPE_FX, FX_FTYPE_INTX.
10893 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
10894
c7b1fc1b
GJL
108952013-02-28 Georg-Johann Lay <avr@gjlay.de>
10896
10897 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
10898 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
10899 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
10900 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
10901 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
10902 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
10903 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
10904 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
10905 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
10906 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
10907 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
10908 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
10909 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
10910 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
10911 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
10912 (avrxmega6): Increase max flash segments from 5 to 6.
10913 * config/avr/t-multilib: Regenerate.
10914 * config/avr/avr-tables.opt: Regenerate.
10915 * doc/avr-mmcu.texi: Regenerate.
10916
4a0e3cfe
GJL
109172013-02-28 Georg-Johann Lay <avr@gjlay.de>
10918
10919 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
10920 (avr_device_to_arch): Rename to avr_device_to_ld.
10921 (avr_device_to_as): New prototype.
10922 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
10923 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
10924 * config/avr/driver-avr.c (avr_device_to_as): New.
10925 (avr_device_to_arch): Rename to avr_device_to_ld.
10926
97785e52
JJ
109272013-02-27 Jakub Jelinek <jakub@redhat.com>
10928
3f292312
JJ
10929 PR middle-end/56461
10930 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
10931 method on dr_chain and result_chain.
10932
a344216b
JJ
10933 PR middle-end/56461
10934 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
10935 pointer_set_destroy on not_executed_last_iteration.
10936
f121ad02 10937 PR middle-end/56461
88b97037 10938 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
f121ad02 10939
307f83a3
JJ
10940 PR middle-end/56461
10941 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
10942 FOR_EACH_DEFINED_FUNCTION when freeing state.
10943
e19624ee
JJ
10944 PR middle-end/56461
10945 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
10946 pool_free.
10947 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
10948 overwriting it.
10949
90e709fd
JJ
10950 PR middle-end/56461
10951 * ipa-cp.c (decide_whether_version_node): Call vec_free on
10952 known_aggs[i].items and release known_aggs vector.
10953
97785e52
JJ
10954 PR middle-end/56461
10955 * ipa-reference.c (propagate): Free node_info even for alias nodes.
10956
109572013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
bbb3a9e2 10958
97785e52
JJ
10959 * config/microblaze/microblaze.c (microblaze_emit_compare):
10960 Use xor for EQ/NE comparisions.
10961 * config/microblaze/microblaze.md (cstoresf4): Add constraints
10962 (cbranchsf4): Adjust operator to comparison_operator.
bbb3a9e2 10963
6fa5e0ed
JJ
109642013-02-27 Jakub Jelinek <jakub@redhat.com>
10965
10966 PR middle-end/56461
10967 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
10968 vector.
10969 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
10970 vec_safe_push, always update *slot.
10971 (redirect_edge_var_map_clear): Use vec_free.
10972 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
10973 (free_var_map_entry): Use vec_free.
10974 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
10975 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
10976
436a956a
AB
109772013-02-27 Andrey Belevantsev <abel@ispras.ru>
10978
10979 PR middle-end/45472
436a956a
AB
10980 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
10981 when the may_trap_p bit of the exprs being merged differs.
436a956a
AB
10982 Reorder tests for speculativeness in the logical and operator.
10983
f5c2caca
JJ
109842013-02-27 Jakub Jelinek <jakub@redhat.com>
10985
0fcb564b
JJ
10986 * incpath.c (add_standard_paths): Use reconcat instead of concat
10987 where appropriate and avoid leaking memory.
10988
dc357798
JJ
10989 * opts.h: Include obstack.h.
10990 (opts_concat): New prototype.
10991 (opts_obstack): New declaration.
10992 * opts.c (opts_concat): New function.
10993 (opts_obstack): New variable.
10994 (init_options_struct): Call gcc_init_obstack on opts_obstack.
10995 (finish_options): Use opts_concat instead of concat
10996 and XOBNEWVEC instead of XNEWVEC.
10997 * opts-common.c (generate_canonical_option, decode_cmdline_option,
10998 generate_option): Likewise.
10999 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
11000 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
11001
f5c2caca
JJ
11002 PR target/56455
11003 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
11004 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
11005
d0163673
JJ
110062013-02-26 Jakub Jelinek <jakub@redhat.com>
11007
11008 PR middle-end/56461
11009 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
11010
b5ad2b8e
JR
110112013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
11012
11013 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
11014 (arm_block_move_unaligned_straight): Likewise.
11015 (arm_adjust_block_mem): Likewise.
11016
9b639e2c
JR
110172013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
11018
11019 PR target/48901
11020 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
11021 temp, cond and label.
11022 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
11023
e13a0ccb
JR
11024 PR target/52500
11025 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
11026 * config/c6x/c6x.h (dbx_register_map): Update declaration.
11027
fbe4f171
JR
11028 PR target/52501
11029 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
11030 of prologue/epilogue functions.
11031
ae006543
JR
11032 PR target/52550
11033 * config/tilegx/tilegx.c (tilegx_expand_prologue):
11034 Remove unused variable cfa_offset.
11035 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
11036
c81369fa
JR
11037 PR target/54639
11038 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
11039 type promotion to unsigned.
11040
f8a8fea7
JR
11041 PR target/54640
11042 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
11043 for HOST_WIDE_INT of 32 bit / same size as int.
11044 (arm_block_move_unaligned_straight): Likewise.
11045 (arm_adjust_block_mem): Likewise.
11046
f8be5169
JR
11047 PR target/54662
11048 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
11049 ALL_CFLAGS.
11050
f1ad3354
MP
110512013-02-26 Marek Polacek <polacek@redhat.com>
11052
11053 PR tree-optimization/56426
88b97037 11054 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
f1ad3354 11055
a6af0f42
RB
110562013-02-26 Richard Biener <rguenther@suse.de>
11057
11058 PR target/56444
11059 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
11060 unused variable loops.
11061
aca43c6c
JJ
110622013-02-26 Jakub Jelinek <jakub@redhat.com>
11063
cecbe5d9
JJ
11064 PR tree-optimization/56448
11065 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
11066 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
11067 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
11068 later operands of the references, or even first operand for
11069 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
11070
aca43c6c
JJ
11071 PR tree-optimization/56443
11072 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
11073 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
11074 to type_for_mode langhook.
11075
53e2e141
MT
110762013-02-25 Matt Turner <mattst88@gmail.com>
11077
11078 * doc/invoke.texi: Document r4700.
11079
259ee451
RB
110802013-02-25 Richard Biener <rguenther@suse.de>
11081
11082 PR tree-optimization/56175
11083 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
11084 split out from ...
11085 (simplify_bitwise_binary): ... here. Also guard the conversion
11086 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
11087
6d65e8f1
CM
110882013-02-25 Catherine Moore <clm@codesourcery.com>
11089
11090 Revert:
11091 2013-02-24 Catherine Moore <clm@codesourcery.com>
11092 Maciej W. Rozycki <macro@codesourcery.com>
11093 Tom de Vries <tom@codesourcery.com>
a72d8780 11094 Nathan Sidwell <nathan@codesourcery.com>
6d65e8f1
CM
11095 Iain Sandoe <iain@codesourcery.com>
11096 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 11097 Chao-ying Fu <fu@mips.com>
88b97037 11098
6d65e8f1 11099 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 11100 Document new function attributes.
6d65e8f1
CM
11101 * doc/invoke.texi (minterlink-compressed, mmicromips,
11102 m14k, m14ke, m14kec): Document new options.
11103 (minterlink-mips16): Update documentation.
11104 * doc/md.texi (ZC, ZD): Document new constraints.
11105 * configure.ac (gcc_cv_as_micromips): Check if linker
11106 supports the .set micromips directive.
11107 * configure: Regenerate.
11108 * config.in: Regenerate.
11109 * config/mips/mips-tables.opt: Regenerate.
11110 * config/mips/micromips.md: New file.
11111 * constraints.md (ZC, AD): New constraints.
11112 * config/mips/predicates.md (movep_src_register): New predicate.
11113 (movep_src_operand): New predicate.
11114 (non_volatile_mem_operand): New predicate.
11115 * config/mips/mips.md (multimem): New type.
11116 (length): Differentiate between 17-bit and 18-bit branch offsets.
11117 (MOVEP1, MOVEP2): New mode iterator.
11118 (mov_<load>l): Use ZC constraint.
11119 (mov_<load>r): Likewise.
11120 (mov_<store>l): Likewise.
11121 (mov_<store>r): Likewise.
11122 (*branch_equality<mode>_inverted): Add microMIPS support.
11123 (*branch_equality<mode>): Likewise.
11124 (*jump_absolute): Likewise.
11125 (indirect_jump_<mode>): Likewise.
11126 (tablejump_<mode>): Likewise.
11127 (<optab>_internal): Likewise.
11128 (sibcall_internal): Likewise.
11129 (sibcall_value_internal): Likewise.
11130 (prefetch): Use constraint ZD.
11131 * config/mips/mips.opt (minterlink-compressed): New option.
11132 (minterlink-mips16): Now an alias for minterlink-compressed.
11133 (mmicromips): New option.
11134 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
11135 (compare_and_swap_12): Likewise.
11136 (sync_add<mode>): Likewise.
11137 (sync_<optab>_12): Likewise.
11138 (sync_old_<optab>_12): Likewise.
11139 (sync_new_<optab>_12): Likewise.
11140 (sync_nand_12): Likewise.
11141 (sync_old_nand_12): Likewise.
11142 (sync_new_nand_12): Likewise.
11143 (sync_sub<mode>): Likewise.
11144 (sync_old_add<mode>): Likewise.
11145 (sync_old_sub<mode>): Likewise.
11146 (sync_new_add<mode>): Likewise.
11147 (sync_new_sub<mode>): Likewise.
11148 (sync_<optab><mode>): Likewise.
11149 (sync_old_<optab><mode>): Likewise.
11150 (sync_new_<optab><mode>): Likewise.
11151 (sync_nand<mode>): Likewise.
11152 (sync_old_nand<mode>): Likewise.
11153 (sync_new_nand<mode>): Likewise.
11154 (sync_lock_test_and_set<mode>): Likewise.
11155 (test_and_set_12): Likewise.
11156 (atomic_compare_and_swap<mode>): Likewise.
11157 (atomic_exchange<mode>_llsc): Likewise.
11158 (atomic_fetch_add<mode>_llsc): Likewise.
11159 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
11160 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
11161 (umips_save_restore_pattern_p): Likewise.
11162 (umips_load_store_pair_p): Likewise.
11163 (umips_output_load_store_pair): Likewise.
11164 (umips_movep_target_p): Likewise.
11165 (umips_12bit_offset_address_p): Likewise.
11166 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
11167 (mips_base_mips16): Rename this...
11168 (mips_base_compression_flags): ...to this. Update all uses.
11169 (mips_attribute_table): Add micromips, nomicromips and nocompression.
11170 (mips_mips16_decl_p): Delete.
11171 (mips_nomips16_decl_p): Delete.
11172 (mips_get_compress_on_flags): New function.
11173 (mips_get_compress_off_flags): New function.
11174 (mips_get_compress_mode): New function.
11175 (mips_get_compress_on_name): New function.
11176 (mips_get_compress_off_name): New function.
11177 (mips_insert_attributes): Support multiple compression types.
11178 (mips_merge_decl_attributes): Likewise.
11179 (umips_12bit_offset_address_p): New function.
11180 (mips_start_function_definition): Emit .set micromips directive.
11181 (mips_call_may_need_jalx_p): New function.
11182 (mips_function_ok_for_sibcall): Add microMIPS support.
11183 (mips_print_operand_punctuation): Support short delay slots and
11184 compact jumps.
11185 (umips_swm_mask, umips_swm_encoding): New.
11186 (umips_build_save_restore): New function.
11187 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
11188 (was_mips16_p): Remove.
11189 (old_compression_mode): New.
11190 (mips_set_compression_mode): New function.
11191 (mips_set_current_function): Add microMIPS support.
11192 (mips_option_override): Likewise.
11193 (umips_save_restore_pattern_p): New function.
11194 (umips_output_save_restore): New function.
11195 (umips_load_store_pair_p_1): New function.
11196 (umips_load_store_pair_p): New function.
11197 (umips_output_load_store_pair_1): New function.
11198 (umips_output_load_store_pair): New function.
11199 (umips_movep_target_p) New function.
11200 (mips_prepare_pch_save): Add microMIPS support.
11201 * config/mips/mips.h (TARGET_COMPRESSION): New.
11202 (TARGET_CPU_CPP_BUILTINS): Update macro
11203 to use new compression flags and to support microMIPS.
11204 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
11205 (MIPS_ARCH_FLOAT_SPEC): Likewise.
11206 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
11207 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
11208 (ASM_SPEC): Support mmicromips and mno-micromips.
11209 (M16STORE_REG_P): New macro.
11210 (MIPS_CALL): Support TARGET_MICROMIPS.
11211 (MICROMIPS_J): New macro.
11212 (mips_base_mips16): Rename this...
11213 (mips_base_compression_flags): ...to this.
11214 (UMIPS_12BIT_OFFSET_P): New macro.
11215 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
11216 (MULTILIB_DIRNAMES): Likewise.
11217
5e5df392
TV
112182013-02-25 Tom de Vries <tom@codesourcery.com>
11219
11220 PR rtl-optimization/56131
11221 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
11222 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
11223 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
11224
3fdb53c1
TB
112252013-02-25 Tobias Burnus <burnus@net-b.de>
11226
11227 * doc/invoke.texi (-fsanitize=): Move from optimization
11228 to debugging options.
11229
ed358aea
AB
112302013-02-25 Andrey Belevantsev <abel@ispras.ru>
11231
11232 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
11233
f45e9053
AB
112342013-02-25 Andrey Belevantsev <abel@ispras.ru>
11235 Alexander Monakov <amonakov@ispras.ru>
11236
11237 PR middle-end/56077
11238 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
11239 flush pending lists also on non-jumps. Adjust comment.
11240
6941b508
CM
112412013-02-24 Catherine Moore <clm@codesourcery.com>
11242 Maciej W. Rozycki <macro@codesourcery.com>
11243 Tom de Vries <tom@codesourcery.com>
a72d8780 11244 Nathan Sidwell <nathan@codesourcery.com>
6941b508
CM
11245 Iain Sandoe <iain@codesourcery.com>
11246 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 11247 Chao-ying Fu <fu@mips.com>
6941b508
CM
11248
11249 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 11250 Document new function attributes.
6941b508
CM
11251 * doc/invoke.texi (minterlink-compressed, mmicromips,
11252 m14k, m14ke, m14kec): Document new options.
11253 (minterlink-mips16): Update documentation.
11254 * doc/md.texi (ZC, ZD): Document new constraints.
11255 * configure.ac (gcc_cv_as_micromips): Check if linker
11256 supports the .set micromips directive.
11257 * configure: Regenerate.
11258 * config.in: Regenerate.
11259 * config/mips/mips-tables.opt: Regenerate.
11260 * config/mips/micromips.md: New file.
11261 * constraints.md (ZC, AD): New constraints.
11262 * config/mips/predicates.md (movep_src_register): New predicate.
11263 (movep_src_operand): New predicate.
11264 (non_volatile_mem_operand): New predicate.
11265 * config/mips/mips.md (multimem): New type.
11266 (length): Differentiate between 17-bit and 18-bit branch offsets.
11267 (MOVEP1, MOVEP2): New mode iterator.
3fdb53c1 11268 (mov_<load>l): Use ZC constraint.
6941b508
CM
11269 (mov_<load>r): Likewise.
11270 (mov_<store>l): Likewise.
11271 (mov_<store>r): Likewise.
11272 (*branch_equality<mode>_inverted): Add microMIPS support.
11273 (*branch_equality<mode>): Likewise.
11274 (*jump_absolute): Likewise.
11275 (indirect_jump_<mode>): Likewise.
11276 (tablejump_<mode>): Likewise.
11277 (<optab>_internal): Likewise.
11278 (sibcall_internal): Likewise.
11279 (sibcall_value_internal): Likewise.
11280 (prefetch): Use constraint ZD.
11281 * config/mips/mips.opt (minterlink-compressed): New option.
11282 (minterlink-mips16): Now an alias for minterlink-compressed.
11283 (mmicromips): New option.
11284 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
11285 (compare_and_swap_12): Likewise.
11286 (sync_add<mode>): Likewise.
11287 (sync_<optab>_12): Likewise.
11288 (sync_old_<optab>_12): Likewise.
11289 (sync_new_<optab>_12): Likewise.
11290 (sync_nand_12): Likewise.
11291 (sync_old_nand_12): Likewise.
11292 (sync_new_nand_12): Likewise.
11293 (sync_sub<mode>): Likewise.
11294 (sync_old_add<mode>): Likewise.
11295 (sync_old_sub<mode>): Likewise.
11296 (sync_new_add<mode>): Likewise.
11297 (sync_new_sub<mode>): Likewise.
11298 (sync_<optab><mode>): Likewise.
11299 (sync_old_<optab><mode>): Likewise.
11300 (sync_new_<optab><mode>): Likewise.
11301 (sync_nand<mode>): Likewise.
11302 (sync_old_nand<mode>): Likewise.
11303 (sync_new_nand<mode>): Likewise.
11304 (sync_lock_test_and_set<mode>): Likewise.
11305 (test_and_set_12): Likewise.
11306 (atomic_compare_and_swap<mode>): Likewise.
11307 (atomic_exchange<mode>_llsc): Likewise.
11308 (atomic_fetch_add<mode>_llsc): Likewise.
11309 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
11310 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
11311 (umips_save_restore_pattern_p): Likewise.
11312 (umips_load_store_pair_p): Likewise.
11313 (umips_output_load_store_pair): Likewise.
11314 (umips_movep_target_p): Likewise.
11315 (umips_12bit_offset_address_p): Likewise.
11316 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
11317 (mips_base_mips16): Rename this...
11318 (mips_base_compression_flags): ...to this. Update all uses.
11319 (mips_attribute_table): Add micromips, nomicromips and nocompression.
11320 (mips_mips16_decl_p): Delete.
11321 (mips_nomips16_decl_p): Delete.
3fdb53c1 11322 (mips_get_compress_on_flags): New function.
6941b508
CM
11323 (mips_get_compress_off_flags): New function.
11324 (mips_get_compress_mode): New function.
11325 (mips_get_compress_on_name): New function.
11326 (mips_get_compress_off_name): New function.
11327 (mips_insert_attributes): Support multiple compression types.
11328 (mips_merge_decl_attributes): Likewise.
11329 (umips_12bit_offset_address_p): New function.
11330 (mips_start_function_definition): Emit .set micromips directive.
11331 (mips_call_may_need_jalx_p): New function.
11332 (mips_function_ok_for_sibcall): Add microMIPS support.
11333 (mips_print_operand_punctuation): Support short delay slots and
11334 compact jumps.
11335 (umips_swm_mask, umips_swm_encoding): New.
11336 (umips_build_save_restore): New function.
11337 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
11338 (was_mips16_p): Remove.
11339 (old_compression_mode): New.
11340 (mips_set_compression_mode): New function.
11341 (mips_set_current_function): Add microMIPS support.
11342 (mips_option_override): Likewise.
11343 (umips_save_restore_pattern_p): New function.
11344 (umips_output_save_restore): New function.
11345 (umips_load_store_pair_p_1): New function.
11346 (umips_load_store_pair_p): New function.
11347 (umips_output_load_store_pair_1): New function.
11348 (umips_output_load_store_pair): New function.
11349 (umips_movep_target_p) New function.
11350 (mips_prepare_pch_save): Add microMIPS support.
11351 * config/mips/mips.h (TARGET_COMPRESSION): New.
11352 (TARGET_CPU_CPP_BUILTINS): Update macro
11353 to use new compression flags and to support microMIPS.
11354 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
11355 (MIPS_ARCH_FLOAT_SPEC): Likewise.
11356 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
11357 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
11358 (ASM_SPEC): Support mmicromips and mno-micromips.
11359 (M16STORE_REG_P): New macro.
11360 (MIPS_CALL): Support TARGET_MICROMIPS.
11361 (MICROMIPS_J): New macro.
11362 (mips_base_mips16): Rename this...
11363 (mips_base_compression_flags): ...to this.
11364 (UMIPS_12BIT_OFFSET_P): New macro.
11365 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
11366 (MULTILIB_DIRNAMES): Likewise.
11367
cdebbc6d
JJ
113682013-02-24 Jakub Jelinek <jakub@redhat.com>
11369
11370 PR target/52555
11371 * target-globals.c (save_target_globals): For init_reg_sets and
11372 target_reinit remporarily set this_fn_optabs to this_target_optabs.
11373
18c63565
JG
113742013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
11375
11376 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
11377 * config/aarch64/t-aarch64
11378 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
11379
2194f7a2
VM
113802013-02-22 Vladimir Makarov <vmakarov@redhat.com>
11381
11382 PR inline-asm/56148
11383 * lra-constraints.c (process_alt_operands): Reload operand
11384 conflicting with earlier clobber only if no more other conflicting
11385 operands.
11386
7d613735
JJ
113872013-02-22 Jakub Jelinek <jakub@redhat.com>
11388
11389 PR sanitizer/56393
11390 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
11391 if not linking a shared library.
11392
ac8d93a7
SL
113932013-02-22 Seth LaForge <sethml@google.com>
11394
11395 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
11396
e0237780
GY
113972013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
11398
3fdb53c1
TB
11399 * config/arm/arm.md (split for extendsidi): Update condition.
11400 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
11401 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
11402 (qhs_zextenddi_cstr): Likewise.
e0237780 11403
d7fde18c
JJ
114042013-02-21 Jakub Jelinek <jakub@redhat.com>
11405
be63b77d
JJ
11406 PR middle-end/56420
11407 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
11408 avoid signed wrapping.
11409 (expand_mult): Handle properly multiplication by
11410 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
11411 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
11412 in the compiler if coeff is HOST_WIDE_INT_MIN.
11413 (expand_divmod): Don't make ext_op1 static, change it's type to
11414 uhwi. Avoid undefined behavior in -INTVAL (op1).
11415
d7fde18c
JJ
11416 PR rtl-optimization/50339
11417 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
11418 field.
11419 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
11420 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
11421 into splitting_ashiftrt field.
11422 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
11423 ASHIFTRT.
11424 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
11425 choices.
11426
6aad4455
AH
114272013-02-20 Aldy Hernandez <aldyh@redhat.com>
11428
11429 PR middle-end/56108
11430 * trans-mem.c (execute_tm_mark): Do not expand transactions that
11431 are sure to go irrevocable.
11432
38fe784d
HPN
114332013-02-21 Hans-Peter Nilsson <hp@axis.com>
11434
11435 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
11436 scalars are valid operands.
11437
0fd44da3
MJ
114382013-02-21 Martin Jambor <mjambor@suse.cz>
11439
11440 PR tree-optimization/56310
11441 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
11442 only matching indices and non-negative final offsets.
11443 (intersect_aggregates_with_edge): Pass src_idx to
11444 agg_replacements_to_vector. Pass src_idx insstead of index to
11445 intersect_with_agg_replacements.
11446
7a92038b
MJ
114472013-02-21 Martin Jambor <mjambor@suse.cz>
11448
11449 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
11450 instead of hard-wired defaults.
11451
c0da9c37
MR
114522013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
11453
11454 * doc/invoke.texi (MIPS Options): Update documentation of the
11455 floating-point multiply-accumulate instruction restrictions.
11456
d247ea0c 114572013-02-21 Kostya Serebryany <kcc@google.com>
7df59255
KS
11458
11459 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
11460 asan_shadow_offset on x86_64 linux.
11461
22deefcb
RB
114622013-02-21 Richard Biener <rguenther@suse.de>
11463
11464 PR tree-optimization/56415
11465 Revert
11466 2013-02-11 Richard Biener <rguenther@suse.de>
11467
11468 PR tree-optimization/56273
11469 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
11470 first VRP run.
11471
7bcc6e75
JJ
114722013-02-21 Jakub Jelinek <jakub@redhat.com>
11473
a0ad148f
JJ
11474 PR bootstrap/56258
11475 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
11476 instead of @itemx.
11477
7bcc6e75
JJ
11478 PR inline-asm/56405
11479 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
11480 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
11481
a0a7b611
JH
114822013-02-20 Jan Hubicka <jh@suse.cz>
11483
11484 PR tree-optimization/56265
88b97037
UB
11485 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
11486 when target is referenced for first time.
a0a7b611 11487
c0e50f72
RB
114882013-02-20 Richard Biener <rguenther@suse.de>
11489
11490 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
11491 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
11492 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
11493 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
11494 not return anything.
11495 (rename_ssa_copies): Do not remove unused locals.
11496 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
88b97037 11497 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
c0e50f72
RB
11498 * passes.c (execute_function_todo): Do not schedule unused locals
11499 removal if cleanup_tree_cfg did something.
11500 * tree-ssa-live.c (remove_unused_locals): Dump statistics
11501 about the number of removed locals.
11502
a52ca739
RB
115032013-02-20 Richard Biener <rguenther@suse.de>
11504
11505 PR tree-optimization/56398
88b97037 11506 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
a52ca739 11507
ec9c9d1b
MJ
115082013-02-20 Martin Jambor <mjambor@suse.cz>
11509
11510 PR tree-optimization/55334
11511 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
11512 restricted pointers to arrays.
11513
e91c8ed6 115142013-02-20 Richard Biener <rguenther@suse.de>
88b97037 11515 Jakub Jelinek <jakub@redhat.com>
e91c8ed6
RB
11516
11517 PR tree-optimization/56396
11518 * tree-ssa-ccp.c (n_const_val): New static variable.
11519 (get_value): Return NULL for SSA names we don't have a lattice
11520 entry for.
11521 (ccp_initialize): Initialize n_const_val.
11522 * tree-ssa-copy.c (n_copy_of): New static variable.
11523 (init_copy_prop): Initialize n_copy_of.
11524 (get_value): Return NULL_TREE for SSA names we don't have a
11525 lattice entry for.
11526
3d916479
MJ
115272013-02-20 Martin Jambor <mjambor@suse.cz>
11528
11529 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
11530
71a86758
RB
115312013-02-20 Richard Biener <rguenther@suse.de>
11532
11533 * genpreds.c (write_lookup_constraint): Do not compare first
11534 letter of the constraint again.
11535
79836a12
RB
115362013-02-20 Richard Biener <rguenther@suse.de>
11537
11538 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
11539 and ceil_log2.
11540 (get_use_iv_cost): Terminate hashtable walk when coming across
11541 an empty entry.
11542
bbe4fb2c
IZ
115432013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
11544
11545 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
11546 reassociation for avx2 targets.
11547
a72d8780 115482012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
79836a12 11549
c77f83d5
EI
11550 * config/microblaze/microblaze.c: microblaze_has_clz = 0
11551 Add version check for v8.10.a to enable microblaze_has_clz
88b97037 11552 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
c77f83d5
EI
11553 version and TARGET_PATTERN_COMPARE check
11554 * config/microblaze/microblaze.md: New clzsi2 instruction
3fdb53c1 11555
a72d8780 115562012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
959434e6 11557
a72d8780 11558 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
959434e6
EI
11559 function before branching.
11560
242387fa
AB
115612012-02-19 Andrey Belevantsev <abel@ispras.ru>
11562
11563 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
11564 DUMP_INSN_RTX_UID.
11565 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
11566
b4979ab9
AB
115672012-02-19 Andrey Belevantsev <abel@ispras.ru>
11568
11569 PR middle-end/55889
b4979ab9
AB
11570 * sel-sched.c: Include ira.h.
11571 (implicit_clobber_conflict_p): New function.
11572 (moveup_expr): Use it.
88b97037 11573 * Makefile.in (sel-sched.o): Depend on ira.h.
b4979ab9 11574
24d63016
RB
115752013-02-19 Richard Biener <rguenther@suse.de>
11576
11577 PR tree-optimization/56384
11578 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
11579 (vn_hash_type): Split out from ...
11580 (vn_hash_constant_with_type): ... here.
11581 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
11582 (vn_phi_eq): Compare types from vn_phi_s structure.
11583 (vn_phi_lookup): Populate vn_phi_s type.
11584 (vn_phi_insert): Likewise.
11585
a475fd3d
JJ
115862013-02-19 Jakub Jelinek <jakub@redhat.com>
11587
47cc28f5
JJ
11588 PR tree-optimization/56350
11589 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
11590 if haven't found reduction or nested cycle operand, rather than
11591 asserting we must find it.
11592
a475fd3d
JJ
11593 PR tree-optimization/56381
11594 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
11595 to fold_build3.
11596
115972013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
11598 Jakub Jelinek <jakub@redhat.com>
11599
11600 PR target/52555
11601 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
11602 (swap_optab_enable): Same.
11603 (init_all_optabs): Use argument instead of global.
88b97037 11604 * tree.h (struct tree_optimization_option): New field target_optabs.
135204dd
AH
11605 * expr.h (init_all_optabs): Add argument to prototype.
11606 (TREE_OPTIMIZATION_OPTABS): New.
11607 (save_optabs_if_changed): Protoize.
11608 * optabs.h: Declare this_fn_optabs.
11609 * optabs.c (save_optabs_if_changed): New.
11610 Declare this_fn_optabs.
11611 (init_optabs): Add argument to init_all_optabs() call.
11612 * function.c (invoke_set_current_function_hook): Handle per
11613 function optabs.
11614 * function.h (struct function): New field optabs.
11615 * config/mips/mips.c (mips_set_mips16_mode): Handle when
11616 optimization_current_node has changed.
11617 * target-globals.h (save_target_globals_default_opts): Protoize.
11618 * target-globals.c (save_target_globals_default_opts): New.
11619
3f587ca3
JDA
116202013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11621
11622 PR target/56347
11623 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
11624 registers %fr12 and %fr12R as call used.
ceaca33e
JDA
11625
11626 PR target/56214
11627 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
88b97037
UB
11628 and HImode, require all displacements to be an integer multiple of
11629 their mode size.
ceaca33e
JDA
11630 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
11631 only allow QImode and HImode when reload is in progress and strict is
11632 true. Likewise for symbolic addresses. Use base14_operand to check
11633 displacements in REG+BASE addresses.
11634
fe0b4796
RB
116352013-02-18 Richard Biener <rguenther@suse.de>
11636
11637 PR tree-optimization/56366
11638 * tree-vect-loop.c (get_initial_def_for_induction): Properly
11639 handle sign-conversion of outer-loop initial induction value.
11640
6aaf596b
RB
116412013-02-18 Richard Biener <rguenther@suse.de>
11642
73db8ff1 11643 PR middle-end/56349
6aaf596b
RB
11644 * cfghooks.c (merge_blocks): If we merge a latch into another
11645 block adjust references to it.
11646 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
11647 (verify_loop_structure): Verify that a recorded latch is in fact
11648 a latch.
11649
5e97dfb6
RB
116502013-02-18 Richard Biener <rguenther@suse.de>
11651
11652 PR tree-optimization/56321
11653 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
11654 order SSA name release and virtual operand unlinking.
11655
825527e8
EI
116562013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11657
11658 * config/microblaze/microblaze.md (save_stack_block): Define.
11659 (restore_stack_block): Likewise.
11660
debd11d9
EI
116612013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11662
11663 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
11664 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
11665 * config/microblaze/microblaze.c (microblaze_option_override):
11666 Bail out early for PIC modes when target does not support PIC.
11667
8ec77be0
EI
116682013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11669
88b97037 11670 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
8ec77be0
EI
11671 Replace with a microblaze version.
11672 (microblaze_trampoline_init): Adapt for microblaze.
a752b80f 11673 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
8ec77be0
EI
11674 microblaze.
11675
b41288b3
JJ
116762013-02-16 Jakub Jelinek <jakub@redhat.com>
11677 Dodji Seketeli <dodji@redhat.com>
11678
11679 PR asan/56330
88b97037 11680 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
b41288b3
JJ
11681 (instrument_mem_region_access): Do not forget to always put
11682 instrumentation of the of 'base' and 'base + len' in a "if (len !=
11683 0) statement, even for cases where either 'base' or 'base + len'
11684 are not instrumented -- because they have been previously
11685 instrumented. Simplify the logic by putting all the statements
11686 instrument 'base + len' inside a sequence, and then insert that
11687 sequence right before the current insertion point. Then, to
11688 instrument 'base + len', just get an iterator on that statement.
11689 And do not forget to update the pointer to iterator the function
11690 received as argument.
11691
47918951
VM
116922013-02-15 Vladimir Makarov <vmakarov@redhat.com>
11693
11694 PR rtl-optimization/56348
11695 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
11696
3fb7c699
SB
116972013-02-15 Steven Bosscher <steven@gcc.gnu.org>
11698
11699 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
11700 (clean_graph_dump_file): Pass base to start_graph_dump.
11701
576fe41a
RH
117022013-02-14 Richard Henderson <rth@redhat.com>
11703
11704 PR target/55941
11705 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
11706
bb3accfa
SB
117072013-02-14 Steven Bosscher <steven@gcc.gnu.org>
11708
11709 * collect2-aix.h: Define F_LOADONLY.
11710
03143140
RB
117112013-02-14 Richard Biener <rguenther@suse.de>
11712
11713 PR lto/50494
11714 * varasm.c (output_constant_def_1): Get the decl representing
11715 the constant as argument.
11716 (output_constant_def): Wrap output_constant_def_1.
11717 (make_decl_rtl): Use output_constant_def_1 with the decl
11718 representing the constant.
11719 (build_constant_desc): Optionally re-use a decl already
11720 representing the constant.
11721 (tree_output_constant_def): Adjust.
11722
8fb06726
DS
117232013-02-14 Dodji Seketeli <dodji@redhat.com>
11724
11725 Fix an asan crash
11726 * asan.c (instrument_builtin_call): Really put the length of the
11727 second source argument into src1_len.
11728
c4bfe8bf
JJ
117292013-02-13 Jakub Jelinek <jakub@redhat.com>
11730
11731 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
11732 argument. If it is false, don't create edge from then_bb to
11733 fallthru_bb.
11734 (insert_if_then_before_iter): Pass true to it.
11735 (build_check_stmt): Pass false to it.
11736 (transform_statements): Flush hash table only on extended basic
11737 block boundaries, rather than at the beginning of every bb.
11738 Don't flush hash table on nonfreeing_call_p calls.
11739 * tree-flow.h (nonfreeing_call_p): New prototype.
11740 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
11741
7afe2801
DM
117422013-02-13 David S. Miller <davem@davemloft.net>
11743
11744 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
11745
70cc3288
VM
117462013-02-13 Vladimir Makarov <vmakarov@redhat.com>
11747
11748 PR target/56184
11749 * ira.c (max_regno_before_ira): Move from ...
11750 (ira): ... here.
11751 (fix_reg_equiv_init): Use max_regno_before_ira instead of
11752 vec_safe_length.
11753
6422242b
JJ
117542013-02-13 Jakub Jelinek <jakub@redhat.com>
11755
11756 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
11757
976a81ee
RB
117582013-02-13 Richard Biener <rguenther@suse.de>
11759
11760 PR lto/56295
11761 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
11762 globals in MEM_REFs.
11763
c1874a87
RB
117642013-02-13 Richard Biener <rguenther@suse.de>
11765
11766 * loop-init.c (loop_optimizer_init): Clear loop state when
11767 re-initializing preserved loops.
11768 * loop-unswitch.c (unswitch_single_loop): Return whether
11769 we unswitched the loop. Do not verify loop state here.
88b97037 11770 (unswitch_loops): When we unswitched a loop discover new loops.
c1874a87 11771
b4ab7d34
KS
117722013-02-13 Kostya Serebryany <kcc@google.com>
11773
88b97037
UB
11774 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
11775 on x86_64 linux.
b4ab7d34
KS
11776 * sanitizer.def: Rename __asan_init to __asan_init_v1.
11777
bdcbe80c
DS
117782013-02-12 Dodji Seketeli <dodji@redhat.com>
11779
11780 Avoid instrumenting duplicated memory access in the same basic block
11781 * Makefile.in (asan.o): Add new dependency on hash-table.h
11782 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
11783 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
11784 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
11785 (free_mem_ref_resources, has_mem_ref_been_instrumented)
11786 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
11787 (get_mem_ref_of_assignment): New functions.
11788 (get_mem_refs_of_builtin_call): Extract from
11789 instrument_builtin_call and tweak a little bit to make it fit with
11790 the new signature.
11791 (instrument_builtin_call): Use the new
11792 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
11793 of is_gimple_builtin_call.
11794 (instrument_derefs, instrument_mem_region_access): Insert the
11795 instrumented memory reference into the hash table.
11796 (maybe_instrument_assignment): Renamed instrument_assignment into
11797 this, and change it to advance the iterator when instrumentation
11798 actually happened and return true in that case. This makes it
11799 homogeneous with maybe_instrument_assignment, and thus give a
11800 chance to callers to be more 'regular'.
11801 (transform_statements): Clear the memory reference hash table
11802 whenever we enter a new BB, when we cross a function call, or when
11803 we are done transforming statements. Use
11804 maybe_instrument_assignment instead of instrumentation. No more
11805 need to special case maybe_instrument_assignment and advance the
11806 iterator after calling it; it's now handled just like
11807 maybe_instrument_call. Update comment.
11808
4861a1f7
RB
118092013-02-13 Richard Biener <rguenther@suse.de>
11810
11811 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
11812 Fix loop discovery code.
11813
1c86bd80
VM
118142013-02-12 Vladimir Makarov <vmakarov@redhat.com>
11815
11816 PR inline-asm/56148
11817 * lra-constraints.c (process_alt_operands): Match early clobber
70cc3288 11818 operand with itself. Check conflicts with earlyclobber only if
1c86bd80
VM
11819 the operand is not reloaded. Prefer to reload conflicting operand
11820 if earlyclobber and matching operands are the same.
11821
7cbda518
RB
118222013-02-12 Richard Biener <rguenther@suse.de>
11823
11824 PR lto/56297
11825 * lto-streamer-out.c (write_symbol): Do not output symbols
11826 for hard register variables.
11827
e68a4ef6
GJL
118282013-02-12 Georg-Johann Lay <avr@gjlay.de>
11829
11830 PR target/54222
11831 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
11832 (umulsidi3_insn, mulsidi3_insn): New insns.
11833
a72d8780 118342013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
2597da22
CL
11835
11836 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
11837 (struct tune_params): Add vec_costs field.
11838 * config/arm/arm.c (arm_builtin_vectorization_cost)
11839 (arm_add_stmt_cost): New functions.
11840 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
11841 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
11842 (arm_default_vec_cost): New struct of type cpu_vec_costs.
11843 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
11844 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
11845 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
11846 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
11847
43320568
RB
118482013-02-12 Richard Biener <rguenther@suse.de>
11849
11850 PR lto/56295
11851 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
11852 decls again if possible.
11853
a011aa39
RB
118542013-02-12 Richard Biener <rguenther@suse.de>
11855
11856 PR middle-end/56288
11857 * tree-ssa.c (verify_ssa_name): Fix check, move
11858 SSA_NAME_IN_FREE_LIST check up.
11859
6da26889
JJ
118602013-02-12 Jakub Jelinek <jakub@redhat.com>
11861 Steven Bosscher <steven@gcc.gnu.org>
11862
11863 PR rtl-optimization/56151
11864 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
11865 equal to op0 or op1, and last_insn pattern is CODE operation
11866 with MEM dest and one of the operands matches that MEM.
11867
f80e0faf
ST
118682013-02-11 Sriraman Tallam <tmsriramgoogle.com>
11869
11870 * doc/extend.texi: Document Function Multiversioning and "default"
11871 parameter string to target attribute.
11872 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
11873 target attribute parameter is "default".
11874 (ix86_compare_version_priority): Remove checks for target attribute.
11875 (ix86_mangle_function_version_assembler_name): Change error to sorry.
11876 Remove check for target attribute equal to NULL. Add assert.
11877 (ix86_generate_version_dispatcher_body): Change error to sorry.
11878
6c59ffd1
IS
118792013-02-11 Iain Sandoe <iain@codesourcery.com>
11880 Jack Howarth <howarth@bromo.med.uc.edu>
11881 Patrick Marlier <patrick.marlier@gmail.com>
11882
11883 PR libitm/55693
11884 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
11885 define ENDFILE_SPEC as TM_DESTRUCTOR.
11886 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
11887
a72d8780 118882013-02-11 Alexander Potapenko <glider@google.com>
6a52ccb3
AP
11889 Jack Howarth <howarth@bromo.med.uc.edu>
11890 Jakub Jelinek <jakub@redhat.com>
11891
11892 PR sanitizer/55617
11893 * config/darwin.c (cdtor_record): Rename ctor_record.
11894 (sort_cdtor_records): Rename sort_ctor_records.
11895 (finalize_dtors): New routine to sort destructors by
11896 priority before use in assemble_integer.
11897 (machopic_asm_out_destructor): Use finalize_dtors if needed.
11898
b63fe007
UB
118992013-02-11 Uros Bizjak <ubizjak@gmail.com>
11900
11901 PR rtl-optimization/56275
11902 * simplify-rtx.c (avoid_constant_pool_reference): Check that
11903 offset is non-negative and less than cmode size before
11904 calling simplify_subreg.
11905
8e89b5b5
RB
119062013-02-11 Richard Biener <rguenther@suse.de>
11907
11908 PR tree-optimization/56264
11909 * cfgloop.h (fix_loop_structure): Adjust prototype.
11910 * loop-init.c (fix_loop_structure): Return the number of
11911 newly discovered loops.
11912 * tree-cfgcleanup.c (repair_loop_structures): When new loops
11913 are discovered, do a full loop-closed SSA rewrite.
11914
b4a4b56d
RB
119152013-02-11 Richard Biener <rguenther@suse.de>
11916
11917 PR tree-optimization/56273
11918 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
11919 first VRP run.
11920 (check_array_ref): Fix missing newline in dumps.
11921 (search_for_addr_array): Likewise.
11922
0c885229
DE
119232013-02-09 David Edelsohn <dje.gcc@gmail.com>
11924
11925 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
11926
59ac9a55
JJ
119272013-02-09 Jakub Jelinek <jakub@redhat.com>
11928
11929 PR target/56256
11930 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
11931
25bb0bb5
VM
119322013-02-08 Vladimir Makarov <vmakarov@redhat.com>
11933
11934 PR rtl-optimization/56246
0c885229 11935 * lra-constraints.c (simplify_operand_subreg): Try to reuse
25bb0bb5
VM
11936 reload pseudo.
11937 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
11938 constraints are satisfied.
11939
a698cc03
JL
119402013-02-08 Jeff Law <law@redhat.com>
11941
11942 PR debug/53948
11943 * emit-rtl.c (reg_is_parm_p): New function.
11944 * regs.h (reg_is_parm_p): New prototype.
11945 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
11946 callee-clobbered registers.
11947
e1122ddd
MM
119482013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
11949
11950 PR target/56043
11951 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
11952 If there is no implicit builtin declaration, just return NULL.
11953
19c5f6e6
UB
119542013-02-08 Uros Bizjak <ubizjak@gmail.com>
11955
11956 * config/i386/sse.md (FMAMODEM): New mode iterator.
11957 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
11958 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
11959
2480f2ca 119602013-02-08 Uros Bizjak <ubizjak@gmail.com>
76ef61fb 11961
2480f2ca
UB
11962 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
11963 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
11964 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
11965
119662013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11967
11968 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
11969 (microblaze*-*-elf): Likewise.
11970 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
11971 LINK_SPEC.
11972 * config/microblaze/microblaze-c.c: Add builtin defines for
11973 _LITTLE_ENDIAN and _BIG_ENDIAN.
11974 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
11975 add to TARGET_DEFAULT flags.
76ef61fb 11976 Expand ASM_SPEC and LINK_SPEC.
2480f2ca
UB
11977 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
11978 * config/microblaze/microblaze.md: Update extendsidi2 and
11979 movdi_internal instructions to use low-order / high-order reg
11980 print_operands.
11981 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
11982 options and inversemask / mask of LITTLE_ENDIAN.
11983 * config/microblaze/t-microblaze: Expand multilib options to
11984 include mlittle-endian (le) and update exceptions patterns.
11985
600a5961
JJ
119862013-02-08 Jakub Jelinek <jakub@redhat.com>
11987
5df81313
JJ
11988 PR rtl-optimization/56195
11989 * lra-constraints.c (get_reload_reg): Don't reuse regs
11990 if they have smaller mode than requested, if they have
11991 wider mode than requested, try to return a SUBREG.
11992
600a5961
JJ
11993 PR tree-optimization/56250
11994 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
11995 if type is unsigned and code isn't MULT_EXPR.
11996
ff544649
GJL
119972013-02-08 Georg-Johann Lay <avr@gjlay.de>
11998
11999 PR tree-optimization/56064
12000 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
12001 bits according to mode.
12002 * fixed-value.h (fixed_from_double_int)
12003 (const_fixed_from_double_int): Adjust comments.
12004
e45cde98
RB
120052013-02-08 Richard Biener <rguenther@suse.de>
12006
12007 PR lto/56231
12008 * lto-streamer.h (struct data_in): Remove current_file, current_line
12009 and current_col members.
12010 * lto-streamer-out.c (lto_output_location): Stream changed bits
12011 en-block for efficiency.
12012 * lto-streamer-in.c (clear_line_info): Remove.
12013 (lto_input_location): Cache current file, line and column
12014 globally via local statics. Read changed bits en-block.
12015 (input_function): Do not call clear_line_info.
12016 (lto_read_body): Likewise.
12017 (lto_input_toplevel_asms): Likewise.
12018
c1ca73d8
MM
120192013-02-08 Michael Matz <matz@suse.de>
12020
12021 PR tree-optimization/52448
12022 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
12023 (nt_call_phase): New static.
12024 (add_or_mark_expr): Only mark accesses with newer phase than any
12025 call seen.
12026 (nonfreeing_call_p): New.
12027 (nt_init_block): Update nt_call_phase, mark blocks as visited.
12028 (nt_fini_block): Keep blocks marked as visited.
12029 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
12030
57548aa2
RB
120312013-02-08 Richard Biener <rguenther@suse.de>
12032
12033 * ira.c (ira): Free broken dominator information.
12034
8e10366f
UB
120352013-02-08 Uros Bizjak <ubizjak@gmail.com>
12036
12037 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
12038
f64fb0fa
MP
120392013-02-08 Marek Polacek <polacek@redhat.com>
12040
8e10366f 12041 * cfgloop.c (verify_loop_structure): Add more checking of headers.
f64fb0fa 12042
0375167b
RB
120432013-02-08 Richard Biener <rguenther@suse.de>
12044
12045 PR middle-end/56181
12046 * cfgloop.h (flow_loops_find): Adjust.
12047 (bb_loop_header_p): Declare.
12048 * cfgloop.c (bb_loop_header_p): New function split out from ...
12049 (flow_loops_find): ... here. Adjust function signature,
12050 support incremental loop structure update.
12051 (verify_loop_structure): Cleanup. Verify a loop is a loop.
12052 * cfgloopmanip.c (fix_loop_structure): Move ...
12053 * loop-init.c (fix_loop_structure): ... here.
12054 (apply_loop_flags): Split out from ...
12055 (loop_optimizer_init): ... here.
12056 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
12057 in incremental mode, only remove dead loops here.
12058
85d768f3
GJL
120592013-02-08 Georg-Johann Lay <avr@gjlay.de>
12060
12061 PR target/54222
12062 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
12063 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
12064 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
12065 (*round<mode>3.libgcc): New insns for fixed-modes.
12066 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
12067 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
12068 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
12069 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
12070 implementations. Define to __builtin_avr_absFX,
12071 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
12072 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
12073 __builtin_avr_countlsFX, respectively.
12074 * config/avr/avr-c.c (target.h): Include it.
12075 (enum avr_builtin_id): New enum.
12076 (avr_resolve_overloaded_builtin): New static function.
12077 (avr_register_target_pragmas): Use it to set
12078 targetm.resolve_overloaded_builtin.
12079 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
12080 tree nodes used by DEF_BUILTIN.
12081 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
12082 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
12083 <AVR_BUILTIN_xxBITS>: Same.
12084
661bc682
RB
120852013-02-08 Richard Biener <rguenther@suse.de>
12086
12087 * cfgloop.c (verify_loop_structure): Properly handle
12088 a loop exiting to another loop header.
12089 * ira-int.h (ira_loops): Remove.
12090 * ira.c (ira_loops): Remove.
12091 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
12092 (do_reload): Use loop_optimizer_finalize.
12093 * ira-build.c (create_loop_tree_nodes): Use get_loops and
12094 number_of_loops to access the loop tree.
12095 (more_one_region_p): Likewise.
12096 (finish_loop_tree_nodes): Likewise.
12097 (rebuild_regno_allocno_maps): Likewise.
12098 (mark_loops_for_removal): Likewise.
12099 (mark_all_loops_for_removal): Likewise.
12100 (remove_unnecessary_regions): Likewise.
12101 (ira_build): Likewise.
12102 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
12103
0d5049b2
RB
121042013-02-08 Richard Biener <rguenther@suse.de>
12105
12106 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
12107 * ipa-pure-const.c (analyze_function): Avoid calling
12108 mark_irreducible_loops twice.
8e10366f 12109 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
0d5049b2 12110
499f32e8
DM
121112013-02-07 David S. Miller <davem@davemloft.net>
12112
12113 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
12114 on 'reg'.
12115 * var-tracking.c (vt_add_function_parameter): Test the presence of
12116 HAVE_window_save properly and do not remap argument registers when
12117 we have a leaf function.
12118
6edc3e32
UB
121192013-02-07 Uros Bizjak <ubizjak@gmail.com>
12120
12121 PR bootstrap/56227
12122 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
12123 instead of "ll".
12124 * config/i386/i386.c (ix86_print_operand): Ditto.
12125
5306401f
VM
121262013-02-07 Vladimir Makarov <vmakarov@redhat.com>
12127
6edc3e32 12128 * lra-constraints.c (process_alt_operands): Fix recently added comment.
5306401f 12129
027ece11
VM
121302013-02-07 Vladimir Makarov <vmakarov@redhat.com>
12131
12132 PR rtl-optimization/56225
12133 * lra-constraints.c (process_alt_operands): Check that reload hard
12134 reg can hold value for strict_low_part.
12135
f980dfdb
JJ
121362013-02-07 Jakub Jelinek <jakub@redhat.com>
12137
12138 PR debug/56154
12139 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
12140 dwarf2out_end_function.
12141 (in_first_function_p, maybe_at_text_label_p,
12142 first_loclabel_num_not_at_text_label): New variables.
12143 (dwarf2out_var_location): In the first function find out
6edc3e32 12144 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
f980dfdb
JJ
12145 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
12146 functions.
12147
73dd3123
EB
121482013-02-07 Eric Botcazou <ebotcazou@adacore.com>
12149
12150 PR rtl-optimization/56178
12151 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
12152 SUBREG of a register. Tidy up related block of code.
12153 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
12154 note if the source is a register or a SUBREG of a register.
12155
e3936f47
JJ
121562013-02-07 Jakub Jelinek <jakub@redhat.com>
12157
12158 PR target/56228
12159 * config/rs6000/rs6000.md (ptrm): New mode attr.
12160 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
12161 call_value_indirect_aix<pttrsize>,
12162 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
12163 m in constraints.
12164
d96d674b
MH
121652013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
12166
12167 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
12168 if -bnortl. Convert to strcmp and strncmp.
12169
921f2dee
AM
121702013-02-07 Alan Modra <amodra@gmail.com>
12171
12172 PR target/54009
12173 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
12174 addresses won't wrap when offsetting.
12175 (rs6000_secondary_reload): Provide secondary reloads needed for
12176 wrapping LO_SUM addresses.
12177
d09c7dba
TS
121782013-02-06 Thomas Schwinge <thomas@codesourcery.com>
12179
12180 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
12181 MACH, just __MACH__.
12182
a44bbd48
RB
121832013-02-06 Richard Biener <rguenther@suse.de>
12184
12185 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
12186 instead of calling fix_loop_structure.
12187
6d840d99
JJ
121882013-02-06 Jakub Jelinek <jakub@redhat.com>
12189
12190 PR middle-end/56217
12191 * omp-low.c (use_pointer_for_field): Return false if
12192 lower_send_shared_vars doesn't generate any copy-out code.
12193
0f33baa9
TV
121942013-02-06 Tom de Vries <tom@codesourcery.com>
12195
12196 PR rtl-optimization/56131
12197 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
12198 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
12199 of the label is NULL. Add comment.
12200
11f1e3ab
JJ
122012013-02-05 Jakub Jelinek <jakub@redhat.com>
12202
31502f9f
JJ
12203 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
12204
a74db9bd
JJ
12205 PR sanitizer/55374
12206 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
12207 (STATIC_LIBTSAN_LIBS): Likewise.
12208 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
12209 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
12210 is defined, don't add anything else beyond that.
12211 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
12212 (LINK_COMMAND_SPEC): Use them.
12213
11f1e3ab
JJ
12214 PR tree-optimization/56205
12215 * tree-stdarg.c (check_all_va_list_escapes): Return true if
12216 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
12217 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
12218
14ac6aa2
RB
122192013-02-05 Richard Biener <rguenther@suse.de>
12220
12221 PR tree-optimization/53342
12222 PR tree-optimization/53185
12223 * tree-vectorizer.h (vect_check_strided_load): Remove.
12224 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
12225 not disallow peeling for vectorized strided loads.
12226 (vect_check_strided_load): Make static and simplify.
12227 (vect_analyze_data_refs): Adjust.
12228 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
12229 correctly when vectorizing strided loads.
12230
6f22445a
RB
122312013-02-05 Richard Biener <rguenther@suse.de>
12232
12233 * doc/install.texi: Refer to ISL, not PPL.
12234
39f9719e
JH
122352013-02-05 Jan Hubicka <jh@suse.cz>
12236
ec4224ac
JH
12237 PR tree-optimization/55789
12238 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
12239
122402013-02-05 Jan Hubicka <jh@suse.cz>
12241
12242 PR tree-optimization/55789
39f9719e
JH
12243 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
12244 the dead call anyway.
12245
956d3b33
EB
122462013-02-05 Eric Botcazou <ebotcazou@adacore.com>
12247
12248 PR sanitizer/55374
12249 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
12250
122512013-02-04 Alexander Potapenko <glider@google.com>
12252 Jack Howarth <howarth@bromo.med.uc.edu>
ae526fe5
AP
12253 Jakub Jelinek <jakub@redhat.com>
12254
12255 PR sanitizer/55617
12256 * config/darwin.c (sort_ctor_records): Stabilized qsort
12257 on constructor priority by using original position.
12258 (finalize_ctors): New routine to sort constructors by
12259 priority before use in assemble_integer.
12260 (machopic_asm_out_constructor): Use finalize_ctors if needed.
12261
7ac3af38
JJ
122622013-02-04 Jakub Jelinek <jakub@redhat.com>
12263
12264 PR libstdc++/54314
12265 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
12266 about visibility on artificial decls.
12267 * config/sol2.c (solaris_assemble_visibility): Likewise.
12268
152689dc
KT
122692013-02-04 Kai Tietz <ktietz@redhat.com>
12270
12271 PR target/56186
12272 * config/i386/i386.c (function_value_ms_64): Add additional valtype
12273 argument and improve checking of return-argument types for 16-byte
12274 modes.
12275 (ix86_function_value_1): Add additional valtype argument on call
12276 of function_value_64.
12277 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
12278 handling infunction_value_64 function.
12279
2b5987b5
MGD
122802013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
12281
7ac3af38 12282 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
2b5987b5 12283
14597080
RB
122842013-02-04 Richard Biener <rguenther@suse.de>
12285
12286 PR tree-optimization/56188
12287 * tree-ssa-structalias.c (label_visit): Consider case with
12288 initially non-empty points-to set.
12289 (perform_var_substitution): Dump node mapping and clean up.
12290
ed73881e
RG
122912013-02-04 Richard Guenther <rguenther@suse.de>
12292
12293 PR lto/56168
12294 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
12295 node prevail as last resort.
12296 (lto_symtab_merge_decls): Remove guard on LTRANS here.
6edc3e32 12297 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
ed73881e 12298
139a0707
RB
122992013-02-04 Richard Biener <rguenther@suse.de>
12300
12301 PR tree-optimization/56113
12302 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
12303 Merge into ...
12304 (equiv_class_lookup_or_add): ... this.
12305 (label_visit): Adjust and fix error in previous patch.
12306 (perform_var_substitution): Adjust.
12307
50fe8924
OE
123082013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
12309
12310 * config/sh/divtab.c: Fix formatting and comments throughout the file.
12311 * config/sh/sh4-300.md: Likewise.
12312 * config/sh/sh4a.md: Likewise.
12313 * config/sh/constraints.md: Likewise.
12314 * config/sh/sh.md: Likewise.
12315 * config/sh/netbsd-elf.h: Likewise.
12316 * config/sh/predicates.md: Likewise.
12317 * config/sh/sh-protos.h: Likewise.
12318 * config/sh/ushmedia.h: Likewise.
12319 * config/sh/linux.h: Likewise.
12320 * config/sh/sh.c: Likewise.
12321 * config/sh/superh.h: Likewise.
12322 * config/sh/elf.h: Likewise.
12323 * config/sh/sh4.md: Likewise.
12324 * config/sh/sh.h: Likewise.
12325
1a04ac2b
JDA
123262013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12327
12328 * config/pa/constraints.md: Adjust unused letters. Change "T"
12329 constraint to match_test floating_point_store_memory_operand().
12330 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
12331 (base14_operand): New.
12332 (floating_point_store_memory_operand): New.
12333 (integer_store_memory_operand): Revise to use base14_operand and
12334 reg_plus_base_memory_operand.
12335 (move_dest_operand): Allow symbolic_memory_operands.
12336 (symbolic_memory_operand): Check for LO_SOM.
12337 (symbolic_operand): Change default case to break.
12338 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
12339 CONST_DOUBLE values to be reloaded by putting them into memory when
12340 the destination is a floating point register.
12341 (movdf): Remove code to handle CONST_DOUBLE.
12342 (movsf): Likewise.
12343 (reload_indf_r1): New.
12344 (reload_insf_r1): New.
12345 Consistently use "Q" and "T" constraints with integer and floating
12346 point move instructions, respectively.
12347 (movdi): Remove FAIL.
12348 Change predicate for source operand unamed DImode move from
12349 general_operand to move_src_operand.
12350 (umulsidi3): Change predicate for destination operand to
12351 register_operand.
12352 Likewise for similar unamed patterns.
12353 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
12354 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
12355 (hppa_legitimize_address): Simplify mask calculation.
12356 (pa_emit_move_sequence): Revised handling of secondary reloads from
12357 REG+D addresses for floating point loads and stores. Directly handle
12358 loading CONST0_RTX (mode) to a floating point register.
12359 (pa_secondary_reload): Handle reloading DF and SFmode constant values
12360 to floating point registers. Don't restrict secondary reloads to
12361 floating point registers to integer modes. Revise some comments and
12362 cleanup some code.
12363 (TARGET_LEGITIMATE_ADDRESS_P): Define.
12364 (pa_legitimate_address_p): New.
12365 (pa_legitimize_reload_address): New.
12366 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
12367 (STRICT_REG_OK_FOR_BASE_P): New.
12368 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
12369 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
12370
3bf65591
DE
123712013-02-03 David Edelsohn <dje.gcc@gmail.com>
12372 Andrew Dixie <andrewd@gentrack.com>
12373
12374 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
12375 flag set.
12376
c0a8a3e6
RS
123772013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
12378
12379 * expmed.c (extract_bit_field_1): Pass the full width of the
12380 structure to get_best_reg_extraction_insn.
12381
99113dff
DE
123822013-02-01 David Edelsohn <dje.gcc@gmail.com>
12383
12384 PR target/54601
12385 * configure.ac (use_cxa_atexit): Add AIX.
12386 * configure: Regenerate.
12387
12388 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
12389
ddd84654
JJ
123902013-02-01 Jakub Jelinek <jakub@redhat.com>
12391
12392 PR debug/54793
12393 * final.c (need_profile_function): New variable.
12394 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
12395 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
12396 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
12397 notes, targetm.asm_out.function_prologue doesn't emit anything,
12398 HAVE_prologue and profiler should be emitted before prologue,
12399 set need_profile_function instead of emitting it.
12400 (final_scan_insn): If need_profile_function, emit
12401 profile_function on the first NOTE_INSN_BASIC_BLOCK or
12402 NOTE_INSN_FUNCTION_BEG note.
12403
124042013-02-01 Richard Henderson <rth@redhat.com>
749af8ee
RH
12405
12406 * config/rs6000/rs6000.md (smulditi3): New.
12407 (umulditi3): New.
12408
ff2a9d88
RH
12409 * config/alpha/alpha.md (umulditi3): New.
12410
14d52b90
DE
124112013-02-01 David Edelsohn <dje.gcc@gmail.com>
12412
12413 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
12414 (ASM_OUTPUT_ALIGNED_LOCAL): New.
12415
8c7ca45c
RB
124162013-02-01 Richard Biener <rguenther@suse.de>
12417
12418 PR tree-optimization/56113
12419 * tree-ssa-structalias.c (label_visit): Reduce work for
12420 single-predecessor nodes.
12421
9f419393
EB
124222013-02-01 Eric Botcazou <ebotcazou@adacore.com>
12423
12424 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
12425 range isn't testing for zero.
12426
c5f4be84
SB
124272013-01-31 Steven Bosscher <steven@gcc.gnu.org>
12428
12429 PR middle-end/56113
12430 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
12431
dbdbd982
NC
124322013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
12433 Nick Clifton <nickc@redhat.com>
12434
12435 * config/v850/constraints.md (Q): Define as a memory constraint.
12436 * config/v850/predicates.md (label_ref_operand): New predicate.
12437 (e3v5_shift_operand): New predicate.
12438 (ior_operator): New predicate.
12439 * config/v850/t-v850: Add e3v5 multilib.
12440 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
12441 (v850_gen_movdi): Prototype.
12442 * config/v850/v850.c: Add support for e3v5 architecture.
12443 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
12444 TARGET_V850E_UP.
12445 (construct_save_jarl): Add e3v5 long JARL support.
12446 (v850_adjust_insn_length): New function. Adjust length of call
12447 insns when using e3v5 instructions.
12448 (v850_gen_movdi): New function: Generate instructions to move a
12449 DImode value.
12450 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
12451 (CPP_SPEC): Define __v850e3v5__ as appropriate.
12452 (TARGET_USE_FPU): Enable for e3v5.
12453 (CONST_OK_FOR_W): New macro.
12454 (ADJUST_INSN_LENGTH): Define.
12455 * config/v850/v850.md (UNSPEC_LOOP): Define.
12456 (attr cpu): Add v850e3v5.
12457 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
12458 (movdi): New pattern.
12459 (movdi_internal): New pattern.
12460 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
12461 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
12462 (cstoresf4): Likewise.
12463 (cstoredf4): Likewise.
12464 (insv): New pattern.
12465 (rotlso3_a): New pattern.
12466 (rotlsi3_b): New pattern
12467 (rotlsi3_v850e3v5): New pattern.
12468 (doloop_begin): New pattern.
12469 (fix_loop_counter): New pattern.
12470 (doloop_end): New pattern.
12471 (branch_normal): Add e3v5 long branch support.
12472 (branch_invert): Likewise.
12473 (branch_z_normal): Likewise.
12474 (branch_z_invert): Likewise.
12475 (branch_nz_normal): Likewise.
12476 (branch_nz_invert): Likewise.
12477 (call_internal_short): Add e3v5 register-indirect JARL support.
12478 (call_internal_long): Likewise.
12479 (call_value_internal_short): Likewise.
12480 (call_value_internal_long): Likewise.
12481 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
12482 (mloop): New option.
12483 * config.gcc: Add support for configuring v840e3v5 target.
6edc3e32 12484 * doc/invoke.texi: Document new v850 specific command line options.
dbdbd982 12485
73861a41
PK
124862013-01-31 Paul Koning <ni1d@arrl.net>
12487
12488 PR debug/55059
12489 PR debug/54508
12490 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
12491 children if parent is a class.
12492 (prune_unused_types_prune): Don't add DW_AT_declaration.
12493
e44978dc
RB
124942013-01-31 Richard Biener <rguenther@suse.de>
12495
12496 PR tree-optimization/56157
12497 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
12498 match up operand with SLP child.
12499
90b10dec
JM
125002013-01-31 Jason Merrill <jason@redhat.com>
12501
04d2dadd 12502 PR debug/54410
90b10dec
JM
12503 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
12504 parameters the first time.
12505 (gen_scheduled_generic_parms_dies): Check completeness here.
12506
6e616110
RB
125072013-01-31 Richard Biener <rguenther@suse.de>
12508
12509 PR middle-end/53073
12510 * common.opt (faggressive-loop-optimizations): New flag,
12511 enabled by default.
12512 * doc/invoke.texi (faggressive-loop-optimizations): Document.
12513 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
12514 infer_loop_bounds_from_undefined by it.
12515
636f59cf
RB
125162013-01-31 Richard Biener <rguenther@suse.de>
12517
12518 PR tree-optimization/56150
12519 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
12520 visit virtual operands.
12521 (find_uses_to_rename_bb): Likewise.
12522
125232013-01-31 Richard Biener <rguenther@suse.de>
fcfa87ac
RB
12524
12525 PR tree-optimization/56150
12526 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
12527 mixed store non-store stmts.
12528
32887460
JJ
125292013-01-30 Jakub Jelinek <jakub@redhat.com>
12530
e60e09a0
JJ
12531 PR sanitizer/55374
12532 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
12533 LIBASAN_EARLY_SPEC is defined.
12534 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
12535 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
12536 before %o.
12537 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
12538
32887460
JJ
12539 PR c++/55742
12540 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
12541 invalid args instead of ICEing on it.
12542 (ix86_valid_target_attribute_tree): Return error_mark_node if
12543 ix86_valid_target_attribute_inner_p failed.
12544 (ix86_valid_target_attribute_p): Return false only if
12545 ix86_valid_target_attribute_tree returned error_mark_node. Allow
12546 target("default") attribute.
12547 (sorted_attr_string): Change argument from const char * to tree,
12548 merge in all target attribute arguments rather than just one.
12549 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
12550 instead of free. Avoid using strcat.
12551 (ix86_mangle_function_version_assembler_name): Mangle
12552 target("default") as if no target attribute is present. Adjust
12553 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
12554 instead of xmalloc and XDELETEVEC instead of free.
12555 (ix86_function_versions): Don't return true if one of the decls
12556 doesn't have target attribute. If they don't and one of the decls
12557 is DECL_FUNCTION_VERSIONED, report an error. Adjust
12558 sorted_attr_string caller. Use XDELETEVEC instead of free.
12559 (ix86_supports_function_versions): Remove.
12560 (make_name): Fix up formatting.
12561 (make_dispatcher_decl): Remove resolver_name and its initialization.
12562 Avoid leaking memory.
12563 (is_function_default_version): Return true if there is
12564 target("default") attribute rather than no target attribute at all.
12565 (make_resolver_func): Avoid leaking memory.
12566 (ix86_generate_version_dispatcher_body): Likewise.
12567 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
12568 * target.def (supports_function_versions): Remove.
12569 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
12570 * doc/tm.texi: Regenerated.
12571
73cca0cc
VM
125722013-01-30 Vladimir Makarov <vmakarov@redhat.com>
12573
12574 PR rtl-optimization/56144
12575 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
12576 for values with side effects.
12577
11452e7b
RB
125782013-01-30 Richard Biener <rguenther@suse.de>
12579
12580 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
12581 (sparseset_pop): Likewise.
12582 * cfganal.c (compute_idf): Likewise. Increase work-stack size
12583 to be able to use quick_push in the worker loop.
12584
01cb1ef5
MP
125852013-01-30 Marek Polacek <polacek@redhat.com>
12586
12587 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
12588
e892936e
RB
125892013-01-30 Richard Biener <rguenther@suse.de>
12590
12591 PR lto/56147
6edc3e32 12592 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
e892936e 12593
cc06c01d
GJL
125942013-01-30 Georg-Johann Lay <avr@gjlay.de>
12595
12596 PR tree-optimization/56064
12597 * fixed-value.c (fixed_from_double_int): New function.
12598 * fixed-value.h (fixed_from_double_int): New prototype.
12599 (const_fixed_from_double_int): New static inline function.
12600 * fold-const.c (native_interpret_fixed): New static function.
12601 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
12602 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
12603 (native_encode_fixed): New static function.
12604 (native_encode_expr) <FIXED_CST>: Use it.
12605 (native_interpret_int): Move double_int worker code to...
12606 * double-int.c (double_int::from_buffer): ...this new static method.
12607 * double-int.h (double_int::from_buffer): Prototype it.
12608
d394a308
RB
126092013-01-30 Richard Biener <rguenther@suse.de>
12610
12611 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
12612 New pointer-map and obstack.
12613 (init_alias_vars): Allocate pointer-map and obstack.
12614 (delete_points_to_sets): Free them.
12615 (find_what_var_points_to): Cache result.
12616 (find_what_p_points_to): Adjust for changed interface of
12617 find_what_var_points_to.
12618 (compute_points_to_sets): Likewise.
12619 (ipa_pta_execute): Likewise.
12620
20804d96
RO
126212013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12622
12623 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
12624 * configure: Regenerate.
12625 * config.in: Regenerate.
12626 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
12627 #nobits/#progbits if supported.
12628
a7ad88a2
OE
126292013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
12630
12631 PR target/56121
12632 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
12633 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
12634 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
12635
7af79f92
GY
126362013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12637
91bfca59
OE
12638 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
12639 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
7af79f92 12640
753bcf7b
GY
126412013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12642
91bfca59
OE
12643 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
12644 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
753bcf7b 12645
8cbc2ea8
GY
126462013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12647
91bfca59
OE
12648 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
12649 declaration.
12650 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
12651 * config/arm/cortex-a7.md: New bypasses using
12652 arm_mac_accumulator_is_result.
8cbc2ea8 12653
697a3325
GY
126542013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12655
91bfca59 12656 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
697a3325 12657 (cortex_a7_neon_mla): Likewise.
91bfca59
OE
12658 (cortex_a7_fpfmad): New reservation.
12659 (cortex_a7_fpmacs): Use ffmas and update required units.
12660 (cortex_a7_fpmuld): Update required units and latency.
12661 (cortex_a7_fpmacd): Likewise.
12662 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
12663 (cortex_a7_neon). Likewise.
12664 (bypass) Update participating units.
697a3325 12665
29637783
GY
126662013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12667
91bfca59
OE
12668 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
12669 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
12670 from fmac to ffma.
12671 * config/arm/vfp11.md (vfp_farith): Use ffmas.
12672 (vfp_fmul): Use ffmad.
12673 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
12674 (cortex_r4_fmacd): Use ffmad.
12675 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
12676 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
12677 (cortex_a9_fmacd): Use ffmad.
12678 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
12679 (cortex_a8_vfp_macd): Use ffmad.
12680 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
12681 (cortex_a5_fpmacd): Use ffmad.
12682 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
12683 (cortex_a15_vfp_macd): Use ffmad.
12684 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
29637783 12685
2ee8a2d5
JM
126862013-01-29 Jason Merrill <jason@redhat.com>
12687
12688 PR libstdc++/54314
12689 * varasm.c (default_assemble_visibility): Don't warn about
12690 visibility on artificial decls.
12691
78d087bc
RB
126922013-01-29 Richard Biener <rguenther@suse.de>
12693
12694 PR tree-optimization/56113
12695 * tree-ssa-structalias.c (equiv_class_lookup): Also return
12696 the bitmap leader.
12697 (label_visit): Free duplicate bitmaps and record the leader instead.
12698 (perform_var_substitution): Adjust.
12699
83ba4d6f
RB
127002013-01-29 Richard Biener <rguenther@suse.de>
12701
12702 PR tree-optimization/55270
12703 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
12704 the CFG, schedule loops for fixup.
12705
66dfe13f
NC
127062013-01-29 Nick Clifton <nickc@redhat.com>
12707
12708 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
12709 SP_REG.
12710
5a579c3b
LE
127112013-01-28 Leif Ekblad <leif@rdos.net>
12712
12713 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
12714 * config/i386/i386.h (TARGET_RDOS): New macro.
12715 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
12716 * config/i386/i386.c (ix86_option_override_internal): For 64bit
12717 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
12718 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
12719 DEFAULT_LARGE_SECTION_THRESHOLD.
12720 * config/i386/i386.md (R14_REG, R15_REG): New constants.
12721 * config/i386/rdos.h: New file.
12722 * config/i386/rdos64.h: New file.
12723
51e44392
BS
127242013-01-28 Bernd Schmidt <bernds@codesourcery.com>
12725
12726 PR other/54814
12727 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
12728 TEST_HARD_REG_BIT.
12729
db1fb332
JJ
127302013-01-28 Jakub Jelinek <jakub@redhat.com>
12731
12732 PR rtl-optimization/56117
12733 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
12734 call cselib_lookup_from_insn on the MEM before calling
12735 add_insn_mem_dependence.
12736
16917761
RB
127372013-01-28 Richard Biener <rguenther@suse.de>
12738
12739 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
12740 to a stmt that didn't have one.
12741 (copy_phis_for_bb): Likewise for PHI arguments.
12742 (copy_debug_stmt): Likewise for debug stmts.
12743
b9fc0497
RB
127442013-01-28 Richard Biener <rguenther@suse.de>
12745
12746 PR tree-optimization/56034
6edc3e32 12747 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
b9fc0497
RB
12748 (partition_builtin_p): Adjust.
12749 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
12750 it is the last partition.
12751 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
12752 up the vertex for the definition.
12753 (classify_partition): Classify whether a partition is a
12754 PKIND_REDUCTION, thus has uses outside of the loop.
12755 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
12756 Merge all PKIND_REDUCTION partitions into the last partition.
12757 (tree_loop_distribution): Seed partitions from reductions as well.
12758
aa710d25
JJ
127592013-01-28 Jakub Jelinek <jakub@redhat.com>
12760
0bfbca58
JJ
12761 PR tree-optimization/56125
12762 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
12763 pow(x,c) into sqrt(x) * powi(x, n/2) or
12764 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
12765 optimizing for size.
12766 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
12767 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
12768 integer.
12769
aa710d25
JJ
12770 PR tree-optimization/56094
12771 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
12772 to UNKNOWN_LOCATION while gimplifying expr.
12773
77dc5297
UB
127742013-01-27 Uros Bizjak <ubizjak@gmail.com>
12775
12776 PR target/56114
12777 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
12778 operand 0 in movabs insn template for -masm=intel asm alternative.
12779 (*movabs<mode>_2): Ditto for operand 1.
12780
0bfbca58 127812013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
fbf0cf90
DH
12782
12783 PR target/54663
12784 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
12785 of microblaze-c.o
12786
0bfbca58 127872013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6f14eef2
EI
12788
12789 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
12790 tm_file.
12791
0bfbca58 127922013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
706b2314
N
12793
12794 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
12795 Undef to avoid warning.
12796
478f60f9
MH
127972013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
12798
12799 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
12800 * configure: Regenerate.
12801
d7fa6ee2
JJ
128022013-01-25 Jakub Jelinek <jakub@redhat.com>
12803
12804 PR tree-optimization/56098
12805 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
12806 for stmts with volatile ops.
12807 (cond_store_replacement): Don't optimize if assign has volatile ops.
12808 (cond_if_else_store_replacement_1): Don't optimize if either
12809 then_assign or else_assign have volatile ops.
12810 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
12811 volatile ops.
12812
f8fe87bd
GJL
128132013-01-25 Georg-Johann Lay <avr@gjlay.de>
12814
12815 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
12816
28398d0d
GJL
128172013-01-25 Georg-Johann Lay <avr@gjlay.de>
12818
12819 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
12820 missing ':' in asm example.
12821
b7d7d917
TB
128222013-01-25 Tejas Belagod <tejas.belagod@arm.com>
12823
12824 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
12825 entries into lane and laneq entries.
77dc5297
UB
12826 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
12827 Remove AdvSIMD scalar modes.
b7d7d917
TB
12828 (aarch64_sq<r>dmulh_laneq<mode>): New.
12829 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
12830 modes.
12831 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
12832 builtin implementations to relfect changes in RTL in aarch64-simd.md.
12833 * config/aarch64/iterators.md (VCOND): New.
12834 (VCONQ): New.
12835
556f9906
GJL
128362013-01-25 Georg-Johann Lay <avr@gjlay.de>
12837
12838 PR target/54222
12839 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
12840 Add NULL LIBNAME argument to existing definitions.
12841 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
12842 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
12843 * config/avr/avr.c (DEF_BUILTIN): Same.
12844 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
12845 (avr_expand_builtin): Expand to a vanilla call if a libgcc
12846 implementation is available (DECL_ASSEMBLER_NAME is set).
12847 (avr_fold_absfx): New static function.
12848 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
12849 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
12850 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
12851 AVR_BUILTIN_ABSLLK.
12852 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
12853 (abshk, absk, abslk, absllk): Provide as static inline functions.
12854
1f546bbb
MP
128552013-01-25 Marek Polacek <polacek@redhat.com>
12856
12857 PR tree-optimization/56035
12858 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
12859
7e184bd7
UB
128602012-01-24 Uros Bizjak <ubizjak@gmail.com>
12861
12862 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
12863 (*movtf_internal_rex64): Add (!o,C) alternative
12864 (*movxf_internal_rex64): Ditto.
12865 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
12866
f5ba49ac
SM
128672013-01-24 Shenghou Ma <minux.ma@gmail.com>
12868
12869 * doc/invoke.texi: fix typo.
12870 * doc/objc.texi: fix typo.
12871
a6343728
RS
128722013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
12873
12874 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
12875 for the first two alternatives.
12876
cd030c07
DN
128772013-01-24 Diego Novillo <dnovillo@google.com>
12878
77dc5297 12879 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
cd030c07
DN
12880 (ggc-zone.o): Remove.
12881 * configure.ac: Remove option --with-gc.
12882 * configure: Re-generate.
12883 * doc/install.texi: Remove documentation for --with-gc.
12884 * gengtype.c (write_enum_defn): Remove. Update all users.
12885 (write_Types_process_field): Remove generation of gt_e_* argument.
12886 (output_type_enum): Remove. Update all users.
12887 (write_enum_defn): Remove. Update all users.
12888 (enum alloc_zone): Remove. Update all users.
77dc5297 12889 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
cd030c07
DN
12890 * ggc-common.c (ggc_splay_alloc): Remove first argument.
12891 Update all callers.
12892 (struct ptr_data): Remove field TYPE. Update all users.
77dc5297 12893 (gt_pch_note_object): Remove argument TYPE. Update all users.
cd030c07
DN
12894 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
12895 Update all users.
aaf1e810 12896 * ggc-none.c (ggc_alloc_typed_stat): Remove.
cd030c07
DN
12897 (struct alloc_zone): Remove.
12898 (ggc_internal_alloc_zone_stat): Remove.
12899 (ggc_internal_cleared_alloc_zone_stat): Remove.
12900 * ggc-page.c (ggc_alloc_typed_stat): Remove.
77dc5297
UB
12901 (ggc_pch_count_object): Remove last argument. Update all users.
12902 (ggc_pch_alloc_object): Remove last argument. Update all users.
cd030c07
DN
12903 (struct alloc_zone): Remove.
12904 * ggc-zone.c: Remove.
77dc5297 12905 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
cd030c07
DN
12906 (struct alloc_zone): Remove.
12907 (ggc_alloc_typed_stat): Remove.
12908 (ggc_alloc_typed): Remove.
12909 (ggc_splay_alloc): Remove first argument.
12910 (rtl_zone): Remove. Update all users.
12911 (tree_zone): Remove. Update all users.
12912 (tree_id_zone): Remove. Update all users.
12913 (ggc_internal_zone_alloc_stat): Remove. Update all users.
77dc5297 12914 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
cd030c07 12915 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
77dc5297 12916 * tree-ssanames.c: Remove references to zone allocator in comments.
cd030c07 12917
a861ffa4
GJL
129182013-01-24 Georg-Johann Lay <avr@gjlay.de>
12919
12920 * config/avr/avr.c (avr_out_fract): Make register numbers that
12921 might be outside of source operand signed.
12922
593c0ddd
UB
129232013-01-24 Uros Bizjak <ubizjak@gmail.com>
12924
12925 * config/i386/constraints.md (Yf): New constraint.
12926 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
12927 of f constraint to conditionaly disable x87 register preferences.
12928 (*movdf_internal): Ditto.
12929 (*movsf_internal): Ditto.
12930
e86c0101
SB
129312013-01-24 Steven Bosscher <steven@gcc.gnu.org>
12932
12933 PR inline-asm/55934
12934 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
12935 that have operands with impossible constraints.
12936 Add a FIXME for a speed-up opportunity.
12937 * lra-constraints.c (process_alt_operands): Verify that a class
12938 selected from constraints on asms is valid for the operand mode.
12939 (curr_insn_transform): Remove incorrect comment.
12940
f6fee35f
DE
129412013-01-23 David Edelsohn <dje.gcc@gmail.com>
12942
12943 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
12944 TOC operand is a valid symbol ref in the constant pool.
12945
129462013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
c7729184 12947
aaf1e810 12948 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
c7729184 12949
dc62d7d1
GJL
129502013-01-23 Georg-Johann Lay <avr@gjlay.de>
12951
12952 PR target/54222
12953 * config/avr/stdfix.h: New file.
12954 * t-avr (stdfix-gcc.h): New rule to build it.
12955 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
12956
2660d12d
KS
129572013-01-23 Kostya Serebryany <kcc@google.com>
12958
77dc5297
UB
12959 * config/darwin.h: remove dependency on
12960 CoreFoundation (asan on Mac OS).
2660d12d 12961
a70418fc
JJ
129622013-01-23 Jakub Jelinek <jakub@redhat.com>
12963
12964 PR target/49069
12965 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
12966 instead of cmpdi_operand for first comparison operand.
12967 Don't assert that comparison operands aren't both constants.
12968
47876a2a
JW
129692013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
12970
12971 * doc/install.texi (Downloading the Source): Update references to
12972 downloading separate components.
12973
129742013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4ebd56a5
JW
12975
12976 * doc/extend.texi (__int128): Improve grammar.
12977
47876a2a 129782013-01-22 Uros Bizjak <ubizjak@gmail.com>
32fc5b8a
UB
12979
12980 PR target/56028
12981 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
12982 alternative to (o,r).
12983 (*movdi_internal_rex64): Remove (!o,n) alternative.
12984 (DImode immediate->memory splitter): Remove.
12985 (DImode immediate->memory peephole2): Remove.
12986 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
12987 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
12988 alternative to (!o,*r).
12989 (*movtf_internal_sse): New pattern.
12990 (*movxf_internal_rex64): New pattern.
12991 (*movxf_internal): Disable for TARGET_64BIT.
12992 (*movdf_internal_rex64): Remove (!o,F) alternative.
12993
3a984f10
JJ
129942013-01-22 Jakub Jelinek <jakub@redhat.com>
12995
502498d5
JJ
12996 PR middle-end/56074
12997 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
12998 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
12999 * tree-vect-loop-manip.c (find_loop_location): Also ignore
13000 stmt locations where LOCATION_LOCUS of the stmt location is
13001 UNKNOWN_LOCATION or BUILTINS_LOCATION.
13002
3a984f10
JJ
13003 PR target/55686
13004 * config/i386/i386.md (UNSPEC_STOS): New.
13005 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
13006 *strsetqi_1): Add UNSPEC_STOS.
13007
fa817f7f
PC
130082013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
13009
13010 PR c++/56067
13011 * doc/invoke.texi: Remove left over -Wsynth example.
13012
8f498c1b
JJ
130132013-01-21 Jakub Jelinek <jakub@redhat.com>
13014
13015 PR tree-optimization/56051
13016 * fold-const.c (fold_binary_loc): Don't fold
13017 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
13018 a narrowing conversion, or widening conversion from signed
13019 to unsigned.
13020
47876a2a 130212013-01-21 Uros Bizjak <ubizjak@gmail.com>
35d59da7
UB
13022
13023 PR rtl-optimization/56023
13024 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
13025 dependent on debug instruction.
13026
5b9db1bc
MJ
130272013-01-21 Martin Jambor <mjambor@suse.cz>
13028
13029 PR middle-end/56022
13030 * function.c (allocate_struct_function): Call
13031 invoke_set_current_function_hook earlier.
13032
e8bb7d68
JJ
130332013-01-21 Jakub Jelinek <jakub@redhat.com>
13034
13035 * reload1.c (init_reload): Only initialize reload_obstack
13036 during the first call.
13037
616a4e32
MP
130382013-01-21 Marek Polacek <polacek@redhat.com>
13039
13040 * cfgloop.c (verify_loop_structure): Fix up grammar.
13041
4401981b
YHH
130422013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
13043
13044 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
13045 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
13046
8e87740b
RR
130472013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13048
13049 PR target/56058
13050 * config/arm/marvell-pj4.md: Update copyright year.
13051 Fix up use of alu to alu_reg and simple_alu_imm.
13052
47876a2a 130532013-01-21 Uros Bizjak <ubizjak@gmail.com>
1f6bc337
UB
13054
13055 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
13056
89d56d79
VM
130572013-01-20 Vladimir Makarov <vmakarov@redhat.com>
13058
13059 PR target/55433
13060 * lra-constraints.c (curr_insn_transform): Don't reuse original
1f6bc337 13061 insn for secondary memory move when memory mode should be different.
89d56d79 13062
fe603553
JDA
130632013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13064
13065 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
13066 atomic_storedi_1): New patterns.
13067
01284895
VK
130682013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13069
13070 btver2 pipeline descriptions.
13071 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
13072 descriptions.
13073 * config/i386/i386.md (btver2_decode): New type attributes.
1f6bc337 13074 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
01284895
VK
13075 type attributes.
13076 * config/i386/btver2.md: New file describing btver2 pipelines.
13077
5630e3e1
JL
130782013-01-19 Andrew Pinski <apinski@cavium.com>
13079
13080 PR tree-optimization/52631
13081 * tree-ssa-sccvn (visit_use): Before looking up the original
13082 statement, try looking up the simplified expression.
13083
650ae806
AG
130842013-01-19 Anthony Green <green@moxielogic.com>
13085
13086 * config/moxie/moxie.c (moxie_expand_prologue): Set
13087 current_function_static_stack_size.
13088
e300ec2d
JJ
130892013-01-18 Jakub Jelinek <jakub@redhat.com>
13090
13091 PR tree-optimization/56029
13092 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
13093 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
13094
a3d7af04
SS
130952013-01-18 Sharad Singhai <singhai@google.com>
13096
13097 PR tree-optimization/55995
13098 * dumpfile.c (dump_loc): Print location only if available.
13099 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
13100
66aa7879
VM
131012013-01-18 Vladimir Makarov <vmakarov@redhat.com>
13102
13103 PR target/55433
13104 * lra-constraints.c (curr_insn_transform): Reuse original insn for
13105 secondary memory move.
13106 (inherit_reload_reg): Use rclass instead of cl for
13107 check_secondary_memory_needed_p.
13108
3f0fee7b
JJ
131092013-01-18 Jakub Jelinek <jakub@redhat.com>
13110
13111 PR middle-end/56015
13112 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
1f6bc337 13113 the case where writing real complex part of target modifies op1.
3f0fee7b 13114
70c67693
JG
131152013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
13116
13117 * config/aarch64/aarch64-simd.md
13118 (aarch64_vcond_internal<mode>): Handle unordered cases.
13119 * config/aarch64/iterators.md (v_cmp_result): New.
13120
df8de9b3
YHH
131212013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
13122 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13123
13124 * config/arm/marvell-pj4.md: New file.
13125 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
13126 * config/arm/arm.md (generic_sched): Add marvell_pj4.
13127 (generic_vfp): Likewise.
13128 * config/arm/arm-cores.def: Add marvell-pj4.
13129 * config/arm/arm-tune.md: Regenerate.
13130 * config/arm/arm-tables.opt: Regenerate.
13131 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
13132 * doc/invoke.texi: Document marvell-pj4.
13133
be30c356
TB
131342013-01-18 Tejas Belagod <tejas.belagod@arm.com>
13135
13136 * config/aarch64/arm_neon.h: Map scalar types to standard types.
13137
0bfbca58 131382013-01-18 Alexandre Oliva <aoliva@redhat.com>
af6236c1
AO
13139
13140 PR debug/54114
13141 PR debug/54402
13142 PR debug/49888
13143 * var-tracking.c (negative_power_of_two_p): New.
13144 (global_get_addr_cache, local_get_addr_cache): New.
13145 (get_addr_from_global_cache, get_addr_from_local_cache): New.
13146 (vt_canonicalize_addr): Rewrite using the above. Adjust the
13147 heading comment.
13148 (vt_stack_offset_p): Remove.
13149 (vt_canon_true_dep): Always canonicalize loc's address.
13150 (clobber_overlapping_mems): Make sure we have a MEM.
13151 (local_get_addr_clear_given_value): New.
13152 (val_reset): Clear local cached entries.
13153 (compute_bb_dataflow): Create and release the local cache.
13154 Disable duplicate MEMs clobbering.
13155 (emit_notes_in_bb): Clobber MEMs likewise.
13156 (vt_emit_notes): Create and release the local cache.
13157 (vt_initialize, vt_finalize): Create and release the global
13158 cache, respectively.
1f6bc337 13159 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
af6236c1 13160
0bfbca58 131612013-01-18 Alexandre Oliva <aoliva@redhat.com>
7ff37ffa
AO
13162
13163 PR libmudflap/53359
13164 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
13165 not found in the symtab.
13166
0bfbca58 131672013-01-18 Alexandre Oliva <aoliva@redhat.com>
3aa03517 13168
c350ba53 13169 PR debug/56006
3aa03517
AO
13170 PR rtl-optimization/55547
13171 PR rtl-optimization/53827
13172 PR debug/53671
13173 PR debug/49888
13174 * alias.c (offset_overlap_p): New, factored out of...
13175 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
13176 the conservative special case for symbolic constants. Don't
13177 adjust zero sizes on alignment.
13178
c664546f
JL
131792013-01-18 Bernd Schmidt <bernds@codesourcery.com>
13180
13181 PR rtl-optimization/52573
13182 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
13183 REG_UNUSED for the same register.
13184
1bd3f750
MP
131852013-01-17 Richard Biener <rguenther@suse.de>
13186 Marek Polacek <polacek@redhat.com>
13187
13188 PR rtl-optimization/55833
13189 * loop-unswitch.c (unswitch_loops): Move loop verification...
13190 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
13191 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
13192 Set it to true when we're removing a loop from hierarchy tree in
13193 an irreducible region.
13194 (fix_bb_placements): Adjust caller.
13195 (fix_loop_placements): Likewise.
13196
e52a8b71
GJL
131972013-01-17 Georg-Johann Lay <avr@gjlay.de>
13198
13199 * config/avr/builtins.def (DEF_BUILTIN): Factor out
13200 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
13201 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
13202 Remove ID. Adjust comments.
13203 * config/avr/avr-c.c (avr_builtin_name): Remove.
13204 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
13205 * config/avr/avr.c (avr_tolower): New static function.
13206 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
13207 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
13208 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
13209 default expansion.
13210
8386a7ea
JH
132112013-01-17 Jan Hubicka <jh@suse.cz>
13212
610fb637 13213 PR tree-optimization/55273
8386a7ea
JH
13214 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
13215
47876a2a 132162013-01-17 Uros Bizjak <ubizjak@gmail.com>
8abaebcd
UB
13217
13218 PR target/55981
13219 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
13220 store through atomic_store<mode>_1.
13221 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
13222
8222c37e
MJ
132232013-01-17 Martin Jambor <mjambor@suse.cz>
13224
13225 PR tree-optimizations/55264
13226 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
13227 for virtual methods.
13228 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
13229 virtual methods before inlining is over.
13230 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
13231 virtual functions.
13232 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
13233 non-virtual.
13234
79f01c76
VM
132352013-01-16 Vladimir Makarov <vmakarov@redhat.com>
13236
13237 PR rtl-optimization/56005
13238 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
13239 pending reads for prefetch.
13240
d0b6bb1b
IB
132412013-01-16 Ian Bolton <ian.bolton@arm.com>
13242
aaf1e810 13243 * config/aarch64/aarch64.md
d0b6bb1b
IB
13244 (*cstoresi_neg_uxtw): New pattern.
13245 (*cmovsi_insn_uxtw): New pattern.
13246 (*<optab>si3_uxtw): New pattern.
13247 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
13248 (*<optab>si3_insn_uxtw): New pattern.
13249 (*bswapsi2_uxtw): New pattern.
13250
cb9cf03b
RB
132512013-01-16 Richard Biener <rguenther@suse.de>
13252
13253 * tree-inline.c (tree_function_versioning): Remove set but
13254 never used variable.
13255
2cfc56b9
RB
132562013-01-16 Richard Biener <rguenther@suse.de>
13257
13258 PR tree-optimization/55964
13259 * tree-flow.h (rename_variables_in_loop): Remove.
13260 (rename_variables_in_bb): Likewise.
13261 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
13262 (copy_loop_before): Adjust and delete update-ssa status.
13263 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
8abaebcd 13264 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
2cfc56b9
RB
13265 (rename_variables_in_loop): Remove.
13266 (slpeel_update_phis_for_duplicate_loop): Likewise.
13267 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
13268 use available cfg machinery instead of duplicating it.
13269 Update PHI nodes and perform poor-mans SSA update here.
13270 (slpeel_tree_peel_loop_to_edge): Adjust.
13271
c25a0c60
RB
132722013-01-16 Richard Biener <rguenther@suse.de>
13273
13274 PR tree-optimization/54767
13275 PR tree-optimization/53465
13276 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
13277 (vrp_visit_phi_node): For PHI arguments coming via backedges
13278 drop all symbolical range information.
13279 (execute_vrp): Compute backedges.
13280
04b535af
RB
132812013-01-16 Richard Biener <rguenther@suse.de>
13282
13283 * doc/install.texi: Update CLooG and ISL requirements to
13284 0.18.0 and 0.11.1.
13285
8b0a1e0b
CB
132862013-01-16 Christian Bruel <christian.bruel@st.com>
13287
13288 PR target/55301
13289 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
13290 (broken_move): Handle UNSPECV_SP_SWITCH_B.
13291 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
13292
132932013-01-16 DJ Delorie <dj@redhat.com>
13294
13295 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
13296 (UNSPECV_SP_SWITCH_E): New.
13297 (sp_switch_1): Change to an unspec.
13298 (sp_switch_2): Change to an unspec. Don't use post-inc when we
13299 replace $r15.
13300
133012013-01-16 Uros Bizjak <ubizjak@gmail.com>
88e784e6
UB
13302
13303 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
13304 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
13305 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
13306 (expand_mem_thread_fence): Ditto.
13307 (expand_mem_signal_fence): Ditto.
13308 (expand_atomic_load): Ditto.
13309 (expand_atomic_store): Ditto.
13310
0bfbca58 133112013-01-16 Alexandre Oliva <aoliva@redhat.com>
5147bf6a
AO
13312
13313 PR rtl-optimization/55547
13314 PR rtl-optimization/53827
13315 PR debug/53671
13316 PR debug/49888
13317 * alias.c (memrefs_conflict_p): Set sizes to negative after
13318 AND adjustments.
13319
305e3ac1
JJ
133202013-01-15 Jakub Jelinek <jakub@redhat.com>
13321
13322 PR target/55940
13323 * function.c (thread_prologue_and_epilogue_insns): Always
13324 add crtl->drap_reg to set_up_by_prologue.set, even if
13325 stack_realign_drap is false.
13326
f78ac4f2
JBG
133272013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13328
13329 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
13330 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
13331 *call): Fix indention.
13332
a78a8cc4
TV
133332013-01-15 Tom de Vries <tom@codesourcery.com>
13334
13335 PR target/55876
13336 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
13337 Update comment.
13338
0e80383f
VM
133392013-01-15 Vladimir Makarov <vmakarov@redhat.com>
13340
305e3ac1 13341 PR rtl-optimization/55153
0e80383f
VM
13342 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
13343
207b5956
MJ
133442013-01-15 Martin Jambor <mjambor@suse.cz>
13345
13346 PR tree-optimization/55920
13347 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
13348 accesses as grp_to_be_debug_replaced.
13349
a7818b54
JJ
133502013-01-15 Jakub Jelinek <jakub@redhat.com>
13351
13352 PR tree-optimization/55920
13353 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
13354 there is non-useless type conversion needed from debug rhs to lhs,
13355 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
13356
b0fe107e
JM
133572013-01-15 Joseph Myers <joseph@codesourcery.com>
13358 Mikael Pettersson <mikpe@it.uu.se>
13359
13360 PR target/43961
13361 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
13362 Thumb.
13363 (ASM_OUTPUT_CASE_LABEL): Remove.
13364 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
13365 * final.c (shorten_branches): Update alignment of labels before
13366 jump tables if CASE_VECTOR_SHORTEN_MODE.
13367
34ab62ee
RB
133682013-01-15 Richard Biener <rguenther@suse.de>
13369
13370 PR bootstrap/55961
13371 * system.h: Do not include gmp.h for building host tools.
13372
783a3a05
RB
133732013-01-15 Richard Biener <rguenther@suse.de>
13374
13375 PR middle-end/55882
13376 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
13377 account for bitpos when computing alignment.
13378
3a579e09
VY
133792013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
13380
13381 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
13382 (ix86_target_macros_internal): Likewise.
13383
13384 * config/i386/i386.c (m_CORE2I7): Removed.
13385 (m_CORE_HASWELL): New macro.
13386 (m_CORE_ALL): Likewise.
13387 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
13388 (initial_ix86_arch_features): Likewise.
13389 (processor_target_table): Initializations for Core avx2.
13390 (cpu_names): New names "core-avx2".
13391 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
13392 PROCESSOR_CORE_HASWELL.
13393 (ix86_issue_rate): New case.
13394 (ia32_multipass_dfa_lookahead): Likewise.
13395 (ix86_sched_init_global): Likewise.
13396
13397 * config/i386/i386.h (TARGET_HASWELL): New macro.
13398 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
13399 (processor_type): New PROCESSOR_HASWELL.
13400
955f5a07
JJ
134012013-01-15 Jakub Jelinek <jakub@redhat.com>
13402
ff784829
JJ
13403 PR tree-optimization/55955
13404 * tree-vect-loop.c (vectorizable_reduction): Give up early on
13405 *SHIFT_EXPR and *ROTATE_EXPR codes.
13406
955f5a07
JJ
13407 PR tree-optimization/48766
13408 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
13409 -ftrapv disable -fwrapv.
13410
aeb8b4e9
GJL
134112013-01-14 Georg-Johann Lay <avr@gjlay.de>
13412
13413 PR target/55974
13414 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
13415 etc. to 1 and not to __flash.
13416 Use LL suffix for __INT24_MAX__ with -mint8.
13417 Use ULL suffix for __UINT24_MAX__ with -mint8.
13418
1c494c6a
GJL
134192013-01-14 Georg-Johann Lay <avr@gjlay.de>
13420
13421 * config/avr/avr-arch.h
13422 (struct base_arch_s): Use typedef avr_arch_t instead.
13423 (struct arch_info_s): Use typedef avr_arch_info_t instead.
13424 (struct mcu_type_s): Use typedef avr_mcu_t instead.
13425 * config/avr/avr.c: Same.
13426 * config/avr/avr-devices.c: Same.
13427 * config/avr/driver-avr.c: Same.
13428 * config/avr/gen-avr-mmcu-texi.c: Same.
13429 * config/avr/avr-mcus.def: Adjust comment.
13430
a50344cb
TB
134312013-01-14 Tejas Belagod <tejas.belagod@arm.com>
13432
88e784e6
UB
13433 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
13434 * config/aarch64/iterators.md (VALLDI): New.
a50344cb 13435
47876a2a 134362013-01-14 Uros Bizjak <ubizjak@gmail.com>
e6f0e052
UB
13437 Andi Kleen <ak@linux.intel.com>
13438
13439 PR target/55948
13440 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
13441 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
13442 memmodel flag.
13443
00892272
GJL
134442013-01-14 Georg-Johann Lay <avr@gjlay.de>
13445
13446 * config/avr/avr-stdint.h: Remove trailing blanks.
13447 * config/avr/avr-log.h: Same.
13448 * config/avr/avr-arch.h: Same.
13449 * config/avr/avr-devices.c: Same.
13450 * config/avr/avr-dimode.md: Same.
13451 * config/avr/predicates.md: Same.
13452 * config/avr/avr-c.c: Same. And fix typo.
e6f0e052 13453
00892272
GJL
13454 * config/avr/avr-protos.h: Same. And:
13455 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
13456 (init_cumulative_args): Rename to avr_init_cumulative_args.
13457 (expand_prologue): Rename to avr_expand_prologue.
13458 (expand_epilogue): Rename to avr_expand_epilogue.
13459 (adjust_insn_length): Rename to avr_adjust_insn_length.
13460 (notice_update_cc): Rename to avr_notice_update_cc.
13461 (final_prescan_insn): Rename to avr_final_prescan_insn.
13462 * config/avr/avr.c: Same.
13463 * config/avr/avr.h: Same.
13464 * config/avr/avr.md: Remove trailing blanks.
13465 (prologue): Use avr_expand_prologue.
13466 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
13467
7bb01996
RB
134682013-01-14 Richard Biener <rguenther@suse.de>
13469
13470 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
13471 verify_location, collect_subblocks): New functions.
13472 (verify_gimple_in_cfg): Verify that locations only reference
13473 BLOCKs in the functions BLOCK tree.
13474
2724573f
RB
134752013-01-14 Richard Biener <rguenther@suse.de>
13476
13477 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
13478 PHI argument.
13479 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
13480 unshare reference.
13481 (insert_out_of_ssa_copy_on_edge): Likewise.
13482 (rewrite_close_phi_out_of_ssa): Likewise.
13483 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
13484 debug expressions.
13485 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
13486 propagated constants.
13487 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
13488 can not be shared.
13489
9a0bbab6
GJL
134902013-01-14 Georg-Johann Lay <avr@gjlay.de>
13491
13492 * config/avr/avr-modes.def: Add GPL copyright notice.
13493
45805f17
UB
134942013-01-13 Uros Bizjak <ubizjak@gmail.com>
13495
13496 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
13497 MEMMODEL_MASK to determine memory model.
13498 (atomic_store<mode>): Ditto from operands[2].
13499 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
13500
9d60be38
JJ
135012013-01-13 Jakub Jelinek <jakub@redhat.com>
13502
13503 PR fortran/55935
45805f17 13504 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
9d60be38
JJ
13505 (fold_gimple_assign): Don't call unshare_expr here.
13506 (fold_ctor_reference): Call unshare_expr.
13507
e7f49d92
TG
135082013-01-13 Terry Guo <terry.guo@arm.com>
13509
aaf1e810
EB
13510 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
13511 * doc/fragments.texi: Document MULTILIB_REUSE.
13512 * gcc.c (multilib_reuse): New internal spec.
e7f49d92 13513 (set_multilib_dir): Also search multilib from multilib_reuse.
aaf1e810 13514 * genmultilib (tmpmultilib3): Refactor code.
e7f49d92
TG
13515 (tmpmultilib4): Ditto.
13516 (multilib_reuse): New multilib argument.
13517
fbd03a27
RS
135182013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
13519
13520 * Makefile.in: Update copyright.
13521
b3681f13
TV
135222013-01-12 Tom de Vries <tom@codesourcery.com>
13523
13524 PR middle-end/55890
13525 * calls.c (expand_call): Check if arg_nr is valid.
13526
3f287e4b
MM
135272013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
13528
13529 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
13530 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
5bc35113
MM
13531 documentation. Add missing '__' in front of
13532 __builtin_ia32_packssdw256.
3f287e4b 13533
1abcd5eb
AK
135342013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13535
13536 PR target/55719
13537 * config/s390/s390.c (s390_preferred_reload_class): Do not return
13538 NO_REGS for larl operands.
13539 (s390_reload_larl_operand): Use s390_load_address instead of
13540 emit_move_insn.
13541
980d0812
RB
135422013-01-11 Richard Biener <rguenther@suse.de>
13543
13544 * tree-cfg.c (verify_node_sharing_1): Split out from ...
13545 (verify_node_sharing): ... here.
13546 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
13547
7cb9fd07
EB
135482013-01-11 Eric Botcazou <ebotcazou@adacore.com>
13549
13550 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
13551 Substitute TREECHECKING.
13552 * configure: Regenerate.
13553 * Makefile.in (TREECHECKING): New.
13554
47876a2a 135552013-01-11 Richard Guenther <rguenther@suse.de>
c7ab2530
RG
13556
13557 PR tree-optimization/44061
13558 * tree-vrp.c (extract_range_basic): Compute zero as
13559 value-range for __builtin_constant_p of function parameters.
13560
d1e082c2
RS
135612013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
13562
45805f17 13563 Update copyright years.
d1e082c2 13564
f85021b0
VM
135652013-01-10 Vladimir Makarov <vmakarov@redhat.com>
13566
9d60be38 13567 PR rtl-optimization/55672
0160442c
VM
13568 * lra-eliminations.c (mark_not_eliminable): Permit addition with
13569 const to be eliminable.
f85021b0 13570
7a8b1ec4
DE
135712013-01-10 David Edelsohn <dje.gcc@gmail.com>
13572
13573 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
13574 * configure: Regenerate.
13575
ad2e5b71
RB
135762013-01-10 Richard Biener <rguenther@suse.de>
13577
ddf9322d 13578 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
ad2e5b71 13579
ffc5b2bb
RB
135802013-01-10 Richard Biener <rguenther@suse.de>
13581
13582 PR bootstrap/55792
13583 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
13584 locations for virtual PHI arguments.
13585 (rewrite_update_phi_arguments): Likewise.
13586
e1f674e4
JS
135872013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
13588
13589 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
13590 on to assembler.
13591
a57fc743
JJ
135922013-01-10 Jakub Jelinek <jakub@redhat.com>
13593
13594 PR tree-optimization/55921
13595 * tree-complex.c (expand_complex_asm): New function.
13596 (expand_complex_operations_1): Call it for GIMPLE_ASM.
13597
0ff4390d
AK
135982013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13599
13600 PR target/55718
13601 * config/s390/s390.c (s390_symref_operand_p)
13602 (s390_loadrelative_operand_p): Merge the two functions.
13603 (s390_check_qrst_address, print_operand_address): Add parameters
13604 to s390_loadrelative_operand_p invokation.
13605 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
13606 (s390_reload_larl_operand, s390_secondary_reload): Use
13607 s390_loadrelative_operand_p instead of s390_symref_operand_p.
13608 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
13609
6f557e0e
MS
136102013-01-09 Mike Stump <mikestump@comcast.net>
13611
13612 * dse.c (record_store): Remove unnecessary assert.
13613
7770c9e9
JH
136142013-01-09 Jan Hubicka <jh@suse.cz>
13615
13616 PR tree-optimization/55569
13617 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
13618 * cfgloop.h (scale_loop_profile): Likewise.
13619
a19b1432
JH
136202013-01-09 Jan Hubicka <jh@suse.cz>
13621
13622 PR lto/45375
ddf9322d
UB
13623 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
13624 functions.
a19b1432
JH
13625 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
13626
9a002da8
RS
136272013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
13628
13629 PR middle-end/55114
13630 * expr.h (maybe_emit_group_store): Declare.
13631 * expr.c (maybe_emit_group_store): New function.
13632 * builtins.c (expand_builtin_int_roundingfn): Call it.
13633 (expand_builtin_int_roundingfn_2): Likewise.
13634
511dcace
VM
136352013-01-09 Vladimir Makarov <vmakarov@redhat.com>
13636
e1f2b729 13637 PR rtl-optimization/55829
511dcace
VM
13638 * lra-constraints.c (match_reload): Add code for absent output.
13639 (curr_insn_transform): Add code for reloads of matched inputs
13640 without output.
13641
7b0fe4f4
UB
136422013-01-09 Uros Bizjak <ubizjak@gmail.com>
13643
13644 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
13645 attribute of movddup insn to DF.
13646 (*vec_interleave_lowv2df): Ditto.
13647 (vec_dupv2df): Ditto.
13648
870ca331
JH
136492013-01-09 Jan Hubicka <jh@suse.cz>
13650
13651 PR tree-optimiation/55875
13652 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
13653 EVERY_ITERATION parameter.
7b0fe4f4 13654 (number_of_iterations_exit): Check if exit is executed every iteration.
870ca331
JH
13655 (idx_infer_loop_bounds): Similarly here.
13656 (n_of_executions_at_most): Simplify
13657 to only test for cases where statement is dominated by the
7b0fe4f4 13658 particular bound; handle correctly the "postdominance" test.
870ca331
JH
13659 (scev_probably_wraps_p): Use max loop iterations info
13660 as a global bound first.
13661
6f575fe4 136622013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
3cd232b5
NDD
13663 Nick Clifton <nickc@redhat.com>
13664
13665 * config/v850/v850.md (cbranchsf4): New pattern.
13666 (cstoresf4): New pattern.
13667 (cbranchdf4): New pattern.
13668 (cstoredf4): New pattern.
13669 (movsicc): Disallow floating point comparisons.
13670 (cmpsf_le_insn): Fix order of operators.
13671 (cmpsf_lt_insn): Likewise.
13672 (cmpsf_eq_insn): Likewise.
13673 (cmpdf_le_insn): Likewise.
13674 (cmpdf_lt_insn): Likewise.
13675 (cmpdf_eq_insn): Likewise.
13676 (cmpsf_ge_insn): Use LE comparison.
13677 (cmpdf_ge_insn): Likewise.
13678 (cmpsf_gt_insn): Use LT comparison.
13679 (cmpdf_gt_insn): Likewise.
13680 (cmpsf_ne_insn): Delete pattern.
13681 (cmpdf_ne_insn): Delete pattern.
13682 * config/v850/v850.c (v850_gen_float_compare): Use
13683 gen_cmpdf_eq_insn for NE comparison.
13684 (v850_float_z_comparison_operator)
13685 (v850_float_nz_comparison_operator): Move from here ...
13686 * config/v850/predicates.md: ... to here. Move GT and GE
13687 comparisons into v850_float_z_comparison_operator.
13688 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
13689 Delete prototype.
13690 (v850_float_nz_comparison_operator): Likewise.
13691
f0d54148
JDA
136922013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13693
13694 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
13695 with calls to gen_insvsi/gen_insvdi.
13696
8f01beca
VK
136972013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13698
13699 * config/i386/i386.c (initial_ix86_tune_features): Set up
13700 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
13701
2aa579ad
JJ
137022013-01-09 Steven Bosscher <steven@gcc.gnu.org>
13703 Jakub Jelinek <jakub@redhat.com>
13704
13705 PR tree-optimization/48189
13706 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
13707 If nitercst is 0, don't predict the exit edge.
13708
6edc3e32 137092013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
01a3a324
N
13710
13711 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
13712 in asm_fprintf with reg_names.
13713 (aarch64_print_operand_address): Likewise.
13714 (aarch64_return_addr): Likewise.
13715 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
13716
f6f94d94
JDA
137172013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13718
13719 * config/pa/pa.h (VAL_U6_BITS_P): Define.
13720 (INT_U6_BITS): Likewise.
13721 * config/pa/predicates.md (uint6_operand): New predicate.
13722 (shift5_operand, shift6_operand): Likewise.
13723 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
13724 arith32_operand.
13725 (lshrdi3): Use shift6_operand.
13726 (shrpsi4, shrpdi4): New insn patterns.
13727 (extzv): Delete expander.
13728 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
13729 predicates in unamed zero extract patterns. Tighten common constraint.
13730 (extv): Delete expander.
13731 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
13732 predicates in unamed sign extract patterns. Tighten common constraint.
13733 (insv): Delete expander.
13734 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
13735 predicates in unamed insert patterns. Tighten common constraint.
13736 Change uint32_operand predicate to uint6_operand predicate in unamed
13737 DImode pattern to insert constant values of type 1...1xxxx.
13738
36b72910
JH
137392013-01-04 Jan Hubicka <jh@suse.cz>
13740
13741 PR tree-optimization/55823
7b0fe4f4
UB
13742 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
13743 issue.
36b72910 13744
47876a2a 137452013-01-08 Jakub Jelinek <jakub@redhat.com>
c6d851b9
JJ
13746 Uros Bizjak <ubizjak@gmail.com>
13747
13748 PR rtl-optimization/55845
13749 * df-problems.c (can_move_insns_across): Stop scanning at
13750 volatile_insn_p source instruction or give up if
13751 across_from .. across_to range contains any volatile_insn_p
13752 instructions.
13753
4369c11e
TB
137542013-01-08 Tejas Belagod <tejas.belagod@arm.com>
13755
7b0fe4f4
UB
13756 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
13757 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
13758 Declare.
4369c11e 13759 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
7b0fe4f4 13760 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
4369c11e 13761
aeb7e7c1
JJ
137622013-01-08 Jakub Jelinek <jakub@redhat.com>
13763
13764 PR fortran/55341
13765 * asan.c (asan_clear_shadow): New function.
13766 (asan_emit_stack_protection): Use it.
13767
a02ad1aa
TB
137682013-01-08 Tejas Belagod <tejas.belagod@arm.com>
13769
13770 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
13771 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
13772 with tab instead of space.
13773
f90d87f5
NC
137742013-01-08 Nick Clifton <nickc@redhat.com>
13775
13776 * config/rl78/rl78.c (rl78_expand_prologue): Always select
13777 register bank 0 at the start of an interrupt handler.
83ffd964
NC
13778 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
13779 MDBH registers.
f90d87f5 13780
385eb93d
JG
137812013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
13782
13783 * config/aarch64/aarch64-simd.md
13784 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
13785 (aarch64_simd_bsl): Likewise.
13786 (aarch64_vcond_internal<mode>): Likewise.
13787 (vcond<mode><mode>): Likewise.
13788 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
13789 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
13790
4dcd1054
JG
137912013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
13792
13793 * config/aarch64/aarch64-builtins.c
13794 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
13795
4267a4a6
MJ
137962013-01-08 Martin Jambor <mjambor@suse.cz>
13797
13798 PR debug/55579
13799 * tree-sra.c (analyze_access_subtree): Return true also after
13800 potentially creating a debug-only replacement.
13801
5f4e6de3
JJ
138022013-01-08 Jakub Jelinek <jakub@redhat.com>
13803
3138f224
JJ
13804 PR middle-end/55890
13805 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
13806
5f4e6de3
JJ
13807 PR tree-optimization/54120
13808 * tree-vrp.c (range_fits_type_p): Don't allow
13809 src_precision < precision from signed vr to unsigned_p
13810 if vr->min or vr->max is negative.
13811 (simplify_float_conversion_using_ranges): Test can_float_p
13812 against CODE_FOR_nothing.
13813
f3ef18ff
JJ
138142013-01-08 Jakub Jelinek <jakub@redhat.com>
13815 Richard Biener <rguenther@suse.de>
13816
13817 PR middle-end/55851
13818 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
13819 types instead of just INTEGER_TYPE types.
13820
25c210f9
MK
138212013-01-07 Mark Kettenis <kettenis@openbsd.org>
13822
13823 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
13824 TF_SIZE): Define.
f90d87f5 13825
81826a7b
SE
138262013-01-07 Steve Ellcey <sellcey@mips.com>
13827
13828 PR target/42661
13829 * config/mips/mips.opt: Change mad to mmad to match documentation.
13830
35678514
GJL
138312013-01-07 Georg-Johann Lay <avr@gjlay.de>
13832
13833 PR target/55897
13834 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
13835 .progmemx.data now.
13836
e5669488
GJL
138372013-01-07 Georg-Johann Lay <avr@gjlay.de>
13838
13839 PR target/55897
13840 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
13841 (avr_addrspace_t): Add .section_name field.
13842 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
13843 array size.
13844 (avr_addrspace): Same. Initialize .section_name. Remove last
13845 NULL entry. Put __memx into .progmemx.data.
13846 (progmem_section_prefix): Remove.
13847 (avr_asm_init_sections): No need to initialize progmem_section.
13848 (avr_asm_named_section): Use avr_addrspace[].section_name to get
13849 section name prefix.
13850 (avr_asm_select_section): Ditto. And use get_unnamed_section to
13851 retrieve the progmem section.
13852 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
13853 boundary to run over avr_addrspace[].
13854 (avr_register_target_pragmas): Ditto.
13855
656e6f37
JJ
138562013-01-06 Jakub Jelinek <jakub@redhat.com>
13857
13858 * varasm.c (output_constant_def_contents): For asan_protect_global
13859 protected strings, adjust DECL_ALIGN if needed, before testing for
13860 anchored symbols.
13861 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
13862 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
13863 normal decls.
13864 (output_object_block): For asan protected decls, emit asan padding
13865 after their contents.
13866 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
13867 (asan_finish_file): Test it here instead.
13868
6edc3e32
UB
138692013-01-07 Nick Clifton <nickc@redhat.com>
13870 Matthias Klose <doko@debian.org>
13871 Doug Kwan <dougkwan@google.com>
13872 H.J. Lu <hongjiu.lu@intel.com>
b352afba
NC
13873
13874 PR driver/55470
13875 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
13876
13877 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
13878
13879 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
13880
7b0fe4f4 13881 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
b352afba
NC
13882
13883 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
13884
2a095093
GJL
138852013-01-07 Georg-Johann Lay <avr@gjlay.de>
13886
f3b503f4 13887 PR target/54461
2a095093
GJL
13888 * doc/install.texi (Cross-Compiler-Specific Options): Document
13889 --with-avrlibc.
13890
383f9b34
TB
138912013-01-07 Tejas Belagod <tejas.belagod@arm.com>
13892
13893 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
13894 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
13895 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
13896 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
13897 vqmovun_high_s64): Fix source operand number and update copyright.
13898
3626621a
RB
138992013-01-07 Richard Biener <rguenther@suse.de>
13900
13901 PR middle-end/55890
13902 * gimple.h (gimple_call_builtin_p): New overload.
13903 * gimple.c (validate_call): New function.
13904 (gimple_call_builtin_p): Likewise.
13905 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
13906 Use gimple_call_builtin_p.
13907 (find_func_clobbers): Likewise.
13908 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
13909 (strlen_optimize_stmt): Likewise.
13910
8b2ea410
JG
139112013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
13912
13913 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
13914 (vld1q_dup_*): Likewise.
13915 (vld1_*): Likewise.
13916 (vld1q_*): Likewise.
13917 (vld1_lane_*): Likewise.
13918 (vld1q_lane_*): Likewise.
13919
9713d329
RB
139202013-01-07 Richard Biener <rguenther@suse.de>
13921
13922 * lto-streamer.h (LTO_minor_version): Bump to 2.
13923
3520f7cc
JG
139242013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
13925
13926 * config/aarch64/aarch64-protos.h
13927 (aarch64_const_double_zero_rtx_p): Rename to...
13928 (aarch64_float_const_zero_rtx_p): ...this.
13929 (aarch64_float_const_representable_p): New.
13930 (aarch64_output_simd_mov_immediate): Likewise.
13931 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
13932 move immediate case.
13933 * config/aarch64/aarch64.c
13934 (aarch64_const_double_zero_rtx_p): Rename to...
13935 (aarch64_float_const_zero_rtx_p): ...this.
13936 (aarch64_print_operand): Allow printing of new constants.
13937 (aarch64_valid_floating_const): New.
13938 (aarch64_legitimate_constant_p): Check for valid floating-point
13939 constants.
13940 (aarch64_simd_valid_immediate): Likewise.
13941 (aarch64_vect_float_const_representable_p): New.
13942 (aarch64_float_const_representable_p): Likewise.
13943 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
13944 (aarch64_output_simd_mov_immediate): New.
13945 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
13946 (*movdf_aarch64): Likewise.
13947 * config/aarch64/constraints.md (Ufc): New.
13948 (Y): call aarch64_float_const_zero_rtx.
13949 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
13950
e167c04d
RB
139512013-01-07 Richard Biener <rguenther@suse.de>
13952
13953 PR tree-optimization/55888
13954 PR tree-optimization/55862
13955 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
13956 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
13957 not if it is contained therein.
13958
0139aaab
GJL
139592013-01-07 Georg-Johann Lay <avr@gjlay.de>
13960
13961 * config/avr/t-avr: Typo.
13962
4a176b23
GJL
139632013-01-07 Georg-Johann Lay <avr@gjlay.de>
13964
13965 PR55243
13966 * config/avr/t-avr: Don't automatically rebuild
13967 $(srcdir)/config/avr/t-multilib
13968 $(srcdir)/config/avr/avr-tables.opt
13969 $(srcdir)/doc/avr-mmcu.texi
13970 (avr-mcus): New phony target to build them on request.
13971 (s-avr-mlib, s-avr-mmcu-texi): Remove.
13972 * avr/avr-mcus.def: Adjust comments.
13973
c7afdc98
UB
139742013-01-07 Uros Bizjak <ubizjak@gmail.com>
13975
13976 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
13977
1ab05c31
RS
139782013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
13979
13980 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
13981
488e3acc
RS
139822013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
13983
13984 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
13985
a89599d2
DE
139862013-01-05 David Edelsohn <dje.gcc@gmail.com>
13987
13988 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
13989 to generate profiling.
13990 * config/rs6000/aix64.h (LIB_SPEC): Same.
13991
70f09188
AP
139922013-01-04 Andrew Pinski <apinski@cavium.com>
13993
13994 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
13995 New function.
13996 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
13997
918d445f
UB
139982013-01-04 Uros Bizjak <ubizjak@gmail.com>
13999
14000 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
14001 unconditionally.
14002 (ix86_expand_move): Ditto.
14003 (ix86_zero_extend_to_Pmode): Ditto.
14004 (ix86_expand_call): Ditto.
14005 (ix86_expand_special_args_builtin): Ditto.
14006 (ix86_expand_builtin): Ditto.
14007
361618ec
RB
140082013-01-04 Richard Biener <rguenther@suse.de>
14009
14010 PR tree-optimization/55862
14011 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
14012 translating them through PHI nodes.
14013
87eab554
MJ
140142013-01-04 Martin Jambor <mjambor@suse.cz>
14015
14016 PR tree-optimization/55755
14017 * tree-sra.c (sra_modify_assign): Do not check that an access has no
14018 children when trying to avoid producing a VIEW_CONVERT_EXPR.
14019
33879b9f
MP
140202013-01-04 Marek Polacek <polacek@redhat.com>
14021
14022 PR middle-end/55859
14023 * opts.c (default_options_optimization): Clarify error message.
14024
3068819a
RB
140252013-01-04 Richard Biener <rguenther@suse.de>
14026
14027 PR middle-end/55863
14028 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
14029 reassociation.
14030
0e4ae794
JDA
140312013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14032
14033 PR target/53789
14034 * config/pa/pa.md (movsi): Revert previous change.
e58d2e48
JDA
14035 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
14036 references.
0e4ae794 14037
65c88cef
RH
140382013-01-03 Richard Henderson <rth@redhat.com>
14039
14040 * config/i386/i386.c (ix86_expand_move): Always assign to op1
14041 after eliminating TLS symbols.
14042
8ac16127
MG
140432013-01-03 Marc Glisse <marc.glisse@inria.fr>
14044
14045 PR bootstrap/50167
14046 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
14047 * graphite-poly.c (debug_gmp_value): Likewise.
14048
bb664f09
UB
140492013-01-03 Uros Bizjak <ubizjak@gmail.com>
14050
14051 PR target/55712
14052 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
14053 selected code model, define __code_mode_small__, __code_model_medium__,
14054 __code_model_large__, __code_model_32__ or __code_model_kernel__.
14055 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
14056 xchg temporary register with %k. Declare temporary register as
14057 early clobbered.
14058 [__x86_64__]: For medium and large code models, preserve %rbx register.
14059
bcf1ef00
RB
140602013-01-03 Richard Biener <rguenther@suse.de>
14061
0506634a 14062 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
bcf1ef00
RB
14063 (dump_subscript): Adjust.
14064 (finalize_ddr_dependent): Do not dump redundant info.
14065 (analyze_siv_subscript): Adjust.
14066 (subscript_dependence_tester): Likewise.
14067 (compute_affine_dependence): Likewise.
14068
59fd17e3
RB
140692013-01-03 Richard Biener <rguenther@suse.de>
14070
14071 Revert
14072 2013-01-03 Richard Biener <rguenther@suse.de>
14073
14074 PR tree-optimization/55857
14075 * tree-vect-stmts.c (vectorizable_load): Do not setup
14076 re-alignment for invariant loads.
14077
14078 2013-01-02 Richard Biener <rguenther@suse.de>
14079
14080 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 14081 invariant load do not generate a vector load from the scalar location.
59fd17e3 14082
595c2679
RB
140832013-01-03 Richard Biener <rguenther@suse.de>
14084
14085 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
14086 for not vectorizing.
14087 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
14088 not build INDIRECT_REFs, call get_name once only.
14089 (vect_create_data_ref_ptr): Likewise. Dump base object kind
14090 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
14091
90bb7d7a
RB
140922013-01-03 Richard Biener <rguenther@suse.de>
14093
14094 PR tree-optimization/55857
14095 * tree-vect-stmts.c (vectorizable_load): Do not setup
14096 re-alignment for invariant loads.
14097
f09b77ca
RB
140982013-01-03 Richard Biener <rguenther@suse.de>
14099
14100 PR lto/55848
14101 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
14102 prefer a built-in decl.
14103
3461a16e
JJ
141042013-01-03 Jakub Jelinek <jakub@redhat.com>
14105
df8e2b4f
JJ
14106 * gcc.c (process_command): Update copyright notice dates.
14107 * gcov.c (print_version): Likewise.
14108 * gcov-dump.c (print_version): Likewise.
14109
3461a16e
JJ
14110 PR rtl-optimization/55838
14111 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
14112 iv0.step, iv1.step and step.
14113
8b5546d6
JJ
141142013-01-03 Jakub Jelinek <jakub@redhat.com>
14115 Marc Glisse <marc.glisse@inria.fr>
14116
14117 PR tree-optimization/55832
14118 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
14119 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
14120 integer_{one,zero}_node.
14121
8ab1d2e9
JJ
141222013-01-03 Jakub Jelinek <jakub@redhat.com>
14123
14124 PR debug/54402
14125 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
14126 * var-tracking.c (reverse_op): Don't add reverse ops to
14127 VALUEs that have already
0506634a 14128 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
8ab1d2e9 14129
5b9ad1d4
GP
141302013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
14131
14132 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
14133
e25a6711
TJ
141342013-01-02 Teresa Johnson <tejohnson@google.com>
14135
14136 * dumpfile.c (dump_loc): Print filename with location.
14137 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
14138 new location_t parameter to emit complete unroll message with
14139 new dump framework.
14140 (canonicalize_loop_induction_variables): Compute loops location
14141 and pass to try_unroll_loop_completely.
14142 * loop-unroll.c (report_unroll_peel): New function.
14143 (peel_loops_completely): Use new dump format with location
14144 for main dumpfile message, and invoke report_unroll_peel on success.
14145 (decide_unrolling_and_peeling): Ditto.
14146 (decide_peel_once_rolling): Remove old dumpfile message subsumed
14147 by report_unroll_peel.
14148 (decide_peel_completely): Ditto.
14149 (decide_unroll_constant_iterations): Ditto.
14150 (decide_unroll_runtime_iterations): Ditto.
14151 (decide_peel_simple): Ditto.
14152 (decide_unroll_stupid): Ditto.
14153 * cfgloop.c (get_loop_location): New function.
14154 * cfgloop.h (get_loop_location): Declare.
14155
77878621
ST
141562013-01-02 Sriraman Tallam <tmsriram@google.com>
14157
14158 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
14159 NULL.
14160
9e65d03e
JDA
141612013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14162
14163 PR middle-end/55198
14164 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
14165 BLKmode objects when EXPAND_MEMORY is specified.
14166
6a7da30f
ST
141672013-01-02 Sriraman Tallam <tmsriram@google.com>
14168
14169 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
14170 in loop predicate.
14171 (fold_builtin_cpu): Do not share cpu model decls across statements.
14172
e78167f2
JM
141732013-01-02 Jason Merrill <jason@redhat.com>
14174
14175 PR c++/55804
14176 * tree.c (build_array_type_1): Revert earlier change.
14177
8c075fb4
YZ
141782013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
14179
14180 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
14181 "cortex-a57".
14182 * config/aarch64/aarch64-tune.md: Re-generate.
14183
0682ed3e
RB
141842013-01-02 Richard Biener <rguenther@suse.de>
14185
14186 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 14187 invariant load do not generate a vector load from the scalar location.
0682ed3e 14188
b8f6a302
RB
141892013-01-02 Richard Biener <rguenther@suse.de>
14190
14191 PR bootstrap/55784
14192 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
14193 * configure: Regenerate.
14194
04b80dbb
RS
141952013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
14196
14197 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
14198 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
14199 (expand_builtin_int_roundingfn_2): Keep the original target around
14200 for the fallback case.
14201
635b0b0c
RS
142022013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
14203
14204 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
14205 to be clear for sign changes.
14206
42d57399
JH
142072013-01-01 Jan Hubicka <jh@suse.cz>
14208
14209 * ipa-inline-analysis.c: Fix formatting.
14210
5bb6669d
JJ
142112013-01-01 Jakub Jelinek <jakub@redhat.com>
14212
14213 PR tree-optimization/55831
14214 * tree-vect-loop.c (get_initial_def_for_induction): Use
14215 gsi_after_labels instead of gsi_start_bb.
ad41bd84 14216\f
86a2db33 14217Copyright (C) 2013 Free Software Foundation, Inc.
ad41bd84
JM
14218
14219Copying and distribution of this file, with or without modification,
14220are permitted in any medium without royalty provided the copyright
14221notice and this notice are preserved.