]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
Daily bump.
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
786fb9b6
ST
12013-07-02 Sriraman Tallam <tmsriram@google.com>
2
3 * config/i386/i386.c (gate_insert_vzeroupper): Check if target
4 ISA is AVX.
5 (ix86_option_override_internal):Turn on all -mavx target flags by
6 default as they are dependent on AVX anyway.
7
4b043553
CC
82013-07-02 Cary Coutant <ccoutant@google.com>
9
10 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
11 deterministic hash.
12 (loc_checksum_ordered): Likewise.
13 (hash_loc_operands): Remove inline keyword.
14
c4e87a13
JJ
152013-07-02 Jakub Jelinek <jakub@redhat.com>
16
17 PR tree-optimization/57741
18 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
19 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
20 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
21 Allow REAL_CST step_exprs if flag_associative_math.
22 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
23
26366d28
IB
242013-07-02 Ian Bolton <ian.bolton@arm.com>
25
26 * config/aarch64/aarch64-simd.md (absdi2): Support abs for
27 DI mode.
28
2879bb2b
IB
292013-07-02 Ian Bolton <ian.bolton@arm.com>
30
31 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
32
afc5e8a6
KT
332013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34
35 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
36 encoding.
37 (iorsi3_insn): Likewise.
38 (arm_xorsi3): Likewise.
39
31f8442b
SN
402013-07-01 Sofiane Naci <sofiane.naci@arm.com>
41
42 * arm.md (attribute "wtype"): Delete. Move attribute values from here
43 to ...
44 (attribute "type"): ... here, and prefix with "wmmx_".
45 (attribute "core_cycles"): Update for attribute changes.
46 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
47 (tbcstv4hi): Likewise.
48 (tbcstv2si): Likewise.
49 (iwmmxt_iordi3): Likewise.
50 (iwmmxt_xordi3): Likewise.
51 (iwmmxt_anddi3): Likewise.
52 (iwmmxt_nanddi3): Likewise.
53 (iwmmxt_arm_movdi): Likewise.
54 (iwmmxt_movsi_insn): Likewise.
55 (mov<mode>_internal): Likewise.
56 (and<mode>3_iwmmxt): Likewise.
57 (ior<mode>3_iwmmxt): Likewise.
58 (xor<mode>3_iwmmxt): Likewise.
59 (add<mode>3_iwmmxt): Likewise.
60 (ssaddv8qi3): Likewise.
61 (ssaddv4hi3): Likewise.
62 (ssaddv2si3): Likewise.
63 (usaddv8qi3): Likewise.
64 (usaddv4hi3): Likewise.
65 (usaddv2si3): Likewise.
66 (sub<mode>3_iwmmxt): Likewise.
67 (sssubv8qi3): Likewise.
68 (sssubv4hi3): Likewise.
69 (sssubv2si3): Likewise.
70 (ussubv8qi3): Likewise.
71 (ussubv4hi3): Likewise.
72 (ussubv2si3): Likewise.
73 (mulv4hi3_iwmmxt): Likewise.
74 (smulv4hi3_highpart): Likewise.
75 (umulv4hi3_highpart): Likewise.
76 (iwmmxt_wmacs): Likewise.
77 (iwmmxt_wmacsz): Likewise.
78 (iwmmxt_wmacu): Likewise.
79 (iwmmxt_wmacuz): Likewise.
80 (iwmmxt_clrdi): Likewise.
81 (iwmmxt_clrv8qi): Likewise.
82 (iwmmxt_clr4hi): Likewise.
83 (iwmmxt_clr2si): Likewise.
84 (iwmmxt_uavgrndv8qi3): Likewise.
85 (iwmmxt_uavgrndv4hi3): Likewise.
86 (iwmmxt_uavgv8qi3): Likewise.
87 (iwmmxt_uavgv4hi3): Likewise.
88 (iwmmxt_tinsrb): Likewise.
89 (iwmmxt_tinsrh): Likewise.
90 (iwmmxt_tinsrw): Likewise.
91 (iwmmxt_textrmub): Likewise.
92 (iwmmxt_textrmsb): Likewise.
93 (iwmmxt_textrmuh): Likewise.
94 (iwmmxt_textrmsh): Likewise.
95 (iwmmxt_textrmw): Likewise.
96 (iwmxxt_wshufh): Likewise.
97 (eqv8qi3): Likewise.
98 (eqv4hi3): Likewise.
99 (eqv2si3): Likewise.
100 (gtuv8qi3): Likewise.
101 (gtuv4hi3): Likewise.
102 (gtuv2si3): Likewise.
103 (gtv8qi3): Likewise.
104 (gtv4hi3): Likewise.
105 (gtv2si3): Likewise.
106 (smax<mode>3_iwmmxt): Likewise.
107 (umax<mode>3_iwmmxt): Likewise.
108 (smin<mode>3_iwmmxt): Likewise.
109 (umin<mode>3_iwmmxt): Likewise.
110 (iwmmxt_wpackhss): Likewise.
111 (iwmmxt_wpackwss): Likewise.
112 (iwmmxt_wpackdss): Likewise.
113 (iwmmxt_wpackhus): Likewise.
114 (iwmmxt_wpackwus): Likewise.
115 (iwmmxt_wpackdus): Likewise.
116 (iwmmxt_wunpckihb): Likewise.
117 (iwmmxt_wunpckihh): Likewise.
118 (iwmmxt_wunpckihw): Likewise.
119 (iwmmxt_wunpckilb): Likewise.
120 (iwmmxt_wunpckilh): Likewise.
121 (iwmmxt_wunpckilw): Likewise.
122 (iwmmxt_wunpckehub): Likewise.
123 (iwmmxt_wunpckehuh): Likewise.
124 (iwmmxt_wunpckehuw): Likewise.
125 (iwmmxt_wunpckehsb): Likewise.
126 (iwmmxt_wunpckehsh): Likewise.
127 (iwmmxt_wunpckehsw): Likewise.
128 (iwmmxt_wunpckelub): Likewise.
129 (iwmmxt_wunpckeluh): Likewise.
130 (iwmmxt_wunpckeluw): Likewise.
131 (iwmmxt_wunpckelsb): Likewise.
132 (iwmmxt_wunpckelsh): Likewise.
133 (iwmmxt_wunpckelsw): Likewise.
134 (ror<mode>3): Likewise.
135 (ashr<mode>3_iwmmxt): Likewise.
136 (lshr<mode>3_iwmmxt): Likewise.
137 (ashl<mode>3_iwmmxt): Likewise.
138 (ror<mode>3_di): Likewise.
139 (ashr<mode>3_di): Likewise.
140 (lshr<mode>3_di): Likewise.
141 (ashl<mode>3_di): Likewise.
142 (iwmmxt_wmadds): Likewise.
143 (iwmmxt_wmaddu): Likewise.
144 (iwmmxt_tmia): Likewise.
145 (iwmmxt_tmiaph): Likewise.
146 (iwmmxt_tmiabb): Likewise.
147 (iwmmxt_tmiatb): Likewise.
148 (iwmmxt_tmiabt): Likewise.
149 (iwmmxt_tmiatt): Likewise.
150 (iwmmxt_tmovmskb): Likewise.
151 (iwmmxt_tmovmskh): Likewise.
152 (iwmmxt_tmovmskw): Likewise.
153 (iwmmxt_waccb): Likewise.
154 (iwmmxt_wacch): Likewise.
155 (iwmmxt_waccw): Likewise.
156 (iwmmxt_waligni): Likewise.
157 (iwmmxt_walignr): Likewise.
158 (iwmmxt_walignr0): Likewise.
159 (iwmmxt_walignr1): Likewise.
160 (iwmmxt_walignr2): Likewise.
161 (iwmmxt_walignr3): Likewise.
162 (iwmmxt_wsadb): Likewise.
163 (iwmmxt_wsadh): Likewise.
164 (iwmmxt_wsadbz): Likewise.
165 (iwmmxt_wsadhz): Likewise.
166 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
167 (iwmmxt_wabsdiffb): Likewise.
168 (iwmmxt_wabsdiffh): Likewise.
169 (iwmmxt_wabsdiffw): Likewise.
170 (iwmmxt_waddsubhx): Likewise
171 (iwmmxt_wsubaddhx): Likewise.
172 (addc<mode>3): Likewise.
173 (iwmmxt_avg4): Likewise.
174 (iwmmxt_avg4r): Likewise.
175 (iwmmxt_wmaddsx): Likewise.
176 (iwmmxt_wmaddux): Likewise.
177 (iwmmxt_wmaddsn): Likewise.
178 (iwmmxt_wmaddun): Likewise.
179 (iwmmxt_wmulwsm): Likewise.
180 (iwmmxt_wmulwum): Likewise.
181 (iwmmxt_wmulsmr): Likewise.
182 (iwmmxt_wmulumr): Likewise.
183 (iwmmxt_wmulwsmr): Likewise.
184 (iwmmxt_wmulwumr): Likewise.
185 (iwmmxt_wmulwl): Likewise.
186 (iwmmxt_wqmulm): Likewise.
187 (iwmmxt_wqmulwm): Likewise.
188 (iwmmxt_wqmulmr): Likewise.
189 (iwmmxt_wqmulwmr): Likewise.
190 (iwmmxt_waddbhusm): Likewise.
191 (iwmmxt_waddbhusl): Likewise.
192 (iwmmxt_wqmiabb): Likewise.
193 (iwmmxt_wqmiabt): Likewise.
194 (iwmmxt_wqmiatb): Likewise.
195 (iwmmxt_wqmiatt): Likewise.
196 (iwmmxt_wqmiabbn): Likewise.
197 (iwmmxt_wqmiabtn): Likewise.
198 (iwmmxt_wqmiatbn): Likewise.
199 (iwmmxt_wqmiattn): Likewise.
200 (iwmmxt_wmiabb): Likewise.
201 (iwmmxt_wmiabt): Likewise.
202 (iwmmxt_wmiatb): Likewise.
203 (iwmmxt_wmiatt): Likewise.
204 (iwmmxt_wmiabbn): Likewise.
205 (iwmmxt_wmiabtn): Likewise.
206 (iwmmxt_wmiatbn): Likewise.
207 (iwmmxt_wmiattn): Likewise.
208 (iwmmxt_wmiawbb): Likewise.
209 (iwmmxt_wmiawbt): Likewise.
210 (iwmmxt_wmiawtb): Likewise.
211 (iwmmxt_wmiawtt): Likewise.
212 (iwmmxt_wmiawbbn): Likewise.
213 (iwmmxt_wmiawbtn): Likewise.
214 (iwmmxt_wmiawtbn): Likewise.
215 (iwmmxt_wmiawttn): Likewise.
216 (iwmmxt_wmerge): Likewise.
217 (iwmmxt_tandc<mode>3): Likewise.
218 (iwmmxt_torc<mode>3): Likewise.
219 (iwmmxt_torvsc<mode>3): Likewise.
220 (iwmmxt_textrc<mode>3): Likewise.
221 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
222 (wmmxt_pack): Likewise.
223 (wmmxt_mult_c1): Likewise.
224 (wmmxt_mult_c2): Likewise.
225 (wmmxt_alu_c1): Likewise.
226 (wmmxt_alu_c2): Likewise.
227 (wmmxt_alu_c3): Likewise.
228 (wmmxt_transfer_c1): Likewise.
229 (wmmxt_transfer_c2): Likewise.
230 (wmmxt_transfer_c3): Likewise.
231 (marvell_f_iwmmxt_wstr): Likewise.
232 (marvell_f_iwmmxt_wldr): Likewise.
233
bdb7bf8a
YZ
2342013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
235
236 * config/aarch64/aarch64.c: Remove junk from the beginning of the
237 file.
238
e6631d38
VM
2392013-06-28 Vladimir Makarov <vmakarov@redhat.com>
240
241 Revert:
242 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
243 * lra-constraints.c (need_for_split_p): Check call used hard regs
244 living through calls.
245
246 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
247 call used regs for call insn.
248
53c1275b
JJ
2492013-06-28 Jakub Jelinek <jakub@redhat.com>
250
251 PR target/57736
252 * config/i386/i386.c (ix86_expand_builtin): If target == NULL
253 and mode is VOIDmode, don't create a VOIDmode pseudo to copy result
254 into.
255
1141ed3f
BI
2562013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
257
258 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
e6631d38 259
e32e4c4a
VM
2602013-06-28 Vladimir Makarov <vmakarov@redhat.com>
261
262 * lra-constraints.c (need_for_split_p): Check call used hard regs
263 living through calls.
264
f161bfd3
MM
2652013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
266
267 PR target/57744
268 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
269 to tie with any other modes. Eliminate Altivec vector mode tests,
270 since these are a subset of ALTIVEC or VSX vector modes. Simplify
271 code, to return 0 if testing MODE2 for a condition, if we've
272 already tested MODE1 for the same condition.
273
7eda14e1
MS
2742013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
275
276 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
277 layout.
278
c822f852
MS
2792013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
280
281 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
282 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
283
da4f13a4
MS
2842013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
285
286 * config/aarch64/aarch64-protos.h
287 aarch64_classify_symbol_expression): Define.
288 (aarch64_symbolic_constant_p): Remove.
289 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
290 static. Fix line length and white space.
291 (aarch64_symbolic_constant_p): Remove.
292 * config/aarch64/predicates.md (aarch64_valid_symref):
293 Use aarch64_classify_symbol_expression.
294
956a95a5
KT
2952013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
296
297 * config/arm/constraints.md (Ts): New constraint.
298 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
299 16-bit encodings.
300 (compare_scc): Use "Ts" constraint for operand 0.
301 (ior_scc_scc): Likewise.
302 (and_scc_scc): Likewise.
303 (and_scc_scc_nodom): Likewise.
304 (ior_scc_scc_cmp): Likewise for operand 7.
305 (and_scc_scc_cmp): Likewise.
306 * config/arm/thumb2.md (thumb2_movsi_insn):
307 Add alternatives for 16-bit encodings.
308 (thumb2_movhi_insn): Likewise.
309 (thumb2_movsicc_insn): Likewise.
310 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
311 (thumb2_negscc): Use "Ts" constraint.
312 Move mvn instruction outside cond_exec block.
313 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
314 for 16-bit encodings.
315
31dfce10
KT
3162013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
317
318 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
319 encoding.
320 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
321 (mulsi3subsi): Likewise.
322 (mulsidi3adddi): Likewise.
323 (mulsidi3_v6): Likewise.
324 (umulsidi3_v6): Likewise.
325 (umulsidi3adddi_v6): Likewise.
326 (smulsi3_highpart_v6): Likewise.
327 (umulsi3_highpart_v6): Likewise.
328 (mulhisi3tb): Likewise.
329 (mulhisi3bt): Likewise.
330 (mulhisi3tt): Likewise.
331 (maddhisi4): Likewise.
332 (maddhisi4tb): Likewise.
333 (maddhisi4tt): Likewise.
334 (maddhidi4): Likewise.
335 (maddhidi4tb): Likewise.
336 (maddhidi4tt): Likewise.
337 (zeroextractsi_compare0_scratch): Likewise.
338 (insv_zero): Likewise.
339 (insv_t2): Likewise.
340 (anddi_notzesidi_di): Likewise.
341 (anddi_notsesidi_di): Likewise.
342 (andsi_notsi_si): Likewise.
343 (iordi_zesidi_di): Likewise.
344 (xordi_zesidi_di): Likewise.
345 (andsi_iorsi3_notsi): Likewise.
346 (smax_0): Likewise.
347 (smax_m1): Likewise.
348 (smin_0): Likewise.
349 (not_shiftsi): Likewise.
350 (unaligned_loadsi): Likewise.
351 (unaligned_loadhis): Likewise.
352 (unaligned_loadhiu): Likewise.
353 (unaligned_storesi): Likewise.
354 (unaligned_storehi): Likewise.
355 (extv_reg): Likewise.
356 (extzv_t2): Likewise.
357 (divsi3): Likewise.
358 (udivsi3): Likewise.
359 (arm_zero_extendhisi2addsi): Likewise.
360 (arm_zero_extendqisi2addsi): Likewise.
361 (compareqi_eq0): Likewise.
362 (arm_extendhisi2_v6): Likewise.
363 (arm_extendqisi2addsi): Likewise.
364 (arm_movt): Likewise.
365 (thumb2_ldrd): Likewise.
366 (thumb2_ldrd_base): Likewise.
367 (thumb2_ldrd_base_neg): Likewise.
368 (thumb2_strd): Likewise.
369 (thumb2_strd_base): Likewise.
370 (thumb2_strd_base_neg): Likewise.
371 (arm_negsi2): Add alternative for 16-bit encoding.
372 (arm_one_cmplsi2): Likewise.
373
1572e697
KT
3742013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
375
376 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
377 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
378 (movdfcc): Likewise.
379 * config/arm/vfp.md (*thumb2_movsf_vfp):
380 Disable predication for arm_restrict_it.
381 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
382 (*thumb2_movdfcc_vfp): Likewise.
383 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
384 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
385 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
386 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
387 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
388 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
389 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
390 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
391 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
392 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
393 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
394 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
395 Disable predication for arm_restrict_it.
396
ebf8f0ea
KY
3972013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
398
399 * config/i386/bmiintrin.h (_bextr_u32): New.
400 (_bextr_u64): Ditto.
401
a290fcda
RS
4022013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
403
404 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
405 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
406 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
407 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
408 * config/mips/n32-elf.h: ...this new file.
409
ea169996
MG
4102013-06-27 Marc Glisse <marc.glisse@inria.fr>
411
412 PR target/57224
413 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
414 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
415
8e932114
CM
4162013-06-27 Catherine Moore <clm@codesourcery.com>
417
418 * config/mips/mips-tables.opt: Regenerate.
419 * config/mips/mips-cpus.def: Add m14ke and m14kec.
420 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies
421 -mdspr2.
422 * doc/invoke.texi: Add -m14kc.
ebf8f0ea 423
2444244e
JJ
4242013-06-27 Jakub Jelinek <jakub@redhat.com>
425
cd06d2a2
JJ
426 PR target/57623
427 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
428 constraints of operand 1 and 2.
429
2444244e
JJ
430 PR target/57623
431 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
432 to match RTL canonicalization. Swap predicates and
433 constraints of operand 1 and 2.
434
2f259720
VM
4352013-06-27 Vladimir Makarov <vmakarov@redhat.com>
436
437 * lra-constraints.c (inherit_in_ebb): Process static hard regs
438 too. Process OP_INOUT regs for splitting too.
439
fef4d2b3
JJ
4402013-06-27 Jakub Jelinek <jakub@redhat.com>
441
442 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
443 decl before the loop, initialize to NULL.
444 (vectorizable_load): Initialize ptr_incr to NULL.
445
79ee9826
MJ
4462013-06-27 Martin Jambor <mjambor@suse.cz>
447
448 PR lto/57208
449 * ipa-ref.h (ipa_maybe_record_reference): Declare.
450 * ipa-ref.c (ipa_maybe_record_reference): New function.
451 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
452 * ipa-cp.c (create_specialized_node): Record potential references from
453 aggvals.
454 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
455
e18b4a81
YZ
4562013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
457
458 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
459 parameter 'mode' of type 'enum machine_mode mode'; change to pass
460 'mode' to force_reg.
461 (aarch64_add_offset): Update calls to aarch64_force_temporary.
462 (aarch64_expand_mov_immediate): Likewise.
463
9c023bf0
YZ
4642013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
465
466 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
467 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
468
5a3fe9b6
AK
4692013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
470
471 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
472 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
473 (struct machine_function): Add tbegin_p.
474 (s390_canonicalize_comparison): Fold CC mode compares to
475 conditional jump if possible.
476 (s390_emit_jump): Return the emitted jump.
477 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
478 Handle CCRAWmode compares.
479 (s390_option_override): Default to -mhtm if available.
480 (s390_reg_clobbered_rtx): Handle floating point regs as well.
481 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
482 FPRs instead of df_regs_ever_live_p.
483 (s390_optimize_nonescaping_tx): New function.
484 (s390_init_frame_layout): Extend clobbered_regs array to cover
485 FPRs as well.
486 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
487 (s390_expand_tbegin): New function.
488 (enum s390_builtin): New enum definition.
489 (code_for_builtin): New array definition.
490 (s390_init_builtins): New function.
491 (s390_expand_builtin): New function.
492 (TARGET_INIT_BUILTINS): Define.
493 (TARGET_EXPAND_BUILTIN): Define.
494 * common/config/s390/s390-common.c (processor_flags_table): Add
495 PF_TX.
496 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
497 (s390_alc_comparison): Likewise.
498 * config/s390/s390-modes.def: Add CCRAWmode.
499 * config/s390/s390.h (processor_flags): Add PF_TX.
500 (TARGET_CPU_HTM): Define macro.
501 (TARGET_HTM): Define macro.
502 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
503 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
504 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
505 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
506 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum
507 values.
508 (TBEGIN_MASK, TBEGINC_MASK): New constants.
509 ("*cc_to_int"): Move up.
510 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
511 constants other than 0.
512 ("*ccraw_to_int"): New insn and splitter definition.
513 ("tbegin", "tbegin_nofloat", "tbegin_retry")
514 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
515 ("tx_assist"): New expander.
516 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
517 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
518 * config/s390/s390.opt: Add -mhtm option.
519 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
520 * config/s390/htmxlintrin.h: New file.
521 * config/s390/htmintrin.h: New file.
522 * config/s390/s390intrin.h: New file.
523 * doc/extend.texi: Document htm builtins.
524 * config.gcc: Add the new header files to extra_headers.
525
9e216629
TS
5262013-06-26 Thomas Schwinge <thomas@codesourcery.com>
527
528 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
529 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET):
530 Undefine.
531
fd8c65e7
MM
5322013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
533 Pat Haugen <pthaugen@us.ibm.com>
534 Peter Bergner <bergner@vnet.ibm.com>
535
536 * config/rs6000/power8.md: New.
537 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
538 setting for power8 entry.
539 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
540 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
541 test for Power4/Power5 only.
542 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
543 support.
544 (force_new_group): Adjust comment.
545 * config/rs6000/rs6000.md: Include power8.md.
546
b24a2ce5
GY
5472013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
548
549 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
550 * config/arm/arm-protos.h (arm_max_conditional_execute): New
551 declaration.
552 (tune_params): Update comment.
553 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
554 (arm_max_conditional_execute): New function.
555 (thumb2_final_prescan_insn): Use max_insn_skipped and
556 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
557
f6fdeb62
JJ
5582013-06-25 Jakub Jelinek <jakub@redhat.com>
559
560 PR tree-optimization/57705
561 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
562 SSA_NAME step, provided that it is not defined inside the loop.
563 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested
564 loop.
565 (get_initial_def_for_induction): Handle SSA_NAME IV step.
566
c13bc3d9
MJ
5672013-06-25 Martin Jambor <mjambor@suse.cz>
568
569 PR middle-end/57670
570 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
571 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
572 calls in the dump.
573 (ipa_note_param_call): Initialize member_ptr flag.
574 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
575 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
576 (ipa_write_indirect_edge_info): Stream member_ptr flag.
577 (ipa_read_indirect_edge_info): Likewise.
578
8a845901
RB
5792013-06-25 Richard Biener <rguenther@suse.de>
580
581 PR middle-end/56977
582 * passes.c (init_optimization_passes): Move pass_fold_builtins
583 and pass_dce earlier with -Og.
584
33be0bec
EB
5852013-06-25 Eric Botcazou <ebotcazou@adacore.com>
586
587 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
588 <BIT_FIELD_REF>: Remove trailing TAB.
589 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
590 remove blank line.
591
5fe8e757
MJ
5922013-06-24 Martin Jambor <mjambor@suse.cz>
593
594 PR tree-optimization/57358
595 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
596 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
597 (ipa_analyze_params_uses): Generate pessimistic info when true.
598
44a60244
MJ
5992013-06-24 Martin Jambor <mjambor@suse.cz>
600
601 PR tree-optimization/57539
602 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
603 global.inlined_to of the new node to it. All callers changed.
604 * ipa-inline-transform.c (clone_inlined_nodes): New variable
605 inlining_into, pass it to cgraph_clone_node.
606 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
607 ipa_free_edge_args_substructures.
608 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
609 rdesc linked list. Do not assert rdesc edges have inlined caller.
610 Assert we have found an rdesc in the rdesc list.
611
7c5848b8
RB
6122013-06-24 Richard Biener <rguenther@suse.de>
613
614 * pointer-set.h (struct pointer_set_t): Move here from
615 pointer-set.c.
616 (pointer_set_lookup): Declare.
617 (class pointer_map): New template class implementing a
618 generic pointer to T map.
619 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
620 pointer_map<T>::contains, pointer_map<T>::insert,
621 pointer_map<T>::traverse): New functions.
622 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
623 (pointer_set_lookup): New function.
624 (pointer_set_contains): Use pointer_set_lookup.
625 (pointer_set_insert): Likewise.
626 (insert_aux): Remove.
627 (struct pointer_map_t): Embed a pointer_set_t.
628 (pointer_map_create): Adjust.
629 (pointer_map_destroy): Likewise.
630 (pointer_map_contains): Likewise.
631 (pointer_map_insert): Likewise.
632 (pointer_map_traverse): Likewise.
633 * tree-streamer.h (struct streamer_tree_cache_d): Use a
634 pointer_map<unsigned> instead of a pointer_map_t.
635 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
636 (streamer_tree_cache_lookup): Likewise.
637 (streamer_tree_cache_create): Likewise.
638 (streamer_tree_cache_delete): Likewise.
639 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
640 pointer_map<unsigned> instead of a pointer_map_t.
641 (lto_init_tree_ref_encoder): Adjust.
642 (lto_destroy_tree_ref_encoder): Likewise.
643 * lto-section-out.c (lto_output_decl_index): Likewise.
644 (lto_record_function_out_decl_state): Likewise.
645 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
646
3dbc97a9
RB
6472013-06-24 Richard Biener <rguenther@suse.de>
648
649 PR tree-optimization/57488
650 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
651
8345965a
AM
6522013-06-24 Alan Modra <amodra@gmail.com>
653
654 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
655 (gen_easy_altivec_constant): Likewise.
656 * config/rs6000/predicates.md (easy_vector_constant_add_self,
657 easy_vector_constant_msb): Likewise.
658
b7df379f
JJ
6592013-06-23 Jakub Jelinek <jakub@redhat.com>
660
661 PR target/57688
662 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
663 add missing return true.
664
0bcf9a09
OE
6652013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
666
667 PR target/52483
668 * config/sh/predicates.md (general_extend_operand): Invoke
669 general_movsrc_operand for memory operands.
670 (general_movsrc_operand): Allow reg+reg addressing, do not use
671 general_operand for memory operands.
672
97db2bf7
ST
6732013-06-23 Sriraman Tallam <tmsriram@google.com>
674
675 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
676 when current target options does not apply.
677 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
678 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
679 * config/i386/bmiintrin.h: Pass appropriate target attributes to header.
680 * config/i386/mmintrin.h: Ditto.
681 * config/i386/nmmintrin.h: Ditto.
682 * config/i386/avx2intrin.h: Ditto.
683 * config/i386/fxsrintrin.h: Ditto.
684 * config/i386/tbmintrin.h: Ditto.
685 * config/i386/xsaveintrin.h: Ditto.
686 * config/i386/f16cintrin.h: Ditto.
687 * config/i386/xtestintrin.h: Ditto.
688 * config/i386/xsaveoptintrin.h: Ditto.
689 * config/i386/bmi2intrin.h: Ditto.
690 * config/i386/lzcntintrin.h: Ditto.
691 * config/i386/smmintrin.h: Ditto.
692 * config/i386/wmmintrin.h: Ditto.
693 * config/i386/x86intrin.h: Remove all header include guards.
694 * config/i386/prfchwintrin.h: Ditto.
695 * config/i386/pmmintrin.h: Ditto.
696 * config/i386/tmmintrin.h: Ditto.
697 * config/i386/xmmintrin.h: Ditto.
698 * config/i386/popcntintrin.h: Ditto.
699 * config/i386/rdseedintrin.h: Ditto.
700 * config/i386/ammintrin.h: Ditto.
701 * config/i386/emmintrin.h: Ditto.
702 * config/i386/immintrin.h: Remove all header include guards.
703 * config/i386/fma4intrin.h: Ditto.
704 * config/i386/lwpintrin.h: Ditto.
705 * config/i386/xopintrin.h: Ditto.
706 * config/i386/ia32intrin.h: Ditto.
707 * config/i386/avxintrin.h: Ditto.
708 * config/i386/rtmintrin.h: Ditto.
709 * config/i386/fmaintrin.h: Ditto.
710 * config/i386/mm3dnow.h: Ditto.
711
495e6879
ST
7122013-06-22 Sriraman Tallam <tmsriram@google.com>
713
714 * common/config/i386/i386-common.c: Handle LZCNT.
715
11e8f687
AK
7162013-06-22 Andi Kleen <ak@linux.intel.com>
717
718 * doc/extend.texi: Use __atomic_store_n instead of
719 __atomic_store in HLE example.
720
664dd721
OE
7212013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
722
723 * config/sh/sh.c: Remove <cstdlib> workaround.
724
927f908b
AK
7252013-06-21 Andi Kleen <ak@linux.intel.com>
726
727 * doc/extend.texi: Dont use __atomic_clear in HLE
728 example. Fix typo.
729
cca410b6
AK
7302013-06-21 Andi Kleen <ak@linux.intel.com>
731
732 * doc/extend.texi: Document that __atomic_clear and
733 __atomic_test_and_set should only be used with bool.
734
d84db1ed
JH
7352013-06-20 Jan Hubicka <jh@suse.cz>
736
737 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
738 types_same_for_odr.
739 * tree.c (decls_same_for_odr): New function.
740 (same_for_edr): New function.
741 (types_same_for_odr): New function.
742 (get_binfo_at_offset): Use it.
743 * tree.h (types_same_for_odr): Declare.
744
664dd721 7452013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
469a31a9
OE
746 Jason Merrill <jason@redhat.com>
747
748 * system.h: Include <cstdlib> as well as <stdlib.h>.
749
49b4ff63
UB
7502013-06-20 Uros Bizjak <ubizjak@gmail.com>
751
752 PR target/57655
753 * config/i386/i386.c (construct_container): Report error if
754 long double is used with disabled x87 float returns.
755
7a89ad00
JH
7562013-06-20 Jan Hubicka <jh@suse.cz>
757
758 * lto-cgraph.c (input_symtab): Do not set cgraph state.
759
bd280792
JR
7602013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
761
762 PR rtl-optimization/57425
763 PR rtl-optimization/57569
764 * alias.c (write_dependence_p): Remove parameters mem_mode and
765 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
766 Changed all callers.
767 (canon_anti_dependence): Get comments and semantics in sync.
768 Add parameter mem_canonicalized. Changed all callers.
769 * rtl.h (canon_anti_dependence): Update prototype.
770
d16e9a99
RB
7712013-06-20 Richard Biener <rguenther@suse.de>
772
773 * data-streamer-in.c (streamer_read_uhwi): Optimize single
774 byte case, inline streamer_read_uchar and defer section
775 overrun check.
776
c3a9b91b
RB
7772013-06-20 Richard Biener <rguenther@suse.de>
778
779 PR tree-optimization/57584
780 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
781 SSA names into the expanded expression that take part in
782 abnormal coalescing.
783
fc8a650e
SS
7842013-06-19 <singhai@google.com>
785
786 * gcov.c (print_usage): Handle new option.
787 (process_args): Ditto.
788 (get_gcov_intermediate_filename): New function.
789 (output_intermediate_file): New function.
790 (output_gcov_file): New function
791 (generate_results): Handle new option.
792 (release_function): Relase demangled name.
793 (read_graph_file): Handle demangled name.
794 (output_lines): Ditto.
795 * doc/gcov.texi: Document gcov intermediate format.
796
11f5b71a
VM
7972013-06-19 Vladimir Makarov <vmakarov@redhat.com>
798
799 PR bootstrap/57604
800 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
801 (lra_emit_add): Use the functions. Add comment about Y as an
802 address segment.
803
e1f9340b
DE
8042013-06-19 David Edelsohn <dje.gcc@gmail.com>
805
806 PR driver/57652
807 * collect2.c (collect_atexit): New.
808 (collect_exit): Delete.
809 (main): Register collect_atexit with atexit.
810 (collect_wait): Change collect_exit to exit.
811 (do_wait): Same.
812 * collect2.h (collect_exit): Delete.
813 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
814
e3f9e0ac
WM
8152013-06-19 Wei Mi <wmi@google.com>
816
817 PR rtl-optimization/57518
818 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
819 if regno is used in paradoxical subreg.
820 (update_equiv_regs): Check pdx_subregs[regno] before
821 set a reg to be equivalent with a mem.
822
a09f1a76
MK
8232013-06-19 Matthias Klose <doko@ubuntu.com>
824
825 PR driver/57651
826 * file-find.h (find_a_file): Add a mode parameter.
827 * file-find.c (find_a_file): Likewise.
828 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
829 with X_OK for the executables.
830 * collect2.c (main): Call find_a_file with X_OK.
831
7d18b0ad
SE
8322013-06-19 Steve Ellcey <sellcey@mips.com>
833
834 PR target/56942
835 * config/mips/mips.md (casesi_internal_mips16_<mode>):
836 Use NEXT_INSN instead of next_real_insn.
837
6a6dac52
JH
8382013-06-19 Jan Hubicka <jh@suse.cz>
839
840 * cgraph.h (const_value_known_p): Replace by ...
841 (ctor_for_folding): .. this one.
842 * cgraphunit.c (process_function_and_variable_attributes): Use it.
843 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
844 * expr.c (expand_expr_real_1): Likewise.
845 (string_constant): Likewise.
846 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
847 * ipa.c (process_references): Likewise.
848 (symtab_remove_unreachable_nodes): Likewise.
849 * ipa-inline-analysis.c (param_change_prob): Likewise.
850 * gimple-fold.c (canonicalize_constructor_val): Likewise.
851 (get_base_constructor): Likwise.
852 * varpool.c (varpool_remove_node): Likewise.
853 (varpool_remove_initializer): LIkewise.
854 (dump_varpool_node): LIkwise.
855 (const_value_known_p): Rewrite to ...
856 (ctor_for_folding): ... this one.
857
216c12ab
JJ
8582013-06-19 Jakub Jelinek <jakub@redhat.com>
859
860 PR driver/57651
861 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
862 PERSONALITY in $PATH derived prefixes.
863
d53e2f99
JL
8642013-06-19 Jeff Law <law@redhat.com>
865
ecdbf306
JL
866 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
867 in comment.
868
d53e2f99
JL
869 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
870 (simplify_bitwise_binary): Use it to simpify certain binary ops on
871 booleans.
872
89e7fc04
SN
8732013-06-19 Sofiane Naci <sofiane.naci@arm.com>
874
875 * config/arm/vfp.md: Move VFP instruction classification documentation
876 to ...
877 * config/arm/arm.md: ... here. Update instruction classification
878 documentation.
879
5e7f6aaa
RE
8802013-06-19 Richard Earnshaw <rearnsha@arm.com>
881
882 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
883 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
884 pattern. Use more efficient sequences on ARMv5 and Thumb2.
885
5fdc1e5d
SB
8862013-06-19 Steven Bosscher <steven@gcc.gnu.org>
887
888 PR target/57609
889 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
890 with NEXT_INSN. Use tablejump_p to check for jump table data
891 insns.
892
e952afba
PC
8932013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
894
895 PR c++/56544
896 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
897 that now in C++ the value is correct per the C++ standards.
898
3fd0303a
RB
8992013-06-19 Richard Biener <rguenther@suse.de>
900
901 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
902 for global context.
903
b04e4b08
AK
9042013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
905
906 Revert:
907 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
908
909 PR target/57609
910 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
911 with next_active_insn.
912
bef8491a
ST
9132013-06-18 Sriraman Tallam <tmsriram@google.com>
914
915 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
916 functions are inlined during failures to flag an error.
917 * tree-inline.c (expand_call_inline): Allow the error to be flagged
918 in early inline pass.
22fc7d3d 919
c21b257d
L
9202013-06-18 H.J. Lu <hongjiu.lu@intel.com>
921
922 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
923 in comments.
924
33255ae3
JB
9252013-06-18 Julian Brown <julian@codesourcery.com>
926
927 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
928 Permit virtual register pre-reload if !strict.
929 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
930 change.
931 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
932 prototype.
933 * config/arm/neon.md (movmisalign<mode>): Use
934 neon_perm_struct_or_reg_operand instead of
935 neon_struct_or_register_operand.
936 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
937 neon_permissive_struct_operand instead of neon_struct_operand.
938 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
939 neon_vector_mem_operand.
940 * config/arm/predicates.md (neon_struct_operand): Adjust call to
941 neon_vector_mem_operand.
942 (neon_permissive_struct_operand): New.
943 (neon_struct_or_register_operand): Rename to...
944 (neon_perm_struct_or_reg_operand): This. Adjust call to
945 neon_vector_mem_operand.
946
d579fcda
RB
9472013-06-18 Richard Biener <rguenther@suse.de>
948
949 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
950 * lto-streamer.h: Include pointer-set.h.
951 (struct lto_decl_slot): Remove.
952 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
953 Remove next_index entry.
954 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
955 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
956 (lto_init_tree_ref_encoder): Adjust.
957 (lto_destroy_tree_ref_encoder): Likewise.
958 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
959 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
960 (lto_output_decl_index): Adjust.
961 (lto_new_out_decl_state): Likewise.
962 (lto_record_function_out_decl_state): Likewise.
963 * lto-streamer-out.c (copy_function): Likewise.
964
31ee20ba
RB
9652013-06-18 Richard Biener <rguenther@suse.de>
966
967 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
968 * cgraphunit.c: Include cfgloop.h.
969 (init_lowered_empty_function): Initialize the loop tree.
970 (assemble_thunk): Insert new BBs into loops.
971
ac0511f2
RB
9722013-06-18 Richard Biener <rguenther@suse.de>
973
974 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
975 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
976 the map from cache entry to cache index optional.
977 (streamer_tree_cache_replace_tree): Adjust accordingly.
978 (streamer_tree_cache_append): Likewise.
979 (streamer_tree_cache_delete): Likewise.
980 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
981 streamer cache map from cache entry to cache index.
982 * lto-streamer-out.c (create_output_block): Adjust.
983
09485a08
SN
9842013-06-18 Sofiane Naci <sofiane.naci@arm.com>
985
22fc7d3d
UB
986 * config/arm/arm.md (attribute "insn"): Move multiplication and
987 division attributes to...
09485a08
SN
988 (attribute "type"): ... here. Remove mult.
989 (attribute "mul32"): New attribute.
990 (attribute "mul64"): Add umaal.
991 (*arm_mulsi3): Update attributes.
992 (*arm_mulsi3_v6): Likewise.
993 (*thumb_mulsi3): Likewise.
994 (*thumb_mulsi3_v6): Likewise.
995 (*mulsi3_compare0): Likewise.
996 (*mulsi3_compare0_v6): Likewise.
997 (*mulsi_compare0_scratch): Likewise.
998 (*mulsi_compare0_scratch_v6): Likewise.
999 (*mulsi3addsi): Likewise.
1000 (*mulsi3addsi_v6): Likewise.
1001 (*mulsi3addsi_compare0): Likewise.
1002 (*mulsi3addsi_compare0_v6): Likewise.
1003 (*mulsi3addsi_compare0_scratch): Likewise.
1004 (*mulsi3addsi_compare0_scratch_v6): Likewise.
1005 (*mulsi3subsi): Likewise.
1006 (*mulsidi3adddi): Likewise.
1007 (*mulsi3addsi_v6): Likewise.
1008 (*mulsidi3adddi_v6): Likewise.
1009 (*mulsidi3_nov6): Likewise.
1010 (*mulsidi3_v6): Likewise.
1011 (*umulsidi3_nov6): Likewise.
1012 (*umulsidi3_v6): Likewise.
1013 (*umulsidi3adddi): Likewise.
1014 (*umulsidi3adddi_v6): Likewise.
1015 (*smulsi3_highpart_nov6): Likewise.
1016 (*smulsi3_highpart_v6): Likewise.
1017 (*umulsi3_highpart_nov6): Likewise.
1018 (*umulsi3_highpart_v6): Likewise.
1019 (mulhisi3): Likewise.
1020 (*mulhisi3tb): Likewise.
1021 (*mulhisi3bt): Likewise.
1022 (*mulhisi3tt): Likewise.
1023 (maddhisi4): Likewise.
1024 (*maddhisi4tb): Likewise.
1025 (*maddhisi4tt): Likewise.
1026 (maddhidi4): Likewise.
1027 (*maddhidi4tb): Likewise.
1028 (*maddhidi4tt): Likewise.
1029 (divsi3): Likewise.
1030 (udivsi3): Likewise.
1031 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
1032 (thumb2_mulsi_short_compare0): Likewise.
1033 (thumb2_mulsi_short_compare0_scratch): Likewise.
1034 * config/arm/arm1020e.md (1020mult1): Update attribute change.
1035 (1020mult2): Likewise.
1036 (1020mult3): Likewise.
1037 (1020mult4): Likewise.
1038 (1020mult5): Likewise.
1039 (1020mult6): Likewise.
22fc7d3d
UB
1040 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
1041 change.
09485a08
SN
1042 (cortex_a15_mult64): Likewise.
1043 (cortex_a15_sdiv): Likewise.
1044 (cortex_a15_udiv): Likewise.
1045 * config/arm/arm1026ejs.md (mult1): Update attribute change.
1046 (mult2): Likewise.
1047 (mult3): Likewise.
1048 (mult4): Likewise.
1049 (mult5): Likewise.
1050 (mult6): Likewise.
1051 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
1052 (pj4_ir_div): Likewise.
1053 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
1054 (11_mult2): Likewise.
1055 (11_mult3): Likewise.
1056 (11_mult4): Likewise.
1057 (11_mult5): Likewise.
1058 (11_mult6): Likewise.
1059 (11_mult7): Likewise.
1060 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
1061 (cortex_a8_mla): Likewise.
1062 (cortex_a8_mull): Likewise.
1063 (cortex_a8_smulwy): Likewise.
1064 (cortex_a8_smlald): Likewise.
1065 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
1066 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
1067 (cortex_r4_mul_3): Likewise.
1068 (cortex_r4_mla_4): Likewise.
1069 (cortex_r4_mla_3): Likewise.
1070 (cortex_r4_smlald): Likewise.
1071 (cortex_r4_mull): Likewise.
1072 (cortex_r4_sdiv): Likewise.
1073 (cortex_r4_udiv): Likewise.
1074 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
1075 (cortex_a7_idiv): Likewise.
1076 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
1077 (9_mult2): Likewise.
1078 (9_mult3): Likewise.
1079 (9_mult4): Likewise.
1080 (9_mult5): Likewise.
1081 (9_mult6): Likewise.
1082 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
1083 (cortex_a53_sdiv): Likewise.
1084 (cortex_a53_udiv): Likewise.
1085 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
1086 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
1087 (mp626_mult2): Likewise.
1088 (mp626_mult3): Likewise.
1089 (mp626_mult4): Likewise.
1090 * config/arm/fa526.md (526_mult1): Update attribute change.
1091 (526_mult2): Likewise.
1092 * config/arm/arm-generic.md (mult): Update attribute change.
1093 (mult_ldsched_strongarm): Likewise.
1094 (mult_ldsched): Likewise.
1095 (multi_cycle): Likewise.
1096 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
1097 * config/arm/fa606te.md (606te_mult1): Update attribute change.
1098 (606te_mult2): Likewise.
1099 (606te_mult3): Likewise.
1100 (606te_mult4): Likewise.
1101 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
1102 (cortex_a9_mac16): Likewise.
1103 (cortex_a9_multiply): Likewise.
1104 (cortex_a9_mac): Likewise.
1105 (cortex_a9_multiply_long): Likewise.
1106 * config/arm/fa626te.md (626te_mult1): Update attribute change.
1107 (626te_mult2): Likewise.
1108 (626te_mult3): Likewise.
1109 (626te_mult4): Likewise.
1110
8951f345
RB
11112013-06-18 Richard Biener <rguenther@suse.de>
1112
1113 PR lto/57334
1114 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
1115
d8101d05
AK
11162013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1117
1118 PR target/57609
1119 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
1120 with next_active_insn.
1121
69eff9da
AM
11222013-06-18 Alan Modra <amodra@gmail.com>
1123
1124 * config/rs6000/rs6000.h (enum data_align): New.
1125 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
1126 (DATA_ABI_ALIGNMENT): Define.
1127 (CONSTANT_ALIGNMENT): Correct comment.
1128 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
1129 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
1130
8ed00d76
DM
11312013-06-17 David Malcolm <dmalcolm@redhat.com>
1132
1133 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
1134 ATTRIBUTE_UNUSED marking.
1135
3d33d06b
SN
11362013-06-17 Sofiane Naci <sofiane.naci@arm.com>
1137
1138 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
1139 alternative and update.
1140 (aarch64_dup_lanedi): Delete.
1141 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
1142 * config/aarch64/aarch64-simd-builtins.def: Update.
1143
ee03e71d
RB
11442013-06-17 Richard Biener <rguenther@suse.de>
1145
1146 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
1147 (lto_input_scc): Declare.
1148 (lto_input_tree_1): Likewise.
1149 (struct lto_stats_d): Add num_tree_bodies_output and
1150 num_pickle_refs_output.
1151 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
1152 (lto_read_tree_1): Split out from ...
1153 (lto_read_tree): ... this.
1154 (lto_input_scc): New function.
1155 (lto_input_tree_1): Split out from ...
1156 (lto_input_tree): ... this. Handle LTO_tree_scc.
1157 (lto_data_in_create): Create the streamer cache without hashes.
1158 * lto-streamer-out.c (create_output_block): Create the streamer
1159 cache with hashes when not doing WPA.
1160 (lto_write_tree_1): Split out from ...
1161 (lto_write_tree): ... this.
1162 (get_symbol_initial_value): New function.
1163 (lto_output_tree_1): Split out from ...
1164 (lto_output_tree): ... this. Write trees as series of SCCs
1165 using a DFS walk via DFS_write_tree.
1166 (struct sccs, struct scc_entry): New types.
1167 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
1168 (DFS_write_tree_body): New function.
1169 (DFS_write_tree): Likewise.
1170 (hash_tree): Likewise.
1171 (scc_entry_compare): Likewise.
1172 (hash_scc): Likewise.
1173 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
1174 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
1175 TREE_CHAIN as regular reference.
1176 (streamer_read_integer_cst): Remove.
1177 (streamer_get_pickled_tree): Adjust.
1178 * tree-streamer-out.c (streamer_write_chain): Disable streaming
1179 of DECL_EXTERNALs in BLOCK_VARS for now.
1180 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
1181 reference.
1182 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
1183 Add hash value argument and record that if hashes are recorded
1184 in the cache.
1185 (streamer_tree_cache_insert_1): Adjust.
1186 (streamer_tree_cache_insert): Likewise.
1187 (streamer_tree_cache_insert_at): Rename to ...
1188 (streamer_tree_cache_replace_tree): ... this and adjust.
1189 (streamer_tree_cache_append): Adjust.
1190 (record_common_node): Likewise.
1191 (streamer_tree_cache_create): Add argument whether to
1192 record hash values together with trees.
1193 (streamer_tree_cache_delete): Adjust.
1194 * tree-streamer.h (struct streamer_tree_cache_d): Add
1195 vector of hashes.
1196 (streamer_read_integer_cst): Remove.
1197 (streamer_tree_cache_insert): Adjust.
1198 (streamer_tree_cache_append): Likewise.
1199 (streamer_tree_cache_insert_at): Rename to ...
1200 (streamer_tree_cache_replace_tree): ... this and adjust.
1201 (streamer_tree_cache_create): Add argument whether to record hashes.
1202 (streamer_tree_cache_get): Rename to ...
1203 (streamer_tree_cache_get_tree): ... this.
1204 (streamer_tree_cache_get_hash): New function.
1205 * tree.c (cache_integer_cst): New function.
1206 * tree.h (cache_integer_cst): Declare.
1207 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
1208 * lto-symtab.c (lto_varpool_replace_node): Only release
1209 DECL_INITIAL of non-prevailing decls.
1210 * varpool.c (varpool_remove_initializer): Do not release
1211 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
1212
0de86a92
JU
12132013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
1214
1215 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
1216 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
1217 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
1218 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
1219 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
1220 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
1221 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
1222 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
1223 instead of TARGET_64BIT.
1224 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
1225 Require ISA_HAS_<D>DIV.
1226
74240413
RS
12272013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
1228
1229 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
1230 (mips*-*-linux*): Move default with_llsc setting to where other
1231 defaults are set.
1232 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
1233 with_arch block.
1234 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
1235 Likewise. Remove default with_tune setting. Move default float
1236 setting to its own block. Handle with_llsc in the same block as above.
1237
393f9fed
JR
12382013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
1239
1240 PR rtl-optimization/57425
1241 PR rtl-optimization/57569
299a5f6a 1242 * alias.c (write_dependence_p): Add new parameters mem_mode,
393f9fed
JR
1243 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
1244 Changed all callers.
1245 (canon_anti_dependence): New function.
1246 * cse.c (check_dependence): Use canon_anti_dependence.
1247 * cselib.c (cselib_invalidate_mem): Likewise.
1248 * rtl.h (canon_anti_dependence): Declare.
1249
b259d352
JU
12502013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
1251
1252 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
1253 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
1254 ".set mips3" for 64-bit targets.
1255
4de09b85
DC
12562013-06-15 Dehao Chen <dehao@google.com>
1257
1258 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
1259 * gimple-low.c (gimple_check_call_matching_types): Likewise.
1260 (gimple_check_call_args): Likewise.
1261 * value-prof.c (check_ic_target): Likewise.
1262 * ipa-inline.c (early_inliner): Likewise.
1263 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
1264 * cgraph.c (cgraph_create_edge_1): Likewise.
1265 (cgraph_make_edge_direct): Likewise.
1266
d1aa4a76
MM
12672013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1268
1269 PR target/57615
1270 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
1271 rs6000_output_move_128bit to handle emitting quad memory
1272 operations. Set attribute length to 8 bytes.
1273
24244e4d
VP
12742013-06-14 Vidya Praveen <vidyapraveen@arm.com>
1275
1276 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
1277 New pattern.
1278 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
1279 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
1280 (aarch64_<su>mlsl<mode>): Likewise.
1281
f5273574
MS
12822013-06-14 Mike Stump <mikestump@comcast.net>
1283
1284 * Makefile.in (TARGET_H): Add insn-codes.h.
1285
ef7e7ab2
AM
12862013-06-14 Alan Modra <amodra@gmail.com>
1287
1288 PR middle-end/57134
1289 PR middle-end/57586
1290 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
1291 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
1292 bitfield expansion when EXPAND_MEMORY.
1293 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
1294
135faab6
MM
12952013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
1296
1297 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1298 test for clearing quad memory on 32-bit later.
1299
948a1fd9
MG
13002013-06-13 Marc Glisse <marc.glisse@inria.fr>
1301
1302 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
1303 (fold_negate_expr): Likewise.
1304 (fold_real_zero_addition_p): Handle vectors.
1305 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
1306
0597fb9c
AM
13072013-06-14 Alan Modra <amodra@gmail.com>
1308
1309 * varasm.c (force_const_mem): Revert 2013-06-07 change.
1310
e5b962d0
JH
13112013-06-13 Jan Hubicka <jh@suse.cz>
1312
1313 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
1314 Local comdats are not externally visible.
1315 * symtab.c (dump_symtab_base): Dump externally visible.
1316 (verify_symtab_base): Verify back links in the symtab hash.
1317
a8355e51
BC
13182013-06-13 Bin Cheng <bin.cheng@arm.com>
1319
1320 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
1321 CONVERT_EXPR as equal nodes.
1322
8f7e6e33
BC
13232013-06-13 Bin Cheng <bin.cheng@arm.com>
1324
22fc7d3d 1325 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
8f7e6e33 1326
5d418483
MG
13272013-06-13 Marc Glisse <marc.glisse@inria.fr>
1328
1329 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
1330 Generalize to complex and vector.
1331 * tree.c (build_all_ones_cst): New function.
1332 * tree.h (build_all_ones_cst): Declare it.
1333
50751417
AM
13342013-06-13 Alan Modra <amodra@gmail.com>
1335
1336 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
1337 * config/rs6000/rs6000.md (signbittf2): New insn.
1338 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
1339 (abstf2_internal, cmptf_internal2): Likewise.
1340 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
1341
4b02c962
MM
13422013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
1343 Pat Haugen <pthaugen@us.ibm.com>
1344 Peter Bergner <bergner@vnet.ibm.com>
1345
1346 * config/rs6000/rs6000.c (emit_load_locked): Add support for
1347 power8 byte, half-word, and quad-word atomic instructions.
1348 (emit_store_conditional): Likewise.
1349 (rs6000_expand_atomic_compare_and_swap): Likewise.
1350 (rs6000_expand_atomic_op): Likewise.
1351
1352 * config/rs6000/sync.md (larx): Add new modes for power8.
1353 (stcx): Likewise.
1354 (AINT): New mode iterator to include TImode as well as normal
1355 integer modes on power8.
1356 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
1357 that VSX registers are not considered. Use AINT mode iterator
1358 instead of INT1 to allow inclusion of quad word atomic operations
1359 on power8.
1360 (load_locked<mode>): Likewise.
1361 (store_conditional<mode>): Likewise.
1362 (atomic_compare_and_swap<mode>): Likewise.
1363 (atomic_exchange<mode>): Likewise.
1364 (atomic_nand<mode>): Likewise.
1365 (atomic_fetch_<fetchop_name><mode>): Likewise.
1366 (atomic_nand_fetch<mode>): Likewise.
1367 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
1368 each type.
1369 (ATOMIC): On power8, add QImode, HImode modes.
1370 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
1371 modes that promote to SImode.
1372 (load_lockedti): Convert TImode arguments to PTImode, so that we
1373 get a guaranteed even/odd register pair.
1374 (load_lockedpti): Likewise.
1375 (store_conditionalti): Likewise.
1376 (store_conditionalpti): Likewise.
1377
1378 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
1379 atomic load/store instructions.
1380 (HSI): Likewise.
1381
710b6cc1
RS
13822013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
1383
1384 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
1385 loads.
1386 (insn_count): New attribute, with most cases extracted from...
1387 (length): ...here. Redefine most cases in terms of insn_count.
1388 (single_insn): Delete.
1389 (can_delay): Use insn_count to check for single instructions.
1390 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
1391 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
1392 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
1393 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
1394 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
1395 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
1396 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
1397 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
1398 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
1399 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
1400 rather than "length".
1401 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
1402 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
1403 Use "insn_count" rather than "length".
1404 * config/mips/mips-dsp.md
1405 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
1406 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
1407 length attributes.
1408
1951f101
MG
14092013-06-12 Marc Glisse <marc.glisse@inria.fr>
1410
1411 PR tree-optimization/57361
1412 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
1413
8b033a8a
SN
14142013-06-12 Sofiane Naci <sofiane.naci@arm.com>
1415
22fc7d3d
UB
1416 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
1417 to split.
8b033a8a
SN
1418 (aarch64_simd_combine<mode>): New instruction expansion.
1419 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
1420 function prototype.
1421 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
1422 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
1423
ca0f62a8
JH
14242013-06-12 Jan Hubicka <jh@suse.cz>
1425
1426 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
1427 decl has when in streaming stage.
1428 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
1429 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
1430
cddd69eb
RS
14312013-06-12 Roland Stigge <stigge@antcom.de>
1432
1433 PR target/57578
1434 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
1435
bfdeda2c
JJ
14362013-06-12 Jakub Jelinek <jakub@redhat.com>
1437
1438 PR tree-optimization/57537
1439 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
1440 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
1441
a4fa02d1
RB
14422013-06-12 Richard Biener <rguenther@suse.de>
1443
1444 * data-streamer.h (streamer_write_char_stream): CSE
1445 obs->current_pointer.
1446 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
1447 streamer_write_char_stream manually and optimize the resulting loop.
1448 (streamer_write_hwi_stream): Likewise.
1449
bbf9ad07
JH
14502013-06-12 Jan Hubicka <jh@suse.cz>
1451
1452 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
1453 * cgraph.h (varpool_create_empty_node): Declare.
1454 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
1455 duplicated nodes.
1456 * symtab.c (symtab_unregister_node): Be lax about missin entries
1457 in node hash.
1458 (symtab_get_node): Update comment.
1459 * varpool.c (varpool_create_empty_node): Break out from ...
1460 (varpool_node_for_decl): ... here.
1461 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
1462
a53f90ad
EB
14632013-06-12 Eric Botcazou <ebotcazou@adacore.com>
1464
1465 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
1466 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
1467 part. Use straight-line flow at the end.
1468 <COMPONENT_REF>: Remove superfluous else.
1469 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
1470
946f9306
JJ
14712013-06-12 Jakub Jelinek <jakub@redhat.com>
1472
1473 PR target/56564
1474 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
1475 target hook even for !TREE_PUBLIC decls. If no resolution info
1476 is available, return false for common and external decls.
1477
a7fca6f0
KP
14782013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1479
1480 * config/rl78/constraints.md (U): New constraint.
1481 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
1482 valloc attribute.
1483
c7d8f446
MM
14842013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1485
1486 PR target/57589
1487 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
1488 to allow returning address to AT_PLATFORM name.
1489
08346abd
JH
14902013-06-11 Jan Hubicka <jh@suse.cz>
1491
1492 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
1493 * cgraph.h (symtab_node_base): Add weakref flag.
1494 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
1495 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
1496 (output_weakrefs): Use weakref flag.
1497 * fold-const.c (simple_operand_p): Handle WEAK.
1498 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
1499 * ipa.c (varpool_externally_visible_p): Drop weakref.
1500 (function_and_variable_visibility): Update comment; fix weakref
1501 sanity checks; do not clear DECL_WEAK on them.
1502 * lto-cgraph.c (lto_output_node): update.
1503 (lto_output_varpool_node): Update.
1504 (input_overwrite_node): Update.
1505 (input_node): Update.
1506 (input_varpool_node): Update.
1507 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
1508 (lto_symtab_merge_symbols): Add sanity check.
1509 (lto_symtab_prevailing_decl): Do not special case weakrefs.
1510 * passes.c (rest_of_decl_compilation): Set static flag, too.
1511 * symtab.c (dump_symtab_base): Dump weakref.
1512 (verify_symtab_base): Sanity check weakrefs.
1513 (symtab_make_decl_local): Remove duplicated code.
1514 (symtab_alias_ultimate_target): Simplify.
1515 * varpool.c (varpool_create_variable_alias): Set weakref flag.
c7d8f446 1516
d9af3652
DD
15172013-06-11 DJ Delorie <dj@redhat.com>
1518
1519 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
1520 (rl78_unwind_word_mode): New.
1521
ffa66012
DM
15222013-06-11 David Malcolm <dmalcolm@redhat.com>
1523
1524 * final.c (debug_prefix_maps): Make static.
1525
783f2d35
DM
15262013-06-11 David Malcolm <dmalcolm@redhat.com>
1527
1528 * function.c (initial_trampoline): Remove stray copy.
1529
7af26def
SN
15302013-06-11 Sofiane Naci <sofiane.naci@arm.com>
1531
1532 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
1533
97756c0e
MJ
15342013-06-11 Martin Jambor <mjambor@suse.cz>
1535
1536 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
1537 within bounds at the beginning of the function.
1538
2c7b8bf6
AM
15392013-06-11 Alan Modra <amodra@gmail.com>
1540
1541 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
1542 reporting.
1543 (get_named_section): Don't NULL !DECL_P decl.
1544
77cea46e
IZ
15452013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
1546
1547 * doc/invoke.texi (core-avx2): Document.
1548 (slm): Likewise.
1549 (atom): Updated with MOVBE.
1550
888f0920
RB
15512013-06-11 Richard Biener <rguenther@suse.de>
1552
22fc7d3d 1553 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
888f0920 1554
6b438d58
AB
15552013-06-11 Anton Blanchard <anton@samba.org>
1556
1557 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
1558 correct shift value in little-endian mode.
1559
3bc66938
JJ
15602013-06-11 Jakub Jelinek <jakub@redhat.com>
1561
1562 PR target/56564
1563 * varasm.c (get_variable_align): Move #endif to the right place.
1564
a5dc7f88
CC
15652013-06-10 Cary Coutant <ccoutant@google.com>
1566
1567 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
1568 for hash so that hash table traversal order is deterministic.
1569
19be72ab
MM
15702013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
1571 Pat Haugen <pthaugen@us.ibm.com>
1572 Peter Bergner <bergner@vnet.ibm.com>
1573
1574 * config/rs6000/vector.md (GPR move splitter): Do not split moves
1575 of vectors in GPRS if they are direct moves or quad word load or
1576 store moves.
1577
1578 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
1579 declaration.
1580 (direct_move_p): Likewise.
1581 (quad_load_store_p): Likewise.
1582
1583 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
1584 classes into bins based on the physical register type.
1585 (reg_class_to_reg_type): Likewise.
1586 (IS_STD_REG_TYPE): Likewise.
1587 (IS_FP_VECT_REG_TYPE): Likewise.
1588 (reload_fpr_gpr): Arrays to determine what insn to use if we can
1589 use direct move instructions.
1590 (reload_gpr_vsx): Likewise.
1591 (reload_vsx_gpr): Likewise.
1592 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
1593 information that is a simplification of register classes. Also
1594 precalculate direct move reload helpers.
1595 (direct_move_p): New function to return true if the operation can
1596 be done as a direct move instruciton.
1597 (quad_load_store_p): New function to return true if the operation
1598 is a quad memory operation.
1599 (rs6000_legitimize_address): If quad memory, only allow register
1600 indirect for TImode addresses.
1601 (rs6000_legitimate_address_p): Likewise.
1602 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
1603 (rs6000_reload_register_type): Likewise.
1604 (register_to_reg_type): Return register type.
1605 (rs6000_secondary_reload_simple_move): New helper function for
1606 secondary reload and secondary memory needed to identify anything
1607 that is a simple move, and does not need reloading.
1608 (rs6000_secondary_reload_direct_move): New helper function for
1609 secondary reload to identify cases that can be done with several
1610 instructions via the direct move instructions.
1611 (rs6000_secondary_reload_move): New helper function for secondary
1612 reload to identify moves between register types that can be done.
1613 (rs6000_secondary_reload): Add support for quad memory operations
1614 and for direct move.
1615 (rs6000_secondary_memory_needed): Likewise.
1616 (rs6000_debug_secondary_memory_needed): Change argument names.
1617 (rs6000_output_move_128bit): New function to return the move to
1618 use for 128-bit moves, including knowing about the various
1619 limitations of quad memory operations.
1620
1621 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
1622 memory operations. call rs6000_output_move_128bit for the actual
1623 instruciton(s) to generate.
1624 (vsx_movti_64bit): Likewise.
1625
1626 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
1627 (UNSPEC_P8V_MTVSRWZ): Likewise.
1628 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
1629 (UNSPEC_P8V_MTVSRD): Likewise.
1630 (UNSPEC_P8V_XXPERMDI): Likewise.
1631 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
1632 (UNSPEC_FUSION_GPR): Likewise.
1633 (FMOVE128_GPR): New iterator for direct move.
22fc7d3d 1634 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
19be72ab
MM
1635 (f32_sv): Likewise.
1636 (f32_dm): Likewise.
1637 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
1638 loads and direct move instructions.
1639 (zero_extendsidi2_lfiwzx): Likewise.
1640 (extendsidi2_lfiwax): Likewise.
1641 (extendsidi2_nocell): Likewise.
1642 (floatsi<mode>2_lfiwax): Likewise.
1643 (lfiwax): Likewise.
1644 (floatunssi<mode>2_lfiwzx): Likewise.
1645 (lfiwzx): Likewise.
1646 (fix_trunc<mode>_stfiwx): Likewise.
1647 (fixuns_trunc<mode>_stfiwx): Likewise.
1648 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
1649 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
1650 (parity<mode>2_cmpb): Set length/type attr.
1651 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
1652 for 'mr.' to fast_compare.
1653 (bpermd_<mode>): Change type attr to popcnt.
1654 (p8_fmrgow_<mode>): New insns for power8 direct move support.
1655 (p8_mtvsrwz_1): Likewise.
1656 (p8_mtvsrwz_2): Likewise.
1657 (reload_fpr_from_gpr<mode>): Likewise.
1658 (p8_mtvsrd_1): Likewise.
1659 (p8_mtvsrd_2): Likewise.
1660 (p8_xxpermdi_<mode>): Likewise.
1661 (reload_vsx_from_gpr<mode>): Likewise.
1662 (reload_vsx_from_gprsf): Likewise.
1663 (p8_mfvsrd_3_<mode>): LIkewise.
1664 (reload_gpr_from_vsx<mode>): Likewise.
1665 (reload_gpr_from_vsxsf): Likewise.
1666 (p8_mfvsrd_4_disf): Likewise.
1667 (multi-word GPR splits): Do not split direct moves or quad memory
1668 operations.
1669
16876bdc
DM
16702013-06-10 David Malcolm <dmalcolm@redhat.com>
1671
1672 * tree-into-ssa.c (interesting_blocks): Make static.
1673
df8a1d28
JJ
16742013-06-10 Jakub Jelinek <jakub@redhat.com>
1675
1676 PR target/56564
1677 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
1678 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
1679 Use DATA_ABI_ALIGNMENT for that case instead if defined.
1680 (get_variable_align): New function.
1681 (get_variable_section, emit_bss, emit_common,
1682 assemble_variable_contents, place_block_symbol): Use
1683 get_variable_align instead of DECL_ALIGN.
1684 (assemble_noswitch_variable): Add align argument, use it
1685 instead of DECL_ALIGN.
1686 (assemble_variable): Adjust caller. Use get_variable_align
1687 instead of DECL_ALIGN.
1688 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
1689 caller.
1690 (DATA_ABI_ALIGNMENT): Define.
1691 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
1692 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
1693 opt is false, only return the psABI mandated alignment increase.
1694 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
1695 (DATA_ABI_ALIGNMENT): ... this.
1696 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
1697 (DATA_ABI_ALIGNMENT): ... this.
1698 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
1699 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
1700 (DATA_ABI_ALIGNMENT): ... this.
1701 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
1702 * doc/tm.texi: Regenerated.
1703
57b29ca6
UB
17042013-06-10 Uros Bizjak <ubizjak@gmail.com>
1705
1706 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
1707 cmp_code to construct REG_EQUAL note.
1708
3e56ed50
JJ
17092013-06-09 Jakub Jelinek <jakub@redhat.com>
1710
1711 PR target/57568
1712 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
1713 that operands[2] doesn't overlap with operands[0].
1714
74fe2a1d
DE
17152013-06-09 David Edelsohn <dje.gcc@gmail.com>
1716 Jan Hubicka <jh@suse.cz>
1717
1718 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
1719 hack to mark symbols as used.
1720
ed52a84e
VM
17212013-06-08 Vladimir Makarov <vmakarov@redhat.com>
1722
1723 PR rtl-optimization/57559
1724 * lra-constraints.c (process_alt_operands): Don't discourage
1725 memory with known offset for offsetable memory constraint.
1726 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
1727
299316ed
EB
17282013-06-08 Eric Botcazou <ebotcazou@adacore.com>
1729
1730 * varasm.c (struct oc_local_state): Reorder fields.
1731 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
1732 and adjust accordingly.
1733 (output_constructor): Reorder initialization code and adjust call to
1734 output_constructor_bitfield.
1735
88ac60d3
JH
17362013-06-07 Jan Hubicka <jh@suse.cz>
1737
1738 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
1739
4cdce1a8
DM
17402013-06-07 David Malcolm <dmalcolm@redhat.com>
1741
1742 * tree-object-size.c (unknown): Make const.
1743
b5e0425c
AK
17442013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1745
1746 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
1747 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
1748 for last alternative in the cpu_facility attribute.
1749
79678d04
KT
17502013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1751
1752 PR target/56315
1753 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
1754 (xordi3): Change operand 2 constraint to arm_xordi_operand.
1755 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
1756 * config/arm/constraints.md (Dg): New constraint.
1757 * config/arm/neon.md (xordi3_neon): Remove.
1758 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
1759 * config/arm/predicates.md (arm_xordi_operand): New predicate.
1760
b31ddbdb
KT
17612013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1762
1763 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
1764 Clean up alternatives.
1765
8f90b7d4
AM
17662013-06-07 Alan Modra <amodra@gmail.com>
1767
1768 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
1769 va_list_gpr_size.
1770
961ce119
AM
17712013-06-07 Alan Modra <amodra@gmail.com>
1772
1773 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
1774
33e49835
KT
17752013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1776
1777 * config/arm/constraints.md (Df): New constraint.
1778 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
1779 Correct length attribute for last two alternatives.
1780
acd17ae6
AM
17812013-06-07 Alan Modra <amodra@gmail.com>
1782
1783 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
1784 override user -mfp-in-toc.
1785 (offsettable_ok_by_alignment): Consider just the current access
1786 rather than the whole object, unless BLKmode. Handle
1787 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
1788 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
1789 for -mcmodel=medium.
1790 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
1791 override user -mfp-in-toc or -msum-in-toc. Default to
1792 -mno-fp-in-toc for -mcmodel=medium.
1793
73310b0e
DD
17942013-06-06 DJ Delorie <dj@redhat.com>
1795
1796 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
1797 TARGET_VALID_POINTER_MODE.
1798
0bd62dca
MM
17992013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
1800 Pat Haugen <pthaugen@us.ibm.com>
1801 Peter Bergner <bergner@vnet.ibm.com>
1802
1803 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
1804 Document new power8 builtins.
1805
1806 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
1807 condition code register, to allow 128-bit logical operations to be
1808 done in the VSX or GPR registers.
1809 (nor<mode>3): Use the canonical form for nor.
1810 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
1811 vclz*, and vpopcnt* vector instructions.
1812 (nand<mode>3): Likewise.
1813 (orc<mode>3): Likewise.
1814 (clz<mode>2): LIkewise.
1815 (popcount<mode>2): Likewise.
1816
1817 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
1818 that only the GPRs are recognized.
1819
1820 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1821 support for new power8 builtins.
1822
1823 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
1824 builtin functions.
1825 (xscvdpspn): Likewise.
1826 (vclz): Likewise.
1827 (vclzb): Likewise.
1828 (vclzh): Likewise.
1829 (vclzw): Likewise.
1830 (vclzd): Likewise.
1831 (vpopcnt): Likewise.
1832 (vpopcntb): Likewise.
1833 (vpopcnth): Likewise.
1834 (vpopcntw): Likewise.
1835 (vpopcntd): Likewise.
1836 (vgbbd): Likewise.
1837 (vmrgew): Likewise.
1838 (vmrgow): Likewise.
1839 (eqv): Likewise.
1840 (eqv_v16qi3): Likewise.
1841 (eqv_v8hi3): Likewise.
1842 (eqv_v4si3): Likewise.
1843 (eqv_v2di3): Likewise.
1844 (eqv_v4sf3): Likewise.
1845 (eqv_v2df3): Likewise.
1846 (nand): Likewise.
1847 (nand_v16qi3): Likewise.
1848 (nand_v8hi3): Likewise.
1849 (nand_v4si3): Likewise.
1850 (nand_v2di3): Likewise.
1851 (nand_v4sf3): Likewise.
1852 (nand_v2df3): Likewise.
1853 (orc): Likewise.
1854 (orc_v16qi3): Likewise.
1855 (orc_v8hi3): Likewise.
1856 (orc_v4si3): Likewise.
1857 (orc_v2di3): Likewise.
1858 (orc_v4sf3): Likewise.
1859 (orc_v2df3): Likewise.
1860
1861 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
1862 allow power8 quad mode in 64-bit.
1863 (rs6000_builtin_vectorized_function): Add support to vectorize
1864 ISA 2.07 count leading zeros, population count builtins.
1865 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
1866 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
1867 (builtin_function_type): Add vgbbd builtin function which takes an
1868 unsigned argument.
1869 (altivec_expand_vec_perm_const): Add support for new power8 merge
1870 instructions.
1871
1872 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
1873 that does not include TImdoe for use with 32-bit.
1874 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
1875 instructions.
1876 (UNSPEC_VSX_CVDPSPN): Likewise.
1877 (vsx_xscvdpspn): Likewise.
1878 (vsx_xscvspdpn): Likewise.
1879 (vsx_xscvdpspn_scalar): Likewise.
1880 (vsx_xscvspdpn_directmove): Likewise.
1881 (vsx_and<mode>3): Split logical operations into 32-bit and
1882 64-bit. Add support to do logical operations on TImode as well as
1883 VSX vector types. Allow logical operations to be done in either
1884 VSX registers or in general purpose registers in 64-bit mode. Add
1885 splitters if GPRs were used. For AND, add clobber of CCmode to
1886 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
1887 encoding.
1888 (vsx_and<mode>3_32bit): Likewise.
1889 (vsx_and<mode>3_64bit): Likewise.
1890 (vsx_ior<mode>3): Likewise.
1891 (vsx_ior<mode>3_32bit): Likewise.
1892 (vsx_ior<mode>3_64bit): Likewise.
1893 (vsx_xor<mode>3): Likewise.
1894 (vsx_xor<mode>3_32bit): Likewise.
1895 (vsx_xor<mode>3_64bit): Likewise.
1896 (vsx_one_cmpl<mode>2): Likewise.
1897 (vsx_one_cmpl<mode>2_32bit): Likewise.
1898 (vsx_one_cmpl<mode>2_64bit): Likewise.
1899 (vsx_nor<mode>3): Likewise.
1900 (vsx_nor<mode>3_32bit): Likewise.
1901 (vsx_nor<mode>3_64bit): Likewise.
1902 (vsx_andc<mode>3): Likewise.
1903 (vsx_andc<mode>3_32bit): Likewise.
1904 (vsx_andc<mode>3_64bit): Likewise.
1905 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
1906 and xxlorc instructions.
1907 (vsx_eqv<mode>3_64bit): Likewise.
1908 (vsx_nand<mode>3_32bit): Likewise.
1909 (vsx_nand<mode>3_64bit): Likewise.
1910 (vsx_orc<mode>3_32bit): Likewise.
1911 (vsx_orc<mode>3_64bit): Likewise.
1912
1913 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
1914
1915 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
1916 instruction.
1917 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
1918 (p8_vmrgow): Likewise.
1919 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
1920 GPRs to be split under VSX.
1921 (p8v_clz<mode>2): Add power8 count leading zero support.
1922 (p8v_popcount<mode>2): Add power8 population count support.
1923 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
1924 support.
1925
1926 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
1927 instruction.
1928
1929 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
1930 builtin functions.
1931 (vec_nand): Likewise.
1932 (vec_vclz): Likewise.
1933 (vec_vclzb): Likewise.
1934 (vec_vclzd): Likewise.
1935 (vec_vclzh): Likewise.
1936 (vec_vclzw): Likewise.
1937 (vec_vgbbd): Likewise.
1938 (vec_vmrgew): Likewise.
1939 (vec_vmrgow): Likewise.
1940 (vec_vpopcnt): Likewise.
1941 (vec_vpopcntb): Likewise.
1942 (vec_vpopcntd): Likewise.
1943 (vec_vpopcnth): Likewise.
1944 (vec_vpopcntw): Likewise.
1945
37684c46
VM
19462013-06-06 Vladimir Makarov <vmakarov@redhat.com>
1947
1948 PR rtl-optimization/57468
1949 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
1950 spilled pseudos.
1951
d89ae27c
VM
19522013-06-06 Vladimir Makarov <vmakarov@redhat.com>
1953
1954 PR rtl-optimization/57459
1955 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
1956 type when setting live regs.
1957
3597e113
VM
19582013-06-06 Vladimir Makarov <vmakarov@redhat.com>
1959
1960 * config/s390/s390.opt (mlra): New option.
1961 * config/s390/s390.c (s390_decompose_address): Check displacement
1962 for all registers for LRA.
1963 (s390_secondary_reload): Don't used secondary reloads for LRA.
1964 (s390_lra_p): New function.
1965 (TARGET_LRA_P): Define.
1966 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
1967 of attribute cpu_facility to zarch for the last alternative.
1968 (*cmpmem_short): Ditto.
1969
01037aeb
EB
19702013-06-06 Eric Botcazou <ebotcazou@adacore.com>
1971
1972 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
1973 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
1974 (arm_expand_prologue): Likewise.
1975
3371a64f
TJ
19762013-06-06 Teresa Johnson <tejohnson@google.com>
1977
1978 PR c++/53743
1979 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
1980 as this is now done by redirect_edge_and_branch_force.
1981 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
1982 barriers, and fix interaction with splitting.
1983 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
1984 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
1985 reflect changes made in the routine.
1986 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
1987 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
1988 since this is called in cfglayout mode, and replace partition fixup
1989 with assert as that is now done by force_nonfallthru_and_redirect.
1990 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
1991 already be marked with region crossing note.
1992 (insert_section_boundary_note): Make non-static, gate on flag
1993 has_bb_partition, rewrite to also check for multiple partitions.
1994 (rest_of_handle_reorder_blocks): Remove call to
1995 insert_section_boundary_note, now done later during free_cfg.
1996 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
1997 * bb-reorder.h (insert_section_boundary_note): Declare.
1998 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
1999 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
2000 invoke insert_section_boundary_note.
2001 (try_redirect_by_replacing_jump): Remove unnecessary
2002 check for region crossing note.
2003 (fixup_partition_crossing): New function.
2004 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
2005 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
2006 in non-cfglayout mode.
2007 (force_nonfallthru_and_redirect): Fixup partition boundaries,
2008 remove old code that tried to do this. Emit barrier correctly
2009 when we are in cfglayout mode.
2010 (last_bb_in_partition): New function.
2011 (rtl_split_edge): Correctly fixup partition boundaries.
2012 (commit_one_edge_insertion): Remove old code that tried to
2013 fixup region crossing edge since this is now handled in
2014 split_block, and set up insertion point correctly since
2015 block may now end in a jump.
2016 (verify_hot_cold_block_grouping): Guard against checking when not in
2017 linearized RTL mode.
2018 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
2019 notes.
2020 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
2021 rtl_verify_flow_info, so not called in cfglayout mode.
2022 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
2023 (fixup_reorder_chain): Remove old code that attempted to fixup region
2024 crossing note as this is now handled in force_nonfallthru_and_redirect.
2025 (duplicate_insn_chain): Don't duplicate switch section notes.
2026 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
2027 note.
2028 * basic-block.h (emit_barrier_after_bb): Declare.
2029
66071e10
KT
20302013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2031
2032 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
2033 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
2034 arm_usatsihi): Adjust alternatives for arm_restrict_it.
2035
0e26bf3d
KT
20362013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2037
2038 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
2039 where appropriate.
2040 * config/arm/ldmstm.md: Regenerate.
2041
12b4e7ef
KT
20422013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2043
2044 * config/arm/sync.md (atomic_loaddi_1):
2045 Disable predication for arm_restrict_it.
2046 (arm_load_exclusive<mode>): Likewise.
2047 (arm_load_exclusivesi): Likewise.
2048 (arm_load_exclusivedi): Likewise.
2049 (arm_load_acquire_exclusive<mode>): Likewise.
2050 (arm_load_acquire_exclusivesi): Likewise.
2051 (arm_load_acquire_exclusivedi): Likewise.
2052 (arm_store_exclusive<mode>): Likewise.
2053 (arm_store_exclusive<mode>): Likewise.
2054 (arm_store_release_exclusivedi): Likewise.
2055 (arm_store_release_exclusive<mode>): Likewise.
2056
15d16c8a
RB
20572013-06-06 Richard Biener <rguenther@suse.de>
2058
2059 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
2060 after LTO_null.
2061 (lto_tag_is_tree_code_p): Adjust.
2062 (lto_tag_is_gimple_code_p): Likewise.
2063 (lto_gimple_code_to_tag): Likewise.
2064 (lto_tag_to_gimple_code): Likewise.
2065 (lto_tree_code_to_tag): Likewise.
2066 (lto_tag_to_tree_code): Likewise.
2067 * data-streamer.h (streamer_write_hwi_in_range): Use
2068 uhwi streaming to stream the normalized range.
2069 (streamer_read_hwi_in_range): Likewise.
2070
17a7fc37
KT
20712013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2072
2073 * config/arm/arm.md (enabled_for_depr_it): New attribute.
2074 (predicable_short_it): Likewise.
2075 (predicated): Likewise.
2076 (enabled): Handle above.
2077 (define_cond_exec): Set predicated attribute to yes.
2078
b57ca59b
MS
20792013-06-05 Mike Stump <mikestump@comcast.net>
2080
2081 * gdbinit.in (__FUNCTION__): Add.
2082
c1e183a9
UB
20832013-06-05 Uros Bizjak <ubizjak@gmail.com>
2084
2085 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
2086 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
2087
0378bddb
JH
20882013-06-05 Jan Hubicka <jh@suse.cz>
2089
2090 * varasm.c (mark_decl_referenced): Revert the removal until targets
2091 are fixed.
2092
8f8a2057
DE
20932013-06-05 David Edelsohn <dje.gcc@gmail.com>
2094
2095 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
2096 instead of mark_decl_referenced.
2097
edb983b2
JH
20982013-06-05 Jan Hubicka <jh@suse.cz>
2099
2100 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
2101 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
2102 and symtab_used_from_object_file_p.
2103 (cgraph_make_node_local_1): Clear forced_by_abi.
2104 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
2105 * cgraph.h (symtab_node_base): Add forced_by_abi.
2106 (decide_is_variable_needed): Remove.
2107 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
2108 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
2109 (decide_is_symbol_needed): ... this one; handle symbols in general;
2110 always analyze virtuals; honnor forced_by_abi.
2111 (cgraph_finalize_function): Update.
2112 (varpool_finalize_decl): Update.
2113 (symbol_defined_and_needed): Remove.
2114 (analyze_functions): Update.
2115 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
2116 output_refs, input_overwrite_node): Handle forced_by_abi.
2117 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
2118 (address_taken_from_non_vtable_p): ... this one.
2119 (comdat_can_be_unshared_p_1): New function.
2120 (cgraph_comdat_can_be_unshared_p): Rename to ...
2121 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
2122 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
2123 (function_and_variable_visibility): Clear forced_by_abi as needed.
2124 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
2125 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
edb983b2
JH
2126 * symtab.c (dump_symtab_base): Dump forced_by_abi.
2127 * varpool.c (decide_is_variable_needed): Remove.
2128
9912dbe5
KT
21292013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2130
2131 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
2132 (arm_option_override): Override arm_restrict_it where appropriate.
2133 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
2134 * config/arm/arm.opt (mrestrict-it): New command-line option.
2135 * doc/invoke.texi: Document -mrestrict-it.
2136
34c136b6
DM
21372013-06-05 David Malcolm <dmalcolm@redhat.com>
2138
2139 * tsan.c (tsan_atomic_table): Make const.
2140
a367df53
RB
21412013-06-05 Richard Biener <rguenther@suse.de>
2142
2143 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
2144 index associated with the tree we are supposed to replace.
2145 * tree-streamer-out.c (pack_ts_base_value_fields): Output
2146 TREE_ASM_WRITTEN as zero for everything but SSA names.
2147
70d51a19
DM
21482013-06-05 David Malcolm <dmalcolm@redhat.com>
2149
2150 * tree-ssa-structalias.c (call_stmt_vars): Make static.
2151
b9bd2075
JH
21522013-06-04 Jan Hubicka <jh@suse.cz>
2153
2154 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
2155 (input_node, input_varpool_node): Handle correctly external same
2156 body aliases.
2157 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
2158 nodes at ltrans stage.
2159
aaae719d
JH
21602013-06-04 Jan Hubicka <jh@suse.cz>
2161
2162 * ipa-inline.c (update_caller_keys): Fix availability test.
2163 (update_callee_keys): Likewise.
2164 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
2165 to follow ELF standard.
2166
107eea2c
JU
21672013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
2168
2169 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
2170 (mips64r5900el-*-elf*): New configurations.
2171 * config/mips/mips-cpus.def (r5900): New processor.
2172 * config/mips/mips-tables.opt: Regenerate.
2173 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
2174 (mips_issue_rate): Handle PROCESSOR_R5900.
2175 (mips_reorg_process_insns): Force reorder mode for the R5900.
2176 * config/mips/mips.h (TARGET_MIPS5900): Define.
2177 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
2178 TARGET_MIPS5900.
2179 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
2180 TARGET_MIPS5900.
2181 * config/mips/mips.md (processor): Add r5900.
2182 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
2183
b7342d25
IB
21842013-06-04 Ian Bolton <ian.bolton@arm.com>
2185
2186 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
2187 into function to generate MOVI instruction.
c1e183a9 2188 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
b7342d25
IB
2189 (aarch64_preferred_simd_mode): Turn into wrapper.
2190 (aarch64_output_scalar_simd_mov_immediate): New function.
2191 * config/aarch64/aarch64-protos.h: Add prototype for above.
2192
81c2dfb9
IB
21932013-06-04 Ian Bolton <ian.bolton@arm.com>
2194
2195 * config/aarch64/aarch64.c (simd_immediate_info): Remove
2196 element_char member.
2197 (sizetochar): Return signed char.
2198 (aarch64_simd_valid_immediate): Remove elchar and other
2199 unnecessary variables.
2200 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
2201 Calculate element_char as required.
2202 * config/aarch64/aarch64-protos.h: Update and move prototype
2203 for aarch64_output_simd_mov_immediate.
2204 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
2205 Update arguments.
2206
48063b9d
IB
22072013-06-04 Ian Bolton <ian.bolton@arm.com>
2208
2209 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
2210 information completed by aarch64_simd_valid_immediate.
2211 (aarch64_legitimate_constant_p): Update arguments.
2212 (aarch64_simd_valid_immediate): Work with struct rather than many
2213 pointers.
2214 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
2215 (aarch64_simd_make_constant): Update arguments.
2216 (aarch64_output_simd_mov_immediate): Work with struct rather than
2217 many pointers. Output immediate directly rather than as operand.
2218 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
2219 Update prototype.
2220 * config/aarch64/constraints.md (Dn): Update arguments.
2221
3ea63f60
IB
22222013-06-04 Ian Bolton <ian.bolton@arm.com>
2223
2224 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
2225 longer static.
2226 (aarch64_simd_immediate_valid_for_move): Remove.
2227 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
2228 (aarch64_simd_make_constant): Update call.
2229 (aarch64_output_simd_mov_immediate): Update call.
2230 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
2231 Add prototype.
2232 * config/aarch64/constraints.md (Dn): Update call.
2233
d8edd899
IB
22342013-06-04 Ian Bolton <ian.bolton@arm.com>
2235
2236 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
2237 return type to bool for prototype.
2238 (aarch64_legitimate_constant_p): Check for true instead of not -1.
2239 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
2240 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
2241
44b20bb8
CM
22422013-06-04 Catherine Moore <clm@codesourcery.com>
2243
2244 * config/mips/mips.opt (meva): New.
c1e183a9 2245 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
44b20bb8
CM
2246 (ASM_SPEC): Handle -meva.
2247 * doc/invoke.texi (meva): Document.
2248
52befbd8
AM
22492013-06-04 Alan Modra <amodra@gmail.com>
2250
2251 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
2252 constant output.
2253
aadaf24e
KT
22542013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2255
2256 * rtl.def: Add extra fourth optional field to define_cond_exec.
2257 * gensupport.c (process_one_cond_exec): Process attributes from
2258 define_cond_exec.
2259 * doc/md.texi: Document fourth field in define_cond_exec.
2260
0cd9e9ee
EB
22612013-06-04 Eric Botcazou <ebotcazou@adacore.com>
2262
2263 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
2264 out the processing order as in store_bit_field_1.
2265
cb0f665d
JH
22662013-06-04 Jan Hubicka <jh@suse.cz>
2267
2268 PR middle-end/57500
2269 * cgraphunit.c (cgraph_process_same_body_aliases): Create
2270 non-VAR_DECL node if it does not exist yet.
2271
53984b9b
RS
22722013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
2273
2274 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
2275 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
2276 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
2277 target_cpu_default setting.
2278
5d318fd4
TJ
22792013-06-03 Teresa Johnson <tejohnson@google.com>
2280
2281 * dumpfile.c (opt_info_switch_p): Change -fopt-info
2282 default to -fopt-info=optimized instead of all.
2283 * doc/invoke.texi: Ditto.
2284 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
2285 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
2286 (execute_vect_slp): Emit BB vectorization success under
2287 MSG_OPTIMIZED_LOCATIONS.
2288 * tree-vect-slp.c (vect_slp_transform_bb): Change
2289 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
2290 * tree-vect-loop.c (vect_transform_loop): Ditto.
2291
ec3af349
JM
22922013-06-03 Jason Merrill <jason@redhat.com>
2293
2294 PR c++/57415
2295 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2296 Use TARGET_EXPR for C++.
2297
1baf9159
JJ
22982013-06-03 Jakub Jelinek <jakub@redhat.com>
2299
2300 PR rtl-optimization/57268
0cd9e9ee 2301 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
1baf9159
JJ
2302 if DEBUG_INSN_P (insn).
2303
2304 Reapply
2305 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
2306
2307 PR rtl-optimization/57268
2308 * sched-deps.c (sched_analyze_2): Flush dependence lists if
2309 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2310
0f1d3965
YR
23112013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
2312
2313 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
2314 (ix86_avoid_lea_for_addr): Likewise.
2315 (exact_dependency_1): Likewise.
2316 (ix86_adjust_cost): Likewise.
2317 (swap_top_of_ready_list): Fix formatting and !reload_completed check
2318 removed.
2319 (do_reorder_for_imul): Fix typo, formatting and
2320 !reload_completed check removed.
2321 (ix86_sched_reorder): Fix typo and formatting.
2322 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
2323 list.
2324
3bc30db4
SN
23252013-06-03 Sofiane Naci <sofiane.naci@arm.com>
2326
2327 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
2328
19cc6fac
EB
23292013-06-03 Eric Botcazou <ebotcazou@adacore.com>
2330
2331 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
2332 <STRING_CST>: Likewise.
2333 <VECTOR_CST>: Likewise.
2334
c68a6e08
JW
23352013-06-01 Janus Weil <janus@gcc.gnu.org>
2336 Mikael Morin <mikael@gcc.gnu.org>
2337
2338 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
2339 * config.in: Regenerated.
2340 * configure: Regenerated.
2341
38e55e5c
JH
23422013-06-01 Jan Hubicka <jh@suse.cz>
2343
2344 PR middle-end/57366
2345 * cgraphunit.c (compile): When weakref is not supported,
2346 set up transparent aliases before final output pass.
2347 * varasm.c (assemble_alias): Do not try to do it here.
2348
eb51d2ff
JH
23492013-06-01 Jan Hubicka <jh@suse.cz>
2350
2351 PR middle-end/57467
2352 * passes.c (for_per_function): Skip unanalyzed functions.
2353
40a7fe1e
JH
23542013-06-01 Jan Hubicka <jh@suse.cz>
2355
2356 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
2357 (lto_symtab_merge_symbols_1): ... this one.
2358 (lto_symtab_merge_cgraph_nodes): Rename to ...
2359 (lto_symtab_merge_symbols): ... this one; simplify.
2360 * cgraph.c (same_body_aliases_done): Rename to ...
2361 (cpp_implicit_aliases_done): ... this one.
2362 (cgraph_create_function_alias): Update.
2363 (cgraph_same_body_alias): Update.
c1e183a9 2364 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
40a7fe1e 2365 (verify_edge_corresponds_to_fndecl): Simplify.
c1e183a9 2366 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
40a7fe1e
JH
2367 (cgraph_node): Remove same_body_alias.
2368 (varpool_node): Remove alias_of and extra_name_alias.
2369 (same_body_aliases_done): Rename to ..
2370 (cpp_implicit_aliases_done): ... this one.
2371 (symtab_alias_ultimate_target): Add default parameter.
2372 (symtab_resolve_alias): New function.
2373 (fixup_same_cpp_alias_visibility): Declare.
2374 (cgraph_function_node): Add default parameter.
2375 (cgraph_node_asm_name): Likewise.
2376 (cgraph_function_or_thunk_node): Add default parameter; do
2377 not ICE when it is NULL.
2378 (varpool_variable_node): Likewise.
2379 * tree-emutls.c (create_emultls_var): Update.
2380 (ipa_lower_emutls): Update.
2381 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
2382 (cgraph_reset_node): Reset alias info.
2383 (cgraph_finalize_function): Update.
2384 (fixup_same_cpp_alias_visibility): Move to symtab.c.
2385 (analyze_function): Simplify.
2386 (cgraph_process_same_body_aliases): Simplify.
2387 (analyze_functions): Fixup same body aliases.
2388 (handle_alias_pairs): Simplify.
2389 (assemble_thunk): Update.
2390 (assemble_thunks_and_aliases): Update.
2391 (output_weakrefs): Rewrite.
2392 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
2393 (lto_output_varpool_node): Likewise.
2394 (compute_ltrans_boundary): Remve assert.
2395 (get_alias_symbol): New functoin.
2396 (input_node): Rewrite alias handling.
2397 (input_varpool_node): Likewise.
2398 * ipa-pure-const.c (propagate_pure_const): Fix formating.
2399 * ipa.c (process_references): Handle weakrefs correctly.
2400 (symtab_remove_unreachable_nodes): Likewise.
2401 * trans-mem.c (get_cg_data): Update.
2402 (ipa_tm_create_version_alias): Update.
2403 (ipa_tm_execute): Update.
2404 * symtab.c (dump_symtab_base): Dump aliases.
2405 (verify_symtab_base): Verify aliases.
2406 (symtab_node_availability): New function.
2407 (symtab_alias_ultimate_target): Simplify.
2408 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
2409 handle all the fixup cases.
2410 (symtab_resolve_alias): New function.
2411 * passes.c (ipa_write_summaries): Handle weakrefs.
2412 * varpool.c (varpool_analyze_node): Simplify.
2413 (assemble_aliases): Update.
2414 (varpool_create_variable_alias): Simplify.
2415 (varpool_extra_name_alias): Simplify.
2416 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
2417 (lto_symtab_merge_symbols): ... this one.
2418
21759881
DT
24192013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
2420
2421 Revert
2422 PR rtl-optimization/57268
2423 * sched-deps.c (sched_analyze_2): Flush dependence lists if
2424 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2425
daf4e940
TB
24262013-06-01 Tobias Burnus <burnus@net-b.de>
2427
2428 Partially reverted:
2429 2013-05-31 Tobias Burnus <burnus@net-b.de>
2430
2431 PR middle-end/57073
2432 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
2433 further up.
2434
c359d8d0
DT
24352013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
2436
2437 PR rtl-optimization/57268
2438 * sched-deps.c (sched_analyze_2): Flush dependence lists if
2439 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2440
4172215d
EB
24412013-05-31 Eric Botcazou <ebotcazou@adacore.com>
2442
2443 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
2444 unordered comparison operators when -fno-trapping-math is in effect
2445 on the e500.
2446 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
2447 and implement unordered comparison operators properly on the e500.
2448
a8c50132
EB
24492013-05-31 Eric Botcazou <ebotcazou@adacore.com>
2450
2451 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
2452 for constant scalar integers.
2453 (simplify_relational_operation_1): Likewise.
2454
44626634
SB
24552013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
2456
2457 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
2458 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
2459 Fix comment.
2460
55805e54
YR
24612013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
2462 Igor Zamyatin <igor.zamyatin@intel.com>
2463
2464 Silvermont (SLM) architecture performance tuning.
2465 * config/i386/i386.h (enum ix86_tune_indices): Add
2466 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
2467 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
2468
2469 * config/i386/i386.c (initial_ix86_tune_features)
2470 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
2471 (ix86_lea_outperforms): Handle Silvermont tuning.
2472 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
2473 call.
2474 (ix86_use_lea_for_mov): Likewise.
2475 (ix86_avoid_lea_for_addr): Likewise.
2476 (ix86_lea_for_add_ok): Likewise.
2477 (exact_dependency_1): New function.
2478 (exact_store_load_dependency): Likewise.
2479 (ix86_adjust_cost): Handle Silvermont tuning.
2480 (do_reoder_for_imul): Likewise.
2481 (swap_top_of_ready_list): New function.
2482 (ix86_sched_reorder): Changed to handle Silvermont tuning.
2483
2484 * config/i386/i386.md (peepholes that split memory operand in fp
2485 converts): New.
2486
e19c9de2
MS
24872013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
2488
2489 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2490 Remove un-necessary braces.
2491
38e6c9a6
MS
24922013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
2493
2494 * config/aarch64/aarch64.c (aarch64_classify_symbol):
2495 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
2496
e3530904
TB
24972013-05-31 Tobias Burnus <burnus@net-b.de>
2498
2499 PR middle-end/57073
c1e183a9 2500 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
e3530904 2501
b6af05a9
KT
25022013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2503
2504 PR target/56315
2505 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
2506 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
2507 * config/arm/neon.md (iordi3_neon): Remove.
2508 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
2509 * config/arm/predicates.md (imm_for_neon_logic_operand):
2510 Move to earlier in the file.
2511 (neon_logic_op2): Likewise.
2512 (arm_iordi_operand_neon): New predicate.
2513
f800c166
RB
25142013-05-31 Richard Biener <rguenther@suse.de>
2515
2516 PR tree-optimization/57478
2517 PR tree-optimization/57453
2518 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
2519 are life as well.
2520
e571fa59
KP
25212013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
2522
2523 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
2524 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
2525
0fa6e0ef
TB
25262013-05-30 Tobias Burnus <burnus@net-b.de>
2527 Thomas Koenig <tkoenig@gcc.gnu.org>
2528
2529 PR middle-end/57073
2530 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
2531 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
2532
4688ddf5
SB
25332013-05-30 Steven Bosscher <steven@gcc.gnu.org>
2534
0fa6e0ef 2535 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
4688ddf5 2536
3b9ceb4b
VM
25372013-05-30 Vladimir Makarov <vmakarov@redhat.com>
2538
2539 * target.def (register_usage_leveling_p): New hook.
2540 * targhooks.c (default_register_usage_leveling_p): New.
2541 * targhooks.h (default_register_usage_leveling_p): New prototype.
2542 * lra-assigns.c (register_usage_leveling_p): Use the hook.
2543 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
2544 * doc/tm.texi: Update.
2545 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
2546
65f9e789
IB
25472013-05-30 Ian Bolton <ian.bolton@arm.com>
2548
2549 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
2550 (*insv_reg<mode>): New define_insn.
2551
ca035367
JR
25522013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
2553
2554 PR rtl-optimization/57439
2555 * postreload.c (move2add_valid_value_p): Check that we have
2556 a zero subreg_regno_offset when accessing the register in
2557 the requested mode.
2558
0b871ccf
YR
25592013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
2560 Igor Zamyatin <igor.zamyatin@intel.com>
2561
2562 Silvermont (SLM) architecture pipeline model, tuning and
2563 insn selection.
2564 * config.gcc: Add slm config options and target.
2565
2566 * config/i386/slm.md: New.
2567
2568 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
2569
2570 * gcc/config/i386/i386-c.c (ix86_target_macros_internal): New case
2571 PROCESSOR_SLM.
2572 (ix86_target_macros_internal): Likewise.
2573
2574 * gcc/config/i386/i386.c (slm_cost): New cost.
2575 (m_SLM): New macro flag.
2576 (initial_ix86_tune_features): Set m_SLM.
2577 (x86_accumulate_outgoing_args): Likewise.
2578 (x86_arch_always_fancy_math_387): Likewise.
2579 (processor_target_table): Add slm cost.
2580 (cpu_names): Add slm cpu name.
2581 (x86_option_override_internal): Set SLM ISA.
2582 (ix86_issue_rate): New case PROCESSOR_SLM.
2583 (ia32_multipass_dfa_lookahead): Likewise.
2584 (fold_builtin_cpu): Add slm.
2585
2586 * config/i386/i386.h (TARGET_SLM): New target macro.
2587 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
2588 (processor_type): Add PROCESSOR_SLM.
2589
2590 * config/i386/i386.md (cpu): Add new value "slm".
2591 (slm.md): Include slm.md.
2592
24d5b097
XG
25932013-05-30 Bernd Schmidt <bernds@codesourcery.com>
2594 Zhenqiang Chen <zhenqiang.chen@linaro.org>
2595
2596 * config/arm/arm-protos.h: Add and update function protos.
2597 * config/arm/arm.c (use_simple_return_p): New added.
2598 (thumb2_expand_return): Check simple_return flag.
2599 * config/arm/arm.md: Add simple_return and conditional simple_return.
2600 * config/arm/iterators.md: Add iterator for return and simple_return.
2601
c1cccc15
ZC
26022013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
2603
2604 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
2605 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
2606 (arm_emit_vfp_multi_reg_pop): Likewise.
2607 (thumb2_emit_ldrd_pop): Likewise.
2608 (arm_expand_epilogue): Add misc REG_CFA notes.
2609 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
2610
3a4f280b
LC
26112013-05-29 Lawrence Crowl <crowl@google.com>
2612
2613 * config/arm/t-arm: Update for below.
2614
2615 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
2616 Change type to hash_table. Update dependent calls and types.
2617
2618 * config/i386/t-cygming: Update for below.
2619
2620 * config/i386/t-interix: Update for below.
2621
2622 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
2623 Change type to hash_table. Update dependent calls and types.
2624 (i386_find_on_wrapper_list::wrappers): Likewise.
2625
2626 * config/ia64/t-ia64: Update for below.
2627
2628 * config/ia64/ia64.c (bundle_state_table):
2629 Change type to hash_table. Update dependent calls and types.
2630
2631 * config/mips/mips.c (mips_reorg_process_insns::htab):
2632 Change type to hash_table. Update dependent calls and types.
2633
2634 * config/sol2.c (solaris_comdat_htab):
2635 Change type to hash_table. Update dependent calls and types.
2636
2637 * config/t-sol2: Update for above.
2638
1388a0e3
TJ
26392013-05-29 Teresa Johnson <tejohnson@google.com>
2640
2641 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
2642 functions are not yet marked as defined.
2643
a5965b52
MM
26442013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
2645 Pat Haugen <pthaugen@us.ibm.com>
2646 Peter Bergner <bergner@vnet.ibm.com>
2647
2648 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
2649 instructions.
2650 (VEC_A): Likewise.
2651 (VEC_C): Likewise.
2652 (vrotl<mode>3): Likewise.
2653 (vashl<mode>3): Likewise.
2654 (vlshr<mode>3): Likewise.
2655 (vashr<mode>3): Likewise.
2656
2657 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2658 support for power8 V2DI builtins.
2659
2660 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
2661 power8 V2DI builtins.
2662 (vupkhsw): Likewise.
2663 (vupklsw): Likewise.
2664 (vaddudm): Likewise.
2665 (vminsd): Likewise.
2666 (vmaxsd): Likewise.
2667 (vminud): Likewise.
2668 (vmaxud): Likewise.
2669 (vpkudum): Likewise.
2670 (vpksdss): Likewise.
2671 (vpkudus): Likewise.
2672 (vpksdus): Likewise.
2673 (vrld): Likewise.
2674 (vsld): Likewise.
2675 (vsrd): Likewise.
2676 (vsrad): Likewise.
2677 (vsubudm): Likewise.
2678 (vcmpequd): Likewise.
2679 (vcmpgtsd): Likewise.
2680 (vcmpgtud): Likewise.
2681 (vcmpequd_p): Likewise.
2682 (vcmpgtsd_p): Likewise.
2683 (vcmpgtud_p): Likewise.
2684 (vupkhsw): Likewise.
2685 (vupklsw): Likewise.
2686 (vaddudm): Likewise.
2687 (vmaxsd): Likewise.
2688 (vmaxud): Likewise.
2689 (vminsd): Likewise.
2690 (vminud): Likewise.
2691 (vpksdss): Likewise.
2692 (vpksdus): Likewise.
2693 (vpkudum): Likewise.
2694 (vpkudus): Likewise.
2695 (vrld): Likewise.
2696 (vsld): Likewise.
2697 (vsrad): Likewise.
2698 (vsrd): Likewise.
2699 (vsubudm): Likewise.
2700
2701 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
2702 support for power8 V2DI instructions.
2703
2704 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
2705 power8 V2DI instructions. Combine pack and unpack insns to use an
2706 iterator for each mode. Check whether a particular mode supports
2707 Altivec instructions instead of just checking TARGET_ALTIVEC.
2708 (UNSPEC_VPKUWUM): Likewise.
2709 (UNSPEC_VPKSHSS): Likewise.
2710 (UNSPEC_VPKSWSS): Likewise.
2711 (UNSPEC_VPKUHUS): Likewise.
2712 (UNSPEC_VPKSHUS): Likewise.
2713 (UNSPEC_VPKUWUS): Likewise.
2714 (UNSPEC_VPKSWUS): Likewise.
2715 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
2716 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
2717 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
2718 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
2719 (UNSPEC_VUPKHSB): Likewise.
2720 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
2721 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
2722 (UNSPEC_VUPKHSH): Likewise.
2723 (UNSPEC_VUPKLSB): Likewise.
2724 (UNSPEC_VUPKLSH): Likewise.
2725 (VI2): Likewise.
2726 (VI_char): Likewise.
2727 (VI_scalar): Likewise.
2728 (VI_unit): Likewise.
2729 (VP): Likewise.
2730 (VP_small): Likewise.
2731 (VP_small_lc): Likewise.
2732 (VU_char): Likewise.
2733 (add<mode>3): Likewise.
2734 (altivec_vaddcuw): Likewise.
2735 (altivec_vaddu<VI_char>s): Likewise.
2736 (altivec_vadds<VI_char>s): Likewise.
2737 (sub<mode>3): Likewise.
2738 (altivec_vsubcuw): Likewise.
2739 (altivec_vsubu<VI_char>s): Likewise.
2740 (altivec_vsubs<VI_char>s): Likewise.
2741 (altivec_vavgs<VI_char>): Likewise.
2742 (altivec_vcmpbfp): Likewise.
2743 (altivec_eq<mode>): Likewise.
2744 (altivec_gt<mode>): Likewise.
2745 (altivec_gtu<mode>): Likewise.
2746 (umax<mode>3): Likewise.
2747 (smax<mode>3): Likewise.
2748 (umin<mode>3): Likewise.
2749 (smin<mode>3): Likewise.
2750 (altivec_vpkuhum): Likewise.
2751 (altivec_vpkuwum): Likewise.
2752 (altivec_vpkshss): Likewise.
2753 (altivec_vpkswss): Likewise.
2754 (altivec_vpkuhus): Likewise.
2755 (altivec_vpkshus): Likewise.
2756 (altivec_vpkuwus): Likewise.
2757 (altivec_vpkswus): Likewise.
2758 (altivec_vpks<VI_char>ss): Likewise.
2759 (altivec_vpks<VI_char>us): Likewise.
2760 (altivec_vpku<VI_char>us): Likewise.
2761 (altivec_vpku<VI_char>um): Likewise.
2762 (altivec_vrl<VI_char>): Likewise.
2763 (altivec_vsl<VI_char>): Likewise.
2764 (altivec_vsr<VI_char>): Likewise.
2765 (altivec_vsra<VI_char>): Likewise.
2766 (altivec_vsldoi_<mode>): Likewise.
2767 (altivec_vupkhsb): Likewise.
2768 (altivec_vupkhs<VU_char>): Likewise.
2769 (altivec_vupkls<VU_char>): Likewise.
2770 (altivec_vupkhsh): Likewise.
2771 (altivec_vupklsb): Likewise.
2772 (altivec_vupklsh): Likewise.
2773 (altivec_vcmpequ<VI_char>_p): Likewise.
2774 (altivec_vcmpgts<VI_char>_p): Likewise.
2775 (altivec_vcmpgtu<VI_char>_p): Likewise.
2776 (abs<mode>2): Likewise.
2777 (vec_unpacks_hi_v16qi): Likewise.
2778 (vec_unpacks_hi_v8hi): Likewise.
2779 (vec_unpacks_lo_v16qi): Likewise.
2780 (vec_unpacks_hi_<VP_small_lc>): Likewise.
2781 (vec_unpacks_lo_v8hi): Likewise.
2782 (vec_unpacks_lo_<VP_small_lc>): Likewise.
2783 (vec_pack_trunc_v8h): Likewise.
2784 (vec_pack_trunc_v4si): Likewise.
2785 (vec_pack_trunc_<mode>): Likewise.
2786
2787 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
2788 V2DI builtins.
2789 (vec_vmaxsd): Likewise.
2790 (vec_vmaxud): Likewise.
2791 (vec_vminsd): Likewise.
2792 (vec_vminud): Likewise.
2793 (vec_vpksdss): Likewise.
2794 (vec_vpksdus): Likewise.
2795 (vec_vpkudum): Likewise.
2796 (vec_vpkudus): Likewise.
2797 (vec_vrld): Likewise.
2798 (vec_vsld): Likewise.
2799 (vec_vsrad): Likewise.
2800 (vec_vsrd): Likewise.
2801 (vec_vsubudm): Likewise.
2802 (vec_vupkhsw): Likewise.
2803 (vec_vupklsw): Likewise.
2804
e70670cf
JH
28052013-05-29 Jan Hubicka <jh@suse.cz>
2806
2807 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
2808 flags; reorder rest of fields in more consistent way.
2809 (varpool_node): Remove analyzed, finalized and alias.
2810 (cgraph_ndoe): Likewise.
2811 (symtab_alias_ultimate_target): New function.
2812 (cgraph_function_node): Move offline.
2813 (cgraph_reset_node): Declare.
2814 (cgraph_comdat_can_be_unshared_p): Remove.
2815 (varpool_remove_initializer): Declare.
2816 (varpool_first_defined_variable, varpool_next_defined_variable
2817 cgraph_first_defined_function, cgraph_next_defined_function): Update.
2818 (cgraph_function_with_gimple_body_p): Update.
2819 (varpool_all_refs_explicit_p): Update.
2820 (symtab_alias_target): New function.
2821 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
2822 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
c1e183a9
UB
2823 (cgraph_function_or_thunk_node): Simplify using
2824 symtab_alias_ultimate_target.
e70670cf
JH
2825 (varpool_variable_node): Likewise.
2826 * cgraph.c (cgraph_create_function_alias): Update.
2827 (cgraph_add_thunk): Update.
2828 (cgraph_remove_node): Update.
2829 (dump_cgraph_node): Do not dump removed flags.
2830 (cgraph_function_body_availability): Update.
2831 (cgraph_propagate_frequency): Update.
2832 (verify_cgraph_node): Check sanity of local flag.
2833 (cgraph_function_node): Move here from cgraph.h; revamp for
2834 cgraph_function_or_thunk_node.
2835 * lto-symtab.c (lto_varpool_replace_node): Update.
2836 (lto_symtab_resolve_can_prevail_p): Update.
2837 (lto_symtab_merge_cgraph_nodes): Update.
2838 * ipa-cp.c (determine_versionability, initialize_node_lattices,
2839 propagate_constants_accross_call, devirtualization_time_bonus,
2840 ipcp_propagate_stage): Update.
2841 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
c1e183a9
UB
2842 * ipa-inline-transform.c (clone_inlined_nodes,
2843 preserve_function_body_p): Update.
e70670cf
JH
2844 * ipa-reference.c (propagate): Update.
2845 (write_node_summary_p): Update.
2846 * toplev.c (wrapup_global_declaration_2): Update.
2847 * cgraphunit.c (cgraph_analyze_function): Rename to ...
2848 (analyze_function) ... this one.
2849 (cgraph_process_new_functions): Update.
2850 (cgraph_reset_node): Export.
2851 (cgraph_finalize_function): Update.
2852 (cgraph_add_new_function): Update.
2853 (process_function_and_variable_attributes): Update.
2854 (varpool_finalize_decl): Update.
2855 (symbol_finalized): Remove.
2856 (symbol_finalized_and_needed): Rename to ...
2857 (symbol_defined_and_needed): ... update.
2858 (cgraph_analyze_functions): Update.
2859 (handle_alias_pairs): Update.
2860 (mark_functions_to_output): Update.
2861 (assemble_thunk): Update.
2862 (output_in_order): Update.
2863 (output_weakrefs): Update.
2864 (finalize_compilation_unit): Update.
2865 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
2866 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
2867 input_node, input_varpool_node): Update.
2868 * dbxout.c (dbxout_expand_expr): Update.
2869 * cgraphclones.c (cgraph_clone_node): Update.
2870 (cgraph_copy_node_for_versioning): Update.
2871 (cgraph_materialize_clone): Update.
2872 (cgraph_materialize_all_clones): Update.
2873 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
2874 propagate_pure_const, propagate_nothrow): Update.
2875 * lto-streamer-out.c (lto_output, write_symbol): Update.
2876 * ipa-utils.c (ipa_reverse_postorder): Update.
2877 * ipa-inline.c (can_inline_edge_p): Update.
2878 (update_caller_keys, ipa_inline): Update.
2879 * dwarf2out.c (reference_to_unused,
2880 premark_types_used_by_global_vars_helper): Update.
2881 * tree-eh.c (tree_could_trap_p): Update.
2882 * ipa-split.c (consider_split, execute_split_functions): Update.
2883 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
c1e183a9
UB
2884 has_addr_references_p): Update; move ahead in file for better
2885 readability.
e70670cf
JH
2886 (process_references): Simplify.
2887 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
2888 bodies are removed.
2889 (cgraph_comdat_can_be_unshared_p): Make static.
2890 (cgraph_externally_visible_p): Update.
2891 (varpool_externally_visible_p): Update.
2892 (function_and_variable_visibility): Update.
2893 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
2894 ipa_tm_mark_force_output_node): Update.
2895 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
2896 estimate_edge_devirt_benefit, inline_generate_summary,
2897 inline_write_summary): Update.
2898 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
2899 * ipa-prop.c (ipa_compute_jump_functions): Update.
c1e183a9
UB
2900 (ipa_print_node_params, ipa_prop_read_section,
2901 ipa_update_after_lto_read, read_replacements_section): Update.
e70670cf
JH
2902 * varasm.c (mark_decl_referenced): Update.
2903 (assemble_alias, dump_tm_clone_pairs): Update.
2904 * tree-inline.c (copy_bb): Update.
2905 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
2906 Update.
2907 * symtab.c (dump_symtab_base): Print new flags.
2908 (verify_symtab_base): Verify new flags.
2909 (symtab_alias_ultimate_target): New function.
2910 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
2911 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
2912 Update.
c1e183a9
UB
2913 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
2914 Update.
e70670cf
JH
2915 * i386.c (ix86_get_function_versions_dispatcher,
2916 ix86_generate_version_dispatcher_body): Update.
2917 (fold_builtin_cpu): Use varpool_add_new_variable.
2918 * varpool.c (varpool_remove_initializer): Break out from ...
2919 (varpool_remove_node): ... this one.
2920 (dump_varpool_node, varpool_node_for_asm,
2921 cgraph_variable_initializer_availability, varpool_analyze_node,
2922 varpool_assemble_decl, varpool_remove_unreferenced_decls,
c1e183a9
UB
2923 varpool_finalize_named_section_flags, varpool_create_variable_alias):
2924 Update.
e70670cf 2925
182802ad
JH
29262013-05-29 Jan Hubicka <jh@suse.cz>
2927
2928 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
2929
8190b609
ER
29302013-05-29 Easwaran Raman <eraman@google.com>
2931
2932 PR tree-optimization/57442
2933 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
2934 when control exits the main loop.
2935
69f5aa9b
SKS
29362013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
2937
2938 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
2939 and RX600.
c1e183a9 2940 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
69f5aa9b
SKS
2941 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
2942 * rx/t-rx: Add rx100 under multi library matches option for nofpu
2943 option.
2944
4b847da9
BS
29452013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2946
2947 PR tree-optimization/57441
2948 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
2949 Don't limit size of incr_vec to number of candidates.
2950
4fc43c39
SE
29512013-05-29 Steve Ellcey <sellcey@imgtec.com>
2952
2953 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
2954 and mips16 directories.
c1e183a9 2955 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
4fc43c39
SE
2956 (MULTILIB_DIRNAMES): Ditto.
2957 (MULTILIB_EXCEPTIONS): Add new exceptions.
2958 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
2959 (MULTILIB_DIRNAMES): Ditto.
2960 (MULTILIB_EXCEPTIONS): Add new exceptions.
2961
a5350ddc
CSS
29622012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2963 Marcus Shawcroft <marcus.shawcroft@arm.com>
2964
2965 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
2966 SYMBOL_TINY_ABSOLUTE.
2967 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
2968 SYMBOL_TINY_ABSOLUTE.
2969 (aarch64_expand_mov_immediate): Likewise.
2970 (aarch64_classify_symbol): Likewise.
2971 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
2972 Permit SYMBOL_TINY_ABSOLUTE.
2973 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
2974
17f4d4bf
CSS
29752013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2976 Marcus Shawcroft <marcus.shawcroft@arm.com>
2977
2978 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
2979 Refactor if/switch. Replace gcc_assert with if.
2980
c0186656
GG
29812013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2982
2983 * config/i386/i386.c (initial_ix86_tune_features): Enable
2984 FP Reassociation for AMD bdver1 and bdver2.
2985
d20188f3
MJ
29862013-05-29 Martin Jambor <mjambor@suse.cz>
2987
2988 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
2989 and IMAGPART_EXPR do not occur within other handled_components.
2990
292cba13
RB
29912013-05-29 Richard Biener <rguenther@suse.de>
2992
2993 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
2994 access on whether the use is in the BB we currently try to
2995 vectorize.
2996 (vect_bb_vectorization_profitable_p): Pass the BB we currently
2997 vectorize to vect_bb_slp_scalar_cost.
2998
6eddf228
RB
29992013-05-29 Richard Biener <rguenther@suse.de>
3000
3001 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
3002 computing scalar cost offsetted by stmts that are kept live
3003 by scalar uses.
3004 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
3005 for computation of scalar cost.
3006
7df36117
SE
30072013-05-28 Steve Ellcey <sellcey@mips.com>
3008
3009 * config/mips/mips-cpus.def (mips32r2): Change processor type.
3010
36536d79
BI
30112013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
3012
3013 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
3014 array notation built-in reduction functions.
3015 * doc/passes.texi (Passes): Added documentation about changes done
3016 for Cilk Plus.
3017 * doc/invoke.texi (C Dialect Options): Added documentation about
3018 the -fcilkplus flag.
3019 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
3020 (BUILTINS_DEF): Depend on cilkplus.def.
3021 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
3022 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
3023 * cilkplus.def: New file.
3024
b49eefa5
JR
30252013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
3026
3027 PR rtl-optimization/57439
3028 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
3029
9daf6dbb
ER
30302013-05-28 Easwaran Raman <eraman@google.com>
3031
3032 PR tree-optimization/57337
3033 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
3034 (find_insert_point): Correctly identify the insertion point
3035 when two statements with the same UID is compared.
3036
fbd7e877
RB
30372013-05-28 Richard Biener <rguenther@suse.de>
3038
3039 PR tree-optimization/56787
3040 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
3041 from the list of data references.
3042 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
3043 clobbers.
3044 (vect_analyze_loop_operations): Likewise.
3045 (vect_transform_loop): Remove clobbers.
3046
bbba1117
MJ
30472013-05-28 Martin Jambor <mjambor@suse.cz>
3048
3049 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
3050 and REALPART_EXPRs have scalar type.
3051
bd388c2a
RB
30522013-05-28 Richard Biener <rguenther@suse.de>
3053
3054 PR tree-optimization/57411
3055 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
3056 virtual operands.
3057 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
3058 virtual operand propagation.
3059
2f56a311
EB
30602013-05-28 Eric Botcazou <ebotcazou@adacore.com>
3061
3062 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
3063 destination register for bmasksi_vis.
3064 (vector_init_bshuffle): Likewise.
3065 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
3066
5c3eacbb
EB
30672013-05-28 Eric Botcazou <ebotcazou@adacore.com>
3068
3069 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
3070 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
3071 mode if the instruction isn't available in the original mode.
3072 * config/sparc/sparc.opt (mfix-ut699): New option.
3073 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
3074 (divdf3): Turn into expander.
3075 (divdf3_nofix): New insn.
3076 (divdf3_fix): Likewise.
3077 (divsf3): Disable if -mfix-ut699.
3078 (sqrtdf2): Turn into expander.
3079 (sqrtdf2_nofix): New insn.
3080 (sqrtdf2_fix): Likewise.
3081 (sqrtsf2): Disable if -mfix-ut699.
3082
a1756c0a
RB
30832013-05-27 Richard Biener <rguenther@suse.de>
3084
3085 PR middle-end/57412
3086 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
3087 block for the new loop.
3088
5a892248
RB
30892013-05-27 Richard Biener <rguenther@suse.de>
3090
3091 PR tree-optimization/57343
3092 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
3093 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
3094 (number_of_iterations_cond): Do not build the folded tree.
3095
d1de852b
RB
30962013-05-27 Richard Biener <rguenther@suse.de>
3097
3098 Revert
3099 PR middle-end/57381
3100 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
3101 OEP_CONSTANT_ADDRESS_OF retained.
3102
3103 PR tree-optimization/57417
3104 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
3105 for unchanged base.
3106 (set_ssa_val_to): Compare addresses using
3107 get_addr_base_and_unit_offset.
3108
7894bc6b
JR
31092013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
3110
3111 PR rtl-optimization/56833
3112 * postreload.c (move2add_record_mode): New function.
3113 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
3114 (move2add_use_add2_insn): Use move2add_record_sym_value.
3115 (move2add_use_add3_insn): Likewise.
3116 (reload_cse_move2add): Use move2add_valid_value_p and
3117 move2add_record_mode. Invalidate call-clobbered and REG_INC
3118 affected regs by setting reg_mode to VOIDmode.
3119 (move2add_note_store): Don't pretend the inside of a SUBREG is
3120 the actual destination. Invalidate single/leading registers by
3121 setting reg_mode to VOIDmode.
3122 Use move2add_record_sym_value, move2add_valid_value_p and
3123 move2add_record_mode.
3124
b03be25f
RB
31252013-05-27 Richard Biener <rguenther@suse.de>
3126
3127 PR tree-optimization/57396
3128 * tree-affine.c (double_int_constant_multiple_p): Properly
3129 return false for val == 0 and div != 0.
3130
44e88db2
RS
31312013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
3132
3133 * config/mips/mips.h: Use #elif in preprocessor conditions.
3134
3b859704
RS
31352013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
3136
3137 PR target/53916
3138 * config/mips/constraints.md (kl): New constraint.
3139 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
3140 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
3141 constraint for operand 0. Split after CSE for MIPS16. Emit a move
3142 from LO for MIPS16.
3143 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
3144
c979d5f5
RS
31452013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
3146
3147 PR target/55777
3148 * config/mips/mips.c (mips_can_inline_p): New function.
3149 (TARGET_CAN_INLINE_P): Define.
3150
8e90de43
SB
31512013-05-25 Steven Bosscher <steven@gcc.gnu.org>
3152
3153 * sched-int.h (ds_t, dw_t): Make unsigned int.
3154 Fix documentation that describes how all the ds_t bits are used.
3155 Reserve the last bit for delayed-branch scheduling.
3156 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
3157 (BITS_PER_DEP_WEAK): Fix definition and documentation.
3158 (gen_dep_weak_1): Remove prototype.
3159 * sched-deps.c (get_dep_weak_1): Make static.
3160 * target.def (speculate_insn, needs_block_p, gen_spec_check,
3161 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
3162 * doc/tm.texi: Regenerate.
3163 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
3164
cb5cb194
SB
31652013-05-24 Steven Bosscher <steven@gcc.gnu.org>
3166
3167 PR debug/56950
3168 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
3169
5bd93ff6
NS
31702013-05-24 Nathan Sidwell <nathan@codesourcery.com>
3171 Sandra Loosemore <sandra@codesourcery.com>
3172
3173 * config.gcc (powerpc-*): Allow native for with-cpu.
3174
2343af65
JL
31752013-05-24 Jeff Law <law@redhat.com>
3176
3177 PR tree-optimization/57124
3178 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
3179 conversion feeding a condition if the range has an overflow
3180 if -fstrict-overflow. Add warnings for when we do make the
3181 transformation.
3182
3ad695b9
DC
31832013-05-24 Dehao Chen <dehao@google.com>
3184
04960246 3185 * tree-cfg.c (locus_discrim_map): Fix the typo.
3ad695b9
DC
3186 (locus_discrim_hasher): Likewise.
3187 (locus_discrim_hasher::hash): Likewise.
3188 (locus_discrim_hasher::equal): Likewise.
3189
82338059
MJ
31902013-05-24 Martin Jambor <mjambor@suse.cz>
3191
3192 PR tree-optimization/57294
3193 * cgraph.h (ipa_record_stmt_references): Declare.
3194 * cgraphbuild.c (ipa_record_stmt_references): New function.
3195 (build_cgraph_edges): Use ipa_record_stmt_references.
3196 (rebuild_cgraph_edges): Likewise.
3197 (cgraph_rebuild_references): Likewise.
3198 * ipa-prop.c (ipa_modify_call_arguments): Discard references
3199 associated with the old statement and build references from the
3200 newly built statements.
3201 * ipa-ref.c (ipa_remove_stmt_references): New function.
3202 * ipa-ref.h (ipa_remove_stmt_references): Declare.
3203
1ccd4874
VM
32042013-05-24 Vladimir Makarov <vmakarov@redhat.com>
3205
55805e54 3206 * lra-constraints.c (emit_spill_move): Use smaller mode for
1ccd4874 3207 mem-mem moves.
55805e54 3208 (check_and_process_move): Consider mem-reg moves for secondary
1ccd4874 3209 too.
55805e54 3210 (curr_insn_transform): Don't lose insns emitted before for
1ccd4874
VM
3211 secondary memory moves.
3212 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
3213 reg set up in the current insn.
3214
25e25c73
DC
32152013-05-24 Dehao Chen <dehao@google.com>
3216
04960246 3217 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
25e25c73
DC
3218 hash function.
3219 (locus_descrim_hasher::equal): Likewise.
04960246 3220 (build_gimple_cfg): New discriminator assignment algorithm.
25e25c73
DC
3221 (make_edges): Likewise.
3222 (next_discriminator_for_locus): Likewise.
3223 (same_line_p): Likewise.
3224 (assign_discriminators): Likewise.
3225 (make_cond_expr_edges): Likewise.
3226 (make_gimple_switch_edges): Likewise.
3227 (make_goto_expr_edges): Likewise.
3228 (make_gimple_asm_edges): Likewise.
3229
50d38551
IB
32302013-05-24 Ian Bolton <ian.bolton@arm.com>
3231
3232 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
3233 X format specifier to only display bottom 16 bits.
3234 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
3235 immediate to match for operand 2, since it will be masked.
3236
aea0101d
RB
32372013-05-24 Richard Biener <rguenther@suse.de>
3238
3239 PR tree-optimization/57287
3240 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
3241 all SSA names that occur in abnormal PHIs.
3242
634e03d3
AI
32432013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3244
3245 PR tree-ssa/57385
3246 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
3247 that index is not negative.
3248
b17c024f
EB
32492013-05-24 Eric Botcazou <ebotcazou@adacore.com>
3250
3251 PR rtl-optimization/55177
3252 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
3253 (simplify_byte_swapping_operation): New.
3254 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
3255 (simplify_relational_operation_1): Deal with BSWAP.
3256
46aeac1b
RH
32572013-05-23 Richard Henderson <rth@redhat.com>
3258
3259 PR target/56742
3260 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
3261 (ix86_reorg): Call it.
3262
70cc1536
UB
32632013-05-23 Uros Bizjak <ubizjak@gmail.com>
3264
3265 PR target/57379
3266 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
3267 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
3268 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
3269
b3851501
CB
32702013-05-23 Christian Bruel <christian.bruel@st.com>
3271
3272 PR debug/57351
3273 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
3274
4e194912
CSS
32752013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3276 Marcus Shawcroft <marcus.shawcroft@arm.com>
3277
3278 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
3279 * config/aarch64/constraints.md (Usa): Remove.
3280 * doc/md.texi (AArch64 Usa): Remove.
3281
83f8c414
CSS
32822013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3283 Marcus Shawcroft <marcus.shawcroft@arm.com>
3284
3285 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
3286 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
3287 * config/aarch64/predicates.md (aarch64_const_address): Remove.
3288 (aarch64_mov_operand): Use aarch64_mov_operand_p.
3289
b5574232
VP
32902013-05-23 Vidya Praveen <vidyapraveen@arm.com>
3291
3292 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
3293 instruction (AdvSIMD).
3294 * config/aarch64/aarch64-builtins.c
3295 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
3296 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
3297
76c36cb1 32982013-05-23 Martin Jambor <mjambor@suse.cz>
7d2fb524
MJ
3299
3300 PR middle-end/57347
3301 * tree.h (contains_bitfld_component_ref_p): Declare.
3302 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
70cc1536
UB
3303 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
3304 caller.
7d2fb524
MJ
3305 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
3306 not access a bit-field. Assert all final offsets are byte-aligned.
3307
ce521ae6
RB
33082013-05-23 Richard Biener <rguenther@suse.de>
3309
3310 PR tree-optimization/57380
3311 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
3312 least one invariant or re-used load.
3313 * passes.c (init_optimization_passes): Move pass_phiprop before
3314 pass_forwprop.
3315
75c7257f
JG
33162013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
3317
3318 * config/aarch64/aarch64-simd.md
3319 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
3320
af6d44b5
RB
33212013-05-23 Richard Biener <rguenther@suse.de>
3322
3323 PR middle-end/57381
3324 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
3325 OEP_CONSTANT_ADDRESS_OF retained.
3326
bd3647bf
JJ
33272013-05-23 Jakub Jelinek <jakub@redhat.com>
3328
3329 PR middle-end/57344
70cc1536
UB
3330 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
3331 don't lower unit. Handle unit not being always BITS_PER_WORD.
bd3647bf 3332
a55757ea
RB
33332013-05-23 Richard Biener <rguenther@suse.de>
3334
3335 PR rtl-optimization/57341
3336 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
3337 instead of true_dependence.
3338
cfb00b41
DM
33392013-05-22 David Malcolm <dmalcolm@redhat.com>
3340
dd1c676f
DM
3341 * bb-reorder.c (branch_threshold): Make const.
3342 (exec_threshold): Ditto.
cfb00b41 3343
f62511da
MM
33442013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
3345 Pat Haugen <pthaugen@us.ibm.com>
3346 Peter Bergner <bergner@vnet.ibm.com>
3347
3348 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
3349 documentation for the power8 crypto builtins.
3350
3351 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
3352
3353 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
3354 macros for defining power8 builtin functions.
3355 (BU_P8V_AV_2): Likewise.
3356 (BU_P8V_AV_P): Likewise.
3357 (BU_P8V_VSX_1): Likewise.
3358 (BU_P8V_OVERLOAD_1): Likewise.
3359 (BU_P8V_OVERLOAD_2): Likewise.
3360 (BU_CRYPTO_1): Likewise.
3361 (BU_CRYPTO_2): Likewise.
3362 (BU_CRYPTO_3): Likewise.
3363 (BU_CRYPTO_OVERLOAD_1): Likewise.
3364 (BU_CRYPTO_OVERLOAD_2): Likewise.
3365 (XSCVSPDP): Fix typo, point to the correct instruction.
3366 (VCIPHER): Add power8 crypto builtins.
3367 (VCIPHERLAST): Likewise.
3368 (VNCIPHER): Likewise.
3369 (VNCIPHERLAST): Likewise.
3370 (VPMSUMB): Likewise.
3371 (VPMSUMH): Likewise.
3372 (VPMSUMW): Likewise.
3373 (VPERMXOR_V2DI): Likewise.
3374 (VPERMXOR_V4SI: Likewise.
3375 (VPERMXOR_V8HI: Likewise.
3376 (VPERMXOR_V16QI: Likewise.
3377 (VSHASIGMAW): Likewise.
3378 (VSHASIGMAD): Likewise.
3379 (VPMSUM): Likewise.
3380 (VPERMXOR): Likewise.
3381 (VSHASIGMA): Likewise.
3382
3383 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
3384 __CRYPTO__ if the crypto instructions are available.
3385 (altivec_overloaded_builtins): Add support for overloaded power8
3386 builtins.
3387
3388 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
3389 support for power8 crypto builtins.
3390 (builtin_function_type): Likewise.
3391 (altivec_init_builtins): Add support for builtins that take vector
3392 long long (V2DI) arguments.
3393
3394 * config/rs6000/crypto.md: New file, define power8 crypto
3395 instructions.
3396
33972013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
3398 Pat Haugen <pthaugen@us.ibm.com>
3399 Peter Bergner <bergner@vnet.ibm.com>
3400
3401 * doc/invoke.texi (Option Summary): Add power8 options.
3402 (RS/6000 and PowerPC Options): Likewise.
3403
3404 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
3405 constraints.md instead of rs6000.h. Reorder w* constraints. Add
3406 wm, wn, wr documentation.
3407
3408 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
3409 registers if direct move instructions are enabled.
3410 (wn): New constraint for no registers.
3411 (wq): New constraint for quad word even GPR registers.
3412 (wr): New constraint if 64-bit instructions are enabled.
3413 (wv): New constraint if power8 vector instructions are enabled.
3414 (wQ): New constraint for quad word memory locations.
3415
3416 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
3417 constraint for 0..15 for crypto instructions.
3418 (gpc_reg_operand): If VSX allow registers in VSX registers as well
3419 as GPR and floating point registers.
3420 (int_reg_operand): New predicate to match only GPR registers.
3421 (base_reg_operand): New predicate to match base registers.
3422 (quad_int_reg_operand): New predicate to match even GPR registers
3423 for quad memory operations.
3424 (vsx_reg_or_cint_operand): New predicate to allow vector logical
3425 operations in both GPR and VSX registers.
3426 (quad_memory_operand): New predicate for quad memory operations.
3427 (reg_or_indexed_operand): New predicate for direct move support.
3428
3429 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
3430 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
3431 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
3432 (POWERPC_MASKS): Add power8 options.
3433 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
3434 various options.
3435
3436 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
3437 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
3438
3439 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
3440 (-mpower8-fusion): New power8 options.
3441 (-mpower8-fusion-sign): Likewise.
3442 (-mpower8-vector): Likewise.
3443 (-mcrypto): Likewise.
3444 (-mdirect-move): Likewise.
3445 (-mquad-memory): Likewise.
3446
3447 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
3448 power8.
3449 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
3450 registers.
70cc1536 3451 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
f62511da
MM
3452 (rs6000_debug_vector_unit): Add p8_vector.
3453 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
3454 definitions. Also print fusion state.
3455 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
3456 (rs6000_builtin_mask_calculate): Add power8 builtin support.
3457 (rs6000_option_override_internal): Add support for power8.
3458 (rs6000_common_init_builtins): Add debugging for skipped builtins
3459 if -mdebug=builtin.
3460 (rs6000_adjust_cost): Add power8 support.
3461 (rs6000_issue_rate): Likewise.
3462 (insn_must_be_first_in_group): Likewise.
3463 (insn_must_be_last_in_group): Likewise.
3464 (force_new_group): Likewise.
3465 (rs6000_register_move_cost): Likewise.
3466 (rs6000_opt_masks): Likewise.
3467
3468 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
3469 power8 capable assembler, default to power7 options.
3470 (TARGET_DIRECT_MOVE): Likewise.
3471 (TARGET_CRYPTO): Likewise.
3472 (TARGET_P8_VECTOR): Likewise.
3473 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
3474 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
3475 (VECTOR_MEM_P8_VECTOR_P): Likewise.
3476 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
3477 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
3478 (TARGET_XSCVDPSPN): Likewise.
3479 (TARGET_XSCVSPDPN): Likewsie.
3480 (TARGET_SYNC_HI_QI): Likewise.
3481 (TARGET_SYNC_TI): Likewise.
3482 (MASK_CRYPTO): Likewise.
3483 (MASK_DIRECT_MOVE): Likewise.
3484 (MASK_P8_FUSION): Likewise.
3485 (MASK_P8_VECTOR): Likewise.
70cc1536
UB
3486 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
3487 temporary used by some of the direct move instructions to get two FP
3488 temporary registers does not force creation of a stack frame.
f62511da
MM
3489 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
3490 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
3491 that any VSX registers are tieable, even if they are also an
3492 Altivec vector mode.
3493 (r6000_reg_class_enum): Add wm, wr, wv constraints.
3494 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
3495 (RS6000_BTM_CRYPTO): Likewise.
3496 (RS6000_BTM_COMMON): Likewise.
3497
3498 * config/rs6000/rs6000.md (cpu attribute): Add power8.
3499 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
3500 (enum rs6000_vector): Add power8 vector support.
3501
73a1a707
RR
35022013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3503
3504 PR target/19599
3505 PR target/57340
3506 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
3507 (any_sibcall_could_use_r3): this and handle indirect calls.
3508 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
3509
d28073d4
BS
35102013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3511
3512 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
3513
bee0b10c
RB
35142013-05-22 Richard Biener <rguenther@suse.de>
3515
3516 PR middle-end/57349
3517 * profile.c (branch_prob): Do not split blocks that are
3518 abnormally receiving from ECF_RETURNS_TWICE functions.
3519
98409b51
RS
35202013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3521
3522 * recog.c (offsettable_address_addr_space_p): Fix calculation of
3523 address mode. Move pointer mode initialization to the same place.
3524
c0602ab8
MZ
35252013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3526
3527 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
3528 while it has any effect.
3529
4f7a634e
ER
35302013-05-21 Easwaran Raman <eraman@google.com>
3531
3532 PR tree-optimization/57322
9daf6dbb
ER
3533 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
3534 UID of the statement added to the BB to be 1.
4f7a634e 3535
a4ce1258
JJ
35362013-05-21 Jakub Jelinek <jakub@redhat.com>
3537
3538 PR tree-optimization/57331
70cc1536
UB
3539 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
3540 of conversion from pointer type to integral type with integer.
a4ce1258 3541
1b14621a
MJ
35422013-05-21 Martin Jambor <mjambor@suse.cz>
3543
3544 PR lto/57289
3545 * ipa-prop.c (ipa_read_node_info): Process param_used and
3546 controlled_uses in the same order as when writing.
3547
e60661f0
MG
35482013-05-21 Magnus Granberg <baldrick@free.fr>
3549
3550 PR plugins/56754
ee49aa34 3551 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
e60661f0 3552
4a61be9a
RB
35532013-05-21 Richard Biener <rguenther@suse.de>
3554
3555 PR tree-optimization/57318
3556 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
3557 estimate stmts with side-effects as likely eliminated.
3558
c52da5f7
RB
35592013-05-21 Richard Biener <rguenther@suse.de>
3560
3561 PR tree-optimization/57330
3562 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
3563 preserve the call stmts fntype.
3564
7ec67e2a
RB
35652013-05-21 Richard Biener <rguenther@suse.de>
3566
3567 PR tree-optimization/57303
3568 * tree-ssa-sink.c (statement_sink_location): Improve killing
3569 stmt detection and properly handle self-assignments.
3570
b112d513
CB
35712013-05-21 Christian Bruel <christian.bruel@st.com>
3572
55805e54
YR
3573 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
3574 spanning registers. LEAF_REG_REMAP is supported only for contiguous
b112d513
CB
3575 registers. Set register size out of the PARALLEL loop.
3576
14c2ec26
OE
35772013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
3578
3579 PR target/56547
3580 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
3581 (*fmasf4, *fmasf4_media): New insns.
3582
da734fa1
RS
35832013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
3584
3585 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
3586 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
3587 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
3588 (mips_idiv_insns): Update the comments to say that the returned
3589 instruction counts are in units of BASE_INSN_LENGTH.
3590 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
3591 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
3592 using 2 rather than 4 as the length of indirect MIPS16 and
3593 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
3594 length of a NOP. Don't divide MIPS16 lengths by 2.
3595 (mips16_split_long_branches): Assume a branch is long if the
3596 length is greater than 4 rather than 8.
3597 * config/mips/mips.md (length): Give MIPS16 lengths directly,
3598 rather than multiplying them by 2. Multiply instruction counts
3599 by BASE_INSN_LENGTH rather than 4.
3600 (*jump_mips16, tls_get_tp_mips16_<mode>)
3601 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
3602
13719e8b
RS
36032013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
3604
3605 * config/mips/mips.md (extended_mips16): Remove branch case.
3606 (length): Remove duplicated extended_mips16 test.
3607
c3850d14
RS
36082013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
3609
3610 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
3611
8da2e059
RS
36122013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
3613
3614 * recog.h (Recog_data): Rename to...
3615 (recog_data_d): ...this.
3616 (recog_data): Update accordingly.
3617 * recog.c (recog_data): Likewise.
3618 * reload.c (save_recog_data): Likewise.
3619 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
3620 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
3621
2df013f3
JB
36222013-05-17 Julian Brown <julian@codesourcery.com>
3623
3624 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
3625 found in a REG_EQUAL note, invalidate it.
3626
933f507d
ER
36272013-05-17 Easwaran Raman <eraman@google.com>
3628
3629 * tree-ssa-reassoc.c (find_insert_point): New function.
3630 (insert_stmt_after): Likewise.
3631 (get_def_stmt): Likewise.
3632 (ensure_ops_are_available): Likewise.
3633 (not_dominated_by): Likewise.
3634 (rewrite_expr_tree): Do not move statements beyond what is
3635 necessary. Remove call to swap_ops_for_binary_stmt...
3636 (reassociate_bb): ... and move it here.
3637 (build_and_add_sum): Assign UIDs for new statements.
3638 (linearize_expr): Likewise.
3639 (do_reassoc): Renumber gimple statement UIDs.
3640
e01c7cca
JH
36412013-05-17 Jan Hubicka <jh@suse.cz>
3642
3643 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
3644 weakrefs.
3645 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
e2420687
UB
3646 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
3647 weakrefs.
e01c7cca
JH
3648 (output_weakrefs): Update.
3649
c3272a92
PCC
36502013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
3651 Martin Jambor <mjambor@suse.cz>
3652
3653 PR middle-end/57276
3654 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
3655 value that corresponds to the given aggval is found in values vector.
3656
11c2aa39
UB
36572013-05-17 Uros Bizjak <ubizjak@gmail.com>
3658
3659 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
3660 sse, sse2, sse3, ssse3 and sse4a flags to options.
3661
abecc8c6
DM
36622013-05-17 David Malcolm <dmalcolm@redhat.com>
3663
3664 * gengtype-state.c: (s_expr_writer): New class, to handle
3665 prettifying of output layout of s-expressions.
3666 (state_writer): New class, to write out gtype.state.
3667 (state_written_type_count): Move this variable into member data of
3668 state_writer.
3669 (s_expr_writer::s_expr_writer): New code: constructor for new class
3670 (state_writer::state_writer(): ditto
3671 (s_expr_writer::write_new_line): New function
3672 (s_expr_writer::write_any_indent): ditto
3673 (s_expr_writer::begin_s_expr): ditto
3674 (s_expr_writer::end_s_expr): ditto
3675 (write_state_fileloc): convert to method of state_writer...
3676 (state_writer:: write_state_fileloc): ...and use methods of
3677 s_expr_writer to write indentation into the gtype.state output file
3678 to visually represent the hierarchical structure of the list
3679 structures
3680 (write_state_fields): ditto, renaming to...
3681 (state_writer::write_state_fields)
3682 (write_state_a_string): ditto, renaming to...
3683 (state_writer::write_state_a_string)
3684 (write_state_string_option): ditto, renaming to...
3685 (state_writer::write_state_string_option)
3686 (write_state_type_option): ditto, renaming to...
3687 (state_writer::write_state_type_option)
3688 (write_state_nested_option): ditto, renaming to...
3689 (state_writer::write_state_nested_option)
3690 (write_state_option): ditto, renaming to...
3691 (state_writer::write_state_option)
3692 (write_state_options): ditto, renaming to...
3693 (state_writer::write_state_options)
3694 (write_state_lang_bitmap): ditto, renaming to...
3695 (state_writer::write_state_lang_bitmap)
3696 (write_state_version): ditto, renaming to...
3697 (state_writer::write_state_version)
3698 (write_state_scalar_type): ditto, renaming to...
3699 (state_writer::write_state_scalar_type)
3700 (write_state_string_type): ditto, renaming to...
3701 (state_writer::write_state_string_type)
3702 (write_state_undefined_type): ditto, renaming to...
3703 (state_writer::write_state_undefined_type)
3704 (write_state_struct_union_type): ditto, renaming to...
3705 (state_writer::write_state_struct_union_type)
3706 (write_state_struct_type): ditto, renaming to...
3707 (state_writer::write_state_struct_type)
3708 (write_state_user_struct_type): ditto, renaming to...
3709 (state_writer::write_state_user_struct_type)
3710 (write_state_lang_struct_type): ditto, renaming to...
3711 (state_writer::write_state_lang_struct_type)
3712 (write_state_param_struct_type): ditto, renaming to...
3713 (state_writer::write_state_param_struct_type)
3714 (write_state_pointer_type): ditto, renaming to...
3715 (state_writer::write_state_pointer_type)
3716 (write_state_array_type): ditto, renaming to...
3717 (state_writer::write_state_array_type)
3718 (write_state_gc_used): ditto, renaming to...
3719 (state_writer::write_state_gc_used)
3720 (write_state_common_type_content): ditto, renaming to...
3721 (state_writer::write_state_common_type_content)
3722 (write_state_type): ditto, renaming to...
3723 (state_writer::write_state_type)
3724 (write_state_pair_list): ditto, renaming to...
3725 (state_writer::write_state_pair_list)
3726 (write_state_pair): ditto, renaming to...
3727 (state_writer::write_state_pair)
3728 (write_state_typedefs): ditto, renaming to...
3729 (state_writer::write_state_typedefs)
3730 (write_state_structures): ditto, renaming to...
3731 (state_writer::write_state_structures)
3732 (write_state_param_structs): ditto, renaming to...
3733 (state_writer::write_state_param_structs)
3734 (write_state_variables): ditto, renaming to...
3735 (state_writer::write_state_variables)
3736 (write_state_srcdir): ditto, renaming to...
3737 (state_writer::write_state_srcdir)
3738 (write_state_files_list): ditto, renaming to...
3739 (state_writer::write_state_files_list)
3740 (write_state_languages): ditto, renaming to...
3741 (state_writer::write_state_languages)
3742 (write_state): create a state_writer instance and use it when
3743 writing out the state file
3744
d6545f29
MS
37452013-05-17 Mike Stump <mikestump@comcast.net>
3746
816a3f73 3747 PR rtl-optimization/57304
d6545f29
MS
3748 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
3749 accessing DF_REF_REAL_LOC.
3750
38c821cf
JJ
37512013-05-17 Jakub Jelinek <jakub@redhat.com>
3752
3753 PR rtl-optimization/57281
3754 PR rtl-optimization/57300
3755 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
3756 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
3757 what the other splitter did if the registers are dead.
3758
2a293391
RB
37592013-05-17 Richard Biener <rguenther@suse.de>
3760
3761 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
3762 MEM_REF offsets.
3763
17042d2b
JJ
37642013-05-17 Jakub Jelinek <jakub@redhat.com>
3765
3766 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
3767 linking.
3768
5b115c1f
MP
37692013-05-17 Marek Polacek <polacek@redhat.com>
3770
11c2aa39
UB
3771 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
3772 length when doing non-zero store of storing '\0' to '\0'.
5b115c1f 3773
52d84413
JJ
37742013-05-17 Jakub Jelinek <jakub@redhat.com>
3775
68119618
JJ
3776 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
3777 vect_external_def oprnd1 with loop_vinfo, try to emit
3778 optional cast, negation and and stmts on the loop preheader
3779 edge instead of into the pattern def seq.
3780
52d84413
JJ
3781 PR tree-optimization/57051
3782 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
3783 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
3784
17b962bd
NC
37852013-05-16 Nick Clifton <nickc@redhat.com>
3786
3787 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
3788 (rl78_is_naked_func): New function.
56aefbf7
UB
3789 (rl78_expand_prologue): Skip prologue generation for naked functions.
3790 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
17b962bd
NC
3791 * doc/extend.texi (naked): Add RL78 to the list of processors
3792 that supports this attribute.
3793
b1a0f84e
JL
37942013-05-16 Jeff Law <law@redhat.com>
3795
3796 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
3797
af0e415b
UB
37982013-05-16 Uros Bizjak <ubizjak@gmail.com>
3799
3800 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
3801 cache parameters using detect_caches_amd also for CYRIX,
3802 NSC and TM2 signatures.
3803
19db293a
UB
38042013-05-16 Uros Bizjak <ubizjak@gmail.com>
3805 Dzianis Kahanovich <mahatma@eu.by>
3806
3807 PR target/45359
3808 PR target/46396
3809 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3810 VIA/Centaur processors and determine their cache parameters
3811 using detect_caches_amd.
3812
251a41b9
TJ
38132013-05-16 Teresa Johnson <tejohnson@google.com>
3814
3815 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
3816 (rtl_verify_edges): New function.
3817 (rtl_verify_bb_insns): Ditto.
3818 (rtl_verify_bb_pointers): Ditto.
3819 (rtl_verify_bb_insn_chain): Ditto.
3820 (rtl_verify_fallthru): Ditto.
3821 (rtl_verify_bb_layout): Ditto.
3822 (rtl_verify_flow_info_1): Outline checks into new functions.
3823 (rtl_verify_flow_info): Ditto.
3824
f14540b6
SE
38252013-05-16 Steve Ellcey <sellcey@imgtec.com>
3826
3827 * cfghooks.c (copy_bbs): Add update_dominance argument.
3828 * cfghooks.h (copy_bbs): Update prototype.
3829 * tree-cfg.c (gimple_duplicate_sese_region):
3830 Add update_dominance argument.
3831 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
3832 * tree-ssa-loop-ch.c (copy_loop_headers): Update
3833 gimple_duplicate_sese_region call.
3834 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
3835 Update copy_bbs call.
3836 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
3837 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
3838
7e9a3abb
JJ
38392013-05-16 Jakub Jelinek <jakub@redhat.com>
3840
3841 * tree-vectorizer.h (NUM_PATTERNS): Increment.
3842 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
3843 vect_recog_rotate_pattern.
3844 (vect_recog_rotate_pattern): New function.
3845
427b248d
JM
38462013-05-16 Jason Merrill <jason@redhat.com>
3847
3848 * Makefile.in (LLINKER): New variable.
3849 (mostlyclean): Remove link mutex.
3850 * configure.ac: Handle --enable-link-mutex.
3851 * lock-and-run.sh: New script.
3852
b871e3d2
RR
38532013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3854
3855 PR target/19599
3856 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
3857 for NULL decl.
3858
ce858126
RO
38592013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3860
3861 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
3862
798d3d04
GY
38632013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
3864
3865 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
3866 * config/arm/arm.c (next_consecutive_mem): New function.
3867 (gen_movmem_ldrd_strd): Likewise.
3868 * config/arm/arm.md (movmemqi): Update condition and code.
3869 (unaligned_loaddi, unaligned_storedi): New patterns.
3870
0baddc45
RO
38712013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3872
3873 * config.gcc: Obsolete *-*-solaris2.9*.
3874 * doc/install.texi (Specific, *-*-solaris2*): Document it.
3875
aa9d5bcf
RB
38762013-05-16 Richard Biener <rguenther@suse.de>
3877
3878 * passes.c (init_optimization_passes): Move pass_parallelize_loops
3879 earlier, after GRAPHITE transforms and IV canonicalization.
3880
5a0f4dd3
JJ
38812013-05-16 Jakub Jelinek <jakub@redhat.com>
3882
3883 * omp-low.c (extract_omp_for_data): For collapsed loops,
3884 if at least one of the loops is known at compile time to
3885 iterate zero times, set count to 0.
3886 (expand_omp_regimplify_p): New function.
3887 (expand_omp_for_generic): For collapsed loops, if at least
3888 one of the loops isn't known to iterate at least once,
3889 add runtime check with setting count to 0.
3890 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
3891 For unsigned types if it isn't known at compile time that
3892 the loop will iterate at least once, add runtime check to bypass
3893 the whole loop if initial condition isn't true.
3894
e3753785
NS
38952013-05-16 Nathan Sidwell <nathan@codesourcery.com>
3896
3897 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
3898
43bb4dd1
MG
38992013-05-16 Marc Glisse <marc.glisse@inria.fr>
3900
3901 PR middle-end/57286
3902 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
3903 transformations to avoid an infinite loop.
3904
3571dde6
MP
39052013-05-16 Marek Polacek <polacek@redhat.com>
3906
3907 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
3908
b8b3f0ca
LE
39092013-05-15 Leif Ekblad <leif@rdos.net>
3910
3911 * config/i386/i386.c (ix86_decompose_address): Use
3912 DEFAULT_TLS_SEG_REG to access TLS segment register.
3913 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
3914 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
3915 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
3916
e299a383
RS
39172013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
3918
3919 PR target/57260
3920 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
3921 sibling calls to functions that would normally be lazily bound,
3922 unless $gp is call-clobbered.
3923
e7208ea3
UB
39242013-05-15 Uros Bizjak <ubizjak@gmail.com>
3925
19db293a 3926 * config/i386/i386.c (ix86_option_override_internal): Update
e7208ea3 3927 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
5d280e2b
UB
3928 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
3929 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
e7208ea3
UB
3930 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
3931 of TARGET_3DNOW.
3932 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
3933
e7413f3d
AS
39342013-05-15 Andreas Schwab <schwab@suse.de>
3935
3936 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
3937 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
3938 third operand.
3939
ad4db775
TJ
39402013-05-15 Teresa Johnson <tejohnson@google.com>
3941
3942 * loop-unroll.c (report_unroll_peel): Check decision before
3943 emitting unroll/peel message.
3944
af205f67
TJ
39452013-05-15 Teresa Johnson <tejohnson@google.com>
3946
3947 * function.h (has_bb_partition): New rtl_data flag.
3948 (bb_reorder_complete): Ditto.
3949 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
3950 instead of flag_reorder_blocks_and_partition.
3951 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
3952 with some enhancements.
3953 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
3954 * bb-reorder.c (connect_traces): Check for has_bb_partition
3955 instead of flag_reorder_blocks_and_partition.
3956 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
3957 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
3958 verify_hot_cold_block_grouping.
3959 (partition_hot_cold_basic_blocks): Set has_bb_partition.
3960
9adcfa3c
RR
39612013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3962
3963 PR target/19599
3964 * config/arm/predicates.md (call_insn_operand): New predicate.
3965 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
3966 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
3967 if insn is not a tail call.
3968 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
3969 registers.
3970 * config/arm/arm.h (enum reg_class): New caller save register class.
3971 (REG_CLASS_NAMES): Likewise.
3972 (REG_CLASS_CONTENTS): Likewise.
3973 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
3974 without decls.
3975
ccb3ad87
RB
39762013-05-15 Richard Biener <rguenther@suse.de>
3977
3978 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
3979 of MSG_OPTIMIZED_LOCATIONS.
3980 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
3981 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
3982 message.
3983 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
3984 of MSG_OPTIMIZED_LOCATIONS.
3985 (execute_vect_slp): Likewise.
3986 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
3987 (vect_create_cond_for_alias_checks): Likewise.
3988 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
3989 (vect_recog_widen_mult_pattern): Likewise.
3990 (vect_recog_widen_sum_pattern): Likewise.
3991 (vect_recog_over_widening_pattern): Likewise.
3992 (vect_recog_widen_shift_pattern): Likewise.
3993 (vect_recog_vector_vector_shift_pattern): Likewise.
3994 (vect_recog_divmod_pattern): Likewise.
3995 (vect_recog_mixed_size_cond_pattern): Likewise.
3996 (vect_recog_bool_pattern): Likewise.
3997 (vect_pattern_recog_1): Likewise.
3998
48b1474e
MJ
39992013-05-15 Martin Jambor <mjambor@suse.cz>
4000
4001 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
4002 non-functions to builtin_unreachable.
4003 * ipa-inline-transform.c (inline_call): Do not assert estimates were
4004 correct when new direct edges were discovered.
4005
9de04252
MJ
40062013-05-15 Martin Jambor <mjambor@suse.cz>
4007
4008 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
4009 header, print symbol order instead of node uid, print more information
4010 about indirect edge targets.
4011 (ipa_make_edge_direct_to_target): Print symbol order instead of node
4012 uids.
4013 (ipa_make_edge_direct_to_target): Likewise.
4014 (remove_described_reference): Likewise.
4015 (propagate_controlled_uses): Likewise.
4016 (ipa_print_node_params): Also print symbol order.
4017 (ipcp_transform_function): Print symbol order instead of node uids.
4018 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
4019 (cgraph_get_create_real_symbol_node): Likewise.
4020 * ipa-cp.c (print_lattice): Likewise.
4021 (print_all_lattices): Likewise.
4022 (determine_versionability): Likewise.
4023 (initialize_node_lattices): Likewise.
4024 (estimate_local_effects): Likewise.
4025 (update_profiling_info): Likewise.
4026 (create_specialized_node): Likewise.
4027 (perhaps_add_new_callers): Likewise.
4028 (decide_about_value): Likewise.
4029 (decide_whether_version_node): Likewise.
4030 (identify_dead_nodes): Likewise.
4031 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
4032 (dump_inline_summary): Likewise.
4033 (estimate_node_size_and_time): Likewise.
4034 (inline_analyze_function): Likewise.
4035 * ipa-inline.c (report_inline_failed_reason): Likewise.
4036 (want_early_inline_function_p): Likewise.
4037 (edge_badness): Likewise.
4038 (update_edge_key): Likewise.
4039 (inline_small_functions): Likewise. Add dumping of order to two other
4040 dumps.
4041 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
4042 instead of node uids.
4043 (propagate_pure_const): Likewise.
4044 (propagate_pure_const): Likewise.
4045 * ipa-utils.c (dump_cgraph_node_set): Likewise.
4046 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
4047 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
4048 of node uids.
4049 * tree-pretty-print.c (dump_function_header): Likewise.
4050 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
4051 Print symbol order instead of node uids.
4052
1dd03b91
AK
40532013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4054
4055 * config/s390/s390.c (s390_register_move_cost): Don't impose the
4056 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
4057
fdf6a7b9
RB
40582013-05-15 Richard Biener <rguenther@suse.de>
4059
4060 PR tree-optimization/57275
4061 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
4062 return value for fail to do runtime alias checks for gather loads.
4063
2d6e4603
JH
40642013-05-15 Jan Hubicka <jh@suse.cz>
4065
4066 PR lto/57038
4067 PR lto/47375
e7208ea3
UB
4068 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
4069 weakrefs are not external.
4070 (lto_symtab_merge_decls): Fix thinko when dealing with
4071 non-lto_symtab decls.
2d6e4603
JH
4072 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
4073 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
4074 * varpool.c (dump_varpool_node): Dump more flags.
4075
83f44b39
GG
40762013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4077
4078 * config/i386/i386.c (processor_alias_table): Add instruction
4079 FSGSBASE for AMD bdver3 architecture.
4080
2e55d062
JJ
40812013-05-14 Jakub Jelinek <jakub@redhat.com>
4082
4083 * tree.c (warn_deprecated_use): Print file:line using locus color.
4084 * diagnostic.c (diagnostic_report_current_module): Print file:line
4085 and file:line:column using locus color.
4086
0bfdb81e
MS
40872013-05-14 Mike Stump <mikestump@comcast.net>
4088
4089 * gdbinit.in: Add __null.
4090
a508ef22
MS
40912013-05-14 Mike Stump <mikestump@comcast.net>
4092
4093 * recog.h: Rename struct recog_data to Recog_data.
4094 * recog.c: Likewise.
4095 * reload.c (can_reload_into): Likewise.
4096 * config/picochip/picochip.c: Likewise.
4097
e7180acb
MS
40982013-05-14 Mike Stump <mikestump@comcast.net>
4099
4100 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
4101
61216c26
SB
41022013-05-14 Steven Bosscher <steven@gcc.gnu.org>
4103
fd6beed4
SB
4104 * resource.h (struct resources): Remove unch_memory member.
4105 (CLEAR_RESOURCE): Don't clear unch_memory.
4106 * resource.c (mark_referenced_resources): Don't set it.
4107 (mark_set_resources): Likewise.
4108 (mark_target_live_regs): Don't clear it.
4109 (init_resource_info): Likewise.
4110 * reorg.c (resource_conflicts_p): Don't compare it.
4111 (redundant_insn): Don't set it.
4112
61216c26
SB
4113 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
4114 Remove prototypes.
4115 * emit-rtl.c (next_label): Remove unused function.
4116 (skip_consecutive_labels, link_cc0_insns): Move to ...
4117 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
4118 only place where these functions are used, and make them static.
4119
418d1b87
MG
41202013-05-14 Marc Glisse <marc.glisse@inria.fr>
4121
4122 * fold-const.c (fold_negate_expr): Handle vectors.
4123 (fold_truth_not_expr): Make it static.
4124 (fold_invert_truthvalue): New static function.
4125 (invert_truthvalue_loc): Handle vectors. Do not call
4126 fold_truth_not_expr directly.
4127 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
4128 <TRUTH_NOT_EXPR>: Do not cast to boolean.
4129 (fold_comparison): Handle vector constants.
4130 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
4131 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
4132 * tree.h (fold_truth_not_expr): Remove declaration.
4133
fc21784d
JG
41342013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
4135
4136 * config/aarch64/aarch64-simd.md
4137 (aarch64_vcond_internal<mode>): Rename to...
4138 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
4139 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
4140 float modes. Clarify all iterator modes.
4141 (vcond<mode><mode>): Use new name for vcond expanders.
4142 (vcond<v_cmp_result><mode>): Likewise.
4143 (vcondu<mode><mode>: Likewise.
4144 * config/aarch64/iterators.md (VDQF_COND): New.
4145
d4c52634
MG
41462013-05-14 Marc Glisse <marc.glisse@inria.fr>
4147
4148 PR bootstrap/57266
4149 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
4150 variable for the shift amount. Check that we shift by non-negative
4151 amounts.
4152
2b261262
CLT
41532013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
4154
4155 PR target/42017
4156 * config/arm/arm.h (EPILOGUE_USES): Only return true
4157 for LR_REGNUM after epilogue_completed.
4158
6e022d7b
JR
41592013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
4160
4161 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
e7208ea3 4162 is error_mark_node.
6e022d7b 4163
56cf7859
RO
41642013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4165
4166 PR target/57261
4167 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
4168 and Solaris 11+/x86 with gld.
4169 * configure: Regenerate.
4170
75776c6d
JJ
41712013-05-14 Jakub Jelinek <jakub@redhat.com>
4172
4173 * expmed.c (expand_shift_1): Canonicalize rotates by
4174 constant bitsize / 2 to bitsize - 1.
7f998021 4175 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
75776c6d
JJ
4176 case ROTATERT>: Likewise.
4177
4178 Revert:
4179 2013-05-10 Jakub Jelinek <jakub@redhat.com>
4180
4181 * config/i386/i386.md (rotateinv): New code attr.
4182 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
4183 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
4184 roll $31, %eax, etc.
4185
df35498a
RB
41862013-05-14 Richard Biener <rguenther@suse.de>
4187
4188 PR middle-end/57235
4189 * tree-eh.c (sink_clobbers): Give up for successors with
4190 multiple predecessors and no virtual uses.
4191
cc6e7ece
EB
41922013-05-14 Eric Botcazou <ebotcazou@adacore.com>
4193
4194 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
4195 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
4196
f778dd4d
JJ
41972013-05-14 Jakub Jelinek <jakub@redhat.com>
4198
4199 PR middle-end/57251
4200 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
4201 the case when both op0 and op1 have VOIDmode.
4202
bad4df9b
KP
42032013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
4204
4205 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
4206 in multiply-accumulate mode.
4207
56f3e9ac
GW
42082013-05-13 Guozhi Wei <carrot@google.com>
4209
4210 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
4211
a3d7ab92
KT
42122013-05-13 Kai Tietz <ktietz@redhat.com>
4213
4214 PR target/56975
4215 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
e7208ea3 4216 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
a3d7ab92 4217 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
e7208ea3 4218 * config/i386/i386.c (ix86_option_override_internal): Likewise.
a3d7ab92
KT
4219 (ix86_expand_prologue): Likewise.
4220 (ix86_expand_split_stack_prologue): Likewise.
4221 (legitimate_pic_address_disp_p): Likewise.
4222 (legitimize_pic_address): Likewise.
4223 (legitimize_tls_address): Likewise.
4224 (legitimize_pe_coff_symbol): Likewise.
4225 (output_pic_addr_const): Likewise.
4226 (construct_plt_address): Likewise.
4227 (ix86_expand_call): Likewise.
4228 (x86_output_mi_thunk): Likewise.
4229 (x86_function_profiler): Likewise.
4230
c59b7e28
SN
42312013-05-13 Sofiane Naci <sofiane.naci@arm.com>
4232
4233 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
4234 similar switch cases.
4235 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
4236 (aarch64_simd_mov_to_<mode>low): Delete.
4237 (aarch64_simd_mov_to_<mode>high): Delete.
4238 (move_lo_quad_<mode>): Add w<-r alternative.
4239 (aarch64_simd_move_hi_quad_<mode>): Likewise.
4240 (aarch64_simd_mov_from_*): Update type attribute.
4241 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
4242 statement.
4243
5f28524a
JH
42442013-05-13 Jan Hubicka <jh@suse.cz>
4245
4246 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
4247 * config/i386/i386.c (ix86_compute_frame_layout,
e7208ea3
UB
4248 ix86_expand_epilogue, emit_i387_cw_initialization,
4249 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
4250 ix86_local_alignment): Fix use of size/speed predicates.
5f28524a 4251
ae6fa899
JJ
42522013-05-13 Jakub Jelinek <jakub@redhat.com>
4253
4254 PR tree-optimization/45216
4255 PR tree-optimization/57157
4256 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
4257 the (-Y) & (B - 1) variant if OP is |.
4258 * expmed.c (expand_shift_1): For rotations by const0_rtx just
4259 return shifted. Use (-op1) & (prec - 1) as other_amount
4260 instead of prec - op1.
4261
4502fe8d
MJ
42622013-05-13 Martin Jambor <mjambor@suse.cz>
4263
4264 PR middle-end/42371
4265 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
4266 (ipa_constant_data): New type.
4267 (ipa_jump_func): Use ipa_constant_data to hold information about
4268 constant jump functions.
4269 (ipa_get_jf_constant): Adjust to jump function type changes.
4270 (ipa_get_jf_constant_rdesc): New function.
4271 (ipa_param_descriptor): New field controlled_uses.
4272 (ipa_get_controlled_uses): New function.
4273 (ipa_set_controlled_uses): Likewise.
4274 * ipa-ref.h (ipa_find_reference): Declare.
4275 * ipa-prop.c (ipa_cst_ref_desc): New type.
4276 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
4277 changes.
4278 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
4279 New parameter cs. Adjust all callers.
4280 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
4281 (remove_described_reference): New function.
4282 (jfunc_rdesc_usable): Likewise.
4283 (try_make_edge_direct_simple_call): Decrement controlled use count,
4284 attempt to remove reference if it hits zero.
4285 (combine_controlled_uses_counters): New function.
4286 (propagate_controlled_uses): Likewise.
4287 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
4288 (ipa_edge_duplication_hook): Duplicate reference descriptions.
4289 (ipa_print_node_params): Print described use counter.
4290 (ipa_write_jump_function): Adjust to jump function type changes.
4291 (ipa_read_jump_function): New parameter CS, pass it to
4292 ipa_set_jf_constant. Adjust caller.
4293 (ipa_write_node_info): Stream controlled use count
4294 (ipa_read_node_info): Likewise.
4295 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
4296 asserting.
4297 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
4298 count. Remove cloning-added reference if it reaches zero.
4299 * ipa-ref.c (ipa_find_reference): New function.
4300
0864bfc2
GG
43012013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4302
e7208ea3 4303 * config/i386/i386.c (processor_target_table): Modified default
0864bfc2
GG
4304 alignment values for AMD BD and BT architectures.
4305
640bfeb2
MG
43062013-05-13 Marc Glisse <marc.glisse@inria.fr>
4307
4308 * tree-vect-generic.c (uniform_vector_p): Move ...
4309 * tree.c (uniform_vector_p): ... here.
4310 * tree.h (uniform_vector_p): Declare it.
4311 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
4312 into a scalar.
4313
3a60f32b
JJ
43142013-05-13 Jakub Jelinek <jakub@redhat.com>
4315
198fe1bf
JJ
4316 PR tree-optimization/57230
4317 * tree-ssa-strlen.c (handle_char_store): Record length for
4318 array store from STRING_CST.
4319
3a60f32b
JJ
4320 PR tree-optimization/57230
4321 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
4322 check.
4323
566be57c
JR
43242013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
4325
4326 * config/epiphany/epiphany.c (epiphany_init): Check size of
4327 NUM_MODES_FOR_MODE_SWITCHING.
4328 (epiphany_expand_prologue):
4329 Remove CONFIG_REGNUM initial value handling code.
4330 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
4331 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
2710a27a 4332 (emit_set_fp_mode, epiphany_mode_after): Likewise.
566be57c
JR
4333 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
4334 Don't return 1 for FP_MODE_NONE.
4335 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
4336 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
4337 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
4338 * config/epiphany/epiphany.md (save_config): New pattern.
4339
0f2c2331
UB
43402013-05-12 Uros Bizjak <ubizjak@gmail.com>
4341
4342 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
4343
5b3f93c7
UB
43442013-05-10 Uros Bizjak <ubizjak@gmail.com>
4345
4346 * config/i386/i386.md (memory): Handle sseishft1.
4347 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
4348 (*vec_extractv2di_1): Ditto.
4349
1f873f0e
VM
43502013-05-10 Vladimir Makarov <vmakarov@redhat.com>
4351
4352 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
4353 saved registers.
4354
341427fa 43552013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
d7de6455
SH
4356
4357 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
4358 Add mthumb/march=armv7-a multilib.
4359 Add mthumb/march=armv7-r multilib.
4360 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
4361
9e69bdde
RC
43622013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
4363
4364 * config/v850/t-rtems: Add more multilibs.
4365
9ff09a22
RB
43662013-05-10 Richard Biener <rguenther@suse.de>
4367
4368 PR tree-optimization/57214
4369 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
4370 not propagate from SSA names that occur in abnormal PHI nodes.
4371
a5e0cd1d
MG
43722013-05-10 Marc Glisse <marc.glisse@inria.fr>
4373
4374 * stor-layout.c (element_precision): New function.
4375 * machmode.h (element_precision): Declare it.
4376 * tree.c (build_minus_one_cst): New function.
4377 (element_precision): Likewise.
4378 * tree.h (build_minus_one_cst): Declare new function.
4379 (element_precision): Likewise.
4380 * fold-const.c (operand_equal_p): Use element_precision.
4381 (fold_binary_loc): Handle vector types.
4382 * convert.c (convert_to_integer): Use element_precision.
4383 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
4384 separately.
4385
cb2558bc
RS
43862013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
4387
4388 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
4389 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
4390 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
4391 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
4392 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
4393 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
4394 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
4395 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
4396 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
4397 (Uuw8): New constraints.
4398 (Usb4): Move into alphabetical order.
4399 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
4400 (sd8_operand, ub8_operand, uw8_operand): New predicates.
4401 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
4402 previously unnamed patterns.
4403 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
4404 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
4405 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
4406 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
4407 of set_attr_alternative/if_then_else. Use extended_mips16 instead
4408 of specific lengths.
4409
cb3b8d33
JJ
44102013-05-10 Jakub Jelinek <jakub@redhat.com>
4411
6f93c008
JJ
4412 * config/i386/i386.md (rotateinv): New code attr.
4413 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
4414 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
4415 roll $31, %eax, etc.
4416
cb3b8d33
JJ
4417 PR tree-optimization/45216
4418 PR tree-optimization/57157
4419 * tree-ssa-forwprop.c (simplify_rotate): New function.
4420 (ssa_forward_propagate_and_combine): Call it.
4421
afb119be
RB
44222013-05-10 Richard Biener <rguenther@suse.de>
4423
4424 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
4425 disable peeling when we version for aliasing.
4426 (vector_alignment_reachable_p): Honor explicit user alignment.
4427 (vect_supportable_dr_alignment): Likewise.
4428 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
4429 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
4430 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
4431 then peeling to arrange for the cost-model check to come first.
4432
01ae4861
AM
44332013-05-10 Alan Modra <amodra@gmail.com>
4434
4435 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
4436 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
4437 * configure: Regenerate.
4438
ebc9a431
AM
44392013-05-10 Alan Modra <amodra@gmail.com>
4440
4441 PR target/55033
4442 * varasm.c (default_elf_select_section): Move !DECL_P check..
4443 (get_named_section): ..to here before calling get_section_name.
4444 Adjust assertion.
4445 (default_section_type_flags): Add DECL_P check.
4446 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
4447 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
4448
d4bca93c
JR
44492013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
4450
4451 * config/epiphany/epiphany.c (epiphany_expand_prologue):
4452 When using gen_stack_adjust_str with a register offset, add a
4453 REG_FRAME_RELATED_EXPR note.
4454
60ca9a65
UB
44552013-05-09 Uros Bizjak <ubizjak@gmail.com>
4456
4457 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
4458 (*vec_extractv4si_zext_mem): Ditto.
4459 (*vec_extractv2di): Add 0->x and x->x alternatives.
4460 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
4461 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
4462
a3409c02
JM
44632013-05-09 Jason Merrill <jason@redhat.com>
4464
0138d6b2
JM
4465 N3639 C++1y VLA support
4466 * gimplify.c (gimplify_vla_decl): Don't touch an existing
4467 DECL_VALUE_EXPR.
4468
a3409c02
JM
4469 * tree.c (build_constructor_va): New.
4470 * tree.h: Declare it.
4471
66e6b990
MJ
44722013-05-09 Martin Jambor <mjambor@suse.cz>
4473
4474 PR lto/57084
4475 * gimple-fold.c (canonicalize_constructor_val): Call
4476 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
4477
64cfa6c0
JH
44782013-05-09 Jan Hubicka <jh@suse.cz>
4479 Richard Biener <rguenther@suse.de>
4480
4481 PR lto/54095
4482 * symtab.c (symtab_make_decl_local): Do not add private names.
4483
c3167b00
JH
44842013-05-09 Jan Hubicka <jh@suse.cz>
4485
4486 PR lto/54095
4487 * symtab.c (insert_to_assembler_name_hash): Handle clones.
4488 (unlink_from_assembler_name_hash): Likewise.
4489 (symtab_prevail_in_asm_name_hash, symtab_register_node,
4490 symtab_unregister_node, symtab_initialize_asm_name_hash,
4491 change_decl_assembler_name): Update.
4492
12dc6974
SN
44932013-05-09 Sofiane Naci <sofiane.naci@arm.com>
4494
4495 * config/aarch64/aarch64.md: New movtf split.
4496 (*movtf_aarch64): Update.
4497 (aarch64_movdi_tilow): Handle TF modes and rename to
4498 aarch64_movdi_<mode>low.
4499 (aarch64_movdi_tihigh): Handle TF modes and rename to
4500 aarch64_movdi_<mode>high
4501 (aarch64_movtihigh_di): Handle TF modes and rename to
4502 aarch64_mov<mode>high_di
4503 (aarch64_movtilow_di): Handle TF modes and rename to
4504 aarch64_mov<mode>low_di
4505 (aarch64_movtilow_tilow): Remove spurious whitespace.
4506 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
4507 splits.
4508 (aarch64_print_operand): Update.
4509
227eb343
AM
45102013-05-09 Alan Modra <amodra@gmail.com>
4511
4512 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
4513 powerpc64le.
4514 * configure: Regenerate.
4515
0b013847
UB
45162013-05-08 Uros Bizjak <ubizjak@gmail.com>
4517
4518 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
4519 splitter preparation statements.
4520 * config/i386/sse.md (*vec_extract* splitters): Ditto.
4521 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
4522 adjust_address_nv.
4523
1dc3d6e9
BS
45242013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4525
4526 * gimple-ssa-strength-reduction.c (count_candidates): Change
4527 return value to int.
4528 (analyze_candidates_and_replace): Change type of length to int.
4529
e61e7d28
UB
45302013-05-08 Uros Bizjak <ubizjak@gmail.com>
4531
4532 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
4533 (*vec_extract<mode>): Use VI12_128 mode iterator.
4534 (*vec_extract<mode>_mem): Ditto.
4535 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
4536 attribute.
4537
4fbfcf44
DN
45382013-05-08 Diego Novillo <dnovillo@google.com>
4539
4540 PR bootstrap/54659
4541
4542 Revert:
4fbfcf44
DN
4543 2012-08-17 Diego Novillo <dnovillo@google.com>
4544
e61e7d28
UB
4545 PR bootstrap/54281
4546 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
4547 * config.in: Regenerate.
4548 * configure: Regenerate.
4549 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4fbfcf44 4550
702d8703
JH
45512013-05-08 Jan Hubicka <jh@suse.cz>
4552
4553 PR lto/54095
4554 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
4555 * cgraph.h (symtab_node_base): Add unique_name.
4556 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
4557 input_overwrite_node, input_varpool_node): Stream unique_name.
4558 * cgraphclones.c (cgraph_create_virtual_clone,
4559 cgraph_function_versioning): Set unique_name.
4560 * ipa.c (function_and_variable_visibility): Set unique_name.
4561
8b28cf47
BS
45622013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4563
4564 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
4565 (alloc_cand_and_find_basis): Restrict conditional candidate
4566 processing to CAND_MULTs.
4567
e86074fd
JH
45682013-05-08 Jan Hubicka <jh@suse.cz>
4569
4570 PR lto/54095
4571 lto-symtab.c (lto_symtab_symbol_p): New function.
4572 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
4573 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
4574 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
4575 Skip static symbols.
4576
44398cbe
PC
45772013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
4578
4579 PR tree-optimization/57200
4580 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
4581 Only call inform if the preceding warning_at returns true.
4582
f6bc1c4a
HS
45832013-05-07 Han Shen <shenhan@google.com>
4584
4585 * cfgexpand.c (record_or_union_type_has_array_p): New function.
4586 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
4587 * common.opt (fstack-protector-strong): New option.
4588 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
4589 * doc/invoke.texi (Optimization Options): Document
4590 "-fstack-protector-strong".
4591 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
4592
4ffecb1f
SB
45932013-05-06 Steven Bosscher <steven@gcc.gnu.org>
4594
4595 * config/mips/mips.c (mips_machine_reorg2): Return 0.
4596
5a107a0f
VM
45972013-05-07 Vladimir Makarov <vmakarov@redhat.com>
4598
4599 * ira.c (update_equiv_regs): Add insn having equiv memory even if
4600 it is not lhs of the insn.
4601 (setup_reg_equiv): Remove insn having equiv memory which it is not
4602 lhs of the insn.
4603 * lra-constraints.c (process_address): Try to improve generation
4604 code for address base + disp.
4605 (lra_constraints): Make correct the code for checking insn setting
4606 up backward equivalence. Remove insn only if it is in the init
4607 insn list.
4608 * lra-eliminations.c (update_reg_eliminate): Change return value.
4609 (lra_eliminate): Use the result.
4610
3f5783ea
UB
46112013-05-07 Uros Bizjak <ubizjak@gmail.com>
4612
4613 * config/i386/sse.md (ssescalarnummask): New mode attribute.
4614 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
4615 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
4616 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
4617 register target operands.
4618 (*vec_extractv8hi_sse2): New pattern.
4619 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
4620 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
4621 (*vec_extract<mode>_mem): New insn and split pattern.
4622
8a5800b8
CL
46232013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
4624
4625 * config/arm/arm.c (arm_asan_shadow_offset): New function.
4626 (TARGET_ASAN_SHADOW_OFFSET): Define.
4627 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
4628 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
4629
7bf55a70
BS
46302013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4631
4632 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
4633 (incr_vec_index): Return -1 if increment not found.
4634 (create_add_on_incoming_edge): Assert if increment not found.
4635 (record_increment): Limit number of increments recorded.
4636 (all_phi_incrs_profitable): Return false if an increment not found.
4637 (replace_profitable_candidates): Don't process increments that were
4638 not recorded.
4639 (analyze_candidates_and_replace): Limit size of incr_vec.
4640
3f8825c0
RB
46412013-05-07 Richard Biener <rguenther@suse.de>
4642
4643 * calls.c (special_function_p): setjmp-like functions are leaf.
4644 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
4645 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
4646
fd4842cd
SN
46472013-05-07 Sofiane Naci <sofiane.naci@arm.com>
4648
4649 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
4650 (aarch64_simd_mov<mode>): New expander.
4651 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
4652 (aarch64_simd_mov_to_<mode>high): Likewise.
4653 (aarch64_simd_mov_from_<mode>low): Likewise.
4654 (aarch64_simd_mov_from_<mode>high): Likewise.
4655 (aarch64_dup_lane<mode>): Update.
4656 (aarch64_dup_lanedi): New instruction pattern.
4657 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
4658 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
4659
a7a7d10e
BS
46602013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4661
4662 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
4663 (replace_mult_candidate): Remove unnecessary argument; remove
4664 unnecessary parameter from call to introduce_cast_before_cand.
4665 (replace_unconditional_candidate): Remove unnecessary parameter
4666 from call to replace_mult_candidate.
4667 (replace_conditional_candidate): Likewise.
4668 (insert_initializers): Use make_temp_ssa_name.
4669 (introduce_cast_before_cand): Remove unnecessary argument; use
4670 make_temp_ssa_name.
4671 (replace_one_candidate): Remove unnecessary argument; remove
4672 unnecessary parameter from calls to introduce_cast_before_cand.
4673 (replace_profitable_candidates): Remove unnecessary parameters
4674 from calls to replace_one_candidate.
4675
29105868
BS
46762013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4677
4678 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
4679 phi def as possibly hiding a basis for a CAND_ADD whose operands
4680 have been commuted in the analysis.
4681 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
4682
4095f9fa
N
46832013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4684
4685 * config/aarch64/aarch64.md
4686 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
4687 shift value between 0-4.
4688
39e843e8
RB
46892013-05-07 Richard Biener <rguenther@suse.de>
4690
4691 * double-int.h (rshift): New overload.
4692 * double-int.c (rshift): New function.
4693 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
4694 (create_reference_ops_from_ref): Remove.
4695 (vn_reference_insert): Use shared ops for constructing the
4696 reference and copy it.
4697
0a1a83cb
RB
46982013-05-07 Richard Biener <rguenther@suse.de>
4699
4700 PR middle-end/57190
4701 * tree-eh.c (sink_clobbers): Properly propagate
4702 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
4703
43303d6f
JJ
47042013-05-07 Jakub Jelinek <jakub@redhat.com>
4705
ba7e83f8
JJ
4706 PR tree-optimization/57149
4707 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
4708 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
4709 collect_phi_def_edges, execute_late_warn_uninitialized): Use
4710 uninit_undefined_value_p instead of ssa_undefined_value_p.
4711
43303d6f
JJ
4712 PR debug/57184
4713 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
4714 for modifier == EXPAND_INITIALIZER.
4715
14523c25
AB
47162013-05-07 Anton Blanchard <anton@samba.org>
4717
4718 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
4719 for powerpc64 little endian.
4720 * configure: Regenerate.
4721
cb7c8be9
GS
47222013-05-06 Graham Stott <grahams@btinternet.com>
4723
4724 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
4725 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
4726 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
4727 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
4728
47292013-05-06 Graham Stott <grahams@btinternet.com>
a8fd4225
GS
4730
4731 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
4732 codes which allow non-lvalues.
4733
9a0ee7b0
MG
47342013-05-06 Marc Glisse <marc.glisse@inria.fr>
4735
4736 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
4737 components are all 1s.
4738 (integer_minus_onep): New function.
4739 * tree.h (integer_minus_onep): Declare it.
4740 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
4741 integer_minus_onep instead of integer_all_onesp.
4742
f2c17ea9
OE
47432013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
4744
4745 PR target/52933
4746 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
4747 variations of these patterns.
4748
f75e6a51
UB
47492013-05-06 Uros Bizjak <ubizjak@gmail.com>
4750
4751 * config/i386/i386.md (isa): Add x64_sse4 member.
4752 (enabled): Handle x64_sse4.
4753 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
4754 instruction for 64bit SSE4_1 targets. Update insn attributes.
4755 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
4756 instruction for SSE4_1 targets. Update insn attributes.
4757 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
4758 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
4759 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
4760 const_1 selector.
4761 (*vec_extractv4si): Rename from *sse4_1_pextrd.
4762 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
4763 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
4764
a986d468
OE
47652013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
4766
4767 PR target/57108
4768 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
4769
382522cb
MK
47702013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
4771
4772 * final.c (do_assembler_dialects): Don't handle curly braces and
4773 vertical bar escaped by % as dialect delimiters.
4774 (output_asm_insn): Print curly braces and vertical bar if escaped
4775 by % and ASSEMBLER_DIALECT defined.
4776 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
4777 * doc/tm.texi: Regenerated.
4778
fb0d5c60
SB
47792013-05-06 Steven Bosscher <steven@gcc.gnu.org>
4780
fb0d5c60
SB
4781 * config/mips/mips.c: Include tree-pass.h.
4782 (mips_reorg): Split in pre- and post-dbr_schedule parts.
4783 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
4784 (pass_mips_machine_reorg2): New machine specific pass.
4785 (insert_pass_mips_machine_reorg2): New pass plugin definition.
4786 (mips_option_override): Register the new pass.
4787 * rtl.h (cleanup_barriers): Remove prototype.
4788 (dbr_schedule): Likewise.
4789 * jump.c (cleanup_barriers): Make static.
4790 * reorg.c (dbr_schedule): Likewise.
4791
aa06a978
RB
47922013-05-06 Richard Biener <rguenther@suse.de>
4793
4794 PR tree-optimization/57185
4795 * tree-parloops.c (add_field_for_reduction): Handle anonymous
4796 SSA names properly.
4797
0b953bec
UB
47982013-05-06 Uros Bizjak <ubizjak@gmail.com>
4799
4800 PR target/57106
4801 * config/i386/i386.c (add_parameter_dependencies): Add dependence
4802 between "first_arg" and "insn", not "last" and "insn".
4803
28708525
WS
48042013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4805
4806 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
4807 (find_candidates_in_block): Re-enable slsr_process_phi.
4808 (create_phi_basis): Fix double counting of candidate adjustment.
4809
0107dca2
RB
48102013-05-06 Richard Biener <rguenther@suse.de>
4811
4812 PR middle-end/57147
4813 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
4814 the edge is also fallthru, preserve it and just clear the
4815 abnormal flag.
4816 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
4817 also complex, preserve that and just clear the fallthru flag.
4818 * tree-inline.c (update_ssa_across_abnormal_edges): Also
4819 update virtual operands.
4820
470d4d13
AM
48212013-05-06 Alan Modra <amodra@gmail.com>
4822
4823 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
4824 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
4825 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
4826 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
4827 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
4828 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
4829
8f1dbf8d
AM
48302013-05-06 Alan Modra <amodra@gmail.com>
4831
4832 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
4833 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
4834 (DEFAULT_ASM_ENDIAN): Define.
4835 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
4836 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
4837 Update -K PIC clause from sysv4.h.
4838 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
4839 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
4840
54890767
AM
48412013-05-06 Alan Modra <amodra@gmail.com>
4842
4843 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
4844 twice for little-endian.
4845 (ashrdi3_no_power, ashrdi3): Support little-endian.
4846
2353515d
OE
48472013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
4848
4849 PR target/55303
4850 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
4851 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
4852 related expanders.
4853 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
4854 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
4855 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
4856 New predicates.
4857
33e67557
SB
48582013-05-05 Steven Bosscher <steven@gcc.gnu.org>
4859 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4860
4861 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
4862 * config/pa/pa.opt: Make mbig-switch a no-op.
4863 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
4864 (CASE_VECTOR_MODE): Always return SImode.
4865 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
4866 for the !TARGET_BIG_SWITCH case.
4867 * config/pa/pa-linux.h: Likewise.
4868 * config/pa/pa-openbsd.h: Likewise.
4869 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
4870 * config/pa/pa.md (short_jump): Remove define_insn.
4871 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
4872 (casesi0): Remove define_insn.
4873 (type): Remove btable_branch.
4874 (pa_combine_type): Likewise.
4875 (in_nullified_branch_delay): Likewise.
4876 (in_call_delay): Likewise.
4877 (define_delay): Likewise.
4878 (define_insn_reservation "Z3"): Likewise.
4879 (define_insn_reservation "Z4"): Likewise.
4880 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
4881 (pa_adjust_insn_length): Remove adjustment for btable branches.
4882 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
4883 and mno-big-switch
4884
3095685e
UB
48852013-05-05 Uros Bizjak <ubizjak@gmail.com>
4886
4887 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
4888 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
4889 Add m->r,x alternatives.
4890 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
4891 splitters using SWI48x mode iterator.
4892 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
4893 TARGET_64BIT. Add m->x alternative.
4894 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
4895 Add o->x alternative. Enable for TARGET_SSE.
4896 (sse_storeq): Remove expander.
4897 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
4898 with memory input operand.
4899 (*vec_extractv2di_1 splitter): New.
4900 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
4901 * config/i386/i386.md (ssevecmodelower): New mode attribute.
4902
4b36ae28
SB
49032013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
4904
4905 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
4906 (INT_LOWPART): Delete.
4907 (extract_MB): Adjust.
4908 (extract_ME): Adjust.
4909 (print_operand): Adjust.
4910
da226db2
SB
49112013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
4912
4913 * config/rs6000/predicates.md (reg_or_add_cint_operand,
4914 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
4915 (reg_or_logical_cint_operand, easy_fp_constant,
4916 logical_const_operand): Delete "CONST_DOUBLE" case.
4917 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
4918 "HOST_BITS_PER_WIDE_INT == 64" test.
3095685e 4919 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
da226db2
SB
4920 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
4921 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
4922 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
4923 test.
4924 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
4925 CONST_DOUBLE DImode/VOIDmode case.
4926 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
4927 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
4928 CONST_DOUBLE VOIDmode case.
4929 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
4930 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
4931 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
4932 Delete CONST_DOUBLE case.
4933 (splitters for mov FMOVE64 const_double): Delete
4934 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
4935 "HOST_BITS_PER_WIDE_INT >= 64" test.
4936 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
4937 case.
4938 (mov DI const_double): Delete.
4939
40de22d6
JJ
49402013-05-04 Jakub Jelinek <jakub@redhat.com>
4941
4942 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
4943 on op shows all bits zero in mode of a lowpart subreg, return zero.
4944
5ec6aff2
MM
49452013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
4946
4947 PR target/57150
4948 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
4949 to save TFmode registers and DImode to save TImode registers for
4950 caller save operations.
4951 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
4952 mark being partially clobbered since they only use the first
4953 double word.
4954
4955 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
4956 and TDmode only use the upper 64-bits of each VSX register.
4957
2cefad90
BS
49582013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4959
4960 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
4961 (find_candidates_in_block): Disable slsr_process_phi.
4962
d6d7eee1
GW
49632013-05-03 Guozhi Wei <carrot@google.com>
4964
4965 * coverage.c (coverage_obj_init): Move the construction of gcov
3095685e
UB
4966 constructor to ...
4967 (build_init_ctor): ... here.
d6d7eee1 4968
9b92d12b
BS
49692013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4970
4971 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
4972 (slsr_cand_d): Redefine def_phi.
4973 (stride_status, phi_adjust_status, count_phis_status): New enums.
4974 (find_phi_def): New.
4975 (find_basis_for_base_expr): New.
4976 (find_basis_for_candidate): Handle hidden bases.
4977 (alloc_cand_and_find_basis): Handle phi candidates.
4978 (slsr_process_phi): New.
4979 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
4980 (create_mul_imm_cand): Likewise.
4981 (create_add_ssa_cand): Exclude phi base candidates.
4982 (create_add_imm_cand): Likewise.
4983 (slsr_process_cast): Likewise.
4984 (slsr_process_copy): Likewise.
4985 (find_candidates_in_block): Handle phi candidates.
4986 (dump_candidate): Likewise.
4987 (unconditional_cands): Delete.
4988 (unconditional_cands_with_known_stride_p): Delete.
4989 (phi_dependent_cand_p): New.
4990 (cand_increment): Handle phi-dependent candidates.
4991 (replace_dependent): Delete.
4992 (replace_mult_candidate): New.
4993 (replace_unconditional_candidate): New.
4994 (incr_vec_index): Move to avoid forward reference.
4995 (create_add_on_incoming_edge): New.
4996 (create_phi_basis): New.
4997 (replace_dependents): Delete.
4998 (replace_conditional_candidate): New.
4999 (phi_add_costs): New.
5000 (replace_uncond_cands_and_profitable_phis): New.
5001 (record_increment): Handle phi adjustments.
5002 (record_phi_increments): New.
5003 (record_increments): Handle phi adjustments.
5004 (phi_incr_cost): New.
5005 (lowest_cost_path): Handle phis.
5006 (total_savings): Likewise.
5007 (analyze_increments): Likewise.
5008 (ncd_with_phi): New.
5009 (ncd_of_cand_and_phis): New.
5010 (nearest_common_dominator_for_cands): Handle phi increments.
5011 (all_phi_incrs_profitable): New.
5012 (replace_profitable_candidates): Handle phi-dependent candidates.
5013 (analyze_candidates_and_replace): Likewise.
5014
68f073d4
TJ
50152013-05-03 Teresa Johnson <tejohnson@google.com>
5016
5017 PR bootstrap/57154
5018 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
5019 do not exceed REG_BR_PROB_BASE.
5020
a4ee7cb9
JL
50212013-05-03 Jeff Law <law@redhat.com>
5022
ade67f70 5023 PR tree-optimization/57144
a4ee7cb9
JL
5024 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
5025 operand of the condition will bit into the new type when eliminating
5026 a cast feeding a condition.
5027
47954c4e
JJ
50282013-05-03 Jakub Jelinek <jakub@redhat.com>
5029
5030 PR rtl-optimization/57130
3095685e
UB
5031 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
5032 of COMPARE as in_code to the recursive call if needed.
47954c4e 5033
3c21604f
UB
50342013-05-03 Uros Bizjak <ubizjak@gmail.com>
5035
5036 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
5037 (enabled): Handle new members.
5038 * config/i386/sse.md (*vec_concatv2si): Merge from
5039 *vec_concatv2si_sse2 and vec_concatv2si_sse.
5040 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
5041
95c03b36
JR
50422013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
5043
5044 PR tree-optimization/57027
5045 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
5046 for fnms opportunity, check we got the prerequisite kind
5047 of tree / gimple before using accessor functions.
5048
07bfc9ec
RB
50492013-05-03 Richard Biener <rguenther@suse.de>
5050
5051 * double-int.h (lshift): New overload without precision
5052 and arith argument.
5053 (operator *=, operator +=, operator -=): Move ...
5054 * double-int.c (operator *=, operator +=, operator -=): ... here
5055 and implement more efficiently.
5056 (mul_double_with_sign): Remove.
5057 (lshift_double): Adjust to take unsinged shift argument, push
5058 dispatching code to callers.
5059 (mul_double_wide_with_sign): Add early out for callers that
5060 are not interested in high parts or overflow.
5061 (lshift): New function.
5062 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
5063 dispatch code here.
5064 (lrotate, rrotate): Use logical shifts.
5065 * expr.c (get_inner_reference): Use lshift.
5066 * fixed-value.c (do_fixed_divide): Likewise.
5067 * tree-dfa.c (get_ref_base_and_extent): Likewise.
5068 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
5069 (indirect_refs_may_alias_p): Likewise.
5070 (stmt_kills_ref_p_1): Likewise.
5071
7769bb64
VP
50722013-05-03 Vidya Praveen <vidyapraveen@arm.com>
5073
5074 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
5075
1d0c8e5c
VP
50762013-05-03 Vidya Praveen <vidyapraveen@arm.com>
5077
5078 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
5079 scalar form of FABD instruction.
5080
f15feaf9
VM
50812013-05-02 Vladimir Makarov <vmakarov@redhat.com>
5082
5083 * lra-constraints.c (process_alt_operands): Add checking alt
5084 number to choose the best alternative.
5085
d90e76d4
RB
50862013-05-02 Richard Biener <rguenther@suse.de>
5087
5088 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
5089 bitmap and its handling.
5090 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
5091
9f8e7a96
RB
50922013-05-02 Richard Biener <rguenther@suse.de>
5093
5094 PR middle-end/57140
5095 * tree-inline.c (copy_loops): Properly handle removed loops.
5096 (copy_cfg_body): Mark destination loops for fixup if source
5097 loops needed fixup.
5098
f3a81b39
GY
50992013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
5100
5101 PR target/56732
5102 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
5103 generating simple_return for naked functions.
5104
7b920a9a
MJ
51052013-05-02 Martin Jambor <mjambor@suse.cz>
5106
5107 PR middle-end/56988
5108 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
5109 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
5110 flags match.
5111 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
5112 ipa_agg_replacement_value structures.
5113 (known_aggs_to_agg_replacement_list): Likewise.
5114 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
5115 (read_agg_replacement_chain): Likewise.
5116 (ipcp_transform_function): Also check that by_ref flags match.
5117
2c41c19d
RB
51182013-05-02 Richard Biener <rguenther@suse.de>
5119
5120 * graphds.h (struct graph): Add obstack member.
5121 * graphds.c (new_graph): Initialize obstack and allocate
5122 vertices from it.
5123 (add_edge): Allocate edge from the obstack.
3c21604f 5124 (free_graph): Free the obstack instead of all edges and vertices.
2c41c19d 5125
8b47039c
TJ
51262013-05-02 Teresa Johnson <tejohnson@google.com>
5127
5128 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
5129 divides.
5130 * cfg.c (update_bb_profile_for_threading): Ditto.
5131 * tree-inline.c (copy_bb): Ditto.
5132 (copy_edges_for_bb): Ditto.
5133 (initialize_cfun): Ditto.
5134 (copy_cfg_body): Ditto.
5135 (expand_call_inline): Ditto.
5136 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
5137 (estimate_node_size_and_time): Ditto.
5138 (inline_merge_summary): Ditto.
5139 * cgraphclones.c (cgraph_clone_edge): Ditto.
5140 (cgraph_clone_node): Ditto.
5141 * sched-rgn.c (compute_dom_prob_ps): Ditto.
5142 (compute_trg_info): Ditto.
5143
da65928c
IB
51442013-05-02 Ian Bolton <ian.bolton@arm.com>
5145
5146 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
5147 S reg when fp attribute set.
5148 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
5149
add3c965
IB
51502013-05-02 Ian Bolton <ian.bolton@arm.com>
5151
5152 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
5153 New pattern.
5154 (*and_one_cmplsi3_compare0_uxtw): Likewise.
5155 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
5156 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
5157
fdd43ac4
RB
51582013-05-02 Richard Biener <rguenther@suse.de>
5159
5160 * tree-scalar-evolution.c (scev_info_hasher): Remove.
5161 (struct instantiate_cache_entry): New type.
5162 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
5163 (struct instantiate_cache_type): New type.
5164 (set_instantiated_value, get_instantiated_value): Remove.
5165 (get_instantiated_value_entry): New function.
5166 (instantiate_scev_name): Use the new cache and adjust.
5167 (instantiate_scev_poly): Adjust.
5168 (instantiate_scev_binary): Likewise.
5169 (instantiate_array_ref): Likewise.
5170 (instantiate_scev_convert): Likewise.
5171 (instantiate_scev_not): Likewise.
5172 (instantiate_scev_3): Likewise.
5173 (instantiate_scev_2): Likewise.
5174 (instantiate_scev_r): Likewise.
5175 (instantiate_scev): Likewise.
5176 (resolve_mixers): Likewise.
5177
36ff9dfb
VM
51782013-05-01 Vladimir Makarov <vmakarov@redhat.com>
5179
5180 PR target/57091
5181 * lra-constraints.c (best_small_class_operands_num): Remove.
5182 (process_alt_operands): Remove small_class_operands_num. Take
5183 small classes operands into losers and only if the operand is not
5184 matched. Modify debugging output.
5185 (curr_insn_transform): Remove best_small_class_operands_num.
5186 Print insn name.
5187
36054fab
JG
51882013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5189
5190 * config/aarch64/aarch64-builtins.c
5191 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
5192 * config/aarch64/aarch64-simd-builtins.def
5193 (reduc_splus_): Add new modes.
5194 (reduc_uplus_): New.
5195 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
5196 (reduc_uplus_v4sf): Likewise.
5197 (reduc_splus_v4sf): Likewise.
5198 (aarch64_addv<mode>): Likewise.
5199 (reduc_uplus_<mode>): Likewise.
5200 (reduc_splus_<mode>): Likewise.
5201 (aarch64_addvv2di): Likewise.
5202 (reduc_uplus_v2di): Likewise.
5203 (reduc_splus_v2di): Likewise.
5204 (aarch64_addvv2si): Likewise.
5205 (reduc_uplus_v2si): Likewise.
5206 (reduc_splus_v2si): Likewise.
5207 (reduc_<sur>plus_<mode>): New.
5208 (reduc_<sur>plus_v2di): Likewise.
5209 (reduc_<sur>plus_v2si): Likewise.
5210 (reduc_<sur>plus_v4sf): Likewise.
5211 (aarch64_addpv4sf): Likewise.
5212 * config/aarch64/arm_neon.h
5213 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
5214 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
5215 add UNSPEC_SADDV, UNSPEC_UADDV.
5216 (SUADDV): New.
5217 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
5218
6dce23a8
JG
52192013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5220
5221 * config/aarch64/arm_neon.h
5222 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
5223
1598945b
JG
52242013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5225
5226 * config/aarch64/aarch64-builtins
5227 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
5228
998eaf97
JG
52292013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5230
5231 * config/aarch64/aarch64-simd-builtins.def
5232 (reduc_smax_): New.
5233 (reduc_smin_): Likewise.
5234 (reduc_umax_): Likewise.
5235 (reduc_umin_): Likewise.
5236 (reduc_smax_nan_): Likewise.
5237 (reduc_smin_nan_): Likewise.
5238 (fmax): Remove.
5239 (fmin): Likewise.
5240 (smax): Update for V2SF, V4SF and V2DF modes.
5241 (smin): Likewise.
5242 (smax_nan): New.
5243 (smin_nan): Likewise.
5244 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
5245 (<su><maxmin><mode>3): ...This, refactor.
5246 (s<maxmin><mode>3): New.
5247 (<maxmin_uns><mode>3): Likewise.
5248 (reduc_<maxmin_uns>_<mode>): Refactor.
5249 (reduc_<maxmin_uns>_v4sf): Likewise.
5250 (reduc_<maxmin_uns>_v2si): Likewise.
5251 (aarch64_<fmaxmin><mode>: Remove.
5252 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
5253 new builtin names.
5254 (vmin<q>_f<32,64>): Likewise.
5255 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
5256 (FMAXMIN): New.
5257 (su): Add mappings for smax, smin, umax, umin.
5258 (maxmin): New.
5259 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
5260 (FMAXMIN): Rename as...
5261 (FMAXMIN_UNS): ...This.
5262 (maxminv): Remove.
5263 (fmaxminv): Likewise.
5264 (fmaxmin): Likewise.
5265 (maxmin_uns): New.
5266 (maxmin_uns_op): Likewise.
5267
bd11644e
JG
52682013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5269
5270 * config/aarch64/arm_neon.h
5271 (vac<ge, gt><sd>_f<32, 64>): Rename to...
5272 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
5273 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
5274
75dd5ace
JG
52752013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5276
5277 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
5278 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
5279
7c19979f
JG
52802013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5281
5282 * config/aarch64/aarch64-simd.md
5283 (vcond<mode>_internal): Handle special cases for constant masks.
5284 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
5285 (vcondu<mode><mode>): Likewise.
5286 (vcond<v_cmp_result><mode>): New.
5287
bb60efd9
JG
52882013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5289
5290 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
5291 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
5292 * config/aarch64/aarch64-simd-builtins.def
5293 (cmeq): Update to BUILTIN_VALLDI.
5294 (cmgt): Likewise.
5295 (cmge): Likewise.
5296 (cmle): Likewise.
5297 (cmlt): Likewise.
5298 * config/aarch64/arm_neon.h
5299 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
5300 to builtins or C as appropriate.
5301
889b9412
JG
53022013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5303
5304 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
5305 (cmgeu): ...This.
5306 (cmhi): Rename to...
5307 (cmgtu): ...This.
5308 * config/aarch64/aarch64-simd.md
5309 (simd_mode): Add SF.
5310 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
5311 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
5312 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
5313 (cstore<mode>_neg): ...This.
5314 * config/aarch64/iterators.md
5315 (VALLF): new.
5316 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
5317 (COMPARISONS): New.
5318 (UCOMPARISONS): Likewise.
5319 (optab): Add missing comparisons.
5320 (n_optab): New.
5321 (cmp_1): Likewise.
5322 (cmp_2): Likewise.
5323 (CMP): Likewise.
5324 (cmp): Remove.
5325 (VCMP_S): Likewise.
5326 (VCMP_U): Likewise.
5327 (V_cmp_result): Add DF, SF modes.
5328 (v_cmp_result): Likewise.
5329 (v): Likewise.
5330 (vmtype): Likewise.
5331 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
5332
0a7dbb76
GY
53332013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
5334
5335 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
5336 define_insn to define_insn_and_split.
5337 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
5338 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
5339 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
5340 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
5341 (thumb2_negscc): Likewise.
5342
fb614ca6
GY
53432013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
5344
5345 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
5346
9e64a0bf
GY
53472013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
5348
5349 * config/arm/thumb2.md: Remove trailing whitespaces.
5350
d6b28156
RS
53512013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
5352
5353 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
5354 Use gen_int_mode rather than GEN_INT.
5355
f91674c3
L
53562013-04-30 H.J. Lu <hongjiu.lu@intel.com>
5357
b0dec607 5358 * value-prof.c (stream_in_histogram_value): Remove the strayed
f91674c3
L
5359 debug_gimple_stmt.
5360
3551257c
RB
53612013-04-30 Richard Biener <rguenther@suse.de>
5362
5363 PR middle-end/57122
3c21604f 5364 * cfghooks.c (split_edge): Properly check for the loop latch edge.
3551257c 5365
4c1aff1c
RB
53662013-04-30 Richard Biener <rguenther@suse.de>
5367
5368 PR middle-end/57107
5369 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
5370
54b8379a
AB
53712013-04-30 Andrey Belevantsev <abel@ispras.ru>
5372
5373 PR rtl-optimization/56957
5374 PR rtl-optimization/57105
54b8379a
AB
5375 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
5376 variable. Use just INSN_UID for determining whether an insn
5377 should be only disconnected from the insn stream.
5378 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
5379
abc27962
JJ
53802013-04-30 Jakub Jelinek <jakub@redhat.com>
5381
5382 PR tree-optimization/57104
5383 * tsan.c (instrument_expr): Don't instrument accesses to
5384 DECL_HARD_REGISTER VAR_DECLs.
5385
0fc822d0
RB
53862013-04-30 Richard Biener <rguenther@suse.de>
5387
5388 * function.h (loops_for_fn): New inline function.
5389 (set_loops_for_fn): Likewise.
5390 * cfgloop.h (place_new_loop): Add struct function parameter.
5391 (get_loop): Likewise.
5392 (get_loops): Likewise.
5393 (number_of_loops): Likewise.
5394 (fel_next): Adjust.
5395 (fel_init): Likewise.
5396 * cfg.c (get_loop_copy): Adjust.
5397 * cfgloop.c (flow_loops_dump): Likewise.
5398 (record_loop_exits): Likewise.
5399 (verify_loop_structure): Likewise.
5400 * cfgloopanal.c (mark_irreducible_loops): Likewise.
5401 (estimate_reg_pressure_cost): Likewise.
5402 (mark_loop_exit_edges): Likewise.
5403 * cfgloopmanip.c (place_new_loop): Likewise.
5404 (add_loop): Likewise.
5405 (duplicate_loop): Likewise.
5406 * graph.c (draw_cfg_nodes): Likewise.
5407 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
5408 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
5409 (extract_affine_chrec): Likewise.
5410 (build_scop_iteration_domain): Likewise.
5411 * graphite.c (graphite_initialize): Likewise.
5412 * ira-build.c (create_loop_tree_nodes): Likewise.
5413 (more_one_region_p): Likewise.
5414 (rebuild_regno_allocno_maps): Likewise.
5415 (mark_loops_for_removal): Likewise.
5416 (mark_all_loops_for_removal): Likewise.
5417 (remove_unnecessary_regions): Likewise.
5418 (ira_build): Likewise.
5419 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
5420 * loop-init.c (fix_loop_structure): Likewise.
5421 (gate_rtl_move_loop_invariants): Likewise.
5422 (gate_rtl_unswitch): Likewise.
5423 (gate_rtl_unroll_and_peel_loops): Likewise.
5424 (rtl_doloop): Likewise.
5425 * lto-streamer-in.c (input_cfg): Likewise.
5426 * lto-streamer-out.c (output_cfg): Likewise.
5427 * modulo-sched.c (sms_schedule): Likewise.
5428 * predict.c (tree_estimate_probability): Likewise.
5429 (tree_estimate_probability_driver): Likewise.
5430 (estimate_loops): Likewise.
5431 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
5432 (move_sese_region_to_fn): Likewise.
5433 (debug_loop_num): Likewise.
5434 * tree-chrec.c (chrec_evaluate): Likewise.
5435 (hide_evolution_in_other_loops_than_loop): Likewise.
5436 (chrec_component_in_loop_num): Likewise.
5437 (reset_evolution_in_loop): Likewise.
5438 (evolution_function_is_invariant_rec_p): Likewise.
5439 * tree-if-conv.c (main_tree_if_conversion): Likewise.
5440 * tree-inline.c (copy_loops): Likewise.
5441 (copy_cfg_body): Likewise.
5442 (tree_function_versioning): Likewise.
5443 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
5444 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
5445 Likewise.
5446 (add_to_evolution_1): Likewise.
5447 (scev_const_prop): Likewise.
5448 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
5449 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
5450 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
5451 (tree_ssa_lim_initialize): Likewise.
5452 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
5453 (verify_loop_closed_ssa): Likewise.
5454 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
5455 (tree_ssa_loop_im): Likewise.
5456 (tree_ssa_loop_unswitch): Likewise.
5457 (tree_vectorize): Likewise.
5458 (check_data_deps): Likewise.
5459 (tree_ssa_loop_ivcanon): Likewise.
5460 (tree_ssa_loop_bounds): Likewise.
5461 (tree_complete_unroll): Likewise.
5462 (tree_complete_unroll_inner): Likewise.
5463 (tree_parallelize_loops): Likewise.
5464 (tree_ssa_loop_prefetch): Likewise.
5465 (tree_ssa_loop_ivopts): Likewise.
5466 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
5467 * tree-vectorizer.c (vectorize_loops): Likewise.
5468
37953bd3
MF
54692013-04-29 Mike Frysinger <vapier@gentoo.org>
5470
5471 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
5472 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
5473 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
5474 with EABI_LINK_SPEC.
5475
f9ed28db
UB
54762013-04-29 Uros Bizjak <ubizjak@gmail.com>
5477
5478 PR target/44578
5479 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
5480 alternative.
5481
deca73f5
VM
54822013-04-29 Vladimir Makarov <vmakarov@redhat.com>
5483
5484 PR target/57097
37953bd3 5485 * lra-constraints.c (process_alt_operands): Discourage a bit more
deca73f5
VM
5486 using memory for pseudos. Print cost dump for alternatives.
5487 Modify cost values for conflicts with early clobbers.
5488 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
5489
fdca7d03
UB
54902013-04-29 Uros Bizjak <ubizjak@gmail.com>
5491
5492 PR target/57098
5493 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
5494
0b064172
IB
54952013-04-29 Ian Bolton <ian.bolton@arm.com>
5496
5497 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
5498 from/to S register.
5499 (movdi_aarch64): Support LDR/STR from/to D register.
5500
473cec55
IB
55012013-04-29 Ian Bolton <ian.bolton@arm.com>
5502
5503 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
5504 or higher by default.
5505
a6f30e66
RB
55062013-04-29 Richard Biener <rguenther@suse.de>
5507
5508 PR middle-end/57075
5509 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
5510 even if not adding abnormal edges for calls that can make
5511 abnormal gotos.
5512
0c2b2040
RB
55132013-04-29 Richard Biener <rguenther@suse.de>
5514
5515 PR middle-end/57103
5516 * tree-cfg.c (move_stmt_op): Fix condition under which to update
5517 TREE_BLOCK.
5518 (move_stmt_r): Remove redundant checking.
5519
f41f80f9
TJ
55202013-04-29 Teresa Johnson <tejohnson@google.com>
5521
5522 PR bootstrap/57077
5523 * basic-block.h (apply_scale): New function.
5524 (apply_probability): Use apply_scale.
5525 * gimple-streamer-in.c (input_bb): Ditto.
5526 * lto-streamer-in.c (input_cfg): Ditto.
5527 * lto-cgraph.c (merge_profile_summaries): Ditto.
5528 * tree-optimize.c (execute_fixup_cfg): Ditto.
fdca7d03 5529 * tree-inline.c (copy_bb): Update comment to use apply_scale.
f41f80f9
TJ
5530 (copy_edges_for_bb): Ditto.
5531 (copy_cfg_body): Ditto.
5532
315bbd2e
TV
55332013-04-29 Tom de Vries <tom@codesourcery.com>
5534
5535 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
5536 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
5537 (tail_merge_optimize): Handle current_loops == NULL.
5538
ebbd90d8
JL
55392013-04-26 Jeff Law <law@redhat.com>
5540
5541 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
5542 (simplify_cond_using_ranges): Generalize code to simplify
5543 COND_EXPRs where one argument is a constant and the other
5544 is an SSA_NAME created by an integral type conversion.
5545
8b9b57eb
KT
55462013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5547
5548 * config/arm/arm.md (store_minmaxsi): Use only when
5549 optimize_insn_for_size_p.
5550
9498e5dc
CB
55512013-04-29 Christian Bruel <christian.bruel@st.com>
5552
5553 PR target/57108
5554 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
5555
6093bc06
RB
55562013-04-29 Richard Biener <rguenther@suse.de>
5557
5558 PR middle-end/57089
fdca7d03
UB
5559 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
5560 loop tree make sure to schedule a fixup for the child as well.
6093bc06
RB
5561 (expand_omp_for_generic): Properly add loops.
5562 (expand_omp_for_static_nochunk): Likewise.
5563 (expand_omp_for_static_chunk): Likewise.
5564 (expand_omp_for): For the degenerate case fixup loops.
5565 (expand_omp_sections): Fix default bb placement in loops.
5566 (expand_omp_atomic_pipeline): Properly add loops.
5567
84aacbfd
KT
55682013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5569
5570 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
5571
8dee4479
TV
55722013-04-29 Tom de Vries <tom@codesourcery.com>
5573
5574 * tree-ssa-tail-merge.c: Update header comment.
5575
47934dc4
JG
55762013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5577
5578 * config/aarch64/arm_neon.h
5579 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
5580 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
5581 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
5582 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
5583 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
5584 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
5585 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
5586 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
5587
384be29f
JG
55882013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5589
5590 * config/aarch64/aarch64-simd.md
5591 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
5592 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
5593 fix_trunc, fixuns_trunc.
5594 (ftrunc<VDQF:mode>2): New.
5595 * config/aarch64/iterators.md (optab): Add fix, fixuns.
5596 (fix_trunc_optab): New.
5597
0386b123
JG
55982013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5599
5600 * config/aarch64/aarch64-builtins.c
5601 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
5602 iceilf, lround, iroundf.
5603
00fcb892
UB
56042013-04-29 Uros Bizjak <ubizjak@gmail.com>
5605
5606 PR target/54349
5607 * config/i386/i386.h (enum ix86_tune_indices)
5608 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
5609 New, split from X86_TUNE_INTER_UNIT_MOVES.
5610 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
5611 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
5612 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
5613 (TARGET_INTER_UNIT_MOVES): Remove.
5614 * config/i386/i386.c (initial_ix86_tune_features): Update.
5615 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
5616 (ix86_expand_convert_uns_didf_sse): Use
5617 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
5618 (ix86_expand_vector_init_one_nonzero): Ditto.
5619 (ix86_expand_vector_init_interleave): Ditto.
5620 (inline_secondary_memory_needed): Return true for moves from SSE class
5621 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
5622 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
5623 * config/i386/constraints.md (Yi, Ym): Depend on
5624 TARGET_INTER_UNIT_MOVES_TO_VEC.
5625 (Yj, Yn): New constraints.
5626 * config/i386/i386.md (*movdi_internal): Change constraints of
5627 operand 1 from Yi to Yj and from Ym to Yn.
5628 (*movsi_internal): Ditto.
5629 (*movdf_internal): Ditto.
5630 (*movsf_internal): Ditto.
5631 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
5632 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
5633 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
5634 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
5635 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
5636 * config/i386/sse.md (movdi_to_sse): Ditto.
5637 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
5638 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
5639 TARGET_INTER_UNIT_MOVES.
5640 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
5641 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
5642 instead of TARGET_INTER_UNIT_MOVES.
5643 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
5644 operand 1 from Yi to Yj and from Ym to Yn.
5645
4c871069
JG
56462013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5647
5648 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
5649 (float_truncate_hi_): Likewise.
5650 (float_extend_lo_): Likewise.
5651 (float_truncate_lo_): Likewise.
5652 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
5653 (aarch64_float_extend_lo_v2df): Likewise.
5654 (vec_unpacks_hi_v4sf): Likewise.
5655 (aarch64_float_truncate_lo_v2sf): Likewise.
5656 (aarch64_float_truncate_hi_v4sf): Likewise.
5657 (vec_pack_trunc_v2df): Likewise.
5658 (vec_pack_trunc_df): Likewise.
5659
1709ff9b
JG
56602013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5661
5662 * config/aarch64/aarch64-builtins.c
5663 (aarch64_fold_builtin): Fold float conversions.
5664 * config/aarch64/aarch64-simd-builtins.def
5665 (floatv2si, floatv4si, floatv2di): New.
5666 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
5667 * config/aarch64/aarch64-simd.md
5668 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
5669 * config/aarch64/iterators.md (FLOATUORS): New.
5670 (optab): Add float, floatuns.
5671 (su_optab): Likewise.
5672
ce966824
JG
56732013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5674
5675 * config/aarch64/aarch64-builtins.c
5676 (aarch64_builtin_vectorized_function): Use new names for
5677 fcvt builtins.
5678 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
5679 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
5680 (fcvtzu): Split as...
5681 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
5682 (fcvtas): Split as...
5683 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
5684 (fcvtau): Split as...
5685 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
5686 (fcvtps): Split as...
5687 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
5688 (fcvtpu): Split as...
5689 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
5690 (fcvtms): Split as...
5691 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
5692 (fcvtmu): Split as...
5693 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
5694 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
5695 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
5696 (lfrintnusf, lfrintnudf): Likewise.
5697 * config/aarch64/aarch64-simd.md
5698 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
5699 define_insn.
5700 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
5701 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
5702 (fcvt_pattern): Likewise.
5703
b9de24fe
JG
57042013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5705
5706 * config/aarch64/aarch64-simd.md
5707 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
5708 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
5709
77a205be
JG
57102013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5711
5712 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
5713 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
5714 (vrnd<a,m,n,p>_f32): Implement using builtins.
5715 (vrnd<i,x><q>_f<32, 64>): New.
5716
0659ce6f
JG
57172013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5718
5719 * config/aarch64/aarch64-builtins.c
5720 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
5721 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
5722 (frintz): Rename to...
5723 (btrunc): ...this.
5724 (frintp): Rename to...
5725 (ceil): ...this.
5726 (frintm): Rename to...
5727 (floor): ...this.
5728 (frinti): Rename to...
5729 (nearbyint): ...this.
5730 (frintx): Rename to...
5731 (rint): ...this.
5732 (frinta): Rename to...
5733 (round): ...this.
5734 * config/aarch64/aarch64-simd.md
5735 (aarch64_frint<frint_suffix><mode>): Delete.
5736 (<frint_pattern><mode>2): Convert to insn.
5737 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
5738 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
5739 (frint_pattern): Likewise.
5740 (frint_suffix): Likewise.
5741
ea78906a
RB
57422013-04-29 Richard Biener <rguenther@suse.de>
5743
5744 PR tree-optimization/57081
5745 * loop-init.c: Include tree-flow.h.
5746 (loop_optimizer_finalize): Free number of iteration estimates.
5747 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
5748
baee1763
JJ
57492013-04-29 Jakub Jelinek <jakub@redhat.com>
5750
94dc5332
JJ
5751 PR tree-optimization/57083
5752 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
5753 non-singleton shift count range, zero extend low_bound for uns case.
5754
baee1763
JJ
5755 * config/i386/predicates.md (general_vector_operand): New predicate.
5756 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
5757 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
5758 if they aren't nonimmediate operands. If their original values
5759 satisfy const_vector_equal_evenodd_p, don't shift them.
5760 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
5761 predicates. For the SSE4.1 case force operands[{1,2}] into registers
5762 if not nonimmediate_operand.
5763 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
5764 instead of register_operand.
5765 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
5766
a9073727 57672013-04-28 Eric Botcazou <ebotcazou@adacore.com>
22ad5e0a
EB
5768
5769 * stor-layout.c (finalize_size_functions): Allocate a structure and
5770 reset cfun before dumping the functions.
5771
ba8011e6
JJ
57722013-04-27 Jakub Jelinek <jakub@redhat.com>
5773
d6fde69e
JJ
5774 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
5775
ba8011e6
JJ
5776 PR target/56866
5777 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
5778 use xop_pmacsdqh if uns_p.
5779 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
5780 the immediate rotate count.
5781
2c62cbaa
VM
57822013-04-26 Vladimir Makarov <vmakarov@redhat.com>
5783
5784 * rtl.h (struct rtx_def): Add comment for field jump.
5785 (LRA_SUBREG_P): New macro.
5786 * recog.c (register_operand): Check LRA_SUBREG_P.
5787 * lra.c (lra): Add note at the end of RTL code. Align non-empty
5788 stack frame.
5789 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
5790 (lra_final_code_change): Skip subreg change for operators.
5791 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
5792 if there are no operand changes.
5793 * lra-constraints.c (curr_insn_set): New.
5794 (match_reload): Set LRA_SUBREG_P.
5795 (emit_spill_move): Ditto.
5796 (check_and_process_move): Use curr_insn_set. Process only single
5797 set insns. Don't initialize sec_mem_p and change_p.
5798 (simplify_operand_subreg): Use LRA_SUBREG_P.
5799 (reg_in_class_p): New function.
5800 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
5801 of #ifdef. Add code to remove cycling.
5802 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
5803 non-null disp. Reload inner instead of disp when base and index
5804 are null. Try to put lo_sum into register.
5805 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
5806 (check_and_process_move): Move code for move cost check to
5807 simple_move_p. Remove equiv_substitution.
5808 (simple_move_p): New function.
5809 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
5810 curr_insn_set. Call check_and_process_move only for single set
5811 insns. Use the new function. Move call of check_and_process_move
5812 after operand equiv substitution and address process.
5813
e7d764f3
JJ
58142013-04-26 Jakub Jelinek <jakub@redhat.com>
5815
5816 PR go/57045
5817 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
5818 with nonlocal goto receivers or returns twice calls, ignore
5819 unininitialized values from abnormal edges to nl goto receiver
5820 or returns twice call.
5821
41e10689
JJ
58222013-04-26 Jakub Jelinek <jakub@redhat.com>
5823
5824 PR tree-optimization/57051
5825 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
5826 and VEC_RSHIFT_EXPR if shift count is a multiple of element
5827 bitsize.
5828
d7ed20db
RB
58292013-04-26 Richard Biener <rguenther@suse.de>
5830
5831 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
5832 (expand_omp_taskreg): Likewise. Mark loops for fixup.
5833 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
5834 (fixup_loop_arrays_after_move): New function.
5835 (move_sese_region_to_fn): Properly outline the loop tree parts
5836 of the SESE region.
5837
df93505e
UB
58382013-04-26 Uros Bizjak <ubizjak@gmail.com>
5839
5840 * config/i386/i386.md (type, unit): Fix long lines.
5841
dd366ec3
RB
58422013-04-26 Richard Biener <rguenther@suse.de>
5843
5844 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
5845 (lto-streamer-out.o): Likewise.
5846 * cfgloop.c (init_loops_structure): Export, add struct function
5847 argument and adjust.
5848 (flow_loops_find): Adjust.
5849 * cfgloop.h (enum loop_estimation): Add EST_LAST.
5850 (init_loops_structure): Declare.
5851 * lto-streamer-in.c: Include cfgloop.h.
5852 (input_cfg): Input the loop tree.
5853 * lto-streamer-out.c: Include cfgloop.h.
5854 (output_cfg): Output the loop tree.
5855 (output_struct_function_base): Do not drop PROP_loops.
5856
a9e0d843
RB
58572013-03-26 Richard Biener <rguenther@suse.de>
5858
5859 * tree-cfg.c (execute_build_cfg): Build the loop tree.
5860 (pass_build_cfg): Provide PROP_loops.
5861 (move_sese_region_to_fn): Remove loops that are outlined into fn
5862 for now.
5863 * tree-inline.c: Include cfgloop.h.
5864 (initialize_cfun): Do not drop PROP_loops.
5865 (copy_loops): New function.
5866 (copy_cfg_body): Copy loop structure.
5867 (tree_function_versioning): Initialize destination loop tree.
5868 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
5869 (pass_parallelize_loops): Do IL verification.
5870 * loop-init.c (loop_optimizer_init): Fixup loops if required.
5871 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
5872 the CFG make sure we fixup loops as well.
5873 * tree-ssa-tail-merge.c: Include cfgloop.h.
5874 (replace_block_by): When merging loop latches mark loops for fixup.
5875 * lto-streamer-out.c (output_struct_function_base): Drop
5876 PROP_loops for now.
5877 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
5878 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
5879 * ipa-split.c: Include cfgloop.h.
5880 (split_function): Add the new return block to the loop tree root.
5881 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
5882 whether we have removed the forwarder block.
5883 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
5884 * cfgloop.h (place_new_loop): Declare.
5885 * cfgloopmanip.c (place_new_loop): Export.
5886 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
5887 (tree-switch-conversion.o): Likewise.
5888 (tree-complex.o): Likewise.
5889 (tree-inline.o): Likewise.
5890 (tree-ssa-tailmerge.o): Likewise.
5891 (ipa-split.o): Likewise.
5892 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
5893 (tree-ssa-copy.o): Likewise.
5894 * tree-switch-conversion.c: Include cfgloop.h
5895 (process_switch): If we emit a bit-test cascade, schedule loops
5896 for fixup.
5897 * tree-complex.c: Include cfgloop.h.
5898 (expand_complex_div_wide): Properly add new basic-blocks to loops.
5899 * asan.c: Include cfgloop.h.
5900 (create_cond_insert_point): Properly add new basic-blocks to
5901 loops, schedule loop fixup.
5902 * cfgloop.c (verify_loop_structure): Check that looks are not
5903 marked for fixup.
5904 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
5905 to loops.
5906 (expand_omp_for_generic): Likewise.
5907 (expand_omp_sections): Likewise.
5908 (expand_omp_atomic_pipeline): Schedule loops for fixup.
5909 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
5910 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
5911 is initialized, not when loops are present.
5912 * tree-parloops.c (parallelize_loops): Remove checking here.
5913 * passes.c (init_optimization_passes): Schedule a copy-propagation
5914 pass before complete unrolling of inner loops.
5915
e78e8a0b
JJ
59162013-04-26 Jakub Jelinek <jakub@redhat.com>
5917
a2e836b2
JJ
5918 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
5919 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
5920 (colorize_init): Add argument to _WIN32 version.
5921 * toplev.c: Include diagnostic-color.h.
5922 (process_options): Default to -fdiagnostics-color=auto if
5923 GCC_COLORS env var is in the environment.
5924 * common.opt (fdiagnostics-color=): Add Var and Init.
df93505e
UB
5925 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
5926 env var is in the environment, the default is auto rather than never.
a2e836b2 5927
e78e8a0b
JJ
5928 * diagnostic.h (file_name_as_prefix): Add context argument.
5929 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
5930 the string as locus.
5931 * langhooks.c (lhd_print_error_function): Adjust caller.
5932
013e5ef9
LC
59332013-04-25 Lawrence Crowl <crowl@google.com>
5934
5935 * var-tracking.c (shared_hash_def::htab):
5936 Change type to hash_table. Update dependent calls and types.
5937
4a8fb1a1
LC
59382013-04-25 Lawrence Crowl <crowl@google.com>
5939
5940 * Makefile.in: Update as needed below.
5941
5942 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
5943 Move declaration to after the type's method definitons.
5944
5945 * attribs.c (htab_t scoped_attributes::attribute_hash):
5946 Change type to hash_table. Update dependent calls and types.
5947
5948 * bitmap.c (htab_t bitmap_desc_hash):
5949 Change type to hash_table. Update dependent calls and types.
5950
5951 * cselib.c (htab_t cselib_hash_table):
5952 Change type to hash_table. Update dependent calls and types.
5953
5954 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
5955 (hash_string_slot_node): Move implementation into lto-streamer.h
5956 struct string_slot_hasher.
5957 (eq_string_slot_node): Likewise.
5958
5959 * data-streamer-out.c: Update output_block::string_hash_table
5960 dependent calls and types.
5961
5962 * dwarf2cfi.c (htab_t trace_index):
5963 Change type to hash_table. Update dependent calls and types.
5964
5965 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
5966 Change type to hash_table. Update dependent calls and types.
5967 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
5968 (htab_t optimize_external_refs::map): Likewise.
5969 (htab_t output_comp_unit::extern_map): Likewise.
5970 (htab_t output_comdat_type_unit::extern_map): Likewise.
5971 (htab_t output_macinfo::macinfo_htab): Likewise.
5972 (htab_t optimize_location_lists::htab): Likewise.
5973 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
5974
5975 * except.c (htab_t ehspec_hash_type):
5976 Change type to hash_table. Update dependent calls and types.
5977 (assign_filter_values::ttypes): Likewise.
5978 (assign_filter_values::ehspec): Likewise.
5979 (sjlj_assign_call_site_values::ar_hash): Likewise.
5980 (convert_to_eh_region_ranges::ar_hash): Likewise.
5981
5982 * gcse.c (htab_t pre_ldst_table):
5983 Change type to hash_table. Update dependent calls and types.
5984
5985 * ggc-common.c (htab_t saving_htab):
5986 Change type to hash_table. Update dependent calls and types.
5987 (htab_t loc_hash): Likewise.
5988 (htab_t ptr_hash): Likewise.
5989 (call_count): Rename ggc_call_count.
5990 (call_alloc): Rename ggc_call_alloc.
5991 (loc_descriptor): Rename make_loc_descriptor.
5992 (add_statistics): Rename ggc_add_statistics.
5993
5994 * ggc-common.c (saving_htab):
5995 Change type to hash_table. Update dependent calls and types.
5996
5997 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
5998 (push_gimplify_context): Likewise.
5999 (pop_gimplify_context): Likewise.
6000 (struct gimple_temp_hash_elt): Added.
6001 (struct gimplify_hasher): Likewise.
6002 (struct gimplify_ctx.temp_htab):
6003 Change type to hash_table. Update dependent calls and types.
6004
6005 * gimple-fold.c: Include gimplify-ctx.h.
6006
6007 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
6008 Change type to hash_table. Update dependent calls and types.
6009 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
6010 avoid potential global name collision.
6011
6012 * gimplify.c: Include gimplify-ctx.h.
6013 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
6014 (htab_t gimplify_ctx::temp_htab):
6015 Update dependent calls and types for new type hash_table.
6016 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
6017 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
6018
6019 * gimplify-ctx.h: New.
6020 (struct gimple_temp_hash_elt): Move from gimplify.c.
6021 (class gimplify_hasher): New.
6022 (struct gimplify_ctx): Move from gimple.h.
6023 (htab_t gimplify_ctx::temp_htab):
6024 Change type to hash_table. Update dependent calls and types.
6025
6026 * graphite-clast-to-gimple.c: Include graphite-htab.h.
6027 (htab_t ivs_params::newivs_index):
6028 Change type to hash_table. Update dependent calls and types.
6029 (htab_t ivs_params::params_index): Likewise.
6030 (htab_t print_generated_program::params_index): Likewise.
6031 (htab_t gloog::newivs_index): Likewise.
6032 (htab_t gloog::params_index): Likewise.
6033
6034 * graphite.c: Include graphite-htab.h.
6035 4htab_t graphite_transform_loops::bb_pbb_mapping):
6036 Change type to hash_table. Update dependent calls and types.
6037
6038 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
6039 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
6040 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
6041
6042 * graphite-dependences.c: Include graphite-htab.h.
6043 (loop_is_parallel_p): Change hash table type of parameter.
6044
6045 * graphite-htab.h: New.
6046 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
6047 (extern find_pbb_via_hash): Move from graphite-poly.h.
6048 (extern loop_is_parallel_p): Move from graphite-poly.h.
6049 (extern get_loop_body_pbbs): Move from graphite-poly.h.
6050
6051 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
6052 (extern loop_is_parallel_p): Move to graphite-htab.h.
6053 (extern get_loop_body_pbbs): Move to graphite-htab.h.
6054
6055 * haifa-sched.c (htab_t delay_htab):
6056 Change type to hash_table. Update dependent calls and types.
6057 (htab_t delay_htab_i2): Likewise.
6058
6059 * ira-color.c (htab_t allocno_hard_regs_htab):
6060 Change type to hash_table. Update dependent calls and types.
6061
6062 * ira-costs.c (htab_t cost_classes_htab):
6063 Change type to hash_table. Update dependent calls and types.
6064
6065 * loop-invariant.c (htab_t merge_identical_invariants::eq):
6066 Change type to hash_table. Update dependent calls and types.
6067
6068 * loop-iv.c (htab_t bivs):
6069 Change type to hash_table. Update dependent calls and types.
6070
6071 * loop-unroll.c (htab_t opt_info::insns_to_split):
6072 Change type to hash_table. Update dependent calls and types.
6073 (htab_t opt_info::insns_with_var_to_expand): Likewise.
6074
6075 * lto-streamer.h (struct string_slot): Move from data-streamer.h
6076 (struct string_slot_hasher): New.
6077 (htab_t output_block::string_hash_table):
6078 Change type to hash_table. Update dependent calls and types.
6079
6080 * lto-streamer-in.c (freeing_string_slot_hasher): New.
6081 (htab_t file_name_hash_table):
6082 Change type to hash_table. Update dependent calls and types.
6083
6084 * lto-streamer-out.c: Update output_block::string_hash_table dependent
6085 calls and types.
6086
6087 * lto-streamer.c (htab_t tree_htab):
6088 Change type to hash_table. Update dependent calls and types.
6089
6090 * omp-low.c: Include gimplify-ctx.h.
6091
6092 * passes.c (htab_t name_to_pass_map):
6093 Change type to hash_table. Update dependent calls and types.
6094 (pass_traverse): Rename to passes_pass_traverse.
6095
6096 * plugin.c (htab_t event_tab):
6097 Change type to hash_table. Update dependent calls and types.
6098
6099 * postreload-gcse.c (htab_t expr_table):
6100 Change type to hash_table. Update dependent calls and types.
6101 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
6102
6103 * sese.c (debug_rename_map_1): Make extern.
6104 (htab_t copy_bb_and_scalar_dependences::rename_map):
6105 Change type to hash_table. Update dependent calls and types.
6106
6107 * sese.h (extern debug_rename_map): Move to .c file.
6108
6109 * store-motion.c (htab_t store_motion_mems_table):
6110 Change type to hash_table. Update dependent calls and types.
6111
6112 * trans-mem.c (htab_t tm_new_mem_hash):
6113 Change type to hash_table. Update dependent calls and types.
6114
6115 * tree-browser.c (htab_t TB_up_ht):
6116 Change type to hash_table. Update dependent calls and types.
6117
6118 * tree-cfg.c (htab_t discriminator_per_locus):
6119 Change type to hash_table. Update dependent calls and types.
6120
6121 * tree-complex.c: Include tree-hasher.h
6122 (htab_t complex_variable_components):
6123 Change type to hash_table. Update dependent calls and types.
6124
6125 * tree-eh.c (htab_t finally_tree):
6126 Change type to hash_table. Update dependent calls and types.
6127
6128 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
6129 struct int_tree_hasher.
6130 (extern int_tree_map_eq): Likewise.
6131 (uid_decl_map_hash): Removed.
6132 (extern decl_tree_map_eq): Likewise.
6133
6134 * tree-hasher.h: New.
6135 (struct int_tree_hasher): New.
6136 (typedef int_tree_htab_type): New.
6137
6138 * tree-inline.c: Include gimplify-ctx.h.
6139
6140 * tree-mudflap.c: Include gimplify-ctx.h.
6141
6142 * tree-parloops.c: Include tree-hasher.h.
6143 (htab_t eliminate_local_variables_stmt::decl_address):
6144 Change type to hash_table. Update dependent calls and types.
6145 (htab_t separate_decls_in_region::decl_copies): Likewise.
6146
6147 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
6148 Change type to hash_table. Update dependent calls and types.
6149
6150 * tree-sra.c (candidates):
6151 Change type to hash_table. Update dependent calls and types.
6152
6153 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
6154 in tree-flow.h.
6155 (int_tree_map_hash): Likewise.
6156
6157 * tree-ssa-dom.c (htab_t avail_exprs):
6158 Change type to hash_table. Update dependent calls and types.
6159
6160 * tree-ssa-live.c (var_map_base_init::tree_to_index):
6161 Change type to hash_table. Update dependent calls and types.
6162
6163 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
6164 Change type to hash_table. Update dependent calls and types.
6165
6166 * tree-ssa-phiopt.c (seen_ssa_names):
6167 Change type to hash_table. Update dependent calls and types.
6168
6169 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
6170 Change type to hash_table. Update dependent calls and types.
6171
6172 * tree-ssa-uncprop.c (equiv):
6173 Change type to hash_table. Update dependent calls and types.
6174
c5a44004
JJ
61752013-04-25 Jakub Jelinek <jakub@redhat.com>
6176
6177 PR rtl-optimization/57003
6178 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
6179 call note_stores with kill_clobbered_value callback again after
6180 killing regs_invalidated_by_call.
6181
09962a4a
JG
61822013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
6183
6184 * config/aarch64/aarch64-simd.md
6185 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
6186 (aarch64_simd_bsl<mode>): Likewise.
6187 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
6188
ea28bb0b
MP
61892013-04-25 Marek Polacek <polacek@redhat.com>
6190
6191 PR tree-optimization/57066
3c21604f 6192 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
ea28bb0b 6193
96659611
JG
61942013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
6195
6196 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
6197
9697e620
JG
61982013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
6199
6200 * config/aarch64/aarch64-builtins.c
6201 (aarch64_fold_builtin): New.
6202 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
6203 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
6204 * config/aarch64/aarch64-simd-builtins.def (abs): New.
6205 * config/aarch64/arm_neon.h
6206 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
6207
0ac198d3
JG
62082013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
6209 Tejas Belagod <tejas.belagod@arm.com>
6210
6211 * config/aarch64/aarch64-builtins.c
6212 (aarch64_gimple_fold_builtin): New.
6213 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
6214 * config/aarch64/aarch64-simd-builtins.def (addv): New.
6215 * config/aarch64/aarch64-simd.md (addpv4sf): New.
6216 (addvv4sf): Update.
6217 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
6218
58cff58c
N
62192013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6220
df93505e 6221 * config/aarch64/aarch64.md
58cff58c
N
6222 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
6223
7e0228bf
N
62242013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6225
6226 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
6227 (*ngcsi_uxtw): New pattern.
6228
5819f96f 62292013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3c21604f 6230 Julian Brown <julian@codesourcery.com>
5819f96f
KT
6231
6232 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
6233 (TB_DREG): Add T_V4HF.
6234 (v4hf_UP): New macro.
6235 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
df93505e 6236 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
6237 Handle initialisation of V4HF. Adjust initialisation of reinterpret
6238 built-ins.
df93505e 6239 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
6240 (arm_vector_mode_supported_p): Handle V4HF.
6241 (arm_mangle_map): Handle V4HFmode.
6242 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
6243 * config/arm/arm_neon_builtins.def: Add entries for
6244 vcvtv4hfv4sf, vcvtv4sfv4hf.
6245 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
6246 (neon_vcvtv4hfv4sf): Likewise.
6247 * config/arm/neon-gen.ml: Handle half-precision floating point
6248 features.
6249 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
6250 * config/arm/arm_neon.h: Regenerate.
6251 * config/arm/neon.ml (type elts): Add F16.
6252 (type vectype): Add T_float16x4, T_floatHF.
6253 (type vecmode): Add V4HF.
6254 (type features): Add Requires_FP_bit feature.
6255 (elt_width): Handle F16.
6256 (elt_class): Likewise.
6257 (elt_of_class_width): Likewise.
6258 (mode_of_elt): Refactor.
6259 (type_for_elt): Handle F16, fix error messages.
6260 (vectype_size): Handle T_float16x4.
6261 (vcvt_sh): New function.
6262 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
6263 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
6264 (string_of_mode): Handle V4HF.
6265 * doc/arm-neon-intrinsics.texi: Regenerate.
6266
1ef395e4
JG
62672013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
6268
6269 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
6270 format specifier in 'X' case.
6271
41c34e94
AM
62722013-04-25 Alan Modra <amodra@gmail.com>
6273
6274 PR target/57052
6275 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
6276 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
6277 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
6278 Repeat for many other rotate/shift and mask patterns using subregs.
6279 Name lshiftrt insns.
6280 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
6281 on WORDS_BIG_ENDIAN.
6282
b9a7eb5d
AM
62832013-04-25 Alan Modra <amodra@gmail.com>
6284
6285 * config.gcc: Support little-endian powerpc-linux targets.
6286 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
6287 (LINK_OS_LINUX_SPEC): Define.
6288 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
6289 Preserve MASK_LITTLE_ENDIAN.
6290 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
6291 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
6292 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
6293 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
6294 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
6295 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
6296 Correct fp word order for little-endian. Don't shift toc entries
6297 smaller than a word for little-endian.
6298 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
6299 (bswapdi2 splits): Correct low-part subreg for little-endian.
6300 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
6301 low/high where such is correct only for be.
6302 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
6303 little-endian for -mcall-aixdesc.
6304
87f73374
AM
63052013-04-25 Alan Modra <amodra@gmail.com>
6306
6307 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
6308 replace_equiv_address_nv.
6309
cabf91cd
AM
63102013-04-25 Alan Modra <amodra@gmail.com>
6311
6312 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
6313
0ae24cc8
VM
63142013-04-24 Vladimir Makarov <vmakarov@redhat.com>
6315
6316 Revert:
6317 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
6318 * rtl.h (struct rtx_def): ...
cabf91cd 6319
77bce07c
VM
63202013-04-24 Vladimir Makarov <vmakarov@redhat.com>
6321
6322 PR rtl-optimizations/57046
6323 * lra-constraints (split_reg): Set up lra_risky_transformations_p
6324 for multi-reg splits.
6325
0db63e7f
L
63262013-04-24 H.J. Lu <hongjiu.lu@intel.com>
6327
6328 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
6329
3362b6b6
SA
63302013-04-24 Sterling Augustine <saugustine@google.com>
6331
6332 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
6333 (comp_dir_string, debug_str_dwo_section): New.
6334 (DEBUG_STR_DWO_SECTION): Rename to ...
6335 (DEBUG_DWO_STR_SECTION): ... this.
6336 (DEBUG_NORM_STR_SECTION): Delete.
6337 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
6338 (DEBUG_STR_DWO_SECTION_FLAGS): New.
6339 (find_AT_string): Move most logic to ...
6340 (find_AT_string_in_table): ... here. New.
6341 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
6342 add_skeleton_AT_string. Delete logic.
6343 (output_skeleton_debug_sections): Remove call to
6344 add_top_level_skeleton_die_attrs.
6345 (add_comp_dir_attribute): Move logic to comp_dir_string.
6346 (dwarf2out_init): Initialize debug_str_dwo_section.
6347 (output_indirect_string): Call find_string_form.
6348 (output_indirect_strings): Rewrite.
6349 (prune_unused_types): Empty skeleton_debug_str_hash.
6350 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
6351 (dwarf2out_finish): Call output_indirect_strings.
6352
e93e18e9
PC
63532013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6354
6355 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
6356
f6ce35ac
VM
63572013-04-24 Vladimir Makarov <vmakarov@redhat.com>
6358
cabf91cd 6359 * rtl.h (struct rtx_def): Add comment for field jump.
f6ce35ac
VM
6360 (LRA_SUBREG_P): New macro.
6361 * recog.c (register_operand): Check LRA_SUBREG_P.
6362 * lra.c (lra): Add note at the end of RTL code. Align non-empty
6363 stack frame.
6364 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
6365 (lra_final_code_change): Skip subreg change for operators.
6366 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
6367 if there are no operand changes.
6368 * lra-constraints.c (curr_insn_set): New.
6369 (match_reload): Set LRA_SUBREG_P.
6370 (emit_spill_move): Ditto.
6371 (check_and_process_move): Use curr_insn_set. Process only single
6372 set insns. Don't initialize sec_mem_p and change_p.
6373 (simplify_operand_subreg): Use LRA_SUBREG_P.
6374 (reg_in_class_p): New function.
6375 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
6376 of #ifdef. Add code to remove cycling.
6377 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
6378 non-null disp. Reload inner instead of disp when base and index
6379 are null. Try to put lo_sum into register.
6380 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
cabf91cd 6381 (check_and_process_move): Move code for move cost check to
f6ce35ac 6382 simple_move_p. Remove equiv_substitution.
cabf91cd 6383 (simple_move_p): New function.
f6ce35ac
VM
6384 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
6385 curr_insn_set. Call check_and_process_move only for single set
6386 insns. Use the new function. Move call of check_and_process_move
6387 after operand equiv substitution and address process.
6388
38047d90
JG
63892013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
6390
6391 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
6392 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
6393 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
6394
13f39b2e
PC
63952013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6396
6397 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
6398
97c116dc
MP
63992013-04-24 Marek Polacek <polacek@redhat.com>
6400
6401 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
6402 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
6403 (select_loops_exit_conditions): Likewise.
6404 (number_of_iterations_for_all_loops): Likewise.
6405 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
6406 (scev_analysis): Likewise.
6407
83082391
CM
64082013-04-02 Catherine Moore <clm@codesourcery.com>
6409 Chao-ying Fu <fu@mips.com>
6410
cabf91cd
AM
6411 * config/mips/micromips.md (jraddiusp): New pattern.
6412 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
6413 instruction if possible.
83082391 6414
19e34aa2
AM
64152013-04-24 Alan Modra <amodra@gmail.com>
6416
6417 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
6418
fdb6603c
JB
64192013-04-24 Julian Brown <julian@codesourcery.com>
6420 Chung-Lin Tang <cltang@codesourcery.com>
6421
6422 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
df93505e
UB
6423 dependency behavior in enumeration type DIE generation. Add TODO note
6424 to comments about future DW_FORM_sdata/udata re-work of related code.
fdb6603c 6425
bf190e8d
LC
64262013-04-23 Lawrence Crowl <crowl@google.com>
6427
6428 * Makefile.in: Update as needed below.
6429
6430 * hash-table.h (class hash_table):
6431 Correct many methods with parameter types compare_type to the correct
6432 value_type. (Correct code was unlikely to notice the change.)
6433 (hash_table::elements_with_deleted) New.
6434 (class hashtable::iterator): New.
6435 (hashtable::begin()): New.
6436 (hashtable::end()): New.
6437 (FOR_EACH_HASH_TABLE_ELEMENT): New.
6438
6439 * statistics.c (statistics_hashes):
6440 Change type to hash_table. Update dependent calls and types.
6441
6442 * tree-into-ssa.c (var_infos):
6443 Change type to hash_table. Update dependent calls and types.
6444
6445 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
6446 Change type to hash_table. Update dependent calls and types.
6447
6448 * tree-ssa-loop-im.c (struct mem_ref.refs):
6449 Change type to hash_table. Update dependent calls and types.
6450
6451 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
6452 Change type to hash_table. Update dependent calls and types.
6453
6454 * tree-ssa-sccvn.c (vn_tables_s::nary):
6455 Change type to hash_table. Update dependent calls and types.
6456 (vn_tables_s::phis): Likewise.
6457 (vn_tables_s::references): Likewise.
6458
6459 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
6460 (vn_reference_eq): Update parameter and return types.
6461
6462 * tree-ssa-structalias.c (pointer_equiv_class_table):
6463 Change type to hash_table. Update dependent calls and types.
6464 (location_equiv_class_table): Likewise.
6465
6466 * tree-vect-data-refs.c: Consequential changes for making
6467 peeling a hash_table.
6468
6469 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
6470 (destroy_loop_vec_info): Dependent hash_table update.
6471
6472 * tree-vectorizer.h (peeling_htab):
6473 Change type to hash_table. Update dependent calls and types.
6474
d70a81dd
SC
64752013-04-23 Shiva Chen <shiva0217@gmail.com>
6476
cabf91cd
AM
6477 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
6478 to check the register content is equal or not.
6479 * lra-constraints.c (match_reload): Use lra_assign_reg_val
6480 to assign register content record.
6481 * lra-eliminations.c (update_reg_eliminate): Use
d70a81dd 6482 lra_update_reg_val_offset to update register content offset.
cabf91cd
AM
6483 * lra-int.h (struct lra_reg): Add offset member.
6484 (lra_reg_val_equal_p): New static inline function.
6485 (lra_update_reg_val_offset): New static inline function.
6486 (lra_assign_reg_val): New static inline function.
6487 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
6488 to assign register content record.
6489 (initialize_lra_reg_info_element): Initial offset to zero.
d70a81dd 6490
b894a1f3
CM
64912013-04-23 Catherine Moore <clm@codesourcery.com>
6492
6493 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
6494 operands. Record compression.
6495
ecd14de9
XDL
64962013-04-23 Xinliang David Li <davidxl@google.com>
6497
6498 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
6499
92e776e9
RB
65002013-04-23 Richard Biener <rguenther@suse.de>
6501
6502 PR middle-end/57036
6503 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
6504 parameter, only add abnormal goto edges from the copied body
6505 if the call could perform abnormal gotos.
6506 (copy_cfg_body): Adjust.
6507
a15ee567
SN
65082013-04-23 Sofiane Naci <sofiane.naci@arm.com>
6509
6510 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
6511
08c52234
AS
65122013-04-23 Andreas Schwab <schwab@linux-m68k.org>
6513
6514 * coretypes.h (gimple_stmt_iterator): Add struct to make
6515 compatible with C.
6516
999c1171
RB
65172013-04-23 Richard Biener <rguenther@suse.de>
6518
6519 PR tree-optimization/57026
6520 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
6521 from SSA names occuring in abnormal PHI nodes.
6522
53669259
AK
65232013-04-22 Andi Kleen <ak@linux.intel.com>
6524
6525 * lto/lto.c (print_lto_report_1): Fix LTO report names.
6526
1a0ad150
AK
65272013-04-22 Andi Kleen <ak@linux.intel.com>
6528
6529 * lto/lto.c (print_lto_report_1): Declare early.
6530 (read_cgraph_and_symbols): Call print_lto_report_1 early.
6531
057f8f20
AK
65322013-04-22 Andi Kleen <ak@linux.intel.com>
6533
6534 * common.opt (-flto-report-wpa): Add.
6535 * doc/invoke.texi (-flto-report-wpa): Add.
6536 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
6537 (lto_main): dito.
6538
473b1e05
XDL
65392013-04-22 Xinliang David Li <davidxl@google.com>
6540
6541 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
6542 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
6543 * Makefile.in: New dependency
6544
cabf91cd 6545 David Daney <ddaney.cavm@gmail.com>
b1485a33 6546
cabf91cd
AM
6547 * configure.ac (gcc_cv_as_micromips_support): Use the
6548 --fatal-warnings option.
6549 * configure: Regenerate.
b1485a33 6550
829d0168
MP
65512013-04-22 Marek Polacek <polacek@redhat.com>
6552
6553 PR sanitizer/56990
6554 * tsan.c (instrument_expr): Don't instrument expression
6555 in case its size is zero.
6556
6d9b7208
UB
65572013-04-22 Uros Bizjak <ubizjak@gmail.com>
6558
6559 PR target/57032
6560 Revert:
6561 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
6562
6563 * config/alpha/alpha.c (TARGET_LRA_P): New define.
6564
ea679d55
JG
65652013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
6566
6567 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
6568 (gimple_stmt_iterator): New typedef.
6569 * gimple.h (gimple_stmt_iterator): Rename to...
6570 (gimple_stmt_iterator_d): ... This.
6571 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
6572 trees be valid for GIMPLE and GENERIC.
6573 (TARGET_GIMPLE_FOLD_BUILTIN): New.
6574 * gimple-fold.c (gimple_fold_call): Call target hook
6575 gimple_fold_builtin.
6576 * hooks.c (hook_bool_gsiptr_false): New.
6577 * hooks.h (hook_bool_gsiptr_false): New.
6578 * target.def (fold_stmt): New.
6579 * doc/tm.texi: Regenerate.
6580
88a581da
VM
65812013-04-22 Vladimir Makarov <vmakarov@redhat.com>
6582
6583 PR target/57018
6584 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
6585 a set sp if no stack realignment.
6586
92be22dc
NC
65872013-04-22 Nick Clifton <nickc@redhat.com>
6588
6589 * config.gcc (tilegx-linux): Extend extra_objs rather than
6590 overwriting it.
6591 (tilepro-linux): Likewise.
6592
0ddec79f
JG
65932013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
6594
6595 * config/aarch64/aarch64-builtins.c
6596 (CF): Remove.
6597 (CF0, CF1, CF2, CF3, CF4, CF10): New.
6598 (VAR<1-12>): Add MAP parameter.
6599 (BUILTIN_*): Likewise.
6600 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
6601 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
6602 (aarch64_ushl_n<mode>): Likewise.
6603 (aarch64_sshr_n<mode>): Likewise.
6604 (aarch64_ushr_n<mode>): Likewise.
6605 (aarch64_<maxmin><mode>): Likewise.
6606 (aarch64_sqrt<mode>): Likewise.
6607 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
6608 (vshr<q>_n_*): Likewise.
6609
0050faf8
JG
66102013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
6611
6612 * config/aarch64/aarch64-builtins.c
6613 (aarch64_simd_builtin_type_mode): Handle SF types.
6614 (sf_UP): Define.
6615 (BUILTIN_GPF): Define.
6616 (aarch64_init_simd_builtins): Handle SF types.
6617 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
6618 (frecps): Likewise.
6619 (frecpx): Likewise.
6620 * config/aarch64/aarch64-simd.md
6621 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
6622 (aarch64_frecpe<mode>): New.
6623 (aarch64_frecps<mode>): Likewise.
6624 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
6625 (v8type): Add frecp<esx>.
6626 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
6627 (aarch64_frecps<mode>): Likewise.
6628 * config/aarch64/iterators.md (FRECP): New.
6629 (frecp_suffix): Likewise.
6630 * config/aarch64/arm_neon.h
6631 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
6632
0fad3dbc 66332013-04-22 Christian Bruel <christian.bruel@st.com>
1818d01c
CB
6634
6635 PR target/56995
6636 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
6637 (REG_CLASS_NAMES): Idem.
6638 (REG_CLASS_CONTENTS): Idem.
6639 (REGCLASS_HAS_FP_REG): Idem.
6640 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
6641 (sh_conditional_register_usage): Idem.
6642
3e8a33f9
JL
66432013-04-21 Jeff Law <law@redhat.com>
6644
6645 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
6646 (ssa_forward_propagate_and_combine): Use it.
6647
f38e1b0a
VM
66482013-04-19 Vladimir Makarov <vmakarov@redhat.com>
6649
6650 * lra.c: Update the flow chart diagram.
6651
682303da
VM
66522013-04-19 Vladimir Makarov <vmakarov@redhat.com>
6653
6654 PR rtl-optimization/56847
6655 * lra-constraints.c (process_alt_operands): Discourage alternative
6656 with non-matche doffsettable memory constraint fro memory with
6657 known offset.
6658
f6b64c35
RB
66592013-04-19 Richard Biener <rguenther@suse.de>
6660
6661 PR tree-optimization/56982
6662 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
6663 function.
6664 * gimplify.c (gimplify_call_expr): Notice special calls.
6665 (gimplify_modify_expr): Likewise.
6666 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
6667 abnormal control flow receivers.
6668 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
6669 in the same way as cfun->has_nonlocal_labels.
6670 (gimple_purge_dead_abnormal_call_edges): Likewise.
6671 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
6672 receivers start a basic-block.
6673
01d8bf07
RB
66742013-04-19 Richard Biener <rguenther@suse.de>
6675
6676 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
6677 member ...
6678 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
6679 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
6680 (SLP_TREE_LOAD_PERMUTATION): Add.
6681 (vect_transform_slp_perm_load): Adjust prototype.
6682 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
6683 (vect_free_slp_instance): Likewise.
6684 (vect_create_new_slp_node): Likewise.
6685 (vect_supported_slp_permutation_p): Remove.
6686 (vect_slp_rearrange_stmts): Adjust.
6687 (vect_supported_load_permutation_p): Likewise. Inline
6688 vect_supported_slp_permutation_p here.
6689 (vect_analyze_slp_instance): Compute load permutations per
6690 slp node instead of per instance.
6691 (vect_get_slp_defs): Adjust.
6692 (vect_transform_slp_perm_load): Likewise.
6693 (vect_schedule_slp_instance): Remove redundant code.
6694 (vect_schedule_slp): Remove hack for PR56270, add it ...
6695 * tree-vect-stmts.c (vectorizable_load): ... here, do not
6696 CSE loads for SLP. Adjust.
6697
ede22fc3
GY
66982013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
6699
6700 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
6701 spelling in two comments.
6702
67bc84fb
GY
67032013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
6704
6705 PR target/56797
6706 * config/arm/arm.c (load_multiple_sequence): Require SP
6707 as base register for loads if SP is in the register list.
6708
e248d83f
MJ
67092013-04-19 Martin Jambor <mjambor@suse.cz>
6710
6711 PR tree-optimization/56718
6712 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
6713 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
6714 and made public. Adjusted all callers.
6715 (ipa_intraprocedural_devirtualization): New function.
6716 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
6717 (ipa_intraprocedural_devirtualization): Likewise.
6718 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
6719
4891e8f8
RB
67202013-04-19 Richard Biener <rguenther@suse.de>
6721
6722 PR tree-optimization/57000
6723 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
6724
dad89f7c
TG
67252013-04-19 Terry Guo <terry.guo@arm.com>
6726
6727 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
6728 Replace with ...
6729 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
6730 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
6731 (cortex_m4_fmacs): Use new reservations.
6732 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
6733
72ea0d47
VM
67342013-04-18 Vladimir Makarov <vmakarov@redhat.com>
6735
f1e6512c 6736 PR rtl-optimization/56999
72ea0d47
VM
6737 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
6738 related code.
6739 (lra_coalesce): Remove split_origin_bitmap and related code.
6740 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
6741 ranges if necessary.
6742
780a5b71
UB
67432013-04-18 Uros Bizjak <ubizjak@gmail.com>
6744
6745 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
6746 New array.
6747 (ix86_expand_call): Remove clobbered_registers array and use
6748 x86_64_ms_sysv_extra_clobbered_registers instead.
6749 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
6750 Declare here.
6751 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
6752 predicate.
6753 * config/i386/i386.md (*call_rex64_ms_sysv): Use
6754 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
6755 (*call_value_rex64_ms_sysv): Ditto.
6756
6f5a366a
CC
67572013-04-18 Cary Coutant <ccoutant@google.com>
6758
6759 * dwarf2out.c (output_pubnames): Check die_perennial_p of
6760 parent instead of die_mark.
6761
475b8f37
DN
67622013-04-18 Diego Novillo <dnovillo@google.com>
6763
6764 * gimple.c (create_gimple_tmp): New.
6765 (get_expr_type): New.
6766 (build_assign): New.
6767 (build_type_cast): New.
6768 * gimple.h (enum ssa_mode): Define.
6769 (gimple_seq_set_location): New.
6770 * asan.c (build_check_stmt): Change some gimple_build_* calls
780a5b71 6771 to use build_assign and build_type_cast.
475b8f37 6772
08940f33
RB
67732013-04-18 Richard Biener <rguenther@suse.de>
6774
6775 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
6776 handle negative step. Remove redundant checks.
6777 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
6778 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
6779 for negative step and grouped loads fail to vectorize.
6780
0e0f87d4
SB
67812013-04-18 Steven Bosscher <steven@gcc.gnu.org>
6782
6783 * emit-rtl.c (reset_insn_used_flags): New function.
6784 (reset_all_used_flags): Use it.
6785 (verify_insn_sharing): New function.
6786 (verify_rtl_sharing): Fix verification for SEQUENCEs.
6787
4c445590
JJ
67882013-04-18 Jakub Jelinek <jakub@redhat.com>
6789
6790 PR tree-optimization/56984
6791 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
6792 and (x >> M) >= N don't register any assertion if N << M is the
6793 minimum value.
6794
6873ecab
SB
67952013-04-18 Steven Bosscher <steven@gcc.gnu.org>
6796
6797 * lower-subreg.c (resolve_simple_move): If called self-recursive,
6798 do not delete_insn insns that have not yet been emitted, only
6799 unlink them with remove_insn.
6800 * df-scan.c (df_insn_delete): Revert r197492.
6801
3ccb989e
SB
68022013-04-17 Steven Bosscher <steven@gcc.gnu.org>
6803
6804 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
6805 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
6806
68072013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
0480fff0
GY
6808
6809 * config/arm/arm.md (movsicc_insn): Convert define_insn into
6810 define_insn_and_split.
6811 (and_scc,ior_scc,negscc): Likewise.
6812 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
6813
3ccb989e 68142013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
367075fe
GY
6815
6816 * config/arm/arm.c (use_return_insn): Return 0 for targets that
6817 can benefit from using a sequence of LDRD instructions in epilogue
6818 instead of a single LDM instruction.
6819
6d10a203
MLI
68202013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
6821
6822 PR 45688
6823 * doc/extend.texi: Fix typo.
6824
6983e6b5
RB
68252013-04-17 Richard Biener <rguenther@suse.de>
6826
6827 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
6828 (vect_build_slp_tree): ... here.
6829 (vect_build_slp_tree_1): Compute which stmts of the SLP group
6830 match. Remove special-casing of mismatched complex loads.
6831 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
6832 re-try the match with swapped commutative operands.
6833 (vect_supported_load_permutation_p): Remove special-casing of
6834 mismatched complex loads.
6835 (vect_analyze_slp_instance): Adjust.
6836
ef23e6a2
RB
68372013-04-17 Richard Biener <rguenther@suse.de>
6838
6839 PR rtl-optimization/56921
6840 * cfgloop.h (struct loop): Add simple_loop_desc member.
6841 (struct niter_desc): Mark with GTY(()).
6842 (simple_loop_desc): Do not use aux field but simple_loop_desc.
6843 * loop-iv.c (get_simple_loop_desc): Likewise.
6844 (free_simple_loop_desc): Likewise.
6845
6846 Revert
6847 2013-04-16 Richard Biener <rguenther@suse.de>
6848
6849 PR rtl-optimization/56921
6850 * loop-init.c (pass_rtl_move_loop_invariants): Add
6851 TODO_do_not_ggc_collect to todo_flags_finish.
6852 (pass_rtl_unswitch): Same.
6853 (pass_rtl_unroll_and_peel_loops): Same.
6854 (pass_rtl_doloop): Same.
6855
fc6f94f5
EB
68562013-04-17 Eric Botcazou <ebotcazou@adacore.com>
6857
6858 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
6859 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
6860 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
6861 references.
6862 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
6863 * tree-streamer.c (record_common_node): Adjust reference in comment.
6864
10a88311
TG
68652013-04-17 Terry Guo <terry.guo@arm.com>
6866
6867 * config/arm/cortex-m4.md: Add a new bypass.
6868
6d9b7208 68692013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f3d096b0
N
6870
6871 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
6872 New pattern.
6873 (*subs_<optab><mode>_multp2): New pattern.
6874 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
6875 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
6876
6d9b7208 68772013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
860ad33f
N
6878
6879 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
6880 (*subs_mul_imm_<mode>): New pattern.
6881
18a6701e
DE
68822013-04-16 David Edelsohn <dje.gcc@gmail.com>
6883
6884 PR target/56948
6885 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
6886 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
6887 (vsx_movti_32bit): Change j->wa to O->wa.
6888
07c37b2f
RB
68892013-04-16 Richard Biener <rguenther@suse.de>
6890
6891 PR rtl-optimization/56921
6892 * loop-init.c (pass_rtl_move_loop_invariants): Add
6893 TODO_do_not_ggc_collect to todo_flags_finish.
6894 (pass_rtl_unswitch): Same.
6895 (pass_rtl_unroll_and_peel_loops): Same.
6896 (pass_rtl_doloop): Same.
6897
0e0f87d4 68982013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
974ba22d
GY
6899
6900 * config/arm/arm.c (emit_multi_reg_push): New declaration
6901 for an existing function.
6902 (arm_emit_strd_push): New function.
6903 (arm_expand_prologue): Used here.
6904 (arm_emit_ldrd_pop): New function.
6905 (arm_expand_epilogue): Used here.
6906 (arm_get_frame_offsets): Update condition.
6907 (arm_emit_multi_reg_pop): Add a special case for load of a single
6908 register with writeback.
6909
5e8e2af4
UB
69102013-04-16 Uros Bizjak <ubizjak@gmail.com>
6911
6912 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
6913 description.
6914
9fd9ccf7
RB
69152013-04-16 Richard Biener <rguenther@suse.de>
6916
6917 PR tree-optimization/56756
6918 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
6919 (first_mem_ref_loc): New.
6920 (execute_sm): Place the load temporarily before a previous
6921 access instead of in the latch edge to ensure its SSA dependencies
6922 are defined at points dominating the load.
6923
96fba521
SB
69242013-04-16 Steven Bosscher <steven@gcc.gnu.org>
6925
4c8af858
SB
6926 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
6927 correct fix by moving header and footer insn to the footer of
6928 the merged basic block. Clear BB_END of the merged-away block.
6929
96fba521
SB
6930 PR middle-end/43631
6931 * emit-rtl.c (make_note_raw): New function.
6932 (link_insn_into_chain): New static inline function.
6933 (add_insn): Use it.
6934 (add_insn_before, add_insn_after): Factor insn chain linking code...
6935 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
6936 using link_insn_into_chain.
6937 (note_outside_basic_block_p): New helper function for emit_note_after
6938 and emit_note_before.
6939 (emit_note_after): Use nobb variant of add_insn_after if the note
6940 should not be contained in a basic block.
6941 (emit_note_before): Use nobb variant of add_insn_before if the note
6942 should not be contained in a basic block.
6943 (emit_note_copy): Use make_note_raw.
6944 (emit_note): Likewise.
6945 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
6946 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
6947 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
6948 the moved barrier the tail of the basic block it follows.
6949 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
6950
7b8265ba
JJ
69512013-04-15 Jakub Jelinek <jakub@redhat.com>
6952
6953 PR tree-optimization/56962
6954 * gimple-ssa-strength-reduction.c (record_increment): Only set
6955 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
6956 either rhs1 or rhs2 is equal to c->base_expr.
6957
5185d248
RB
69582013-04-15 Richard Biener <rguenther@suse.de>
6959
6960 PR tree-optimization/56933
6961 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
6962 member.
6963 (GROUP_READ_WRITE_DEPENDENCE): Remove.
6964 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
6965 * tree-vect-data-refs.c (vect_analyze_group_access): Move
6966 dependence check ...
6967 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
6968 ... here.
6969 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
6970 GROUP_READ_WRITE_DEPENDENCE.
6971
a24243a0
AK
69722013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6973
6974 * emit-rtl.c (reset_all_used_flags): New function.
6975 (verify_rtl_sharing): Call reset_all_used_flags before and after
6976 performing the checks.
6977
1c50eada
KT
69782013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6979
6980 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
6981 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
6982 * config/arm/constraints.md (De): New constraint.
6983 * config/arm/neon.md (anddi3_neon): Delete.
6984 (neon_vand<mode>): Expand to standard anddi3 pattern.
6985 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
6986 Move earlier in the file.
6987 (neon_inv_logic_op2): Likewise.
6988 (arm_anddi_operand_neon): New predicate.
6989
e927b6ad
RO
69902013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6991
6992 * configure.ac (gcc_cv_ld_as_needed): Set
6993 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
6994 Use -z ignore, -z record on *-*-solaris2*.
6995 (HAVE_LD_AS_NEEDED): Update comment.
6996 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
6997 * configure: Regenerate.
6998 * config.in: Regenerate.
6999 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
7000 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
7001 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
7002 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
7003 equivalents. Fix markup.
7004 * doc/tm.texi: Regenerate.
7005
e0ea8797
AH
70062013-04-15 Andrew Hsieh <andrewhsieh.google.com>
7007
7008 * config/i386/i386.opt: New option mstack-protector-guard=.
7009 * config/i386/i386-opts.h: Add enum stack_protector_guard.
7010 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
7011 TARGET_SSP_TLS_GUARD.
7012 * config/i386/i386.c (ix86_option_override_internal): Set
7013 ix86_stack_protector_guard.
7014 * config/i386/i386.md (stack_protect_set): Enable for
7015 TARGET_SSP_TLS_GUARD only.
7016 (stack_protect_set_<mode>): Ditto.
7017 (stack_protect_test): Ditto.
7018 (stack_protect_test_<mode>): Ditto.
7019 * doc/invoke.texi (i386 Option): Document.
7020
811b72f9
EB
70212013-04-15 Eric Botcazou <ebotcazou@adacore.com>
7022
7023 PR target/56890
7024 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
7025 (S_MODES): Set H_MODE bit.
7026 (SF_MODES): Set only S_MODE and SF_MODE bits.
7027 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
7028 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
7029 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
7030 <MODE_FLOAT>: Likewise.
7031
5529fdd6
JY
70322013-04-15 Joey Ye <joey.ye@arm.com>
7033
7034 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
7035
517b1da2
JY
70362013-04-15 Joey Ye <joey.ye@arm.com>
7037
7038 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
7039 for real far jump.
7040 (thumb_far_jump_used_p): Count instruction size and set
7041 far_jump_used.
7042
01007ae0
EB
70432013-04-14 Eric Botcazou <ebotcazou@adacore.com>
7044
7045 * reorg.c (fill_simple_delay_slots): Reindent block of code.
7046 * resource.c (mark_target_live_regs): Reformat conditional block.
7047
c46f6580
SB
70482013-04-13 Steven Bosscher <steven@gcc.gnu.org>
7049
7050 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
7051 notes, they are emitted only just before final.
7052 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
7053
1f397f45
SB
70542013-04-13 Steven Bosscher <steven@gcc.gnu.org>
7055
7056 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
7057 * cfgrtl.c (delete_insn): Call it here instead.
7058 * lra-spills.c (lra_final_code_change): Use delete_insn.
7059 * haifa-sched.c (sched_remove_insn): Likewise.
7060 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
7061 returning to the nop pool.
7062 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
7063 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
7064
58a51369
SB
70652013-04-12 Steven Bosscher <steven@gcc.gnu.org>
7066
7067 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
7068 * doc/tm.texi: Regenerated.
7069
33159866
UB
70702013-04-12 Uros Bizjak <ubizjak@gmail.com>
7071
7072 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
7073 QImode checks.
7074
226e378f
SB
70752013-04-12 Steven Bosscher <steven@gcc.gnu.org>
7076
7077 * df-core.c (df_find_def): Compare register numbers.
7078 (df_find_use): Likewise.
7079
fafb9b18
VM
70802013-04-12 Vladimir Makarov <vmakarov@redhat.com>
7081
7082 PR target/56903
7083 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
7084 lra_in_progress for return.
7085
9a946fd6
GY
70862013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
7087
7088 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
7089 define_insn into define_insn_and_split and emit movsicc patterns.
7090
41b83758
GY
70912013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
7092
7093 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
7094
d3afd9aa
RB
70952013-04-12 Richard Biener <rguenther@suse.de>
7096
7097 * tree-pass.h (TODO_do_not_ggc_collect): New.
7098 * passes.c (execute_one_ipa_transform_pass): Honor
7099 TODO_do_not_ggc_collect.
7100 (execute_one_pass): Likewise.
7101
7102 Revert
7103 2013-04-10 Richard Biener <rguenther@suse.de>
7104
7105 * passes.c (init_optimization_passes): Remove reload pass.
7106 * ira.c (do_reload): Merge into ...
7107 (ira): ... this.
7108 (rest_of_handle_reload): Remove.
7109 (pass_reload): Likewise.
7110 * config/i386/i386.c (ix86_option_override): Refer to ira instead
7111 of reload for vzeroupper pass placement.
7112
06f9b387
JJ
71132013-04-12 Jakub Jelinek <jakub@redhat.com>
7114
7115 PR tree-optimization/56918
7116 PR tree-optimization/56920
7117 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
7118 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
7119 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
7120 use wide_mul_with_sign method.
7121
953094d2
RB
71222013-04-12 Richard Biener <rguenther@suse.de>
7123
7124 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
7125 not be considered a gimple constant.
7126
bb506982
MG
71272013-04-12 Marc Glisse <marc.glisse@inria.fr>
7128
7129 * fold-const.c (const_binop): Handle vector shifts by a scalar.
7130 (fold_binary_loc): Call const_binop also for mixed vector-scalar
7131 operations.
7132
4b84d650
JJ
71332013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
7134 Jakub Jelinek <jakub@redhat.com>
7135
7136 * opts.c: Include diagnostic-color.h.
7137 (common_handle_option): Handle OPT_fdiagnostics_color_.
7138 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
7139 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
7140 (diagnostic-color.o): New.
7141 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
7142 (diagnostic_color_rule): New enum.
7143 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
7144 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
7145 the location string.
7146 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
7147 either NULL, or color kind.
7148 * diagnostic-color.c: New file.
7149 * diagnostic-color.h: New file.
7150 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
7151 arguments.
7152 * doc/invoke.texi (-fdiagnostics-color): Document.
7153 * pretty-print.h (pp_show_color): Define.
7154 (struct pretty_print_info): Add show_color field.
7155 * diagnostic.c: Include diagnostic-color.h.
7156 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
7157 macros. Colorize error:, warning: etc. strings and also the location
7158 string.
7159 (diagnostic_show_locus): Colorize the caret line.
7160 * pretty-print.c: Include diagnostic-color.h.
7161 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
7162 inside of %< %> quotes or quoted through q format modifier.
7163
067a1e71
AK
71642013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7165
33159866 7166 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
067a1e71 7167
33159866 71682013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
b056c910
N
7169
7170 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
7171 code in CC_NZ mode.
7172 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
7173 pattern.
7174
7b55f98f
MP
71752013-04-11 Marek Polacek <polacek@redhat.com>
7176
7177 PR tree-optimization/48184
33159866 7178 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
7b55f98f 7179
966b587e
EB
71802013-04-11 Eric Botcazou <ebotcazou@adacore.com>
7181
7182 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
7183 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
7184 (skip_simple_arithmetic): Tidy up.
7185 * tree.h (skip_simple_constant_arithmetic): Declare.
7186
33159866 71872013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f8bf91ab
N
7188
7189 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
7190
1d42c1ec
RB
71912013-04-11 Richard Biener <rguenther@suse.de>
7192
7193 * tree-vect-loop.c (get_initial_def_for_induction): Properly
7194 generate vector constants.
7195
4ba5ea11
RB
71962013-04-11 Richard Biener <rguenther@suse.de>
7197
7198 PR tree-optimization/56878
7199 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
7200 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
7201 New function.
7202 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7203 Prefer to align the DR with the most invariant base address.
7204
f0defe58
SKS
72052013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7206
7207 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
7208 comment.
7209
d07458be
JG
72102013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
7211
7212 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
7213 floating-point vector comparisons against 0.
7214
146b8692
JJ
72152013-04-11 Jakub Jelinek <jakub@redhat.com>
7216
7217 PR tree-optimization/56899
7218 * fold-const.c (extract_muldiv_1): Apply distributive law
7219 only if TYPE_OVERFLOW_WRAPS (ctype).
7220
b8578ff7
BC
72212013-04-11 Bin Cheng <bin.cheng@arm.com>
7222
7223 PR target/56124
7224 * ira-costs.c (scan_one_insn): Check whether the source rtx of
7225 loading has side effect.
7226
0ea8a6f9
SB
72272013-04-10 Steven Bosscher <steven@gcc.gnu.org>
7228
7229 * config/sparc/sparc.c: Include tree-pass.h.
7230 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
7231 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
7232 head of file. Change return type. Split off gate function.
7233 (sparc_gate_work_around_errata): New function.
7234 (pass_work_around_errata): New pass definition.
7235 (insert_pass_work_around_errata) New pass insert definition to
7236 insert pass_work_around_errata just after delayed-branch scheduling.
7237 (sparc_option_override): Insert the pass.
7238 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
7239
42e37616
DM
72402013-04-10 David S. Miller <davem@davemloft.net>
7241
89deeb3b
DM
7242 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
7243 or -mcpu=hypersparc.
7244
42e37616
DM
7245 * target.def (cstore_mode): New hook.
7246 * target.h: Include insn-codes.h
7247 * targhooks.c: Likewise.
7248 (default_cstore_mode): New function.
7249 * targhooks.h: Declare it.
7250 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
7251 * doc/tm.texi: Rebuild.
7252 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
7253 target hook, rather than inspecting the insn_data.
7254 * config/sparc/sparc.c (sparc_cstore_mode): New function.
7255 (TARGET_CSTORE_MODE): Redefine.
7256 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
7257 result patterns.
7258 * config/sparc/predicates.md (cstore_result_operand): New special
7259 predicate.
7260 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
7261 Use it for operand 0.
7262 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
7263 (*snesi_special): Likewise.
7264 (*snesi_zero): Likewise.
7265 (*seqsi_zero): Likewise.
7266 (*sltu_insn): Likewise.
7267 (*sgeu_insn): Likewise.
7268 (*seqdi_special): Make operand 0 and comparison operation be of
7269 DImode.
7270 (*snedi_special): Likewise.
7271 (*snedi_special_vis3): Likewise.
7272 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
7273 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
7274 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
7275 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
7276 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
7277 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
7278 (*sltu_extend_sp64): Likewise.
7279 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
7280 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
7281 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
7282 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
7283 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
7284
95ca411e
YZ
72852013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
7286
7287 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
7288 (aarch64_start_file): Use the new function.
7289
6782438d 72902013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
33159866 7291 Jason Merrill <jason@redhat.com>
6782438d
SKS
7292
7293 * common.opt: Add -gdwarf.
7294 * opts.c (common_handle_option): Handle it.
7295 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
7296
bb313b93
RB
72972013-04-10 Richard Biener <rguenther@suse.de>
7298
7299 * passes.c (execute_todo): Do not call ggc_collect conditional here.
7300 (execute_one_ipa_transform_pass): But unconditionally here.
7301 (execute_one_pass): And here.
7302 (init_optimization_passes): Remove reload pass.
7303 * tree-pass.h (TODO_ggc_collect): Remove.
7304 (pass_reload): Likewise.
7305 * ira.c (do_reload): Merge into ...
7306 (ira): ... this.
7307 (rest_of_handle_reload): Remove.
7308 (pass_reload): Likewise.
7309 * config/i386/i386.c (ix86_option_override): Refer to ira instead
7310 of reload for vzeroupper pass placement.
7311 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
7312 and todo_flags_finish of all passes.
7313
793d9a16
RB
73142013-04-10 Richard Biener <rguenther@suse.de>
7315
7316 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
7317 first_const_oprnd field, rename first_def_type to first_op_type.
7318 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
7319 (vect_get_and_check_slp_defs): Always use the type of the
7320 operand. Allow mixed vect_external_def, vect_constant_def types.
7321 (vect_get_constant_vectors): Handle mixed vect_external_def,
7322 vect_constant_def types.
7323
ee8a9b7b
JR
73242013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
7325
7326 PR tree-optimization/55524
7327 * tree-ssa-math-opts.c
7328 (convert_mult_to_fma): Don't use an fms construct
7329 when we don't have an fms operation, but fnma, and it looks
7330 likely that we'll be able to use the latter.
7331
6957a6f6
ZZ
73322013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
7333
7334 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
7335 function.
7336 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
7337 inline fail caused by overwritable functions.
7338
34ab4a5b
CJW
73392013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
7340
7341 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
7342 unnecessary bits in the constant power of two case.
7343
abf9bfbc
RB
73442013-04-10 Richard Biener <rguenther@suse.de>
7345
7346 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
7347 broken code swapping operands.
7348 (vect_build_slp_tree): Do not compute load permutations here.
7349 (vect_analyze_slp_instance): Compute load permutations here,
7350 after building the SLP tree.
7351
f408477e
CB
73522013-04-09 Christian Bruel <christian.bruel@st.com>
7353
7354 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
7355 of next/prev_real_insn.
7356
5ac42672
JH
73572013-04-09 Jan Hubicka <jh@suse.cz>
7358
abf9bfbc
RB
7359 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
7360 Drop aliased parameter.
5ac42672
JH
7361 (function_and_variable_visibility): Do not handle alias pairs.
7362 * cgraph.c (varpool_externally_visible_p): Update prototype.
7363 * varpool.c (varpool_add_new_variable): Update.
7364
5017f1d2
KT
73652013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7366
7367 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
7368
48eecbee
SB
73692013-04-09 Steven Bosscher <steven@gcc.gnu.org>
7370
a949cf1c
SB
7371 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
7372
48eecbee
SB
7373 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
7374
75ef8e3d
MP
73752013-04-09 Marek Polacek <polacek@redhat.com>
7376
7377 PR tree-optimization/48762
33159866 7378 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
75ef8e3d 7379
23847df4
RB
73802013-04-09 Richard Biener <rguenther@suse.de>
7381
7382 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
7383 dealing with cost.
7384 (vect_build_slp_tree): Likewise.
7385 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
7386 calculating the cost of a SLP instance.
7387 (vect_analyze_slp_instance): Use it from here, after building
7388 the SLP tree.
7389
ea3a0fde
JJ
73902013-04-09 Jakub Jelinek <jakub@redhat.com>
7391
7392 PR middle-end/56883
7393 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
7394 expand_omp_for_static_chunk): Use simple_p = true in
7395 force_gimple_operand_gsi calls when assigning to addressable decls.
7396
a32dfe9d
JL
73972013-04-09 Jeff Law <law@redhat.com>
7398
7399 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
7400 when the boolean was created by converting a wider object which
7401 had a boolean range.
7402
d755c7ef
RB
74032013-04-09 Richard Biener <rguenther@suse.de>
7404
7405 * tree-vectorizer.h (slp_void_p): Remove.
7406 (slp_tree): Typedef before _slp_tree declaration.
7407 (struct _slp_tree): Use a vector of slp_tree as children.
7408 (vect_get_place_in_interleaving_chain): Remove.
7409 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
7410 Move ...
7411 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
7412 and make static.
7413 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
7414 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
7415 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
7416 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
7417 Use slp_node instead of slp_void_p and adjust.
7418
3d741091
RB
74192013-04-09 Richard Biener <rguenther@suse.de>
7420
7421 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
7422 work that is not necessary.
7423
39307ba7
JJ
74242013-04-09 Jakub Jelinek <jakub@redhat.com>
7425
7426 PR tree-optimization/56854
7427 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
7428 forward into clobber stmts if it would change MEM_REF lhs into
7429 non-MEM_REF.
7430
343881fd
MK
74312013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
7432
7433 * tree.c (type_hash_lookup, type_hash_add): Make static.
7434 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
7435
3922658a
RB
74362013-04-09 Richard Biener <rguenther@suse.de>
7437
7438 * tree.h (unsave_expr_now): Remove.
7439 * tree-inline.c (mark_local_for_remap_r): Remove.
7440 (unsave_expr_1): Likewise.
7441 (unsave_r): Likewise.
7442 (unsave_expr_now): Likewise.
7443 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
7444 (propagate_tree_value): Likewise.
7445
9fb6b620
SB
74462013-04-08 Steven Bosscher <steven@gcc.gnu.org>
7447
7448 * doc/rtl.texi (sequence): Rewrite documentation to match the
7449 current use of SEQUENCE rtl objects.
7450 * rtl.def (SEQUENCE): Likewise.
7451
7452 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
7453 Update documentation.
7454 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
7455 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
7456
7457 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
7458
8ddb5a29
TJ
74592013-04-08 Teresa Johnson <tejohnson@google.com>
7460
7461 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
7462 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
33159866 7463 methods.
8ddb5a29
TJ
7464 (estimate_edge_size_and_time): Add comment to suggest using rounding
7465 methods.
7466 (estimate_node_size_and_time): Ditto.
7467 (remap_edge_change_prob): Use helper rounding divide methods.
7468 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
7469 (gimple_mod_pow2_value_transform): Ditto.
7470 (gimple_mod_subtract_transform): Ditto.
7471 (gimple_ic_transform): Ditto.
7472 (gimple_stringops_transform): Ditto.
7473 * stmt.c (conditional_probability): Ditto.
7474 (emit_case_dispatch_table): Ditto.
7475 * lto-cgraph.c (merge_profile_summaries): Ditto.
7476 * tree-optimize.c (execute_fixup_cfg): Ditto.
7477 * cfgcleanup.c (try_forward_edges): Ditto.
7478 * cfgloopmanip.c (scale_loop_profile): Ditto.
7479 (loopify): Ditto.
7480 (duplicate_loop_to_header_edge): Ditto.
7481 (lv_adjust_loop_entry_edge): Ditto.
7482 * tree-vect-loop.c (vect_transform_loop): Ditto.
7483 * profile.c (compute_branch_probabilities): Ditto.
7484 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
7485 * lto-streamer-in.c (input_cfg): Ditto.
7486 * gimple-streamer-in.c (input_bb): Ditto.
7487 * ipa-cp.c (update_profiling_info): Ditto.
7488 (update_specialized_profile): Ditto.
7489 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
7490 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
33159866 7491 rounding methods.
8ddb5a29
TJ
7492 * sched-rgn.c (compute_dom_prob_ps): Ditto.
7493 (compute_trg_info): Ditto.
7494 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
7495 (purge_dead_edges): Ditto.
7496 * loop-unswitch.c (unswitch_loop): Ditto.
7497 * cgraphclones.c (cgraph_clone_edge): Ditto.
7498 (cgraph_clone_node): Ditto.
7499 * tree-inline.c (copy_bb): Ditto.
7500 (copy_edges_for_bb): Ditto.
7501 (initialize_cfun): Ditto.
7502 (copy_cfg_body): Ditto.
7503 (expand_call_inline): Ditto.
7504
661e6bd7
KT
75052013-04-08 Kai Tietz <ktietz@redhat.com>
7506
7507 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
7508 TARGET_CYGWIN64 by TARGET_64BIT.
7509
105766f3
JR
75102013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
7511
7512 * config/epiphany/epiphany.md (GPR_1): New constant.
7513 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
7514 * config/epiphany/epiphany.c (gen_compare_reg):
7515 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
7516 is already in place.
7517 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
7518 Don't require being called during rtl expansion; If y operlaps r0,
7519 return 0.
7520 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
7521 (epiphany_expand_epilogue): Likewise.
7522
8afab237
JR
7523 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
7524 Don't use CC_FPmode for ORDERED / UNORDERED.
33159866 7525 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
8afab237 7526
fa7707d6
JR
7527 * config/epiphany/constraints.md (CnL): New constraint.
7528 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
7529 * config/epiphany/predicates.md (add_operand): Allow 1024.
7530
5138e18d
JR
7531 * config/epiphany/epiphany.md (logical_op): New code iterator.
7532 (op_mnc): New code attribute.
7533 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
7534 (mov_f+1, mov_f+2): New peephole2 patterns.
7535
2ccc703d
JR
7536 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
7537 (cstoresi4): Also allow re-use of zero result when doing a NE
7538 comparison to a non-zero operand.
aefb0819 7539 Use (clobber (scratch)) for first insn if the gpr output is not needed.
2ccc703d 7540
093ac0a5
JR
7541 * config/epiphany/epiphany.md (<insn_opname>v2si3):
7542 Use gen_addsi3_i / gen_subsi3_i.
7543
f223bb13
JJ
75442013-04-08 Jakub Jelinek <jakub@redhat.com>
7545
7546 PR c++/34949
7547 PR c++/50243
7548 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
7549 contain anything but clobbers, at most one __builtin_stack_restore,
7550 optionally debug stmts and final resx, and if it has at least one
7551 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
7552 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
7553 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
7554 which isn't defaut definition, remove them.
7555 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
7556 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
7557 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
7558 with MEM_REF LHS with SSA_NAME address.
7559
4481581f
JL
75602013-04-08 Jeff Law <law@redhat.com>
7561
7562 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
a32dfe9d 7563
451dabda
RB
75642013-04-08 Richard Biener <rguenther@suse.de>
7565
7566 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
7567 extra newline.
7568 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
7569 determined vector type.
7570 (vect_analyze_data_refs): Likewise.
7571 (vect_get_new_vect_var): Adjust.
7572 (vect_create_destination_var): Preserve SSA name versions.
7573 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
7574 not dump anything here.
7575
3b088b47
JR
75762013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
7577
7578 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
7579 Add member lr_slot_known.
7580 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
7581 if necessary.
7582 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
7583 Remove code that sets lr_slot_offset according to what a previous
7584 version of epiphany_emit_save_restore used to do.
7585 (epiphany_emit_save_restore): When doing an lr save or restore,
7586 set/verify lr_slot_known and lr_slot_offset.
7587
d8484d41
XQ
75882013-04-08 Xinyu Qi <xyqi@marvell.com>
7589
33159866
UB
7590 PR target/54338
7591 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
d8484d41
XQ
7592 in ALL_REGS.
7593
481be1c4
RB
75942013-04-08 Richard Biener <rguenther@suse.de>
7595
7596 * alias.c (find_base_term): Fix thinko in previous change.
7597
401f3a81
JJ
75982013-04-08 Jakub Jelinek <jakub@redhat.com>
7599
7600 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
7601 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
7602 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
7603 if possible to compute val.
7604 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
7605 For QImode integers don't require anything about precision. Use
7606 const_with_all_bytes_same to find out if the constant doesn't have
7607 repeated bytes in it.
7608
03ed99a8
AK
76092013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7610
7611 * config/s390/s390.c (s390_expand_insv): Only accept insertions
7612 within mode size.
7613
781b2e62
MP
76142013-04-08 Marek Polacek <polacek@redhat.com>
7615
7616 PR rtl-optimization/48182
7617 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
7618 value to 1.
7619
27e430a2
JDA
76202013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7621
7622 PR target/55487
7623 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
7624 nuses, make sure we have a label.
7625
4902aa64
BS
76262013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7627
7628 PR target/56843
7629 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
7630 (rs6000_emit_swdiv_low_precision): Remove.
7631 (rs6000_emit_swdiv): Rewrite to handle between one and four
7632 iterations of Newton-Raphson generally; modify required number of
7633 iterations for some cases.
7634 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
7635
7bca81dc
SB
76362013-04-05 Steven Bosscher <steven@gcc.gnu.org>
7637
7638 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
7639 set-but-unused variable.
7640
7641 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
7642 basic blocks of released function bodies garbage-collectable.
7643
7644 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
7645 (struct rtl_opt_pass): Add TODO_df_finish.
7646
7647 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
7648
4542a38a
GY
76492013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7650
7651 * config/arm/constraints.md (q): New constraint.
7652 * config/arm/ldrdstrd.md: New file.
7653 * config/arm/arm.md (ldrdstrd.md) New include.
7654 (arm_movdi): Use "q" instead of "r" constraint
7655 for double-word memory access.
7656 (movdf_soft_insn): Likewise.
7657 * config/arm/vfp.md (movdi_vfp): Likewise.
7658 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
33159866 7659 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
4542a38a
GY
7660 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
7661 (mem_ok_for_ldrd_strd): Likewise.
7662 (output_move_double): Update assertion.
7663
2385b218
GY
76642013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7665
7666 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
7667
75fe1cb5
GY
76682013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7669
7670 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
7671 define_insn_and_split.
7672 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
7673
dd660e8e
GY
76742013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7675
7676 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
7677 define_insn_and_split.
33159866 7678 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
dd660e8e
GY
7679 (shiftsi3_compare): New pattern.
7680 (rrx): New pattern.
7681 * config/arm/unspecs.md (UNSPEC_RRX): New.
7682
045e472c
GY
76832013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7684
7685 * config/arm/arm.md (negdi_extendsidi): New pattern.
7686 (negdi_zero_extendsidi): Likewise.
7687
3f3bf1a8
GY
76882013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7689
7690 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
7691 define_insn_and_split.
7692 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
7693 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
7694
b0b49556
GY
76952013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7696
7697 * config/arm/arm.md (arm_subdi3): Convert define_insn into
7698 define_insn_and_split.
7699 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
7700 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
7701
d633dd84
GY
77022013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7703
7704 * config/arm/arm.md (subsi3_carryin): New pattern.
7705 (subsi3_carryin_const): Likewise.
7706 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
7707 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
7708
f4499066
GY
77092013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7710
7711 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
7712
ceef6fd9
GY
77132013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7714
7715 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
d633dd84 7716 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
ceef6fd9 7717
ddbdd8a7
KT
77182013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7719
7720 * config/arm/arm.c (arm_expand_builtin): Change fcode
7721 type to unsigned int.
7722
8456d78a
RR
77232013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7724
7725 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
7726
526c230f
ILT
77272013-04-04 Ian Lance Taylor <iant@google.com>
7728
33159866
UB
7729 * doc/standards.texi (Standards): The Go frontend supports the Go 1
7730 language standard.
526c230f 7731
3cfbe04d
SB
77322013-04-04 Steven Bosscher <steven@gcc.gnu.org>
7733
7734 PR middle-end/56729
7735 * df-scan.c (df_insn_delete): Disable failing assert.
7736
dfa3f8d0
KT
77372013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7738
7739 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
7740 New function prototype.
7741 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
7742 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
7743 (arm_builtin_vectorized_function): New function.
7744
f7837758
KT
77452013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7746
7747 * config/arm/arm_neon_builtins.def: New file.
7748 * config/arm/arm.c (neon_builtin_data): Move contents to
7749 arm_neon_builtins.def.
7750 (enum arm_builtins): Include neon builtin definitions.
7751 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
33159866 7752 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
f7837758 7753
39c1b6db
MP
77542013-04-04 Marek Polacek <polacek@redhat.com>
7755
7756 PR tree-optimization/48186
7757 * predict.c (maybe_hot_frequency_p): Return false if
7758 HOT_BB_FREQUENCY_FRACTION is 0.
7759 (cgraph_maybe_hot_edge_p): Likewise.
7760
314f64eb
RB
77612013-04-04 Richard Biener <rguenther@suse.de>
7762
7763 PR tree-optimization/56826
7764 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
7765 more accurately.
7766
51a905b2
RB
77672013-04-04 Richard Biener <rguenther@suse.de>
7768
7769 PR tree-optimization/56213
7770 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
33159866 7771 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
51a905b2 7772
f1bf4f3a
RB
77732013-04-04 Richard Biener <rguenther@suse.de>
7774
7775 PR tree-optimization/56837
7776 * tree-loop-distribution.c (classify_partition): For non-zero
7777 values require that the value has the same precision as its
7778 mode to be useful as memset value.
7779
0bca7ded
NC
77802013-04-03 Nick Clifton <nickc@redhat.com>
7781
33159866 7782 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
0bca7ded
NC
7783 (fmssf4): Use fmsf.s on E3V5 architectures.
7784 (fnmasf4): Use fnmaf.s on E3V5 architectures.
7785 (fnmssf4): Use fnmsf.s on E3V5 architectures.
7786
b4019227
JL
77872013-04-03 Jeff Law <law@redhat.com>
7788
7789 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
7790 (lra-eliminations.o): Likewise.
7791
f57ddb5b
TJ
77922013-04-03 Teresa Johnson <tejohnson@google.com>
7793
7794 * gcov-io.c (compute_working_sets): Moved most of body of old
33159866 7795 compute_working_sets here from profile.c.
f57ddb5b 7796 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
33159866
UB
7797 (gcov_working_set_t): Moved typedef here from basic-block.h
7798 (compute_working_set): Declare.
f57ddb5b
TJ
7799 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
7800 (get_working_sets): Renamed from compute_working_set,
33159866 7801 replace most of body with call to new compute_working_sets.
f57ddb5b 7802 (get_exec_counts): Replace call to compute_working_sets
33159866
UB
7803 to get_working_sets.
7804 * profile.h (get_working_sets): Renamed from compute_working_set.
f57ddb5b 7805 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
33159866 7806 to get_working_sets.
f57ddb5b
TJ
7807 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
7808 * gcov-dump.c (dump_working_sets): New function.
7809
5e0919f1
KZ
78102013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
7811
7812 * hwint.c (sext_hwi, zext_hwi): New functions.
7813 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
7814 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
7815 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
7816 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
7817 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
7818 (sext_hwi, zext_hwi): New functions.
0bca7ded 7819
be672e08
JL
78202013-04-03 Jeff Law <law@redhat.com>
7821
7822 PR tree-optimization/56799
33159866
UB
7823 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
7824 back test for widening conversion erroneously dropped in prior change.
be672e08 7825
9d821fa5
KT
78262013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7827
7828 PR target/56809
7829 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
7830 instead of next_real_insn.
7831
71c581e7
MP
78322013-04-03 Marek Polacek <polacek@redhat.com>
7833
7834 PR sanitizer/55702
33159866 7835 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
71c581e7 7836
4a32ef80
KT
78372013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7838
7839 PR target/56809
7840 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
7841 next_real_insn.
7842 (thumb1_output_casesi): Likewise.
7843 (thumb2_output_casesi): Likewise.
7844
1b2253d4
RB
78452013-04-03 Richard Biener <rguenther@suse.de>
7846
7847 PR tree-optimization/56817
7848 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
7849 Split out ...
7850 (tree_unroll_loops_completely_1): ... new function to manually
7851 walk the loop tree, properly defering outer loops of unrolled
7852 loops to later iterations.
7853
38000232
MG
78542013-04-03 Marc Glisse <marc.glisse@inria.fr>
7855
7856 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
7857 (vectorizable_load): Likewise.
7858 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
7859 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
7860
3fa35298
MG
78612013-04-03 Marc Glisse <marc.glisse@inria.fr>
7862
7863 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
7864 BIT_FIELD_REF.
7865
b3d45ff0
UW
78662013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7867
7868 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
7869
ec9202a8
BC
78702013-04-03 Bin Cheng <bin.cheng@arm.com>
7871
7872 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
7873
6805bd36
MG
78742013-04-03 Marc Glisse <marc.glisse@inria.fr>
7875
7876 PR tree-optimization/56790
33159866
UB
7877 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
7878 folding.
6805bd36 7879
da694a77
MG
78802013-04-03 Marc Glisse <marc.glisse@inria.fr>
7881
7882 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
7883 Handle VEC_MERGE.
7884 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
7885 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
7886 equal arguments.
7887
4e7d7b3d
JJ
78882013-04-03 Jakub Jelinek <jakub@redhat.com>
7889
7890 PR c/19449
7891 * tree.h (force_folding_builtin_constant_p): New decl.
7892 * builtins.c (force_folding_builtin_constant_p): New variable.
7893 (fold_builtin_constant_p): Fold immediately also if
7894 force_folding_builtin_constant_p.
7895
e6c9d234
RB
78962013-04-03 Richard Biener <rguenther@suse.de>
7897
7898 PR tree-optimization/56812
7899 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
7900 DRs of the same interleaving chain are independent.
7901
984d07dd
JM
79022013-04-02 Jason Merrill <jason@redhat.com>
7903
7904 * gdbinit.in (pbb): Use debug fn.
7905
622849c9
LC
79062013-04-02 Lawrence Crowl <crowl@google.com>
7907
7908 * sese.h (struct ivtype_map_elt_s): Remove unused.
7909 (extern debug_ivtype_map): Remove unused.
7910 (extern eq_ivtype_map_elts): Remove unused.
7911 * sese.c (debug_ivtype_map): Removed unused.
7912 (debug_ivtype_map_1): Removed unused.
7913 (debug_ivtype_elt): Remove unused.
7914 (eq_ivtype_map_elts): Remove unused.
7915
7916
82c0e1a0
KT
79172013-04-02 Kai Tietz <ktietz@redhat.com>
7918
7919 PR target/52790
7920 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
7921 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
33159866
UB
7922 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
7923 function.
82c0e1a0
KT
7924 (legitimize_pe_coff_symbol): Likewise.
7925 (is_imported_p): New helper-function.
7926 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
7927 for Windows x64 targets.
7928 (ix86_expand_prologue): Optimize for pe-coff targets.
7929 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
7930 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
7931 medium/large code-model.
7932 (legitimize_pic_address): Likewise.
7933 (legitimize_tls_address): Likewise.
7934 (ix86_expand_call): Likewise.
7935 (x86_output_mi_thunk): Likewise.
7936 (get_dllimport_decl): Add new beimport argument.
7937 (construct_plt_address): Don't assert for x64 pe-coff targets.
7938 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
7939 targets.
7940 (SYMBOL_FLAG_STUBVAR): New macro.
7941 (SYMBOL_REF_STUBVAR_P): Likewise.
7942 * config/i386/winnt.c (stub_list): New structure.
7943 (stub_head): New local variable.
7944 (i386_pe_record_stub): New function.
7945 (i386_pe_file_end): Emit refptr-stubs.
7946
5d751b0c
JJ
79472013-04-02 Jakub Jelinek <jakub@redhat.com>
7948
09bb4c99
JJ
7949 PR rtl-optimization/56745
7950 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
7951 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
7952
a1d8947a
JJ
7953 PR c++/34949
7954 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
7955 and both of them are MEM_REFs, just compare first argument for
7956 equality and attempt to deal even with differing offsets.
7957
5d751b0c
JJ
7958 PR c++/34949
7959 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
7960 of gimple_clobber_p to be MEM_REF.
7961 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
7962 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
7963 after gimplification.
7964 * asan.c (get_mem_ref_of_assignment): Don't instrument
7965 gimple_clobber_p stmts.
7966 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
7967 gimple_clobber_p stmt if they have MEM_REF lhs and
7968 are dead because of another gimple_clobber_p stmt.
7969 * tree-ssa-live.c (clear_unused_block_pointer): Treat
7970 gimple_clobber_p stmts like debug stmts.
7971 (remove_unused_locals): Remove clobbers with MEM_REF lhs
7972 that refer to unused VAR_DECLs or uninitialized values.
7973 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
7974 gimple_clobber_p stmts if they refer to removed parameters.
7975 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
7976 formatting.
7977
e594716a
UB
79782013-04-02 Uros Bizjak <ubizjak@gmail.com>
7979
7980 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
7981 using SWI48 mode attribute.
7982
7a80735b
WM
79832013-04-02 Wei Mi <wmi@google.com>
7984
7985 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
7986 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
7987 *<rotate_insn><mode>3_mask in i386.md.
7988
f423a9e4
AI
79892013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
7990
7991 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
7992
90eb75f2
RB
79932013-04-02 Richard Biener <rguenther@suse.de>
7994
7995 PR tree-optimization/56778
7996 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
7997 Runtime alias tests are not supported for gather loads.
7998 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
7999 stmts referenced from SSA operands before updating SSA form.
8000
d8c69a92
IC
80012013-04-02 Ian Caulfield <ian.caulfield@arm.com>
8002 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8003
8004 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
e594716a
UB
8005 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
8006 * config/arm/cortex-a53.md: New file.
8007 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
8008 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
8009 * config/arm/arm.c (arm_issue_rate): Likewise.
8010 * config/arm/arm-tune.md: Regenerate
8011 * config/arm/arm-tables.opt: Regenerate.
8012 * config/arm/arm-cores.def: Add cortex-a53.
d8c69a92 8013
239eb04c
ZC
80142013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
8015
8016 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
8017 non-static link.
8018
c902d3c8
SN
80192013-04-02 Sofiane Naci <sofiane.naci@arm.com>
8020
d8c69a92
IC
8021 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
8022 scalar load/store operations using B/H registers.
c902d3c8
SN
8023 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
8024
051d0e2f
SN
80252013-04-02 Sofiane Naci <sofiane.naci@arm.com>
8026
8027 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
8028 scalar move.
8029 * config/aarch64/aarch64.c
8030 (aarch64_simd_scalar_immediate_valid_for_move): New.
8031 * config/aarch64/aarch64-protos.h
8032 (aarch64_simd_scalar_immediate_valid_for_move): New.
8033 * config/aarch64/constraints.md (Dh, Dq): New.
8034 * config/aarch64/iterators.md (hq): New.
8035
0ee1e3d9
EB
80362013-04-02 Eric Botcazou <ebotcazou@adacore.com>
8037
8038 * reorg.c (get_branch_condition): Deal with conditional returns.
8039 (fill_simple_delay_slots): Remove dead code dealing with jumps.
8040
136fb3f7
WM
80412013-04-01 Wei Mi <wmi@google.com>
8042
8043 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
8044 Truncate operand 2 using %b asm operand modifier.
8045 (*<shift_insn><mode>3_mask): Ditto.
8046 (*<rotate_insn><mode>3_mask): Ditto.
8047
6388c738
SB
80482013-04-01 Steven Bosscher <steven@gcc.gnu.org>
8049
8050 PR middle-end/56798
8051 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
8052
f7a4d826
KK
80532013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
8054
8055 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
8056 of next_real_insn.
8057 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
8058
4b943a49
LC
80592013-03-30 Lawrence Crowl <crowl@google.com>
8060
8061 * dse.c (clear_alias_sets): Remove never set.
8062 (disqualified_clear_alias_sets): Remove never set.
8063 (clear_alias_mode_pool): Remove never set.
8064 (dse_step0): Remove condition that is never true.
8065 (canon_address): Remove condition that is never true.
8066 (dse_step7): Remove condition that is never true.
8067 (rest_of_handle_dse): Remove condition that is never true.
8068 (rest_of_handle_dse::did_global): Remove never read from above.
8069 (dse_step2_spill): Remove never called from above.
8070 (dse_step5_spill): Remove never called from above.
8071
39718607
SB
80722013-03-30 Steven Bosscher <steven@gcc.gnu.org>
8073
da5c6bde
SB
8074 * doc/md.texi (Standard Names) <casesi>: Update documentation for
8075 JUMP_TABLE_DATA changes.
8076 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
8077 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
8078 (Insns) <jump_table_data>: New entry.
8079 * doc/tm.texi: Regenerate.
8080
39718607
SB
8081 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
8082
8083 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
8084 for table jump at the end of a basic block using tablejump_p.
8085 * targhooks.c (default_invalid_within_doloop): Likewise.
8086 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
8087 target hook implementation that is identical to the default hook.
8088 (rs6000_invalid_within_doloop): Remove.
8089
8090 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
8091 unused variable from tablejump_p call.
8092
8093 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
8094 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
8095 (INSN_DELETED_P): Likewise.
8096 (emit_jump_table_data): New prototype.
8097 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
8098 after 4th as unused.
8099 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
8100 * sched-vis.c (print_insn): Likewise.
8101 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
8102 insn for compatibility with back ends that use next_active_insn to
8103 identify jump table data.
8104 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
8105 (remove_insn): Likewise.
8106 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
8107 to be emitted.
8108 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
8109 (emit_jump_table_data): New function.
8110
8111 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
8112 basic block, a JUMP_TABLE_DATA never is.
8113 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
8114 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
8115 off from code handling real insns.
8116 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
8117 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
8118 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
8119 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
8120 is not a NONDEBUG_INSN_P.
8121 * ira-costs.c (scan_one_insn): Likewise.
8122 * jump.c (mark_all_labels): Likewise.
8123 (mark_jump_label_1): Likewise.
8124 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
8125 * lra.c (get_insn_freq): Expect all insns reaching here to be in
8126 a basic block.
8127 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
8128 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
8129 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
8130 JUMP_TABLE_DATA_P insns.
8131 (calculate_elim_costs_all_insns): Likewise.
8132 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
8133 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
8134 (delete_output_reload): Code style fixups.
8135 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
8136 insn flags on this non-insn.
8137 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
8138 as scheduling barriers, for pre-change compatibility.
8139 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
8140 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
8141
8142 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
8143 redundant JUMP_TABLE_DATA_P test.
8144 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
8145 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
8146 (frv_for_each_packet): Likewise.
8147 * config/i386/i386.c (min_insn_size): Likewise.
8148 (ix86_avoid_jump_mispredicts): Likewise.
8149 * config/m32r/m32r.c (m32r_is_insn): Likewise.
8150 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
8151 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
8152 (mips16_insn_length): Robustify.
8153 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
8154 (mips16_split_long_branches): Likewise.
8155 * config/pa/pa.c (pa_combine_instructions): Likewise.
8156 * config/rs6000/rs6000.c (get_next_active_insn): Treat
8157 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
8158 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
8159 as contributing to pool range lengths.
8160 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
8161 Remove redundant JUMP_TABLE_DATA_P test.
8162 (sh_loop_align): Likewise.
8163 (split_branches): Likewise.
8164 (sh_insn_length_adjustment): Likewise.
8165 * config/spu/spu.c (get_branch_target): Likewise.
8166
0208f7da
JH
81672013-03-29 Jan Hubicka <jh@suse.cz>
8168
8169 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
8170 gcov streaming; stream hot bb threshold to ltrans.
8171 * predict.c (get_hot_bb_threshold): Break out from ....
8172 (maybe_hot_count_p): ... here.
8173 (set_hot_bb_threshold): New function.
8174 * lto-section-in.c (lto_section_name): Add profile.
8175 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
8176 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
8177 and data-streamer.h
8178 (histogram_entry): New structure.
8179 (histogram, histogram_pool): New global vars.
8180 (histogram_hash): New structure.
8181 (histogram_hash::hash): New method.
8182 (histogram_hash::equal): Likewise.
8183 (account_time_size): New function.
8184 (cmp_counts): New function.
8185 (dump_histogram): New function.
8186 (ipa_profile_generate_summary): New function.
8187 (ipa_profile_write_summary): New function.
8188 (ipa_profile_read_summary): New function.
8189 (ipa_profile): Decide on threshold.
e594716a
UB
8190 (pass_ipa_profile): Add ipa_profile_write_summary and
8191 ipa_profile_read_summary.
0208f7da
JH
8192 * Makefile.in (ipa.o): Update dependencies.
8193 * lto-streamer.h (LTO_section_ipa_profile): New section.
8194
5a6ccc94
GDR
81952013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
8196
8197 * tree.h (VAR_P): New.
8198
39385fa6
PC
81992013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
8200
8201 PR lto/56777
8202 * doc/invoke.texi ([-fwhole-program]): Fix typo.
8203
34f0d87a
SB
82042013-03-29 Steven Bosscher <steven@gcc.gnu.org>
8205
8206 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
8207 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
8208 (control_flow_insn_p): Likewise.
8209 * cfgrtl.c (duplicate_insn_chain): Likewise.
8210 * final.c (get_attr_length_1): Likewise.
8211 (shorten_branches): Likewise.
8212 (final_scan_insn): Likewise.
8213 * function.c (instantiate_virtual_regs): Likewise.
8214 * gcse.c (insert_insn_end_basic_block): Likewise.
8215 * ira-costs.c (scan_one_insn): Likewise.
8216 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
8217 * lra.c (check_rtl): Likewise.
8218 * reload1.c (elimination_costs_in_insn): Likewise.
8219 * reorg.c (follow_jumps): Likewise.
8220
8221 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
8222 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
8223 (thumb_far_jump_used_p): Likewise.
8224 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
8225 (workaround_speculation): Likewise.
8226 (add_sched_insns_for_speculation): Likewise.
8227 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
8228 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
8229 (frv_for_each_packet): Likewise.
8230 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
8231 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
8232 (final_emit_insn_group_barriers): Likewise.
8233 * config/m32r/m32r.c (m32r_is_insn): Likewise.
8234 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
8235 (mips16_insn_length): Likewise.
8236 * config/pa/pa.c (pa_reorg): Likewise.
8237 (pa_combine_instructions): Likewise.
8238 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
8239 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
8240 (sh_reorg): Likewise.
8241 (split_branches): Likewise.
8242 * config/spu/spu.c (get_branch_target): Likewise.
8243
8244 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
8245 JUMP_TABLE_DATA_P.
8246
4ac761b0
KY
82472013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
8248
39385fa6 8249 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
4ac761b0
KY
8250 Fix declaration name.
8251
58a49189
LC
82522013-03-28 Lawrence Crowl <crowl@google.com>
8253
8254 * graphds.h (struct graph.indicies): Remove unused.
8255 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
8256 (SCOP_ORIGINAL_PDDRS): Remove unused.
8257 * sese.h (extern insert_loop_close_phis): Removed unused.
8258 (extern insert_guard_phis): Removed unused.
8259 (extern ivtype_map_elt_info): Removed unused.
8260 (new_ivtype_map_elt): Removed unused.
8261 * sese.c (ivtype_map_elt_info): Removed unused.
8262
7b3b6ae4
LC
82632013-03-28 Lawrence Crowl <crowl@google.com>
8264
8265 * Makefile.in: Add several missing include dependences.
8266 (DUMPFILE_H): New.
8267 (test-dump.o): New. This object is not added to any executable,
8268 but is present for ad-hoc testing.
8269 * bitmap.c
8270 (debug (const bitmap_head_def &)): New.
8271 (debug (const bitmap_head_def *)): New.
8272 * bitmap.h
8273 (extern debug (const bitmap_head_def &)): New.
8274 (extern debug (const bitmap_head_def *)): New.
8275 * cfg.c
8276 (debug (edge_def &)): New.
8277 (debug (edge_def *)): New.
8278 * cfghooks.c
8279 (debug (basic_block_def &)): New.
8280 (debug (basic_block_def *)): New.
8281 * dumpfile.h
8282 (dump_node (const_tree, int, FILE *)): Correct source file.
8283 * dwarf2out.c
8284 (debug (die_struct &)): New.
8285 (debug (die_struct *)): New.
8286 * dwarf2out.h
8287 (extern debug (die_struct &)): New.
8288 (extern debug (die_struct *)): New.
8289 * gimple-pretty-print.c
8290 (debug (gimple_statement_d &)): New.
8291 (debug (gimple_statement_d *)): New.
8292 * gimple-pretty-print.h
8293 (extern debug (gimple_statement_d &)): New.
8294 (extern debug (gimple_statement_d *)): New.
8295 * ira-build.c
8296 (debug (ira_allocno_copy &)): New.
8297 (debug (ira_allocno_copy *)): New.
8298 (debug (ira_allocno &)): New.
8299 (debug (ira_allocno *)): New.
8300 * ira-int.h
8301 (extern debug (ira_allocno_copy &)): New.
8302 (extern debug (ira_allocno_copy *)): New.
8303 (extern debug (ira_allocno &)): New.
8304 (extern debug (ira_allocno *)): New.
8305 * ira-lives.c
8306 (debug (live_range &)): New.
8307 (debug (live_range *)): New.
8308 * lra-int.h
8309 (debug (lra_live_range &)): New.
8310 (debug (lra_live_range *)): New.
8311 * lra-lives.c
8312 (debug (lra_live_range &)): New.
8313 (debug (lra_live_range *)): New.
8314 * omega.c
8315 (debug (omega_pb_d &)): New.
8316 (debug (omega_pb_d *)): New.
8317 * omega.h
8318 (extern debug (omega_pb_d &)): New.
8319 (extern debug (omega_pb_d *)): New.
8320 * print-rtl.c
8321 (debug (const rtx_def &)): New.
8322 (debug (const rtx_def *)): New.
8323 * print-tree.c
8324 (debug_tree (tree): Move within file.
8325 (debug_raw (const tree_node &)): New.
8326 (debug_raw (const tree_node *)): New.
8327 (dump_tree_via_hooks (const tree_node *, int)): New.
8328 (debug (const tree_node &)): New.
8329 (debug (const tree_node *)): New.
8330 (debug_verbose (const tree_node &)): New.
8331 (debug_verbose (const tree_node *)): New.
8332 (debug_head (const tree_node &)): New.
8333 (debug_head (const tree_node *)): New.
8334 (debug_body (const tree_node &)): New.
8335 (debug_body (const tree_node *)): New.
8336 (debug_vec_tree (tree): Move and reimplement in terms of dump.
8337 (debug (vec<tree, va_gc> &)): New.
8338 (debug (vec<tree, va_gc> *)): New.
8339 * rtl.h
8340 (extern debug (const rtx_def &)): New.
8341 (extern debug (const rtx_def *)): New.
8342 * sbitmap.c
8343 (debug_raw (simple_bitmap_def &)): New.
8344 (debug_raw (simple_bitmap_def *)): New.
8345 (debug (simple_bitmap_def &)): New.
8346 (debug (simple_bitmap_def *)): New.
8347 * sbitmap.h
8348 (extern debug (simple_bitmap_def &)): New.
8349 (extern debug (simple_bitmap_def *)): New.
8350 (extern debug_raw (simple_bitmap_def &)): New.
8351 (extern debug_raw (simple_bitmap_def *)): New.
8352 * sel-sched-dump.c
8353 (debug (vinsn_def &)): New.
8354 (debug (vinsn_def *)): New.
8355 (debug_verbose (vinsn_def &)): New.
8356 (debug_verbose (vinsn_def *)): New.
8357 (debug (expr_def &)): New.
8358 (debug (expr_def *)): New.
8359 (debug_verbose (expr_def &)): New.
8360 (debug_verbose (expr_def *)): New.
8361 (debug (vec<rtx> &)): New.
8362 (debug (vec<rtx> *)): New.
8363 * sel-sched-dump.h
8364 (extern debug (vinsn_def &)): New.
8365 (extern debug (vinsn_def *)): New.
8366 (extern debug_verbose (vinsn_def &)): New.
8367 (extern debug_verbose (vinsn_def *)): New.
8368 (extern debug (expr_def &)): New.
8369 (extern debug (expr_def *)): New.
8370 (extern debug_verbose (expr_def &)): New.
8371 (extern debug_verbose (expr_def *)): New.
8372 (extern debug (vec<rtx> &)): New.
8373 (extern debug (vec<rtx> *)): New.
8374 * sel-sched-ir.h
8375 (_list_iter_cond_expr): Make inline instead of static.
8376 * sreal.c
8377 (debug (sreal &)): New.
8378 (debug (sreal *)): New.
8379 * sreal.h
8380 (extern debug (sreal &)): New.
8381 (extern debug (sreal *)): New.
8382 * tree.h
8383 (extern debug_raw (const tree_node &)): New.
8384 (extern debug_raw (const tree_node *)): New.
8385 (extern debug (const tree_node &)): New.
8386 (extern debug (const tree_node *)): New.
8387 (extern debug_verbose (const tree_node &)): New.
8388 (extern debug_verbose (const tree_node *)): New.
8389 (extern debug_head (const tree_node &)): New.
8390 (extern debug_head (const tree_node *)): New.
8391 (extern debug_body (const tree_node &)): New.
8392 (extern debug_body (const tree_node *)): New.
8393 (extern debug (vec<tree, va_gc> &)): New.
8394 (extern debug (vec<tree, va_gc> *)): New.
8395 * tree-cfg.c
8396 (debug (struct loop &)): New.
8397 (debug (struct loop *)): New.
8398 (debug_verbose (struct loop &)): New.
8399 (debug_verbose (struct loop *)): New.
8400 * tree-dump.c: Add header dependence.
8401 * tree-flow.h
8402 (extern debug (struct loop &)): New.
8403 (extern debug (struct loop *)): New.
8404 (extern debug_verbose (struct loop &)): New.
8405 (extern debug_verbose (struct loop *)): New.
8406 * tree-data-ref.c
8407 (debug (data_reference &)): New.
8408 (debug (data_reference *)): New.
8409 (debug (vec<data_reference_p> &)): New.
8410 (debug (vec<data_reference_p> *)): New.
8411 (debug (vec<ddr_p> &)): New.
8412 (debug (vec<ddr_p> *)): New.
8413 * tree-data-ref.h
8414 (extern debug (data_reference &)): New.
8415 (extern debug (data_reference *)): New.
8416 (extern debug (vec<data_reference_p> &)): New.
8417 (extern debug (vec<data_reference_p> *)): New.
8418 (extern debug (vec<ddr_p> &)): New.
8419 (extern debug (vec<ddr_p> *)): New.
8420 * tree-ssa-alias.c
8421 (debug (pt_solution &)): New.
8422 (debug (pt_solution *)): New.
8423 * tree-ssa-alias.h
8424 (extern debug (pt_solution &)): New.
8425 (extern debug (pt_solution *)): New.
8426 * tree-ssa-alias.c
8427 (debug (_var_map &)): New.
8428 (debug (_var_map *)): New.
8429 (debug (tree_live_info_d &)): New.
8430 (debug (tree_live_info_d *)): New.
8431 * tree-ssa-alias.h
8432 (extern debug (_var_map &)): New.
8433 (extern debug (_var_map *)): New.
8434 (extern debug (tree_live_info_d &)): New.
8435 (extern debug (tree_live_info_d *)): New.
8436
be77e1e5
JH
84372013-03-28 Jan Hubicka <jh@suse.cz>
8438
8439 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
8440
777e6976
IB
84412013-03-28 Ian Bolton <ian.bolton@arm.com>
8442
8443 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
8444 record only when desired or required.
8445
9cd347ae
UB
84462013-03-28 Uros Bizjak <ubizjak@gmail.com>
8447
8448 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
8449 *vec_extractv2di_1_rex64. Use x64 isa attribute.
8450
33159866 84512013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2a1d1991
N
8452
8453 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
8454 (*andsi3_compare0_uxtw): New pattern.
8455 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
8456 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
8457
89ab31c1
JH
84582013-03-28 Jan Hubicka <jh@suse.cz>
8459
8460 * data-streamer-in.c (streamer_read_gcov_count): New function.
8461 * gimple-streamer-out.c: Include value-prof.h.
8462 (output_gimple_stmt): Output histogram.
8463 (output_bb): Use streamer_write_gcov_count.
8464 * value-prof.c: Include data-streamer.h
8465 (dump_histogram_value): Add HIST_TYPE_MAX.
8466 (stream_out_histogram_value): New function.
8467 (stream_in_histogram_value): New function.
8468 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
8469 (stream_out_histogram_value, stream_in_histogram_value): Declare.
8470 * data-streamer-out.c (streamer_write_gcov_count): New function.
8471 (streamer_write_gcov_count_stream): New function.
8472 * lto-cgraph.c (lto_output_edge): Update counter streaming.
8473 (lto_output_node): Likewise.
8474 (input_node, input_edge): Likewise.
8475 * lto-streamer-out.c (output_cfg): Update streaming.
8476 * lto-streamer-in.c (input_cfg): Likewise.
8477 * data-streamer.h (streamer_write_gcov_count,
8478 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
8479 * gimple-streamer-in.c: Include value-prof.h
8480 (input_gimple_stmt): Input histograms.
8481 (input_bb): Update profile streaming.
8482
e594716a 84832013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
b4c73eed 8484
33159866 8485 * genmodes.c (emit_max_int): New function.
8697be17 8486 (emit_insn_modes_h): Added call to emit_max_function.
39385fa6
PC
8487 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
8488 Added doc.
8697be17 8489 * machmode.def: Fixed comment.
89ab31c1 8490
e594716a 84912013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8697be17
KZ
8492
8493 * combine.c (try_combine): Removed useless assert.
b4c73eed
KZ
8494 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
8495
74946978
MP
84962013-03-28 Marek Polacek <polacek@redhat.com>
8497 Richard Biener <rguenther@suse.de>
8498
8499 PR tree-optimization/56695
8500 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
8501 build signed result of a vector comparison.
8502 * tree-cfg.c (verify_gimple_comparison): Check that a result
8503 of a vector comparison has signed type.
8504
a64b9c26
RB
85052013-03-28 Richard Biener <rguenther@suse.de>
8506
8507 PR tree-optimization/37021
8508 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
8509 do not restrict gaps between groups.
8510 * tree-vect-stmts.c (vectorizable_load): Properly account for
8511 a gap between groups.
8512
a9dc2a2f
EB
85132013-03-28 Eric Botcazou <ebotcazou@adacore.com>
8514
8515 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
8516 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
8517 is not enabled.
8518
53cb97f9
GP
85192013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
8520
8521 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
8522 * doc/extend.texi (Named Address Spaces): Ditto.
8523 (Variable Attributes): Ditto.
8524
b802ae5c
KT
85252013-03-27 Kai Tietz <ktietz@redhat.com>
8526
eddae10a
KT
8527 * config.build: Add support for cygwin x64 target.
8528 * config.gcc: Likewise.
8529 * config.host: Likewise.
8530 * configure.ac: Likewise
8531 * configure: Regenerated.
b802ae5c 8532
8269de54
KT
85332013-03-27 Kai Tietz <ktietz@redhat.com>
8534
8535 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
8536 * config/i386/t-cygwin-w64: New file.
8537 * config/i386/cygwin-w64.h: New file.
8538 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
8539 and add support for x64-cygwin target.
8540 (CPP_SPEC): Likewise.
8541 (CXX_WRAP_SPEC_LIST): Undefine before define.
8542 (LIBGCJ_SONAME): Use 15 as version.
8543
f49b33cb
RB
85442013-03-27 Richard Biener <rguenther@suse.de>
8545
8546 PR tree-optimization/56716
8547 * tree-ssa-structalias.c (perform_var_substitution): Adjust
8548 dumping for ref nodes.
8549
b37a6ce5
MJ
85502013-03-27 Martin Jambor <mjambor@suse.cz>
8551
8552 PR tree-optimization/55334
8553 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
8554 restricted pointers to arrays.
8555
9469b9b2
GDR
85562013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
8557
8558 * Makefile.in (.SUFFIXES): Add .cc.
8559 (.c.o): Apply same recipe for implicit rule .cc.o.
8560
7d24f650
RB
85612013-03-27 Richard Biener <rguenther@suse.de>
8562
8563 PR tree-optimization/37021
8564 * tree-vect-data-refs.c (vect_check_strided_load): Allow
8565 REALPART/IMAGPART_EXPRs around the supported refs.
8566 * tree-ssa-structalias.c (find_func_aliases): Assume that
8567 floating-point values are not used to transfer pointers.
8568
2f251a05
AI
85692013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
8570
39385fa6
PC
8571 * target.def (TARGET_HAS_IFUNC_P): New target hook.
8572 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
8573 * doc/tm.texi: Regenerate.
8574 * targhooks.h (default_has_ifunc_p): New.
8575 * targhooks.c (default_has_ifunc_p): Ditto.
8576 * config/linux-protos.h: New file.
8577 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
2f251a05
AI
8578 this hook for linux which disables support of indirect functions in
8579 android.
39385fa6
PC
8580 * config/linux-android.c: New file.
8581 * config/t-linux-android.c: Ditto.
8582 * config.gcc: Added new object file linux-android.o.
8583 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
2f251a05 8584 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
39385fa6 8585 * varasm.c (do_assemble_alias): Likewise.
2f251a05
AI
8586 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
8587 doesn't support indirect functions.
8588 * configure: Regenerate.
8589
78b4e425
BC
85902013-03-27 Bin Cheng <bin.cheng@arm.com>
8591
8592 PR target/56102
8593 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
8594 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
8595 mult-word mode.
8596
a5ba7b92
AK
85972013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8598
8599 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
8600
be624986
TG
86012013-03-27 Terry Guo <terry.guo@arm.com>
8602
8603 * config/arm/arm-cores.def: Added core cortex-r7.
8604 * config/arm/arm-tune.md: Regenerated.
8605 * config/arm/arm-tables.opt: Regenerated.
8606 * doc/invoke.texi: Added entry for core cortex-r7.
8607
0a514f47
WL
86082013-03-27 Walter Lee <walt@tilera.com>
8609
8610 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
8611 double-decrement of next_scratch_regno.
8612
9332b0d2
WL
86132013-03-27 Walter Lee <walt@tilera.com>
8614
801d9b2a 8615 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
9332b0d2
WL
8616 input operands.
8617 (insn_v1mulus): Ditto.
8618 (insn_v2muls): Ditto.
8619
f54ea5dd
WL
86202013-03-27 Walter Lee <walt@tilera.com>
8621
e594716a 8622 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
f54ea5dd
WL
8623 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
8624
bf60f4ca
WL
86252013-03-27 Walter Lee <walt@tilera.com>
8626
e594716a 8627 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
bf60f4ca
WL
8628 (*sibcall_value): Ditto.
8629
e3b51eeb
WL
86302013-03-27 Walter Lee <walt@tilera.com>
8631
8632 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
8633 (insn_mnz_v8qi): ... this ...
8634 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
8635 vector equivalent.
8636 (insn_v<n>mnz): Replaced by ...
8637 (insn_v1mnz): ... this ...
8638 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
8639 equivalent.
8640 (insn_mz_<mode>): Replaced by ...
8641 (insn_mz_v8qi): ... this ...
8642 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
8643 vector equivalent.
8644 (insn_v<n>mz): Replaced by ...
8645 (insn_v1mz): ... this ...
8646 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
8647 equivalent.
8648
4fc7b145
EB
86492013-03-26 Eric Botcazou <ebotcazou@adacore.com>
8650
8651 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
8652
6f33817e
RM
86532013-03-26 Roland McGrath <mcgrathr@google.com>
8654
8655 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
8656 than fprintf with a non-constant, non-format string.
8657
93a4145b
UB
86582013-03-26 Uros Bizjak <ubizjak@gmail.com>
8659
8660 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
8661 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
8662 operand 0 predicate.
8663 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
8664 attribute. Use general_x64nomem_operand as operand 1 predicate.
8665 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
8666 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
8667 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
8668 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
8669 (mov<mode>_insv_1): Remove expander. Merge insn with
8670 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
8671 Use general_x64nomem_operand as operand 1 predicate.
8672 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
8673 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
8674 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
8675 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
8676 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
8677 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
8678 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
8679 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
8680 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
8681 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
8682 (general_x64nomem_operand): Ditto.
8683
c6a9ed5a 86842013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
df599020
SH
8685
8686 * config/rtems.opt: Add -pthread option.
8687
31b0a960
RB
86882013-03-26 Richard Biener <rguenther@suse.de>
8689
93a4145b
UB
8690 * alias.c (find_base_term): Avoid redundant and not used recursion.
8691 (base_alias_check): Get the initial base term from the caller.
31b0a960
RB
8692 (true_dependence_1): Compute and pass base terms to base_alias_check.
8693 (write_dependence_p): Likewise.
8694 (may_alias_p): Likewise.
8695
79517551
SN
86962013-03-26 Sofiane Naci <sofiane.naci@arm.com>
8697
8698 * config/aarch64/aarch64.c (aarch64_classify_address): Support
8699 PC-relative load in SI modes and above only.
8700
a76213b9
XQ
87012013-03-26 Xinyu Qi <xyqi@marvell.com>
8702
8703 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
33159866
UB
8704 * config/arm/iwmmxt.md (WCGR0): Update.
8705 (WCGR1, WCGR2, WCGR3): Likewise.
a76213b9 8706
37ff9355
UB
87072013-03-26 Uros Bizjak <ubizjak@gmail.com>
8708
8709 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
8710 Use x64 and nox64 isa attributes.
8711
30b0317c
RB
87122013-03-26 Richard Biener <rguenther@suse.de>
8713
8714 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
8715 alignment computations and rely on get_object_alignment_1
8716 for the !TYPE_P case.
8717 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
8718
cbcdb140
WL
87192013-03-26 Walter Lee <walt@tilera.com>
8720
8721 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
8722 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
8723
dd884525 87242013-03-25 Jeff Law <law@redhat.com>
be672e08 8725
33159866
UB
8726 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
8727 check for INTEGRAL_TYPE_P that was missing due to checking in
dd884525
JL
8728 wrong version of prior patch.
8729
0051d3ec
WL
87302013-03-25 Walter Lee <walt@tilera.com>
8731
8732 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
8733 TILEGX_INSN_SHUFFLEBYTES1.
8734 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
8735 shufflebytes1.
8736 (tilegx_builtins): Ditto.
8737 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
8738
065a3605
WL
87392013-03-25 Walter Lee <walt@tilera.com>
8740
8741 * config/tilegx/tilegx.md (floatsisf2): New pattern.
0051d3ec
WL
8742 (floatunssisf2): New pattern.
8743 (floatsidf2): New pattern.
8744 (floatunssidf2): New pattern.
065a3605 8745
5b2a3c82
WL
87462013-03-25 Walter Lee <walt@tilera.com>
8747
8748 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
8749 tests for constraint J, K, N, P.
8750
192ea533
WL
87512013-03-25 Walter Lee <walt@tilera.com>
8752
8753 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
8754 Use indirect/pcrel encoding.
8755 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
8756 Ditto.
8757
855e0d0b
SE
87582013-03-25 Steve Ellcey <sellcey@mips.com>
8759
8760 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
8761 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
8762 * config/mips/mips.c (mips_option_override): Set IMADD default.
8763 * config/mips/mips.h (PTF_AVOID_IMADD): New.
8764 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
8765 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
8766 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
8767 * doc/invoke.texi (-mimadd/-mno-imadd): New.
8768
39e45653
JL
87692013-03-25 Jeff Law <law@redhat.com>
8770
8771 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
8772 slightly to avoid creating and folding useless trees. Simplify
8773 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
8774
7482c470
UB
87752013-03-25 Uros Bizjak <ubizjak@gmail.com>
8776
8777 * config/i386/i386.md (*zero_extendsidi2): Merge with
8778 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
8779 * config/i386/predicates.md (x86_64_zext_operand): Rename from
8780 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
8781 targets. Clarify comment.
8782
4a53743e
MJ
87832013-03-25 Martin Jambor <mjambor@suse.cz>
8784
8785 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
8786 pass-through jump functions differently.
8787 (ipa_read_jump_function): Likewise. Also use setter functions to set
8788 up jump functions.
8789
162712de
MJ
87902013-03-25 Martin Jambor <mjambor@suse.cz>
8791
8792 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
8793 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
8794 process it.
8795 (ipa_get_indirect_edge_target): New function.
8796 (devirtualization_time_bonus): New parameter known_aggs, pass it to
8797 ipa_get_indirect_edge_target. Update all callers.
8798 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
8799 ipa_get_indirect_edge_target_1 instead of calling
8800 ipa_get_indirect_edge_target.
8801 (create_specialized_node): Pass aggvlas to
8802 ipcp_discover_new_direct_edges.
8803
a5a4c20a
KT
88042013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8805
8806 * config/arm/arm.md (f_sels, f_seld): New types.
8807 (*cmov<mode>): New pattern.
8808 * config/arm/predicates.md (arm_vsel_comparison_operator): New
8809 predicate.
8810
f992b9fc
KT
88112013-03-25 Kai Tietz <ktietz@redhat.com>
8812
8813 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
8814 POSIX-printf for mingw-hosted builds.
8815
c16fd676
RB
88162013-03-25 Richard Biener <rguenther@suse.de>
8817
8818 PR middle-end/56694
8819 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
8820 must-not-throw stmt location.
8821
5ad29f12
KT
88222013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8823
8824 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
8825 Emit load-acquire versions when acq is true.
8826 (arm_emit_store_exclusive): Add rel parameter.
8827 Emit store-release versions when rel is true.
8828 (arm_split_compare_and_swap): Use acquire-release instructions
8829 instead.
8830 of barriers when appropriate.
8831 (arm_split_atomic_op): Likewise.
8832 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
8833 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
8834 (VUNSPEC_SLX): Likewise.
8835 (VUNSPEC_LDA): Likewise.
8836 (VUNSPEC_STL): Likewise.
8837 * config/arm/sync.md (atomic_load<mode>): New pattern.
8838 (atomic_store<mode>): Likewise.
8839 (arm_load_acquire_exclusive<mode>): Likewise.
8840 (arm_load_acquire_exclusivesi): Likewise.
8841 (arm_load_acquire_exclusivedi): Likewise.
8842 (arm_store_release_exclusive<mode>): Likewise.
8843
03a7dddb
CM
88442013-03-25 Catherine Moore <clm@codesourcery.com>
8845
8846 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
8847 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
8848 * config/mip/predicates.md (lwsp_swsp_operand,
8849 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
8850 sb16_operand, db4_operand, db7_operand, ib3_operand,
8851 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
8852 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
8853 andi16_operand): New predicates.
8854 * config/mips/mips.md (compression): New attribute.
8855 (enabled): New attribute.
8856 (length): Consider compression in computing length.
8857 (shift_compression): New code attribute.
8858 (*add<mode>3): New operands. Record compression.
8859 (sub<mode>3): Likewise.
8860 (one_cmpl<mode>2): Likewise.
8861 (*and<mode>3): Likewise.
8862 (*ior<mode>3): Likewise.
8863 (unnamed pattern for xor): Likewise.
8864 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
8865 (*<optab><mode>3): Likewise.
8866 (*mov<mode>_internal: Likewise.
8867 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
8868 (mips_unsigned_immediate_p): New.
8869 (umips_lwsp_swsp_address_p): New.
8870 (m16_based_address_p): New.
8871 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
8872 (mips_unsigned_immediate_p): New prototype.
8873 (lwsp_swsp_address_p): New prototype.
8874 (m16_based_address_p): New prototype.
8875 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
8876 (mips_signed_immediate_p): New function.
8877 (m16_based_address_p): New function.
8878 (lwsp_swsp_address_p): New function.
8879 (mips_print_operand_punctuation): Recognize short delay slot insns
8880 for microMIPS.add<mode>3"
8881
f35c297f 88822013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
a5784ce6 8883
f35c297f
KT
8884 PR target/56720
8885 * config/arm/iterators.md (v_cmp_result): New mode attribute.
8886 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
8887
051b9446
RB
88882013-03-25 Richard Biener <rguenther@suse.de>
8889
8890 PR tree-optimization/56689
8891 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
8892 any edge.
8893
374001cb
RB
88942013-03-25 Richard Biener <rguenther@suse.de>
8895
8896 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
8897 of bitmap.
8898 (memory_references): Likewise.
8899 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
8900 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
8901 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
8902 (gather_mem_refs_in_loops): Fold into ...
8903 (analyze_memory_references): ... this. Move initialization
8904 to tree_ssa_lim_initialize.
8905 (fill_always_executed_in): Rename to ...
8906 (fill_always_executed_in_1): ... this.
8907 (fill_always_executed_in): Move contains_call computation to
8908 this new function from ...
8909 (tree_ssa_lim_initialize): ... here.
8910 (tree_ssa_lim): Call fill_always_executed_in.
8911
57895947
EB
89122013-03-25 Eric Botcazou <ebotcazou@adacore.com>
8913
8914 * postreload.c (reload_combine): Fix code detecting returns.
8915
1e1b18c1
EB
89162013-03-25 Eric Botcazou <ebotcazou@adacore.com>
8917
8918 * function.c (emit_use_return_register_into_block): On cc0 targets,
8919 do not emit the sequence between cc0 setter and user.
8920
9216baf1
KT
89212013-03-25 Kai Tietz <ktietz@redhat.com>
8922
1e1b18c1
EB
8923 * config/i386/predicates.md (local_symbolic_operand): Interpret
8924 dll-imported symbols as none-local.
9216baf1 8925
76421b44
RB
89262013-03-25 Richard Biener <rguenther@suse.de>
8927
8928 * tree-ssa-loop-im.c (struct depend): Remove.
8929 (struct lim_aux_data): Make depends a vec of gimples.
8930 (free_lim_aux_data): Adjust.
8931 (add_dependency): Likewise.
8932 (set_level): Likewise.
8933
d154bfa2
RB
89342013-03-25 Richard Biener <rguenther@suse.de>
8935
8936 PR middle-end/56434
8937 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
8938 the pointer returned by calls with ECF_MALLOC set.
8939
2cd9804e
UB
89402013-03-24 Uros Bizjak <ubizjak@gmail.com>
8941
acef5fe0
UB
8942 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
8943
89442013-03-24 Uros Bizjak <ubizjak@gmail.com>
8945
8946 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
2cd9804e
UB
8947 using MMXMODE mode iterator.
8948 (*move<mode>_internal): Merge with *movv2sf_internal and
8949 *movv2sf_internal_rex64 using MMXMODE mode iterator.
8950
225ccc68
SB
89512013-03-23 Steven Bosscher <steven@gcc.gnu.org>
8952
85c0f02d
SB
8953 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
8954 (record_last_mem_set_info): Likewise.
8955
225ccc68
SB
8956 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
8957 of XNEWVEC followed by memset.
8958 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
8959
b64925dc
SB
89602013-03-23 Steven Bosscher <steven@gcc.gnu.org>
8961
8962 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
8963 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
8964 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
8965 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
8966 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
8967 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
8968 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
8969 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
8970 BARRIER_P instead of GET_CODE.
8971
b9aaf52e
EB
89722013-03-23 Eric Botcazou <ebotcazou@adacore.com>
8973
8974 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
8975 inaccuracy in the probing code.
8976
8977 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
8978 (ctrapdi4): Likewise.
8979
66de4d7c
EB
89802013-03-23 Eric Botcazou <ebotcazou@adacore.com>
8981
8982 * calls.c (expand_call): Add missing guard to code handling return
8983 of non-BLKmode structures in MSB.
8984 * function.c (expand_function_end): Likewise.
8985
4f25c8fb
EB
89862013-03-23 Eric Botcazou <ebotcazou@adacore.com>
8987
8988 * combine.c (try_combine): Adjust comment. Do not add the set of
8989 insn #0 if the destination indirectly is set or dies in insn #2.
8990 Tidy up code to distribute a new note.
8991
23b7850d
UB
89922013-03-22 Uros Bizjak <ubizjak@gmail.com>
8993
8994 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
8995 also for alternatives 16 and 17.
8996
bed852cf
UB
89972013-03-22 Uros Bizjak <ubizjak@gmail.com>
8998
8999 * config/i386/sse.md (*mov<mode>_internal): Merge with
9000 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
9001 Emit insn template depending on type attribute. Use
9002 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
9003 movd instead of movq mnemonic for interunit moves. Rewrite mode
9004 attribute calculation. Remove unit attribute calculation.
9005 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
9006 Set prefix_data16 attribute for DImode ssemov types.
9007 Use Ym instead of y for SSE-MMX conversion alternatives.
9008 Reorder operand constraints.
9009
1e8a7937
SB
90102013-03-22 Steven Bosscher <steven@gcc.gnu.org>
9011
9012 * df.h (df_insn_delete): Adjust prototype.
9013 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
9014 and let it decide whether mark the basic block dirty.
9015 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
9016 * df-scan.c (df_insn_info_delete): New helper function, split
9017 off from df_insn_delete.
9018 (df_scan_free_bb_info): Use it.
9019 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
9020 Likewise.
9021 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
9022 that the insn is actually an insn and it has a non-NULL basic block.
9023 Do not mark basic block dirty if only deleting a DEBUG_INSN.
9024
e14d094c
RB
90252013-03-22 Richard Biener <rguenther@suse.de>
9026
9027 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
9028 dep_ref members.
9029 (mem_ref_alloc): Do not allocate them.
9030 (refs_independent_p): Do not query or maintain a cache.
9031
e9cf7316
RB
90322013-03-22 Richard Biener <rguenther@suse.de>
9033
9034 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
9035 (gather_mem_refs_in_loops): Do not compute it.
9036 (analyze_memory_references): Do not allocate it.
9037 (tree_ssa_lim_finalize): Do not free it.
9038 (for_all_locs_in_loop): Do not query all_refs_in_loop.
9039
f046e81b
RB
90402013-03-22 Richard Biener <rguenther@suse.de>
9041
9042 * is-a.h (as_a): Use gcc_checking_assert.
bed852cf 9043
a05c0ddf
IB
90442013-03-22 Ian Bolton <ian.bolton@arm.com>
9045
9046 * config/aarch64/aarch64.c (aarch64_print_operand): New
9047 format specifier for printing a constant in hex.
9048 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
9049 format specifier for printing second operand.
9050
c00217fc
RB
90512013-03-22 Richard Biener <rguenther@suse.de>
9052
9053 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
9054 bitmaps.
9055 (gather_mem_refs_in_loops): Perform store accumulation here.
9056 (create_vop_ref_mapping_loop): Remove.
9057 (create_vop_ref_mapping): Likewise.
9058 (analyze_memory_references): Initialize refs_stored_in_loop.
bed852cf 9059 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
c00217fc
RB
9060 (record_indep_loop): Remove.
9061 (record_dep_loop): New function.
9062 (ref_indep_loop_p_1): Adjust to only walk over references
9063 in the loop, not its subloops.
9064 (ref_indep_loop_p): Rename to ...
9065 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
9066 maintaining a more fine-grained cache.
9067 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
9068 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
9069
15d19bf8
RB
90702013-03-22 Richard Biener <rguenther@suse.de>
9071
9072 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
9073 (struct mem_ref): Make accesses_in_loop a vec of a vec of
9074 aggregate mem_ref_loc.
9075 (free_mem_ref_locs): Inline into ...
9076 (memref_free): ... this and adjust.
9077 (mem_ref_alloc): Adjust.
9078 (mem_ref_locs_alloc): Remove.
9079 (record_mem_ref_loc): Adjust.
9080 (get_all_locs_in_loop): Rewrite into ...
9081 (for_all_locs_in_loop): ... this iterator.
9082 (rewrite_mem_ref_loc): New functor.
9083 (rewrite_mem_refs): Use for_all_locs_in_loop.
9084 (sm_set_flag_if_changed): New functor.
9085 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
9086 (ref_always_accessed): New functor.
9087 (ref_always_accessed_p): Use for_all_locs_in_loop.
9088
6f37411d
MG
90892013-03-21 Marc Glisse <marc.glisse@inria.fr>
9090
9091 * tree-pass.h (PROP_gimple_lvec): New.
9092 * passes.c (dump_properties): Handle PROP_gimple_lvec.
9093 (init_optimization_passes): Move pass_lower_vector.
9094 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
9095 PROP_gimple_lvec.
9096 (pass_lower_vector): Provide PROP_gimple_lvec.
9097 (pass_lower_vector_ssa): Likewise.
9098 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
9099
511ef689
MW
91002013-03-21 Mark Wielaard <mjw@redhat.com>
9101
9102 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
9103
cc1df30b
UB
91042013-03-21 Uros Bizjak <ubizjak@gmail.com>
9105
9106 * config/i386/i386.md (*movdi_internal): Disparage slightly
9107 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
9108 conversion alternatives.
9109
c845cfe1
JJ
91102013-03-21 Jakub Jelinek <jakub@redhat.com>
9111
37e99116
JJ
9112 PR middle-end/48087
9113 * diagnostic.def (DK_WERROR): New kind.
9114 * diagnostic.h (werrorcount): Define.
9115 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
9116 promoted to DK_ERROR, increment DK_WERROR counter instead of
9117 DK_ERROR counter.
9118 * toplev.c (toplev_main): Call print_ignored_options even if
9119 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
9120 even if just werrorcount is non-zero.
9121
c845cfe1
JJ
9122 PR debug/55608
9123 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
9124 on failure.
9125 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
9126 (string_cst_pool_decl): New function.
9127 (optimize_one_addr_into_implicit_ptr): New function.
9128 (resolve_addr_in_expr): Optimize DWARF location expression
9129 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
9130 which doesn't live in memory, but has DW_AT_location or
9131 DW_AT_const_value, or refers to a string literal, into
9132 DW_OP_GNU_implicit_pointer.
9133 (optimize_location_into_implicit_ptr): New function.
9134 (resolve_addr): If removing DW_AT_location of a variable because
9135 it was DW_OP_addr of address of the variable, but the variable doesn't
9136 live in memory, try to emit const value attribute for the initializer.
9137
08e0cda6
MG
91382013-03-21 Marc Glisse <marc.glisse@inria.fr>
9139
9140 * tree.h (VECTOR_TYPE_P): New macro.
9141 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
9142 TYPE_MODE): Use it.
9143 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
9144 VEC_COND_EXPR cannot be lvalues.
9145 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
9146
d08633b4
MG
91472013-03-21 Marc Glisse <marc.glisse@inria.fr>
9148
9149 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
9150 Restrict the transformation to equal modes.
9151
e6647190
RB
91522013-03-21 Richard Biener <rguenther@suse.de>
9153
9154 PR tree-optimization/39326
9155 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
9156 (MEM_ANALYZABLE): Adjust.
9157 (record_mem_ref_loc): Move bitmap ops ...
9158 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
9159 unanalyzable refs, do not record locations for it.
9160 (analyze_memory_references): Allocate ref zero as shared
9161 unanalyzable ref.
9162 (refs_independent_p): Do not test for unanalyzed mems here.
9163 (ref_indep_loop_p_1): Special-case disambiguation against
9164 the unanalyzed ref.
cc1df30b 9165 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
e6647190 9166
65074f54
CL
91672013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
9168
9169 * config/arm/arm-protos.h (tune_params): Add
9170 prefer_neon_for_64bits field.
9171 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
9172 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
9173 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
9174 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
9175 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
9176 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
9177 (arm_option_override): Handle -mneon-for-64bits new option.
9178 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
9179 (prefer_neon_for_64bits): Declare new variable.
9180 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
cc1df30b 9181 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
65074f54
CL
9182 (arch_enabled): Handle new arch types. Remove support for onlya8
9183 and nota8.
9184 (one_cmpldi2): Use new arch names.
bc5faa5b 9185 (zero_extend<mode>di2, extend<mode>di2): Ditto.
65074f54
CL
9186 * config/arm/arm.opt (mneon-for-64bits): Add option.
9187 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
9188 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
9189 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
9190 of onlya8.
9191 * doc/invoke.texi (-mneon-for-64bits): Document.
9192
5a2d2a79
RB
91932013-03-21 Richard Biener <rguenther@suse.de>
9194
9195 PR tree-optimization/39326
9196 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
9197 (sort_bbs_in_loop_postorder_cmp): New function.
cc1df30b 9198 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
5a2d2a79 9199
5abe1e05
RB
92002013-03-21 Richard Biener <rguenther@suse.de>
9201
9202 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
9203 (vect_insert_into_interleaving_chain): Likewise.
9204 (vect_drs_dependent_in_basic_block): Inline ...
9205 (vect_slp_analyze_data_ref_dependence): ... here. New function,
9206 split out from ...
9207 (vect_analyze_data_ref_dependence): ... here. Simplify.
9208 (vect_check_interleaving): Simplify.
9209 (vect_analyze_data_ref_dependences): Likewise. Split out ...
9210 (vect_slp_analyze_data_ref_dependences): ... this new function.
9211 (dr_group_sort_cmp): New function.
9212 (vect_analyze_data_ref_accesses): Compute data-reference groups
9213 here instead of in vect_analyze_data_ref_dependence. Use
9214 a more efficient algorithm.
9215 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
9216 vect_slp_analyze_data_ref_dependences. Call
9217 vect_analyze_data_ref_accesses earlier.
9218 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
9219 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
9220 (vect_slp_analyze_data_ref_dependences): New prototype.
9221
cad1735b
RB
92222013-03-21 Richard Biener <rguenther@suse.de>
9223
9224 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
9225 ref is stored in the loop.
9226 (find_refs_for_sm): Walk only over all stores.
9227 (store_motion_loop): Allocate from lim_bitmap_obstack.
9228 (store_motion): Likewise.
9229
141310ef
RB
92302013-03-21 Richard Biener <rguenther@suse.de>
9231
9232 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
9233 Update virtual SSA form.
9234
5022315a
RO
92352013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9236
9237 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
9238 * configure: Regenerate.
9239 * config.in: Regenerate.
9240 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
9241 if !HAVE_LD_EH_FRAME_CIEV3.
9242
50d4421c
RB
92432013-03-21 Richard Biener <rguenther@suse.de>
9244
9245 * tree-cfg.c (verify_expr_no_block): New function.
9246 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
9247 nor DECL_VALUE_EXPR have locations with associated blocks.
9248 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
9249 (clear_unused_block_pointer): Remove code dealing with
9250 blocks in DECL_DEBUG_EXPR locations.
9251
839b422f
RB
92522013-03-21 Richard Biener <rguenther@suse.de>
9253
9254 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
9255 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
9256 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
9257 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
9258 instead of DECL_DEBUG_EXPR_IS_FROM.
9259 * gimplify.c (gimplify_modify_expr): Likewise.
9260 * tree-cfg.c (verify_expr_location_1): Likewise.
9261 * tree-complex.c (create_one_component_var): Likewise.
9262 * tree-sra.c (create_access_replacement): Likewise.
9263 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
9264 (clear_unused_block_pointer): Likewise.
9265 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
9266 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
9267 * var-tracking.c (var_debug_decl): Likewise.
9268 (track_expr_p): Likewise.
9269 * tree-inline.c (add_local_variables): Likewise. Set
9270 DECL_HAS_DEBUG_EXPR_P after copying it.
9271 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
9272 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
9273
fe04878d
UB
92742013-03-21 Uros Bizjak <ubizjak@gmail.com>
9275
9276 PR bootstrap/56656
9277 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
9278 * configure: Regenerate.
9279 * config.in: Regenerate.
9280 * config/i386/i386.md (*movdf_internal): Use
9281 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
9282 movd instead of movq mnemonic for interunit moves.
9283 (*movdi_internal): Ditto.
9284
bd059b26 92852013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
fa2e9a58
N
9286
9287 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
9288 (abd<mode>_3): New pattern.
9289 (aba<mode>_3): New pattern.
9290 (fabd<mode>_3): New pattern.
9291
bd059b26 92922013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
50ce6f88
N
9293
9294 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
9295 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
9296 occurrence of REGISTER_PREFIX as its empty string.
9297
4f1f78b9
JL
92982013-03-20 Jeff Law <law@redhat.com>
9299
9300 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
9301 addititional equivalences for equality comparisons between an SSA_NAME
9302 and a constant where the SSA_NAME was set from a widening conversion.
9303
327a1118
WL
93042013-03-20 Walter Lee <walt@tilera.com>
9305
9306 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
9307
813e0036
UB
93082013-03-20 Uros Bizjak <ubizjak@gmail.com>
9309
9310 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
9311 depending on type attribute.
9312 (*movti_internal): Ditto.
9313 (*movtf_internal): Ditto.
9314 (*movxf_internal): Ditto.
9315 (*movdf_internal): Ditto.
9316 (*movsf_internal): Ditto.
9317
7cf34aae
UB
93182013-03-20 Uros Bizjak <ubizjak@gmail.com>
9319
9320 * config/i386/i386.md (*movti_internal): Set prefix attribute to
9321 maybe_vex for sselog1 and ssemov types.
9322 (*movdi_internal): Reorder operand constraints.
9323 (*movsi_internal): Ditto. Set prefix attribute to
9324 maybe_vex for sselog1 and ssemov types.
9325 (*movtf_internal): Set prefix attribute to maybe_vex
9326 for sselog1 and ssemov types.
9327 (*movdf_internal): Ditto. Set prefix_data16 attribute for
9328 DImode ssemov types. Reorder operand constraints.
9329 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
9330 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
9331 attribute for SImode ssemov types. Reorder operand constraints.
9332
19321415
MJ
93332013-03-20 Martin Jambor <mjambor@suse.cz>
9334
9335 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
9336 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
9337
c6d5ff83
MM
93382013-03-20 Pat Haugen <pthaugen@us.ibm.com>
9339
9340 * config/rs6000/predicates.md (indexed_address, update_address_mem
9341 update_indexed_address_mem): New predicates.
9342 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
9343 attribute for load/store instructions.
9344 * config/rs6000/dfp.md (movsd_store): Likewise.
9345 (movsd_load): Likewise.
9346 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
9347 (unnamed HI->DI extend define_insn): Likewise.
9348 (unnamed SI->DI extend define_insn): Likewise.
9349 (unnamed QI->SI extend define_insn): Likewise.
9350 (unnamed QI->HI extend define_insn): Likewise.
9351 (unnamed HI->SI extend define_insn): Likewise.
9352 (unnamed HI->SI extend define_insn): Likewise.
9353 (extendsfdf2_fpr): Likewise.
9354 (movsi_internal1): Likewise.
9355 (movsi_internal1_single): Likewise.
9356 (movhi_internal): Likewise.
9357 (movqi_internal): Likewise.
9358 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
9359 attribute for load/store instructions.
9360 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
9361 instructions.
9362 (mov<mode>_softfloat): Likewise.
9363 (mov<mode>_hardfloat32): Likewise.
9364 (mov<mode>_hardfloat64): Likewise.
9365 (mov<mode>_softfloat64): Likewise.
9366 (movdi_internal32): Likewise.
9367 (movdi_internal64): Likewise.
9368 (probe_stack_<mode>): Likewise.
9369
93702013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
9371
9372 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
9373 floating point, and decimal floating point to reload iterator.
9374
9375 * config/rs6000/constraints.md (wl constraint): New constraints to
9376 return FLOAT_REGS if certain options are used to reduce the number
9377 of separate patterns that exist in the file.
9378 (wx constraint): Likewise.
9379 (wz constraint): Likewise.
9380
9381 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
9382 -mdebug=reg, print wg, wl, wx, and wz constraints.
9383 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
9384 Initialize the reload functions for 64-bit binary/decimal floating
9385 point types.
9386 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
9387 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
9388 create the buffer on the stack to overcome not having a 32-bit
9389 load and store.
9390 (rs6000_emit_move): Likewise.
9391 (rs6000_secondary_memory_needed_rtx): Likewise.
9392 (rs6000_alloc_sdmode_stack_slot): Likewise.
9393 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
9394 via xxlxor, just like DFmode 0.0.
9395
9396 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
9397 define as 1 if we are running on a power7 or newer.
9398 (enum r6000_reg_class_enum): Add new constraints.
9399
9400 * config/rs6000/dfp.md (movsd): Delete, combine with binary
9401 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
9402 with other moves by using conditional constraits (wg). Use LFIWZX
bd059b26 9403 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
c6d5ff83
MM
9404 (movsd splitter): Likewise.
9405 (movsd_hardfloat): Likewise.
9406 (movsd_softfloat): Likewise.
9407
9408 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
9409 binary and decimal floating point moves.
9410 (fmove_ok): New attributes to combine binary and decimal floating
9411 point moves, and to combine power6x (mfpgpr) moves along normal
9412 floating moves.
9413 (real_value_to_target): Likewise.
9414 (f32_lr): Likewise.
9415 (f32_lm): Likewise.
9416 (f32_li): Likewise.
9417 (f32_sr): Likewise.
9418 (f32_sm): Likewise.
9419 (f32_si): Likewise.
9420 (movsf): Combine binary and decimal floating point moves. Combine
9421 power6x (mfpgpr) moves with other moves by using conditional
bd059b26 9422 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
c6d5ff83
MM
9423 (mov<mode> for SFmode/SDmode); Likewise.
9424 (SFmode/SDmode splitters): Likewise.
9425 (movsf_hardfloat): Likewise.
9426 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
9427 (movsf_softfloat): Likewise.
9428 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
9429
9430 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
9431 wx and wz constraints.
9432
9433 * config/rs6000/constraints.md (wg constraint): New constraint to
9434 return FLOAT_REGS if -mmfpgpr (power6x) was used.
9435
9436 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
9437 constraint.
9438
9439 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
9440 -mdebug=reg, print wg, wl, wx, and wz constraints.
9441 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
9442 Initialize the reload functions for 64-bit binary/decimal floating
9443 point types.
9444 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
9445 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
9446 create the buffer on the stack to overcome not having a 32-bit
9447 load and store.
9448 (rs6000_emit_move): Likewise.
9449 (rs6000_secondary_memory_needed_rtx): Likewise.
9450 (rs6000_alloc_sdmode_stack_slot): Likewise.
9451 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
9452 via xxlxor, just like DFmode 0.0.
9453
c6d5ff83
MM
9454 * config/rs6000/dfp.md (movdd): Delete, combine with binary
9455 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
9456 with other moves by using conditional constraits (wg). Use LFIWZX
9457 and STFIWX for loading SDmode on power7.
9458 (movdd splitters): Likewise.
9459 (movdd_hardfloat32): Likewise.
9460 (movdd_softfloat32): Likewise.
9461 (movdd_hardfloat64_mfpgpr): Likewise.
9462 (movdd_hardfloat64): Likewise.
9463 (movdd_softfloat64): Likewise.
9464
9465 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
9466 64-bit binary and decimal floating point moves.
9467 (FMOVE64X): Likewise.
9468 (movdf): Combine 64-bit binary and decimal floating point moves.
9469 Combine power6x (mfpgpr) moves with other moves by using
9470 conditional constraits (wg).
9471 (mov<mode> for DFmode/DDmode): Likewise.
9472 (DFmode/DDmode splitters): Likewise.
9473 (movdf_hardfloat32): Likewise.
9474 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
9475 (movdf_softfloat32): Likewise.
9476 (movdf_hardfloat64_mfpgpr): Likewise.
9477 (movdf_hardfloat64): Likewise.
9478 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
9479 (movdf_softfloat64): Likewise.
9480 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
9481 (reload_<mode>_load): Move to later in the file so they aren't in
9482 the middle of the floating point move insns.
9483 (reload_<mode>_store): Likewise.
9484
9485 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
9486 constraint.
9487
9488 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
9489 constraint if -mdebug=reg.
bd059b26
UB
9490 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
9491 Enable using dd reload support if needed.
c6d5ff83
MM
9492
9493 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
9494 binary and decimal floating point moves in rs6000.md.
9495 (movtd_internal): Likewise.
9496
9497 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
9498 decimal floating point moves.
9499 (movtf): Likewise.
9500 (movtf_internal): Likewise.
9501 (mov<mode>_internal, TDmode/TFmode): Likewise.
9502 (movtf_softfloat): Likewise.
9503 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
9504
9505 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
9506 movdi_internal64, using wg constraint for move direct operations.
9507 (movdi_internal64): Likewise.
9508
9509 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
9510 MODES_TIEABLE_P for selected modes. Print the numerical value of
9511 the various virtual registers. Use GPR/FPR first/last values,
9512 instead of hard coding the register numbers. Print which modes
9513 have reload functions registered.
bd059b26
UB
9514 (rs6000_option_override_internal): If -mdebug=reg, trace the options
9515 settings before/after setting cpu, target and subtarget settings.
9516 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
9517 and for secondary reload failures in rs6000_secondary_reload_inner.
c6d5ff83
MM
9518 (rs6000_secondary_reload_fail): Likewise.
9519 (rs6000_secondary_reload_inner): Likewise.
9520
9521 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
9522 macros for first/last GPR and FPR registers.
9523 (LAST_GPR_REGNO): Likewise.
9524 (FIRST_FPR_REGNO): Likewise.
9525 (LAST_FPR_REGNO): Likewise.
9526
9527 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
9528 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
9529 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
9530 (vcond<mode><mode>): Likewise.
9531 (vcondu<mode><mode>): Likewise.
9532 (vector_gtu<mode>): Likewise.
9533 (vector_gte<mode>): Likewise.
9534 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
bd059b26 9535 to prevent the compiler from converting DImode operations to TImode.
c6d5ff83
MM
9536 (ior<mode>3): Likewise.
9537 (and<mode>3): Likewise.
9538 (one_cmpl<mode>2): Likewise.
9539 (nor<mode>3): Likewise.
9540 (andc<mode>3): Likewise.
9541
9542 * config/rs6000/constraints.md (wt constraint): New constraint
9543 that returns VSX_REGS if TImode is allowed in VSX registers.
9544
9545 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
9546 constant under VSX.
9547
9548 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
9549 similar to TImode, but it is restricted to being in the GPRs.
9550
9551 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
9552 TImode to occupy a single VSX register.
9553
9554 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
9555 -mvsx-timode for power7/power8.
9556 (power7 cpu): Likewise.
9557 (power8 cpu): Likewise.
9558
9559 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
9560 sure that TFmode/TDmode take up two registers if they are ever
9561 allowed in the upper VSX registers.
9562 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
9563 registers.
9564 (rs6000_init_hard_regno_mode_ok): Likewise.
9565 (rs6000_debug_reg_global): Add debugging for PTImode and wt
9566 constraint. Print if LRA is turned on.
9567 (rs6000_option_override_internal): Give an error if -mvsx-timode
9568 and VSX is not enabled.
9569 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
9570 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
9571 to reg+offset addressing. Use PTImode when checking offset
9572 addresses for validity.
9573 (reg_offset_addressing_ok_p): Likewise.
9574 (rs6000_legitimate_offset_address_p): Likewise.
9575 (rs6000_legitimize_address): Likewise.
9576 (rs6000_legitimize_reload_address): Likewise.
9577 (rs6000_legitimate_address_p): Likewise.
9578 (rs6000_eliminate_indexed_memrefs): Likewise.
9579 (rs6000_emit_move): Likewise.
9580 (rs6000_secondary_reload): Likewise.
9581 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
9582 reloads to fpr registers to continue to use reg+offset addressing,
9583 but 64-bit reloads to altivec registers need reg+reg addressing.
9584 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
9585 it. Treat LO_SUM like a PLUS operation.
9586 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
bd059b26 9587 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
c6d5ff83
MM
9588 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
9589 registers to share a register with a smaller sized type, since VSX
9590 puts scalars in the upper 64-bits.
9591 (print_operand): Add support for PTImode.
9592 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
9593 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
9594 registers, but don't have arithmetic support.
9595 (rs6000_memory_move_cost): Add test for VSX.
9596 (rs6000_opt_masks): Add -mvsx-timode.
9597
9598 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
9599 for TImode.
9600 (VSs): Likewise.
9601 (VSr): Use wt constraint for TImode.
9602 (VSv): Drop TImode support.
9603 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
9604 (vsx_movti_64bit): Likewise.
9605 (vsx_movti_32bit): Likewise.
9606 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
9607 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
9608 one '?' on the appropriate output constraint. Do not allow TImode
9609 logical operations on 32-bit systems.
9610 (vsx_ior<mode>3): Likewise.
9611 (vsx_xor<mode>3): Likewise.
9612 (vsx_one_cmpl<mode>2): Likewise.
9613 (vsx_nor<mode>3): Likewise.
9614 (vsx_andc<mode>3): Likewise.
9615 (vsx_concat_<mode>): Likewise.
9616 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
9617
9618 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
9619 OPTION_MASK_VSX_TIMODE.
9620 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
9621 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
9622
9623 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
9624 (TI2 iterator): New iterator for TImode, PTImode.
9625 (wd mode attribute): Add values for vector types.
bd059b26
UB
9626 (movti_string): Replace TI move operations with operations for TImode
9627 and PTImode. Add support for TImode being allowed in VSX registers.
c6d5ff83
MM
9628 (mov<mode>_string, TImode/PTImode): Likewise.
9629 (movti_ppc64): Likewise.
9630 (mov<mode>_ppc64, TImode/PTImode): Likewise.
9631 (TI mode splitters): Likewise.
9632
9633 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
9634 constraint.
9635
1fc5eced
MG
96362013-03-20 Marc Glisse <marc.glisse@inria.fr>
9637
9638 PR tree-optimization/56355
9639 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
9640 Also handle integers with undefined overflow.
9641
22c4c869
CM
96422013-03-20 Catherine Moore <clm@codesourcery.com>
9643 Maciej W. Rozycki <macro@codesourcery.com>
9644 Tom de Vries <tom@codesourcery.com>
9645 Nathan Sidwell <nathan@codesourcery.com>
9646 Iain Sandoe <iain@codesourcery.com>
9647 Nathan Froyd <froydnj@codesourcery.com>
9648 Chao-ying Fu <fu@mips.com>
9649
9650 * doc/extend.texi: (micromips, nomicromips, nocompression):
7cf34aae 9651 Document new function attributes.
22c4c869
CM
9652 * doc/invoke.texi (minterlink-compressed, mmicromips,
9653 m14k, m14ke, m14kec): Document new options.
9654 (minterlink-mips16): Update documentation.
9655 * doc/md.texi (ZC, ZD): Document new constraints.
9656 * configure.ac (gcc_cv_as_micromips): Check if linker
9657 supports the .set micromips directive.
9658 * configure: Regenerate.
9659 * config.in: Regenerate.
9660 * config/mips/mips-tables.opt: Regenerate.
9661 * config/mips/micromips.md: New file.
9662 * constraints.md (ZC, ZD): New constraints.
9663 * config/mips/predicates.md (movep_src_register): New predicate.
9664 (movep_src_operand): New predicate.
9665 (non_volatile_mem_operand): New predicate.
9666 * config/mips/mips.md (multimem): New type.
9667 (length): Differentiate between 17-bit and 18-bit branch offsets.
9668 (MOVEP1, MOVEP2): New mode iterator.
33159866 9669 (mov_<load>l): Use ZC constraint.
22c4c869
CM
9670 (mov_<load>r): Likewise.
9671 (mov_<store>l): Likewise.
9672 (mov_<store>r): Likewise.
9673 (*branch_equality<mode>_inverted): Add microMIPS support.
9674 (*branch_equality<mode>): Likewise.
9675 (*jump_absolute): Likewise.
9676 (indirect_jump_<mode>): Likewise.
9677 (tablejump_<mode>): Likewise.
9678 (<optab>_internal): Likewise.
9679 (sibcall_internal): Likewise.
9680 (sibcall_value_internal): Likewise.
9681 (prefetch): Use constraint ZD.
9682 * config/mips/mips.opt (minterlink-compressed): New option.
9683 (minterlink-mips16): Now an alias for minterlink-compressed.
9684 (mmicromips): New option.
9685 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
9686 (compare_and_swap_12): Likewise.
9687 (sync_add<mode>): Likewise.
9688 (sync_<optab>_12): Likewise.
9689 (sync_old_<optab>_12): Likewise.
9690 (sync_new_<optab>_12): Likewise.
9691 (sync_nand_12): Likewise.
9692 (sync_old_nand_12): Likewise.
9693 (sync_new_nand_12): Likewise.
9694 (sync_sub<mode>): Likewise.
9695 (sync_old_add<mode>): Likewise.
9696 (sync_old_sub<mode>): Likewise.
9697 (sync_new_add<mode>): Likewise.
9698 (sync_new_sub<mode>): Likewise.
9699 (sync_<optab><mode>): Likewise.
9700 (sync_old_<optab><mode>): Likewise.
9701 (sync_new_<optab><mode>): Likewise.
9702 (sync_nand<mode>): Likewise.
9703 (sync_old_nand<mode>): Likewise.
9704 (sync_new_nand<mode>): Likewise.
9705 (sync_lock_test_and_set<mode>): Likewise.
9706 (test_and_set_12): Likewise.
9707 (atomic_compare_and_swap<mode>): Likewise.
9708 (atomic_exchange<mode>_llsc): Likewise.
9709 (atomic_fetch_add<mode>_llsc): Likewise.
9710 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
9711 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
9712 (umips_save_restore_pattern_p): Likewise.
9713 (umips_load_store_pair_p): Likewise.
9714 (umips_output_load_store_pair): Likewise.
9715 (umips_movep_target_p): Likewise.
9716 (umips_12bit_offset_address_p): Likewise.
9717 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
9718 (mips_base_mips16): Rename this...
9719 (mips_base_compression_flags): ...to this. Update all uses.
9720 (mips_attribute_table): Add micromips, nomicromips and nocompression.
9721 (mips_mips16_decl_p): Delete.
9722 (mips_nomips16_decl_p): Delete.
33159866 9723 (mips_get_compress_on_flags): New function.
22c4c869
CM
9724 (mips_get_compress_off_flags): New function.
9725 (mips_get_compress_mode): New function.
9726 (mips_get_compress_on_name): New function.
9727 (mips_get_compress_off_name): New function.
9728 (mips_insert_attributes): Support multiple compression types.
9729 (mips_merge_decl_attributes): Likewise.
9730 (umips_12bit_offset_address_p): New function.
9731 (mips_start_function_definition): Emit .set micromips directive.
9732 (mips_call_may_need_jalx_p): New function.
9733 (mips_function_ok_for_sibcall): Add microMIPS support.
9734 (mips_print_operand_punctuation): Support short delay slots and
9735 compact jumps.
9736 (umips_swm_mask, umips_swm_encoding): New.
9737 (umips_build_save_restore): New function.
9738 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
9739 (was_mips16_p): Remove.
9740 (old_compression_mode): New.
9741 (mips_set_compression_mode): New function.
9742 (mips_set_current_function): Add microMIPS support.
9743 (mips_option_override): Likewise.
9744 (umips_save_restore_pattern_p): New function.
9745 (umips_output_save_restore): New function.
9746 (umips_load_store_pair_p_1): New function.
9747 (umips_load_store_pair_p): New function.
9748 (umips_output_load_store_pair_1): New function.
9749 (umips_output_load_store_pair): New function.
9750 (umips_movep_target_p) New function.
9751 (mips_prepare_pch_save): Add microMIPS support.
9752 * config/mips/mips.h (TARGET_COMPRESSION): New.
9753 (TARGET_CPU_CPP_BUILTINS): Update macro
9754 to use new compression flags and to support microMIPS.
9755 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
9756 (MIPS_ARCH_FLOAT_SPEC): Likewise.
9757 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
9758 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
9759 (ASM_SPEC): Support mmicromips and mno-micromips.
9760 (M16STORE_REG_P): New macro.
9761 (MIPS_CALL): Support TARGET_MICROMIPS.
9762 (MICROMIPS_J): New macro.
9763 (mips_base_mips16): Rename this...
9764 (mips_base_compression_flags): ...to this.
9765 (UMIPS_12BIT_OFFSET_P): New macro.
9766 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
9767 (MULTILIB_DIRNAMES): Likewise.
92a8d7a7
RB
97682013-03-20 Richard Biener <rguenther@suse.de>
9769
9770 PR tree-optimization/56661
9771 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
9772 the result does not have to be distinct.
9773
54714c68
RB
97742013-03-20 Richard Biener <rguenther@suse.de>
9775
9776 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
9777 remap_gimple_op_r.
9778
cca1130d
BS
97792013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9780 Steven Bosscher <steven@gcc.gnu.org>
9781
9782 PR rtl-optimization/56605
9783 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
9784
2a930377
UB
97852013-03-20 Uros Bizjak <ubizjak@gmail.com>
9786
9787 PR bootstrap/56656
9788 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
9789 that require movd instead of movq.
9790
d6d305fe
RB
97912013-03-20 Richard Biener <rguenther@suse.de>
9792
9793 * tree-ssa-structalias.c (struct variable_info): Add pointer
9794 to the first field of an aggregate with sub-vars. Make
9795 this and the pointer to the next subfield its ID.
9796 (vi_next): New function.
9797 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
9798 storedanything_id, integer_id): Increment by one.
9799 (new_var_info, get_call_vi, lookup_call_clobber_vi,
9800 get_call_clobber_vi): Adjust.
9801 (solution_set_expand): Simplify and speedup.
9802 (solution_set_add): Inline into ...
9803 (set_union_with_increment): ... this. Adjust accordingly.
9804 (do_sd_constraint): Likewise.
9805 (do_ds_constraint): Likewise.
9806 (do_complex_constraint): Simplify.
9807 (build_pred_graph): Adjust.
9808 (solve_graph): Likewise. Simplify and speedup.
9809 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
9810 get_constraint_for_component_ref, get_constraint_for_1,
9811 first_vi_for_offset, first_or_preceding_vi_for_offset,
9812 create_function_info_for, create_variable_info_for_1,
9813 create_variable_info_for, intra_create_variable_infos): Adjust.
9814 (init_base_vars): Push NULL for ID zero.
9815 (compute_points_to_sets): Adjust.
9816
a271b42d
RB
98172013-03-20 Richard Biener <rguenther@suse.de>
9818
9819 * cfgloop.c (verify_loop_structure): Streamline and avoid
9820 ICEing on corrupt loop tree.
9821 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
9822 loop tree.
9823
ebd65954
RB
98242013-03-20 Richard Biener <rguenther@suse.de>
9825
9826 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
9827 check whether an SSA update is needed.
9828
4547b7ee
RS
98292013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
9830
9831 * config/mips/constraints.md (T): Rename to...
9832 (Yf): ...this.
9833 (U): Rename to...
9834 (Yd): ...this.
9835 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
9836 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
9837
0b8cdc58
IB
98382013-03-19 Ian Bolton <ian.bolton@arm.com>
9839
9840 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
9841 (*subsi3_carryin_uxtw): Likewise.
9842
5977a10d
IB
98432013-03-19 Ian Bolton <ian.bolton@arm.com>
9844
9845 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
9846 (*rorsi3_insn_uxtw): Likewise.
9847
bd83ff2c
IB
98482013-03-19 Ian Bolton <ian.bolton@arm.com>
9849
9850 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
9851 (*extrsi5_insn_uxtw): Likewise.
9852
ba65123c
RB
98532013-03-19 Richard Biener <rguenther@suse.de>
9854
9855 PR tree-optimization/56273
9856 * passes.c (init_optimization_passes): Move second VRP after DOM.
9857
2eac0476
UB
98582013-03-19 Uros Bizjak <ubizjak@gmail.com>
9859
9860 * config/i386/i386.md (*movti_internal): Merge from
9861 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
9862 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
9863 nox64 isa attributes.
9864
6e55eda7
RB
98652013-03-18 Richard Biener <rguenther@suse.de>
9866
9867 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
9868 (unite): Likewise.
9869 (merge_node_constraints): Likewise.
9870 (build_succ_graph): Likewise.
9871 (valid_graph_edge): Inline into single caller.
9872 (unify_nodes): Likewise. Use bitmap_set_bit return value
9873 and cache varinfo.
9874 (scc_visit): Fix formatting and variable use.
9875 (do_sd_constraint): Use gcc_checking_assert.
9876 (do_ds_constraint): Likewise.
9877 (do_complex_constraint): Likewise.
9878 (condense_visit): Likewise. Cleanup.
9879 (dump_pred_graph): New function.
9880 (perform_var_substitution): Dump the pred-graph before
9881 variable substitution.
9882 (find_equivalent_node): Use gcc_checking_assert.
9883 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
9884
4bdd44c4
RB
98852013-03-18 Richard Biener <rguenther@suse.de>
9886
9887 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
9888 Remove cond_expr_stmt_list argument and do not gimplify the
9889 built expression.
9890 (vect_loop_versioning): Adjust.
9891 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
9892 Cleanup to use less temporaries.
9893 (vect_create_data_ref_ptr): Cleanup.
9894
38c56a5b
JJ
98952013-03-18 Jakub Jelinek <jakub@redhat.com>
9896
9897 PR tree-optimization/56635
9898 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
9899 require types_compatible_p types.
9900
20b2e6a0
NC
99012013-03-18 Nick Clifton <nickc@redhat.com>
9902
a6178a25
NC
9903 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
9904 spurious backslash.
9905
20b2e6a0
NC
9906 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
9907 Add missing line to comment describing function.
9908
92608d0e
RB
99092013-03-18 Richard Biener <rguenther@suse.de>
9910
9911 PR tree-optimization/56210
9912 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9913 Handle string / character search functions.
9914 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
9915
31348d52
RB
99162013-03-18 Richard Biener <rguenther@suse.de>
9917
9918 PR middle-end/56483
9919 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
9920 and implement properly.
9921 * gimple.h (gimple_cond_single_var_p): Remove.
9922
fcac74a1
RB
99232013-03-18 Richard Biener <rguenther@suse.de>
9924
9925 * tree-data-ref.h (find_data_references_in_loop): Declare.
9926 * tree-data-ref.c (get_references_in_stmt): Use a stack
9927 vector pre-allocated in the callers.
9928 (find_data_references_in_stmt): Adjust.
9929 (graphite_find_data_references_in_stmt): Likewise.
9930 (create_rdg_vertices): Likewise.
9931 (find_data_references_in_loop): Export.
9932 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
9933 Compute dependences here...
9934 (vect_analyze_data_refs): ...not here. When we encounter
9935 a non-vectorizable data reference in basic-block vectorization
9936 truncate the data reference vector. Do not bother to
9937 fixup data-dependence information for gather loads.
9938 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
9939 of data references, as reported.
9940
0d5a1b56
RB
99412013-03-18 Richard Biener <rguenther@suse.de>
9942
9943 PR tree-optimization/3713
9944 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
9945 has_constants and expr.
9946 (stmt_has_constants): Properly valueize SSA names when deciding
9947 whether the stmt has constants.
9948
789c34e3
RB
99492013-03-18 Richard Biener <rguenther@suse.de>
9950
9951 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
9952 whole function when there is nothing to do.
9953 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
9954 * tree-vectorizer.c (vectorize_loops): Update virtual and
9955 loop-closed SSA once.
9956 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
9957
076b4605
RB
99582013-03-18 Richard Biener <rguenther@suse.de>
9959
9960 PR middle-end/56113
9961 * domwalk.c (bb_postorder): New global static.
9962 (cmp_bb_postorder): New function.
9963 (walk_dominator_tree): Replace scheme imposing an order for
9964 visiting dominator sons by one sorting them at the time they
9965 are pushed on the stack.
9966
bdb01696
RB
99672013-03-18 Richard Biener <rguenther@suse.de>
9968
9969 PR tree-optimization/39326
9970 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
9971 (struct mem_ref): Replace mem member with ao_ref typed member.
9972 (MEM_ANALYZABLE): Adjust.
9973 (memref_eq): Likewise.
9974 (mem_ref_alloc): Likewise.
9975 (gather_mem_refs_stmt): Likewise.
9976 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
9977 (execute_sm_if_changed_flag_set): Adjust.
9978 (execute_sm): Likewise.
9979 (ref_always_accessed_p): Likewise.
9980 (refs_independent_p): Likewise.
9981 (can_sm_ref_p): Likewise.
9982
12d2dc5e
JJ
99832013-03-18 Jakub Jelinek <jakub@redhat.com>
9984
9985 PR c/56566
9986 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
9987 return 1 even for !unsignedp.
9988
286fb677
UB
99892013-03-17 Uros Bizjak <ubizjak@gmail.com>
9990
9991 * config/i386/i386.md (isa): Add x64 and nox64.
9992 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
9993 (*pushtf): Enable *roF alternative for x64 isa only.
9994 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
9995 mode attribute of integer alternatives to DImode for TARGET_64BIT.
9996 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
9997 (*movtf_internal): Merge from *movtf_internal_rex64 and
9998 *movtf_internal_sse. Use x64 and nox64 isa attributes.
9999 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
10000 nox64 isa attributes.
10001 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
10002 nox64 isa attributes.
10003 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
10004
88b97037
UB
100052013-03-17 Uros Bizjak <ubizjak@gmail.com>
10006
10007 * config/alpha/alpha.c (TARGET_LRA_P): New define.
10008
9f4f1735
JJ
100092013-03-17 Jakub Jelinek <jakub@redhat.com>
10010
10011 PR target/56640
10012 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
10013 class names. Remove trailing comma after "ALL_REGS".
10014
48f4a6fa
JH
100152013-03-16 Jan Hubicka <jh@suse.cz>
10016
10017 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
10018 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
10019 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
10020 of cgraph_get_create_node.
10021 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10022
98e81123
JM
100232013-03-16 Jason Merrill <jason@redhat.com>
10024
10025 PR debug/49090
10026 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
10027 with DW_AT_default_value.
10028
8a298c04
JJ
100292013-03-16 Jakub Jelinek <jakub@redhat.com>
10030
10031 * BASE-VER: Set to 4.9.0.
10032
4323afa0
AK
100332013-03-14 Andi Kleen <ak@linux.intel.com>
10034
10035 PR target/56619
10036 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
10037 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
10038 Document _x* TSX intrinsics.
10039
b3c0d469
JJ
100402013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
10041 David Holsgrove <david.holsgrove@xilinx.com>
8cc9a5a5
EI
10042
10043 * configure.ac: Add MicroBlaze TLS support detection.
10044 * configure: Regenerate.
88b97037
UB
10045 * config/microblaze/microblaze-protos.h
10046 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
10047 symbol_mentioned_p, label_mentioned_p): Add prototypes.
10048 * config/microblaze/microblaze.c (microblaze_address_type): Add
10049 ADDRESS_TLS and tls_reloc address types.
8cc9a5a5
EI
10050 (microblaze_address_info): Add tls_reloc.
10051 (TARGET_HAVE_TLS): Define.
10052 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
10053 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
88b97037
UB
10054 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
10055 load_tls_operand, microblaze_call_tls_get_addr,
10056 microblaze_legitimize_tls_address): New functions.
8cc9a5a5
EI
10057 (microblaze_classify_unspec): Handle UNSPEC_TLS.
10058 (get_base_reg): Use microblaze_tls_symbol_p.
10059 (microblaze_classify_address): Handle TLS.
88b97037
UB
10060 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
10061 label_mentioned_p and microblaze_tls_referenced_p.
8cc9a5a5
EI
10062 (microblaze_legitimize_address): Handle TLS.
10063 (microblaze_address_insns): Handle ADDRESS_TLS.
10064 (pic_address_needs_scratch): Handle TLS.
10065 (print_operand_address): Handle TLS.
10066 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
10067 (microblaze_expand_move): Handle TLS.
88b97037
UB
10068 (microblaze_legitimate_constant_p): Check
10069 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
8cc9a5a5
EI
10070 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
10071 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
10072 (PIC_OFFSET_TABLE_REGNUM): Set.
10073 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
10074 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
10075 (addsi3, movsi_internal2, movdf_internal): Update constraints
10076 * config/microblaze/predicates.md (arith_plus_operand): Define
88b97037
UB
10077 (move_operand): Redefine as move_src_operand,
10078 check microblaze_tls_referenced_p.
8cc9a5a5 10079
d803a491
IB
100802013-03-14 Ian Bolton <ian.bolton@arm.com>
10081
10082 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
10083 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
10084
a8504f22
IB
100852013-03-14 Ian Bolton <ian.bolton@arm.com>
10086
10087 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
10088 CC mode for AND.
10089
df2dfaea
JJ
100902013-03-14 Jakub Jelinek <jakub@redhat.com>
10091
fbd28bc3
JJ
10092 PR tree-optimization/53265
10093 * common.opt (Waggressive-loop-optimizations): New option.
10094 * tree-ssa-loop-niter.c: Include tree-pass.h.
10095 (do_warn_aggressive_loop_optimizations): New function.
10096 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
10097 if number_of_latch_executions returned constant.
10098 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
10099 early. If number_of_latch_executions returned constant, set
10100 nb_iterations_upper_bound back to it.
10101 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
10102 field.
10103 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
10104 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
10105
df2dfaea
JJ
10106 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
10107 (MULTILIB_OSDIRNAMES): Set.
10108 * genmultilib: If defaultosdirname doesn't start with :: , set
10109 defaultosdirname2 instead, clear it and emit two . multilib_raw
10110 entries instead of just one.
10111
ee0d2b68
KK
101122013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
10113
10114 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
10115 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
10116 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
10117 (SUBTARGET_OVERRIDE_OPTIONS): New.
10118
decc676e
OE
101192013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
10120
10121 PR target/49880
10122 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
10123 (musermode): Convert to Var(TARGET_USERMODE).
10124 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
10125 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
10126 * config/sh/sh.c (sh_option_override): Use
10127 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
10128 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
10129 condition.
10130 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
10131 TARGET_SH4.
10132 (udivsi3_i4_single, divsi3_i4_single): Use
10133 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
10134
f4b719c7
DK
101352013-03-13 Dave Korn <dave.korn.cygwin@....>
10136
10137 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
10138 default setting.
10139
c40eced0
RB
101402013-03-13 Richard Biener <rguenther@suse.de>
10141
10142 PR tree-optimization/56608
10143 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
10144 calls when vectorizing basic-blocks.
10145
1bfa5973
JJ
101462013-03-13 Jakub Jelinek <jakub@redhat.com>
10147
10148 PR plugins/45078
10149 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
10150 tm_file.
10151
6fcf5434
JJ
101522013-03-12 Jakub Jelinek <jakub@redhat.com>
10153
10154 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
10155
4f38fa8c
JH
101562013-03-11 Jan Hubicka <jh@suse.cz>
10157
10158 PR lto/56557
10159 * lto-streamer-out.c (output_symbol_p): Skip references from
10160 constructors of external variables.
10161
c5c5ba89
JH
101622013-03-11 Jan Hubicka <jh@suse.cz>
10163
10164 PR middle-end/56571
10165 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
10166 from pseudos.
10167 * emit-rtl.c (verify_rtx_sharing): Likewise.
10168 (copy_insn_1): Likewise.
10169 * rtl.c (copy_rtx): Likewise.
10170
c2a939b1
GJL
101712013-03-11 Georg-Johann Lay <avr@gjlay.de>
10172
10173 PR target/56591
10174 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
10175 output_operand_lossage message.
88b97037 10176
3c3279fb
RE
101772013-03-11 Richard Earnshaw <rearnsha@arm.com>
10178
10179 PR target/56470
10180 * arm.c (shift_op): Validate RTL pattern on the fly.
10181 (arm_print_operand, case 'S'): Don't use shift_operator to validate
10182 the RTL.
10183
aef5ef9d
JDA
101842013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10185
10186 PR target/56347
10187 * config/pa/pa.md (call_value): Check for calls to powf and direct to
10188 new call patterns that clobber %fr12.
10189 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
10190 split and postreload patterns.
10191 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
10192 registers %fr12 and %fr12R as call used.
10193
456610d3
SB
101942013-03-09 Steven Bosscher <steven@gcc.gnu.org>
10195
10196 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
10197 (canon_address, record_store, replace_read, check_mem_read_rtx,
10198 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
10199 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
10200 rest_of_handle_dse): Likewise.
10201
4b1baac8
RS
102022013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
10203
10204 PR middle-end/56524
10205 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
10206 Add base_optabs.
10207 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
10208 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
10209 (save_optabs_if_changed): Replace with...
10210 (init_tree_optimization_optabs): ...this.
10211 * optabs.c (save_optabs_if_changed): Rename to...
10212 (init_tree_optimization_optabs): ...this. Take the optimization node
10213 as argument. Do nothing if the base optabs are already correct.
10214 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
10215 to recompute optabs.
10216 * function.h (function): Remove optabs field.
10217 * function.c (invoke_set_current_function_hook): Call
10218 init_tree_optimization_optabs. Use the result to initialize
10219 this_fn_optabs.
10220
b7a78683
AH
102212013-02-27 Aldy Hernandez <aldyh@redhat.com>
10222
10223 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
10224 if GTMA_HAS_NO_INSTRUMENTATION.
10225 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
10226 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
10227 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
10228 * gimple-pretty-print.c (dump_gimple_transaction): Handle
10229 GTMA_HAS_NO_INSTRUMENTATION.
10230
6384c29b
JJ
102312013-03-08 Jakub Jelinek <jakub@redhat.com>
10232
10233 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
10234 libasan_preinit.o.
10235
ecd4f20a
MP
102362013-03-08 Marek Polacek <polacek@redhat.com>
10237 Jakub Jelinek <jakub@redhat.com>
10238
10239 PR tree-optimization/56478
10240 * predict.c (is_comparison_with_loop_invariant_p): Change the
10241 type of loop_step to tree.
10242 (predict_loops): Adjust.
10243 (predict_iv_comparison): Perform the computations on double_ints.
10244
64366d35
RB
102452013-03-08 Richard Biener <rguenther@suse.de>
10246
10247 PR tree-optimization/56570
10248 * tree-cfg.c (verify_expr_location_1): Verify locations for
10249 DECL_DEBUG_EXPR.
10250 * tree-sra.c (create_access_replacement): Strip locations
10251 from DECL_DEBUG_EXPRs.
10252
a9d5a059
RB
102532013-03-08 Richard Biener <rguenther@suse.de>
10254
10255 * tree-inline.c (expand_call_inline): Do not associate
10256 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
10257 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
10258
b7aa4e9a
RB
102592013-03-08 Richard Biener <rguenther@suse.de>
10260
10261 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
10262 or block changes with -Og. Fix for location / block encoding
10263 changes and PHI arguments with locations.
10264
c4c2f9fa
SB
102652013-03-07 Steven Bosscher <steven@gcc.gnu.org>
10266
10267 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
10268 for all counters.
10269 (struct output_info): Likewise.
10270 (register_overhead): Remove bad gcc_assert.
10271 (bitmap_find_bit): If there is only a single bitmap element, do not
10272 count a miss as a search.
10273 (print_statistics): Update for counter type changes.
10274 (dump_bitmap_statistics): Likewise. Print headers such that they
10275 are properly lined up with the printed counters.
10276
5bf6606a
JJ
102772013-03-07 Jakub Jelinek <jakub@redhat.com>
10278
10279 PR tree-optimization/56559
10280 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
10281 check that it has only a single use.
10282
2c653d46
RB
102832013-03-07 Richard Biener <rguenther@suse.de>
10284
10285 * doc/invoke.texi (fwhole-program): Discourage use in combination
10286 with -flto.
10287
a72d8780
JJ
102882013-03-06 Jakub Jelinek <jakub@redhat.com>
10289
01a454df
JJ
10290 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
10291
c1781047
JJ
10292 PR tree-optimization/56539
10293 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
10294 instead of GSI_CONTINUE_LINKING as last argument to
10295 force_gimple_operand_gsi. Adjust function comment.
10296
9772c47a
JJ
10297 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
10298 aarch64-cores.def.
10299
a72d8780
JJ
10300 PR middle-end/56548
10301 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
10302 promoted mode, convert the result back to the original mode.
10303
fa5556de
RB
103042013-03-06 Richard Biener <rguenther@suse.de>
10305
10306 PR middle-end/56294
10307 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
10308 (insert_updated_phi_nodes_compare_uids): New function.
10309 (update_ssa): Sort symbols_to_rename after UID before
10310 traversing it to insert PHI nodes.
10311
010403d1
RB
103122013-03-06 Richard Biener <rguenther@suse.de>
10313
10314 PR middle-end/50494
10315 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
10316 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
10317
10318 Revert
10319 2013-02-13 Richard Biener <rguenther@suse.de>
10320
10321 PR lto/50494
10322 * varasm.c (output_constant_def_1): Get the decl representing
10323 the constant as argument.
10324 (output_constant_def): Wrap output_constant_def_1.
10325 (make_decl_rtl): Use output_constant_def_1 with the decl
10326 representing the constant.
10327 (build_constant_desc): Optionally re-use a decl already
10328 representing the constant.
10329 (tree_output_constant_def): Adjust.
10330
3c27ce4c
JY
103312013-03-06 Joey Ye <joey.ye@arm.com>
10332
10333 PR lto/50293
10334 * gcc.c (convert_white_space): New function.
10335 (main): Handles white space in function name.
10336
8f6d1c86
OE
103372013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
10338
10339 PR target/56529
10340 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
10341 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
10342 to SH_DIV_CALL_TABLE for TARGET_SH2.
10343 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
10344 list.
10345 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
10346 call-table options.
10347
798a209f
SA
103482013-03-05 Sterling Augustine <saugustine@google.com>
10349 Cary Coutant <ccoutant@google.com>
10350
10351 PR debug/55364
10352 * dwarf2out.c (resolve_addr): Don't call
10353 remove_loc_list_addr_table_entries a second time for the same
10354 expression.
10355
6cfa417f 103562013-03-05 Jakub Jelinek <jakub@redhat.com>
ee61ea38 10357
6cfa417f
JJ
10358 PR debug/56510
10359 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
10360 (avoid_complex_debug_insns): New function.
10361 (expand_debug_locations): Call it.
10362
10363 PR rtl-optimization/56484
10364 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
10365 lifetimes of hard registers on small register class machines.
10366
103672013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
10368
10369 * config/microblaze/microblaze-protos.h: Rename
ee61ea38 10370 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
6cfa417f 10371 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
ee61ea38
DH
10372 fast_interrupt.
10373 (microblaze_fast_interrupt_function_p): New function.
10374 (microblaze_is_interrupt_handler): Rename to
10375 microblaze_is_interrupt_variant and add fast_interrupt check.
10376 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
10377 (save_restore_insns): Likewise.
10378 (compute_frame_size): Likewise.
10379 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
10380 (microblaze_globalize_label): Likewise.
6cfa417f
JJ
10381 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
10382 * config/microblaze/microblaze.md: Use wrapper
ee61ea38
DH
10383 microblaze_is_interrupt_variant.
10384
731aefac
KT
103852013-03-05 Kai Tietz <ktietz@redhat.com>
10386
10387 * sdbout.c (sdbout_one_type): Switch to current function's section
10388 supporting cold/hot.
10389
a72d8780 103902013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
e34fd5a7
DH
10391
10392 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
10393 -mxl-reorder.
10394
334e71e8
JJ
103952013-03-05 Jakub Jelinek <jakub@redhat.com>
10396
0b50e654
JJ
10397 PR middle-end/56461
10398 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
10399 if VALGRIND_GET_VBITS is defined, temporarily make object
10400 memory all defined, and restore previous valgrind addressability
10401 and definability afterwards. Free this_object at the end.
10402
4ccf8f43
JJ
10403 PR middle-end/56461
10404 * lra.c (lra): Call lra_clear_live_ranges if live_p,
10405 right before calling lra_create_live_ranges, also call it
10406 when clearing live_p. Only call lra_clear_live_ranges
10407 at the end if live_p.
10408
334e71e8
JJ
10409 PR middle-end/56461
10410 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
10411
9ca966ca
RB
104122013-03-05 Richard Biener <rguenther@suse.de>
10413
10414 PR tree-optimization/56521
10415 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
10416 value-id.
10417
d273b176
SB
104182013-03-05 Steven Bosscher <steven@gcc.gnu.org>
10419
10420 PR c++/55135
10421 * except.h (remove_unreachable_eh_regions): New prototype.
10422 * except.c (remove_eh_handler_splicer): New function, split out
10423 of remove_eh_handler.
10424 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
10425 warning about running it on many EH regions one at a time.
10426 (remove_unreachable_eh_regions_worker): New function, walk the
10427 EH tree in depth-first order and remove non-marked regions.
10428 (remove_unreachable_eh_regions): New function.
10429 * tree-eh.c (mark_reachable_handlers): New function, split out
10430 from remove_unreachable_handlers.
10431 (remove_unreachable_handlers): Use mark_reachable_handlers and
10432 remove_unreachable_eh_regions.
10433 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
10434 and remove_unreachable_eh_regions.
10435
5e7f1aef
RB
104362013-03-05 Richard Biener <rguenther@suse.de>
10437
10438 PR middle-end/56525
10439 * loop-init.c (fix_loop_structure): Remove loops in two stages,
10440 not freeing them until the end.
10441
f276b762
AK
104422013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10443
10444 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
10445
12a43ab8
RB
104462013-03-05 Richard Biener <rguenther@suse.de>
10447
10448 PR tree-optimization/56270
10449 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
10450 of loads after scheduling an SLP instance.
10451
93675444
JJ
104522013-03-05 Jakub Jelinek <jakub@redhat.com>
10453
db4138e3
JJ
10454 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
10455 tic6x.exp.
10456 (check_gcc_parallelize): Run guality.exp as a separate job from
10457 vect.exp with unsorted.exp and $(dg_target_exps) separately from
10458 struct-layout-1.exp with stackalign.exp.
10459
dd3d1ec0
JJ
10460 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
10461
b8d381a3
JJ
10462 PR middle-end/56461
10463 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
10464 load_index sbitmap even if some bit in it isn't set.
10465
b4f9786b
JJ
10466 PR middle-end/56461
10467 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
10468 (discover_iteration_bound_by_body_walk): Change queues to
10469 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
10470 spelling in comment. Call safe_push on queues[bound_index] directly.
10471 Release queues[queue_index] in every iteration unconditionally.
10472 Release bounds vector.
10473
93675444
JJ
10474 PR middle-end/56461
10475 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
10476 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
10477 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
10478 inner_phis vector.
10479
3e492e9c
RB
104802013-03-05 Richard Biener <rguenther@suse.de>
10481
10482 PR lto/56515
10483 * tree-inline.c (remap_blocks_to_null): New function.
10484 (expand_call_inline): When expanding a call stmt without
10485 an associated block inline remap all callee blocks to NULL.
10486
a5d1569a
JJ
104872013-03-05 Jakub Jelinek <jakub@redhat.com>
10488
86efb5cd
JJ
10489 PR rtl-optimization/56494
10490 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
10491 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
10492 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
10493
85f5dbea
JJ
10494 PR middle-end/56461
10495 * sel-sched-ir.c (free_sched_pools): Release
10496 succs_info_pool.stack[succs_info_pool.max_top] vectors too
10497 if succs_info_pool.max_top isn't -1.
10498
a5d1569a
JJ
10499 PR bootstrap/56509
10500 * opts.c (opts_obstack, opts_concat): Moved to...
10501 * opts-common.c (opts_obstack, opts_concat): ... here.
10502
4432aa6c
JJ
105032013-03-04 Jakub Jelinek <jakub@redhat.com>
10504
10505 PR middle-end/56461
10506 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
10507
f3a1fb91
MJ
105082013-03-04 Martin Jambor <mjambor@suse.cz>
10509
10510 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
10511 all appropriate places.
10512
22110e6c
EB
105132013-01-04 Eric Botcazou <ebotcazou@adacore.com>
10514
10515 PR tree-optimization/56424
10516 * ipa-split.c (split_function): Do not set the RSO flag if result is
10517 not by reference and its type is a register type.
10518
a72d8780 105192013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
91c4e421 10520
88b97037 10521 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
91c4e421 10522 (microblaze_legitimate_pic_operand): Likewise
88b97037 10523 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
91c4e421
DH
10524 new function microblaze_legitimate_pic_operand
10525 * config/microblaze/microblaze-protos.h
10526 (microblaze_legitimate_pic_operand): Declare.
10527
a72d8780 105282013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
82f8f53a 10529
a72d8780 10530 * config/microblaze/predicates.md (call_insn_simple_operand):
82f8f53a 10531 New predicate for supported rtx code types.
a72d8780 10532 * config/microblaze/microblaze.md (call_internal1): Use
82f8f53a
EI
10533 call_insn_simple_operand predicate.
10534
541d9ac8
JJ
105352013-03-04 Jakub Jelinek <jakub@redhat.com>
10536
5eb010bc
JJ
10537 PR middle-end/56461
10538 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
10539 partitions.ordered_remove.
10540
30862efc
JJ
10541 PR middle-end/56461
10542 * tree-vect-stmts.c (vectorizable_conversion): Don't call
10543 vec_oprnds0.create (1) for modifier == NONE.
10544
8930f723
JJ
10545 PR middle-end/56461
10546 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
10547 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
10548 vec_oprnds1 right before pushing anything to it for
10549 scalar_shift_arg.
10550
541d9ac8
JJ
10551 PR middle-end/56461
10552 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
10553 set nbbs to 0 instead of having separate code path.
10554 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
10555 instead of false as last argument if returning NULL.
10556
7aa7f2e3
SL
105572013-03-03 Sandra Loosemore <sandra@codesourcery.com>
10558
10559 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
10560 the attribute is now called "target" instead of "option".
10561 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
10562 * doc/tm.texi.in (Target Attributes): Likewise document the correct
10563 attribute/pragma name for TARGET_OPTION_VALID_P and
10564 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
10565 * doc/tm.texi: Regenerated.
10566
8930f723 105672013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
cb8a1637 10568
8930f723 10569 * config/microblaze/microblaze.c:
cb8a1637 10570 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8930f723
JJ
10571 * config/microblaze/microblaze.h: Add -mxl-reorder to
10572 DRIVER_SELF_SPECS.
10573 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
10574 instructions emitted if TARGET_REORDER.
88b97037
UB
10575 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
10576 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8930f723 10577 separately.
cb8a1637 10578
4dc1d68c
XDL
105792013-03-01 Xinliang David Li <davidxl@google.com>
10580
10581 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
10582 walk length.
10583
689eaba3
JJ
105842013-03-01 Jakub Jelinek <jakub@redhat.com>
10585
9d676bf6
JJ
10586 PR middle-end/56461
10587 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
10588 vector even when returning true. Fix up function comment formatting.
10589
caff7edf
JJ
10590 PR middle-end/56461
10591 * ira-build.c (ira_loop_nodes_count): New variable.
10592 (create_loop_tree_nodes): Initialize it.
10593 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
10594
b6b9227d
JJ
10595 PR middle-end/56461
10596 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
10597 method on dr_chain and result_chain.
10598 * tree-vect-stmts.c (vectorizable_store): Only call
10599 result_chain.create if j == 0.
10600
689eaba3
JJ
10601 PR middle-end/56461
10602 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
10603 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
10604 before overwriting it.
10605
40bf31ed
TB
106062013-03-01 Tobias Burnus <burnus@net-b.de>
10607
10608 * doc/extended.texi (C Extensions): Change order in @menu
10609 to match @node.
10610 (Other MIPS Built-in Functions): Move last MIPS entry before
10611 "picoChip Built-in Functions".
10612 (SH Built-in Functions): Move after RX Built-in Functions.
10613 * doc/gcc.texi (Introduction): Change order in @menu
10614 to match @node.
10615 * doc/md.texi (Constraints): Ditto.
10616 * gty.texi (Type Information): Ditto.
10617 (User-provided marking routines for template types): Make
10618 subsection.
10619 * doc/invoke.texi (AArch64 Options): Move before
10620 "Adapteva Epiphany Options".
10621
e664c61c
KS
106222013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
10623 Jakub Jelinek <jakub@redhat.com>
10624
10625 PR sanitizer/56454
10626 * asan.c (gate_asan): Lookup no_sanitize_address instead of
10627 no_address_safety_analysis attribute.
10628 * doc/extend.texi (no_address_safety_attribute): Rename to
10629 no_sanitize_address attribute, mention no_address_safety_analysis
10630 attribute as deprecated alias.
10631
37b5ec8f
JJ
106322013-02-28 Jakub Jelinek <jakub@redhat.com>
10633
10634 PR middle-end/56461
10635 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
10636 type to vec<vec<tree> > *.
10637 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
10638 to be vec<tree> instead of vec<tree> *, set vec_defs
10639 to vNULL and call vec_defs.create (number_of_vects), adjust other
10640 uses of vec_defs.
10641 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
10642 vectorizable_condition): Adjust vect_get_slp_defs callers.
10643
ba96cdfb
JG
106442013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10645
10646 * config/aarch64/aarch64.c
10647 (aarch64_float_const_representable): Remove unused variable.
10648
6f549691
JG
106492013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10650
10651 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
10652
af55e82d
JG
106532013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10654
10655 * config/aarch64/aarch64-builtins.c
10656 (aarch64_init_simd_builtins): Make static.
10657
1df3f464
JG
106582013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10659
10660 * config/aarch64/aarch64.c
10661 (aarch64_simd_make_constant): Make static.
10662
f8f42513
MJ
106632013-02-28 Martin Jambor <mjambor@suse.cz>
10664
10665 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
10666 with no initialization to the RHS of debug statements.
10667
b48b3fc4
MJ
106682013-02-28 Martin Jambor <mjambor@suse.cz>
10669
10670 PR tree-optimization/56294
10671 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
10672 Adjust dumping.
10673 (get_access_replacement): Do not call create_access_replacement.
10674 Assert a replacement exists.
10675 (get_repl_default_def_ssa_name): Create the replacement declaration
10676 itself.
10677
c3ae224c
RR
106782013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10679
10680 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
10681 final_end_function.
10682
45fa0eef
MP
106832013-02-28 Marek Polacek <polacek@redhat.com>
10684
10685 PR rtl-optimization/56466
10686 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
10687 if we're changing a loop.
10688 (peel_loops_completely): Likewise.
10689
502c067d
PC
106902013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
10691
10692 PR c++/55813
10693 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
10694
ff24afc8
GJL
106952013-02-28 Georg-Johann Lay <avr@gjlay.de>
10696
10697 PR target/56445
10698 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
10699 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
10700 INTX_FTYPE_FX, FX_FTYPE_INTX.
10701 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
10702
c7b1fc1b
GJL
107032013-02-28 Georg-Johann Lay <avr@gjlay.de>
10704
10705 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
10706 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
10707 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
10708 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
10709 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
10710 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
10711 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
10712 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
10713 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
10714 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
10715 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
10716 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
10717 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
10718 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
10719 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
10720 (avrxmega6): Increase max flash segments from 5 to 6.
10721 * config/avr/t-multilib: Regenerate.
10722 * config/avr/avr-tables.opt: Regenerate.
10723 * doc/avr-mmcu.texi: Regenerate.
10724
4a0e3cfe
GJL
107252013-02-28 Georg-Johann Lay <avr@gjlay.de>
10726
10727 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
10728 (avr_device_to_arch): Rename to avr_device_to_ld.
10729 (avr_device_to_as): New prototype.
10730 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
10731 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
10732 * config/avr/driver-avr.c (avr_device_to_as): New.
10733 (avr_device_to_arch): Rename to avr_device_to_ld.
10734
97785e52
JJ
107352013-02-27 Jakub Jelinek <jakub@redhat.com>
10736
3f292312
JJ
10737 PR middle-end/56461
10738 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
10739 method on dr_chain and result_chain.
10740
a344216b
JJ
10741 PR middle-end/56461
10742 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
10743 pointer_set_destroy on not_executed_last_iteration.
10744
f121ad02 10745 PR middle-end/56461
88b97037 10746 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
f121ad02 10747
307f83a3
JJ
10748 PR middle-end/56461
10749 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
10750 FOR_EACH_DEFINED_FUNCTION when freeing state.
10751
e19624ee
JJ
10752 PR middle-end/56461
10753 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
10754 pool_free.
10755 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
10756 overwriting it.
10757
90e709fd
JJ
10758 PR middle-end/56461
10759 * ipa-cp.c (decide_whether_version_node): Call vec_free on
10760 known_aggs[i].items and release known_aggs vector.
10761
97785e52
JJ
10762 PR middle-end/56461
10763 * ipa-reference.c (propagate): Free node_info even for alias nodes.
10764
107652013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
bbb3a9e2 10766
97785e52
JJ
10767 * config/microblaze/microblaze.c (microblaze_emit_compare):
10768 Use xor for EQ/NE comparisions.
10769 * config/microblaze/microblaze.md (cstoresf4): Add constraints
10770 (cbranchsf4): Adjust operator to comparison_operator.
bbb3a9e2 10771
6fa5e0ed
JJ
107722013-02-27 Jakub Jelinek <jakub@redhat.com>
10773
10774 PR middle-end/56461
10775 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
10776 vector.
10777 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
10778 vec_safe_push, always update *slot.
10779 (redirect_edge_var_map_clear): Use vec_free.
10780 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
10781 (free_var_map_entry): Use vec_free.
10782 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
10783 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
10784
436a956a
AB
107852013-02-27 Andrey Belevantsev <abel@ispras.ru>
10786
10787 PR middle-end/45472
436a956a
AB
10788 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
10789 when the may_trap_p bit of the exprs being merged differs.
436a956a
AB
10790 Reorder tests for speculativeness in the logical and operator.
10791
f5c2caca
JJ
107922013-02-27 Jakub Jelinek <jakub@redhat.com>
10793
0fcb564b
JJ
10794 * incpath.c (add_standard_paths): Use reconcat instead of concat
10795 where appropriate and avoid leaking memory.
10796
dc357798
JJ
10797 * opts.h: Include obstack.h.
10798 (opts_concat): New prototype.
10799 (opts_obstack): New declaration.
10800 * opts.c (opts_concat): New function.
10801 (opts_obstack): New variable.
10802 (init_options_struct): Call gcc_init_obstack on opts_obstack.
10803 (finish_options): Use opts_concat instead of concat
10804 and XOBNEWVEC instead of XNEWVEC.
10805 * opts-common.c (generate_canonical_option, decode_cmdline_option,
10806 generate_option): Likewise.
10807 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
10808 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
10809
f5c2caca
JJ
10810 PR target/56455
10811 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
10812 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
10813
d0163673
JJ
108142013-02-26 Jakub Jelinek <jakub@redhat.com>
10815
10816 PR middle-end/56461
10817 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
10818
b5ad2b8e
JR
108192013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
10820
10821 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
10822 (arm_block_move_unaligned_straight): Likewise.
10823 (arm_adjust_block_mem): Likewise.
10824
9b639e2c
JR
108252013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
10826
10827 PR target/48901
10828 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
10829 temp, cond and label.
10830 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
10831
e13a0ccb
JR
10832 PR target/52500
10833 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
10834 * config/c6x/c6x.h (dbx_register_map): Update declaration.
10835
fbe4f171
JR
10836 PR target/52501
10837 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
10838 of prologue/epilogue functions.
10839
ae006543
JR
10840 PR target/52550
10841 * config/tilegx/tilegx.c (tilegx_expand_prologue):
10842 Remove unused variable cfa_offset.
10843 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
10844
c81369fa
JR
10845 PR target/54639
10846 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
10847 type promotion to unsigned.
10848
f8a8fea7
JR
10849 PR target/54640
10850 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
10851 for HOST_WIDE_INT of 32 bit / same size as int.
10852 (arm_block_move_unaligned_straight): Likewise.
10853 (arm_adjust_block_mem): Likewise.
10854
f8be5169
JR
10855 PR target/54662
10856 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
10857 ALL_CFLAGS.
10858
f1ad3354
MP
108592013-02-26 Marek Polacek <polacek@redhat.com>
10860
10861 PR tree-optimization/56426
88b97037 10862 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
f1ad3354 10863
a6af0f42
RB
108642013-02-26 Richard Biener <rguenther@suse.de>
10865
10866 PR target/56444
10867 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
10868 unused variable loops.
10869
aca43c6c
JJ
108702013-02-26 Jakub Jelinek <jakub@redhat.com>
10871
cecbe5d9
JJ
10872 PR tree-optimization/56448
10873 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
10874 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
10875 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
10876 later operands of the references, or even first operand for
10877 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
10878
aca43c6c
JJ
10879 PR tree-optimization/56443
10880 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
10881 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
10882 to type_for_mode langhook.
10883
53e2e141
MT
108842013-02-25 Matt Turner <mattst88@gmail.com>
10885
10886 * doc/invoke.texi: Document r4700.
10887
259ee451
RB
108882013-02-25 Richard Biener <rguenther@suse.de>
10889
10890 PR tree-optimization/56175
10891 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
10892 split out from ...
10893 (simplify_bitwise_binary): ... here. Also guard the conversion
10894 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
10895
6d65e8f1
CM
108962013-02-25 Catherine Moore <clm@codesourcery.com>
10897
10898 Revert:
10899 2013-02-24 Catherine Moore <clm@codesourcery.com>
10900 Maciej W. Rozycki <macro@codesourcery.com>
10901 Tom de Vries <tom@codesourcery.com>
a72d8780 10902 Nathan Sidwell <nathan@codesourcery.com>
6d65e8f1
CM
10903 Iain Sandoe <iain@codesourcery.com>
10904 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 10905 Chao-ying Fu <fu@mips.com>
88b97037 10906
6d65e8f1 10907 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 10908 Document new function attributes.
6d65e8f1
CM
10909 * doc/invoke.texi (minterlink-compressed, mmicromips,
10910 m14k, m14ke, m14kec): Document new options.
10911 (minterlink-mips16): Update documentation.
10912 * doc/md.texi (ZC, ZD): Document new constraints.
10913 * configure.ac (gcc_cv_as_micromips): Check if linker
10914 supports the .set micromips directive.
10915 * configure: Regenerate.
10916 * config.in: Regenerate.
10917 * config/mips/mips-tables.opt: Regenerate.
10918 * config/mips/micromips.md: New file.
10919 * constraints.md (ZC, AD): New constraints.
10920 * config/mips/predicates.md (movep_src_register): New predicate.
10921 (movep_src_operand): New predicate.
10922 (non_volatile_mem_operand): New predicate.
10923 * config/mips/mips.md (multimem): New type.
10924 (length): Differentiate between 17-bit and 18-bit branch offsets.
10925 (MOVEP1, MOVEP2): New mode iterator.
10926 (mov_<load>l): Use ZC constraint.
10927 (mov_<load>r): Likewise.
10928 (mov_<store>l): Likewise.
10929 (mov_<store>r): Likewise.
10930 (*branch_equality<mode>_inverted): Add microMIPS support.
10931 (*branch_equality<mode>): Likewise.
10932 (*jump_absolute): Likewise.
10933 (indirect_jump_<mode>): Likewise.
10934 (tablejump_<mode>): Likewise.
10935 (<optab>_internal): Likewise.
10936 (sibcall_internal): Likewise.
10937 (sibcall_value_internal): Likewise.
10938 (prefetch): Use constraint ZD.
10939 * config/mips/mips.opt (minterlink-compressed): New option.
10940 (minterlink-mips16): Now an alias for minterlink-compressed.
10941 (mmicromips): New option.
10942 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
10943 (compare_and_swap_12): Likewise.
10944 (sync_add<mode>): Likewise.
10945 (sync_<optab>_12): Likewise.
10946 (sync_old_<optab>_12): Likewise.
10947 (sync_new_<optab>_12): Likewise.
10948 (sync_nand_12): Likewise.
10949 (sync_old_nand_12): Likewise.
10950 (sync_new_nand_12): Likewise.
10951 (sync_sub<mode>): Likewise.
10952 (sync_old_add<mode>): Likewise.
10953 (sync_old_sub<mode>): Likewise.
10954 (sync_new_add<mode>): Likewise.
10955 (sync_new_sub<mode>): Likewise.
10956 (sync_<optab><mode>): Likewise.
10957 (sync_old_<optab><mode>): Likewise.
10958 (sync_new_<optab><mode>): Likewise.
10959 (sync_nand<mode>): Likewise.
10960 (sync_old_nand<mode>): Likewise.
10961 (sync_new_nand<mode>): Likewise.
10962 (sync_lock_test_and_set<mode>): Likewise.
10963 (test_and_set_12): Likewise.
10964 (atomic_compare_and_swap<mode>): Likewise.
10965 (atomic_exchange<mode>_llsc): Likewise.
10966 (atomic_fetch_add<mode>_llsc): Likewise.
10967 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
10968 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
10969 (umips_save_restore_pattern_p): Likewise.
10970 (umips_load_store_pair_p): Likewise.
10971 (umips_output_load_store_pair): Likewise.
10972 (umips_movep_target_p): Likewise.
10973 (umips_12bit_offset_address_p): Likewise.
10974 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
10975 (mips_base_mips16): Rename this...
10976 (mips_base_compression_flags): ...to this. Update all uses.
10977 (mips_attribute_table): Add micromips, nomicromips and nocompression.
10978 (mips_mips16_decl_p): Delete.
10979 (mips_nomips16_decl_p): Delete.
10980 (mips_get_compress_on_flags): New function.
10981 (mips_get_compress_off_flags): New function.
10982 (mips_get_compress_mode): New function.
10983 (mips_get_compress_on_name): New function.
10984 (mips_get_compress_off_name): New function.
10985 (mips_insert_attributes): Support multiple compression types.
10986 (mips_merge_decl_attributes): Likewise.
10987 (umips_12bit_offset_address_p): New function.
10988 (mips_start_function_definition): Emit .set micromips directive.
10989 (mips_call_may_need_jalx_p): New function.
10990 (mips_function_ok_for_sibcall): Add microMIPS support.
10991 (mips_print_operand_punctuation): Support short delay slots and
10992 compact jumps.
10993 (umips_swm_mask, umips_swm_encoding): New.
10994 (umips_build_save_restore): New function.
10995 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
10996 (was_mips16_p): Remove.
10997 (old_compression_mode): New.
10998 (mips_set_compression_mode): New function.
10999 (mips_set_current_function): Add microMIPS support.
11000 (mips_option_override): Likewise.
11001 (umips_save_restore_pattern_p): New function.
11002 (umips_output_save_restore): New function.
11003 (umips_load_store_pair_p_1): New function.
11004 (umips_load_store_pair_p): New function.
11005 (umips_output_load_store_pair_1): New function.
11006 (umips_output_load_store_pair): New function.
11007 (umips_movep_target_p) New function.
11008 (mips_prepare_pch_save): Add microMIPS support.
11009 * config/mips/mips.h (TARGET_COMPRESSION): New.
11010 (TARGET_CPU_CPP_BUILTINS): Update macro
11011 to use new compression flags and to support microMIPS.
11012 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
11013 (MIPS_ARCH_FLOAT_SPEC): Likewise.
11014 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
11015 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
11016 (ASM_SPEC): Support mmicromips and mno-micromips.
11017 (M16STORE_REG_P): New macro.
11018 (MIPS_CALL): Support TARGET_MICROMIPS.
11019 (MICROMIPS_J): New macro.
11020 (mips_base_mips16): Rename this...
11021 (mips_base_compression_flags): ...to this.
11022 (UMIPS_12BIT_OFFSET_P): New macro.
11023 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
11024 (MULTILIB_DIRNAMES): Likewise.
11025
5e5df392
TV
110262013-02-25 Tom de Vries <tom@codesourcery.com>
11027
11028 PR rtl-optimization/56131
11029 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
11030 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
11031 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
11032
3fdb53c1
TB
110332013-02-25 Tobias Burnus <burnus@net-b.de>
11034
11035 * doc/invoke.texi (-fsanitize=): Move from optimization
11036 to debugging options.
11037
ed358aea
AB
110382013-02-25 Andrey Belevantsev <abel@ispras.ru>
11039
11040 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
11041
f45e9053
AB
110422013-02-25 Andrey Belevantsev <abel@ispras.ru>
11043 Alexander Monakov <amonakov@ispras.ru>
11044
11045 PR middle-end/56077
11046 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
11047 flush pending lists also on non-jumps. Adjust comment.
11048
6941b508
CM
110492013-02-24 Catherine Moore <clm@codesourcery.com>
11050 Maciej W. Rozycki <macro@codesourcery.com>
11051 Tom de Vries <tom@codesourcery.com>
a72d8780 11052 Nathan Sidwell <nathan@codesourcery.com>
6941b508
CM
11053 Iain Sandoe <iain@codesourcery.com>
11054 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 11055 Chao-ying Fu <fu@mips.com>
6941b508
CM
11056
11057 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 11058 Document new function attributes.
6941b508
CM
11059 * doc/invoke.texi (minterlink-compressed, mmicromips,
11060 m14k, m14ke, m14kec): Document new options.
11061 (minterlink-mips16): Update documentation.
11062 * doc/md.texi (ZC, ZD): Document new constraints.
11063 * configure.ac (gcc_cv_as_micromips): Check if linker
11064 supports the .set micromips directive.
11065 * configure: Regenerate.
11066 * config.in: Regenerate.
11067 * config/mips/mips-tables.opt: Regenerate.
11068 * config/mips/micromips.md: New file.
11069 * constraints.md (ZC, AD): New constraints.
11070 * config/mips/predicates.md (movep_src_register): New predicate.
11071 (movep_src_operand): New predicate.
11072 (non_volatile_mem_operand): New predicate.
11073 * config/mips/mips.md (multimem): New type.
11074 (length): Differentiate between 17-bit and 18-bit branch offsets.
11075 (MOVEP1, MOVEP2): New mode iterator.
3fdb53c1 11076 (mov_<load>l): Use ZC constraint.
6941b508
CM
11077 (mov_<load>r): Likewise.
11078 (mov_<store>l): Likewise.
11079 (mov_<store>r): Likewise.
11080 (*branch_equality<mode>_inverted): Add microMIPS support.
11081 (*branch_equality<mode>): Likewise.
11082 (*jump_absolute): Likewise.
11083 (indirect_jump_<mode>): Likewise.
11084 (tablejump_<mode>): Likewise.
11085 (<optab>_internal): Likewise.
11086 (sibcall_internal): Likewise.
11087 (sibcall_value_internal): Likewise.
11088 (prefetch): Use constraint ZD.
11089 * config/mips/mips.opt (minterlink-compressed): New option.
11090 (minterlink-mips16): Now an alias for minterlink-compressed.
11091 (mmicromips): New option.
11092 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
11093 (compare_and_swap_12): Likewise.
11094 (sync_add<mode>): Likewise.
11095 (sync_<optab>_12): Likewise.
11096 (sync_old_<optab>_12): Likewise.
11097 (sync_new_<optab>_12): Likewise.
11098 (sync_nand_12): Likewise.
11099 (sync_old_nand_12): Likewise.
11100 (sync_new_nand_12): Likewise.
11101 (sync_sub<mode>): Likewise.
11102 (sync_old_add<mode>): Likewise.
11103 (sync_old_sub<mode>): Likewise.
11104 (sync_new_add<mode>): Likewise.
11105 (sync_new_sub<mode>): Likewise.
11106 (sync_<optab><mode>): Likewise.
11107 (sync_old_<optab><mode>): Likewise.
11108 (sync_new_<optab><mode>): Likewise.
11109 (sync_nand<mode>): Likewise.
11110 (sync_old_nand<mode>): Likewise.
11111 (sync_new_nand<mode>): Likewise.
11112 (sync_lock_test_and_set<mode>): Likewise.
11113 (test_and_set_12): Likewise.
11114 (atomic_compare_and_swap<mode>): Likewise.
11115 (atomic_exchange<mode>_llsc): Likewise.
11116 (atomic_fetch_add<mode>_llsc): Likewise.
11117 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
11118 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
11119 (umips_save_restore_pattern_p): Likewise.
11120 (umips_load_store_pair_p): Likewise.
11121 (umips_output_load_store_pair): Likewise.
11122 (umips_movep_target_p): Likewise.
11123 (umips_12bit_offset_address_p): Likewise.
11124 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
11125 (mips_base_mips16): Rename this...
11126 (mips_base_compression_flags): ...to this. Update all uses.
11127 (mips_attribute_table): Add micromips, nomicromips and nocompression.
11128 (mips_mips16_decl_p): Delete.
11129 (mips_nomips16_decl_p): Delete.
3fdb53c1 11130 (mips_get_compress_on_flags): New function.
6941b508
CM
11131 (mips_get_compress_off_flags): New function.
11132 (mips_get_compress_mode): New function.
11133 (mips_get_compress_on_name): New function.
11134 (mips_get_compress_off_name): New function.
11135 (mips_insert_attributes): Support multiple compression types.
11136 (mips_merge_decl_attributes): Likewise.
11137 (umips_12bit_offset_address_p): New function.
11138 (mips_start_function_definition): Emit .set micromips directive.
11139 (mips_call_may_need_jalx_p): New function.
11140 (mips_function_ok_for_sibcall): Add microMIPS support.
11141 (mips_print_operand_punctuation): Support short delay slots and
11142 compact jumps.
11143 (umips_swm_mask, umips_swm_encoding): New.
11144 (umips_build_save_restore): New function.
11145 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
11146 (was_mips16_p): Remove.
11147 (old_compression_mode): New.
11148 (mips_set_compression_mode): New function.
11149 (mips_set_current_function): Add microMIPS support.
11150 (mips_option_override): Likewise.
11151 (umips_save_restore_pattern_p): New function.
11152 (umips_output_save_restore): New function.
11153 (umips_load_store_pair_p_1): New function.
11154 (umips_load_store_pair_p): New function.
11155 (umips_output_load_store_pair_1): New function.
11156 (umips_output_load_store_pair): New function.
11157 (umips_movep_target_p) New function.
11158 (mips_prepare_pch_save): Add microMIPS support.
11159 * config/mips/mips.h (TARGET_COMPRESSION): New.
11160 (TARGET_CPU_CPP_BUILTINS): Update macro
11161 to use new compression flags and to support microMIPS.
11162 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
11163 (MIPS_ARCH_FLOAT_SPEC): Likewise.
11164 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
11165 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
11166 (ASM_SPEC): Support mmicromips and mno-micromips.
11167 (M16STORE_REG_P): New macro.
11168 (MIPS_CALL): Support TARGET_MICROMIPS.
11169 (MICROMIPS_J): New macro.
11170 (mips_base_mips16): Rename this...
11171 (mips_base_compression_flags): ...to this.
11172 (UMIPS_12BIT_OFFSET_P): New macro.
11173 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
11174 (MULTILIB_DIRNAMES): Likewise.
11175
cdebbc6d
JJ
111762013-02-24 Jakub Jelinek <jakub@redhat.com>
11177
11178 PR target/52555
11179 * target-globals.c (save_target_globals): For init_reg_sets and
11180 target_reinit remporarily set this_fn_optabs to this_target_optabs.
11181
18c63565
JG
111822013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
11183
11184 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
11185 * config/aarch64/t-aarch64
11186 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
11187
2194f7a2
VM
111882013-02-22 Vladimir Makarov <vmakarov@redhat.com>
11189
11190 PR inline-asm/56148
11191 * lra-constraints.c (process_alt_operands): Reload operand
11192 conflicting with earlier clobber only if no more other conflicting
11193 operands.
11194
7d613735
JJ
111952013-02-22 Jakub Jelinek <jakub@redhat.com>
11196
11197 PR sanitizer/56393
11198 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
11199 if not linking a shared library.
11200
ac8d93a7
SL
112012013-02-22 Seth LaForge <sethml@google.com>
11202
11203 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
11204
e0237780
GY
112052013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
11206
3fdb53c1
TB
11207 * config/arm/arm.md (split for extendsidi): Update condition.
11208 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
11209 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
11210 (qhs_zextenddi_cstr): Likewise.
e0237780 11211
d7fde18c
JJ
112122013-02-21 Jakub Jelinek <jakub@redhat.com>
11213
be63b77d
JJ
11214 PR middle-end/56420
11215 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
11216 avoid signed wrapping.
11217 (expand_mult): Handle properly multiplication by
11218 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
11219 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
11220 in the compiler if coeff is HOST_WIDE_INT_MIN.
11221 (expand_divmod): Don't make ext_op1 static, change it's type to
11222 uhwi. Avoid undefined behavior in -INTVAL (op1).
11223
d7fde18c
JJ
11224 PR rtl-optimization/50339
11225 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
11226 field.
11227 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
11228 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
11229 into splitting_ashiftrt field.
11230 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
11231 ASHIFTRT.
11232 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
11233 choices.
11234
6aad4455
AH
112352013-02-20 Aldy Hernandez <aldyh@redhat.com>
11236
11237 PR middle-end/56108
11238 * trans-mem.c (execute_tm_mark): Do not expand transactions that
11239 are sure to go irrevocable.
11240
38fe784d
HPN
112412013-02-21 Hans-Peter Nilsson <hp@axis.com>
11242
11243 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
11244 scalars are valid operands.
11245
0fd44da3
MJ
112462013-02-21 Martin Jambor <mjambor@suse.cz>
11247
11248 PR tree-optimization/56310
11249 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
11250 only matching indices and non-negative final offsets.
11251 (intersect_aggregates_with_edge): Pass src_idx to
11252 agg_replacements_to_vector. Pass src_idx insstead of index to
11253 intersect_with_agg_replacements.
11254
7a92038b
MJ
112552013-02-21 Martin Jambor <mjambor@suse.cz>
11256
11257 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
11258 instead of hard-wired defaults.
11259
c0da9c37
MR
112602013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
11261
11262 * doc/invoke.texi (MIPS Options): Update documentation of the
11263 floating-point multiply-accumulate instruction restrictions.
11264
d247ea0c 112652013-02-21 Kostya Serebryany <kcc@google.com>
7df59255
KS
11266
11267 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
11268 asan_shadow_offset on x86_64 linux.
11269
22deefcb
RB
112702013-02-21 Richard Biener <rguenther@suse.de>
11271
11272 PR tree-optimization/56415
11273 Revert
11274 2013-02-11 Richard Biener <rguenther@suse.de>
11275
11276 PR tree-optimization/56273
11277 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
11278 first VRP run.
11279
7bcc6e75
JJ
112802013-02-21 Jakub Jelinek <jakub@redhat.com>
11281
a0ad148f
JJ
11282 PR bootstrap/56258
11283 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
11284 instead of @itemx.
11285
7bcc6e75
JJ
11286 PR inline-asm/56405
11287 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
11288 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
11289
a0a7b611
JH
112902013-02-20 Jan Hubicka <jh@suse.cz>
11291
11292 PR tree-optimization/56265
88b97037
UB
11293 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
11294 when target is referenced for first time.
a0a7b611 11295
c0e50f72
RB
112962013-02-20 Richard Biener <rguenther@suse.de>
11297
11298 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
11299 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
11300 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
11301 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
11302 not return anything.
11303 (rename_ssa_copies): Do not remove unused locals.
11304 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
88b97037 11305 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
c0e50f72
RB
11306 * passes.c (execute_function_todo): Do not schedule unused locals
11307 removal if cleanup_tree_cfg did something.
11308 * tree-ssa-live.c (remove_unused_locals): Dump statistics
11309 about the number of removed locals.
11310
a52ca739
RB
113112013-02-20 Richard Biener <rguenther@suse.de>
11312
11313 PR tree-optimization/56398
88b97037 11314 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
a52ca739 11315
ec9c9d1b
MJ
113162013-02-20 Martin Jambor <mjambor@suse.cz>
11317
11318 PR tree-optimization/55334
11319 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
11320 restricted pointers to arrays.
11321
e91c8ed6 113222013-02-20 Richard Biener <rguenther@suse.de>
88b97037 11323 Jakub Jelinek <jakub@redhat.com>
e91c8ed6
RB
11324
11325 PR tree-optimization/56396
11326 * tree-ssa-ccp.c (n_const_val): New static variable.
11327 (get_value): Return NULL for SSA names we don't have a lattice
11328 entry for.
11329 (ccp_initialize): Initialize n_const_val.
11330 * tree-ssa-copy.c (n_copy_of): New static variable.
11331 (init_copy_prop): Initialize n_copy_of.
11332 (get_value): Return NULL_TREE for SSA names we don't have a
11333 lattice entry for.
11334
3d916479
MJ
113352013-02-20 Martin Jambor <mjambor@suse.cz>
11336
11337 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
11338
71a86758
RB
113392013-02-20 Richard Biener <rguenther@suse.de>
11340
11341 * genpreds.c (write_lookup_constraint): Do not compare first
11342 letter of the constraint again.
11343
79836a12
RB
113442013-02-20 Richard Biener <rguenther@suse.de>
11345
11346 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
11347 and ceil_log2.
11348 (get_use_iv_cost): Terminate hashtable walk when coming across
11349 an empty entry.
11350
bbe4fb2c
IZ
113512013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
11352
11353 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
11354 reassociation for avx2 targets.
11355
a72d8780 113562012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
79836a12 11357
c77f83d5
EI
11358 * config/microblaze/microblaze.c: microblaze_has_clz = 0
11359 Add version check for v8.10.a to enable microblaze_has_clz
88b97037 11360 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
c77f83d5
EI
11361 version and TARGET_PATTERN_COMPARE check
11362 * config/microblaze/microblaze.md: New clzsi2 instruction
3fdb53c1 11363
a72d8780 113642012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
959434e6 11365
a72d8780 11366 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
959434e6
EI
11367 function before branching.
11368
242387fa
AB
113692012-02-19 Andrey Belevantsev <abel@ispras.ru>
11370
11371 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
11372 DUMP_INSN_RTX_UID.
11373 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
11374
b4979ab9
AB
113752012-02-19 Andrey Belevantsev <abel@ispras.ru>
11376
11377 PR middle-end/55889
b4979ab9
AB
11378 * sel-sched.c: Include ira.h.
11379 (implicit_clobber_conflict_p): New function.
11380 (moveup_expr): Use it.
88b97037 11381 * Makefile.in (sel-sched.o): Depend on ira.h.
b4979ab9 11382
24d63016
RB
113832013-02-19 Richard Biener <rguenther@suse.de>
11384
11385 PR tree-optimization/56384
11386 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
11387 (vn_hash_type): Split out from ...
11388 (vn_hash_constant_with_type): ... here.
11389 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
11390 (vn_phi_eq): Compare types from vn_phi_s structure.
11391 (vn_phi_lookup): Populate vn_phi_s type.
11392 (vn_phi_insert): Likewise.
11393
a475fd3d
JJ
113942013-02-19 Jakub Jelinek <jakub@redhat.com>
11395
47cc28f5
JJ
11396 PR tree-optimization/56350
11397 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
11398 if haven't found reduction or nested cycle operand, rather than
11399 asserting we must find it.
11400
a475fd3d
JJ
11401 PR tree-optimization/56381
11402 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
11403 to fold_build3.
11404
114052013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
11406 Jakub Jelinek <jakub@redhat.com>
11407
11408 PR target/52555
11409 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
11410 (swap_optab_enable): Same.
11411 (init_all_optabs): Use argument instead of global.
88b97037 11412 * tree.h (struct tree_optimization_option): New field target_optabs.
135204dd
AH
11413 * expr.h (init_all_optabs): Add argument to prototype.
11414 (TREE_OPTIMIZATION_OPTABS): New.
11415 (save_optabs_if_changed): Protoize.
11416 * optabs.h: Declare this_fn_optabs.
11417 * optabs.c (save_optabs_if_changed): New.
11418 Declare this_fn_optabs.
11419 (init_optabs): Add argument to init_all_optabs() call.
11420 * function.c (invoke_set_current_function_hook): Handle per
11421 function optabs.
11422 * function.h (struct function): New field optabs.
11423 * config/mips/mips.c (mips_set_mips16_mode): Handle when
11424 optimization_current_node has changed.
11425 * target-globals.h (save_target_globals_default_opts): Protoize.
11426 * target-globals.c (save_target_globals_default_opts): New.
11427
3f587ca3
JDA
114282013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11429
11430 PR target/56347
11431 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
11432 registers %fr12 and %fr12R as call used.
ceaca33e
JDA
11433
11434 PR target/56214
11435 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
88b97037
UB
11436 and HImode, require all displacements to be an integer multiple of
11437 their mode size.
ceaca33e
JDA
11438 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
11439 only allow QImode and HImode when reload is in progress and strict is
11440 true. Likewise for symbolic addresses. Use base14_operand to check
11441 displacements in REG+BASE addresses.
11442
fe0b4796
RB
114432013-02-18 Richard Biener <rguenther@suse.de>
11444
11445 PR tree-optimization/56366
11446 * tree-vect-loop.c (get_initial_def_for_induction): Properly
11447 handle sign-conversion of outer-loop initial induction value.
11448
6aaf596b
RB
114492013-02-18 Richard Biener <rguenther@suse.de>
11450
73db8ff1 11451 PR middle-end/56349
6aaf596b
RB
11452 * cfghooks.c (merge_blocks): If we merge a latch into another
11453 block adjust references to it.
11454 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
11455 (verify_loop_structure): Verify that a recorded latch is in fact
11456 a latch.
11457
5e97dfb6
RB
114582013-02-18 Richard Biener <rguenther@suse.de>
11459
11460 PR tree-optimization/56321
11461 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
11462 order SSA name release and virtual operand unlinking.
11463
825527e8
EI
114642013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11465
11466 * config/microblaze/microblaze.md (save_stack_block): Define.
11467 (restore_stack_block): Likewise.
11468
debd11d9
EI
114692013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11470
11471 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
11472 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
11473 * config/microblaze/microblaze.c (microblaze_option_override):
11474 Bail out early for PIC modes when target does not support PIC.
11475
8ec77be0
EI
114762013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11477
88b97037 11478 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
8ec77be0
EI
11479 Replace with a microblaze version.
11480 (microblaze_trampoline_init): Adapt for microblaze.
a752b80f 11481 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
8ec77be0
EI
11482 microblaze.
11483
b41288b3
JJ
114842013-02-16 Jakub Jelinek <jakub@redhat.com>
11485 Dodji Seketeli <dodji@redhat.com>
11486
11487 PR asan/56330
88b97037 11488 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
b41288b3
JJ
11489 (instrument_mem_region_access): Do not forget to always put
11490 instrumentation of the of 'base' and 'base + len' in a "if (len !=
11491 0) statement, even for cases where either 'base' or 'base + len'
11492 are not instrumented -- because they have been previously
11493 instrumented. Simplify the logic by putting all the statements
11494 instrument 'base + len' inside a sequence, and then insert that
11495 sequence right before the current insertion point. Then, to
11496 instrument 'base + len', just get an iterator on that statement.
11497 And do not forget to update the pointer to iterator the function
11498 received as argument.
11499
47918951
VM
115002013-02-15 Vladimir Makarov <vmakarov@redhat.com>
11501
11502 PR rtl-optimization/56348
11503 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
11504
3fb7c699
SB
115052013-02-15 Steven Bosscher <steven@gcc.gnu.org>
11506
11507 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
11508 (clean_graph_dump_file): Pass base to start_graph_dump.
11509
576fe41a
RH
115102013-02-14 Richard Henderson <rth@redhat.com>
11511
11512 PR target/55941
11513 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
11514
bb3accfa
SB
115152013-02-14 Steven Bosscher <steven@gcc.gnu.org>
11516
11517 * collect2-aix.h: Define F_LOADONLY.
11518
03143140
RB
115192013-02-14 Richard Biener <rguenther@suse.de>
11520
11521 PR lto/50494
11522 * varasm.c (output_constant_def_1): Get the decl representing
11523 the constant as argument.
11524 (output_constant_def): Wrap output_constant_def_1.
11525 (make_decl_rtl): Use output_constant_def_1 with the decl
11526 representing the constant.
11527 (build_constant_desc): Optionally re-use a decl already
11528 representing the constant.
11529 (tree_output_constant_def): Adjust.
11530
8fb06726
DS
115312013-02-14 Dodji Seketeli <dodji@redhat.com>
11532
11533 Fix an asan crash
11534 * asan.c (instrument_builtin_call): Really put the length of the
11535 second source argument into src1_len.
11536
c4bfe8bf
JJ
115372013-02-13 Jakub Jelinek <jakub@redhat.com>
11538
11539 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
11540 argument. If it is false, don't create edge from then_bb to
11541 fallthru_bb.
11542 (insert_if_then_before_iter): Pass true to it.
11543 (build_check_stmt): Pass false to it.
11544 (transform_statements): Flush hash table only on extended basic
11545 block boundaries, rather than at the beginning of every bb.
11546 Don't flush hash table on nonfreeing_call_p calls.
11547 * tree-flow.h (nonfreeing_call_p): New prototype.
11548 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
11549
7afe2801
DM
115502013-02-13 David S. Miller <davem@davemloft.net>
11551
11552 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
11553
70cc3288
VM
115542013-02-13 Vladimir Makarov <vmakarov@redhat.com>
11555
11556 PR target/56184
11557 * ira.c (max_regno_before_ira): Move from ...
11558 (ira): ... here.
11559 (fix_reg_equiv_init): Use max_regno_before_ira instead of
11560 vec_safe_length.
11561
6422242b
JJ
115622013-02-13 Jakub Jelinek <jakub@redhat.com>
11563
11564 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
11565
976a81ee
RB
115662013-02-13 Richard Biener <rguenther@suse.de>
11567
11568 PR lto/56295
11569 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
11570 globals in MEM_REFs.
11571
c1874a87
RB
115722013-02-13 Richard Biener <rguenther@suse.de>
11573
11574 * loop-init.c (loop_optimizer_init): Clear loop state when
11575 re-initializing preserved loops.
11576 * loop-unswitch.c (unswitch_single_loop): Return whether
11577 we unswitched the loop. Do not verify loop state here.
88b97037 11578 (unswitch_loops): When we unswitched a loop discover new loops.
c1874a87 11579
b4ab7d34
KS
115802013-02-13 Kostya Serebryany <kcc@google.com>
11581
88b97037
UB
11582 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
11583 on x86_64 linux.
b4ab7d34
KS
11584 * sanitizer.def: Rename __asan_init to __asan_init_v1.
11585
bdcbe80c
DS
115862013-02-12 Dodji Seketeli <dodji@redhat.com>
11587
11588 Avoid instrumenting duplicated memory access in the same basic block
11589 * Makefile.in (asan.o): Add new dependency on hash-table.h
11590 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
11591 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
11592 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
11593 (free_mem_ref_resources, has_mem_ref_been_instrumented)
11594 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
11595 (get_mem_ref_of_assignment): New functions.
11596 (get_mem_refs_of_builtin_call): Extract from
11597 instrument_builtin_call and tweak a little bit to make it fit with
11598 the new signature.
11599 (instrument_builtin_call): Use the new
11600 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
11601 of is_gimple_builtin_call.
11602 (instrument_derefs, instrument_mem_region_access): Insert the
11603 instrumented memory reference into the hash table.
11604 (maybe_instrument_assignment): Renamed instrument_assignment into
11605 this, and change it to advance the iterator when instrumentation
11606 actually happened and return true in that case. This makes it
11607 homogeneous with maybe_instrument_assignment, and thus give a
11608 chance to callers to be more 'regular'.
11609 (transform_statements): Clear the memory reference hash table
11610 whenever we enter a new BB, when we cross a function call, or when
11611 we are done transforming statements. Use
11612 maybe_instrument_assignment instead of instrumentation. No more
11613 need to special case maybe_instrument_assignment and advance the
11614 iterator after calling it; it's now handled just like
11615 maybe_instrument_call. Update comment.
11616
4861a1f7
RB
116172013-02-13 Richard Biener <rguenther@suse.de>
11618
11619 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
11620 Fix loop discovery code.
11621
1c86bd80
VM
116222013-02-12 Vladimir Makarov <vmakarov@redhat.com>
11623
11624 PR inline-asm/56148
11625 * lra-constraints.c (process_alt_operands): Match early clobber
70cc3288 11626 operand with itself. Check conflicts with earlyclobber only if
1c86bd80
VM
11627 the operand is not reloaded. Prefer to reload conflicting operand
11628 if earlyclobber and matching operands are the same.
11629
7cbda518
RB
116302013-02-12 Richard Biener <rguenther@suse.de>
11631
11632 PR lto/56297
11633 * lto-streamer-out.c (write_symbol): Do not output symbols
11634 for hard register variables.
11635
e68a4ef6
GJL
116362013-02-12 Georg-Johann Lay <avr@gjlay.de>
11637
11638 PR target/54222
11639 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
11640 (umulsidi3_insn, mulsidi3_insn): New insns.
11641
a72d8780 116422013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
2597da22
CL
11643
11644 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
11645 (struct tune_params): Add vec_costs field.
11646 * config/arm/arm.c (arm_builtin_vectorization_cost)
11647 (arm_add_stmt_cost): New functions.
11648 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
11649 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
11650 (arm_default_vec_cost): New struct of type cpu_vec_costs.
11651 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
11652 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
11653 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
11654 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
11655
43320568
RB
116562013-02-12 Richard Biener <rguenther@suse.de>
11657
11658 PR lto/56295
11659 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
11660 decls again if possible.
11661
a011aa39
RB
116622013-02-12 Richard Biener <rguenther@suse.de>
11663
11664 PR middle-end/56288
11665 * tree-ssa.c (verify_ssa_name): Fix check, move
11666 SSA_NAME_IN_FREE_LIST check up.
11667
6da26889
JJ
116682013-02-12 Jakub Jelinek <jakub@redhat.com>
11669 Steven Bosscher <steven@gcc.gnu.org>
11670
11671 PR rtl-optimization/56151
11672 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
11673 equal to op0 or op1, and last_insn pattern is CODE operation
11674 with MEM dest and one of the operands matches that MEM.
11675
f80e0faf
ST
116762013-02-11 Sriraman Tallam <tmsriramgoogle.com>
11677
11678 * doc/extend.texi: Document Function Multiversioning and "default"
11679 parameter string to target attribute.
11680 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
11681 target attribute parameter is "default".
11682 (ix86_compare_version_priority): Remove checks for target attribute.
11683 (ix86_mangle_function_version_assembler_name): Change error to sorry.
11684 Remove check for target attribute equal to NULL. Add assert.
11685 (ix86_generate_version_dispatcher_body): Change error to sorry.
11686
6c59ffd1
IS
116872013-02-11 Iain Sandoe <iain@codesourcery.com>
11688 Jack Howarth <howarth@bromo.med.uc.edu>
11689 Patrick Marlier <patrick.marlier@gmail.com>
11690
11691 PR libitm/55693
11692 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
11693 define ENDFILE_SPEC as TM_DESTRUCTOR.
11694 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
11695
a72d8780 116962013-02-11 Alexander Potapenko <glider@google.com>
6a52ccb3
AP
11697 Jack Howarth <howarth@bromo.med.uc.edu>
11698 Jakub Jelinek <jakub@redhat.com>
11699
11700 PR sanitizer/55617
11701 * config/darwin.c (cdtor_record): Rename ctor_record.
11702 (sort_cdtor_records): Rename sort_ctor_records.
11703 (finalize_dtors): New routine to sort destructors by
11704 priority before use in assemble_integer.
11705 (machopic_asm_out_destructor): Use finalize_dtors if needed.
11706
b63fe007
UB
117072013-02-11 Uros Bizjak <ubizjak@gmail.com>
11708
11709 PR rtl-optimization/56275
11710 * simplify-rtx.c (avoid_constant_pool_reference): Check that
11711 offset is non-negative and less than cmode size before
11712 calling simplify_subreg.
11713
8e89b5b5
RB
117142013-02-11 Richard Biener <rguenther@suse.de>
11715
11716 PR tree-optimization/56264
11717 * cfgloop.h (fix_loop_structure): Adjust prototype.
11718 * loop-init.c (fix_loop_structure): Return the number of
11719 newly discovered loops.
11720 * tree-cfgcleanup.c (repair_loop_structures): When new loops
11721 are discovered, do a full loop-closed SSA rewrite.
11722
b4a4b56d
RB
117232013-02-11 Richard Biener <rguenther@suse.de>
11724
11725 PR tree-optimization/56273
11726 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
11727 first VRP run.
11728 (check_array_ref): Fix missing newline in dumps.
11729 (search_for_addr_array): Likewise.
11730
0c885229
DE
117312013-02-09 David Edelsohn <dje.gcc@gmail.com>
11732
11733 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
11734
59ac9a55
JJ
117352013-02-09 Jakub Jelinek <jakub@redhat.com>
11736
11737 PR target/56256
11738 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
11739
25bb0bb5
VM
117402013-02-08 Vladimir Makarov <vmakarov@redhat.com>
11741
11742 PR rtl-optimization/56246
0c885229 11743 * lra-constraints.c (simplify_operand_subreg): Try to reuse
25bb0bb5
VM
11744 reload pseudo.
11745 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
11746 constraints are satisfied.
11747
a698cc03
JL
117482013-02-08 Jeff Law <law@redhat.com>
11749
11750 PR debug/53948
11751 * emit-rtl.c (reg_is_parm_p): New function.
11752 * regs.h (reg_is_parm_p): New prototype.
11753 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
11754 callee-clobbered registers.
11755
e1122ddd
MM
117562013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
11757
11758 PR target/56043
11759 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
11760 If there is no implicit builtin declaration, just return NULL.
11761
19c5f6e6
UB
117622013-02-08 Uros Bizjak <ubizjak@gmail.com>
11763
11764 * config/i386/sse.md (FMAMODEM): New mode iterator.
11765 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
11766 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
11767
2480f2ca 117682013-02-08 Uros Bizjak <ubizjak@gmail.com>
76ef61fb 11769
2480f2ca
UB
11770 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
11771 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
11772 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
11773
117742013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11775
11776 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
11777 (microblaze*-*-elf): Likewise.
11778 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
11779 LINK_SPEC.
11780 * config/microblaze/microblaze-c.c: Add builtin defines for
11781 _LITTLE_ENDIAN and _BIG_ENDIAN.
11782 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
11783 add to TARGET_DEFAULT flags.
76ef61fb 11784 Expand ASM_SPEC and LINK_SPEC.
2480f2ca
UB
11785 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
11786 * config/microblaze/microblaze.md: Update extendsidi2 and
11787 movdi_internal instructions to use low-order / high-order reg
11788 print_operands.
11789 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
11790 options and inversemask / mask of LITTLE_ENDIAN.
11791 * config/microblaze/t-microblaze: Expand multilib options to
11792 include mlittle-endian (le) and update exceptions patterns.
11793
600a5961
JJ
117942013-02-08 Jakub Jelinek <jakub@redhat.com>
11795
5df81313
JJ
11796 PR rtl-optimization/56195
11797 * lra-constraints.c (get_reload_reg): Don't reuse regs
11798 if they have smaller mode than requested, if they have
11799 wider mode than requested, try to return a SUBREG.
11800
600a5961
JJ
11801 PR tree-optimization/56250
11802 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
11803 if type is unsigned and code isn't MULT_EXPR.
11804
ff544649
GJL
118052013-02-08 Georg-Johann Lay <avr@gjlay.de>
11806
11807 PR tree-optimization/56064
11808 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
11809 bits according to mode.
11810 * fixed-value.h (fixed_from_double_int)
11811 (const_fixed_from_double_int): Adjust comments.
11812
e45cde98
RB
118132013-02-08 Richard Biener <rguenther@suse.de>
11814
11815 PR lto/56231
11816 * lto-streamer.h (struct data_in): Remove current_file, current_line
11817 and current_col members.
11818 * lto-streamer-out.c (lto_output_location): Stream changed bits
11819 en-block for efficiency.
11820 * lto-streamer-in.c (clear_line_info): Remove.
11821 (lto_input_location): Cache current file, line and column
11822 globally via local statics. Read changed bits en-block.
11823 (input_function): Do not call clear_line_info.
11824 (lto_read_body): Likewise.
11825 (lto_input_toplevel_asms): Likewise.
11826
c1ca73d8
MM
118272013-02-08 Michael Matz <matz@suse.de>
11828
11829 PR tree-optimization/52448
11830 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
11831 (nt_call_phase): New static.
11832 (add_or_mark_expr): Only mark accesses with newer phase than any
11833 call seen.
11834 (nonfreeing_call_p): New.
11835 (nt_init_block): Update nt_call_phase, mark blocks as visited.
11836 (nt_fini_block): Keep blocks marked as visited.
11837 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
11838
57548aa2
RB
118392013-02-08 Richard Biener <rguenther@suse.de>
11840
11841 * ira.c (ira): Free broken dominator information.
11842
8e10366f
UB
118432013-02-08 Uros Bizjak <ubizjak@gmail.com>
11844
11845 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
11846
f64fb0fa
MP
118472013-02-08 Marek Polacek <polacek@redhat.com>
11848
8e10366f 11849 * cfgloop.c (verify_loop_structure): Add more checking of headers.
f64fb0fa 11850
0375167b
RB
118512013-02-08 Richard Biener <rguenther@suse.de>
11852
11853 PR middle-end/56181
11854 * cfgloop.h (flow_loops_find): Adjust.
11855 (bb_loop_header_p): Declare.
11856 * cfgloop.c (bb_loop_header_p): New function split out from ...
11857 (flow_loops_find): ... here. Adjust function signature,
11858 support incremental loop structure update.
11859 (verify_loop_structure): Cleanup. Verify a loop is a loop.
11860 * cfgloopmanip.c (fix_loop_structure): Move ...
11861 * loop-init.c (fix_loop_structure): ... here.
11862 (apply_loop_flags): Split out from ...
11863 (loop_optimizer_init): ... here.
11864 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
11865 in incremental mode, only remove dead loops here.
11866
85d768f3
GJL
118672013-02-08 Georg-Johann Lay <avr@gjlay.de>
11868
11869 PR target/54222
11870 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
11871 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
11872 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
11873 (*round<mode>3.libgcc): New insns for fixed-modes.
11874 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
11875 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
11876 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
11877 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
11878 implementations. Define to __builtin_avr_absFX,
11879 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
11880 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
11881 __builtin_avr_countlsFX, respectively.
11882 * config/avr/avr-c.c (target.h): Include it.
11883 (enum avr_builtin_id): New enum.
11884 (avr_resolve_overloaded_builtin): New static function.
11885 (avr_register_target_pragmas): Use it to set
11886 targetm.resolve_overloaded_builtin.
11887 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
11888 tree nodes used by DEF_BUILTIN.
11889 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
11890 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
11891 <AVR_BUILTIN_xxBITS>: Same.
11892
661bc682
RB
118932013-02-08 Richard Biener <rguenther@suse.de>
11894
11895 * cfgloop.c (verify_loop_structure): Properly handle
11896 a loop exiting to another loop header.
11897 * ira-int.h (ira_loops): Remove.
11898 * ira.c (ira_loops): Remove.
11899 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
11900 (do_reload): Use loop_optimizer_finalize.
11901 * ira-build.c (create_loop_tree_nodes): Use get_loops and
11902 number_of_loops to access the loop tree.
11903 (more_one_region_p): Likewise.
11904 (finish_loop_tree_nodes): Likewise.
11905 (rebuild_regno_allocno_maps): Likewise.
11906 (mark_loops_for_removal): Likewise.
11907 (mark_all_loops_for_removal): Likewise.
11908 (remove_unnecessary_regions): Likewise.
11909 (ira_build): Likewise.
11910 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
11911
0d5049b2
RB
119122013-02-08 Richard Biener <rguenther@suse.de>
11913
11914 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
11915 * ipa-pure-const.c (analyze_function): Avoid calling
11916 mark_irreducible_loops twice.
8e10366f 11917 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
0d5049b2 11918
499f32e8
DM
119192013-02-07 David S. Miller <davem@davemloft.net>
11920
11921 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
11922 on 'reg'.
11923 * var-tracking.c (vt_add_function_parameter): Test the presence of
11924 HAVE_window_save properly and do not remap argument registers when
11925 we have a leaf function.
11926
6edc3e32
UB
119272013-02-07 Uros Bizjak <ubizjak@gmail.com>
11928
11929 PR bootstrap/56227
11930 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
11931 instead of "ll".
11932 * config/i386/i386.c (ix86_print_operand): Ditto.
11933
5306401f
VM
119342013-02-07 Vladimir Makarov <vmakarov@redhat.com>
11935
6edc3e32 11936 * lra-constraints.c (process_alt_operands): Fix recently added comment.
5306401f 11937
027ece11
VM
119382013-02-07 Vladimir Makarov <vmakarov@redhat.com>
11939
11940 PR rtl-optimization/56225
11941 * lra-constraints.c (process_alt_operands): Check that reload hard
11942 reg can hold value for strict_low_part.
11943
f980dfdb
JJ
119442013-02-07 Jakub Jelinek <jakub@redhat.com>
11945
11946 PR debug/56154
11947 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
11948 dwarf2out_end_function.
11949 (in_first_function_p, maybe_at_text_label_p,
11950 first_loclabel_num_not_at_text_label): New variables.
11951 (dwarf2out_var_location): In the first function find out
6edc3e32 11952 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
f980dfdb
JJ
11953 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
11954 functions.
11955
73dd3123
EB
119562013-02-07 Eric Botcazou <ebotcazou@adacore.com>
11957
11958 PR rtl-optimization/56178
11959 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
11960 SUBREG of a register. Tidy up related block of code.
11961 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
11962 note if the source is a register or a SUBREG of a register.
11963
e3936f47
JJ
119642013-02-07 Jakub Jelinek <jakub@redhat.com>
11965
11966 PR target/56228
11967 * config/rs6000/rs6000.md (ptrm): New mode attr.
11968 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
11969 call_value_indirect_aix<pttrsize>,
11970 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
11971 m in constraints.
11972
d96d674b
MH
119732013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
11974
11975 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
11976 if -bnortl. Convert to strcmp and strncmp.
11977
921f2dee
AM
119782013-02-07 Alan Modra <amodra@gmail.com>
11979
11980 PR target/54009
11981 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
11982 addresses won't wrap when offsetting.
11983 (rs6000_secondary_reload): Provide secondary reloads needed for
11984 wrapping LO_SUM addresses.
11985
d09c7dba
TS
119862013-02-06 Thomas Schwinge <thomas@codesourcery.com>
11987
11988 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
11989 MACH, just __MACH__.
11990
a44bbd48
RB
119912013-02-06 Richard Biener <rguenther@suse.de>
11992
11993 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
11994 instead of calling fix_loop_structure.
11995
6d840d99
JJ
119962013-02-06 Jakub Jelinek <jakub@redhat.com>
11997
11998 PR middle-end/56217
11999 * omp-low.c (use_pointer_for_field): Return false if
12000 lower_send_shared_vars doesn't generate any copy-out code.
12001
0f33baa9
TV
120022013-02-06 Tom de Vries <tom@codesourcery.com>
12003
12004 PR rtl-optimization/56131
12005 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
12006 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
12007 of the label is NULL. Add comment.
12008
11f1e3ab
JJ
120092013-02-05 Jakub Jelinek <jakub@redhat.com>
12010
31502f9f
JJ
12011 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
12012
a74db9bd
JJ
12013 PR sanitizer/55374
12014 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
12015 (STATIC_LIBTSAN_LIBS): Likewise.
12016 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
12017 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
12018 is defined, don't add anything else beyond that.
12019 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
12020 (LINK_COMMAND_SPEC): Use them.
12021
11f1e3ab
JJ
12022 PR tree-optimization/56205
12023 * tree-stdarg.c (check_all_va_list_escapes): Return true if
12024 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
12025 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
12026
14ac6aa2
RB
120272013-02-05 Richard Biener <rguenther@suse.de>
12028
12029 PR tree-optimization/53342
12030 PR tree-optimization/53185
12031 * tree-vectorizer.h (vect_check_strided_load): Remove.
12032 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
12033 not disallow peeling for vectorized strided loads.
12034 (vect_check_strided_load): Make static and simplify.
12035 (vect_analyze_data_refs): Adjust.
12036 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
12037 correctly when vectorizing strided loads.
12038
6f22445a
RB
120392013-02-05 Richard Biener <rguenther@suse.de>
12040
12041 * doc/install.texi: Refer to ISL, not PPL.
12042
39f9719e
JH
120432013-02-05 Jan Hubicka <jh@suse.cz>
12044
ec4224ac
JH
12045 PR tree-optimization/55789
12046 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
12047
120482013-02-05 Jan Hubicka <jh@suse.cz>
12049
12050 PR tree-optimization/55789
39f9719e
JH
12051 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
12052 the dead call anyway.
12053
956d3b33
EB
120542013-02-05 Eric Botcazou <ebotcazou@adacore.com>
12055
12056 PR sanitizer/55374
12057 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
12058
120592013-02-04 Alexander Potapenko <glider@google.com>
12060 Jack Howarth <howarth@bromo.med.uc.edu>
ae526fe5
AP
12061 Jakub Jelinek <jakub@redhat.com>
12062
12063 PR sanitizer/55617
12064 * config/darwin.c (sort_ctor_records): Stabilized qsort
12065 on constructor priority by using original position.
12066 (finalize_ctors): New routine to sort constructors by
12067 priority before use in assemble_integer.
12068 (machopic_asm_out_constructor): Use finalize_ctors if needed.
12069
7ac3af38
JJ
120702013-02-04 Jakub Jelinek <jakub@redhat.com>
12071
12072 PR libstdc++/54314
12073 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
12074 about visibility on artificial decls.
12075 * config/sol2.c (solaris_assemble_visibility): Likewise.
12076
152689dc
KT
120772013-02-04 Kai Tietz <ktietz@redhat.com>
12078
12079 PR target/56186
12080 * config/i386/i386.c (function_value_ms_64): Add additional valtype
12081 argument and improve checking of return-argument types for 16-byte
12082 modes.
12083 (ix86_function_value_1): Add additional valtype argument on call
12084 of function_value_64.
12085 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
12086 handling infunction_value_64 function.
12087
2b5987b5
MGD
120882013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
12089
7ac3af38 12090 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
2b5987b5 12091
14597080
RB
120922013-02-04 Richard Biener <rguenther@suse.de>
12093
12094 PR tree-optimization/56188
12095 * tree-ssa-structalias.c (label_visit): Consider case with
12096 initially non-empty points-to set.
12097 (perform_var_substitution): Dump node mapping and clean up.
12098
ed73881e
RG
120992013-02-04 Richard Guenther <rguenther@suse.de>
12100
12101 PR lto/56168
12102 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
12103 node prevail as last resort.
12104 (lto_symtab_merge_decls): Remove guard on LTRANS here.
6edc3e32 12105 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
ed73881e 12106
139a0707
RB
121072013-02-04 Richard Biener <rguenther@suse.de>
12108
12109 PR tree-optimization/56113
12110 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
12111 Merge into ...
12112 (equiv_class_lookup_or_add): ... this.
12113 (label_visit): Adjust and fix error in previous patch.
12114 (perform_var_substitution): Adjust.
12115
50fe8924
OE
121162013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
12117
12118 * config/sh/divtab.c: Fix formatting and comments throughout the file.
12119 * config/sh/sh4-300.md: Likewise.
12120 * config/sh/sh4a.md: Likewise.
12121 * config/sh/constraints.md: Likewise.
12122 * config/sh/sh.md: Likewise.
12123 * config/sh/netbsd-elf.h: Likewise.
12124 * config/sh/predicates.md: Likewise.
12125 * config/sh/sh-protos.h: Likewise.
12126 * config/sh/ushmedia.h: Likewise.
12127 * config/sh/linux.h: Likewise.
12128 * config/sh/sh.c: Likewise.
12129 * config/sh/superh.h: Likewise.
12130 * config/sh/elf.h: Likewise.
12131 * config/sh/sh4.md: Likewise.
12132 * config/sh/sh.h: Likewise.
12133
1a04ac2b
JDA
121342013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12135
12136 * config/pa/constraints.md: Adjust unused letters. Change "T"
12137 constraint to match_test floating_point_store_memory_operand().
12138 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
12139 (base14_operand): New.
12140 (floating_point_store_memory_operand): New.
12141 (integer_store_memory_operand): Revise to use base14_operand and
12142 reg_plus_base_memory_operand.
12143 (move_dest_operand): Allow symbolic_memory_operands.
12144 (symbolic_memory_operand): Check for LO_SOM.
12145 (symbolic_operand): Change default case to break.
12146 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
12147 CONST_DOUBLE values to be reloaded by putting them into memory when
12148 the destination is a floating point register.
12149 (movdf): Remove code to handle CONST_DOUBLE.
12150 (movsf): Likewise.
12151 (reload_indf_r1): New.
12152 (reload_insf_r1): New.
12153 Consistently use "Q" and "T" constraints with integer and floating
12154 point move instructions, respectively.
12155 (movdi): Remove FAIL.
12156 Change predicate for source operand unamed DImode move from
12157 general_operand to move_src_operand.
12158 (umulsidi3): Change predicate for destination operand to
12159 register_operand.
12160 Likewise for similar unamed patterns.
12161 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
12162 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
12163 (hppa_legitimize_address): Simplify mask calculation.
12164 (pa_emit_move_sequence): Revised handling of secondary reloads from
12165 REG+D addresses for floating point loads and stores. Directly handle
12166 loading CONST0_RTX (mode) to a floating point register.
12167 (pa_secondary_reload): Handle reloading DF and SFmode constant values
12168 to floating point registers. Don't restrict secondary reloads to
12169 floating point registers to integer modes. Revise some comments and
12170 cleanup some code.
12171 (TARGET_LEGITIMATE_ADDRESS_P): Define.
12172 (pa_legitimate_address_p): New.
12173 (pa_legitimize_reload_address): New.
12174 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
12175 (STRICT_REG_OK_FOR_BASE_P): New.
12176 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
12177 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
12178
3bf65591
DE
121792013-02-03 David Edelsohn <dje.gcc@gmail.com>
12180 Andrew Dixie <andrewd@gentrack.com>
12181
12182 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
12183 flag set.
12184
c0a8a3e6
RS
121852013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
12186
12187 * expmed.c (extract_bit_field_1): Pass the full width of the
12188 structure to get_best_reg_extraction_insn.
12189
99113dff
DE
121902013-02-01 David Edelsohn <dje.gcc@gmail.com>
12191
12192 PR target/54601
12193 * configure.ac (use_cxa_atexit): Add AIX.
12194 * configure: Regenerate.
12195
12196 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
12197
ddd84654
JJ
121982013-02-01 Jakub Jelinek <jakub@redhat.com>
12199
12200 PR debug/54793
12201 * final.c (need_profile_function): New variable.
12202 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
12203 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
12204 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
12205 notes, targetm.asm_out.function_prologue doesn't emit anything,
12206 HAVE_prologue and profiler should be emitted before prologue,
12207 set need_profile_function instead of emitting it.
12208 (final_scan_insn): If need_profile_function, emit
12209 profile_function on the first NOTE_INSN_BASIC_BLOCK or
12210 NOTE_INSN_FUNCTION_BEG note.
12211
122122013-02-01 Richard Henderson <rth@redhat.com>
749af8ee
RH
12213
12214 * config/rs6000/rs6000.md (smulditi3): New.
12215 (umulditi3): New.
12216
ff2a9d88
RH
12217 * config/alpha/alpha.md (umulditi3): New.
12218
14d52b90
DE
122192013-02-01 David Edelsohn <dje.gcc@gmail.com>
12220
12221 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
12222 (ASM_OUTPUT_ALIGNED_LOCAL): New.
12223
8c7ca45c
RB
122242013-02-01 Richard Biener <rguenther@suse.de>
12225
12226 PR tree-optimization/56113
12227 * tree-ssa-structalias.c (label_visit): Reduce work for
12228 single-predecessor nodes.
12229
9f419393
EB
122302013-02-01 Eric Botcazou <ebotcazou@adacore.com>
12231
12232 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
12233 range isn't testing for zero.
12234
c5f4be84
SB
122352013-01-31 Steven Bosscher <steven@gcc.gnu.org>
12236
12237 PR middle-end/56113
12238 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
12239
dbdbd982
NC
122402013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
12241 Nick Clifton <nickc@redhat.com>
12242
12243 * config/v850/constraints.md (Q): Define as a memory constraint.
12244 * config/v850/predicates.md (label_ref_operand): New predicate.
12245 (e3v5_shift_operand): New predicate.
12246 (ior_operator): New predicate.
12247 * config/v850/t-v850: Add e3v5 multilib.
12248 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
12249 (v850_gen_movdi): Prototype.
12250 * config/v850/v850.c: Add support for e3v5 architecture.
12251 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
12252 TARGET_V850E_UP.
12253 (construct_save_jarl): Add e3v5 long JARL support.
12254 (v850_adjust_insn_length): New function. Adjust length of call
12255 insns when using e3v5 instructions.
12256 (v850_gen_movdi): New function: Generate instructions to move a
12257 DImode value.
12258 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
12259 (CPP_SPEC): Define __v850e3v5__ as appropriate.
12260 (TARGET_USE_FPU): Enable for e3v5.
12261 (CONST_OK_FOR_W): New macro.
12262 (ADJUST_INSN_LENGTH): Define.
12263 * config/v850/v850.md (UNSPEC_LOOP): Define.
12264 (attr cpu): Add v850e3v5.
12265 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
12266 (movdi): New pattern.
12267 (movdi_internal): New pattern.
12268 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
12269 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
12270 (cstoresf4): Likewise.
12271 (cstoredf4): Likewise.
12272 (insv): New pattern.
12273 (rotlso3_a): New pattern.
12274 (rotlsi3_b): New pattern
12275 (rotlsi3_v850e3v5): New pattern.
12276 (doloop_begin): New pattern.
12277 (fix_loop_counter): New pattern.
12278 (doloop_end): New pattern.
12279 (branch_normal): Add e3v5 long branch support.
12280 (branch_invert): Likewise.
12281 (branch_z_normal): Likewise.
12282 (branch_z_invert): Likewise.
12283 (branch_nz_normal): Likewise.
12284 (branch_nz_invert): Likewise.
12285 (call_internal_short): Add e3v5 register-indirect JARL support.
12286 (call_internal_long): Likewise.
12287 (call_value_internal_short): Likewise.
12288 (call_value_internal_long): Likewise.
12289 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
12290 (mloop): New option.
12291 * config.gcc: Add support for configuring v840e3v5 target.
6edc3e32 12292 * doc/invoke.texi: Document new v850 specific command line options.
dbdbd982 12293
73861a41
PK
122942013-01-31 Paul Koning <ni1d@arrl.net>
12295
12296 PR debug/55059
12297 PR debug/54508
12298 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
12299 children if parent is a class.
12300 (prune_unused_types_prune): Don't add DW_AT_declaration.
12301
e44978dc
RB
123022013-01-31 Richard Biener <rguenther@suse.de>
12303
12304 PR tree-optimization/56157
12305 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
12306 match up operand with SLP child.
12307
90b10dec
JM
123082013-01-31 Jason Merrill <jason@redhat.com>
12309
04d2dadd 12310 PR debug/54410
90b10dec
JM
12311 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
12312 parameters the first time.
12313 (gen_scheduled_generic_parms_dies): Check completeness here.
12314
6e616110
RB
123152013-01-31 Richard Biener <rguenther@suse.de>
12316
12317 PR middle-end/53073
12318 * common.opt (faggressive-loop-optimizations): New flag,
12319 enabled by default.
12320 * doc/invoke.texi (faggressive-loop-optimizations): Document.
12321 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
12322 infer_loop_bounds_from_undefined by it.
12323
636f59cf
RB
123242013-01-31 Richard Biener <rguenther@suse.de>
12325
12326 PR tree-optimization/56150
12327 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
12328 visit virtual operands.
12329 (find_uses_to_rename_bb): Likewise.
12330
123312013-01-31 Richard Biener <rguenther@suse.de>
fcfa87ac
RB
12332
12333 PR tree-optimization/56150
12334 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
12335 mixed store non-store stmts.
12336
32887460
JJ
123372013-01-30 Jakub Jelinek <jakub@redhat.com>
12338
e60e09a0
JJ
12339 PR sanitizer/55374
12340 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
12341 LIBASAN_EARLY_SPEC is defined.
12342 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
12343 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
12344 before %o.
12345 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
12346
32887460
JJ
12347 PR c++/55742
12348 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
12349 invalid args instead of ICEing on it.
12350 (ix86_valid_target_attribute_tree): Return error_mark_node if
12351 ix86_valid_target_attribute_inner_p failed.
12352 (ix86_valid_target_attribute_p): Return false only if
12353 ix86_valid_target_attribute_tree returned error_mark_node. Allow
12354 target("default") attribute.
12355 (sorted_attr_string): Change argument from const char * to tree,
12356 merge in all target attribute arguments rather than just one.
12357 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
12358 instead of free. Avoid using strcat.
12359 (ix86_mangle_function_version_assembler_name): Mangle
12360 target("default") as if no target attribute is present. Adjust
12361 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
12362 instead of xmalloc and XDELETEVEC instead of free.
12363 (ix86_function_versions): Don't return true if one of the decls
12364 doesn't have target attribute. If they don't and one of the decls
12365 is DECL_FUNCTION_VERSIONED, report an error. Adjust
12366 sorted_attr_string caller. Use XDELETEVEC instead of free.
12367 (ix86_supports_function_versions): Remove.
12368 (make_name): Fix up formatting.
12369 (make_dispatcher_decl): Remove resolver_name and its initialization.
12370 Avoid leaking memory.
12371 (is_function_default_version): Return true if there is
12372 target("default") attribute rather than no target attribute at all.
12373 (make_resolver_func): Avoid leaking memory.
12374 (ix86_generate_version_dispatcher_body): Likewise.
12375 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
12376 * target.def (supports_function_versions): Remove.
12377 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
12378 * doc/tm.texi: Regenerated.
12379
73cca0cc
VM
123802013-01-30 Vladimir Makarov <vmakarov@redhat.com>
12381
12382 PR rtl-optimization/56144
12383 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
12384 for values with side effects.
12385
11452e7b
RB
123862013-01-30 Richard Biener <rguenther@suse.de>
12387
12388 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
12389 (sparseset_pop): Likewise.
12390 * cfganal.c (compute_idf): Likewise. Increase work-stack size
12391 to be able to use quick_push in the worker loop.
12392
01cb1ef5
MP
123932013-01-30 Marek Polacek <polacek@redhat.com>
12394
12395 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
12396
e892936e
RB
123972013-01-30 Richard Biener <rguenther@suse.de>
12398
12399 PR lto/56147
6edc3e32 12400 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
e892936e 12401
cc06c01d
GJL
124022013-01-30 Georg-Johann Lay <avr@gjlay.de>
12403
12404 PR tree-optimization/56064
12405 * fixed-value.c (fixed_from_double_int): New function.
12406 * fixed-value.h (fixed_from_double_int): New prototype.
12407 (const_fixed_from_double_int): New static inline function.
12408 * fold-const.c (native_interpret_fixed): New static function.
12409 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
12410 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
12411 (native_encode_fixed): New static function.
12412 (native_encode_expr) <FIXED_CST>: Use it.
12413 (native_interpret_int): Move double_int worker code to...
12414 * double-int.c (double_int::from_buffer): ...this new static method.
12415 * double-int.h (double_int::from_buffer): Prototype it.
12416
d394a308
RB
124172013-01-30 Richard Biener <rguenther@suse.de>
12418
12419 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
12420 New pointer-map and obstack.
12421 (init_alias_vars): Allocate pointer-map and obstack.
12422 (delete_points_to_sets): Free them.
12423 (find_what_var_points_to): Cache result.
12424 (find_what_p_points_to): Adjust for changed interface of
12425 find_what_var_points_to.
12426 (compute_points_to_sets): Likewise.
12427 (ipa_pta_execute): Likewise.
12428
20804d96
RO
124292013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12430
12431 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
12432 * configure: Regenerate.
12433 * config.in: Regenerate.
12434 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
12435 #nobits/#progbits if supported.
12436
a7ad88a2
OE
124372013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
12438
12439 PR target/56121
12440 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
12441 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
12442 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
12443
7af79f92
GY
124442013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12445
91bfca59
OE
12446 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
12447 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
7af79f92 12448
753bcf7b
GY
124492013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12450
91bfca59
OE
12451 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
12452 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
753bcf7b 12453
8cbc2ea8
GY
124542013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12455
91bfca59
OE
12456 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
12457 declaration.
12458 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
12459 * config/arm/cortex-a7.md: New bypasses using
12460 arm_mac_accumulator_is_result.
8cbc2ea8 12461
697a3325
GY
124622013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12463
91bfca59 12464 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
697a3325 12465 (cortex_a7_neon_mla): Likewise.
91bfca59
OE
12466 (cortex_a7_fpfmad): New reservation.
12467 (cortex_a7_fpmacs): Use ffmas and update required units.
12468 (cortex_a7_fpmuld): Update required units and latency.
12469 (cortex_a7_fpmacd): Likewise.
12470 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
12471 (cortex_a7_neon). Likewise.
12472 (bypass) Update participating units.
697a3325 12473
29637783
GY
124742013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12475
91bfca59
OE
12476 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
12477 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
12478 from fmac to ffma.
12479 * config/arm/vfp11.md (vfp_farith): Use ffmas.
12480 (vfp_fmul): Use ffmad.
12481 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
12482 (cortex_r4_fmacd): Use ffmad.
12483 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
12484 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
12485 (cortex_a9_fmacd): Use ffmad.
12486 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
12487 (cortex_a8_vfp_macd): Use ffmad.
12488 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
12489 (cortex_a5_fpmacd): Use ffmad.
12490 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
12491 (cortex_a15_vfp_macd): Use ffmad.
12492 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
29637783 12493
2ee8a2d5
JM
124942013-01-29 Jason Merrill <jason@redhat.com>
12495
12496 PR libstdc++/54314
12497 * varasm.c (default_assemble_visibility): Don't warn about
12498 visibility on artificial decls.
12499
78d087bc
RB
125002013-01-29 Richard Biener <rguenther@suse.de>
12501
12502 PR tree-optimization/56113
12503 * tree-ssa-structalias.c (equiv_class_lookup): Also return
12504 the bitmap leader.
12505 (label_visit): Free duplicate bitmaps and record the leader instead.
12506 (perform_var_substitution): Adjust.
12507
83ba4d6f
RB
125082013-01-29 Richard Biener <rguenther@suse.de>
12509
12510 PR tree-optimization/55270
12511 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
12512 the CFG, schedule loops for fixup.
12513
66dfe13f
NC
125142013-01-29 Nick Clifton <nickc@redhat.com>
12515
12516 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
12517 SP_REG.
12518
5a579c3b
LE
125192013-01-28 Leif Ekblad <leif@rdos.net>
12520
12521 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
12522 * config/i386/i386.h (TARGET_RDOS): New macro.
12523 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
12524 * config/i386/i386.c (ix86_option_override_internal): For 64bit
12525 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
12526 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
12527 DEFAULT_LARGE_SECTION_THRESHOLD.
12528 * config/i386/i386.md (R14_REG, R15_REG): New constants.
12529 * config/i386/rdos.h: New file.
12530 * config/i386/rdos64.h: New file.
12531
51e44392
BS
125322013-01-28 Bernd Schmidt <bernds@codesourcery.com>
12533
12534 PR other/54814
12535 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
12536 TEST_HARD_REG_BIT.
12537
db1fb332
JJ
125382013-01-28 Jakub Jelinek <jakub@redhat.com>
12539
12540 PR rtl-optimization/56117
12541 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
12542 call cselib_lookup_from_insn on the MEM before calling
12543 add_insn_mem_dependence.
12544
16917761
RB
125452013-01-28 Richard Biener <rguenther@suse.de>
12546
12547 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
12548 to a stmt that didn't have one.
12549 (copy_phis_for_bb): Likewise for PHI arguments.
12550 (copy_debug_stmt): Likewise for debug stmts.
12551
b9fc0497
RB
125522013-01-28 Richard Biener <rguenther@suse.de>
12553
12554 PR tree-optimization/56034
6edc3e32 12555 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
b9fc0497
RB
12556 (partition_builtin_p): Adjust.
12557 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
12558 it is the last partition.
12559 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
12560 up the vertex for the definition.
12561 (classify_partition): Classify whether a partition is a
12562 PKIND_REDUCTION, thus has uses outside of the loop.
12563 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
12564 Merge all PKIND_REDUCTION partitions into the last partition.
12565 (tree_loop_distribution): Seed partitions from reductions as well.
12566
aa710d25
JJ
125672013-01-28 Jakub Jelinek <jakub@redhat.com>
12568
0bfbca58
JJ
12569 PR tree-optimization/56125
12570 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
12571 pow(x,c) into sqrt(x) * powi(x, n/2) or
12572 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
12573 optimizing for size.
12574 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
12575 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
12576 integer.
12577
aa710d25
JJ
12578 PR tree-optimization/56094
12579 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
12580 to UNKNOWN_LOCATION while gimplifying expr.
12581
77dc5297
UB
125822013-01-27 Uros Bizjak <ubizjak@gmail.com>
12583
12584 PR target/56114
12585 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
12586 operand 0 in movabs insn template for -masm=intel asm alternative.
12587 (*movabs<mode>_2): Ditto for operand 1.
12588
0bfbca58 125892013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
fbf0cf90
DH
12590
12591 PR target/54663
12592 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
12593 of microblaze-c.o
12594
0bfbca58 125952013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6f14eef2
EI
12596
12597 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
12598 tm_file.
12599
0bfbca58 126002013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
706b2314
N
12601
12602 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
12603 Undef to avoid warning.
12604
478f60f9
MH
126052013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
12606
12607 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
12608 * configure: Regenerate.
12609
d7fa6ee2
JJ
126102013-01-25 Jakub Jelinek <jakub@redhat.com>
12611
12612 PR tree-optimization/56098
12613 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
12614 for stmts with volatile ops.
12615 (cond_store_replacement): Don't optimize if assign has volatile ops.
12616 (cond_if_else_store_replacement_1): Don't optimize if either
12617 then_assign or else_assign have volatile ops.
12618 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
12619 volatile ops.
12620
f8fe87bd
GJL
126212013-01-25 Georg-Johann Lay <avr@gjlay.de>
12622
12623 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
12624
28398d0d
GJL
126252013-01-25 Georg-Johann Lay <avr@gjlay.de>
12626
12627 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
12628 missing ':' in asm example.
12629
b7d7d917
TB
126302013-01-25 Tejas Belagod <tejas.belagod@arm.com>
12631
12632 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
12633 entries into lane and laneq entries.
77dc5297
UB
12634 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
12635 Remove AdvSIMD scalar modes.
b7d7d917
TB
12636 (aarch64_sq<r>dmulh_laneq<mode>): New.
12637 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
12638 modes.
12639 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
12640 builtin implementations to relfect changes in RTL in aarch64-simd.md.
12641 * config/aarch64/iterators.md (VCOND): New.
12642 (VCONQ): New.
12643
556f9906
GJL
126442013-01-25 Georg-Johann Lay <avr@gjlay.de>
12645
12646 PR target/54222
12647 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
12648 Add NULL LIBNAME argument to existing definitions.
12649 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
12650 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
12651 * config/avr/avr.c (DEF_BUILTIN): Same.
12652 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
12653 (avr_expand_builtin): Expand to a vanilla call if a libgcc
12654 implementation is available (DECL_ASSEMBLER_NAME is set).
12655 (avr_fold_absfx): New static function.
12656 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
12657 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
12658 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
12659 AVR_BUILTIN_ABSLLK.
12660 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
12661 (abshk, absk, abslk, absllk): Provide as static inline functions.
12662
1f546bbb
MP
126632013-01-25 Marek Polacek <polacek@redhat.com>
12664
12665 PR tree-optimization/56035
12666 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
12667
7e184bd7
UB
126682012-01-24 Uros Bizjak <ubizjak@gmail.com>
12669
12670 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
12671 (*movtf_internal_rex64): Add (!o,C) alternative
12672 (*movxf_internal_rex64): Ditto.
12673 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
12674
f5ba49ac
SM
126752013-01-24 Shenghou Ma <minux.ma@gmail.com>
12676
12677 * doc/invoke.texi: fix typo.
12678 * doc/objc.texi: fix typo.
12679
a6343728
RS
126802013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
12681
12682 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
12683 for the first two alternatives.
12684
cd030c07
DN
126852013-01-24 Diego Novillo <dnovillo@google.com>
12686
77dc5297 12687 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
cd030c07
DN
12688 (ggc-zone.o): Remove.
12689 * configure.ac: Remove option --with-gc.
12690 * configure: Re-generate.
12691 * doc/install.texi: Remove documentation for --with-gc.
12692 * gengtype.c (write_enum_defn): Remove. Update all users.
12693 (write_Types_process_field): Remove generation of gt_e_* argument.
12694 (output_type_enum): Remove. Update all users.
12695 (write_enum_defn): Remove. Update all users.
12696 (enum alloc_zone): Remove. Update all users.
77dc5297 12697 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
cd030c07
DN
12698 * ggc-common.c (ggc_splay_alloc): Remove first argument.
12699 Update all callers.
12700 (struct ptr_data): Remove field TYPE. Update all users.
77dc5297 12701 (gt_pch_note_object): Remove argument TYPE. Update all users.
cd030c07
DN
12702 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
12703 Update all users.
aaf1e810 12704 * ggc-none.c (ggc_alloc_typed_stat): Remove.
cd030c07
DN
12705 (struct alloc_zone): Remove.
12706 (ggc_internal_alloc_zone_stat): Remove.
12707 (ggc_internal_cleared_alloc_zone_stat): Remove.
12708 * ggc-page.c (ggc_alloc_typed_stat): Remove.
77dc5297
UB
12709 (ggc_pch_count_object): Remove last argument. Update all users.
12710 (ggc_pch_alloc_object): Remove last argument. Update all users.
cd030c07
DN
12711 (struct alloc_zone): Remove.
12712 * ggc-zone.c: Remove.
77dc5297 12713 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
cd030c07
DN
12714 (struct alloc_zone): Remove.
12715 (ggc_alloc_typed_stat): Remove.
12716 (ggc_alloc_typed): Remove.
12717 (ggc_splay_alloc): Remove first argument.
12718 (rtl_zone): Remove. Update all users.
12719 (tree_zone): Remove. Update all users.
12720 (tree_id_zone): Remove. Update all users.
12721 (ggc_internal_zone_alloc_stat): Remove. Update all users.
77dc5297 12722 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
cd030c07 12723 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
77dc5297 12724 * tree-ssanames.c: Remove references to zone allocator in comments.
cd030c07 12725
a861ffa4
GJL
127262013-01-24 Georg-Johann Lay <avr@gjlay.de>
12727
12728 * config/avr/avr.c (avr_out_fract): Make register numbers that
12729 might be outside of source operand signed.
12730
593c0ddd
UB
127312013-01-24 Uros Bizjak <ubizjak@gmail.com>
12732
12733 * config/i386/constraints.md (Yf): New constraint.
12734 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
12735 of f constraint to conditionaly disable x87 register preferences.
12736 (*movdf_internal): Ditto.
12737 (*movsf_internal): Ditto.
12738
e86c0101
SB
127392013-01-24 Steven Bosscher <steven@gcc.gnu.org>
12740
12741 PR inline-asm/55934
12742 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
12743 that have operands with impossible constraints.
12744 Add a FIXME for a speed-up opportunity.
12745 * lra-constraints.c (process_alt_operands): Verify that a class
12746 selected from constraints on asms is valid for the operand mode.
12747 (curr_insn_transform): Remove incorrect comment.
12748
f6fee35f
DE
127492013-01-23 David Edelsohn <dje.gcc@gmail.com>
12750
12751 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
12752 TOC operand is a valid symbol ref in the constant pool.
12753
127542013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
c7729184 12755
aaf1e810 12756 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
c7729184 12757
dc62d7d1
GJL
127582013-01-23 Georg-Johann Lay <avr@gjlay.de>
12759
12760 PR target/54222
12761 * config/avr/stdfix.h: New file.
12762 * t-avr (stdfix-gcc.h): New rule to build it.
12763 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
12764
2660d12d
KS
127652013-01-23 Kostya Serebryany <kcc@google.com>
12766
77dc5297
UB
12767 * config/darwin.h: remove dependency on
12768 CoreFoundation (asan on Mac OS).
2660d12d 12769
a70418fc
JJ
127702013-01-23 Jakub Jelinek <jakub@redhat.com>
12771
12772 PR target/49069
12773 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
12774 instead of cmpdi_operand for first comparison operand.
12775 Don't assert that comparison operands aren't both constants.
12776
47876a2a
JW
127772013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
12778
12779 * doc/install.texi (Downloading the Source): Update references to
12780 downloading separate components.
12781
127822013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4ebd56a5
JW
12783
12784 * doc/extend.texi (__int128): Improve grammar.
12785
47876a2a 127862013-01-22 Uros Bizjak <ubizjak@gmail.com>
32fc5b8a
UB
12787
12788 PR target/56028
12789 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
12790 alternative to (o,r).
12791 (*movdi_internal_rex64): Remove (!o,n) alternative.
12792 (DImode immediate->memory splitter): Remove.
12793 (DImode immediate->memory peephole2): Remove.
12794 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
12795 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
12796 alternative to (!o,*r).
12797 (*movtf_internal_sse): New pattern.
12798 (*movxf_internal_rex64): New pattern.
12799 (*movxf_internal): Disable for TARGET_64BIT.
12800 (*movdf_internal_rex64): Remove (!o,F) alternative.
12801
3a984f10
JJ
128022013-01-22 Jakub Jelinek <jakub@redhat.com>
12803
502498d5
JJ
12804 PR middle-end/56074
12805 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
12806 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
12807 * tree-vect-loop-manip.c (find_loop_location): Also ignore
12808 stmt locations where LOCATION_LOCUS of the stmt location is
12809 UNKNOWN_LOCATION or BUILTINS_LOCATION.
12810
3a984f10
JJ
12811 PR target/55686
12812 * config/i386/i386.md (UNSPEC_STOS): New.
12813 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
12814 *strsetqi_1): Add UNSPEC_STOS.
12815
fa817f7f
PC
128162013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
12817
12818 PR c++/56067
12819 * doc/invoke.texi: Remove left over -Wsynth example.
12820
8f498c1b
JJ
128212013-01-21 Jakub Jelinek <jakub@redhat.com>
12822
12823 PR tree-optimization/56051
12824 * fold-const.c (fold_binary_loc): Don't fold
12825 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
12826 a narrowing conversion, or widening conversion from signed
12827 to unsigned.
12828
47876a2a 128292013-01-21 Uros Bizjak <ubizjak@gmail.com>
35d59da7
UB
12830
12831 PR rtl-optimization/56023
12832 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
12833 dependent on debug instruction.
12834
5b9db1bc
MJ
128352013-01-21 Martin Jambor <mjambor@suse.cz>
12836
12837 PR middle-end/56022
12838 * function.c (allocate_struct_function): Call
12839 invoke_set_current_function_hook earlier.
12840
e8bb7d68
JJ
128412013-01-21 Jakub Jelinek <jakub@redhat.com>
12842
12843 * reload1.c (init_reload): Only initialize reload_obstack
12844 during the first call.
12845
616a4e32
MP
128462013-01-21 Marek Polacek <polacek@redhat.com>
12847
12848 * cfgloop.c (verify_loop_structure): Fix up grammar.
12849
4401981b
YHH
128502013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
12851
12852 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
12853 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
12854
8e87740b
RR
128552013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12856
12857 PR target/56058
12858 * config/arm/marvell-pj4.md: Update copyright year.
12859 Fix up use of alu to alu_reg and simple_alu_imm.
12860
47876a2a 128612013-01-21 Uros Bizjak <ubizjak@gmail.com>
1f6bc337
UB
12862
12863 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
12864
89d56d79
VM
128652013-01-20 Vladimir Makarov <vmakarov@redhat.com>
12866
12867 PR target/55433
12868 * lra-constraints.c (curr_insn_transform): Don't reuse original
1f6bc337 12869 insn for secondary memory move when memory mode should be different.
89d56d79 12870
fe603553
JDA
128712013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12872
12873 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
12874 atomic_storedi_1): New patterns.
12875
01284895
VK
128762013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
12877
12878 btver2 pipeline descriptions.
12879 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
12880 descriptions.
12881 * config/i386/i386.md (btver2_decode): New type attributes.
1f6bc337 12882 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
01284895
VK
12883 type attributes.
12884 * config/i386/btver2.md: New file describing btver2 pipelines.
12885
5630e3e1
JL
128862013-01-19 Andrew Pinski <apinski@cavium.com>
12887
12888 PR tree-optimization/52631
12889 * tree-ssa-sccvn (visit_use): Before looking up the original
12890 statement, try looking up the simplified expression.
12891
650ae806
AG
128922013-01-19 Anthony Green <green@moxielogic.com>
12893
12894 * config/moxie/moxie.c (moxie_expand_prologue): Set
12895 current_function_static_stack_size.
12896
e300ec2d
JJ
128972013-01-18 Jakub Jelinek <jakub@redhat.com>
12898
12899 PR tree-optimization/56029
12900 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
12901 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
12902
a3d7af04
SS
129032013-01-18 Sharad Singhai <singhai@google.com>
12904
12905 PR tree-optimization/55995
12906 * dumpfile.c (dump_loc): Print location only if available.
12907 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
12908
66aa7879
VM
129092013-01-18 Vladimir Makarov <vmakarov@redhat.com>
12910
12911 PR target/55433
12912 * lra-constraints.c (curr_insn_transform): Reuse original insn for
12913 secondary memory move.
12914 (inherit_reload_reg): Use rclass instead of cl for
12915 check_secondary_memory_needed_p.
12916
3f0fee7b
JJ
129172013-01-18 Jakub Jelinek <jakub@redhat.com>
12918
12919 PR middle-end/56015
12920 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
1f6bc337 12921 the case where writing real complex part of target modifies op1.
3f0fee7b 12922
70c67693
JG
129232013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
12924
12925 * config/aarch64/aarch64-simd.md
12926 (aarch64_vcond_internal<mode>): Handle unordered cases.
12927 * config/aarch64/iterators.md (v_cmp_result): New.
12928
df8de9b3
YHH
129292013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
12930 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12931
12932 * config/arm/marvell-pj4.md: New file.
12933 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
12934 * config/arm/arm.md (generic_sched): Add marvell_pj4.
12935 (generic_vfp): Likewise.
12936 * config/arm/arm-cores.def: Add marvell-pj4.
12937 * config/arm/arm-tune.md: Regenerate.
12938 * config/arm/arm-tables.opt: Regenerate.
12939 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
12940 * doc/invoke.texi: Document marvell-pj4.
12941
be30c356
TB
129422013-01-18 Tejas Belagod <tejas.belagod@arm.com>
12943
12944 * config/aarch64/arm_neon.h: Map scalar types to standard types.
12945
0bfbca58 129462013-01-18 Alexandre Oliva <aoliva@redhat.com>
af6236c1
AO
12947
12948 PR debug/54114
12949 PR debug/54402
12950 PR debug/49888
12951 * var-tracking.c (negative_power_of_two_p): New.
12952 (global_get_addr_cache, local_get_addr_cache): New.
12953 (get_addr_from_global_cache, get_addr_from_local_cache): New.
12954 (vt_canonicalize_addr): Rewrite using the above. Adjust the
12955 heading comment.
12956 (vt_stack_offset_p): Remove.
12957 (vt_canon_true_dep): Always canonicalize loc's address.
12958 (clobber_overlapping_mems): Make sure we have a MEM.
12959 (local_get_addr_clear_given_value): New.
12960 (val_reset): Clear local cached entries.
12961 (compute_bb_dataflow): Create and release the local cache.
12962 Disable duplicate MEMs clobbering.
12963 (emit_notes_in_bb): Clobber MEMs likewise.
12964 (vt_emit_notes): Create and release the local cache.
12965 (vt_initialize, vt_finalize): Create and release the global
12966 cache, respectively.
1f6bc337 12967 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
af6236c1 12968
0bfbca58 129692013-01-18 Alexandre Oliva <aoliva@redhat.com>
7ff37ffa
AO
12970
12971 PR libmudflap/53359
12972 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
12973 not found in the symtab.
12974
0bfbca58 129752013-01-18 Alexandre Oliva <aoliva@redhat.com>
3aa03517 12976
c350ba53 12977 PR debug/56006
3aa03517
AO
12978 PR rtl-optimization/55547
12979 PR rtl-optimization/53827
12980 PR debug/53671
12981 PR debug/49888
12982 * alias.c (offset_overlap_p): New, factored out of...
12983 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
12984 the conservative special case for symbolic constants. Don't
12985 adjust zero sizes on alignment.
12986
c664546f
JL
129872013-01-18 Bernd Schmidt <bernds@codesourcery.com>
12988
12989 PR rtl-optimization/52573
12990 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
12991 REG_UNUSED for the same register.
12992
1bd3f750
MP
129932013-01-17 Richard Biener <rguenther@suse.de>
12994 Marek Polacek <polacek@redhat.com>
12995
12996 PR rtl-optimization/55833
12997 * loop-unswitch.c (unswitch_loops): Move loop verification...
12998 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
12999 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
13000 Set it to true when we're removing a loop from hierarchy tree in
13001 an irreducible region.
13002 (fix_bb_placements): Adjust caller.
13003 (fix_loop_placements): Likewise.
13004
e52a8b71
GJL
130052013-01-17 Georg-Johann Lay <avr@gjlay.de>
13006
13007 * config/avr/builtins.def (DEF_BUILTIN): Factor out
13008 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
13009 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
13010 Remove ID. Adjust comments.
13011 * config/avr/avr-c.c (avr_builtin_name): Remove.
13012 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
13013 * config/avr/avr.c (avr_tolower): New static function.
13014 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
13015 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
13016 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
13017 default expansion.
13018
8386a7ea
JH
130192013-01-17 Jan Hubicka <jh@suse.cz>
13020
610fb637 13021 PR tree-optimization/55273
8386a7ea
JH
13022 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
13023
47876a2a 130242013-01-17 Uros Bizjak <ubizjak@gmail.com>
8abaebcd
UB
13025
13026 PR target/55981
13027 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
13028 store through atomic_store<mode>_1.
13029 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
13030
8222c37e
MJ
130312013-01-17 Martin Jambor <mjambor@suse.cz>
13032
13033 PR tree-optimizations/55264
13034 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
13035 for virtual methods.
13036 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
13037 virtual methods before inlining is over.
13038 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
13039 virtual functions.
13040 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
13041 non-virtual.
13042
79f01c76
VM
130432013-01-16 Vladimir Makarov <vmakarov@redhat.com>
13044
13045 PR rtl-optimization/56005
13046 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
13047 pending reads for prefetch.
13048
d0b6bb1b
IB
130492013-01-16 Ian Bolton <ian.bolton@arm.com>
13050
aaf1e810 13051 * config/aarch64/aarch64.md
d0b6bb1b
IB
13052 (*cstoresi_neg_uxtw): New pattern.
13053 (*cmovsi_insn_uxtw): New pattern.
13054 (*<optab>si3_uxtw): New pattern.
13055 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
13056 (*<optab>si3_insn_uxtw): New pattern.
13057 (*bswapsi2_uxtw): New pattern.
13058
cb9cf03b
RB
130592013-01-16 Richard Biener <rguenther@suse.de>
13060
13061 * tree-inline.c (tree_function_versioning): Remove set but
13062 never used variable.
13063
2cfc56b9
RB
130642013-01-16 Richard Biener <rguenther@suse.de>
13065
13066 PR tree-optimization/55964
13067 * tree-flow.h (rename_variables_in_loop): Remove.
13068 (rename_variables_in_bb): Likewise.
13069 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
13070 (copy_loop_before): Adjust and delete update-ssa status.
13071 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
8abaebcd 13072 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
2cfc56b9
RB
13073 (rename_variables_in_loop): Remove.
13074 (slpeel_update_phis_for_duplicate_loop): Likewise.
13075 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
13076 use available cfg machinery instead of duplicating it.
13077 Update PHI nodes and perform poor-mans SSA update here.
13078 (slpeel_tree_peel_loop_to_edge): Adjust.
13079
c25a0c60
RB
130802013-01-16 Richard Biener <rguenther@suse.de>
13081
13082 PR tree-optimization/54767
13083 PR tree-optimization/53465
13084 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
13085 (vrp_visit_phi_node): For PHI arguments coming via backedges
13086 drop all symbolical range information.
13087 (execute_vrp): Compute backedges.
13088
04b535af
RB
130892013-01-16 Richard Biener <rguenther@suse.de>
13090
13091 * doc/install.texi: Update CLooG and ISL requirements to
13092 0.18.0 and 0.11.1.
13093
8b0a1e0b
CB
130942013-01-16 Christian Bruel <christian.bruel@st.com>
13095
13096 PR target/55301
13097 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
13098 (broken_move): Handle UNSPECV_SP_SWITCH_B.
13099 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
13100
131012013-01-16 DJ Delorie <dj@redhat.com>
13102
13103 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
13104 (UNSPECV_SP_SWITCH_E): New.
13105 (sp_switch_1): Change to an unspec.
13106 (sp_switch_2): Change to an unspec. Don't use post-inc when we
13107 replace $r15.
13108
131092013-01-16 Uros Bizjak <ubizjak@gmail.com>
88e784e6
UB
13110
13111 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
13112 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
13113 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
13114 (expand_mem_thread_fence): Ditto.
13115 (expand_mem_signal_fence): Ditto.
13116 (expand_atomic_load): Ditto.
13117 (expand_atomic_store): Ditto.
13118
0bfbca58 131192013-01-16 Alexandre Oliva <aoliva@redhat.com>
5147bf6a
AO
13120
13121 PR rtl-optimization/55547
13122 PR rtl-optimization/53827
13123 PR debug/53671
13124 PR debug/49888
13125 * alias.c (memrefs_conflict_p): Set sizes to negative after
13126 AND adjustments.
13127
305e3ac1
JJ
131282013-01-15 Jakub Jelinek <jakub@redhat.com>
13129
13130 PR target/55940
13131 * function.c (thread_prologue_and_epilogue_insns): Always
13132 add crtl->drap_reg to set_up_by_prologue.set, even if
13133 stack_realign_drap is false.
13134
f78ac4f2
JBG
131352013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13136
13137 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
13138 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
13139 *call): Fix indention.
13140
a78a8cc4
TV
131412013-01-15 Tom de Vries <tom@codesourcery.com>
13142
13143 PR target/55876
13144 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
13145 Update comment.
13146
0e80383f
VM
131472013-01-15 Vladimir Makarov <vmakarov@redhat.com>
13148
305e3ac1 13149 PR rtl-optimization/55153
0e80383f
VM
13150 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
13151
207b5956
MJ
131522013-01-15 Martin Jambor <mjambor@suse.cz>
13153
13154 PR tree-optimization/55920
13155 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
13156 accesses as grp_to_be_debug_replaced.
13157
a7818b54
JJ
131582013-01-15 Jakub Jelinek <jakub@redhat.com>
13159
13160 PR tree-optimization/55920
13161 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
13162 there is non-useless type conversion needed from debug rhs to lhs,
13163 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
13164
b0fe107e
JM
131652013-01-15 Joseph Myers <joseph@codesourcery.com>
13166 Mikael Pettersson <mikpe@it.uu.se>
13167
13168 PR target/43961
13169 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
13170 Thumb.
13171 (ASM_OUTPUT_CASE_LABEL): Remove.
13172 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
13173 * final.c (shorten_branches): Update alignment of labels before
13174 jump tables if CASE_VECTOR_SHORTEN_MODE.
13175
34ab62ee
RB
131762013-01-15 Richard Biener <rguenther@suse.de>
13177
13178 PR bootstrap/55961
13179 * system.h: Do not include gmp.h for building host tools.
13180
783a3a05
RB
131812013-01-15 Richard Biener <rguenther@suse.de>
13182
13183 PR middle-end/55882
13184 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
13185 account for bitpos when computing alignment.
13186
3a579e09
VY
131872013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
13188
13189 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
13190 (ix86_target_macros_internal): Likewise.
13191
13192 * config/i386/i386.c (m_CORE2I7): Removed.
13193 (m_CORE_HASWELL): New macro.
13194 (m_CORE_ALL): Likewise.
13195 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
13196 (initial_ix86_arch_features): Likewise.
13197 (processor_target_table): Initializations for Core avx2.
13198 (cpu_names): New names "core-avx2".
13199 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
13200 PROCESSOR_CORE_HASWELL.
13201 (ix86_issue_rate): New case.
13202 (ia32_multipass_dfa_lookahead): Likewise.
13203 (ix86_sched_init_global): Likewise.
13204
13205 * config/i386/i386.h (TARGET_HASWELL): New macro.
13206 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
13207 (processor_type): New PROCESSOR_HASWELL.
13208
955f5a07
JJ
132092013-01-15 Jakub Jelinek <jakub@redhat.com>
13210
ff784829
JJ
13211 PR tree-optimization/55955
13212 * tree-vect-loop.c (vectorizable_reduction): Give up early on
13213 *SHIFT_EXPR and *ROTATE_EXPR codes.
13214
955f5a07
JJ
13215 PR tree-optimization/48766
13216 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
13217 -ftrapv disable -fwrapv.
13218
aeb8b4e9
GJL
132192013-01-14 Georg-Johann Lay <avr@gjlay.de>
13220
13221 PR target/55974
13222 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
13223 etc. to 1 and not to __flash.
13224 Use LL suffix for __INT24_MAX__ with -mint8.
13225 Use ULL suffix for __UINT24_MAX__ with -mint8.
13226
1c494c6a
GJL
132272013-01-14 Georg-Johann Lay <avr@gjlay.de>
13228
13229 * config/avr/avr-arch.h
13230 (struct base_arch_s): Use typedef avr_arch_t instead.
13231 (struct arch_info_s): Use typedef avr_arch_info_t instead.
13232 (struct mcu_type_s): Use typedef avr_mcu_t instead.
13233 * config/avr/avr.c: Same.
13234 * config/avr/avr-devices.c: Same.
13235 * config/avr/driver-avr.c: Same.
13236 * config/avr/gen-avr-mmcu-texi.c: Same.
13237 * config/avr/avr-mcus.def: Adjust comment.
13238
a50344cb
TB
132392013-01-14 Tejas Belagod <tejas.belagod@arm.com>
13240
88e784e6
UB
13241 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
13242 * config/aarch64/iterators.md (VALLDI): New.
a50344cb 13243
47876a2a 132442013-01-14 Uros Bizjak <ubizjak@gmail.com>
e6f0e052
UB
13245 Andi Kleen <ak@linux.intel.com>
13246
13247 PR target/55948
13248 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
13249 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
13250 memmodel flag.
13251
00892272
GJL
132522013-01-14 Georg-Johann Lay <avr@gjlay.de>
13253
13254 * config/avr/avr-stdint.h: Remove trailing blanks.
13255 * config/avr/avr-log.h: Same.
13256 * config/avr/avr-arch.h: Same.
13257 * config/avr/avr-devices.c: Same.
13258 * config/avr/avr-dimode.md: Same.
13259 * config/avr/predicates.md: Same.
13260 * config/avr/avr-c.c: Same. And fix typo.
e6f0e052 13261
00892272
GJL
13262 * config/avr/avr-protos.h: Same. And:
13263 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
13264 (init_cumulative_args): Rename to avr_init_cumulative_args.
13265 (expand_prologue): Rename to avr_expand_prologue.
13266 (expand_epilogue): Rename to avr_expand_epilogue.
13267 (adjust_insn_length): Rename to avr_adjust_insn_length.
13268 (notice_update_cc): Rename to avr_notice_update_cc.
13269 (final_prescan_insn): Rename to avr_final_prescan_insn.
13270 * config/avr/avr.c: Same.
13271 * config/avr/avr.h: Same.
13272 * config/avr/avr.md: Remove trailing blanks.
13273 (prologue): Use avr_expand_prologue.
13274 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
13275
7bb01996
RB
132762013-01-14 Richard Biener <rguenther@suse.de>
13277
13278 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
13279 verify_location, collect_subblocks): New functions.
13280 (verify_gimple_in_cfg): Verify that locations only reference
13281 BLOCKs in the functions BLOCK tree.
13282
2724573f
RB
132832013-01-14 Richard Biener <rguenther@suse.de>
13284
13285 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
13286 PHI argument.
13287 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
13288 unshare reference.
13289 (insert_out_of_ssa_copy_on_edge): Likewise.
13290 (rewrite_close_phi_out_of_ssa): Likewise.
13291 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
13292 debug expressions.
13293 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
13294 propagated constants.
13295 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
13296 can not be shared.
13297
9a0bbab6
GJL
132982013-01-14 Georg-Johann Lay <avr@gjlay.de>
13299
13300 * config/avr/avr-modes.def: Add GPL copyright notice.
13301
45805f17
UB
133022013-01-13 Uros Bizjak <ubizjak@gmail.com>
13303
13304 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
13305 MEMMODEL_MASK to determine memory model.
13306 (atomic_store<mode>): Ditto from operands[2].
13307 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
13308
9d60be38
JJ
133092013-01-13 Jakub Jelinek <jakub@redhat.com>
13310
13311 PR fortran/55935
45805f17 13312 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
9d60be38
JJ
13313 (fold_gimple_assign): Don't call unshare_expr here.
13314 (fold_ctor_reference): Call unshare_expr.
13315
e7f49d92
TG
133162013-01-13 Terry Guo <terry.guo@arm.com>
13317
aaf1e810
EB
13318 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
13319 * doc/fragments.texi: Document MULTILIB_REUSE.
13320 * gcc.c (multilib_reuse): New internal spec.
e7f49d92 13321 (set_multilib_dir): Also search multilib from multilib_reuse.
aaf1e810 13322 * genmultilib (tmpmultilib3): Refactor code.
e7f49d92
TG
13323 (tmpmultilib4): Ditto.
13324 (multilib_reuse): New multilib argument.
13325
fbd03a27
RS
133262013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
13327
13328 * Makefile.in: Update copyright.
13329
b3681f13
TV
133302013-01-12 Tom de Vries <tom@codesourcery.com>
13331
13332 PR middle-end/55890
13333 * calls.c (expand_call): Check if arg_nr is valid.
13334
3f287e4b
MM
133352013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
13336
13337 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
13338 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
5bc35113
MM
13339 documentation. Add missing '__' in front of
13340 __builtin_ia32_packssdw256.
3f287e4b 13341
1abcd5eb
AK
133422013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13343
13344 PR target/55719
13345 * config/s390/s390.c (s390_preferred_reload_class): Do not return
13346 NO_REGS for larl operands.
13347 (s390_reload_larl_operand): Use s390_load_address instead of
13348 emit_move_insn.
13349
980d0812
RB
133502013-01-11 Richard Biener <rguenther@suse.de>
13351
13352 * tree-cfg.c (verify_node_sharing_1): Split out from ...
13353 (verify_node_sharing): ... here.
13354 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
13355
7cb9fd07
EB
133562013-01-11 Eric Botcazou <ebotcazou@adacore.com>
13357
13358 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
13359 Substitute TREECHECKING.
13360 * configure: Regenerate.
13361 * Makefile.in (TREECHECKING): New.
13362
47876a2a 133632013-01-11 Richard Guenther <rguenther@suse.de>
c7ab2530
RG
13364
13365 PR tree-optimization/44061
13366 * tree-vrp.c (extract_range_basic): Compute zero as
13367 value-range for __builtin_constant_p of function parameters.
13368
d1e082c2
RS
133692013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
13370
45805f17 13371 Update copyright years.
d1e082c2 13372
f85021b0
VM
133732013-01-10 Vladimir Makarov <vmakarov@redhat.com>
13374
9d60be38 13375 PR rtl-optimization/55672
0160442c
VM
13376 * lra-eliminations.c (mark_not_eliminable): Permit addition with
13377 const to be eliminable.
f85021b0 13378
7a8b1ec4
DE
133792013-01-10 David Edelsohn <dje.gcc@gmail.com>
13380
13381 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
13382 * configure: Regenerate.
13383
ad2e5b71
RB
133842013-01-10 Richard Biener <rguenther@suse.de>
13385
ddf9322d 13386 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
ad2e5b71 13387
ffc5b2bb
RB
133882013-01-10 Richard Biener <rguenther@suse.de>
13389
13390 PR bootstrap/55792
13391 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
13392 locations for virtual PHI arguments.
13393 (rewrite_update_phi_arguments): Likewise.
13394
e1f674e4
JS
133952013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
13396
13397 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
13398 on to assembler.
13399
a57fc743
JJ
134002013-01-10 Jakub Jelinek <jakub@redhat.com>
13401
13402 PR tree-optimization/55921
13403 * tree-complex.c (expand_complex_asm): New function.
13404 (expand_complex_operations_1): Call it for GIMPLE_ASM.
13405
0ff4390d
AK
134062013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13407
13408 PR target/55718
13409 * config/s390/s390.c (s390_symref_operand_p)
13410 (s390_loadrelative_operand_p): Merge the two functions.
13411 (s390_check_qrst_address, print_operand_address): Add parameters
13412 to s390_loadrelative_operand_p invokation.
13413 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
13414 (s390_reload_larl_operand, s390_secondary_reload): Use
13415 s390_loadrelative_operand_p instead of s390_symref_operand_p.
13416 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
13417
6f557e0e
MS
134182013-01-09 Mike Stump <mikestump@comcast.net>
13419
13420 * dse.c (record_store): Remove unnecessary assert.
13421
7770c9e9
JH
134222013-01-09 Jan Hubicka <jh@suse.cz>
13423
13424 PR tree-optimization/55569
13425 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
13426 * cfgloop.h (scale_loop_profile): Likewise.
13427
a19b1432
JH
134282013-01-09 Jan Hubicka <jh@suse.cz>
13429
13430 PR lto/45375
ddf9322d
UB
13431 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
13432 functions.
a19b1432
JH
13433 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
13434
9a002da8
RS
134352013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
13436
13437 PR middle-end/55114
13438 * expr.h (maybe_emit_group_store): Declare.
13439 * expr.c (maybe_emit_group_store): New function.
13440 * builtins.c (expand_builtin_int_roundingfn): Call it.
13441 (expand_builtin_int_roundingfn_2): Likewise.
13442
511dcace
VM
134432013-01-09 Vladimir Makarov <vmakarov@redhat.com>
13444
e1f2b729 13445 PR rtl-optimization/55829
511dcace
VM
13446 * lra-constraints.c (match_reload): Add code for absent output.
13447 (curr_insn_transform): Add code for reloads of matched inputs
13448 without output.
13449
7b0fe4f4
UB
134502013-01-09 Uros Bizjak <ubizjak@gmail.com>
13451
13452 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
13453 attribute of movddup insn to DF.
13454 (*vec_interleave_lowv2df): Ditto.
13455 (vec_dupv2df): Ditto.
13456
870ca331
JH
134572013-01-09 Jan Hubicka <jh@suse.cz>
13458
13459 PR tree-optimiation/55875
13460 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
13461 EVERY_ITERATION parameter.
7b0fe4f4 13462 (number_of_iterations_exit): Check if exit is executed every iteration.
870ca331
JH
13463 (idx_infer_loop_bounds): Similarly here.
13464 (n_of_executions_at_most): Simplify
13465 to only test for cases where statement is dominated by the
7b0fe4f4 13466 particular bound; handle correctly the "postdominance" test.
870ca331
JH
13467 (scev_probably_wraps_p): Use max loop iterations info
13468 as a global bound first.
13469
6f575fe4 134702013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
3cd232b5
NDD
13471 Nick Clifton <nickc@redhat.com>
13472
13473 * config/v850/v850.md (cbranchsf4): New pattern.
13474 (cstoresf4): New pattern.
13475 (cbranchdf4): New pattern.
13476 (cstoredf4): New pattern.
13477 (movsicc): Disallow floating point comparisons.
13478 (cmpsf_le_insn): Fix order of operators.
13479 (cmpsf_lt_insn): Likewise.
13480 (cmpsf_eq_insn): Likewise.
13481 (cmpdf_le_insn): Likewise.
13482 (cmpdf_lt_insn): Likewise.
13483 (cmpdf_eq_insn): Likewise.
13484 (cmpsf_ge_insn): Use LE comparison.
13485 (cmpdf_ge_insn): Likewise.
13486 (cmpsf_gt_insn): Use LT comparison.
13487 (cmpdf_gt_insn): Likewise.
13488 (cmpsf_ne_insn): Delete pattern.
13489 (cmpdf_ne_insn): Delete pattern.
13490 * config/v850/v850.c (v850_gen_float_compare): Use
13491 gen_cmpdf_eq_insn for NE comparison.
13492 (v850_float_z_comparison_operator)
13493 (v850_float_nz_comparison_operator): Move from here ...
13494 * config/v850/predicates.md: ... to here. Move GT and GE
13495 comparisons into v850_float_z_comparison_operator.
13496 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
13497 Delete prototype.
13498 (v850_float_nz_comparison_operator): Likewise.
13499
f0d54148
JDA
135002013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13501
13502 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
13503 with calls to gen_insvsi/gen_insvdi.
13504
8f01beca
VK
135052013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13506
13507 * config/i386/i386.c (initial_ix86_tune_features): Set up
13508 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
13509
2aa579ad
JJ
135102013-01-09 Steven Bosscher <steven@gcc.gnu.org>
13511 Jakub Jelinek <jakub@redhat.com>
13512
13513 PR tree-optimization/48189
13514 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
13515 If nitercst is 0, don't predict the exit edge.
13516
6edc3e32 135172013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
01a3a324
N
13518
13519 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
13520 in asm_fprintf with reg_names.
13521 (aarch64_print_operand_address): Likewise.
13522 (aarch64_return_addr): Likewise.
13523 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
13524
f6f94d94
JDA
135252013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13526
13527 * config/pa/pa.h (VAL_U6_BITS_P): Define.
13528 (INT_U6_BITS): Likewise.
13529 * config/pa/predicates.md (uint6_operand): New predicate.
13530 (shift5_operand, shift6_operand): Likewise.
13531 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
13532 arith32_operand.
13533 (lshrdi3): Use shift6_operand.
13534 (shrpsi4, shrpdi4): New insn patterns.
13535 (extzv): Delete expander.
13536 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
13537 predicates in unamed zero extract patterns. Tighten common constraint.
13538 (extv): Delete expander.
13539 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
13540 predicates in unamed sign extract patterns. Tighten common constraint.
13541 (insv): Delete expander.
13542 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
13543 predicates in unamed insert patterns. Tighten common constraint.
13544 Change uint32_operand predicate to uint6_operand predicate in unamed
13545 DImode pattern to insert constant values of type 1...1xxxx.
13546
36b72910
JH
135472013-01-04 Jan Hubicka <jh@suse.cz>
13548
13549 PR tree-optimization/55823
7b0fe4f4
UB
13550 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
13551 issue.
36b72910 13552
47876a2a 135532013-01-08 Jakub Jelinek <jakub@redhat.com>
c6d851b9
JJ
13554 Uros Bizjak <ubizjak@gmail.com>
13555
13556 PR rtl-optimization/55845
13557 * df-problems.c (can_move_insns_across): Stop scanning at
13558 volatile_insn_p source instruction or give up if
13559 across_from .. across_to range contains any volatile_insn_p
13560 instructions.
13561
4369c11e
TB
135622013-01-08 Tejas Belagod <tejas.belagod@arm.com>
13563
7b0fe4f4
UB
13564 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
13565 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
13566 Declare.
4369c11e 13567 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
7b0fe4f4 13568 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
4369c11e 13569
aeb7e7c1
JJ
135702013-01-08 Jakub Jelinek <jakub@redhat.com>
13571
13572 PR fortran/55341
13573 * asan.c (asan_clear_shadow): New function.
13574 (asan_emit_stack_protection): Use it.
13575
a02ad1aa
TB
135762013-01-08 Tejas Belagod <tejas.belagod@arm.com>
13577
13578 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
13579 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
13580 with tab instead of space.
13581
f90d87f5
NC
135822013-01-08 Nick Clifton <nickc@redhat.com>
13583
13584 * config/rl78/rl78.c (rl78_expand_prologue): Always select
13585 register bank 0 at the start of an interrupt handler.
83ffd964
NC
13586 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
13587 MDBH registers.
f90d87f5 13588
385eb93d
JG
135892013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
13590
13591 * config/aarch64/aarch64-simd.md
13592 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
13593 (aarch64_simd_bsl): Likewise.
13594 (aarch64_vcond_internal<mode>): Likewise.
13595 (vcond<mode><mode>): Likewise.
13596 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
13597 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
13598
4dcd1054
JG
135992013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
13600
13601 * config/aarch64/aarch64-builtins.c
13602 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
13603
4267a4a6
MJ
136042013-01-08 Martin Jambor <mjambor@suse.cz>
13605
13606 PR debug/55579
13607 * tree-sra.c (analyze_access_subtree): Return true also after
13608 potentially creating a debug-only replacement.
13609
5f4e6de3
JJ
136102013-01-08 Jakub Jelinek <jakub@redhat.com>
13611
3138f224
JJ
13612 PR middle-end/55890
13613 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
13614
5f4e6de3
JJ
13615 PR tree-optimization/54120
13616 * tree-vrp.c (range_fits_type_p): Don't allow
13617 src_precision < precision from signed vr to unsigned_p
13618 if vr->min or vr->max is negative.
13619 (simplify_float_conversion_using_ranges): Test can_float_p
13620 against CODE_FOR_nothing.
13621
f3ef18ff
JJ
136222013-01-08 Jakub Jelinek <jakub@redhat.com>
13623 Richard Biener <rguenther@suse.de>
13624
13625 PR middle-end/55851
13626 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
13627 types instead of just INTEGER_TYPE types.
13628
25c210f9
MK
136292013-01-07 Mark Kettenis <kettenis@openbsd.org>
13630
13631 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
13632 TF_SIZE): Define.
f90d87f5 13633
81826a7b
SE
136342013-01-07 Steve Ellcey <sellcey@mips.com>
13635
13636 PR target/42661
13637 * config/mips/mips.opt: Change mad to mmad to match documentation.
13638
35678514
GJL
136392013-01-07 Georg-Johann Lay <avr@gjlay.de>
13640
13641 PR target/55897
13642 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
13643 .progmemx.data now.
13644
e5669488
GJL
136452013-01-07 Georg-Johann Lay <avr@gjlay.de>
13646
13647 PR target/55897
13648 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
13649 (avr_addrspace_t): Add .section_name field.
13650 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
13651 array size.
13652 (avr_addrspace): Same. Initialize .section_name. Remove last
13653 NULL entry. Put __memx into .progmemx.data.
13654 (progmem_section_prefix): Remove.
13655 (avr_asm_init_sections): No need to initialize progmem_section.
13656 (avr_asm_named_section): Use avr_addrspace[].section_name to get
13657 section name prefix.
13658 (avr_asm_select_section): Ditto. And use get_unnamed_section to
13659 retrieve the progmem section.
13660 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
13661 boundary to run over avr_addrspace[].
13662 (avr_register_target_pragmas): Ditto.
13663
656e6f37
JJ
136642013-01-06 Jakub Jelinek <jakub@redhat.com>
13665
13666 * varasm.c (output_constant_def_contents): For asan_protect_global
13667 protected strings, adjust DECL_ALIGN if needed, before testing for
13668 anchored symbols.
13669 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
13670 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
13671 normal decls.
13672 (output_object_block): For asan protected decls, emit asan padding
13673 after their contents.
13674 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
13675 (asan_finish_file): Test it here instead.
13676
6edc3e32
UB
136772013-01-07 Nick Clifton <nickc@redhat.com>
13678 Matthias Klose <doko@debian.org>
13679 Doug Kwan <dougkwan@google.com>
13680 H.J. Lu <hongjiu.lu@intel.com>
b352afba
NC
13681
13682 PR driver/55470
13683 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
13684
13685 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
13686
13687 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
13688
7b0fe4f4 13689 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
b352afba
NC
13690
13691 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
13692
2a095093
GJL
136932013-01-07 Georg-Johann Lay <avr@gjlay.de>
13694
f3b503f4 13695 PR target/54461
2a095093
GJL
13696 * doc/install.texi (Cross-Compiler-Specific Options): Document
13697 --with-avrlibc.
13698
383f9b34
TB
136992013-01-07 Tejas Belagod <tejas.belagod@arm.com>
13700
13701 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
13702 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
13703 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
13704 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
13705 vqmovun_high_s64): Fix source operand number and update copyright.
13706
3626621a
RB
137072013-01-07 Richard Biener <rguenther@suse.de>
13708
13709 PR middle-end/55890
13710 * gimple.h (gimple_call_builtin_p): New overload.
13711 * gimple.c (validate_call): New function.
13712 (gimple_call_builtin_p): Likewise.
13713 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
13714 Use gimple_call_builtin_p.
13715 (find_func_clobbers): Likewise.
13716 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
13717 (strlen_optimize_stmt): Likewise.
13718
8b2ea410
JG
137192013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
13720
13721 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
13722 (vld1q_dup_*): Likewise.
13723 (vld1_*): Likewise.
13724 (vld1q_*): Likewise.
13725 (vld1_lane_*): Likewise.
13726 (vld1q_lane_*): Likewise.
13727
9713d329
RB
137282013-01-07 Richard Biener <rguenther@suse.de>
13729
13730 * lto-streamer.h (LTO_minor_version): Bump to 2.
13731
3520f7cc
JG
137322013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
13733
13734 * config/aarch64/aarch64-protos.h
13735 (aarch64_const_double_zero_rtx_p): Rename to...
13736 (aarch64_float_const_zero_rtx_p): ...this.
13737 (aarch64_float_const_representable_p): New.
13738 (aarch64_output_simd_mov_immediate): Likewise.
13739 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
13740 move immediate case.
13741 * config/aarch64/aarch64.c
13742 (aarch64_const_double_zero_rtx_p): Rename to...
13743 (aarch64_float_const_zero_rtx_p): ...this.
13744 (aarch64_print_operand): Allow printing of new constants.
13745 (aarch64_valid_floating_const): New.
13746 (aarch64_legitimate_constant_p): Check for valid floating-point
13747 constants.
13748 (aarch64_simd_valid_immediate): Likewise.
13749 (aarch64_vect_float_const_representable_p): New.
13750 (aarch64_float_const_representable_p): Likewise.
13751 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
13752 (aarch64_output_simd_mov_immediate): New.
13753 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
13754 (*movdf_aarch64): Likewise.
13755 * config/aarch64/constraints.md (Ufc): New.
13756 (Y): call aarch64_float_const_zero_rtx.
13757 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
13758
e167c04d
RB
137592013-01-07 Richard Biener <rguenther@suse.de>
13760
13761 PR tree-optimization/55888
13762 PR tree-optimization/55862
13763 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
13764 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
13765 not if it is contained therein.
13766
0139aaab
GJL
137672013-01-07 Georg-Johann Lay <avr@gjlay.de>
13768
13769 * config/avr/t-avr: Typo.
13770
4a176b23
GJL
137712013-01-07 Georg-Johann Lay <avr@gjlay.de>
13772
13773 PR55243
13774 * config/avr/t-avr: Don't automatically rebuild
13775 $(srcdir)/config/avr/t-multilib
13776 $(srcdir)/config/avr/avr-tables.opt
13777 $(srcdir)/doc/avr-mmcu.texi
13778 (avr-mcus): New phony target to build them on request.
13779 (s-avr-mlib, s-avr-mmcu-texi): Remove.
13780 * avr/avr-mcus.def: Adjust comments.
13781
c7afdc98
UB
137822013-01-07 Uros Bizjak <ubizjak@gmail.com>
13783
13784 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
13785
1ab05c31
RS
137862013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
13787
13788 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
13789
488e3acc
RS
137902013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
13791
13792 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
13793
a89599d2
DE
137942013-01-05 David Edelsohn <dje.gcc@gmail.com>
13795
13796 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
13797 to generate profiling.
13798 * config/rs6000/aix64.h (LIB_SPEC): Same.
13799
70f09188
AP
138002013-01-04 Andrew Pinski <apinski@cavium.com>
13801
13802 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
13803 New function.
13804 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
13805
918d445f
UB
138062013-01-04 Uros Bizjak <ubizjak@gmail.com>
13807
13808 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
13809 unconditionally.
13810 (ix86_expand_move): Ditto.
13811 (ix86_zero_extend_to_Pmode): Ditto.
13812 (ix86_expand_call): Ditto.
13813 (ix86_expand_special_args_builtin): Ditto.
13814 (ix86_expand_builtin): Ditto.
13815
361618ec
RB
138162013-01-04 Richard Biener <rguenther@suse.de>
13817
13818 PR tree-optimization/55862
13819 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
13820 translating them through PHI nodes.
13821
87eab554
MJ
138222013-01-04 Martin Jambor <mjambor@suse.cz>
13823
13824 PR tree-optimization/55755
13825 * tree-sra.c (sra_modify_assign): Do not check that an access has no
13826 children when trying to avoid producing a VIEW_CONVERT_EXPR.
13827
33879b9f
MP
138282013-01-04 Marek Polacek <polacek@redhat.com>
13829
13830 PR middle-end/55859
13831 * opts.c (default_options_optimization): Clarify error message.
13832
3068819a
RB
138332013-01-04 Richard Biener <rguenther@suse.de>
13834
13835 PR middle-end/55863
13836 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
13837 reassociation.
13838
0e4ae794
JDA
138392013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13840
13841 PR target/53789
13842 * config/pa/pa.md (movsi): Revert previous change.
e58d2e48
JDA
13843 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
13844 references.
0e4ae794 13845
65c88cef
RH
138462013-01-03 Richard Henderson <rth@redhat.com>
13847
13848 * config/i386/i386.c (ix86_expand_move): Always assign to op1
13849 after eliminating TLS symbols.
13850
8ac16127
MG
138512013-01-03 Marc Glisse <marc.glisse@inria.fr>
13852
13853 PR bootstrap/50167
13854 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
13855 * graphite-poly.c (debug_gmp_value): Likewise.
13856
bb664f09
UB
138572013-01-03 Uros Bizjak <ubizjak@gmail.com>
13858
13859 PR target/55712
13860 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
13861 selected code model, define __code_mode_small__, __code_model_medium__,
13862 __code_model_large__, __code_model_32__ or __code_model_kernel__.
13863 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
13864 xchg temporary register with %k. Declare temporary register as
13865 early clobbered.
13866 [__x86_64__]: For medium and large code models, preserve %rbx register.
13867
bcf1ef00
RB
138682013-01-03 Richard Biener <rguenther@suse.de>
13869
0506634a 13870 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
bcf1ef00
RB
13871 (dump_subscript): Adjust.
13872 (finalize_ddr_dependent): Do not dump redundant info.
13873 (analyze_siv_subscript): Adjust.
13874 (subscript_dependence_tester): Likewise.
13875 (compute_affine_dependence): Likewise.
13876
59fd17e3
RB
138772013-01-03 Richard Biener <rguenther@suse.de>
13878
13879 Revert
13880 2013-01-03 Richard Biener <rguenther@suse.de>
13881
13882 PR tree-optimization/55857
13883 * tree-vect-stmts.c (vectorizable_load): Do not setup
13884 re-alignment for invariant loads.
13885
13886 2013-01-02 Richard Biener <rguenther@suse.de>
13887
13888 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 13889 invariant load do not generate a vector load from the scalar location.
59fd17e3 13890
595c2679
RB
138912013-01-03 Richard Biener <rguenther@suse.de>
13892
13893 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
13894 for not vectorizing.
13895 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
13896 not build INDIRECT_REFs, call get_name once only.
13897 (vect_create_data_ref_ptr): Likewise. Dump base object kind
13898 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
13899
90bb7d7a
RB
139002013-01-03 Richard Biener <rguenther@suse.de>
13901
13902 PR tree-optimization/55857
13903 * tree-vect-stmts.c (vectorizable_load): Do not setup
13904 re-alignment for invariant loads.
13905
f09b77ca
RB
139062013-01-03 Richard Biener <rguenther@suse.de>
13907
13908 PR lto/55848
13909 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
13910 prefer a built-in decl.
13911
3461a16e
JJ
139122013-01-03 Jakub Jelinek <jakub@redhat.com>
13913
df8e2b4f
JJ
13914 * gcc.c (process_command): Update copyright notice dates.
13915 * gcov.c (print_version): Likewise.
13916 * gcov-dump.c (print_version): Likewise.
13917
3461a16e
JJ
13918 PR rtl-optimization/55838
13919 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
13920 iv0.step, iv1.step and step.
13921
8b5546d6
JJ
139222013-01-03 Jakub Jelinek <jakub@redhat.com>
13923 Marc Glisse <marc.glisse@inria.fr>
13924
13925 PR tree-optimization/55832
13926 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
13927 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
13928 integer_{one,zero}_node.
13929
8ab1d2e9
JJ
139302013-01-03 Jakub Jelinek <jakub@redhat.com>
13931
13932 PR debug/54402
13933 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
13934 * var-tracking.c (reverse_op): Don't add reverse ops to
13935 VALUEs that have already
0506634a 13936 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
8ab1d2e9 13937
5b9ad1d4
GP
139382013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
13939
13940 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
13941
e25a6711
TJ
139422013-01-02 Teresa Johnson <tejohnson@google.com>
13943
13944 * dumpfile.c (dump_loc): Print filename with location.
13945 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
13946 new location_t parameter to emit complete unroll message with
13947 new dump framework.
13948 (canonicalize_loop_induction_variables): Compute loops location
13949 and pass to try_unroll_loop_completely.
13950 * loop-unroll.c (report_unroll_peel): New function.
13951 (peel_loops_completely): Use new dump format with location
13952 for main dumpfile message, and invoke report_unroll_peel on success.
13953 (decide_unrolling_and_peeling): Ditto.
13954 (decide_peel_once_rolling): Remove old dumpfile message subsumed
13955 by report_unroll_peel.
13956 (decide_peel_completely): Ditto.
13957 (decide_unroll_constant_iterations): Ditto.
13958 (decide_unroll_runtime_iterations): Ditto.
13959 (decide_peel_simple): Ditto.
13960 (decide_unroll_stupid): Ditto.
13961 * cfgloop.c (get_loop_location): New function.
13962 * cfgloop.h (get_loop_location): Declare.
13963
77878621
ST
139642013-01-02 Sriraman Tallam <tmsriram@google.com>
13965
13966 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
13967 NULL.
13968
9e65d03e
JDA
139692013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13970
13971 PR middle-end/55198
13972 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
13973 BLKmode objects when EXPAND_MEMORY is specified.
13974
6a7da30f
ST
139752013-01-02 Sriraman Tallam <tmsriram@google.com>
13976
13977 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
13978 in loop predicate.
13979 (fold_builtin_cpu): Do not share cpu model decls across statements.
13980
e78167f2
JM
139812013-01-02 Jason Merrill <jason@redhat.com>
13982
13983 PR c++/55804
13984 * tree.c (build_array_type_1): Revert earlier change.
13985
8c075fb4
YZ
139862013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
13987
13988 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
13989 "cortex-a57".
13990 * config/aarch64/aarch64-tune.md: Re-generate.
13991
0682ed3e
RB
139922013-01-02 Richard Biener <rguenther@suse.de>
13993
13994 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 13995 invariant load do not generate a vector load from the scalar location.
0682ed3e 13996
b8f6a302
RB
139972013-01-02 Richard Biener <rguenther@suse.de>
13998
13999 PR bootstrap/55784
14000 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
14001 * configure: Regenerate.
14002
04b80dbb
RS
140032013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
14004
14005 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
14006 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
14007 (expand_builtin_int_roundingfn_2): Keep the original target around
14008 for the fallback case.
14009
635b0b0c
RS
140102013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
14011
14012 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
14013 to be clear for sign changes.
14014
42d57399
JH
140152013-01-01 Jan Hubicka <jh@suse.cz>
14016
14017 * ipa-inline-analysis.c: Fix formatting.
14018
5bb6669d
JJ
140192013-01-01 Jakub Jelinek <jakub@redhat.com>
14020
14021 PR tree-optimization/55831
14022 * tree-vect-loop.c (get_initial_def_for_induction): Use
14023 gsi_after_labels instead of gsi_start_bb.
ad41bd84 14024\f
86a2db33 14025Copyright (C) 2013 Free Software Foundation, Inc.
ad41bd84
JM
14026
14027Copying and distribution of this file, with or without modification,
14028are permitted in any medium without royalty provided the copyright
14029notice and this notice are preserved.