arm.md (attribute "wtype"): Delete.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2013-07-01  Sofiane Naci  <sofiane.naci@arm.com>
2
3         * arm.md (attribute "wtype"): Delete.  Move attribute values from here
4         to ...
5         (attribute "type"): ... here, and prefix with "wmmx_".
6         (attribute "core_cycles"): Update for attribute changes.
7         * iwmmxt.md (tbcstv8qi): Update for attribute changes.
8         (tbcstv4hi): Likewise.
9         (tbcstv2si): Likewise.
10         (iwmmxt_iordi3): Likewise.
11         (iwmmxt_xordi3): Likewise.
12         (iwmmxt_anddi3): Likewise.
13         (iwmmxt_nanddi3): Likewise.
14         (iwmmxt_arm_movdi): Likewise.
15         (iwmmxt_movsi_insn): Likewise.
16         (mov<mode>_internal): Likewise.
17         (and<mode>3_iwmmxt): Likewise.
18         (ior<mode>3_iwmmxt): Likewise.
19         (xor<mode>3_iwmmxt): Likewise.
20         (add<mode>3_iwmmxt): Likewise.
21         (ssaddv8qi3): Likewise.
22         (ssaddv4hi3): Likewise.
23         (ssaddv2si3): Likewise.
24         (usaddv8qi3): Likewise.
25         (usaddv4hi3): Likewise.
26         (usaddv2si3): Likewise.
27         (sub<mode>3_iwmmxt): Likewise.
28         (sssubv8qi3): Likewise.
29         (sssubv4hi3): Likewise.
30         (sssubv2si3): Likewise.
31         (ussubv8qi3): Likewise.
32         (ussubv4hi3): Likewise.
33         (ussubv2si3): Likewise.
34         (mulv4hi3_iwmmxt): Likewise.
35         (smulv4hi3_highpart): Likewise.
36         (umulv4hi3_highpart): Likewise.
37         (iwmmxt_wmacs): Likewise.
38         (iwmmxt_wmacsz): Likewise.
39         (iwmmxt_wmacu): Likewise.
40         (iwmmxt_wmacuz): Likewise.
41         (iwmmxt_clrdi): Likewise.
42         (iwmmxt_clrv8qi): Likewise.
43         (iwmmxt_clr4hi): Likewise.
44         (iwmmxt_clr2si): Likewise.
45         (iwmmxt_uavgrndv8qi3): Likewise.
46         (iwmmxt_uavgrndv4hi3): Likewise.
47         (iwmmxt_uavgv8qi3): Likewise.
48         (iwmmxt_uavgv4hi3): Likewise.
49         (iwmmxt_tinsrb): Likewise.
50         (iwmmxt_tinsrh): Likewise.
51         (iwmmxt_tinsrw): Likewise.
52         (iwmmxt_textrmub): Likewise.
53         (iwmmxt_textrmsb): Likewise.
54         (iwmmxt_textrmuh): Likewise.
55         (iwmmxt_textrmsh): Likewise.
56         (iwmmxt_textrmw): Likewise.
57         (iwmxxt_wshufh): Likewise.
58         (eqv8qi3): Likewise.
59         (eqv4hi3): Likewise.
60         (eqv2si3): Likewise.
61         (gtuv8qi3): Likewise.
62         (gtuv4hi3): Likewise.
63         (gtuv2si3): Likewise.
64         (gtv8qi3): Likewise.
65         (gtv4hi3): Likewise.
66         (gtv2si3): Likewise.
67         (smax<mode>3_iwmmxt): Likewise.
68         (umax<mode>3_iwmmxt): Likewise.
69         (smin<mode>3_iwmmxt): Likewise.
70         (umin<mode>3_iwmmxt): Likewise.
71         (iwmmxt_wpackhss): Likewise.
72         (iwmmxt_wpackwss): Likewise.
73         (iwmmxt_wpackdss): Likewise.
74         (iwmmxt_wpackhus): Likewise.
75         (iwmmxt_wpackwus): Likewise.
76         (iwmmxt_wpackdus): Likewise.
77         (iwmmxt_wunpckihb): Likewise.
78         (iwmmxt_wunpckihh): Likewise.
79         (iwmmxt_wunpckihw): Likewise.
80         (iwmmxt_wunpckilb): Likewise.
81         (iwmmxt_wunpckilh): Likewise.
82         (iwmmxt_wunpckilw): Likewise.
83         (iwmmxt_wunpckehub): Likewise.
84         (iwmmxt_wunpckehuh): Likewise.
85         (iwmmxt_wunpckehuw): Likewise.
86         (iwmmxt_wunpckehsb): Likewise.
87         (iwmmxt_wunpckehsh): Likewise.
88         (iwmmxt_wunpckehsw): Likewise.
89         (iwmmxt_wunpckelub): Likewise.
90         (iwmmxt_wunpckeluh): Likewise.
91         (iwmmxt_wunpckeluw): Likewise.
92         (iwmmxt_wunpckelsb): Likewise.
93         (iwmmxt_wunpckelsh): Likewise.
94         (iwmmxt_wunpckelsw): Likewise.
95         (ror<mode>3): Likewise.
96         (ashr<mode>3_iwmmxt): Likewise.
97         (lshr<mode>3_iwmmxt): Likewise.
98         (ashl<mode>3_iwmmxt): Likewise.
99         (ror<mode>3_di): Likewise.
100         (ashr<mode>3_di): Likewise.
101         (lshr<mode>3_di): Likewise.
102         (ashl<mode>3_di): Likewise.
103         (iwmmxt_wmadds): Likewise.
104         (iwmmxt_wmaddu): Likewise.
105         (iwmmxt_tmia): Likewise.
106         (iwmmxt_tmiaph): Likewise.
107         (iwmmxt_tmiabb): Likewise.
108         (iwmmxt_tmiatb): Likewise.
109         (iwmmxt_tmiabt): Likewise.
110         (iwmmxt_tmiatt): Likewise.
111         (iwmmxt_tmovmskb): Likewise.
112         (iwmmxt_tmovmskh): Likewise.
113         (iwmmxt_tmovmskw): Likewise.
114         (iwmmxt_waccb): Likewise.
115         (iwmmxt_wacch): Likewise.
116         (iwmmxt_waccw): Likewise.
117         (iwmmxt_waligni): Likewise.
118         (iwmmxt_walignr): Likewise.
119         (iwmmxt_walignr0): Likewise.
120         (iwmmxt_walignr1): Likewise.
121         (iwmmxt_walignr2): Likewise.
122         (iwmmxt_walignr3): Likewise.
123         (iwmmxt_wsadb): Likewise.
124         (iwmmxt_wsadh): Likewise.
125         (iwmmxt_wsadbz): Likewise.
126         (iwmmxt_wsadhz): Likewise.
127         * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
128         (iwmmxt_wabsdiffb): Likewise.
129         (iwmmxt_wabsdiffh): Likewise.
130         (iwmmxt_wabsdiffw): Likewise.
131         (iwmmxt_waddsubhx): Likewise
132         (iwmmxt_wsubaddhx): Likewise.
133         (addc<mode>3): Likewise.
134         (iwmmxt_avg4): Likewise.
135         (iwmmxt_avg4r): Likewise.
136         (iwmmxt_wmaddsx): Likewise.
137         (iwmmxt_wmaddux): Likewise.
138         (iwmmxt_wmaddsn): Likewise.
139         (iwmmxt_wmaddun): Likewise.
140         (iwmmxt_wmulwsm): Likewise.
141         (iwmmxt_wmulwum): Likewise.
142         (iwmmxt_wmulsmr): Likewise.
143         (iwmmxt_wmulumr): Likewise.
144         (iwmmxt_wmulwsmr): Likewise.
145         (iwmmxt_wmulwumr): Likewise.
146         (iwmmxt_wmulwl): Likewise.
147         (iwmmxt_wqmulm): Likewise.
148         (iwmmxt_wqmulwm): Likewise.
149         (iwmmxt_wqmulmr): Likewise.
150         (iwmmxt_wqmulwmr): Likewise.
151         (iwmmxt_waddbhusm): Likewise.
152         (iwmmxt_waddbhusl): Likewise.
153         (iwmmxt_wqmiabb): Likewise.
154         (iwmmxt_wqmiabt): Likewise.
155         (iwmmxt_wqmiatb): Likewise.
156         (iwmmxt_wqmiatt): Likewise.
157         (iwmmxt_wqmiabbn): Likewise.
158         (iwmmxt_wqmiabtn): Likewise.
159         (iwmmxt_wqmiatbn): Likewise.
160         (iwmmxt_wqmiattn): Likewise.
161         (iwmmxt_wmiabb): Likewise.
162         (iwmmxt_wmiabt): Likewise.
163         (iwmmxt_wmiatb): Likewise.
164         (iwmmxt_wmiatt): Likewise.
165         (iwmmxt_wmiabbn): Likewise.
166         (iwmmxt_wmiabtn): Likewise.
167         (iwmmxt_wmiatbn): Likewise.
168         (iwmmxt_wmiattn): Likewise.
169         (iwmmxt_wmiawbb): Likewise.
170         (iwmmxt_wmiawbt): Likewise.
171         (iwmmxt_wmiawtb): Likewise.
172         (iwmmxt_wmiawtt): Likewise.
173         (iwmmxt_wmiawbbn): Likewise.
174         (iwmmxt_wmiawbtn): Likewise.
175         (iwmmxt_wmiawtbn): Likewise.
176         (iwmmxt_wmiawttn): Likewise.
177         (iwmmxt_wmerge): Likewise.
178         (iwmmxt_tandc<mode>3): Likewise.
179         (iwmmxt_torc<mode>3): Likewise.
180         (iwmmxt_torvsc<mode>3): Likewise.
181         (iwmmxt_textrc<mode>3): Likewise.
182         * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
183         (wmmxt_pack): Likewise.
184         (wmmxt_mult_c1): Likewise.
185         (wmmxt_mult_c2): Likewise.
186         (wmmxt_alu_c1): Likewise.
187         (wmmxt_alu_c2): Likewise.
188         (wmmxt_alu_c3): Likewise.
189         (wmmxt_transfer_c1): Likewise.
190         (wmmxt_transfer_c2): Likewise.
191         (wmmxt_transfer_c3): Likewise.
192         (marvell_f_iwmmxt_wstr): Likewise.
193         (marvell_f_iwmmxt_wldr): Likewise.
194
195 2013-06-29  Yufeng Zhang  <yufeng.zhang@arm.com>
196
197         * config/aarch64/aarch64.c: Remove junk from the beginning of the
198         file.
199
200 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
201
202         Revert:
203         2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
204         * lra-constraints.c (need_for_split_p): Check call used hard regs
205         living through calls.
206
207         * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
208         call used regs for call insn.
209
210 2013-06-28  Jakub Jelinek  <jakub@redhat.com>
211
212         PR target/57736
213         * config/i386/i386.c (ix86_expand_builtin): If target == NULL
214         and mode is VOIDmode, don't create a VOIDmode pseudo to copy result
215         into.
216
217 2013-06-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
218
219         * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
220
221 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
222
223         * lra-constraints.c (need_for_split_p): Check call used hard regs
224         living through calls.
225
226 2013-06-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
227
228         PR target/57744
229         * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
230         to tie with any other modes.  Eliminate Altivec vector mode tests,
231         since these are a subset of ALTIVEC or VSX vector modes.  Simplify
232         code, to return 0 if testing MODE2 for a condition, if we've
233         already tested MODE1 for the same condition.
234
235 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
236
237         * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
238         layout.
239
240 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
241
242         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
243         Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
244
245 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
246
247         * config/aarch64/aarch64-protos.h
248         aarch64_classify_symbol_expression): Define.
249         (aarch64_symbolic_constant_p): Remove.
250         * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
251         static.  Fix line length and white space.
252         (aarch64_symbolic_constant_p): Remove.
253         * config/aarch64/predicates.md (aarch64_valid_symref):
254         Use aarch64_classify_symbol_expression.
255
256 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
257
258         * config/arm/constraints.md (Ts): New constraint.
259         * config/arm/arm.md (arm_movqi_insn): Add alternatives for
260         16-bit encodings.
261         (compare_scc): Use "Ts" constraint for operand 0.
262         (ior_scc_scc): Likewise.
263         (and_scc_scc): Likewise.
264         (and_scc_scc_nodom): Likewise.
265         (ior_scc_scc_cmp): Likewise for operand 7.
266         (and_scc_scc_cmp): Likewise.
267         * config/arm/thumb2.md (thumb2_movsi_insn):
268         Add alternatives for 16-bit encodings.
269         (thumb2_movhi_insn): Likewise.
270         (thumb2_movsicc_insn): Likewise.
271         (thumb2_and_scc): Take 'and' outside cond_exec.  Use "Ts" constraint.
272         (thumb2_negscc): Use "Ts" constraint.
273         Move mvn instruction outside cond_exec block.
274         * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
275         for 16-bit encodings.
276
277 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
278
279         * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
280         encoding.
281         (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
282         (mulsi3subsi): Likewise.
283         (mulsidi3adddi): Likewise.
284         (mulsidi3_v6): Likewise.
285         (umulsidi3_v6): Likewise.
286         (umulsidi3adddi_v6): Likewise.
287         (smulsi3_highpart_v6): Likewise.
288         (umulsi3_highpart_v6): Likewise.
289         (mulhisi3tb): Likewise.
290         (mulhisi3bt): Likewise.
291         (mulhisi3tt): Likewise.
292         (maddhisi4): Likewise.
293         (maddhisi4tb): Likewise.
294         (maddhisi4tt): Likewise.
295         (maddhidi4): Likewise.
296         (maddhidi4tb): Likewise.
297         (maddhidi4tt): Likewise.
298         (zeroextractsi_compare0_scratch): Likewise.
299         (insv_zero): Likewise.
300         (insv_t2): Likewise.
301         (anddi_notzesidi_di): Likewise.
302         (anddi_notsesidi_di): Likewise.
303         (andsi_notsi_si): Likewise.
304         (iordi_zesidi_di): Likewise.
305         (xordi_zesidi_di): Likewise.
306         (andsi_iorsi3_notsi): Likewise.
307         (smax_0): Likewise.
308         (smax_m1): Likewise.
309         (smin_0): Likewise.
310         (not_shiftsi): Likewise.
311         (unaligned_loadsi): Likewise.
312         (unaligned_loadhis): Likewise.
313         (unaligned_loadhiu): Likewise.
314         (unaligned_storesi): Likewise.
315         (unaligned_storehi): Likewise.
316         (extv_reg): Likewise.
317         (extzv_t2): Likewise.
318         (divsi3): Likewise.
319         (udivsi3): Likewise.
320         (arm_zero_extendhisi2addsi): Likewise.
321         (arm_zero_extendqisi2addsi): Likewise.
322         (compareqi_eq0): Likewise.
323         (arm_extendhisi2_v6): Likewise.
324         (arm_extendqisi2addsi): Likewise.
325         (arm_movt): Likewise.
326         (thumb2_ldrd): Likewise.
327         (thumb2_ldrd_base): Likewise.
328         (thumb2_ldrd_base_neg): Likewise.
329         (thumb2_strd): Likewise.
330         (thumb2_strd_base): Likewise.
331         (thumb2_strd_base_neg): Likewise.
332         (arm_negsi2): Add alternative for 16-bit encoding.
333         (arm_one_cmplsi2): Likewise.
334
335 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
336
337         * config/arm/predicates.md (arm_cond_move_operator): New predicate.
338         * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
339         (movdfcc): Likewise.
340         * config/arm/vfp.md (*thumb2_movsf_vfp):
341         Disable predication for arm_restrict_it.
342         (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
343         (*thumb2_movdfcc_vfp): Likewise.
344         (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
345         *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
346         *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
347         *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
348         *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
349         *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
350         *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
351         *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
352         *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
353         *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
354         *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
355         *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
356         Disable predication for arm_restrict_it.
357
358 2013-06-28  Kirill Yukhin  <kirill.yukhin@intel.com>
359
360         * config/i386/bmiintrin.h (_bextr_u32): New.
361         (_bextr_u64): Ditto.
362
363 2013-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
364
365         * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
366         (mips64r5900el-*-elf*): Include mips/n32-elf.h.
367         * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
368         (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
369         * config/mips/n32-elf.h: ...this new file.
370
371 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
372
373         PR target/57224
374         * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
375         IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
376
377 2013-06-27  Catherine Moore <clm@codesourcery.com>
378
379         * config/mips/mips-tables.opt: Regenerate.
380         * config/mips/mips-cpus.def: Add m14ke and m14kec.
381         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies
382         -mdspr2.
383         * doc/invoke.texi: Add -m14kc.
384
385 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
386
387         PR target/57623
388         * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
389         constraints of operand 1 and 2.
390
391         PR target/57623
392         * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
393         to match RTL canonicalization.  Swap predicates and
394         constraints of operand 1 and 2.
395
396 2013-06-27  Vladimir Makarov  <vmakarov@redhat.com>
397
398         * lra-constraints.c (inherit_in_ebb): Process static hard regs
399         too.  Process OP_INOUT regs for splitting too.
400
401 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
402
403         * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
404         decl before the loop, initialize to NULL.
405         (vectorizable_load): Initialize ptr_incr to NULL.
406
407 2013-06-27  Martin Jambor  <mjambor@suse.cz>
408
409         PR lto/57208
410         * ipa-ref.h (ipa_maybe_record_reference): Declare.
411         * ipa-ref.c (ipa_maybe_record_reference): New function.
412         * cgraphclones.c (cgraph_create_virtual_clone): Use it.
413         * ipa-cp.c (create_specialized_node): Record potential references from
414         aggvals.
415         * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
416
417 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
418
419         * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
420         parameter 'mode' of type 'enum machine_mode mode'; change to pass
421         'mode' to force_reg.
422         (aarch64_add_offset): Update calls to aarch64_force_temporary.
423         (aarch64_expand_mov_immediate): Likewise.
424
425 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
426
427         * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
428         'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
429
430 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
431
432         * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
433         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
434         (struct machine_function): Add tbegin_p.
435         (s390_canonicalize_comparison): Fold CC mode compares to
436         conditional jump if possible.
437         (s390_emit_jump): Return the emitted jump.
438         (s390_branch_condition_mask, s390_branch_condition_mnemonic):
439         Handle CCRAWmode compares.
440         (s390_option_override): Default to -mhtm if available.
441         (s390_reg_clobbered_rtx): Handle floating point regs as well.
442         (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
443         FPRs instead of df_regs_ever_live_p.
444         (s390_optimize_nonescaping_tx): New function.
445         (s390_init_frame_layout): Extend clobbered_regs array to cover
446         FPRs as well.
447         (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
448         (s390_expand_tbegin): New function.
449         (enum s390_builtin): New enum definition.
450         (code_for_builtin): New array definition.
451         (s390_init_builtins): New function.
452         (s390_expand_builtin): New function.
453         (TARGET_INIT_BUILTINS): Define.
454         (TARGET_EXPAND_BUILTIN): Define.
455         * common/config/s390/s390-common.c (processor_flags_table): Add
456         PF_TX.
457         * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
458         (s390_alc_comparison): Likewise.
459         * config/s390/s390-modes.def: Add CCRAWmode.
460         * config/s390/s390.h (processor_flags): Add PF_TX.
461         (TARGET_CPU_HTM): Define macro.
462         (TARGET_HTM): Define macro.
463         (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
464         * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
465         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
466         (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
467         (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum
468         values.
469         (TBEGIN_MASK, TBEGINC_MASK): New constants.
470         ("*cc_to_int"): Move up.
471         ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
472         constants other than 0.
473         ("*ccraw_to_int"): New insn and splitter definition.
474         ("tbegin", "tbegin_nofloat", "tbegin_retry")
475         ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
476         ("tx_assist"): New expander.
477         ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
478         ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
479         * config/s390/s390.opt: Add -mhtm option.
480         * config/s390/s390-protos.h (s390_emit_jump): Add return type.
481         * config/s390/htmxlintrin.h: New file.
482         * config/s390/htmintrin.h: New file.
483         * config/s390/s390intrin.h: New file.
484         * doc/extend.texi: Document htm builtins.
485         * config.gcc: Add the new header files to extra_headers.
486
487 2013-06-26  Thomas Schwinge  <thomas@codesourcery.com>
488
489         * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
490         (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET):
491         Undefine.
492
493 2013-06-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
494             Pat Haugen <pthaugen@us.ibm.com>
495             Peter Bergner <bergner@vnet.ibm.com>
496
497         * config/rs6000/power8.md: New.
498         * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
499         setting for power8 entry.
500         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
501         * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
502         test for Power4/Power5 only.
503         (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
504         support.
505         (force_new_group): Adjust comment.
506         * config/rs6000/rs6000.md: Include power8.md.
507
508 2013-06-26  Greta Yorsh  <Greta.Yorsh@arm.com>
509
510         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
511         * config/arm/arm-protos.h (arm_max_conditional_execute): New
512         declaration.
513         (tune_params): Update comment.
514         * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
515         (arm_max_conditional_execute): New function.
516         (thumb2_final_prescan_insn): Use max_insn_skipped and
517         MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
518
519 2013-06-25  Jakub Jelinek  <jakub@redhat.com>
520
521         PR tree-optimization/57705
522         * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
523         SSA_NAME step, provided that it is not defined inside the loop.
524         (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested
525         loop.
526         (get_initial_def_for_induction): Handle SSA_NAME IV step.
527
528 2013-06-25  Martin Jambor  <mjambor@suse.cz>
529
530         PR middle-end/57670
531         * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
532         * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
533         calls in the dump.
534         (ipa_note_param_call): Initialize member_ptr flag.
535         (ipa_analyze_indirect_call_uses): Set member_ptr flag.
536         (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
537         (ipa_write_indirect_edge_info): Stream member_ptr flag.
538         (ipa_read_indirect_edge_info): Likewise.
539
540 2013-06-25  Richard Biener  <rguenther@suse.de>
541
542         PR middle-end/56977
543         * passes.c (init_optimization_passes): Move pass_fold_builtins
544         and pass_dce earlier with -Og.
545
546 2013-06-25  Eric Botcazou  <ebotcazou@adacore.com>
547
548         * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
549         <BIT_FIELD_REF>: Remove trailing TAB.
550         * varasm.c (output_constructor_bitfield): Fix formatting glitch and
551         remove blank line.
552
553 2013-06-24  Martin Jambor  <mjambor@suse.cz>
554
555         PR tree-optimization/57358
556         * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
557         (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
558         (ipa_analyze_params_uses): Generate pessimistic info when true.
559
560 2013-06-24  Martin Jambor  <mjambor@suse.cz>
561
562         PR tree-optimization/57539
563         * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
564         global.inlined_to of the new node to it.  All callers changed.
565         * ipa-inline-transform.c (clone_inlined_nodes): New variable
566         inlining_into, pass it to cgraph_clone_node.
567         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
568         ipa_free_edge_args_substructures.
569         (ipa_edge_duplication_hook): Only add edges from inlined nodes to
570         rdesc linked list.  Do not assert rdesc edges have inlined caller.
571         Assert we have found an rdesc in the rdesc list.
572
573 2013-06-24  Richard Biener  <rguenther@suse.de>
574
575         * pointer-set.h (struct pointer_set_t): Move here from
576         pointer-set.c.
577         (pointer_set_lookup): Declare.
578         (class pointer_map): New template class implementing a
579         generic pointer to T map.
580         (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
581         pointer_map<T>::contains, pointer_map<T>::insert,
582         pointer_map<T>::traverse): New functions.
583         * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
584         (pointer_set_lookup): New function.
585         (pointer_set_contains): Use pointer_set_lookup.
586         (pointer_set_insert): Likewise.
587         (insert_aux): Remove.
588         (struct pointer_map_t): Embed a pointer_set_t.
589         (pointer_map_create): Adjust.
590         (pointer_map_destroy): Likewise.
591         (pointer_map_contains): Likewise.
592         (pointer_map_insert): Likewise.
593         (pointer_map_traverse): Likewise.
594         * tree-streamer.h (struct streamer_tree_cache_d): Use a
595         pointer_map<unsigned> instead of a pointer_map_t.
596         * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
597         (streamer_tree_cache_lookup): Likewise.
598         (streamer_tree_cache_create): Likewise.
599         (streamer_tree_cache_delete): Likewise.
600         * lto-streamer.h (struct lto_tree_ref_encoder): Use a
601         pointer_map<unsigned> instead of a pointer_map_t.
602         (lto_init_tree_ref_encoder): Adjust.
603         (lto_destroy_tree_ref_encoder): Likewise.
604         * lto-section-out.c (lto_output_decl_index): Likewise.
605         (lto_record_function_out_decl_state): Likewise.
606         * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
607
608 2013-06-24  Richard Biener  <rguenther@suse.de>
609
610         PR tree-optimization/57488
611         * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
612
613 2013-06-24  Alan Modra  <amodra@gmail.com>
614
615         * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
616         (gen_easy_altivec_constant): Likewise.
617         * config/rs6000/predicates.md (easy_vector_constant_add_self,
618         easy_vector_constant_msb): Likewise.
619
620 2013-06-23  Jakub Jelinek  <jakub@redhat.com>
621
622         PR target/57688
623         * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
624         add missing return true.
625
626 2013-06-23  Oleg Endo <olegendo@gcc.gnu.org>
627
628         PR target/52483
629         * config/sh/predicates.md (general_extend_operand): Invoke
630         general_movsrc_operand for memory operands.
631         (general_movsrc_operand): Allow reg+reg addressing, do not use
632         general_operand for memory operands.
633
634 2013-06-23  Sriraman Tallam  <tmsriram@google.com>
635
636         * config/i386/i386.c (ix86_pragma_target_parse):  Restore target
637         when current target options does not apply.
638         * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
639         * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
640         * config/i386/bmiintrin.h: Pass appropriate target attributes to header.
641         * config/i386/mmintrin.h: Ditto.
642         * config/i386/nmmintrin.h: Ditto.
643         * config/i386/avx2intrin.h: Ditto.
644         * config/i386/fxsrintrin.h: Ditto.
645         * config/i386/tbmintrin.h: Ditto.
646         * config/i386/xsaveintrin.h: Ditto.
647         * config/i386/f16cintrin.h: Ditto.
648         * config/i386/xtestintrin.h: Ditto.
649         * config/i386/xsaveoptintrin.h: Ditto.
650         * config/i386/bmi2intrin.h: Ditto.
651         * config/i386/lzcntintrin.h: Ditto.
652         * config/i386/smmintrin.h: Ditto.
653         * config/i386/wmmintrin.h: Ditto.
654         * config/i386/x86intrin.h: Remove all header include guards.
655         * config/i386/prfchwintrin.h: Ditto.
656         * config/i386/pmmintrin.h: Ditto.
657         * config/i386/tmmintrin.h: Ditto.
658         * config/i386/xmmintrin.h: Ditto.
659         * config/i386/popcntintrin.h: Ditto.
660         * config/i386/rdseedintrin.h: Ditto.
661         * config/i386/ammintrin.h: Ditto.
662         * config/i386/emmintrin.h: Ditto.
663         * config/i386/immintrin.h: Remove all header include guards.
664         * config/i386/fma4intrin.h: Ditto.
665         * config/i386/lwpintrin.h: Ditto.
666         * config/i386/xopintrin.h: Ditto.
667         * config/i386/ia32intrin.h: Ditto.
668         * config/i386/avxintrin.h: Ditto.
669         * config/i386/rtmintrin.h: Ditto.
670         * config/i386/fmaintrin.h: Ditto.
671         * config/i386/mm3dnow.h: Ditto.
672
673 2013-06-22  Sriraman Tallam  <tmsriram@google.com>
674
675         * common/config/i386/i386-common.c: Handle LZCNT.
676
677 2013-06-22  Andi Kleen  <ak@linux.intel.com>
678
679         * doc/extend.texi: Use __atomic_store_n instead of
680         __atomic_store in HLE example.
681
682 2013-06-22  Oleg Endo <olegendo@gcc.gnu.org>
683
684         * config/sh/sh.c: Remove <cstdlib> workaround.
685
686 2013-06-21  Andi Kleen  <ak@linux.intel.com>
687
688         * doc/extend.texi: Dont use __atomic_clear in HLE
689         example.  Fix typo.
690
691 2013-06-21  Andi Kleen  <ak@linux.intel.com>
692
693         * doc/extend.texi: Document that __atomic_clear and
694           __atomic_test_and_set should only be used with bool.
695
696 2013-06-20  Jan Hubicka  <jh@suse.cz>
697
698         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
699         types_same_for_odr.
700         * tree.c (decls_same_for_odr): New function.
701         (same_for_edr): New function.
702         (types_same_for_odr): New function.
703         (get_binfo_at_offset): Use it.
704         * tree.h (types_same_for_odr): Declare.
705
706 2013-06-20  Oleg Endo <olegendo@gcc.gnu.org>
707             Jason Merrill  <jason@redhat.com>
708
709         * system.h: Include <cstdlib> as well as <stdlib.h>.
710
711 2013-06-20  Uros Bizjak  <ubizjak@gmail.com>
712
713         PR target/57655
714         * config/i386/i386.c (construct_container): Report error if
715         long double is used with disabled x87 float returns.
716
717 2013-06-20  Jan Hubicka  <jh@suse.cz>
718
719         * lto-cgraph.c (input_symtab): Do not set cgraph state.
720
721 2013-06-20  Joern Rennecke <joern.rennecke@embecosm.com>
722
723         PR rtl-optimization/57425
724         PR rtl-optimization/57569
725         * alias.c (write_dependence_p): Remove parameters mem_mode and
726         canon_mem_addr.  Add parameters x_mode, x_addr and x_canonicalized.
727         Changed all callers.
728         (canon_anti_dependence): Get comments and semantics in sync.
729         Add parameter mem_canonicalized.  Changed all callers.
730         * rtl.h (canon_anti_dependence): Update prototype.
731
732 2013-06-20  Richard Biener  <rguenther@suse.de>
733
734         * data-streamer-in.c (streamer_read_uhwi): Optimize single
735         byte case, inline streamer_read_uchar and defer section
736         overrun check.
737
738 2013-06-20  Richard Biener  <rguenther@suse.de>
739
740         PR tree-optimization/57584
741         * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
742         SSA names into the expanded expression that take part in
743         abnormal coalescing.
744
745 2013-06-19    <singhai@google.com>
746
747         * gcov.c (print_usage): Handle new option.
748         (process_args): Ditto.
749         (get_gcov_intermediate_filename): New function.
750         (output_intermediate_file): New function.
751         (output_gcov_file): New function
752         (generate_results): Handle new option.
753         (release_function): Relase demangled name.
754         (read_graph_file): Handle demangled name.
755         (output_lines): Ditto.
756         * doc/gcov.texi: Document gcov intermediate format.
757
758 2013-06-19  Vladimir Makarov  <vmakarov@redhat.com>
759
760         PR bootstrap/57604
761         * lra.c (emit_add3_insn, emit_add2_insn): New functions.
762         (lra_emit_add): Use the functions.  Add comment about Y as an
763         address segment.
764
765 2013-06-19  David Edelsohn  <dje.gcc@gmail.com>
766
767         PR driver/57652
768         * collect2.c (collect_atexit): New.
769         (collect_exit): Delete.
770         (main): Register collect_atexit with atexit.
771         (collect_wait): Change collect_exit to exit.
772         (do_wait): Same.
773         * collect2.h (collect_exit): Delete.
774         * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
775
776 2013-06-19  Wei Mi  <wmi@google.com>
777
778         PR rtl-optimization/57518
779         * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
780         if regno is used in paradoxical subreg.
781         (update_equiv_regs): Check pdx_subregs[regno] before
782         set a reg to be equivalent with a mem.
783
784 2013-06-19  Matthias Klose  <doko@ubuntu.com>
785
786         PR driver/57651
787         * file-find.h (find_a_file): Add a mode parameter.
788         * file-find.c (find_a_file): Likewise.
789         * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
790         with X_OK for the executables.
791         * collect2.c (main): Call find_a_file with X_OK.
792
793 2013-06-19  Steve Ellcey  <sellcey@mips.com>
794
795         PR target/56942
796         * config/mips/mips.md (casesi_internal_mips16_<mode>):
797         Use NEXT_INSN instead of next_real_insn.
798
799 2013-06-19  Jan Hubicka  <jh@suse.cz>
800
801         * cgraph.h (const_value_known_p): Replace by ...
802         (ctor_for_folding): .. this one.
803         * cgraphunit.c (process_function_and_variable_attributes): Use it.
804         * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
805         * expr.c (expand_expr_real_1): Likewise.
806         (string_constant): Likewise.
807         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
808         * ipa.c (process_references): Likewise.
809         (symtab_remove_unreachable_nodes): Likewise.
810         * ipa-inline-analysis.c (param_change_prob): Likewise.
811         * gimple-fold.c (canonicalize_constructor_val): Likewise.
812         (get_base_constructor): Likwise.
813         * varpool.c (varpool_remove_node): Likewise.
814         (varpool_remove_initializer): LIkewise.
815         (dump_varpool_node): LIkwise.
816         (const_value_known_p): Rewrite to ...
817         (ctor_for_folding): ... this one.
818
819 2013-06-19  Jakub Jelinek  <jakub@redhat.com>
820
821         PR driver/57651
822         * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
823         PERSONALITY in $PATH derived prefixes.
824
825 2013-06-19  Jeff Law  <law@redhat.com>
826
827         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
828         in comment.
829
830         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
831         (simplify_bitwise_binary): Use it to simpify certain binary ops on
832         booleans.
833
834 2013-06-19  Sofiane Naci  <sofiane.naci@arm.com>
835
836         * config/arm/vfp.md: Move VFP instruction classification documentation
837         to ...
838         * config/arm/arm.md: ... here.  Update instruction classification
839         documentation.
840
841 2013-06-19  Richard Earnshaw  <rearnsha@arm.com>
842
843         arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
844         (peepholes for eq(reg, not-0)): Ensure condition register is dead after
845         pattern.  Use more efficient sequences on ARMv5 and Thumb2.
846
847 2013-06-19  Steven Bosscher  <steven@gcc.gnu.org>
848
849         PR target/57609
850         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
851         with NEXT_INSN.  Use tablejump_p to check for jump table data
852         insns.
853
854 2013-06-19  Paolo Carlini  <paolo.carlini@oracle.com>
855
856         PR c++/56544
857         * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
858         that now in C++ the value is correct per the C++ standards.
859
860 2013-06-19  Richard Biener  <rguenther@suse.de>
861
862         * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
863         for global context.
864
865 2013-06-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
866
867         Revert:
868         2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
869
870         PR target/57609
871         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
872         with next_active_insn.
873
874 2013-06-18  Sriraman Tallam  <tmsriram@google.com>
875
876         * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
877         functions are inlined during failures to flag an error.
878         * tree-inline.c (expand_call_inline): Allow the error to be flagged
879         in early inline pass.
880
881 2013-06-18  H.J. Lu  <hongjiu.lu@intel.com>
882
883         * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
884         in comments.
885
886 2013-06-18  Julian Brown  <julian@codesourcery.com>
887
888         * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
889         Permit virtual register pre-reload if !strict.
890         (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
891         change.
892         * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
893         prototype.
894         * config/arm/neon.md (movmisalign<mode>): Use
895         neon_perm_struct_or_reg_operand instead of
896         neon_struct_or_register_operand.
897         (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
898         neon_permissive_struct_operand instead of neon_struct_operand.
899         * config/arm/constraints.md (Un, Um, Us): Adjust calls to
900         neon_vector_mem_operand.
901         * config/arm/predicates.md (neon_struct_operand): Adjust call to
902         neon_vector_mem_operand.
903         (neon_permissive_struct_operand): New.
904         (neon_struct_or_register_operand): Rename to...
905         (neon_perm_struct_or_reg_operand): This. Adjust call to
906         neon_vector_mem_operand.
907
908 2013-06-18  Richard Biener  <rguenther@suse.de>
909
910         * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
911         * lto-streamer.h: Include pointer-set.h.
912         (struct lto_decl_slot): Remove.
913         (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
914         Remove next_index entry.
915         (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
916         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
917         (lto_init_tree_ref_encoder): Adjust.
918         (lto_destroy_tree_ref_encoder): Likewise.
919         * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
920         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
921         (lto_output_decl_index): Adjust.
922         (lto_new_out_decl_state): Likewise.
923         (lto_record_function_out_decl_state): Likewise.
924         * lto-streamer-out.c (copy_function): Likewise.
925
926 2013-06-18  Richard Biener  <rguenther@suse.de>
927
928         * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
929         * cgraphunit.c: Include cfgloop.h.
930         (init_lowered_empty_function): Initialize the loop tree.
931         (assemble_thunk): Insert new BBs into loops.
932
933 2013-06-18  Richard Biener  <rguenther@suse.de>
934
935         * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
936         * tree-streamer.c (streamer_tree_cache_create): Make maintaining
937         the map from cache entry to cache index optional.
938         (streamer_tree_cache_replace_tree): Adjust accordingly.
939         (streamer_tree_cache_append): Likewise.
940         (streamer_tree_cache_delete): Likewise.
941         * lto-streamer-in.c (lto_data_in_create): Do not maintain the
942         streamer cache map from cache entry to cache index.
943         * lto-streamer-out.c (create_output_block): Adjust.
944
945 2013-06-18  Sofiane Naci  <sofiane.naci@arm.com>
946
947         * config/arm/arm.md (attribute "insn"): Move multiplication and
948         division attributes to...
949         (attribute "type"): ... here.  Remove mult.
950         (attribute "mul32"): New attribute.
951         (attribute "mul64"): Add umaal.
952         (*arm_mulsi3): Update attributes.
953         (*arm_mulsi3_v6): Likewise.
954         (*thumb_mulsi3): Likewise.
955         (*thumb_mulsi3_v6): Likewise.
956         (*mulsi3_compare0): Likewise.
957         (*mulsi3_compare0_v6): Likewise.
958         (*mulsi_compare0_scratch): Likewise.
959         (*mulsi_compare0_scratch_v6): Likewise.
960         (*mulsi3addsi): Likewise.
961         (*mulsi3addsi_v6): Likewise.
962         (*mulsi3addsi_compare0): Likewise.
963         (*mulsi3addsi_compare0_v6): Likewise.
964         (*mulsi3addsi_compare0_scratch): Likewise.
965         (*mulsi3addsi_compare0_scratch_v6): Likewise.
966         (*mulsi3subsi): Likewise.
967         (*mulsidi3adddi): Likewise.
968         (*mulsi3addsi_v6): Likewise.
969         (*mulsidi3adddi_v6): Likewise.
970         (*mulsidi3_nov6): Likewise.
971         (*mulsidi3_v6): Likewise.
972         (*umulsidi3_nov6): Likewise.
973         (*umulsidi3_v6): Likewise.
974         (*umulsidi3adddi): Likewise.
975         (*umulsidi3adddi_v6): Likewise.
976         (*smulsi3_highpart_nov6): Likewise.
977         (*smulsi3_highpart_v6): Likewise.
978         (*umulsi3_highpart_nov6): Likewise.
979         (*umulsi3_highpart_v6): Likewise.
980         (mulhisi3): Likewise.
981         (*mulhisi3tb): Likewise.
982         (*mulhisi3bt): Likewise.
983         (*mulhisi3tt): Likewise.
984         (maddhisi4): Likewise.
985         (*maddhisi4tb): Likewise.
986         (*maddhisi4tt): Likewise.
987         (maddhidi4): Likewise.
988         (*maddhidi4tb): Likewise.
989         (*maddhidi4tt): Likewise.
990         (divsi3): Likewise.
991         (udivsi3): Likewise.
992         * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
993         (thumb2_mulsi_short_compare0): Likewise.
994         (thumb2_mulsi_short_compare0_scratch): Likewise.
995         * config/arm/arm1020e.md (1020mult1): Update attribute change.
996         (1020mult2): Likewise.
997         (1020mult3): Likewise.
998         (1020mult4): Likewise.
999         (1020mult5): Likewise.
1000         (1020mult6): Likewise.
1001         * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
1002         change.
1003         (cortex_a15_mult64): Likewise.
1004         (cortex_a15_sdiv): Likewise.
1005         (cortex_a15_udiv): Likewise.
1006         * config/arm/arm1026ejs.md (mult1): Update attribute change.
1007         (mult2): Likewise.
1008         (mult3): Likewise.
1009         (mult4): Likewise.
1010         (mult5): Likewise.
1011         (mult6): Likewise.
1012         * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
1013         (pj4_ir_div): Likewise.
1014         * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
1015         (11_mult2): Likewise.
1016         (11_mult3): Likewise.
1017         (11_mult4): Likewise.
1018         (11_mult5): Likewise.
1019         (11_mult6): Likewise.
1020         (11_mult7): Likewise.
1021         * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
1022         (cortex_a8_mla): Likewise.
1023         (cortex_a8_mull): Likewise.
1024         (cortex_a8_smulwy): Likewise.
1025         (cortex_a8_smlald): Likewise.
1026         * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
1027         * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
1028         (cortex_r4_mul_3): Likewise.
1029         (cortex_r4_mla_4): Likewise.
1030         (cortex_r4_mla_3): Likewise.
1031         (cortex_r4_smlald): Likewise.
1032         (cortex_r4_mull): Likewise.
1033         (cortex_r4_sdiv): Likewise.
1034         (cortex_r4_udiv): Likewise.
1035         * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
1036         (cortex_a7_idiv): Likewise.
1037         * config/arm/arm926ejs.md (9_mult1): Update attribute change.
1038         (9_mult2): Likewise.
1039         (9_mult3): Likewise.
1040         (9_mult4): Likewise.
1041         (9_mult5): Likewise.
1042         (9_mult6): Likewise.
1043         * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
1044         (cortex_a53_sdiv): Likewise.
1045         (cortex_a53_udiv): Likewise.
1046         * config/arm/fa726te.md (726te_mult_op): Update attribute change.
1047         * config/arm/fmp626.md (mp626_mult1): Update attribute change.
1048         (mp626_mult2): Likewise.
1049         (mp626_mult3): Likewise.
1050         (mp626_mult4): Likewise.
1051         * config/arm/fa526.md (526_mult1): Update attribute change.
1052         (526_mult2): Likewise.
1053         * config/arm/arm-generic.md (mult): Update attribute change.
1054         (mult_ldsched_strongarm): Likewise.
1055         (mult_ldsched): Likewise.
1056         (multi_cycle): Likewise.
1057         * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
1058         * config/arm/fa606te.md (606te_mult1): Update attribute change.
1059         (606te_mult2): Likewise.
1060         (606te_mult3): Likewise.
1061         (606te_mult4): Likewise.
1062         * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
1063         (cortex_a9_mac16): Likewise.
1064         (cortex_a9_multiply): Likewise.
1065         (cortex_a9_mac): Likewise.
1066         (cortex_a9_multiply_long): Likewise.
1067         * config/arm/fa626te.md (626te_mult1): Update attribute change.
1068         (626te_mult2): Likewise.
1069         (626te_mult3): Likewise.
1070         (626te_mult4): Likewise.
1071
1072 2013-06-18  Richard Biener  <rguenther@suse.de>
1073
1074         PR lto/57334
1075         * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
1076
1077 2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1078
1079         PR target/57609
1080         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
1081         with next_active_insn.
1082
1083 2013-06-18  Alan Modra  <amodra@gmail.com>
1084
1085         * config/rs6000/rs6000.h (enum data_align): New.
1086         (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
1087         (DATA_ABI_ALIGNMENT): Define.
1088         (CONSTANT_ALIGNMENT): Correct comment.
1089         * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
1090         * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
1091
1092 2013-06-17  David Malcolm  <dmalcolm@redhat.com>
1093
1094         * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
1095         ATTRIBUTE_UNUSED marking.
1096
1097 2013-06-17  Sofiane Naci  <sofiane.naci@arm.com>
1098
1099         * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
1100         alternative and update.
1101         (aarch64_dup_lanedi): Delete.
1102         * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
1103         * config/aarch64/aarch64-simd-builtins.def: Update.
1104
1105 2013-06-17  Richard Biener  <rguenther@suse.de>
1106
1107         * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
1108         (lto_input_scc): Declare.
1109         (lto_input_tree_1): Likewise.
1110         (struct lto_stats_d): Add num_tree_bodies_output and
1111         num_pickle_refs_output.
1112         * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
1113         (lto_read_tree_1): Split out from ...
1114         (lto_read_tree): ... this.
1115         (lto_input_scc): New function.
1116         (lto_input_tree_1): Split out from ...
1117         (lto_input_tree): ... this.  Handle LTO_tree_scc.
1118         (lto_data_in_create): Create the streamer cache without hashes.
1119         * lto-streamer-out.c (create_output_block): Create the streamer
1120         cache with hashes when not doing WPA.
1121         (lto_write_tree_1): Split out from ...
1122         (lto_write_tree): ... this.
1123         (get_symbol_initial_value): New function.
1124         (lto_output_tree_1): Split out from ...
1125         (lto_output_tree): ... this.  Write trees as series of SCCs
1126         using a DFS walk via DFS_write_tree.
1127         (struct sccs, struct scc_entry): New types.
1128         (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
1129         (DFS_write_tree_body): New function.
1130         (DFS_write_tree): Likewise.
1131         (hash_tree): Likewise.
1132         (scc_entry_compare): Likewise.
1133         (hash_scc): Likewise.
1134         (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
1135         * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
1136         TREE_CHAIN as regular reference.
1137         (streamer_read_integer_cst): Remove.
1138         (streamer_get_pickled_tree): Adjust.
1139         * tree-streamer-out.c (streamer_write_chain): Disable streaming
1140         of DECL_EXTERNALs in BLOCK_VARS for now.
1141         (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
1142         reference.
1143         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
1144         Add hash value argument and record that if hashes are recorded
1145         in the cache.
1146         (streamer_tree_cache_insert_1): Adjust.
1147         (streamer_tree_cache_insert): Likewise.
1148         (streamer_tree_cache_insert_at): Rename to ...
1149         (streamer_tree_cache_replace_tree): ... this and adjust.
1150         (streamer_tree_cache_append): Adjust.
1151         (record_common_node): Likewise.
1152         (streamer_tree_cache_create): Add argument whether to
1153         record hash values together with trees.
1154         (streamer_tree_cache_delete): Adjust.
1155         * tree-streamer.h (struct streamer_tree_cache_d): Add
1156         vector of hashes.
1157         (streamer_read_integer_cst): Remove.
1158         (streamer_tree_cache_insert): Adjust.
1159         (streamer_tree_cache_append): Likewise.
1160         (streamer_tree_cache_insert_at): Rename to ...
1161         (streamer_tree_cache_replace_tree): ... this and adjust.
1162         (streamer_tree_cache_create): Add argument whether to record hashes.
1163         (streamer_tree_cache_get): Rename to ...
1164         (streamer_tree_cache_get_tree): ... this.
1165         (streamer_tree_cache_get_hash): New function.
1166         * tree.c (cache_integer_cst): New function.
1167         * tree.h (cache_integer_cst): Declare.
1168         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
1169         * lto-symtab.c (lto_varpool_replace_node): Only release
1170         DECL_INITIAL of non-prevailing decls.
1171         * varpool.c (varpool_remove_initializer): Do not release
1172         DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
1173
1174 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
1175
1176         * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
1177         (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
1178         * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
1179         (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
1180         (mul<mode>3_mul3): Handle TARGET_MIPS5900.
1181         (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
1182         (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
1183         (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
1184         instead of TARGET_64BIT.
1185         (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
1186         Require ISA_HAS_<D>DIV.
1187
1188 2013-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
1189
1190         * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
1191         (mips*-*-linux*): Move default with_llsc setting to where other
1192         defaults are set.
1193         (mips*-*-vxworks*): Move with_arch default from with_cpu block to
1194         with_arch block.
1195         (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
1196         Likewise.  Remove default with_tune setting.  Move default float
1197         setting to its own block.  Handle with_llsc in the same block as above.
1198
1199 2013-06-16  Joern Rennecke <joern.rennecke@embecosm.com>
1200
1201         PR rtl-optimization/57425
1202         PR rtl-optimization/57569
1203         * alias.c (write_dependence_p): Add new parameters mem_mode,
1204         canon_mem_addr and mem_canonicalized.  Change type of writep to bool.
1205         Changed all callers.
1206         (canon_anti_dependence): New function.
1207         * cse.c (check_dependence): Use canon_anti_dependence.
1208         * cselib.c (cselib_invalidate_mem): Likewise.
1209         * rtl.h (canon_anti_dependence): Declare.
1210
1211 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
1212
1213         * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
1214         * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
1215         ".set mips3" for 64-bit targets.
1216
1217 2013-06-15  Dehao Chen  <dehao@google.com>
1218
1219         * tree-flow.h (gimple_check_call_matching_types): Add new argument.
1220         * gimple-low.c (gimple_check_call_matching_types): Likewise.
1221         (gimple_check_call_args): Likewise.
1222         * value-prof.c (check_ic_target): Likewise.
1223         * ipa-inline.c (early_inliner): Likewise.
1224         * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
1225         * cgraph.c (cgraph_create_edge_1): Likewise.
1226         (cgraph_make_edge_direct): Likewise.
1227
1228 2013-06-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
1229
1230         PR target/57615
1231         * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
1232         rs6000_output_move_128bit to handle emitting quad memory
1233         operations.  Set attribute length to 8 bytes.
1234
1235 2013-06-14  Vidya Praveen <vidyapraveen@arm.com>
1236
1237         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
1238         New pattern.
1239         (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
1240         (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
1241         (aarch64_<su>mlsl<mode>): Likewise.
1242
1243 2013-06-14  Mike Stump  <mikestump@comcast.net>
1244
1245         * Makefile.in (TARGET_H): Add insn-codes.h.
1246
1247 2013-06-14  Alan Modra  <amodra@gmail.com>
1248
1249         PR middle-end/57134
1250         PR middle-end/57586
1251         * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
1252         EXPAND_MEMORY and EXPAND_WRITE to recursive call.  Don't use
1253         bitfield expansion when EXPAND_MEMORY.
1254         (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
1255
1256 2013-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
1257
1258         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1259         test for clearing quad memory on 32-bit later.
1260
1261 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
1262
1263         * fold-const.c (negate_expr_p): Handle VECTOR_CST.
1264         (fold_negate_expr): Likewise.
1265         (fold_real_zero_addition_p): Handle vectors.
1266         (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
1267
1268 2013-06-14  Alan Modra  <amodra@gmail.com>
1269
1270         * varasm.c (force_const_mem): Revert 2013-06-07 change.
1271
1272 2013-06-13  Jan Hubicka  <jh@suse.cz>
1273
1274         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
1275         Local comdats are not externally visible.
1276         * symtab.c (dump_symtab_base): Dump externally visible.
1277         (verify_symtab_base): Verify back links in the symtab hash.
1278
1279 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
1280
1281         * fold-const.c (operand_equal_p): Consider NOP_EXPR and
1282         CONVERT_EXPR as equal nodes.
1283
1284 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
1285
1286         * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
1287
1288 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
1289
1290         * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
1291         Generalize to complex and vector.
1292         * tree.c (build_all_ones_cst): New function.
1293         * tree.h (build_all_ones_cst): Declare it.
1294
1295 2013-06-13  Alan Modra  <amodra@gmail.com>
1296
1297         * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
1298         * config/rs6000/rs6000.md (signbittf2): New insn.
1299         (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
1300         (abstf2_internal, cmptf_internal2): Likewise.
1301         * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
1302
1303 2013-06-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
1304             Pat Haugen <pthaugen@us.ibm.com>
1305             Peter Bergner <bergner@vnet.ibm.com>
1306
1307         * config/rs6000/rs6000.c (emit_load_locked): Add support for
1308         power8 byte, half-word, and quad-word atomic instructions.
1309         (emit_store_conditional): Likewise.
1310         (rs6000_expand_atomic_compare_and_swap): Likewise.
1311         (rs6000_expand_atomic_op): Likewise.
1312
1313         * config/rs6000/sync.md (larx): Add new modes for power8.
1314         (stcx): Likewise.
1315         (AINT): New mode iterator to include TImode as well as normal
1316         integer modes on power8.
1317         (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
1318         that VSX registers are not considered.  Use AINT mode iterator
1319         instead of INT1 to allow inclusion of quad word atomic operations
1320         on power8.
1321         (load_locked<mode>): Likewise.
1322         (store_conditional<mode>): Likewise.
1323         (atomic_compare_and_swap<mode>): Likewise.
1324         (atomic_exchange<mode>): Likewise.
1325         (atomic_nand<mode>): Likewise.
1326         (atomic_fetch_<fetchop_name><mode>): Likewise.
1327         (atomic_nand_fetch<mode>): Likewise.
1328         (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
1329         each type.
1330         (ATOMIC): On power8, add QImode, HImode modes.
1331         (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
1332         modes that promote to SImode.
1333         (load_lockedti): Convert TImode arguments to PTImode, so that we
1334         get a guaranteed even/odd register pair.
1335         (load_lockedpti): Likewise.
1336         (store_conditionalti): Likewise.
1337         (store_conditionalpti): Likewise.
1338
1339         * config/rs6000/rs6000.md (QHI): New mode iterator for power8
1340         atomic load/store instructions.
1341         (HSI): Likewise.
1342
1343 2013-06-12  Richard Sandiford  <rdsandiford@googlemail.com>
1344
1345         * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
1346         loads.
1347         (insn_count): New attribute, with most cases extracted from...
1348         (length): ...here.  Redefine most cases in terms of insn_count.
1349         (single_insn): Delete.
1350         (can_delay): Use insn_count to check for single instructions.
1351         (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
1352         (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
1353         (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
1354         (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
1355         (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
1356         (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
1357         (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
1358         (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
1359         (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
1360         (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
1361         rather than "length".
1362         (tls_get_tp_<mode>): Likewise.  Remove redundant "no_delay" attribute.
1363         * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
1364         Use "insn_count" rather than "length".
1365         * config/mips/mips-dsp.md
1366         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
1367         (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
1368         length attributes.
1369
1370 2013-06-12  Marc Glisse  <marc.glisse@inria.fr>
1371
1372         PR tree-optimization/57361
1373         * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
1374
1375 2013-06-12  Sofiane Naci  <sofiane.naci@arm.com>
1376
1377         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
1378         to split.
1379         (aarch64_simd_combine<mode>): New instruction expansion.
1380         * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
1381         function prototype.
1382         * config/aarch64/aarch64.c (aarch64_split_combine): New function.
1383         * config/aarch64/iterators.md (Vdbl): Add entry for DF.
1384
1385 2013-06-12  Jan Hubicka  <jh@suse.cz>
1386
1387         * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
1388         decl has when in streaming stage.
1389         * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
1390         * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
1391
1392 2013-06-12  Roland Stigge <stigge@antcom.de>
1393
1394         PR target/57578
1395         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
1396
1397 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
1398
1399         PR tree-optimization/57537
1400         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
1401         vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
1402
1403 2013-06-12  Richard Biener  <rguenther@suse.de>
1404
1405         * data-streamer.h (streamer_write_char_stream): CSE
1406         obs->current_pointer.
1407         * data-streamer-out.c (streamer_write_uhwi_stream): Inline
1408         streamer_write_char_stream manually and optimize the resulting loop.
1409         (streamer_write_hwi_stream): Likewise.
1410
1411 2013-06-12  Jan Hubicka  <jh@suse.cz>
1412
1413         * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
1414         * cgraph.h (varpool_create_empty_node): Declare.
1415         * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
1416         duplicated nodes.
1417         * symtab.c (symtab_unregister_node): Be lax about missin entries
1418         in node hash.
1419         (symtab_get_node): Update comment.
1420         * varpool.c (varpool_create_empty_node): Break out from ...
1421         (varpool_node_for_decl): ... here.
1422         * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
1423
1424 2013-06-12  Eric Botcazou  <ebotcazou@adacore.com>
1425
1426         * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
1427         <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
1428         part.  Use straight-line flow at the end.
1429         <COMPONENT_REF>: Remove superfluous else.
1430         <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
1431
1432 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
1433
1434         PR target/56564
1435         * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
1436         target hook even for !TREE_PUBLIC decls.  If no resolution info
1437         is available, return false for common and external decls.
1438
1439 2013-06-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
1440
1441         * config/rl78/constraints.md (U): New constraint.
1442         * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
1443         valloc attribute.
1444
1445 2013-06-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
1446
1447         PR target/57589
1448         * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
1449         to allow returning address to AT_PLATFORM name.
1450
1451 2013-06-11  Jan Hubicka  <jh@suse.cz>
1452
1453         * cgraph.c (cgraph_create_function_alias): Set weakref flag.
1454         * cgraph.h (symtab_node_base): Add weakref flag.
1455         * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
1456         (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
1457         (output_weakrefs): Use weakref flag.
1458         * fold-const.c (simple_operand_p): Handle WEAK.
1459         * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
1460         * ipa.c (varpool_externally_visible_p): Drop weakref.
1461         (function_and_variable_visibility): Update comment; fix weakref
1462         sanity checks; do not clear DECL_WEAK on them.
1463         * lto-cgraph.c (lto_output_node): update.
1464         (lto_output_varpool_node): Update.
1465         (input_overwrite_node): Update.
1466         (input_node): Update.
1467         (input_varpool_node): Update.
1468         * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
1469         (lto_symtab_merge_symbols): Add sanity check.
1470         (lto_symtab_prevailing_decl): Do not special case weakrefs.
1471         * passes.c (rest_of_decl_compilation): Set static flag, too.
1472         * symtab.c (dump_symtab_base): Dump weakref.
1473         (verify_symtab_base): Sanity check weakrefs.
1474         (symtab_make_decl_local): Remove duplicated code.
1475         (symtab_alias_ultimate_target): Simplify.
1476         * varpool.c (varpool_create_variable_alias): Set weakref flag.
1477
1478 2013-06-11  DJ Delorie  <dj@redhat.com>
1479
1480         * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
1481         (rl78_unwind_word_mode): New.
1482
1483 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
1484
1485         * final.c (debug_prefix_maps): Make static.
1486
1487 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
1488
1489         * function.c (initial_trampoline): Remove stray copy.
1490
1491 2013-06-11  Sofiane Naci  <sofiane.naci@arm.com>
1492
1493         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
1494
1495 2013-06-11  Martin Jambor  <mjambor@suse.cz>
1496
1497         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
1498         within bounds at the beginning of the function.
1499
1500 2013-06-11  Alan Modra  <amodra@gmail.com>
1501
1502         * varasm.c (get_section): Don't die on !DECL_P decl.  Tidy error
1503         reporting.
1504         (get_named_section): Don't NULL !DECL_P decl.
1505
1506 2013-06-11  Igor Zamyatin  <igor.zamyatin@intel.com>
1507
1508         * doc/invoke.texi (core-avx2): Document.
1509         (slm): Likewise.
1510         (atom): Updated with MOVBE.
1511
1512 2013-06-11  Richard Biener  <rguenther@suse.de>
1513
1514         * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
1515
1516 2013-06-11  Anton Blanchard  <anton@samba.org>
1517
1518         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
1519         correct shift value in little-endian mode.
1520
1521 2013-06-11  Jakub Jelinek  <jakub@redhat.com>
1522
1523         PR target/56564
1524         * varasm.c (get_variable_align): Move #endif to the right place.
1525
1526 2013-06-10  Cary Coutant  <ccoutant@google.com>
1527
1528         * dwarf2out.c (hash_external_ref): Use die_symbol or signature
1529         for hash so that hash table traversal order is deterministic.
1530
1531 2013-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
1532             Pat Haugen <pthaugen@us.ibm.com>
1533             Peter Bergner <bergner@vnet.ibm.com>
1534
1535         * config/rs6000/vector.md (GPR move splitter): Do not split moves
1536         of vectors in GPRS if they are direct moves or quad word load or
1537         store moves.
1538
1539         * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
1540         declaration.
1541         (direct_move_p): Likewise.
1542         (quad_load_store_p): Likewise.
1543
1544         * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
1545         classes into bins based on the physical register type.
1546         (reg_class_to_reg_type): Likewise.
1547         (IS_STD_REG_TYPE): Likewise.
1548         (IS_FP_VECT_REG_TYPE): Likewise.
1549         (reload_fpr_gpr): Arrays to determine what insn to use if we can
1550         use direct move instructions.
1551         (reload_gpr_vsx): Likewise.
1552         (reload_vsx_gpr): Likewise.
1553         (rs6000_init_hard_regno_mode_ok): Precalculate the register type
1554         information that is a simplification of register classes.  Also
1555         precalculate direct move reload helpers.
1556         (direct_move_p): New function to return true if the operation can
1557         be done as a direct move instruciton.
1558         (quad_load_store_p): New function to return true if the operation
1559         is a quad memory operation.
1560         (rs6000_legitimize_address): If quad memory, only allow register
1561         indirect for TImode addresses.
1562         (rs6000_legitimate_address_p): Likewise.
1563         (enum reload_reg_type): Delete, replace with rs6000_reg_type.
1564         (rs6000_reload_register_type): Likewise.
1565         (register_to_reg_type): Return register type.
1566         (rs6000_secondary_reload_simple_move): New helper function for
1567         secondary reload and secondary memory needed to identify anything
1568         that is a simple move, and does not need reloading.
1569         (rs6000_secondary_reload_direct_move): New helper function for
1570         secondary reload to identify cases that can be done with several
1571         instructions via the direct move instructions.
1572         (rs6000_secondary_reload_move): New helper function for secondary
1573         reload to identify moves between register types that can be done.
1574         (rs6000_secondary_reload): Add support for quad memory operations
1575         and for direct move.
1576         (rs6000_secondary_memory_needed): Likewise.
1577         (rs6000_debug_secondary_memory_needed): Change argument names.
1578         (rs6000_output_move_128bit): New function to return the move to
1579         use for 128-bit moves, including knowing about the various
1580         limitations of quad memory operations.
1581
1582         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
1583         memory operations.  call rs6000_output_move_128bit for the actual
1584         instruciton(s) to generate.
1585         (vsx_movti_64bit): Likewise.
1586
1587         * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
1588         (UNSPEC_P8V_MTVSRWZ): Likewise.
1589         (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
1590         (UNSPEC_P8V_MTVSRD): Likewise.
1591         (UNSPEC_P8V_XXPERMDI): Likewise.
1592         (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
1593         (UNSPEC_FUSION_GPR): Likewise.
1594         (FMOVE128_GPR): New iterator for direct move.
1595         (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
1596         (f32_sv): Likewise.
1597         (f32_dm): Likewise.
1598         (zero_extend<mode>di2_internal1): Add support for power8 32-bit
1599         loads and direct move instructions.
1600         (zero_extendsidi2_lfiwzx): Likewise.
1601         (extendsidi2_lfiwax): Likewise.
1602         (extendsidi2_nocell): Likewise.
1603         (floatsi<mode>2_lfiwax): Likewise.
1604         (lfiwax): Likewise.
1605         (floatunssi<mode>2_lfiwzx): Likewise.
1606         (lfiwzx): Likewise.
1607         (fix_trunc<mode>_stfiwx): Likewise.
1608         (fixuns_trunc<mode>_stfiwx): Likewise.
1609         (mov<mode>_hardfloat, 32-bit floating point): Likewise.
1610         (mov<move>_hardfloat64, 64-bit floating point): Likewise.
1611         (parity<mode>2_cmpb): Set length/type attr.
1612         (unnamed shift right patterns, mov<mode>_internal2): Change type attr
1613         for 'mr.' to fast_compare.
1614         (bpermd_<mode>): Change type attr to popcnt.
1615         (p8_fmrgow_<mode>): New insns for power8 direct move support.
1616         (p8_mtvsrwz_1): Likewise.
1617         (p8_mtvsrwz_2): Likewise.
1618         (reload_fpr_from_gpr<mode>): Likewise.
1619         (p8_mtvsrd_1): Likewise.
1620         (p8_mtvsrd_2): Likewise.
1621         (p8_xxpermdi_<mode>): Likewise.
1622         (reload_vsx_from_gpr<mode>): Likewise.
1623         (reload_vsx_from_gprsf): Likewise.
1624         (p8_mfvsrd_3_<mode>): LIkewise.
1625         (reload_gpr_from_vsx<mode>): Likewise.
1626         (reload_gpr_from_vsxsf): Likewise.
1627         (p8_mfvsrd_4_disf): Likewise.
1628         (multi-word GPR splits): Do not split direct moves or quad memory
1629         operations.
1630
1631 2013-06-10  David Malcolm  <dmalcolm@redhat.com>
1632
1633         * tree-into-ssa.c (interesting_blocks): Make static.
1634
1635 2013-06-10  Jakub Jelinek  <jakub@redhat.com>
1636
1637         PR target/56564
1638         * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
1639         CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
1640         Use DATA_ABI_ALIGNMENT for that case instead if defined.
1641         (get_variable_align): New function.
1642         (get_variable_section, emit_bss, emit_common,
1643         assemble_variable_contents, place_block_symbol): Use
1644         get_variable_align instead of DECL_ALIGN.
1645         (assemble_noswitch_variable): Add align argument, use it
1646         instead of DECL_ALIGN.
1647         (assemble_variable): Adjust caller.  Use get_variable_align
1648         instead of DECL_ALIGN.
1649         * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
1650         caller.
1651         (DATA_ABI_ALIGNMENT): Define.
1652         * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
1653         * config/i386/i386.c (x86_data_alignment): Add opt argument.  If
1654         opt is false, only return the psABI mandated alignment increase.
1655         * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
1656         (DATA_ABI_ALIGNMENT): ... this.
1657         * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
1658         (DATA_ABI_ALIGNMENT): ... this.
1659         * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
1660         * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
1661         (DATA_ABI_ALIGNMENT): ... this.
1662         * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
1663         * doc/tm.texi: Regenerated.
1664
1665 2013-06-10  Uros Bizjak  <ubizjak@gmail.com>
1666
1667         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
1668         cmp_code to construct REG_EQUAL note.
1669
1670 2013-06-09  Jakub Jelinek  <jakub@redhat.com>
1671
1672         PR target/57568
1673         * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
1674         that operands[2] doesn't overlap with operands[0].
1675
1676 2013-06-09  David Edelsohn  <dje.gcc@gmail.com>
1677             Jan Hubicka  <jh@suse.cz>
1678
1679         * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
1680         hack to mark symbols as used.
1681
1682 2013-06-08  Vladimir Makarov  <vmakarov@redhat.com>
1683
1684         PR rtl-optimization/57559
1685         * lra-constraints.c (process_alt_operands): Don't discourage
1686         memory with known offset for offsetable memory constraint.
1687         * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
1688
1689 2013-06-08  Eric Botcazou  <ebotcazou@adacore.com>
1690
1691         * varasm.c (struct oc_local_state): Reorder fields.
1692         (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
1693         and adjust accordingly.
1694         (output_constructor): Reorder initialization code and adjust call to
1695         output_constructor_bitfield.
1696
1697 2013-06-07  Jan Hubicka  <jh@suse.cz>
1698
1699         * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
1700
1701 2013-06-07  David Malcolm  <dmalcolm@redhat.com>
1702
1703         * tree-object-size.c (unknown): Make const.
1704
1705 2013-06-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1706
1707         * config/s390/s390.md (cpu_facility): Add cpu_zarch.
1708         ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
1709         for last alternative in the cpu_facility attribute.
1710
1711 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1712
1713         PR target/56315
1714         * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
1715         (xordi3): Change operand 2 constraint to arm_xordi_operand.
1716         * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
1717         * config/arm/constraints.md (Dg): New constraint.
1718         * config/arm/neon.md (xordi3_neon): Remove.
1719         (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
1720         * config/arm/predicates.md (arm_xordi_operand): New predicate.
1721
1722 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1723
1724         * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
1725         Clean up alternatives.
1726
1727 2013-06-07  Alan Modra  <amodra@gmail.com>
1728
1729         * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
1730         va_list_gpr_size.
1731
1732 2013-06-07  Alan Modra  <amodra@gmail.com>
1733
1734         * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
1735
1736 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1737
1738         * config/arm/constraints.md (Df): New constraint.
1739         * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
1740         Correct length attribute for last two alternatives.
1741
1742 2013-06-07  Alan Modra  <amodra@gmail.com>
1743
1744         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
1745         override user -mfp-in-toc.
1746         (offsettable_ok_by_alignment): Consider just the current access
1747         rather than the whole object, unless BLKmode.  Handle
1748         CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
1749         (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
1750         for -mcmodel=medium.
1751         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
1752         override user -mfp-in-toc or -msum-in-toc.  Default to
1753         -mno-fp-in-toc for -mcmodel=medium.
1754
1755 2013-06-06  DJ Delorie  <dj@redhat.com>
1756
1757         * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
1758         TARGET_VALID_POINTER_MODE.
1759
1760 2013-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
1761             Pat Haugen <pthaugen@us.ibm.com>
1762             Peter Bergner <bergner@vnet.ibm.com>
1763
1764         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
1765         Document new power8 builtins.
1766
1767         * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
1768         condition code register, to allow 128-bit logical operations to be
1769         done in the VSX or GPR registers.
1770         (nor<mode>3): Use the canonical form for nor.
1771         (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
1772         vclz*, and vpopcnt* vector instructions.
1773         (nand<mode>3): Likewise.
1774         (orc<mode>3): Likewise.
1775         (clz<mode>2): LIkewise.
1776         (popcount<mode>2): Likewise.
1777
1778         * config/rs6000/predicates.md (int_reg_operand): Rework tests so
1779         that only the GPRs are recognized.
1780
1781         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1782         support for new power8 builtins.
1783
1784         * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
1785         builtin functions.
1786         (xscvdpspn): Likewise.
1787         (vclz): Likewise.
1788         (vclzb): Likewise.
1789         (vclzh): Likewise.
1790         (vclzw): Likewise.
1791         (vclzd): Likewise.
1792         (vpopcnt): Likewise.
1793         (vpopcntb): Likewise.
1794         (vpopcnth): Likewise.
1795         (vpopcntw): Likewise.
1796         (vpopcntd): Likewise.
1797         (vgbbd): Likewise.
1798         (vmrgew): Likewise.
1799         (vmrgow): Likewise.
1800         (eqv): Likewise.
1801         (eqv_v16qi3): Likewise.
1802         (eqv_v8hi3): Likewise.
1803         (eqv_v4si3): Likewise.
1804         (eqv_v2di3): Likewise.
1805         (eqv_v4sf3): Likewise.
1806         (eqv_v2df3): Likewise.
1807         (nand): Likewise.
1808         (nand_v16qi3): Likewise.
1809         (nand_v8hi3): Likewise.
1810         (nand_v4si3): Likewise.
1811         (nand_v2di3): Likewise.
1812         (nand_v4sf3): Likewise.
1813         (nand_v2df3): Likewise.
1814         (orc): Likewise.
1815         (orc_v16qi3): Likewise.
1816         (orc_v8hi3): Likewise.
1817         (orc_v4si3): Likewise.
1818         (orc_v2di3): Likewise.
1819         (orc_v4sf3): Likewise.
1820         (orc_v2df3): Likewise.
1821
1822         * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
1823         allow power8 quad mode in 64-bit.
1824         (rs6000_builtin_vectorized_function): Add support to vectorize
1825         ISA 2.07 count leading zeros, population count builtins.
1826         (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
1827         V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
1828         (builtin_function_type): Add vgbbd builtin function which takes an
1829         unsigned argument.
1830         (altivec_expand_vec_perm_const): Add support for new power8 merge
1831         instructions.
1832
1833         * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
1834         that does not include TImdoe for use with 32-bit.
1835         (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
1836         instructions.
1837         (UNSPEC_VSX_CVDPSPN): Likewise.
1838         (vsx_xscvdpspn): Likewise.
1839         (vsx_xscvspdpn): Likewise.
1840         (vsx_xscvdpspn_scalar): Likewise.
1841         (vsx_xscvspdpn_directmove): Likewise.
1842         (vsx_and<mode>3): Split logical operations into 32-bit and
1843         64-bit. Add support to do logical operations on TImode as well as
1844         VSX vector types.  Allow logical operations to be done in either
1845         VSX registers or in general purpose registers in 64-bit mode.  Add
1846         splitters if GPRs were used. For AND, add clobber of CCmode to
1847         allow use of ANDI on GPRs.  Rewrite nor to use the canonical RTL
1848         encoding.
1849         (vsx_and<mode>3_32bit): Likewise.
1850         (vsx_and<mode>3_64bit): Likewise.
1851         (vsx_ior<mode>3): Likewise.
1852         (vsx_ior<mode>3_32bit): Likewise.
1853         (vsx_ior<mode>3_64bit): Likewise.
1854         (vsx_xor<mode>3): Likewise.
1855         (vsx_xor<mode>3_32bit): Likewise.
1856         (vsx_xor<mode>3_64bit): Likewise.
1857         (vsx_one_cmpl<mode>2): Likewise.
1858         (vsx_one_cmpl<mode>2_32bit): Likewise.
1859         (vsx_one_cmpl<mode>2_64bit): Likewise.
1860         (vsx_nor<mode>3): Likewise.
1861         (vsx_nor<mode>3_32bit): Likewise.
1862         (vsx_nor<mode>3_64bit): Likewise.
1863         (vsx_andc<mode>3): Likewise.
1864         (vsx_andc<mode>3_32bit): Likewise.
1865         (vsx_andc<mode>3_64bit): Likewise.
1866         (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
1867         and xxlorc instructions.
1868         (vsx_eqv<mode>3_64bit): Likewise.
1869         (vsx_nand<mode>3_32bit): Likewise.
1870         (vsx_nand<mode>3_64bit): Likewise.
1871         (vsx_orc<mode>3_32bit): Likewise.
1872         (vsx_orc<mode>3_64bit): Likewise.
1873
1874         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
1875
1876         * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
1877         instruction.
1878         (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
1879         (p8_vmrgow): Likewise.
1880         (altivec_and<mode>3): Add clobber of CCmode to allow AND using
1881         GPRs to be split under VSX.
1882         (p8v_clz<mode>2): Add power8 count leading zero support.
1883         (p8v_popcount<mode>2): Add power8 population count support.
1884         (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
1885         support.
1886
1887         * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
1888         instruction.
1889
1890         * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
1891         builtin functions.
1892         (vec_nand): Likewise.
1893         (vec_vclz): Likewise.
1894         (vec_vclzb): Likewise.
1895         (vec_vclzd): Likewise.
1896         (vec_vclzh): Likewise.
1897         (vec_vclzw): Likewise.
1898         (vec_vgbbd): Likewise.
1899         (vec_vmrgew): Likewise.
1900         (vec_vmrgow): Likewise.
1901         (vec_vpopcnt): Likewise.
1902         (vec_vpopcntb): Likewise.
1903         (vec_vpopcntd): Likewise.
1904         (vec_vpopcnth): Likewise.
1905         (vec_vpopcntw): Likewise.
1906
1907 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
1908
1909         PR rtl-optimization/57468
1910         * config/i386/i386.c (inline_secondary_memory_needed): Ignore
1911         spilled pseudos.
1912
1913 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
1914
1915         PR rtl-optimization/57459
1916         * lra-constraints.c (update_ebb_live_info): Fix typo for operand
1917         type when setting live regs.
1918
1919 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
1920
1921         * config/s390/s390.opt (mlra): New option.
1922         * config/s390/s390.c (s390_decompose_address): Check displacement
1923         for all registers for LRA.
1924         (s390_secondary_reload): Don't used secondary reloads for LRA.
1925         (s390_lra_p): New function.
1926         (TARGET_LRA_P): Define.
1927         * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
1928         of attribute cpu_facility to zarch for the last alternative.
1929         (*cmpmem_short): Ditto.
1930
1931 2013-06-06  Eric Botcazou  <ebotcazou@adacore.com>
1932
1933         * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
1934         (arm_compute_static_chain_stack_bytes): Use it.  Tidy up.
1935         (arm_expand_prologue): Likewise.
1936
1937 2013-06-06  Teresa Johnson  <tejohnson@google.com>
1938
1939         PR c++/53743
1940         * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
1941         as this is now done by redirect_edge_and_branch_force.
1942         * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
1943         barriers, and fix interaction with splitting.
1944         * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
1945         * cfgcleanup.c (try_forward_edges): Fix early return value to properly
1946         reflect changes made in the routine.
1947         * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
1948         (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
1949         since this is called in cfglayout mode, and replace partition fixup
1950         with assert as that is now done by force_nonfallthru_and_redirect.
1951         (add_reg_crossing_jump_notes): Handle the fact that some jumps may
1952         already be marked with region crossing note.
1953         (insert_section_boundary_note): Make non-static, gate on flag
1954         has_bb_partition, rewrite to also check for multiple partitions.
1955         (rest_of_handle_reorder_blocks): Remove call to
1956         insert_section_boundary_note, now done later during free_cfg.
1957         (duplicate_computed_gotos): Don't duplicate partition crossing edge.
1958         * bb-reorder.h (insert_section_boundary_note): Declare.
1959         * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
1960         * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
1961         invoke insert_section_boundary_note.
1962         (try_redirect_by_replacing_jump): Remove unnecessary
1963         check for region crossing note.
1964         (fixup_partition_crossing): New function.
1965         (rtl_redirect_edge_and_branch): Fixup partition boundaries.
1966         (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
1967         in non-cfglayout mode.
1968         (force_nonfallthru_and_redirect): Fixup partition boundaries,
1969         remove old code that tried to do this. Emit barrier correctly
1970         when we are in cfglayout mode.
1971         (last_bb_in_partition): New function.
1972         (rtl_split_edge): Correctly fixup partition boundaries.
1973         (commit_one_edge_insertion): Remove old code that tried to
1974         fixup region crossing edge since this is now handled in
1975         split_block, and set up insertion point correctly since
1976         block may now end in a jump.
1977         (verify_hot_cold_block_grouping): Guard against checking when not in
1978         linearized RTL mode.
1979         (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
1980         notes.
1981         (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
1982         rtl_verify_flow_info, so not called in cfglayout mode.
1983         (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
1984         (fixup_reorder_chain): Remove old code that attempted to fixup region
1985         crossing note as this is now handled in force_nonfallthru_and_redirect.
1986         (duplicate_insn_chain): Don't duplicate switch section notes.
1987         (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
1988         note.
1989         * basic-block.h (emit_barrier_after_bb): Declare.
1990
1991 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1992
1993         * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
1994         sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
1995         arm_usatsihi): Adjust alternatives for arm_restrict_it.
1996
1997 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1998
1999         * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
2000         where appropriate.
2001         * config/arm/ldmstm.md: Regenerate.
2002
2003 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2004
2005         * config/arm/sync.md (atomic_loaddi_1):
2006         Disable predication for arm_restrict_it.
2007         (arm_load_exclusive<mode>): Likewise.
2008         (arm_load_exclusivesi): Likewise.
2009         (arm_load_exclusivedi): Likewise.
2010         (arm_load_acquire_exclusive<mode>): Likewise.
2011         (arm_load_acquire_exclusivesi): Likewise.
2012         (arm_load_acquire_exclusivedi): Likewise.
2013         (arm_store_exclusive<mode>): Likewise.
2014         (arm_store_exclusive<mode>): Likewise.
2015         (arm_store_release_exclusivedi): Likewise.
2016         (arm_store_release_exclusive<mode>): Likewise.
2017
2018 2013-06-06  Richard Biener  <rguenther@suse.de>
2019
2020         * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
2021         after LTO_null.
2022         (lto_tag_is_tree_code_p): Adjust.
2023         (lto_tag_is_gimple_code_p): Likewise.
2024         (lto_gimple_code_to_tag): Likewise.
2025         (lto_tag_to_gimple_code): Likewise.
2026         (lto_tree_code_to_tag): Likewise.
2027         (lto_tag_to_tree_code): Likewise.
2028         * data-streamer.h (streamer_write_hwi_in_range): Use
2029         uhwi streaming to stream the normalized range.
2030         (streamer_read_hwi_in_range): Likewise.
2031
2032 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2033
2034         * config/arm/arm.md (enabled_for_depr_it): New attribute.
2035         (predicable_short_it): Likewise.
2036         (predicated): Likewise.
2037         (enabled): Handle above.
2038         (define_cond_exec): Set predicated attribute to yes.
2039
2040 2013-06-05  Mike Stump  <mikestump@comcast.net>
2041
2042         * gdbinit.in (__FUNCTION__): Add.
2043
2044 2013-06-05  Uros Bizjak  <ubizjak@gmail.com>
2045
2046         * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
2047         GE, GT, GEU and GTU compares, modulo DImode compares with zero.
2048
2049 2013-06-05  Jan Hubicka  <jh@suse.cz>
2050
2051         * varasm.c (mark_decl_referenced): Revert the removal until targets
2052         are fixed.
2053
2054 2013-06-05  David Edelsohn  <dje.gcc@gmail.com>
2055
2056         * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
2057         instead of mark_decl_referenced.
2058
2059 2013-06-05  Jan Hubicka  <jh@suse.cz>
2060
2061         * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
2062         (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
2063         and symtab_used_from_object_file_p.
2064         (cgraph_make_node_local_1): Clear forced_by_abi.
2065         (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
2066         * cgraph.h (symtab_node_base): Add forced_by_abi.
2067         (decide_is_variable_needed): Remove.
2068         (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
2069         * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
2070         (decide_is_symbol_needed): ... this one; handle symbols in general;
2071         always analyze virtuals; honnor forced_by_abi.
2072         (cgraph_finalize_function): Update.
2073         (varpool_finalize_decl): Update.
2074         (symbol_defined_and_needed): Remove.
2075         (analyze_functions): Update.
2076         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
2077         output_refs, input_overwrite_node): Handle forced_by_abi.
2078         * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
2079         (address_taken_from_non_vtable_p): ... this one.
2080         (comdat_can_be_unshared_p_1): New function.
2081         (cgraph_comdat_can_be_unshared_p): Rename to ...
2082         (comdat_can_be_unshared_p): ... this one; handle symbols in general.
2083         (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
2084         (function_and_variable_visibility): Clear forced_by_abi as needed.
2085         * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
2086         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
2087         * symtab.c (dump_symtab_base): Dump forced_by_abi.
2088         * varpool.c (decide_is_variable_needed): Remove.
2089
2090 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2091
2092         * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
2093         (arm_option_override): Override arm_restrict_it where appropriate.
2094         (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
2095         * config/arm/arm.opt (mrestrict-it): New command-line option.
2096         * doc/invoke.texi: Document -mrestrict-it.
2097
2098 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
2099
2100         * tsan.c (tsan_atomic_table): Make const.
2101
2102 2013-06-05  Richard Biener  <rguenther@suse.de>
2103
2104         * tree-streamer.c (streamer_tree_cache_insert_1): Update the
2105         index associated with the tree we are supposed to replace.
2106         * tree-streamer-out.c (pack_ts_base_value_fields): Output
2107         TREE_ASM_WRITTEN as zero for everything but SSA names.
2108
2109 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
2110
2111         * tree-ssa-structalias.c (call_stmt_vars): Make static.
2112
2113 2013-06-04  Jan Hubicka  <jh@suse.cz>
2114
2115         * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
2116         (input_node, input_varpool_node): Handle correctly external same
2117         body aliases.
2118         * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
2119         nodes at ltrans stage.
2120
2121 2013-06-04  Jan Hubicka  <jh@suse.cz>
2122
2123         * ipa-inline.c (update_caller_keys): Fix availability test.
2124         (update_callee_keys): Likewise.
2125         * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
2126         to follow ELF standard.
2127
2128 2013-06-04  Jürgen Urban  <JuergenUrban@gmx.de>
2129
2130         * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
2131         (mips64r5900el-*-elf*): New configurations.
2132         * config/mips/mips-cpus.def (r5900): New processor.
2133         * config/mips/mips-tables.opt: Regenerate.
2134         * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
2135         (mips_issue_rate): Handle PROCESSOR_R5900.
2136         (mips_reorg_process_insns): Force reorder mode for the R5900.
2137         * config/mips/mips.h (TARGET_MIPS5900): Define.
2138         (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
2139         TARGET_MIPS5900.
2140         (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
2141         TARGET_MIPS5900.
2142         * config/mips/mips.md (processor): Add r5900.
2143         (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
2144
2145 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
2146
2147         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
2148         into function to generate MOVI instruction.
2149         * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
2150         (aarch64_preferred_simd_mode): Turn into wrapper.
2151         (aarch64_output_scalar_simd_mov_immediate): New function.
2152         * config/aarch64/aarch64-protos.h: Add prototype for above.
2153
2154 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
2155
2156         * config/aarch64/aarch64.c (simd_immediate_info): Remove
2157         element_char member.
2158         (sizetochar): Return signed char.
2159         (aarch64_simd_valid_immediate): Remove elchar and other
2160         unnecessary variables.
2161         (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
2162         Calculate element_char as required.
2163         * config/aarch64/aarch64-protos.h: Update and move prototype
2164         for aarch64_output_simd_mov_immediate.
2165         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
2166         Update arguments.
2167
2168 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
2169
2170         * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
2171         information completed by aarch64_simd_valid_immediate.
2172         (aarch64_legitimate_constant_p): Update arguments.
2173         (aarch64_simd_valid_immediate): Work with struct rather than many
2174         pointers.
2175         (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
2176         (aarch64_simd_make_constant): Update arguments.
2177         (aarch64_output_simd_mov_immediate): Work with struct rather than
2178         many pointers.  Output immediate directly rather than as operand.
2179         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
2180         Update prototype.
2181         * config/aarch64/constraints.md (Dn): Update arguments.
2182
2183 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
2184
2185         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
2186         longer static.
2187         (aarch64_simd_immediate_valid_for_move): Remove.
2188         (aarch64_simd_scalar_immediate_valid_for_move): Update call.
2189         (aarch64_simd_make_constant): Update call.
2190         (aarch64_output_simd_mov_immediate): Update call.
2191         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
2192         Add prototype.
2193         * config/aarch64/constraints.md (Dn): Update call.
2194
2195 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
2196
2197         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
2198         return type to bool for prototype.
2199         (aarch64_legitimate_constant_p): Check for true instead of not -1.
2200         (aarch64_simd_valid_immediate): Fix up each return to return a bool.
2201         (aarch64_simd_immediate_valid_for_move): Update retval for bool.
2202
2203 2013-06-04  Catherine Moore  <clm@codesourcery.com>
2204
2205         * config/mips/mips.opt (meva): New.
2206         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
2207         (ASM_SPEC): Handle -meva.
2208         * doc/invoke.texi (meva):  Document.
2209
2210 2013-06-04  Alan Modra  <amodra@gmail.com>
2211
2212         * config/rs6000/rs6000.c (output_toc): Correct little-endian float
2213         constant output.
2214
2215 2013-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2216
2217         * rtl.def: Add extra fourth optional field to define_cond_exec.
2218         * gensupport.c (process_one_cond_exec): Process attributes from
2219         define_cond_exec.
2220         * doc/md.texi: Document fourth field in define_cond_exec.
2221
2222 2013-06-04  Eric Botcazou  <ebotcazou@adacore.com>
2223
2224         * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
2225         out the processing order as in store_bit_field_1.
2226
2227 2013-06-04  Jan Hubicka  <jh@suse.cz>
2228
2229         PR middle-end/57500
2230         * cgraphunit.c (cgraph_process_same_body_aliases): Create
2231         non-VAR_DECL node if it does not exist yet.
2232
2233 2013-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
2234
2235         * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
2236         (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
2237         (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
2238         target_cpu_default setting.
2239
2240 2013-06-03  Teresa Johnson  <tejohnson@google.com>
2241
2242         * dumpfile.c (opt_info_switch_p): Change -fopt-info
2243         default to -fopt-info=optimized instead of all.
2244         * doc/invoke.texi: Ditto.
2245         * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
2246         success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
2247         (execute_vect_slp): Emit BB vectorization success under
2248         MSG_OPTIMIZED_LOCATIONS.
2249         * tree-vect-slp.c (vect_slp_transform_bb): Change
2250         MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
2251         * tree-vect-loop.c (vect_transform_loop): Ditto.
2252
2253 2013-06-03  Jason Merrill  <jason@redhat.com>
2254
2255         PR c++/57415
2256         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2257         Use TARGET_EXPR for C++.
2258
2259 2013-06-03  Jakub Jelinek  <jakub@redhat.com>
2260
2261         PR rtl-optimization/57268
2262         * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
2263         if DEBUG_INSN_P (insn).
2264
2265         Reapply
2266         2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
2267
2268         PR rtl-optimization/57268
2269         * sched-deps.c (sched_analyze_2): Flush dependence lists if
2270         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2271
2272 2013-06-03  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
2273
2274         * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
2275         (ix86_avoid_lea_for_addr): Likewise.
2276         (exact_dependency_1): Likewise.
2277         (ix86_adjust_cost): Likewise.
2278         (swap_top_of_ready_list): Fix formatting and !reload_completed check
2279         removed.
2280         (do_reorder_for_imul): Fix typo, formatting and
2281         !reload_completed check removed.
2282         (ix86_sched_reorder): Fix typo and formatting.
2283         (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
2284         list.
2285
2286 2013-06-03  Sofiane Naci  <sofiane.naci@arm.com>
2287
2288         * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
2289
2290 2013-06-03  Eric Botcazou  <ebotcazou@adacore.com>
2291
2292         * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
2293         <STRING_CST>: Likewise.
2294         <VECTOR_CST>: Likewise.
2295
2296 2013-06-01  Janus Weil  <janus@gcc.gnu.org>
2297             Mikael Morin  <mikael@gcc.gnu.org>
2298
2299         * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
2300         * config.in: Regenerated.
2301         * configure: Regenerated.
2302
2303 2013-06-01  Jan Hubicka  <jh@suse.cz>
2304
2305         PR middle-end/57366
2306         * cgraphunit.c (compile): When weakref is not supported,
2307         set up transparent aliases before final output pass.
2308         * varasm.c (assemble_alias): Do not try to do it here.
2309
2310 2013-06-01  Jan Hubicka  <jh@suse.cz>
2311
2312         PR middle-end/57467
2313         * passes.c (for_per_function): Skip unanalyzed functions.
2314
2315 2013-06-01  Jan Hubicka  <jh@suse.cz>
2316
2317         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
2318         (lto_symtab_merge_symbols_1): ... this one.
2319         (lto_symtab_merge_cgraph_nodes): Rename to ...
2320         (lto_symtab_merge_symbols): ... this one; simplify.
2321         * cgraph.c (same_body_aliases_done): Rename to ...
2322         (cpp_implicit_aliases_done): ... this one.
2323         (cgraph_create_function_alias): Update.
2324         (cgraph_same_body_alias): Update.
2325         (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
2326         (verify_edge_corresponds_to_fndecl): Simplify.
2327         * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
2328         (cgraph_node): Remove same_body_alias.
2329         (varpool_node): Remove alias_of and extra_name_alias.
2330         (same_body_aliases_done): Rename to ..
2331         (cpp_implicit_aliases_done): ... this one.
2332         (symtab_alias_ultimate_target): Add default parameter.
2333         (symtab_resolve_alias): New function.
2334         (fixup_same_cpp_alias_visibility): Declare.
2335         (cgraph_function_node): Add default parameter.
2336         (cgraph_node_asm_name): Likewise.
2337         (cgraph_function_or_thunk_node): Add default parameter; do
2338         not ICE when it is NULL.
2339         (varpool_variable_node): Likewise.
2340         * tree-emutls.c (create_emultls_var): Update.
2341         (ipa_lower_emutls): Update.
2342         * cgraphunit.c (cgraph_decide_is_function_needed): Update.
2343         (cgraph_reset_node): Reset alias info.
2344         (cgraph_finalize_function): Update.
2345         (fixup_same_cpp_alias_visibility): Move to symtab.c.
2346         (analyze_function): Simplify.
2347         (cgraph_process_same_body_aliases): Simplify.
2348         (analyze_functions): Fixup same body aliases.
2349         (handle_alias_pairs): Simplify.
2350         (assemble_thunk): Update.
2351         (assemble_thunks_and_aliases): Update.
2352         (output_weakrefs): Rewrite.
2353         * lto-cgraph.c (lto_output_node): Rewrite alias handling.
2354         (lto_output_varpool_node): Likewise.
2355         (compute_ltrans_boundary): Remve assert.
2356         (get_alias_symbol): New functoin.
2357         (input_node): Rewrite alias handling.
2358         (input_varpool_node): Likewise.
2359         * ipa-pure-const.c (propagate_pure_const): Fix formating.
2360         * ipa.c (process_references): Handle weakrefs correctly.
2361         (symtab_remove_unreachable_nodes): Likewise.
2362         * trans-mem.c (get_cg_data): Update.
2363         (ipa_tm_create_version_alias): Update.
2364         (ipa_tm_execute): Update.
2365         * symtab.c (dump_symtab_base): Dump aliases.
2366         (verify_symtab_base): Verify aliases.
2367         (symtab_node_availability): New function.
2368         (symtab_alias_ultimate_target): Simplify.
2369         (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
2370         handle all the fixup cases.
2371         (symtab_resolve_alias): New function.
2372         * passes.c (ipa_write_summaries): Handle weakrefs.
2373         * varpool.c (varpool_analyze_node): Simplify.
2374         (assemble_aliases): Update.
2375         (varpool_create_variable_alias): Simplify.
2376         (varpool_extra_name_alias): Simplify.
2377         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
2378         (lto_symtab_merge_symbols): ... this one.
2379
2380 2013-06-01  Dinar Temirbulatov  <dinar@kugelworks.com>
2381
2382         Revert
2383         PR rtl-optimization/57268
2384         * sched-deps.c (sched_analyze_2): Flush dependence lists if
2385         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2386
2387 2013-06-01  Tobias Burnus  <burnus@net-b.de>
2388
2389         Partially reverted:
2390         2013-05-31  Tobias Burnus  <burnus@net-b.de>
2391
2392         PR middle-end/57073
2393         * tree-ssa-math-opts.c (execute_cse_sincos): Move check
2394         further up.
2395
2396 2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
2397
2398         PR rtl-optimization/57268
2399         * sched-deps.c (sched_analyze_2): Flush dependence lists if
2400         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2401
2402 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
2403
2404         * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
2405         unordered comparison operators when -fno-trapping-math is in effect
2406         on the e500.
2407         * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
2408         and implement unordered comparison operators properly on the e500.
2409
2410 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
2411
2412         * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
2413         for constant scalar integers.
2414         (simplify_relational_operation_1): Likewise.
2415
2416 2013-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
2417
2418         * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
2419         * config/rs6000/rs6000.md (cpu): Reorder.  Split long line.
2420         Fix comment.
2421
2422 2013-05-31  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
2423             Igor Zamyatin  <igor.zamyatin@intel.com>
2424
2425         Silvermont (SLM) architecture performance tuning.
2426         * config/i386/i386.h (enum ix86_tune_indices): Add
2427         X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
2428         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
2429
2430         * config/i386/i386.c (initial_ix86_tune_features)
2431         <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
2432         (ix86_lea_outperforms): Handle Silvermont tuning.
2433         (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
2434         call.
2435         (ix86_use_lea_for_mov): Likewise.
2436         (ix86_avoid_lea_for_addr): Likewise.
2437         (ix86_lea_for_add_ok): Likewise.
2438         (exact_dependency_1): New function.
2439         (exact_store_load_dependency): Likewise.
2440         (ix86_adjust_cost): Handle Silvermont tuning.
2441         (do_reoder_for_imul): Likewise.
2442         (swap_top_of_ready_list): New function.
2443         (ix86_sched_reorder): Changed to handle Silvermont tuning.
2444
2445         * config/i386/i386.md (peepholes that split memory operand in fp
2446         converts): New.
2447
2448 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2449
2450         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2451         Remove un-necessary braces.
2452
2453 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2454
2455         * config/aarch64/aarch64.c (aarch64_classify_symbol):
2456         Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
2457
2458 2013-05-31  Tobias Burnus  <burnus@net-b.de>
2459
2460         PR middle-end/57073
2461         * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
2462
2463 2013-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2464
2465         PR target/56315
2466         * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
2467         * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
2468         * config/arm/neon.md (iordi3_neon): Remove.
2469         (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
2470         * config/arm/predicates.md (imm_for_neon_logic_operand):
2471         Move to earlier in the file.
2472         (neon_logic_op2): Likewise.
2473         (arm_iordi_operand_neon): New predicate.
2474
2475 2013-05-31  Richard Biener  <rguenther@suse.de>
2476
2477         PR tree-optimization/57478
2478         PR tree-optimization/57453
2479         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
2480         are life as well.
2481
2482 2013-05-31  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
2483
2484         * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
2485         (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
2486
2487 2013-05-30  Tobias Burnus  <burnus@net-b.de>
2488             Thomas Koenig  <tkoenig@gcc.gnu.org>
2489
2490         PR middle-end/57073
2491         * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
2492         powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
2493
2494 2013-05-30  Steven Bosscher  <steven@gcc.gnu.org>
2495
2496         * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
2497
2498 2013-05-30  Vladimir Makarov  <vmakarov@redhat.com>
2499
2500         * target.def (register_usage_leveling_p): New hook.
2501         * targhooks.c (default_register_usage_leveling_p): New.
2502         * targhooks.h (default_register_usage_leveling_p): New prototype.
2503         * lra-assigns.c (register_usage_leveling_p): Use the hook.
2504         * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
2505         * doc/tm.texi: Update.
2506         * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
2507
2508 2013-05-30  Ian Bolton  <ian.bolton@arm.com>
2509
2510         * config/aarch64/aarch64.md (insv<mode>): New define_expand.
2511         (*insv_reg<mode>): New define_insn.
2512
2513 2013-05-30  Joern Rennecke <joern.rennecke@embecosm.com>
2514
2515         PR rtl-optimization/57439
2516         * postreload.c (move2add_valid_value_p): Check that we have
2517         a zero subreg_regno_offset when accessing the register in
2518         the requested mode.
2519
2520 2013-05-30  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
2521             Igor Zamyatin  <igor.zamyatin@intel.com>
2522
2523         Silvermont (SLM) architecture pipeline model, tuning and
2524         insn selection.
2525         * config.gcc: Add slm config options and target.
2526
2527         * config/i386/slm.md: New.
2528
2529         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
2530
2531         * gcc/config/i386/i386-c.c (ix86_target_macros_internal):  New case
2532         PROCESSOR_SLM.
2533         (ix86_target_macros_internal): Likewise.
2534
2535         * gcc/config/i386/i386.c (slm_cost): New cost.
2536         (m_SLM): New macro flag.
2537         (initial_ix86_tune_features): Set m_SLM.
2538         (x86_accumulate_outgoing_args): Likewise.
2539         (x86_arch_always_fancy_math_387): Likewise.
2540         (processor_target_table): Add slm cost.
2541         (cpu_names): Add slm cpu name.
2542         (x86_option_override_internal): Set SLM ISA.
2543         (ix86_issue_rate): New case PROCESSOR_SLM.
2544         (ia32_multipass_dfa_lookahead): Likewise.
2545         (fold_builtin_cpu): Add slm.
2546
2547         * config/i386/i386.h (TARGET_SLM): New target macro.
2548         (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
2549         (processor_type): Add PROCESSOR_SLM.
2550
2551         * config/i386/i386.md (cpu): Add new value "slm".
2552         (slm.md): Include slm.md.
2553
2554 2013-05-30  Bernd Schmidt  <bernds@codesourcery.com>
2555             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
2556
2557         * config/arm/arm-protos.h: Add and update function protos.
2558         * config/arm/arm.c (use_simple_return_p): New added.
2559         (thumb2_expand_return): Check simple_return flag.
2560         * config/arm/arm.md: Add simple_return and conditional simple_return.
2561         * config/arm/iterators.md: Add iterator for return and simple_return.
2562
2563 2013-05-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
2564
2565         * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
2566         (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
2567         (arm_emit_vfp_multi_reg_pop): Likewise.
2568         (thumb2_emit_ldrd_pop): Likewise.
2569         (arm_expand_epilogue): Add misc REG_CFA notes.
2570         (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
2571
2572 2013-05-29  Lawrence Crowl  <crowl@google.com>
2573
2574         * config/arm/t-arm: Update for below.
2575
2576         * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
2577         Change type to hash_table.  Update dependent calls and types.
2578
2579         * config/i386/t-cygming: Update for below.
2580
2581         * config/i386/t-interix: Update for below.
2582
2583         * config/i386/winnt.c (i386_pe_section_type_flags::htab):
2584         Change type to hash_table.  Update dependent calls and types.
2585         (i386_find_on_wrapper_list::wrappers): Likewise.
2586
2587         * config/ia64/t-ia64: Update for below.
2588
2589         * config/ia64/ia64.c (bundle_state_table):
2590         Change type to hash_table.  Update dependent calls and types.
2591
2592         * config/mips/mips.c (mips_reorg_process_insns::htab):
2593         Change type to hash_table.  Update dependent calls and types.
2594
2595         * config/sol2.c (solaris_comdat_htab):
2596         Change type to hash_table.  Update dependent calls and types.
2597
2598         * config/t-sol2: Update for above.
2599
2600 2013-05-29  Teresa Johnson  <tejohnson@google.com>
2601
2602         * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
2603         functions are not yet marked as defined.
2604
2605 2013-05-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
2606             Pat Haugen <pthaugen@us.ibm.com>
2607             Peter Bergner <bergner@vnet.ibm.com>
2608
2609         * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
2610         instructions.
2611         (VEC_A): Likewise.
2612         (VEC_C): Likewise.
2613         (vrotl<mode>3): Likewise.
2614         (vashl<mode>3): Likewise.
2615         (vlshr<mode>3): Likewise.
2616         (vashr<mode>3): Likewise.
2617
2618         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2619         support for power8 V2DI builtins.
2620
2621         * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
2622         power8 V2DI builtins.
2623         (vupkhsw): Likewise.
2624         (vupklsw): Likewise.
2625         (vaddudm): Likewise.
2626         (vminsd): Likewise.
2627         (vmaxsd): Likewise.
2628         (vminud): Likewise.
2629         (vmaxud): Likewise.
2630         (vpkudum): Likewise.
2631         (vpksdss): Likewise.
2632         (vpkudus): Likewise.
2633         (vpksdus): Likewise.
2634         (vrld): Likewise.
2635         (vsld): Likewise.
2636         (vsrd): Likewise.
2637         (vsrad): Likewise.
2638         (vsubudm): Likewise.
2639         (vcmpequd): Likewise.
2640         (vcmpgtsd): Likewise.
2641         (vcmpgtud): Likewise.
2642         (vcmpequd_p): Likewise.
2643         (vcmpgtsd_p): Likewise.
2644         (vcmpgtud_p): Likewise.
2645         (vupkhsw): Likewise.
2646         (vupklsw): Likewise.
2647         (vaddudm): Likewise.
2648         (vmaxsd): Likewise.
2649         (vmaxud): Likewise.
2650         (vminsd): Likewise.
2651         (vminud): Likewise.
2652         (vpksdss): Likewise.
2653         (vpksdus): Likewise.
2654         (vpkudum): Likewise.
2655         (vpkudus): Likewise.
2656         (vrld): Likewise.
2657         (vsld): Likewise.
2658         (vsrad): Likewise.
2659         (vsrd): Likewise.
2660         (vsubudm): Likewise.
2661
2662         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
2663         support for power8 V2DI instructions.
2664
2665         * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
2666         power8 V2DI instructions.  Combine pack and unpack insns to use an
2667         iterator for each mode.  Check whether a particular mode supports
2668         Altivec instructions instead of just checking TARGET_ALTIVEC.
2669         (UNSPEC_VPKUWUM): Likewise.
2670         (UNSPEC_VPKSHSS): Likewise.
2671         (UNSPEC_VPKSWSS): Likewise.
2672         (UNSPEC_VPKUHUS): Likewise.
2673         (UNSPEC_VPKSHUS): Likewise.
2674         (UNSPEC_VPKUWUS): Likewise.
2675         (UNSPEC_VPKSWUS): Likewise.
2676         (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
2677         (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
2678         (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
2679         (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
2680         (UNSPEC_VUPKHSB): Likewise.
2681         (UNSPEC_VUNPACK_HI_SIGN): Likewise.
2682         (UNSPEC_VUNPACK_LO_SIGN): Likewise.
2683         (UNSPEC_VUPKHSH): Likewise.
2684         (UNSPEC_VUPKLSB): Likewise.
2685         (UNSPEC_VUPKLSH): Likewise.
2686         (VI2): Likewise.
2687         (VI_char): Likewise.
2688         (VI_scalar): Likewise.
2689         (VI_unit): Likewise.
2690         (VP): Likewise.
2691         (VP_small): Likewise.
2692         (VP_small_lc): Likewise.
2693         (VU_char): Likewise.
2694         (add<mode>3): Likewise.
2695         (altivec_vaddcuw): Likewise.
2696         (altivec_vaddu<VI_char>s): Likewise.
2697         (altivec_vadds<VI_char>s): Likewise.
2698         (sub<mode>3): Likewise.
2699         (altivec_vsubcuw): Likewise.
2700         (altivec_vsubu<VI_char>s): Likewise.
2701         (altivec_vsubs<VI_char>s): Likewise.
2702         (altivec_vavgs<VI_char>): Likewise.
2703         (altivec_vcmpbfp): Likewise.
2704         (altivec_eq<mode>): Likewise.
2705         (altivec_gt<mode>): Likewise.
2706         (altivec_gtu<mode>): Likewise.
2707         (umax<mode>3): Likewise.
2708         (smax<mode>3): Likewise.
2709         (umin<mode>3): Likewise.
2710         (smin<mode>3): Likewise.
2711         (altivec_vpkuhum): Likewise.
2712         (altivec_vpkuwum): Likewise.
2713         (altivec_vpkshss): Likewise.
2714         (altivec_vpkswss): Likewise.
2715         (altivec_vpkuhus): Likewise.
2716         (altivec_vpkshus): Likewise.
2717         (altivec_vpkuwus): Likewise.
2718         (altivec_vpkswus): Likewise.
2719         (altivec_vpks<VI_char>ss): Likewise.
2720         (altivec_vpks<VI_char>us): Likewise.
2721         (altivec_vpku<VI_char>us): Likewise.
2722         (altivec_vpku<VI_char>um): Likewise.
2723         (altivec_vrl<VI_char>): Likewise.
2724         (altivec_vsl<VI_char>): Likewise.
2725         (altivec_vsr<VI_char>): Likewise.
2726         (altivec_vsra<VI_char>): Likewise.
2727         (altivec_vsldoi_<mode>): Likewise.
2728         (altivec_vupkhsb): Likewise.
2729         (altivec_vupkhs<VU_char>): Likewise.
2730         (altivec_vupkls<VU_char>): Likewise.
2731         (altivec_vupkhsh): Likewise.
2732         (altivec_vupklsb): Likewise.
2733         (altivec_vupklsh): Likewise.
2734         (altivec_vcmpequ<VI_char>_p): Likewise.
2735         (altivec_vcmpgts<VI_char>_p): Likewise.
2736         (altivec_vcmpgtu<VI_char>_p): Likewise.
2737         (abs<mode>2): Likewise.
2738         (vec_unpacks_hi_v16qi): Likewise.
2739         (vec_unpacks_hi_v8hi): Likewise.
2740         (vec_unpacks_lo_v16qi): Likewise.
2741         (vec_unpacks_hi_<VP_small_lc>): Likewise.
2742         (vec_unpacks_lo_v8hi): Likewise.
2743         (vec_unpacks_lo_<VP_small_lc>): Likewise.
2744         (vec_pack_trunc_v8h): Likewise.
2745         (vec_pack_trunc_v4si): Likewise.
2746         (vec_pack_trunc_<mode>): Likewise.
2747
2748         * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
2749         V2DI builtins.
2750         (vec_vmaxsd): Likewise.
2751         (vec_vmaxud): Likewise.
2752         (vec_vminsd): Likewise.
2753         (vec_vminud): Likewise.
2754         (vec_vpksdss): Likewise.
2755         (vec_vpksdus): Likewise.
2756         (vec_vpkudum): Likewise.
2757         (vec_vpkudus): Likewise.
2758         (vec_vrld): Likewise.
2759         (vec_vsld): Likewise.
2760         (vec_vsrad): Likewise.
2761         (vec_vsrd): Likewise.
2762         (vec_vsubudm): Likewise.
2763         (vec_vupkhsw): Likewise.
2764         (vec_vupklsw): Likewise.
2765
2766 2013-05-29  Jan Hubicka  <jh@suse.cz>
2767
2768         * cgraph.h (symtab_node_base): Add definition, alias and analyzed
2769         flags; reorder rest of fields in more consistent way.
2770         (varpool_node): Remove analyzed, finalized and alias.
2771         (cgraph_ndoe): Likewise.
2772         (symtab_alias_ultimate_target): New function.
2773         (cgraph_function_node): Move offline.
2774         (cgraph_reset_node): Declare.
2775         (cgraph_comdat_can_be_unshared_p): Remove.
2776         (varpool_remove_initializer): Declare.
2777         (varpool_first_defined_variable, varpool_next_defined_variable
2778         cgraph_first_defined_function, cgraph_next_defined_function): Update.
2779         (cgraph_function_with_gimple_body_p): Update.
2780         (varpool_all_refs_explicit_p): Update.
2781         (symtab_alias_target): New function.
2782         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
2783         (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
2784         (cgraph_function_or_thunk_node): Simplify using
2785         symtab_alias_ultimate_target.
2786         (varpool_variable_node): Likewise.
2787         * cgraph.c (cgraph_create_function_alias): Update.
2788         (cgraph_add_thunk): Update.
2789         (cgraph_remove_node): Update.
2790         (dump_cgraph_node): Do not dump removed flags.
2791         (cgraph_function_body_availability): Update.
2792         (cgraph_propagate_frequency): Update.
2793         (verify_cgraph_node): Check sanity of local flag.
2794         (cgraph_function_node): Move here from cgraph.h; revamp for
2795         cgraph_function_or_thunk_node.
2796         * lto-symtab.c (lto_varpool_replace_node): Update.
2797         (lto_symtab_resolve_can_prevail_p): Update.
2798         (lto_symtab_merge_cgraph_nodes): Update.
2799         * ipa-cp.c (determine_versionability, initialize_node_lattices,
2800         propagate_constants_accross_call, devirtualization_time_bonus,
2801         ipcp_propagate_stage): Update.
2802         * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
2803         * ipa-inline-transform.c (clone_inlined_nodes,
2804         preserve_function_body_p): Update.
2805         * ipa-reference.c (propagate): Update.
2806         (write_node_summary_p): Update.
2807         * toplev.c (wrapup_global_declaration_2): Update.
2808         * cgraphunit.c (cgraph_analyze_function): Rename to ...
2809         (analyze_function) ... this one.
2810         (cgraph_process_new_functions): Update.
2811         (cgraph_reset_node): Export.
2812         (cgraph_finalize_function): Update.
2813         (cgraph_add_new_function): Update.
2814         (process_function_and_variable_attributes): Update.
2815         (varpool_finalize_decl): Update.
2816         (symbol_finalized): Remove.
2817         (symbol_finalized_and_needed): Rename to ...
2818         (symbol_defined_and_needed): ... update.
2819         (cgraph_analyze_functions): Update.
2820         (handle_alias_pairs): Update.
2821         (mark_functions_to_output): Update.
2822         (assemble_thunk): Update.
2823         (output_in_order): Update.
2824         (output_weakrefs): Update.
2825         (finalize_compilation_unit): Update.
2826         * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
2827         lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
2828         input_node, input_varpool_node): Update.
2829         * dbxout.c (dbxout_expand_expr): Update.
2830         * cgraphclones.c (cgraph_clone_node): Update.
2831         (cgraph_copy_node_for_versioning): Update.
2832         (cgraph_materialize_clone): Update.
2833         (cgraph_materialize_all_clones): Update.
2834         * ipa-pure-const.c (analyze_function, pure_const_write_summary,
2835         propagate_pure_const, propagate_nothrow): Update.
2836         * lto-streamer-out.c (lto_output, write_symbol): Update.
2837         * ipa-utils.c (ipa_reverse_postorder): Update.
2838         * ipa-inline.c (can_inline_edge_p): Update.
2839         (update_caller_keys, ipa_inline): Update.
2840         * dwarf2out.c (reference_to_unused,
2841         premark_types_used_by_global_vars_helper): Update.
2842         * tree-eh.c (tree_could_trap_p): Update.
2843         * ipa-split.c (consider_split, execute_split_functions): Update.
2844         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
2845         has_addr_references_p): Update; move ahead in file for better
2846         readability.
2847         (process_references): Simplify.
2848         (symtab_remove_unreachable_nodes): Update; cleanup way function/var
2849         bodies are removed.
2850         (cgraph_comdat_can_be_unshared_p): Make static.
2851         (cgraph_externally_visible_p): Update.
2852         (varpool_externally_visible_p): Update.
2853         (function_and_variable_visibility): Update.
2854         * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
2855         ipa_tm_mark_force_output_node): Update.
2856         * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
2857         estimate_edge_devirt_benefit, inline_generate_summary,
2858         inline_write_summary): Update.
2859         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
2860         * ipa-prop.c (ipa_compute_jump_functions): Update.
2861         (ipa_print_node_params, ipa_prop_read_section,
2862         ipa_update_after_lto_read, read_replacements_section): Update.
2863         * varasm.c (mark_decl_referenced): Update.
2864         (assemble_alias, dump_tm_clone_pairs): Update.
2865         * tree-inline.c (copy_bb): Update.
2866         (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
2867         Update.
2868         * symtab.c (dump_symtab_base): Print new flags.
2869         (verify_symtab_base): Verify new flags.
2870         (symtab_alias_ultimate_target): New function.
2871         * tree-ssa-structalias.c (get_constraint_for_ssa_var,
2872         create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
2873         Update.
2874         * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
2875         Update.
2876         * i386.c (ix86_get_function_versions_dispatcher,
2877         ix86_generate_version_dispatcher_body): Update.
2878         (fold_builtin_cpu): Use varpool_add_new_variable.
2879         * varpool.c (varpool_remove_initializer): Break out from ...
2880         (varpool_remove_node): ... this one.
2881         (dump_varpool_node, varpool_node_for_asm,
2882         cgraph_variable_initializer_availability, varpool_analyze_node,
2883         varpool_assemble_decl, varpool_remove_unreferenced_decls,
2884         varpool_finalize_named_section_flags, varpool_create_variable_alias):
2885         Update.
2886
2887 2013-05-29  Jan Hubicka  <jh@suse.cz>
2888
2889         * passes.c (init_optimization_passes): Move OMP expansion into lowering.
2890
2891 2013-05-29  Easwaran Raman  <eraman@google.com>
2892
2893         PR tree-optimization/57442
2894         * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
2895         when control exits the main loop.
2896
2897 2013-05-29  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
2898
2899         * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
2900         and RX600.
2901         * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
2902         * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
2903         * rx/t-rx: Add rx100 under multi library matches option for nofpu
2904         option.
2905
2906 2013-05-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2907
2908         PR tree-optimization/57441
2909         * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
2910         Don't limit size of incr_vec to number of candidates.
2911
2912 2013-05-29  Steve Ellcey  <sellcey@imgtec.com>
2913
2914         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
2915         and mips16 directories.
2916         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
2917         (MULTILIB_DIRNAMES): Ditto.
2918         (MULTILIB_EXCEPTIONS): Add new exceptions.
2919         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
2920         (MULTILIB_DIRNAMES): Ditto.
2921         (MULTILIB_EXCEPTIONS): Add new exceptions.
2922
2923 2012-05-29  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2924             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2925
2926         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
2927         SYMBOL_TINY_ABSOLUTE.
2928         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
2929         SYMBOL_TINY_ABSOLUTE.
2930         (aarch64_expand_mov_immediate): Likewise.
2931         (aarch64_classify_symbol): Likewise.
2932         (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
2933         Permit SYMBOL_TINY_ABSOLUTE.
2934         * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
2935
2936 2013-05-29  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2937             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2938
2939         * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
2940         Refactor if/switch.  Replace gcc_assert with if.
2941
2942 2013-05-29  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
2943
2944         * config/i386/i386.c (initial_ix86_tune_features): Enable
2945         FP Reassociation for AMD bdver1 and bdver2.
2946
2947 2013-05-29  Martin Jambor  <mjambor@suse.cz>
2948
2949         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
2950         and IMAGPART_EXPR do not occur within other handled_components.
2951
2952 2013-05-29  Richard Biener  <rguenther@suse.de>
2953
2954         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
2955         access on whether the use is in the BB we currently try to
2956         vectorize.
2957         (vect_bb_vectorization_profitable_p): Pass the BB we currently
2958         vectorize to vect_bb_slp_scalar_cost.
2959
2960 2013-05-29  Richard Biener  <rguenther@suse.de>
2961
2962         * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
2963         computing scalar cost offsetted by stmts that are kept live
2964         by scalar uses.
2965         (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
2966         for computation of scalar cost.
2967
2968 2013-05-28  Steve Ellcey  <sellcey@mips.com>
2969
2970         * config/mips/mips-cpus.def (mips32r2): Change processor type.
2971
2972 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2973
2974         * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
2975         array notation built-in reduction functions.
2976         * doc/passes.texi (Passes): Added documentation about changes done
2977         for Cilk Plus.
2978         * doc/invoke.texi (C Dialect Options): Added documentation about
2979         the -fcilkplus flag.
2980         * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
2981         (BUILTINS_DEF): Depend on cilkplus.def.
2982         * builtins.def: Include cilkplus.def.  Define DEF_CILKPLUS_BUILTIN.
2983         * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
2984         * cilkplus.def: New file.
2985
2986 2013-05-28  Joern Rennecke <joern.rennecke@embecosm.com>
2987
2988         PR rtl-optimization/57439
2989         * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
2990
2991 2013-05-28  Easwaran Raman  <eraman@google.com>
2992
2993         PR tree-optimization/57337
2994         * tree-ssa-reassoc.c (appears_later_in_bb): New function.
2995         (find_insert_point): Correctly identify the insertion point
2996         when two statements with the same UID is compared.
2997
2998 2013-05-28  Richard Biener  <rguenther@suse.de>
2999
3000         PR tree-optimization/56787
3001         * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
3002         from the list of data references.
3003         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
3004         clobbers.
3005         (vect_analyze_loop_operations): Likewise.
3006         (vect_transform_loop): Remove clobbers.
3007
3008 2013-05-28  Martin Jambor  <mjambor@suse.cz>
3009
3010         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
3011         and REALPART_EXPRs have scalar type.
3012
3013 2013-05-28  Richard Biener  <rguenther@suse.de>
3014
3015         PR tree-optimization/57411
3016         * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
3017         virtual operands.
3018         * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
3019         virtual operand propagation.
3020
3021 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
3022
3023         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
3024         destination register for bmasksi_vis.
3025         (vector_init_bshuffle): Likewise.
3026         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
3027
3028 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
3029
3030         * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
3031         * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
3032         mode if the instruction isn't available in the original mode.
3033         * config/sparc/sparc.opt (mfix-ut699): New option.
3034         * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
3035         (divdf3): Turn into expander.
3036         (divdf3_nofix): New insn.
3037         (divdf3_fix): Likewise.
3038         (divsf3): Disable if -mfix-ut699.
3039         (sqrtdf2): Turn into expander.
3040         (sqrtdf2_nofix): New insn.
3041         (sqrtdf2_fix): Likewise.
3042         (sqrtsf2): Disable if -mfix-ut699.
3043
3044 2013-05-27  Richard Biener  <rguenther@suse.de>
3045
3046         PR middle-end/57412
3047         * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
3048         block for the new loop.
3049
3050 2013-05-27  Richard Biener  <rguenther@suse.de>
3051
3052         PR tree-optimization/57343
3053         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
3054         use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
3055         (number_of_iterations_cond): Do not build the folded tree.
3056
3057 2013-05-27  Richard Biener  <rguenther@suse.de>
3058
3059         Revert
3060         PR middle-end/57381
3061         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
3062         OEP_CONSTANT_ADDRESS_OF retained.
3063
3064         PR tree-optimization/57417
3065         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
3066         for unchanged base.
3067         (set_ssa_val_to): Compare addresses using
3068         get_addr_base_and_unit_offset.
3069
3070 2013-05-27  Joern Rennecke <joern.rennecke@embecosm.com>
3071
3072         PR rtl-optimization/56833
3073         * postreload.c (move2add_record_mode): New function.
3074         (move2add_record_sym_value, move2add_valid_value_p): Likewise.
3075         (move2add_use_add2_insn): Use move2add_record_sym_value.
3076         (move2add_use_add3_insn): Likewise.
3077         (reload_cse_move2add): Use move2add_valid_value_p and
3078         move2add_record_mode.  Invalidate call-clobbered and REG_INC
3079         affected regs by setting reg_mode to VOIDmode.
3080         (move2add_note_store): Don't pretend the inside of a SUBREG is
3081         the actual destination.  Invalidate single/leading registers by
3082         setting reg_mode to VOIDmode.
3083         Use move2add_record_sym_value, move2add_valid_value_p and
3084         move2add_record_mode.
3085
3086 2013-05-27  Richard Biener  <rguenther@suse.de>
3087
3088         PR tree-optimization/57396
3089         * tree-affine.c (double_int_constant_multiple_p): Properly
3090         return false for val == 0 and div != 0.
3091
3092 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
3093
3094         * config/mips/mips.h: Use #elif in preprocessor conditions.
3095
3096 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
3097
3098         PR target/53916
3099         * config/mips/constraints.md (kl): New constraint.
3100         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
3101         (divmod<mode>4_internal): Rename to divmod<mode>4.  Use "kl" as the
3102         constraint for operand 0.  Split after CSE for MIPS16.  Emit a move
3103         from LO for MIPS16.
3104         (udivmod<mode>4_internal): Likewise udivmod<mode>4.
3105
3106 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
3107
3108         PR target/55777
3109         * config/mips/mips.c (mips_can_inline_p): New function.
3110         (TARGET_CAN_INLINE_P): Define.
3111
3112 2013-05-25  Steven Bosscher  <steven@gcc.gnu.org>
3113
3114         * sched-int.h (ds_t, dw_t): Make unsigned int.
3115         Fix documentation that describes how all the ds_t bits are used.
3116         Reserve the last bit for delayed-branch scheduling.
3117         (BITS_PER_DEP_STATUS): Move to ds_t typedef.
3118         (BITS_PER_DEP_WEAK): Fix definition and documentation.
3119         (gen_dep_weak_1): Remove prototype.
3120         * sched-deps.c (get_dep_weak_1): Make static.
3121         * target.def (speculate_insn, needs_block_p, gen_spec_check,
3122         get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
3123         * doc/tm.texi: Regenerate.
3124         * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
3125
3126 2013-05-24  Steven Bosscher  <steven@gcc.gnu.org>
3127
3128         PR debug/56950
3129         * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
3130
3131 2013-05-24  Nathan Sidwell  <nathan@codesourcery.com>
3132             Sandra Loosemore  <sandra@codesourcery.com>
3133
3134         * config.gcc (powerpc-*): Allow native for with-cpu.
3135
3136 2013-05-24  Jeff Law  <law@redhat.com>
3137
3138         PR tree-optimization/57124
3139         * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
3140         conversion feeding a condition if the range has an overflow
3141         if -fstrict-overflow.  Add warnings for when we do make the
3142         transformation.
3143
3144 2013-05-24  Dehao Chen  <dehao@google.com>
3145
3146         * tree-cfg.c (locus_discrim_map): Fix the typo.
3147         (locus_discrim_hasher): Likewise.
3148         (locus_discrim_hasher::hash): Likewise.
3149         (locus_discrim_hasher::equal): Likewise.
3150
3151 2013-05-24  Martin Jambor  <mjambor@suse.cz>
3152
3153         PR tree-optimization/57294
3154         * cgraph.h (ipa_record_stmt_references): Declare.
3155         * cgraphbuild.c (ipa_record_stmt_references): New function.
3156         (build_cgraph_edges): Use ipa_record_stmt_references.
3157         (rebuild_cgraph_edges): Likewise.
3158         (cgraph_rebuild_references): Likewise.
3159         * ipa-prop.c (ipa_modify_call_arguments): Discard references
3160         associated with the old statement and build references from the
3161         newly built statements.
3162         * ipa-ref.c (ipa_remove_stmt_references): New function.
3163         * ipa-ref.h (ipa_remove_stmt_references): Declare.
3164
3165 2013-05-24  Vladimir Makarov  <vmakarov@redhat.com>
3166
3167         * lra-constraints.c (emit_spill_move): Use smaller mode for
3168         mem-mem moves.
3169         (check_and_process_move): Consider mem-reg moves for secondary
3170         too.
3171         (curr_insn_transform): Don't lose insns emitted before for
3172         secondary memory moves.
3173         (inherit_in_ebb): Mark defined reg.  Add usage only if it is not a
3174         reg set up in the current insn.
3175
3176 2013-05-24  Dehao Chen  <dehao@google.com>
3177
3178         * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
3179         hash function.
3180         (locus_descrim_hasher::equal): Likewise.
3181         (build_gimple_cfg): New discriminator assignment algorithm.
3182         (make_edges): Likewise.
3183         (next_discriminator_for_locus): Likewise.
3184         (same_line_p): Likewise.
3185         (assign_discriminators): Likewise.
3186         (make_cond_expr_edges): Likewise.
3187         (make_gimple_switch_edges): Likewise.
3188         (make_goto_expr_edges): Likewise.
3189         (make_gimple_asm_edges): Likewise.
3190
3191 2013-05-24  Ian Bolton  <ian.bolton@arm.com>
3192
3193         * config/aarch64/aarch64.c (aarch64_print_operand): Change the
3194         X format specifier to only display bottom 16 bits.
3195         * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
3196         immediate to match for operand 2, since it will be masked.
3197
3198 2013-05-24  Richard Biener  <rguenther@suse.de>
3199
3200         PR tree-optimization/57287
3201         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
3202         all SSA names that occur in abnormal PHIs.
3203
3204 2013-05-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3205
3206         PR tree-ssa/57385
3207         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
3208         that index is not negative.
3209
3210 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
3211
3212         PR rtl-optimization/55177
3213         * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
3214         (simplify_byte_swapping_operation): New.
3215         (simplify_binary_operation_1): Call it for AND, IOR and XOR.
3216         (simplify_relational_operation_1): Deal with BSWAP.
3217
3218 2013-05-23  Richard Henderson  <rth@redhat.com>
3219
3220         PR target/56742
3221         * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
3222         (ix86_reorg): Call it.
3223
3224 2013-05-23  Uros Bizjak  <ubizjak@gmail.com>
3225
3226         PR target/57379
3227         * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
3228         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
3229         REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
3230
3231 2013-05-23  Christian Bruel  <christian.bruel@st.com>
3232
3233         PR debug/57351
3234         * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
3235
3236 2013-05-23  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3237             Marcus Shawcroft  <marcus.shawcroft@arm.com>
3238
3239         * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
3240         * config/aarch64/constraints.md (Usa): Remove.
3241         * doc/md.texi (AArch64 Usa): Remove.
3242
3243 2013-05-23  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3244             Marcus Shawcroft  <marcus.shawcroft@arm.com>
3245
3246         * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
3247         * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
3248         * config/aarch64/predicates.md (aarch64_const_address): Remove.
3249         (aarch64_mov_operand): Use aarch64_mov_operand_p.
3250
3251 2013-05-23  Vidya Praveen <vidyapraveen@arm.com>
3252
3253         * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
3254         instruction (AdvSIMD).
3255         * config/aarch64/aarch64-builtins.c
3256         (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
3257         * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
3258
3259 2013-05-23  Martin Jambor  <mjambor@suse.cz>
3260
3261         PR middle-end/57347
3262         * tree.h (contains_bitfld_component_ref_p): Declare.
3263         * tree-sra.c (contains_bitfld_comp_ref_p): Move...
3264         * tree.c (contains_bitfld_component_ref_p): ...here.  Adjust its
3265         caller.
3266         * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
3267         not access a bit-field.  Assert all final offsets are byte-aligned.
3268
3269 2013-05-23  Richard Biener  <rguenther@suse.de>
3270
3271         PR tree-optimization/57380
3272         * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
3273         least one invariant or re-used load.
3274         * passes.c (init_optimization_passes): Move pass_phiprop before
3275         pass_forwprop.
3276
3277 2013-05-23  James Greenhalgh  <james.greenhalgh@arm.com>
3278
3279         * config/aarch64/aarch64-simd.md
3280         (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
3281
3282 2013-05-23  Richard Biener  <rguenther@suse.de>
3283
3284         PR middle-end/57381
3285         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
3286         OEP_CONSTANT_ADDRESS_OF retained.
3287
3288 2013-05-23  Jakub Jelinek  <jakub@redhat.com>
3289
3290         PR middle-end/57344
3291         * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
3292         don't lower unit.  Handle unit not being always BITS_PER_WORD.
3293
3294 2013-05-23  Richard Biener  <rguenther@suse.de>
3295
3296         PR rtl-optimization/57341
3297         * ira.c (validate_equiv_mem_from_store): Use anti_dependence
3298         instead of true_dependence.
3299
3300 2013-05-22  David Malcolm  <dmalcolm@redhat.com>
3301
3302         * bb-reorder.c (branch_threshold): Make const.
3303         (exec_threshold): Ditto.
3304
3305 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
3306             Pat Haugen <pthaugen@us.ibm.com>
3307             Peter Bergner <bergner@vnet.ibm.com>
3308
3309         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
3310         documentation for the power8 crypto builtins.
3311
3312         * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
3313
3314         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
3315         macros for defining power8 builtin functions.
3316         (BU_P8V_AV_2): Likewise.
3317         (BU_P8V_AV_P): Likewise.
3318         (BU_P8V_VSX_1): Likewise.
3319         (BU_P8V_OVERLOAD_1): Likewise.
3320         (BU_P8V_OVERLOAD_2): Likewise.
3321         (BU_CRYPTO_1): Likewise.
3322         (BU_CRYPTO_2): Likewise.
3323         (BU_CRYPTO_3): Likewise.
3324         (BU_CRYPTO_OVERLOAD_1): Likewise.
3325         (BU_CRYPTO_OVERLOAD_2): Likewise.
3326         (XSCVSPDP): Fix typo, point to the correct instruction.
3327         (VCIPHER): Add power8 crypto builtins.
3328         (VCIPHERLAST): Likewise.
3329         (VNCIPHER): Likewise.
3330         (VNCIPHERLAST): Likewise.
3331         (VPMSUMB): Likewise.
3332         (VPMSUMH): Likewise.
3333         (VPMSUMW): Likewise.
3334         (VPERMXOR_V2DI): Likewise.
3335         (VPERMXOR_V4SI: Likewise.
3336         (VPERMXOR_V8HI: Likewise.
3337         (VPERMXOR_V16QI: Likewise.
3338         (VSHASIGMAW): Likewise.
3339         (VSHASIGMAD): Likewise.
3340         (VPMSUM): Likewise.
3341         (VPERMXOR): Likewise.
3342         (VSHASIGMA): Likewise.
3343
3344         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
3345         __CRYPTO__ if the crypto instructions are available.
3346         (altivec_overloaded_builtins): Add support for overloaded power8
3347         builtins.
3348
3349         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
3350         support for power8 crypto builtins.
3351         (builtin_function_type): Likewise.
3352         (altivec_init_builtins): Add support for builtins that take vector
3353         long long (V2DI) arguments.
3354
3355         * config/rs6000/crypto.md: New file, define power8 crypto
3356         instructions.
3357
3358 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
3359             Pat Haugen <pthaugen@us.ibm.com>
3360             Peter Bergner <bergner@vnet.ibm.com>
3361
3362         * doc/invoke.texi (Option Summary): Add power8 options.
3363         (RS/6000 and PowerPC Options): Likewise.
3364
3365         * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
3366         constraints.md instead of rs6000.h.  Reorder w* constraints.  Add
3367         wm, wn, wr documentation.
3368
3369         * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
3370         registers if direct move instructions are enabled.
3371         (wn): New constraint for no registers.
3372         (wq): New constraint for quad word even GPR registers.
3373         (wr): New constraint if 64-bit instructions are enabled.
3374         (wv): New constraint if power8 vector instructions are enabled.
3375         (wQ): New constraint for quad word memory locations.
3376
3377         * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
3378         constraint for 0..15 for crypto instructions.
3379         (gpc_reg_operand): If VSX allow registers in VSX registers as well
3380         as GPR and floating point registers.
3381         (int_reg_operand): New predicate to match only GPR registers.
3382         (base_reg_operand): New predicate to match base registers.
3383         (quad_int_reg_operand): New predicate to match even GPR registers
3384         for quad memory operations.
3385         (vsx_reg_or_cint_operand): New predicate to allow vector logical
3386         operations in both GPR and VSX registers.
3387         (quad_memory_operand): New predicate for quad memory operations.
3388         (reg_or_indexed_operand): New predicate for direct move support.
3389
3390         * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
3391         Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
3392         (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
3393         (POWERPC_MASKS): Add power8 options.
3394         (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
3395         various options.
3396
3397         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
3398         Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
3399
3400         * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
3401         (-mpower8-fusion): New power8 options.
3402         (-mpower8-fusion-sign): Likewise.
3403         (-mpower8-vector): Likewise.
3404         (-mcrypto): Likewise.
3405         (-mdirect-move): Likewise.
3406         (-mquad-memory): Likewise.
3407
3408         * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
3409         power8.
3410         (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
3411         registers.
3412         (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
3413         (rs6000_debug_vector_unit): Add p8_vector.
3414         (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
3415         definitions.  Also print fusion state.
3416         (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
3417         (rs6000_builtin_mask_calculate): Add power8 builtin support.
3418         (rs6000_option_override_internal): Add support for power8.
3419         (rs6000_common_init_builtins): Add debugging for skipped builtins
3420         if -mdebug=builtin.
3421         (rs6000_adjust_cost): Add power8 support.
3422         (rs6000_issue_rate): Likewise.
3423         (insn_must_be_first_in_group): Likewise.
3424         (insn_must_be_last_in_group): Likewise.
3425         (force_new_group): Likewise.
3426         (rs6000_register_move_cost): Likewise.
3427         (rs6000_opt_masks): Likewise.
3428
3429         * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
3430         power8 capable assembler, default to power7 options.
3431         (TARGET_DIRECT_MOVE): Likewise.
3432         (TARGET_CRYPTO): Likewise.
3433         (TARGET_P8_VECTOR): Likewise.
3434         (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
3435         (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
3436         (VECTOR_MEM_P8_VECTOR_P): Likewise.
3437         (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
3438         (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
3439         (TARGET_XSCVDPSPN): Likewise.
3440         (TARGET_XSCVSPDPN): Likewsie.
3441         (TARGET_SYNC_HI_QI): Likewise.
3442         (TARGET_SYNC_TI): Likewise.
3443         (MASK_CRYPTO): Likewise.
3444         (MASK_DIRECT_MOVE): Likewise.
3445         (MASK_P8_FUSION): Likewise.
3446         (MASK_P8_VECTOR): Likewise.
3447         (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
3448         temporary used by some of the direct move instructions to get two FP
3449         temporary registers does not force creation of a stack frame.
3450         (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
3451         (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
3452         that any VSX registers are tieable, even if they are also an
3453         Altivec vector mode.
3454         (r6000_reg_class_enum): Add wm, wr, wv constraints.
3455         (RS6000_BTM_P8_VECTOR): Power8 builtin support.
3456         (RS6000_BTM_CRYPTO): Likewise.
3457         (RS6000_BTM_COMMON): Likewise.
3458
3459         * config/rs6000/rs6000.md (cpu attribute): Add power8.
3460         * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
3461         (enum rs6000_vector): Add power8 vector support.
3462
3463 2013-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3464
3465         PR target/19599
3466         PR target/57340
3467         * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
3468         (any_sibcall_could_use_r3): this and handle indirect calls.
3469         (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
3470
3471 2013-05-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3472
3473         * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
3474
3475 2013-05-22  Richard Biener  <rguenther@suse.de>
3476
3477         PR middle-end/57349
3478         * profile.c (branch_prob): Do not split blocks that are
3479         abnormally receiving from ECF_RETURNS_TWICE functions.
3480
3481 2013-05-22  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
3482
3483         * recog.c (offsettable_address_addr_space_p): Fix calculation of
3484         address mode.  Move pointer mode initialization to the same place.
3485
3486 2013-05-22  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3487
3488         * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
3489         while it has any effect.
3490
3491 2013-05-21  Easwaran Raman  <eraman@google.com>
3492
3493         PR tree-optimization/57322
3494         * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
3495         UID of the statement added to the BB to be 1.
3496
3497 2013-05-21  Jakub Jelinek  <jakub@redhat.com>
3498
3499         PR tree-optimization/57331
3500         * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
3501         of conversion from pointer type to integral type with integer.
3502
3503 2013-05-21  Martin Jambor  <mjambor@suse.cz>
3504
3505         PR lto/57289
3506         * ipa-prop.c (ipa_read_node_info): Process param_used and
3507         controlled_uses in the same order as when writing.
3508
3509 2013-05-21  Magnus Granberg  <baldrick@free.fr>
3510
3511         PR plugins/56754
3512         * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
3513
3514 2013-05-21  Richard Biener  <rguenther@suse.de>
3515
3516         PR tree-optimization/57318
3517         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
3518         estimate stmts with side-effects as likely eliminated.
3519
3520 2013-05-21  Richard Biener  <rguenther@suse.de>
3521
3522         PR tree-optimization/57330
3523         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
3524         preserve the call stmts fntype.
3525
3526 2013-05-21  Richard Biener  <rguenther@suse.de>
3527
3528         PR tree-optimization/57303
3529         * tree-ssa-sink.c (statement_sink_location): Improve killing
3530         stmt detection and properly handle self-assignments.
3531
3532 2013-05-21  Christian Bruel  <christian.bruel@st.com>
3533
3534         * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
3535         spanning registers. LEAF_REG_REMAP is supported only for contiguous
3536         registers. Set register size out of the PARALLEL loop.
3537
3538 2013-05-20  Oleg Endo  <olegendo@gcc.gnu.org>
3539
3540         PR target/56547
3541         * config/sh/sh.md (fmasf4): Remove empty constraints strings.
3542         (*fmasf4, *fmasf4_media): New insns.
3543
3544 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
3545
3546         * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
3547         * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
3548         (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
3549         (mips_idiv_insns): Update the comments to say that the returned
3550         instruction counts are in units of BASE_INSN_LENGTH.
3551         (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
3552         by BASE_INSN_LENGTH rather than 4.  Add the jump separately,
3553         using 2 rather than 4 as the length of indirect MIPS16 and
3554         microMIPS jumps.  Use NOP_INSN_LENGTH rather than 4 as the
3555         length of a NOP.  Don't divide MIPS16 lengths by 2.
3556         (mips16_split_long_branches): Assume a branch is long if the
3557         length is greater than 4 rather than 8.
3558         * config/mips/mips.md (length): Give MIPS16 lengths directly,
3559         rather than multiplying them by 2.  Multiply instruction counts
3560         by BASE_INSN_LENGTH rather than 4.
3561         (*jump_mips16, tls_get_tp_mips16_<mode>)
3562         (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
3563
3564 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
3565
3566         * config/mips/mips.md (extended_mips16): Remove branch case.
3567         (length): Remove duplicated extended_mips16 test.
3568
3569 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
3570
3571         * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
3572
3573 2013-05-18  Richard Sandiford  <rdsandiford@googlemail.com>
3574
3575         * recog.h (Recog_data): Rename to...
3576         (recog_data_d): ...this.
3577         (recog_data): Update accordingly.
3578         * recog.c (recog_data): Likewise.
3579         * reload.c (save_recog_data): Likewise.
3580         * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
3581         (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
3582
3583 2013-05-17  Julian Brown  <julian@codesourcery.com>
3584
3585         * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
3586         found in a REG_EQUAL note, invalidate it.
3587
3588 2013-05-17   Easwaran Raman  <eraman@google.com>
3589
3590         * tree-ssa-reassoc.c (find_insert_point): New function.
3591         (insert_stmt_after): Likewise.
3592         (get_def_stmt): Likewise.
3593         (ensure_ops_are_available): Likewise.
3594         (not_dominated_by): Likewise.
3595         (rewrite_expr_tree): Do not move statements beyond what is
3596         necessary. Remove call to swap_ops_for_binary_stmt...
3597         (reassociate_bb): ... and move it here.
3598         (build_and_add_sum): Assign UIDs for new statements.
3599         (linearize_expr): Likewise.
3600         (do_reassoc): Renumber gimple statement UIDs.
3601
3602 2013-05-17  Jan Hubicka  <jh@suse.cz>
3603
3604         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
3605         weakrefs.
3606         * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
3607         * cgraphunit.c (handle_alias_pairs): Store target of unresolved
3608         weakrefs.
3609         (output_weakrefs): Update.
3610
3611 2013-05-17  Po-Chun Chang  <pchang9@cs.wisc.edu>
3612             Martin Jambor  <mjambor@suse.cz>
3613
3614         PR middle-end/57276
3615         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
3616         value that corresponds to the given aggval is found in values vector.
3617
3618 2013-05-17  Uros Bizjak  <ubizjak@gmail.com>
3619
3620         * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
3621         sse, sse2, sse3, ssse3 and sse4a flags to options.
3622
3623 2013-05-17  David Malcolm  <dmalcolm@redhat.com>
3624
3625         * gengtype-state.c: (s_expr_writer): New class, to handle
3626         prettifying of output layout of s-expressions.
3627         (state_writer): New class, to write out gtype.state.
3628         (state_written_type_count): Move this variable into member data of
3629         state_writer.
3630         (s_expr_writer::s_expr_writer): New code: constructor for new class
3631         (state_writer::state_writer(): ditto
3632         (s_expr_writer::write_new_line): New function
3633         (s_expr_writer::write_any_indent): ditto
3634         (s_expr_writer::begin_s_expr): ditto
3635         (s_expr_writer::end_s_expr): ditto
3636         (write_state_fileloc): convert to method of state_writer...
3637         (state_writer:: write_state_fileloc): ...and use methods of
3638         s_expr_writer to write indentation into the gtype.state output file
3639         to visually represent the hierarchical structure of the list
3640         structures
3641         (write_state_fields): ditto, renaming to...
3642         (state_writer::write_state_fields)
3643         (write_state_a_string): ditto, renaming to...
3644         (state_writer::write_state_a_string)
3645         (write_state_string_option): ditto, renaming to...
3646         (state_writer::write_state_string_option)
3647         (write_state_type_option): ditto, renaming to...
3648         (state_writer::write_state_type_option)
3649         (write_state_nested_option): ditto, renaming to...
3650         (state_writer::write_state_nested_option)
3651         (write_state_option): ditto, renaming to...
3652         (state_writer::write_state_option)
3653         (write_state_options): ditto, renaming to...
3654         (state_writer::write_state_options)
3655         (write_state_lang_bitmap): ditto, renaming to...
3656         (state_writer::write_state_lang_bitmap)
3657         (write_state_version): ditto, renaming to...
3658         (state_writer::write_state_version)
3659         (write_state_scalar_type): ditto, renaming to...
3660         (state_writer::write_state_scalar_type)
3661         (write_state_string_type): ditto, renaming to...
3662         (state_writer::write_state_string_type)
3663         (write_state_undefined_type): ditto, renaming to...
3664         (state_writer::write_state_undefined_type)
3665         (write_state_struct_union_type): ditto, renaming to...
3666         (state_writer::write_state_struct_union_type)
3667         (write_state_struct_type): ditto, renaming to...
3668         (state_writer::write_state_struct_type)
3669         (write_state_user_struct_type): ditto, renaming to...
3670         (state_writer::write_state_user_struct_type)
3671         (write_state_lang_struct_type): ditto, renaming to...
3672         (state_writer::write_state_lang_struct_type)
3673         (write_state_param_struct_type): ditto, renaming to...
3674         (state_writer::write_state_param_struct_type)
3675         (write_state_pointer_type): ditto, renaming to...
3676         (state_writer::write_state_pointer_type)
3677         (write_state_array_type): ditto, renaming to...
3678         (state_writer::write_state_array_type)
3679         (write_state_gc_used): ditto, renaming to...
3680         (state_writer::write_state_gc_used)
3681         (write_state_common_type_content): ditto, renaming to...
3682         (state_writer::write_state_common_type_content)
3683         (write_state_type): ditto, renaming to...
3684         (state_writer::write_state_type)
3685         (write_state_pair_list): ditto, renaming to...
3686         (state_writer::write_state_pair_list)
3687         (write_state_pair): ditto, renaming to...
3688         (state_writer::write_state_pair)
3689         (write_state_typedefs): ditto, renaming to...
3690         (state_writer::write_state_typedefs)
3691         (write_state_structures): ditto, renaming to...
3692         (state_writer::write_state_structures)
3693         (write_state_param_structs): ditto, renaming to...
3694         (state_writer::write_state_param_structs)
3695         (write_state_variables): ditto, renaming to...
3696         (state_writer::write_state_variables)
3697         (write_state_srcdir): ditto, renaming to...
3698         (state_writer::write_state_srcdir)
3699         (write_state_files_list): ditto, renaming to...
3700         (state_writer::write_state_files_list)
3701         (write_state_languages): ditto, renaming to...
3702         (state_writer::write_state_languages)
3703         (write_state): create a state_writer instance and use it when
3704         writing out the state file
3705
3706 2013-05-17  Mike Stump  <mikestump@comcast.net>
3707
3708         PR rtl-optimization/57304
3709         * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
3710         accessing DF_REF_REAL_LOC.
3711
3712 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
3713
3714         PR rtl-optimization/57281
3715         PR rtl-optimization/57300
3716         * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
3717         (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
3718         what the other splitter did if the registers are dead.
3719
3720 2013-05-17  Richard Biener  <rguenther@suse.de>
3721
3722         * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
3723         MEM_REF offsets.
3724
3725 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
3726
3727         * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
3728         linking.
3729
3730 2013-05-17  Marek Polacek  <polacek@redhat.com>
3731
3732         * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
3733         length when doing non-zero store of storing '\0' to '\0'.
3734
3735 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
3736
3737         * tree-vect-patterns.c (vect_recog_rotate_pattern): For
3738         vect_external_def oprnd1 with loop_vinfo, try to emit
3739         optional cast, negation and and stmts on the loop preheader
3740         edge instead of into the pattern def seq.
3741
3742         PR tree-optimization/57051
3743         * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
3744         case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
3745
3746 2013-05-16  Nick Clifton  <nickc@redhat.com>
3747
3748         * config/rl78/rl78.c (rl78_attribute_table): Add naked.
3749         (rl78_is_naked_func): New function.
3750         (rl78_expand_prologue): Skip prologue generation for naked functions.
3751         (rl78_expand_epilogue): Skip epilogue generation for naked functions.
3752         * doc/extend.texi (naked): Add RL78 to the list of processors
3753         that supports this attribute.
3754
3755 2013-05-16  Jeff Law  <law@redhat.com>
3756
3757         * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
3758
3759 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
3760
3761         * config/i386/driver-i386.c (host_detect_local_cpu): Determine
3762         cache parameters using detect_caches_amd also for CYRIX,
3763         NSC and TM2 signatures.
3764
3765 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
3766             Dzianis Kahanovich  <mahatma@eu.by>
3767
3768         PR target/45359
3769         PR target/46396
3770         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3771         VIA/Centaur processors and determine their cache parameters
3772         using detect_caches_amd.
3773
3774 2013-05-16  Teresa Johnson  <tejohnson@google.com>
3775
3776         * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
3777         (rtl_verify_edges): New function.
3778         (rtl_verify_bb_insns): Ditto.
3779         (rtl_verify_bb_pointers): Ditto.
3780         (rtl_verify_bb_insn_chain): Ditto.
3781         (rtl_verify_fallthru): Ditto.
3782         (rtl_verify_bb_layout): Ditto.
3783         (rtl_verify_flow_info_1): Outline checks into new functions.
3784         (rtl_verify_flow_info): Ditto.
3785
3786 2013-05-16  Steve Ellcey  <sellcey@imgtec.com>
3787
3788         * cfghooks.c (copy_bbs): Add update_dominance argument.
3789         * cfghooks.h (copy_bbs): Update prototype.
3790         * tree-cfg.c (gimple_duplicate_sese_region):
3791         Add update_dominance argument.
3792         * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
3793         * tree-ssa-loop-ch.c (copy_loop_headers): Update
3794         gimple_duplicate_sese_region call.
3795         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
3796         Update copy_bbs call.
3797         * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
3798         * trans-mem.c (ipa_uninstrument_transaction): Ditto.
3799
3800 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
3801
3802         * tree-vectorizer.h (NUM_PATTERNS): Increment.
3803         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
3804         vect_recog_rotate_pattern.
3805         (vect_recog_rotate_pattern): New function.
3806
3807 2013-05-16  Jason Merrill  <jason@redhat.com>
3808
3809         * Makefile.in (LLINKER): New variable.
3810         (mostlyclean): Remove link mutex.
3811         * configure.ac: Handle --enable-link-mutex.
3812         * lock-and-run.sh: New script.
3813
3814 2013-05-16  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3815
3816         PR target/19599
3817         * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
3818         for NULL decl.
3819
3820 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3821
3822         * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
3823
3824 2013-05-16  Greta Yorsh  <Greta.Yorsh@arm.com>
3825
3826         * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
3827         * config/arm/arm.c (next_consecutive_mem): New function.
3828         (gen_movmem_ldrd_strd): Likewise.
3829         * config/arm/arm.md (movmemqi): Update condition and code.
3830         (unaligned_loaddi, unaligned_storedi): New patterns.
3831
3832 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3833
3834         * config.gcc: Obsolete *-*-solaris2.9*.
3835         * doc/install.texi (Specific, *-*-solaris2*): Document it.
3836
3837 2013-05-16  Richard Biener  <rguenther@suse.de>
3838
3839         * passes.c (init_optimization_passes): Move pass_parallelize_loops
3840         earlier, after GRAPHITE transforms and IV canonicalization.
3841
3842 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
3843
3844         * omp-low.c (extract_omp_for_data): For collapsed loops,
3845         if at least one of the loops is known at compile time to
3846         iterate zero times, set count to 0.
3847         (expand_omp_regimplify_p): New function.
3848         (expand_omp_for_generic): For collapsed loops, if at least
3849         one of the loops isn't known to iterate at least once,
3850         add runtime check with setting count to 0.
3851         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
3852         For unsigned types if it isn't known at compile time that
3853         the loop will iterate at least once, add runtime check to bypass
3854         the whole loop if initial condition isn't true.
3855
3856 2013-05-16  Nathan Sidwell  <nathan@codesourcery.com>
3857
3858         * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
3859
3860 2013-05-16  Marc Glisse  <marc.glisse@inria.fr>
3861
3862         PR middle-end/57286
3863         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
3864         transformations to avoid an infinite loop.
3865
3866 2013-05-16  Marek Polacek  <polacek@redhat.com>
3867
3868         * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
3869
3870 2013-05-15  Leif Ekblad  <leif@rdos.net>
3871
3872         * config/i386/i386.c (ix86_decompose_address): Use
3873         DEFAULT_TLS_SEG_REG to access TLS segment register.
3874         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
3875         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
3876         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
3877
3878 2013-05-15  Richard Sandiford  <rdsandiford@googlemail.com>
3879
3880         PR target/57260
3881         * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
3882         sibling calls to functions that would normally be lazily bound,
3883         unless $gp is call-clobbered.
3884
3885 2013-05-15  Uros Bizjak  <ubizjak@gmail.com>
3886
3887         * config/i386/i386.c (ix86_option_override_internal): Update
3888         processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags.  Add
3889         PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
3890         non-SSE 3dNow! targets.  Enable TARGET_PRFCHW for TARGET_3DNOW targets.
3891         * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
3892         of TARGET_3DNOW.
3893         (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
3894
3895 2013-05-15  Andreas Schwab  <schwab@suse.de>
3896
3897         * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
3898         for rotlhi3+1 and rotlqi3+1, resp.  Fix reference to non-existing
3899         third operand.
3900
3901 2013-05-15  Teresa Johnson  <tejohnson@google.com>
3902
3903         * loop-unroll.c (report_unroll_peel): Check decision before
3904         emitting unroll/peel message.
3905
3906 2013-05-15  Teresa Johnson  <tejohnson@google.com>
3907
3908         * function.h (has_bb_partition): New rtl_data flag.
3909         (bb_reorder_complete): Ditto.
3910         * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
3911         instead of flag_reorder_blocks_and_partition.
3912         * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
3913         with some enhancements.
3914         (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
3915         * bb-reorder.c (connect_traces): Check for has_bb_partition
3916         instead of flag_reorder_blocks_and_partition.
3917         (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
3918         (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
3919         verify_hot_cold_block_grouping.
3920         (partition_hot_cold_basic_blocks): Set has_bb_partition.
3921
3922 2013-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3923
3924         PR target/19599
3925         * config/arm/predicates.md (call_insn_operand): New predicate.
3926         * config/arm/constraints.md ("Cs", "Ss"):  New constraints.
3927         * config/arm/arm.md (*call_insn, *call_value_insn): Match only
3928         if insn is not a tail call.
3929         (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
3930         registers.
3931         * config/arm/arm.h (enum reg_class): New caller save register class.
3932         (REG_CLASS_NAMES): Likewise.
3933         (REG_CLASS_CONTENTS): Likewise.
3934         * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
3935         without decls.
3936
3937 2013-05-15  Richard Biener  <rguenther@suse.de>
3938
3939         * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
3940         of MSG_OPTIMIZED_LOCATIONS.
3941         * tree-vect-slp.c (vect_make_slp_decision): Likewise.
3942         (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
3943         message.
3944         * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
3945         of MSG_OPTIMIZED_LOCATIONS.
3946         (execute_vect_slp): Likewise.
3947         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
3948         (vect_create_cond_for_alias_checks): Likewise.
3949         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
3950         (vect_recog_widen_mult_pattern): Likewise.
3951         (vect_recog_widen_sum_pattern): Likewise.
3952         (vect_recog_over_widening_pattern): Likewise.
3953         (vect_recog_widen_shift_pattern): Likewise.
3954         (vect_recog_vector_vector_shift_pattern): Likewise.
3955         (vect_recog_divmod_pattern): Likewise.
3956         (vect_recog_mixed_size_cond_pattern): Likewise.
3957         (vect_recog_bool_pattern): Likewise.
3958         (vect_pattern_recog_1): Likewise.
3959
3960 2013-05-15  Martin Jambor  <mjambor@suse.cz>
3961
3962         * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
3963         non-functions to builtin_unreachable.
3964         * ipa-inline-transform.c (inline_call): Do not assert estimates were
3965         correct when new direct edges were discovered.
3966
3967 2013-05-15  Martin Jambor  <mjambor@suse.cz>
3968
3969         * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
3970         header, print symbol order instead of node uid, print more information
3971         about indirect edge targets.
3972         (ipa_make_edge_direct_to_target): Print symbol order instead of node
3973         uids.
3974         (ipa_make_edge_direct_to_target): Likewise.
3975         (remove_described_reference): Likewise.
3976         (propagate_controlled_uses): Likewise.
3977         (ipa_print_node_params): Also print symbol order.
3978         (ipcp_transform_function): Print symbol order instead of node uids.
3979         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
3980         (cgraph_get_create_real_symbol_node): Likewise.
3981         * ipa-cp.c (print_lattice): Likewise.
3982         (print_all_lattices): Likewise.
3983         (determine_versionability): Likewise.
3984         (initialize_node_lattices): Likewise.
3985         (estimate_local_effects): Likewise.
3986         (update_profiling_info): Likewise.
3987         (create_specialized_node): Likewise.
3988         (perhaps_add_new_callers): Likewise.
3989         (decide_about_value): Likewise.
3990         (decide_whether_version_node): Likewise.
3991         (identify_dead_nodes): Likewise.
3992         * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
3993         (dump_inline_summary): Likewise.
3994         (estimate_node_size_and_time): Likewise.
3995         (inline_analyze_function): Likewise.
3996         * ipa-inline.c (report_inline_failed_reason): Likewise.
3997         (want_early_inline_function_p): Likewise.
3998         (edge_badness): Likewise.
3999         (update_edge_key): Likewise.
4000         (inline_small_functions): Likewise.  Add dumping of order to two other
4001         dumps.
4002         * ipa-pure-const.c (pure_const_read_summary): Print symbol order
4003         instead of node uids.
4004         (propagate_pure_const): Likewise.
4005         (propagate_pure_const): Likewise.
4006         * ipa-utils.c (dump_cgraph_node_set): Likewise.
4007         * lto-cgraph.c (input_node): Explicitly specify we dump uid.
4008         * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
4009         of node uids.
4010         * tree-pretty-print.c (dump_function_header): Likewise.
4011         * tree-sra.c (convert_callers_for_node): Dump in traditional format.
4012         Print symbol order instead of node uids.
4013
4014 2013-05-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4015
4016         * config/s390/s390.c (s390_register_move_cost): Don't impose the
4017         FPR<->GPR move cost penalty if ldgr/lgdr can be used.
4018
4019 2013-05-15  Richard Biener  <rguenther@suse.de>
4020
4021         PR tree-optimization/57275
4022         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
4023         return value for fail to do runtime alias checks for gather loads.
4024
4025 2013-05-15  Jan Hubicka  <jh@suse.cz>
4026
4027         PR lto/57038
4028         PR lto/47375
4029         * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
4030         weakrefs are not external.
4031         (lto_symtab_merge_decls): Fix thinko when dealing with
4032         non-lto_symtab decls.
4033         (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
4034         (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
4035         * varpool.c (dump_varpool_node): Dump more flags.
4036
4037 2013-05-15  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
4038
4039         * config/i386/i386.c (processor_alias_table): Add instruction
4040         FSGSBASE for AMD bdver3 architecture.
4041
4042 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
4043
4044         * tree.c (warn_deprecated_use): Print file:line using locus color.
4045         * diagnostic.c (diagnostic_report_current_module): Print file:line
4046         and file:line:column using locus color.
4047
4048 2013-05-14  Mike Stump  <mikestump@comcast.net>
4049
4050         * gdbinit.in: Add __null.
4051
4052 2013-05-14  Mike Stump  <mikestump@comcast.net>
4053
4054         * recog.h: Rename struct recog_data to Recog_data.
4055         * recog.c: Likewise.
4056         * reload.c (can_reload_into): Likewise.
4057         * config/picochip/picochip.c: Likewise.
4058
4059 2013-05-14  Mike Stump  <mikestump@comcast.net>
4060
4061         * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
4062
4063 2013-05-14  Steven Bosscher  <steven@gcc.gnu.org>
4064
4065         * resource.h (struct resources): Remove unch_memory member.
4066         (CLEAR_RESOURCE): Don't clear unch_memory.
4067         * resource.c (mark_referenced_resources): Don't set it.
4068         (mark_set_resources): Likewise.
4069         (mark_target_live_regs): Don't clear it.
4070         (init_resource_info): Likewise.
4071         * reorg.c (resource_conflicts_p): Don't compare it.
4072         (redundant_insn): Don't set it.
4073
4074         * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
4075         Remove prototypes.
4076         * emit-rtl.c (next_label): Remove unused function.
4077         (skip_consecutive_labels, link_cc0_insns): Move to ...
4078         * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
4079         only place where these functions are used, and make them static.
4080
4081 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
4082
4083         * fold-const.c (fold_negate_expr): Handle vectors.
4084         (fold_truth_not_expr): Make it static.
4085         (fold_invert_truthvalue): New static function.
4086         (invert_truthvalue_loc): Handle vectors. Do not call
4087         fold_truth_not_expr directly.
4088         (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
4089         <TRUTH_NOT_EXPR>: Do not cast to boolean.
4090         (fold_comparison): Handle vector constants.
4091         (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
4092         (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
4093         * tree.h (fold_truth_not_expr): Remove declaration.
4094
4095 2013-05-14  James Greenhalgh  <james.greenhalgh@arm.com>
4096
4097         * config/aarch64/aarch64-simd.md
4098         (aarch64_vcond_internal<mode>): Rename to...
4099         (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
4100         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
4101         float modes. Clarify all iterator modes.
4102         (vcond<mode><mode>): Use new name for vcond expanders.
4103         (vcond<v_cmp_result><mode>): Likewise.
4104         (vcondu<mode><mode>: Likewise.
4105         * config/aarch64/iterators.md (VDQF_COND): New.
4106
4107 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
4108
4109         PR bootstrap/57266
4110         * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
4111         variable for the shift amount. Check that we shift by non-negative
4112         amounts.
4113
4114 2013-05-14  Chung-Lin Tang  <cltang@codesourcery.com>
4115
4116         PR target/42017
4117         * config/arm/arm.h (EPILOGUE_USES): Only return true
4118         for LR_REGNUM after epilogue_completed.
4119
4120 2013-05-14  Joern Rennecke <joern.rennecke@embecosm.com>
4121
4122         * config/avr/avr.c (avr_encode_section_info): Bail out if the type
4123         is error_mark_node.
4124
4125 2013-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4126
4127         PR target/57261
4128         * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
4129         and Solaris 11+/x86 with gld.
4130         * configure: Regenerate.
4131
4132 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
4133
4134         * expmed.c (expand_shift_1): Canonicalize rotates by
4135         constant bitsize / 2 to bitsize - 1.
4136         * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
4137         case ROTATERT>: Likewise.
4138
4139         Revert:
4140         2013-05-10  Jakub Jelinek  <jakub@redhat.com>
4141
4142         * config/i386/i386.md (rotateinv): New code attr.
4143         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
4144         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
4145         roll $31, %eax, etc.
4146
4147 2013-05-14  Richard Biener  <rguenther@suse.de>
4148
4149         PR middle-end/57235
4150         * tree-eh.c (sink_clobbers): Give up for successors with
4151         multiple predecessors and no virtual uses.
4152
4153 2013-05-14  Eric Botcazou  <ebotcazou@adacore.com>
4154
4155         * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
4156         * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
4157
4158 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
4159
4160         PR middle-end/57251
4161         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
4162         the case when both op0 and op1 have VOIDmode.
4163
4164 2013-05-14  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
4165
4166         * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
4167         in multiply-accumulate mode.
4168
4169 2013-05-13  Guozhi Wei  <carrot@google.com>
4170
4171         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
4172
4173 2013-05-13  Kai Tietz  <ktietz@redhat.com>
4174
4175         PR target/56975
4176         * config/i386/cygming.h (TARGET_PECOFF): Define as true.
4177         * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
4178         (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
4179         * config/i386/i386.c (ix86_option_override_internal): Likewise.
4180         (ix86_expand_prologue): Likewise.
4181         (ix86_expand_split_stack_prologue): Likewise.
4182         (legitimate_pic_address_disp_p): Likewise.
4183         (legitimize_pic_address): Likewise.
4184         (legitimize_tls_address): Likewise.
4185         (legitimize_pe_coff_symbol): Likewise.
4186         (output_pic_addr_const): Likewise.
4187         (construct_plt_address): Likewise.
4188         (ix86_expand_call): Likewise.
4189         (x86_output_mi_thunk): Likewise.
4190         (x86_function_profiler): Likewise.
4191
4192 2013-05-13  Sofiane Naci  <sofiane.naci@arm.com>
4193
4194         * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
4195         similar switch cases.
4196         (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
4197         (aarch64_simd_mov_to_<mode>low): Delete.
4198         (aarch64_simd_mov_to_<mode>high): Delete.
4199         (move_lo_quad_<mode>): Add w<-r alternative.
4200         (aarch64_simd_move_hi_quad_<mode>): Likewise.
4201         (aarch64_simd_mov_from_*): Update type attribute.
4202         * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
4203         statement.
4204
4205 2013-05-13  Jan Hubicka  <jh@suse.cz>
4206
4207         * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
4208         * config/i386/i386.c (ix86_compute_frame_layout,
4209         ix86_expand_epilogue, emit_i387_cw_initialization,
4210         ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
4211         ix86_local_alignment): Fix use of size/speed predicates.
4212
4213 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
4214
4215         PR tree-optimization/45216
4216         PR tree-optimization/57157
4217         * tree-ssa-forwprop.c (simplify_rotate): Only recognize
4218         the (-Y) & (B - 1) variant if OP is |.
4219         * expmed.c (expand_shift_1): For rotations by const0_rtx just
4220         return shifted.  Use (-op1) & (prec - 1) as other_amount
4221         instead of prec - op1.
4222
4223 2013-05-13  Martin Jambor  <mjambor@suse.cz>
4224
4225         PR middle-end/42371
4226         * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
4227         (ipa_constant_data): New type.
4228         (ipa_jump_func): Use ipa_constant_data to hold information about
4229         constant jump functions.
4230         (ipa_get_jf_constant): Adjust to jump function type changes.
4231         (ipa_get_jf_constant_rdesc): New function.
4232         (ipa_param_descriptor): New field controlled_uses.
4233         (ipa_get_controlled_uses): New function.
4234         (ipa_set_controlled_uses): Likewise.
4235         * ipa-ref.h (ipa_find_reference): Declare.
4236         * ipa-prop.c (ipa_cst_ref_desc): New type.
4237         (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
4238         changes.
4239         (ipa_set_jf_constant): Likewise.  Also create reference descriptions.
4240         New parameter cs.  Adjust all callers.
4241         (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
4242         (remove_described_reference): New function.
4243         (jfunc_rdesc_usable): Likewise.
4244         (try_make_edge_direct_simple_call): Decrement controlled use count,
4245         attempt to remove reference if it hits zero.
4246         (combine_controlled_uses_counters): New function.
4247         (propagate_controlled_uses): Likewise.
4248         (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
4249         (ipa_edge_duplication_hook): Duplicate reference descriptions.
4250         (ipa_print_node_params): Print described use counter.
4251         (ipa_write_jump_function): Adjust to jump function type changes.
4252         (ipa_read_jump_function): New parameter CS, pass it to
4253         ipa_set_jf_constant.  Adjust caller.
4254         (ipa_write_node_info): Stream controlled use count
4255         (ipa_read_node_info): Likewise.
4256         * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
4257         asserting.
4258         * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
4259         count.  Remove cloning-added reference if it reaches zero.
4260         * ipa-ref.c (ipa_find_reference): New function.
4261
4262 2013-05-13  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
4263
4264         * config/i386/i386.c (processor_target_table): Modified default
4265         alignment values for AMD BD and BT architectures.
4266
4267 2013-05-13  Marc Glisse  <marc.glisse@inria.fr>
4268
4269         * tree-vect-generic.c (uniform_vector_p): Move ...
4270         * tree.c (uniform_vector_p): ... here.
4271         * tree.h (uniform_vector_p): Declare it.
4272         * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
4273         into a scalar.
4274
4275 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
4276
4277         PR tree-optimization/57230
4278         * tree-ssa-strlen.c (handle_char_store): Record length for
4279         array store from STRING_CST.
4280
4281         PR tree-optimization/57230
4282         * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
4283         check.
4284
4285 2013-05-12  Joern Rennecke  <joern.rennecke@embecosm.com>
4286
4287         * config/epiphany/epiphany.c (epiphany_init): Check size of
4288         NUM_MODES_FOR_MODE_SWITCHING.
4289         (epiphany_expand_prologue):
4290         Remove CONFIG_REGNUM initial value handling code.
4291         (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
4292         (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
4293         (emit_set_fp_mode, epiphany_mode_after): Likewise.
4294         (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
4295         Don't return 1 for FP_MODE_NONE.
4296         * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
4297         Add value for EPIPHANY_MSW_ENTITY_CONFIG.
4298         (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
4299         * config/epiphany/epiphany.md (save_config): New pattern.
4300
4301 2013-05-12  Uros Bizjak  <ubizjak@gmail.com>
4302
4303         * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
4304
4305 2013-05-10  Uros Bizjak  <ubizjak@gmail.com>
4306
4307         * config/i386/i386.md (memory): Handle sseishft1.
4308         * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
4309         (*vec_extractv2di_1): Ditto.
4310
4311 2013-05-10  Vladimir Makarov  <vmakarov@redhat.com>
4312
4313         * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
4314         saved registers.
4315
4316 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4317
4318         * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
4319         Add mthumb/march=armv7-a multilib.
4320         Add mthumb/march=armv7-r multilib.
4321         Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
4322
4323 2013-05-10  Ralf Corsépius  <ralf.corsepius@rtems.org>
4324
4325         * config/v850/t-rtems: Add more multilibs.
4326
4327 2013-05-10  Richard Biener  <rguenther@suse.de>
4328
4329         PR tree-optimization/57214
4330         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
4331         not propagate from SSA names that occur in abnormal PHI nodes.
4332
4333 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
4334
4335         * stor-layout.c (element_precision): New function.
4336         * machmode.h (element_precision): Declare it.
4337         * tree.c (build_minus_one_cst): New function.
4338         (element_precision): Likewise.
4339         * tree.h (build_minus_one_cst): Declare new function.
4340         (element_precision): Likewise.
4341         * fold-const.c (operand_equal_p): Use element_precision.
4342         (fold_binary_loc): Handle vector types.
4343         * convert.c (convert_to_integer): Use element_precision.
4344         * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
4345         separately.
4346
4347 2013-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
4348
4349         * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
4350         (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
4351         (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
4352         (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
4353         * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
4354         (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
4355         (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
4356         (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
4357         * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
4358         (Uuw8): New constraints.
4359         (Usb4): Move into alphabetical order.
4360         * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
4361         (sd8_operand, ub8_operand, uw8_operand): New predicates.
4362         * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
4363         previously unnamed patterns.
4364         (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
4365         (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
4366         (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
4367         (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
4368         of set_attr_alternative/if_then_else.  Use extended_mips16 instead
4369         of specific lengths.
4370
4371 2013-05-10  Jakub Jelinek  <jakub@redhat.com>
4372
4373         * config/i386/i386.md (rotateinv): New code attr.
4374         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
4375         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
4376         roll $31, %eax, etc.
4377
4378         PR tree-optimization/45216
4379         PR tree-optimization/57157
4380         * tree-ssa-forwprop.c (simplify_rotate): New function.
4381         (ssa_forward_propagate_and_combine): Call it.
4382
4383 2013-05-10  Richard Biener  <rguenther@suse.de>
4384
4385         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
4386         disable peeling when we version for aliasing.
4387         (vector_alignment_reachable_p): Honor explicit user alignment.
4388         (vect_supportable_dr_alignment): Likewise.
4389         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
4390         STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
4391         * tree-vect-loop.c (vect_transform_loop): First apply versioning,
4392         then peeling to arrange for the cost-model check to come first.
4393
4394 2013-05-10  Alan Modra  <amodra@gmail.com>
4395
4396         * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
4397         (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
4398         * configure: Regenerate.
4399
4400 2013-05-10  Alan Modra  <amodra@gmail.com>
4401
4402         PR target/55033
4403         * varasm.c (default_elf_select_section): Move !DECL_P check..
4404         (get_named_section): ..to here before calling get_section_name.
4405         Adjust assertion.
4406         (default_section_type_flags): Add DECL_P check.
4407         * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
4408         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
4409
4410 2013-05-09  Joern Rennecke  <joern.rennecke@embecosm.com>
4411
4412         * config/epiphany/epiphany.c (epiphany_expand_prologue):
4413         When using gen_stack_adjust_str with a register offset, add a
4414         REG_FRAME_RELATED_EXPR note.
4415
4416 2013-05-09  Uros Bizjak  <ubizjak@gmail.com>
4417
4418         * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
4419         (*vec_extractv4si_zext_mem): Ditto.
4420         (*vec_extractv2di): Add 0->x and x->x alternatives.
4421         * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
4422         * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
4423
4424 2013-05-09  Jason Merrill  <jason@redhat.com>
4425
4426         N3639 C++1y VLA support
4427         * gimplify.c (gimplify_vla_decl): Don't touch an existing
4428         DECL_VALUE_EXPR.
4429
4430         * tree.c (build_constructor_va): New.
4431         * tree.h: Declare it.
4432
4433 2013-05-09  Martin Jambor  <mjambor@suse.cz>
4434
4435         PR lto/57084
4436         * gimple-fold.c (canonicalize_constructor_val): Call
4437         cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
4438
4439 2013-05-09  Jan Hubicka  <jh@suse.cz>
4440             Richard Biener  <rguenther@suse.de>
4441
4442         PR lto/54095
4443         * symtab.c (symtab_make_decl_local): Do not add private names.
4444
4445 2013-05-09  Jan Hubicka  <jh@suse.cz>
4446
4447         PR lto/54095
4448         * symtab.c (insert_to_assembler_name_hash): Handle clones.
4449         (unlink_from_assembler_name_hash): Likewise.
4450         (symtab_prevail_in_asm_name_hash, symtab_register_node,
4451         symtab_unregister_node, symtab_initialize_asm_name_hash,
4452         change_decl_assembler_name): Update.
4453
4454 2013-05-09  Sofiane Naci  <sofiane.naci@arm.com>
4455
4456         * config/aarch64/aarch64.md: New movtf split.
4457         (*movtf_aarch64): Update.
4458         (aarch64_movdi_tilow): Handle TF modes and rename to
4459         aarch64_movdi_<mode>low.
4460         (aarch64_movdi_tihigh): Handle TF modes and rename to
4461         aarch64_movdi_<mode>high
4462         (aarch64_movtihigh_di): Handle TF modes and rename to
4463         aarch64_mov<mode>high_di
4464         (aarch64_movtilow_di): Handle TF modes and rename to
4465         aarch64_mov<mode>low_di
4466         (aarch64_movtilow_tilow): Remove spurious whitespace.
4467         * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
4468         splits.
4469         (aarch64_print_operand): Update.
4470
4471 2013-05-09  Alan Modra  <amodra@gmail.com>
4472
4473         * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
4474         powerpc64le.
4475         * configure: Regenerate.
4476
4477 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
4478
4479         * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
4480         splitter preparation statements.
4481         * config/i386/sse.md (*vec_extract* splitters): Ditto.
4482         (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
4483         adjust_address_nv.
4484
4485 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4486
4487         * gimple-ssa-strength-reduction.c (count_candidates): Change
4488         return value to int.
4489         (analyze_candidates_and_replace): Change type of length to int.
4490
4491 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
4492
4493         * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
4494         (*vec_extract<mode>): Use VI12_128 mode iterator.
4495         (*vec_extract<mode>_mem): Ditto.
4496         (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
4497         attribute.
4498
4499 2013-05-08  Diego Novillo  <dnovillo@google.com>
4500
4501         PR bootstrap/54659
4502
4503         Revert:
4504         2012-08-17  Diego Novillo  <dnovillo@google.com>
4505
4506         PR bootstrap/54281
4507         * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
4508         * config.in: Regenerate.
4509         * configure: Regenerate.
4510         * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4511
4512 2013-05-08  Jan Hubicka  <jh@suse.cz>
4513
4514         PR lto/54095
4515         * cgraph.c (cgraph_make_node_local_1): Se unique_name.
4516         * cgraph.h (symtab_node_base): Add unique_name.
4517         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
4518         input_overwrite_node, input_varpool_node): Stream unique_name.
4519         * cgraphclones.c (cgraph_create_virtual_clone,
4520         cgraph_function_versioning): Set unique_name.
4521         * ipa.c (function_and_variable_visibility): Set unique_name.
4522
4523 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4524
4525         * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
4526         (alloc_cand_and_find_basis): Restrict conditional candidate
4527         processing to CAND_MULTs.
4528
4529 2013-05-08  Jan Hubicka  <jh@suse.cz>
4530
4531         PR lto/54095
4532         lto-symtab.c (lto_symtab_symbol_p): New function.
4533         (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
4534         lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
4535         lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
4536         Skip static symbols.
4537
4538 2013-05-08  Paolo Carlini  <paolo.carlini@oracle.com>
4539
4540         PR tree-optimization/57200
4541         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
4542         Only call inform if the preceding warning_at returns true.
4543
4544 2013-05-07  Han Shen  <shenhan@google.com>
4545
4546         * cfgexpand.c (record_or_union_type_has_array_p): New function.
4547         (expand_used_vars): Add logic handling '-fstack-protector-strong'.
4548         * common.opt (fstack-protector-strong): New option.
4549         * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
4550         * doc/invoke.texi (Optimization Options): Document
4551         "-fstack-protector-strong".
4552         * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
4553
4554 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
4555
4556         * config/mips/mips.c (mips_machine_reorg2): Return 0.
4557
4558 2013-05-07  Vladimir Makarov  <vmakarov@redhat.com>
4559
4560         * ira.c (update_equiv_regs): Add insn having equiv memory even if
4561         it is not lhs of the insn.
4562         (setup_reg_equiv): Remove insn having equiv memory which it is not
4563         lhs of the insn.
4564         * lra-constraints.c (process_address): Try to improve generation
4565         code for address base + disp.
4566         (lra_constraints): Make correct the code for checking insn setting
4567         up backward equivalence.  Remove insn only if it is in the init
4568         insn list.
4569         * lra-eliminations.c (update_reg_eliminate): Change return value.
4570         (lra_eliminate): Use the result.
4571
4572 2013-05-07  Uros Bizjak  <ubizjak@gmail.com>
4573
4574         * config/i386/sse.md (ssescalarnummask): New mode attribute.
4575         (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
4576         (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
4577         *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
4578         register target operands.
4579         (*vec_extractv8hi_sse2): New pattern.
4580         (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
4581         (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
4582         (*vec_extract<mode>_mem): New insn and split pattern.
4583
4584 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
4585
4586         * config/arm/arm.c (arm_asan_shadow_offset): New function.
4587         (TARGET_ASAN_SHADOW_OFFSET): Define.
4588         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
4589         (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
4590
4591 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4592
4593         * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
4594         (incr_vec_index): Return -1 if increment not found.
4595         (create_add_on_incoming_edge): Assert if increment not found.
4596         (record_increment): Limit number of increments recorded.
4597         (all_phi_incrs_profitable): Return false if an increment not found.
4598         (replace_profitable_candidates): Don't process increments that were
4599         not recorded.
4600         (analyze_candidates_and_replace): Limit size of incr_vec.
4601
4602 2013-05-07  Richard Biener  <rguenther@suse.de>
4603
4604         * calls.c (special_function_p): setjmp-like functions are leaf.
4605         * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
4606         * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
4607
4608 2013-05-07  Sofiane Naci  <sofiane.naci@arm.com>
4609
4610         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
4611         (aarch64_simd_mov<mode>): New expander.
4612         (aarch64_simd_mov_to_<mode>low): New instruction pattern.
4613         (aarch64_simd_mov_to_<mode>high): Likewise.
4614         (aarch64_simd_mov_from_<mode>low): Likewise.
4615         (aarch64_simd_mov_from_<mode>high): Likewise.
4616         (aarch64_dup_lane<mode>): Update.
4617         (aarch64_dup_lanedi): New instruction pattern.
4618         * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
4619         * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
4620
4621 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4622
4623         * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
4624         (replace_mult_candidate): Remove unnecessary argument; remove
4625         unnecessary parameter from call to introduce_cast_before_cand.
4626         (replace_unconditional_candidate): Remove unnecessary parameter
4627         from call to replace_mult_candidate.
4628         (replace_conditional_candidate): Likewise.
4629         (insert_initializers): Use make_temp_ssa_name.
4630         (introduce_cast_before_cand): Remove unnecessary argument; use
4631         make_temp_ssa_name.
4632         (replace_one_candidate): Remove unnecessary argument; remove
4633         unnecessary parameter from calls to introduce_cast_before_cand.
4634         (replace_profitable_candidates): Remove unnecessary parameters
4635         from calls to replace_one_candidate.
4636
4637 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4638
4639         * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
4640         phi def as possibly hiding a basis for a CAND_ADD whose operands
4641         have been commuted in the analysis.
4642         (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
4643
4644 2013-05-07  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4645
4646         * config/aarch64/aarch64.md
4647         (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
4648         shift value between 0-4.
4649
4650 2013-05-07  Richard Biener  <rguenther@suse.de>
4651
4652         * double-int.h (rshift): New overload.
4653         * double-int.c (rshift): New function.
4654         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
4655         (create_reference_ops_from_ref): Remove.
4656         (vn_reference_insert): Use shared ops for constructing the
4657         reference and copy it.
4658
4659 2013-05-07  Richard Biener  <rguenther@suse.de>
4660
4661         PR middle-end/57190
4662         * tree-eh.c (sink_clobbers): Properly propagate
4663         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
4664
4665 2013-05-07  Jakub Jelinek  <jakub@redhat.com>
4666
4667         PR tree-optimization/57149
4668         * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
4669         (can_skip_redundant_opnd, compute_uninit_opnds_pos,
4670         collect_phi_def_edges, execute_late_warn_uninitialized): Use
4671         uninit_undefined_value_p instead of ssa_undefined_value_p.
4672
4673         PR debug/57184
4674         * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
4675         for modifier == EXPAND_INITIALIZER.
4676
4677 2013-05-07  Anton Blanchard  <anton@samba.org>
4678
4679         * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
4680         for powerpc64 little endian.
4681         * configure: Regenerate.
4682
4683 2013-05-06  Graham Stott  <grahams@btinternet.com>
4684
4685         * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
4686         mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
4687         wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
4688         shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
4689
4690 2013-05-06  Graham Stott  <grahams@btinternet.com>
4691
4692         * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
4693         codes which allow non-lvalues.
4694
4695 2013-05-06  Marc Glisse  <marc.glisse@inria.fr>
4696
4697         * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
4698         components are all 1s.
4699         (integer_minus_onep): New function.
4700         * tree.h (integer_minus_onep): Declare it.
4701         * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
4702         integer_minus_onep instead of integer_all_onesp.
4703
4704 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
4705
4706         PR target/52933
4707         * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
4708         variations of these patterns.
4709
4710 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
4711
4712         * config/i386/i386.md (isa): Add x64_sse4 member.
4713         (enabled): Handle x64_sse4.
4714         (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
4715         instruction for 64bit SSE4_1 targets.  Update insn attributes.
4716         (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
4717         instruction for SSE4_1 targets.  Update insn attributes.
4718         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
4719         with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
4720         (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
4721         const_1 selector.
4722         (*vec_extractv4si): Rename from *sse4_1_pextrd.
4723         (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
4724         (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
4725
4726 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
4727
4728         PR target/57108
4729         * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
4730
4731 2013-05-06  Maxim Kuznetsov  <maks.kuznetsov@gmail.com>
4732
4733         * final.c (do_assembler_dialects): Don't handle curly braces and
4734         vertical bar escaped by % as dialect delimiters.
4735         (output_asm_insn): Print curly braces and vertical bar if escaped
4736         by % and ASSEMBLER_DIALECT defined.
4737         * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
4738         * doc/tm.texi: Regenerated.
4739
4740 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
4741
4742         * config/mips/mips.c: Include tree-pass.h.
4743         (mips_reorg): Split in pre- and post-dbr_schedule parts.
4744         (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
4745         (pass_mips_machine_reorg2): New machine specific pass.
4746         (insert_pass_mips_machine_reorg2): New pass plugin definition.
4747         (mips_option_override): Register the new pass.
4748         * rtl.h (cleanup_barriers): Remove prototype.
4749         (dbr_schedule): Likewise.
4750         * jump.c (cleanup_barriers): Make static.
4751         * reorg.c (dbr_schedule): Likewise.
4752
4753 2013-05-06  Richard Biener  <rguenther@suse.de>
4754
4755         PR tree-optimization/57185
4756         * tree-parloops.c (add_field_for_reduction): Handle anonymous
4757         SSA names properly.
4758
4759 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
4760
4761         PR target/57106
4762         * config/i386/i386.c (add_parameter_dependencies): Add dependence
4763         between "first_arg" and "insn", not "last" and "insn".
4764
4765 2013-05-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4766
4767         * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
4768         (find_candidates_in_block): Re-enable slsr_process_phi.
4769         (create_phi_basis): Fix double counting of candidate adjustment.
4770
4771 2013-05-06  Richard Biener  <rguenther@suse.de>
4772
4773         PR middle-end/57147
4774         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
4775         the edge is also fallthru, preserve it and just clear the
4776         abnormal flag.
4777         * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
4778         also complex, preserve that and just clear the fallthru flag.
4779         * tree-inline.c (update_ssa_across_abnormal_edges): Also
4780         update virtual operands.
4781
4782 2013-05-06  Alan Modra  <amodra@gmail.com>
4783
4784         * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
4785         (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
4786         * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
4787         * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
4788         (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
4789         * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
4790
4791 2013-05-06  Alan Modra  <amodra@gmail.com>
4792
4793         * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
4794         (ASM_SPEC): ..here.  Emit DEFAULT_ASM_ENDIAN too.
4795         (DEFAULT_ASM_ENDIAN): Define.
4796         (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
4797         * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
4798         Update -K PIC clause from sysv4.h.
4799         (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
4800         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
4801
4802 2013-05-06  Alan Modra  <amodra@gmail.com>
4803
4804         * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
4805         twice for little-endian.
4806         (ashrdi3_no_power, ashrdi3): Support little-endian.
4807
4808 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
4809
4810         PR target/55303
4811         * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
4812         * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
4813         related expanders.
4814         * config/sh/iterators.md (SMIN_SMAX): New code iterator.
4815         * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
4816         clips_min_const_int, clips_max_const_int, clipu_max_const_int):
4817         New predicates.
4818
4819 2013-05-05  Steven Bosscher  <steven@gcc.gnu.org>
4820             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4821
4822         * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
4823         * config/pa/pa.opt: Make mbig-switch a no-op.
4824         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
4825         (CASE_VECTOR_MODE): Always return SImode.
4826         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
4827         for the !TARGET_BIG_SWITCH case.
4828         * config/pa/pa-linux.h: Likewise.
4829         * config/pa/pa-openbsd.h: Likewise.
4830         * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
4831         * config/pa/pa.md (short_jump): Remove define_insn.
4832         (casesi): Remove code for the !TARGET_BIG_SWITCH case.
4833         (casesi0): Remove define_insn.
4834         (type): Remove btable_branch.
4835         (pa_combine_type): Likewise.
4836         (in_nullified_branch_delay): Likewise.
4837         (in_call_delay): Likewise.
4838         (define_delay): Likewise.
4839         (define_insn_reservation "Z3"): Likewise.
4840         (define_insn_reservation "Z4"): Likewise.
4841         * config/pa/pa.c  (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
4842         (pa_adjust_insn_length): Remove adjustment for btable branches.
4843         * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
4844         and mno-big-switch
4845
4846 2013-05-05  Uros Bizjak  <ubizjak@gmail.com>
4847
4848         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
4849         from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
4850         Add m->r,x alternatives.
4851         (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
4852         splitters using SWI48x mode iterator.
4853         (*vec_extract_v2di_0_sse): Rename from *sse2_storeq.  Disable for
4854         TARGET_64BIT.  Add m->x alternative.
4855         (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
4856         Add o->x alternative.  Enable for TARGET_SSE.
4857         (sse_storeq): Remove expander.
4858         (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
4859         with memory input operand.
4860         (*vec_extractv2di_1 splitter): New.
4861         (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
4862         * config/i386/i386.md (ssevecmodelower): New mode attribute.
4863
4864 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
4865
4866         * config/rs6000/rs6000.c (INT_P): Reformat.  Delete obsolete comment.
4867         (INT_LOWPART): Delete.
4868         (extract_MB): Adjust.
4869         (extract_ME): Adjust.
4870         (print_operand): Adjust.
4871
4872 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
4873
4874         * config/rs6000/predicates.md (reg_or_add_cint_operand,
4875         reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
4876         (reg_or_logical_cint_operand, easy_fp_constant,
4877         logical_const_operand): Delete "CONST_DOUBLE" case.
4878         * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
4879         "HOST_BITS_PER_WIDE_INT == 64" test.
4880         (num_insns_constant): Ditto.  Delete CONST_DOUBLE DImode/VOIDmode case.
4881         (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
4882         (rs6000_emit_set_const): Delete CONST_DOUBLE case.
4883         (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
4884         test.
4885         (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
4886         CONST_DOUBLE DImode/VOIDmode case.
4887         (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
4888         (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
4889         CONST_DOUBLE VOIDmode case.
4890         (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
4891         (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
4892         * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
4893         Delete CONST_DOUBLE case.
4894         (splitters for mov FMOVE64 const_double): Delete
4895         "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
4896         "HOST_BITS_PER_WIDE_INT >= 64" test.
4897         (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
4898         case.
4899         (mov DI const_double): Delete.
4900
4901 2013-05-04  Jakub Jelinek  <jakub@redhat.com>
4902
4903         * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
4904         on op shows all bits zero in mode of a lowpart subreg, return zero.
4905
4906 2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
4907
4908         PR target/57150
4909         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
4910         to save TFmode registers and DImode to save TImode registers for
4911         caller save operations.
4912         (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
4913         mark being partially clobbered since they only use the first
4914         double word.
4915
4916         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
4917         and TDmode only use the upper 64-bits of each VSX register.
4918
4919 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4920
4921         * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
4922         (find_candidates_in_block): Disable slsr_process_phi.
4923
4924 2013-05-03  Guozhi Wei  <carrot@google.com>
4925
4926         * coverage.c (coverage_obj_init): Move the construction of gcov
4927         constructor to ...
4928         (build_init_ctor): ... here.
4929
4930 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4931
4932         * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
4933         (slsr_cand_d): Redefine def_phi.
4934         (stride_status, phi_adjust_status, count_phis_status): New enums.
4935         (find_phi_def): New.
4936         (find_basis_for_base_expr): New.
4937         (find_basis_for_candidate): Handle hidden bases.
4938         (alloc_cand_and_find_basis): Handle phi candidates.
4939         (slsr_process_phi): New.
4940         (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
4941         (create_mul_imm_cand): Likewise.
4942         (create_add_ssa_cand): Exclude phi base candidates.
4943         (create_add_imm_cand): Likewise.
4944         (slsr_process_cast): Likewise.
4945         (slsr_process_copy): Likewise.
4946         (find_candidates_in_block): Handle phi candidates.
4947         (dump_candidate): Likewise.
4948         (unconditional_cands): Delete.
4949         (unconditional_cands_with_known_stride_p): Delete.
4950         (phi_dependent_cand_p): New.
4951         (cand_increment): Handle phi-dependent candidates.
4952         (replace_dependent): Delete.
4953         (replace_mult_candidate): New.
4954         (replace_unconditional_candidate): New.
4955         (incr_vec_index): Move to avoid forward reference.
4956         (create_add_on_incoming_edge): New.
4957         (create_phi_basis): New.
4958         (replace_dependents): Delete.
4959         (replace_conditional_candidate): New.
4960         (phi_add_costs): New.
4961         (replace_uncond_cands_and_profitable_phis): New.
4962         (record_increment): Handle phi adjustments.
4963         (record_phi_increments): New.
4964         (record_increments): Handle phi adjustments.
4965         (phi_incr_cost): New.
4966         (lowest_cost_path): Handle phis.
4967         (total_savings): Likewise.
4968         (analyze_increments): Likewise.
4969         (ncd_with_phi): New.
4970         (ncd_of_cand_and_phis): New.
4971         (nearest_common_dominator_for_cands): Handle phi increments.
4972         (all_phi_incrs_profitable): New.
4973         (replace_profitable_candidates): Handle phi-dependent candidates.
4974         (analyze_candidates_and_replace): Likewise.
4975
4976 2013-05-03  Teresa Johnson  <tejohnson@google.com>
4977
4978         PR bootstrap/57154
4979         * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
4980         do not exceed REG_BR_PROB_BASE.
4981
4982 2013-05-03  Jeff Law  <law@redhat.com>
4983
4984         PR tree-optimization/57144
4985         * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
4986         operand of the condition will bit into the new type when eliminating
4987         a cast feeding a condition.
4988
4989 2013-05-03  Jakub Jelinek  <jakub@redhat.com>
4990
4991         PR rtl-optimization/57130
4992         * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
4993         of COMPARE as in_code to the recursive call if needed.
4994
4995 2013-05-03  Uros Bizjak  <ubizjak@gmail.com>
4996
4997         * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
4998         (enabled): Handle new members.
4999         * config/i386/sse.md (*vec_concatv2si): Merge from
5000         *vec_concatv2si_sse2 and vec_concatv2si_sse.
5001         (vec_concatv2di): Merge with *vec_concatv2di_rex64.
5002
5003 2013-05-03  Joern Rennecke <joern.rennecke@embecosm.com>
5004
5005         PR tree-optimization/57027
5006         * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
5007         for fnms opportunity, check we got the prerequisite kind
5008         of tree / gimple before using accessor functions.
5009
5010 2013-05-03  Richard Biener  <rguenther@suse.de>
5011
5012         * double-int.h (lshift): New overload without precision
5013         and arith argument.
5014         (operator *=, operator +=, operator -=): Move ...
5015         * double-int.c (operator *=, operator +=, operator -=): ... here
5016         and implement more efficiently.
5017         (mul_double_with_sign): Remove.
5018         (lshift_double): Adjust to take unsinged shift argument, push
5019         dispatching code to callers.
5020         (mul_double_wide_with_sign): Add early out for callers that
5021         are not interested in high parts or overflow.
5022         (lshift): New function.
5023         (lshift, rshift, alshift, arshift, llshift, lrshift): Add
5024         dispatch code here.
5025         (lrotate, rrotate): Use logical shifts.
5026         * expr.c (get_inner_reference): Use lshift.
5027         * fixed-value.c (do_fixed_divide): Likewise.
5028         * tree-dfa.c (get_ref_base_and_extent): Likewise.
5029         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
5030         (indirect_refs_may_alias_p): Likewise.
5031         (stmt_kills_ref_p_1): Likewise.
5032
5033 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
5034
5035         * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
5036
5037 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
5038
5039         * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
5040         scalar form of FABD instruction.
5041
5042 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
5043
5044         * lra-constraints.c (process_alt_operands): Add checking alt
5045         number to choose the best alternative.
5046
5047 2013-05-02  Richard Biener  <rguenther@suse.de>
5048
5049         * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
5050         bitmap and its handling.
5051         (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
5052
5053 2013-05-02  Richard Biener  <rguenther@suse.de>
5054
5055         PR middle-end/57140
5056         * tree-inline.c (copy_loops): Properly handle removed loops.
5057         (copy_cfg_body): Mark destination loops for fixup if source
5058         loops needed fixup.
5059
5060 2013-05-02  Greta Yorsh  <Greta.Yorsh@arm.com>
5061
5062         PR target/56732
5063         * config/arm/arm.c (arm_expand_epilogue): Check really_return before
5064         generating simple_return for naked functions.
5065
5066 2013-05-02  Martin Jambor  <mjambor@suse.cz>
5067
5068         PR middle-end/56988
5069         * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
5070         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
5071         flags match.
5072         (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
5073         ipa_agg_replacement_value structures.
5074         (known_aggs_to_agg_replacement_list): Likewise.
5075         * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
5076         (read_agg_replacement_chain): Likewise.
5077         (ipcp_transform_function): Also check that by_ref flags match.
5078
5079 2013-05-02  Richard Biener  <rguenther@suse.de>
5080
5081         * graphds.h (struct graph): Add obstack member.
5082         * graphds.c (new_graph): Initialize obstack and allocate
5083         vertices from it.
5084         (add_edge): Allocate edge from the obstack.
5085         (free_graph): Free the obstack instead of all edges and vertices.
5086
5087 2013-05-02  Teresa Johnson  <tejohnson@google.com>
5088
5089         * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
5090         divides.
5091         * cfg.c (update_bb_profile_for_threading): Ditto.
5092         * tree-inline.c (copy_bb): Ditto.
5093         (copy_edges_for_bb): Ditto.
5094         (initialize_cfun): Ditto.
5095         (copy_cfg_body): Ditto.
5096         (expand_call_inline): Ditto.
5097         * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
5098         (estimate_node_size_and_time): Ditto.
5099         (inline_merge_summary): Ditto.
5100         * cgraphclones.c (cgraph_clone_edge): Ditto.
5101         (cgraph_clone_node): Ditto.
5102         * sched-rgn.c (compute_dom_prob_ps): Ditto.
5103         (compute_trg_info): Ditto.
5104
5105 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
5106
5107         * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
5108         S reg when fp attribute set.
5109         (movdi_aarch64): Only allow to/from D reg when fp attribute set.
5110
5111 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
5112
5113         * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
5114         New pattern.
5115         (*and_one_cmplsi3_compare0_uxtw): Likewise.
5116         (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
5117         (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
5118
5119 2013-05-02  Richard Biener  <rguenther@suse.de>
5120
5121         * tree-scalar-evolution.c (scev_info_hasher): Remove.
5122         (struct instantiate_cache_entry): New type.
5123         (struct instantiate_cache_entry_hasher): New hashtable descriptor.
5124         (struct instantiate_cache_type): New type.
5125         (set_instantiated_value, get_instantiated_value): Remove.
5126         (get_instantiated_value_entry): New function.
5127         (instantiate_scev_name): Use the new cache and adjust.
5128         (instantiate_scev_poly): Adjust.
5129         (instantiate_scev_binary): Likewise.
5130         (instantiate_array_ref): Likewise.
5131         (instantiate_scev_convert): Likewise.
5132         (instantiate_scev_not): Likewise.
5133         (instantiate_scev_3): Likewise.
5134         (instantiate_scev_2): Likewise.
5135         (instantiate_scev_r): Likewise.
5136         (instantiate_scev): Likewise.
5137         (resolve_mixers): Likewise.
5138
5139 2013-05-01  Vladimir Makarov  <vmakarov@redhat.com>
5140
5141         PR target/57091
5142         * lra-constraints.c (best_small_class_operands_num): Remove.
5143         (process_alt_operands): Remove small_class_operands_num.  Take
5144         small classes operands into losers and only if the operand is not
5145         matched.  Modify debugging output.
5146         (curr_insn_transform): Remove best_small_class_operands_num.
5147         Print insn name.
5148
5149 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
5150
5151         * config/aarch64/aarch64-builtins.c
5152         (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
5153         * config/aarch64/aarch64-simd-builtins.def
5154         (reduc_splus_): Add new modes.
5155         (reduc_uplus_): New.
5156         * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
5157         (reduc_uplus_v4sf): Likewise.
5158         (reduc_splus_v4sf): Likewise.
5159         (aarch64_addv<mode>): Likewise.
5160         (reduc_uplus_<mode>): Likewise.
5161         (reduc_splus_<mode>): Likewise.
5162         (aarch64_addvv2di): Likewise.
5163         (reduc_uplus_v2di): Likewise.
5164         (reduc_splus_v2di): Likewise.
5165         (aarch64_addvv2si): Likewise.
5166         (reduc_uplus_v2si): Likewise.
5167         (reduc_splus_v2si): Likewise.
5168         (reduc_<sur>plus_<mode>): New.
5169         (reduc_<sur>plus_v2di): Likewise.
5170         (reduc_<sur>plus_v2si): Likewise.
5171         (reduc_<sur>plus_v4sf): Likewise.
5172         (aarch64_addpv4sf): Likewise.
5173         * config/aarch64/arm_neon.h
5174         (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
5175         * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
5176         add UNSPEC_SADDV, UNSPEC_UADDV.
5177         (SUADDV): New.
5178         (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
5179
5180 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
5181
5182         * config/aarch64/arm_neon.h
5183         (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
5184
5185 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
5186
5187         * config/aarch64/aarch64-builtins
5188         (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
5189
5190 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
5191
5192         * config/aarch64/aarch64-simd-builtins.def
5193         (reduc_smax_): New.
5194         (reduc_smin_): Likewise.
5195         (reduc_umax_): Likewise.
5196         (reduc_umin_): Likewise.
5197         (reduc_smax_nan_): Likewise.
5198         (reduc_smin_nan_): Likewise.
5199         (fmax): Remove.
5200         (fmin): Likewise.
5201         (smax): Update for V2SF, V4SF and V2DF modes.
5202         (smin): Likewise.
5203         (smax_nan): New.
5204         (smin_nan): Likewise.
5205         * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
5206         (<su><maxmin><mode>3): ...This, refactor.
5207         (s<maxmin><mode>3): New.
5208         (<maxmin_uns><mode>3): Likewise.
5209         (reduc_<maxmin_uns>_<mode>): Refactor.
5210         (reduc_<maxmin_uns>_v4sf): Likewise.
5211         (reduc_<maxmin_uns>_v2si): Likewise.
5212         (aarch64_<fmaxmin><mode>: Remove.
5213         * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
5214         new builtin names.
5215         (vmin<q>_f<32,64>): Likewise.
5216         * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
5217         (FMAXMIN): New.
5218         (su): Add mappings for smax, smin, umax, umin.
5219         (maxmin): New.
5220         (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
5221         (FMAXMIN): Rename as...
5222         (FMAXMIN_UNS): ...This.
5223         (maxminv): Remove.
5224         (fmaxminv): Likewise.
5225         (fmaxmin): Likewise.
5226         (maxmin_uns): New.
5227         (maxmin_uns_op): Likewise.
5228
5229 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
5230
5231         * config/aarch64/arm_neon.h
5232         (vac<ge, gt><sd>_f<32, 64>): Rename to...
5233         (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
5234         (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
5235
5236 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
5237
5238         * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
5239         * config/aarch64/iterators.md (FAC_COMPARISONS): New.
5240
5241 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
5242
5243         * config/aarch64/aarch64-simd.md
5244         (vcond<mode>_internal): Handle special cases for constant masks.
5245         (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
5246         (vcondu<mode><mode>): Likewise.
5247         (vcond<v_cmp_result><mode>): New.
5248
5249 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
5250
5251         * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
5252         (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
5253         * config/aarch64/aarch64-simd-builtins.def
5254         (cmeq): Update to BUILTIN_VALLDI.
5255         (cmgt): Likewise.
5256         (cmge): Likewise.
5257         (cmle): Likewise.
5258         (cmlt): Likewise.
5259         * config/aarch64/arm_neon.h
5260         (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
5261         to builtins or C as appropriate.
5262
5263 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
5264
5265         * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
5266         (cmgeu): ...This.
5267         (cmhi): Rename to...
5268         (cmgtu): ...This.
5269         * config/aarch64/aarch64-simd.md
5270         (simd_mode): Add SF.
5271         (aarch64_vcond_internal): Use new names for unsigned comparison insns.
5272         (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
5273         * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
5274         (cstore<mode>_neg): ...This.
5275         * config/aarch64/iterators.md
5276         (VALLF): new.
5277         (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
5278         (COMPARISONS): New.
5279         (UCOMPARISONS): Likewise.
5280         (optab): Add missing comparisons.
5281         (n_optab): New.
5282         (cmp_1): Likewise.
5283         (cmp_2): Likewise.
5284         (CMP): Likewise.
5285         (cmp): Remove.
5286         (VCMP_S): Likewise.
5287         (VCMP_U): Likewise.
5288         (V_cmp_result): Add DF, SF modes.
5289         (v_cmp_result): Likewise.
5290         (v): Likewise.
5291         (vmtype): Likewise.
5292         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
5293
5294 2013-05-01  Greta Yorsh  <Greta.Yorsh@arm.com>
5295
5296         * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
5297         define_insn to define_insn_and_split.
5298         (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
5299         (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
5300         (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
5301         (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
5302         (thumb2_negscc): Likewise.
5303
5304 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
5305
5306         * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
5307
5308 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
5309
5310         * config/arm/thumb2.md: Remove trailing whitespaces.
5311
5312 2013-04-30  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
5313
5314         * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
5315         Use gen_int_mode rather than GEN_INT.
5316
5317 2013-04-30  H.J. Lu  <hongjiu.lu@intel.com>
5318
5319         * value-prof.c (stream_in_histogram_value): Remove the strayed
5320         debug_gimple_stmt.
5321
5322 2013-04-30  Richard Biener  <rguenther@suse.de>
5323
5324         PR middle-end/57122
5325         * cfghooks.c (split_edge): Properly check for the loop latch edge.
5326
5327 2013-04-30  Richard Biener  <rguenther@suse.de>
5328
5329         PR middle-end/57107
5330         * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
5331
5332 2013-04-30  Andrey Belevantsev  <abel@ispras.ru>
5333
5334         PR rtl-optimization/56957
5335         PR rtl-optimization/57105
5336         * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
5337         variable.  Use just INSN_UID for determining whether an insn
5338         should be only disconnected from the insn stream.
5339         * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
5340
5341 2013-04-30  Jakub Jelinek  <jakub@redhat.com>
5342
5343         PR tree-optimization/57104
5344         * tsan.c (instrument_expr): Don't instrument accesses to
5345         DECL_HARD_REGISTER VAR_DECLs.
5346
5347 2013-04-30  Richard Biener  <rguenther@suse.de>
5348
5349         * function.h (loops_for_fn): New inline function.
5350         (set_loops_for_fn): Likewise.
5351         * cfgloop.h (place_new_loop): Add struct function parameter.
5352         (get_loop): Likewise.
5353         (get_loops): Likewise.
5354         (number_of_loops): Likewise.
5355         (fel_next): Adjust.
5356         (fel_init): Likewise.
5357         * cfg.c (get_loop_copy): Adjust.
5358         * cfgloop.c (flow_loops_dump): Likewise.
5359         (record_loop_exits): Likewise.
5360         (verify_loop_structure): Likewise.
5361         * cfgloopanal.c (mark_irreducible_loops): Likewise.
5362         (estimate_reg_pressure_cost): Likewise.
5363         (mark_loop_exit_edges): Likewise.
5364         * cfgloopmanip.c (place_new_loop): Likewise.
5365         (add_loop): Likewise.
5366         (duplicate_loop): Likewise.
5367         * graph.c (draw_cfg_nodes): Likewise.
5368         * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
5369         * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
5370         (extract_affine_chrec): Likewise.
5371         (build_scop_iteration_domain): Likewise.
5372         * graphite.c (graphite_initialize): Likewise.
5373         * ira-build.c (create_loop_tree_nodes): Likewise.
5374         (more_one_region_p): Likewise.
5375         (rebuild_regno_allocno_maps): Likewise.
5376         (mark_loops_for_removal): Likewise.
5377         (mark_all_loops_for_removal): Likewise.
5378         (remove_unnecessary_regions): Likewise.
5379         (ira_build): Likewise.
5380         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
5381         * loop-init.c (fix_loop_structure): Likewise.
5382         (gate_rtl_move_loop_invariants): Likewise.
5383         (gate_rtl_unswitch): Likewise.
5384         (gate_rtl_unroll_and_peel_loops): Likewise.
5385         (rtl_doloop): Likewise.
5386         * lto-streamer-in.c (input_cfg): Likewise.
5387         * lto-streamer-out.c (output_cfg): Likewise.
5388         * modulo-sched.c (sms_schedule): Likewise.
5389         * predict.c (tree_estimate_probability): Likewise.
5390         (tree_estimate_probability_driver): Likewise.
5391         (estimate_loops): Likewise.
5392         * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
5393         (move_sese_region_to_fn): Likewise.
5394         (debug_loop_num): Likewise.
5395         * tree-chrec.c (chrec_evaluate): Likewise.
5396         (hide_evolution_in_other_loops_than_loop): Likewise.
5397         (chrec_component_in_loop_num): Likewise.
5398         (reset_evolution_in_loop): Likewise.
5399         (evolution_function_is_invariant_rec_p): Likewise.
5400         * tree-if-conv.c (main_tree_if_conversion): Likewise.
5401         * tree-inline.c (copy_loops): Likewise.
5402         (copy_cfg_body): Likewise.
5403         (tree_function_versioning): Likewise.
5404         * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
5405         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
5406         Likewise.
5407         (add_to_evolution_1): Likewise.
5408         (scev_const_prop): Likewise.
5409         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
5410         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
5411         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
5412         (tree_ssa_lim_initialize): Likewise.
5413         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
5414         (verify_loop_closed_ssa): Likewise.
5415         * tree-ssa-loop.c  (tree_ssa_loop_init): Likewise.
5416         (tree_ssa_loop_im): Likewise.
5417         (tree_ssa_loop_unswitch): Likewise.
5418         (tree_vectorize): Likewise.
5419         (check_data_deps): Likewise.
5420         (tree_ssa_loop_ivcanon): Likewise.
5421         (tree_ssa_loop_bounds): Likewise.
5422         (tree_complete_unroll): Likewise.
5423         (tree_complete_unroll_inner): Likewise.
5424         (tree_parallelize_loops): Likewise.
5425         (tree_ssa_loop_prefetch): Likewise.
5426         (tree_ssa_loop_ivopts): Likewise.
5427         * tree-ssa.c (execute_update_addresses_taken): Liekwise.
5428         * tree-vectorizer.c (vectorize_loops): Likewise.
5429
5430 2013-04-29  Mike Frysinger  <vapier@gentoo.org>
5431
5432         * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
5433         (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
5434         * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
5435         with EABI_LINK_SPEC.
5436
5437 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
5438
5439         PR target/44578
5440         * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
5441         alternative.
5442
5443 2013-04-29  Vladimir Makarov  <vmakarov@redhat.com>
5444
5445         PR target/57097
5446         * lra-constraints.c (process_alt_operands): Discourage a bit more
5447         using memory for pseudos.  Print cost dump for alternatives.
5448         Modify cost values for conflicts with early clobbers.
5449         (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
5450
5451 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
5452
5453         PR target/57098
5454         * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
5455
5456 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
5457
5458         * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
5459         from/to S register.
5460         (movdi_aarch64): Support LDR/STR from/to D register.
5461
5462 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
5463
5464         * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
5465         or higher by default.
5466
5467 2013-04-29  Richard Biener  <rguenther@suse.de>
5468
5469         PR middle-end/57075
5470         * tree-inline.c (copy_edges_for_bb): Still split the bbs,
5471         even if not adding abnormal edges for calls that can make
5472         abnormal gotos.
5473
5474 2013-04-29  Richard Biener  <rguenther@suse.de>
5475
5476         PR middle-end/57103
5477         * tree-cfg.c (move_stmt_op): Fix condition under which to update
5478         TREE_BLOCK.
5479         (move_stmt_r): Remove redundant checking.
5480
5481 2013-04-29  Teresa Johnson  <tejohnson@google.com>
5482
5483         PR bootstrap/57077
5484         * basic-block.h (apply_scale): New function.
5485         (apply_probability): Use apply_scale.
5486         * gimple-streamer-in.c (input_bb): Ditto.
5487         * lto-streamer-in.c (input_cfg): Ditto.
5488         * lto-cgraph.c (merge_profile_summaries): Ditto.
5489         * tree-optimize.c (execute_fixup_cfg): Ditto.
5490         * tree-inline.c (copy_bb): Update comment to use apply_scale.
5491         (copy_edges_for_bb): Ditto.
5492         (copy_cfg_body): Ditto.
5493
5494 2013-04-29  Tom de Vries  <tom@codesourcery.com>
5495
5496         * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
5497         (replace_block_by): Don't set LOOPS_NEED_FIXUP.
5498         (tail_merge_optimize): Handle current_loops == NULL.
5499
5500 2013-04-26  Jeff Law  <law@redhat.com>
5501
5502         * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
5503         (simplify_cond_using_ranges): Generalize code to simplify
5504         COND_EXPRs where one argument is a constant and the other
5505         is an SSA_NAME created by an integral type conversion.
5506
5507 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5508
5509         * config/arm/arm.md (store_minmaxsi): Use only when
5510         optimize_insn_for_size_p.
5511
5512 2013-04-29  Christian Bruel  <christian.bruel@st.com>
5513
5514         PR target/57108
5515         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
5516
5517 2013-04-29  Richard Biener  <rguenther@suse.de>
5518
5519         PR middle-end/57089
5520         * omp-low.c (expand_omp_taskreg): If the parent function had a broken
5521         loop tree make sure to schedule a fixup for the child as well.
5522         (expand_omp_for_generic): Properly add loops.
5523         (expand_omp_for_static_nochunk): Likewise.
5524         (expand_omp_for_static_chunk): Likewise.
5525         (expand_omp_for): For the degenerate case fixup loops.
5526         (expand_omp_sections): Fix default bb placement in loops.
5527         (expand_omp_atomic_pipeline): Properly add loops.
5528
5529 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5530
5531         * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
5532
5533 2013-04-29  Tom de Vries  <tom@codesourcery.com>
5534
5535         * tree-ssa-tail-merge.c: Update header comment.
5536
5537 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5538
5539         * config/aarch64/arm_neon.h
5540         (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
5541         (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
5542         (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
5543         (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
5544         (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
5545         (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
5546         (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
5547         (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
5548
5549 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5550
5551         * config/aarch64/aarch64-simd.md
5552         (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
5553         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
5554         fix_trunc, fixuns_trunc.
5555         (ftrunc<VDQF:mode>2): New.
5556         * config/aarch64/iterators.md (optab): Add fix, fixuns.
5557         (fix_trunc_optab): New.
5558
5559 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5560
5561         * config/aarch64/aarch64-builtins.c
5562         (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
5563         iceilf, lround, iroundf.
5564
5565 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
5566
5567         PR target/54349
5568         * config/i386/i386.h (enum ix86_tune_indices)
5569         <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
5570         New, split from X86_TUNE_INTER_UNIT_MOVES.
5571         <X86_TUNE_INTER_UNIT_MOVES>: Remove.
5572         (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
5573         (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
5574         (TARGET_INTER_UNIT_MOVES): Remove.
5575         * config/i386/i386.c (initial_ix86_tune_features): Update.
5576         Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
5577         (ix86_expand_convert_uns_didf_sse): Use
5578         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
5579         (ix86_expand_vector_init_one_nonzero): Ditto.
5580         (ix86_expand_vector_init_interleave): Ditto.
5581         (inline_secondary_memory_needed): Return true for moves from SSE class
5582         registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
5583         to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
5584         * config/i386/constraints.md (Yi, Ym): Depend on
5585         TARGET_INTER_UNIT_MOVES_TO_VEC.
5586         (Yj, Yn): New constraints.
5587         * config/i386/i386.md (*movdi_internal): Change constraints of
5588         operand 1 from Yi to Yj and from Ym to Yn.
5589         (*movsi_internal): Ditto.
5590         (*movdf_internal): Ditto.
5591         (*movsf_internal): Ditto.
5592         (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
5593         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
5594         (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
5595         (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
5596         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
5597         * config/i386/sse.md (movdi_to_sse): Ditto.
5598         (sse2_stored): Change constraint of operand 1 from Yi to Yj.
5599         Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
5600         TARGET_INTER_UNIT_MOVES.
5601         (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
5602         (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
5603         instead of TARGET_INTER_UNIT_MOVES.
5604         * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
5605         operand 1 from Yi to Yj and from Ym to Yn.
5606
5607 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5608
5609         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
5610         (float_truncate_hi_): Likewise.
5611         (float_extend_lo_): Likewise.
5612         (float_truncate_lo_): Likewise.
5613         * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
5614         (aarch64_float_extend_lo_v2df): Likewise.
5615         (vec_unpacks_hi_v4sf): Likewise.
5616         (aarch64_float_truncate_lo_v2sf): Likewise.
5617         (aarch64_float_truncate_hi_v4sf): Likewise.
5618         (vec_pack_trunc_v2df): Likewise.
5619         (vec_pack_trunc_df): Likewise.
5620
5621 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5622
5623         * config/aarch64/aarch64-builtins.c
5624         (aarch64_fold_builtin): Fold float conversions.
5625         * config/aarch64/aarch64-simd-builtins.def
5626         (floatv2si, floatv4si, floatv2di): New.
5627         (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
5628         * config/aarch64/aarch64-simd.md
5629         (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
5630         * config/aarch64/iterators.md (FLOATUORS): New.
5631         (optab): Add float, floatuns.
5632         (su_optab): Likewise.
5633
5634 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5635
5636         * config/aarch64/aarch64-builtins.c
5637         (aarch64_builtin_vectorized_function): Use new names for
5638         fcvt builtins.
5639         * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
5640         (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
5641         (fcvtzu): Split as...
5642         (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
5643         (fcvtas): Split as...
5644         (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
5645         (fcvtau): Split as...
5646         (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
5647         (fcvtps): Split as...
5648         (lceilv2sf, lceilv4sf, lceilv2df): ...This.
5649         (fcvtpu): Split as...
5650         (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
5651         (fcvtms): Split as...
5652         (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
5653         (fcvtmu): Split as...
5654         (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
5655         (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
5656         (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
5657         (lfrintnusf, lfrintnudf): Likewise.
5658         * config/aarch64/aarch64-simd.md
5659         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
5660         define_insn.
5661         (aarch64_fcvt<frint_suffix><su><mode>): Remove.
5662         * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
5663         (fcvt_pattern): Likewise.
5664
5665 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5666
5667         * config/aarch64/aarch64-simd.md
5668         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
5669         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
5670
5671 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5672
5673         * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
5674         (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
5675         (vrnd<a,m,n,p>_f32): Implement using builtins.
5676         (vrnd<i,x><q>_f<32, 64>): New.
5677
5678 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5679
5680         * config/aarch64/aarch64-builtins.c
5681         (aarch64_builtin_vectorized_function): Fold to standard pattern names.
5682         * config/aarch64/aarch64-simd-builtins.def (frintn): New.
5683         (frintz): Rename to...
5684         (btrunc): ...this.
5685         (frintp): Rename to...
5686         (ceil): ...this.
5687         (frintm): Rename to...
5688         (floor): ...this.
5689         (frinti): Rename to...
5690         (nearbyint): ...this.
5691         (frintx): Rename to...
5692         (rint): ...this.
5693         (frinta): Rename to...
5694         (round): ...this.
5695         * config/aarch64/aarch64-simd.md
5696         (aarch64_frint<frint_suffix><mode>): Delete.
5697         (<frint_pattern><mode>2): Convert to insn.
5698         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
5699         * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
5700         (frint_pattern): Likewise.
5701         (frint_suffix): Likewise.
5702
5703 2013-04-29  Richard Biener  <rguenther@suse.de>
5704
5705         PR tree-optimization/57081
5706         * loop-init.c: Include tree-flow.h.
5707         (loop_optimizer_finalize): Free number of iteration estimates.
5708         * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
5709
5710 2013-04-29  Jakub Jelinek  <jakub@redhat.com>
5711
5712         PR tree-optimization/57083
5713         * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
5714         non-singleton shift count range, zero extend low_bound for uns case.
5715
5716         * config/i386/predicates.md (general_vector_operand): New predicate.
5717         * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
5718         (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
5719         if they aren't nonimmediate operands.  If their original values
5720         satisfy const_vector_equal_evenodd_p, don't shift them.
5721         * config/i386/sse.md (mul<mode>3): Use general_vector_operand
5722         predicates.  For the SSE4.1 case force operands[{1,2}] into registers
5723         if not nonimmediate_operand.
5724         (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
5725         instead of register_operand.
5726         (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
5727
5728 2013-04-28  Eric Botcazou  <ebotcazou@adacore.com>
5729
5730         * stor-layout.c (finalize_size_functions): Allocate a structure and
5731         reset cfun before dumping the functions.
5732
5733 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
5734
5735         * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
5736
5737         PR target/56866
5738         * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
5739         use xop_pmacsdqh if uns_p.
5740         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
5741         the immediate rotate count.
5742
5743 2013-04-26  Vladimir Makarov  <vmakarov@redhat.com>
5744
5745         * rtl.h (struct rtx_def): Add comment for field jump.
5746         (LRA_SUBREG_P): New macro.
5747         * recog.c (register_operand): Check LRA_SUBREG_P.
5748         * lra.c (lra): Add note at the end of RTL code. Align non-empty
5749         stack frame.
5750         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
5751         (lra_final_code_change): Skip subreg change for operators.
5752         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
5753         if there are no operand changes.
5754         * lra-constraints.c (curr_insn_set): New.
5755         (match_reload): Set LRA_SUBREG_P.
5756         (emit_spill_move): Ditto.
5757         (check_and_process_move): Use curr_insn_set. Process only single
5758         set insns.  Don't initialize sec_mem_p and change_p.
5759         (simplify_operand_subreg): Use LRA_SUBREG_P.
5760         (reg_in_class_p): New function.
5761         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
5762         of #ifdef.  Add code to remove cycling.
5763         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
5764         non-null disp.  Reload inner instead of disp when base and index
5765         are null.  Try to put lo_sum into register.
5766         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
5767         (check_and_process_move): Move code for move cost check to
5768         simple_move_p.  Remove equiv_substitution.
5769         (simple_move_p): New function.
5770         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
5771         curr_insn_set.  Call check_and_process_move only for single set
5772         insns.  Use the new function.  Move call of check_and_process_move
5773         after operand equiv substitution and address process.
5774
5775 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
5776
5777         PR go/57045
5778         * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
5779         with nonlocal goto receivers or returns twice calls, ignore
5780         unininitialized values from abnormal edges to nl goto receiver
5781         or returns twice call.
5782
5783 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
5784
5785         PR tree-optimization/57051
5786         * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
5787         and VEC_RSHIFT_EXPR if shift count is a multiple of element
5788         bitsize.
5789
5790 2013-04-26  Richard Biener  <rguenther@suse.de>
5791
5792         * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
5793         (expand_omp_taskreg): Likewise.  Mark loops for fixup.
5794         * tree-cfg.c (move_block_to_fn): Remap loop fathers.
5795         (fixup_loop_arrays_after_move): New function.
5796         (move_sese_region_to_fn): Properly outline the loop tree parts
5797         of the SESE region.
5798
5799 2013-04-26  Uros Bizjak  <ubizjak@gmail.com>
5800
5801         * config/i386/i386.md (type, unit): Fix long lines.
5802
5803 2013-04-26  Richard Biener  <rguenther@suse.de>
5804
5805         * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
5806         (lto-streamer-out.o): Likewise.
5807         * cfgloop.c (init_loops_structure): Export, add struct function
5808         argument and adjust.
5809         (flow_loops_find): Adjust.
5810         * cfgloop.h (enum loop_estimation): Add EST_LAST.
5811         (init_loops_structure): Declare.
5812         * lto-streamer-in.c: Include cfgloop.h.
5813         (input_cfg): Input the loop tree.
5814         * lto-streamer-out.c: Include cfgloop.h.
5815         (output_cfg): Output the loop tree.
5816         (output_struct_function_base): Do not drop PROP_loops.
5817
5818 2013-03-26  Richard Biener  <rguenther@suse.de>
5819
5820         * tree-cfg.c (execute_build_cfg): Build the loop tree.
5821         (pass_build_cfg): Provide PROP_loops.
5822         (move_sese_region_to_fn): Remove loops that are outlined into fn
5823         for now.
5824         * tree-inline.c: Include cfgloop.h.
5825         (initialize_cfun): Do not drop PROP_loops.
5826         (copy_loops): New function.
5827         (copy_cfg_body): Copy loop structure.
5828         (tree_function_versioning): Initialize destination loop tree.
5829         * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
5830         (pass_parallelize_loops): Do IL verification.
5831         * loop-init.c (loop_optimizer_init): Fixup loops if required.
5832         * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
5833         the CFG make sure we fixup loops as well.
5834         * tree-ssa-tail-merge.c: Include cfgloop.h.
5835         (replace_block_by): When merging loop latches mark loops for fixup.
5836         * lto-streamer-out.c (output_struct_function_base): Drop
5837         PROP_loops for now.
5838         * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
5839         (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
5840         * ipa-split.c: Include cfgloop.h.
5841         (split_function): Add the new return block to the loop tree root.
5842         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
5843         whether we have removed the forwarder block.
5844         (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
5845         * cfgloop.h (place_new_loop): Declare.
5846         * cfgloopmanip.c (place_new_loop): Export.
5847         * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
5848         (tree-switch-conversion.o): Likewise.
5849         (tree-complex.o): Likewise.
5850         (tree-inline.o): Likewise.
5851         (tree-ssa-tailmerge.o): Likewise.
5852         (ipa-split.o): Likewise.
5853         (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
5854         (tree-ssa-copy.o): Likewise.
5855         * tree-switch-conversion.c: Include cfgloop.h
5856         (process_switch): If we emit a bit-test cascade, schedule loops
5857         for fixup.
5858         * tree-complex.c: Include cfgloop.h.
5859         (expand_complex_div_wide): Properly add new basic-blocks to loops.
5860         * asan.c: Include cfgloop.h.
5861         (create_cond_insert_point): Properly add new basic-blocks to
5862         loops, schedule loop fixup.
5863         * cfgloop.c (verify_loop_structure): Check that looks are not
5864         marked for fixup.
5865         * omp-low.c (expand_parallel_call): Properly add new basic-blocks
5866         to loops.
5867         (expand_omp_for_generic): Likewise.
5868         (expand_omp_sections): Likewise.
5869         (expand_omp_atomic_pipeline): Schedule loops for fixup.
5870         * tree-ssa-copy.c: Include tree-scalar-evolution.h.
5871         (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
5872         is initialized, not when loops are present.
5873         * tree-parloops.c (parallelize_loops): Remove checking here.
5874         * passes.c (init_optimization_passes): Schedule a copy-propagation
5875         pass before complete unrolling of inner loops.
5876
5877 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
5878
5879         * Makefile.in (toplev.o): Depend on diagnostic-color.h.
5880         * diagnostic-color.c (should_colorize): Remove _WIN32 version.
5881         (colorize_init): Add argument to _WIN32 version.
5882         * toplev.c: Include diagnostic-color.h.
5883         (process_options): Default to -fdiagnostics-color=auto if
5884         GCC_COLORS env var is in the environment.
5885         * common.opt (fdiagnostics-color=): Add Var and Init.
5886         * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
5887         env var is in the environment, the default is auto rather than never.
5888
5889         * diagnostic.h (file_name_as_prefix): Add context argument.
5890         * diagnostic.c (file_name_as_prefix): Likewise.  Colorize
5891         the string as locus.
5892         * langhooks.c (lhd_print_error_function): Adjust caller.
5893
5894 2013-04-25  Lawrence Crowl  <crowl@google.com>
5895
5896         * var-tracking.c (shared_hash_def::htab):
5897         Change type to hash_table.  Update dependent calls and types.
5898
5899 2013-04-25  Lawrence Crowl  <crowl@google.com>
5900
5901         * Makefile.in: Update as needed below.
5902
5903         * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
5904         Move declaration to after the type's method definitons.
5905
5906         * attribs.c (htab_t scoped_attributes::attribute_hash):
5907         Change type to hash_table.  Update dependent calls and types.
5908
5909         * bitmap.c (htab_t bitmap_desc_hash):
5910         Change type to hash_table.  Update dependent calls and types.
5911
5912         * cselib.c (htab_t cselib_hash_table):
5913         Change type to hash_table.  Update dependent calls and types.
5914
5915         * data-streamer.h (struct string_slot): Move to lto-streamer.h.
5916         (hash_string_slot_node): Move implementation into lto-streamer.h
5917         struct string_slot_hasher.
5918         (eq_string_slot_node): Likewise.
5919
5920         * data-streamer-out.c: Update output_block::string_hash_table
5921         dependent calls and types.
5922
5923         * dwarf2cfi.c (htab_t trace_index):
5924         Change type to hash_table.  Update dependent calls and types.
5925
5926         * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
5927         Change type to hash_table.  Update dependent calls and types.
5928         (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
5929         (htab_t optimize_external_refs::map): Likewise.
5930         (htab_t output_comp_unit::extern_map): Likewise.
5931         (htab_t output_comdat_type_unit::extern_map): Likewise.
5932         (htab_t output_macinfo::macinfo_htab): Likewise.
5933         (htab_t optimize_location_lists::htab): Likewise.
5934         (htab_t dwarf2out_finish::comdat_type_table): Likewise.
5935
5936         * except.c (htab_t ehspec_hash_type):
5937         Change type to hash_table.  Update dependent calls and types.
5938         (assign_filter_values::ttypes): Likewise.
5939         (assign_filter_values::ehspec): Likewise.
5940         (sjlj_assign_call_site_values::ar_hash): Likewise.
5941         (convert_to_eh_region_ranges::ar_hash): Likewise.
5942
5943         * gcse.c (htab_t pre_ldst_table):
5944         Change type to hash_table.  Update dependent calls and types.
5945
5946         * ggc-common.c (htab_t saving_htab):
5947         Change type to hash_table.  Update dependent calls and types.
5948         (htab_t loc_hash): Likewise.
5949         (htab_t ptr_hash): Likewise.
5950         (call_count): Rename ggc_call_count.
5951         (call_alloc): Rename ggc_call_alloc.
5952         (loc_descriptor): Rename make_loc_descriptor.
5953         (add_statistics): Rename ggc_add_statistics.
5954
5955         * ggc-common.c (saving_htab):
5956         Change type to hash_table.  Update dependent calls and types.
5957
5958         * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
5959         (push_gimplify_context): Likewise.
5960         (pop_gimplify_context): Likewise.
5961         (struct gimple_temp_hash_elt): Added.
5962         (struct gimplify_hasher): Likewise.
5963         (struct gimplify_ctx.temp_htab):
5964         Change type to hash_table.  Update dependent calls and types.
5965
5966         * gimple-fold.c: Include gimplify-ctx.h.
5967
5968         * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
5969         Change type to hash_table.  Update dependent calls and types.
5970         (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
5971         avoid potential global name collision.
5972
5973         * gimplify.c: Include gimplify-ctx.h.
5974         (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
5975         (htab_t gimplify_ctx::temp_htab):
5976         Update dependent calls and types for new type hash_table.
5977         (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
5978         (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
5979
5980         * gimplify-ctx.h: New.
5981         (struct gimple_temp_hash_elt): Move from gimplify.c.
5982         (class gimplify_hasher): New.
5983         (struct gimplify_ctx): Move from gimple.h.
5984         (htab_t gimplify_ctx::temp_htab):
5985         Change type to hash_table.  Update dependent calls and types.
5986
5987         * graphite-clast-to-gimple.c: Include graphite-htab.h.
5988         (htab_t ivs_params::newivs_index):
5989         Change type to hash_table.  Update dependent calls and types.
5990         (htab_t ivs_params::params_index): Likewise.
5991         (htab_t print_generated_program::params_index): Likewise.
5992         (htab_t gloog::newivs_index): Likewise.
5993         (htab_t gloog::params_index): Likewise.
5994
5995         * graphite.c: Include graphite-htab.h.
5996         4htab_t graphite_transform_loops::bb_pbb_mapping):
5997         Change type to hash_table.  Update dependent calls and types.
5998
5999         * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
6000         (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
6001         (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
6002
6003         * graphite-dependences.c: Include graphite-htab.h.
6004         (loop_is_parallel_p): Change hash table type of parameter.
6005
6006         * graphite-htab.h: New.
6007         (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
6008         (extern find_pbb_via_hash): Move from graphite-poly.h.
6009         (extern loop_is_parallel_p): Move from graphite-poly.h.
6010         (extern get_loop_body_pbbs): Move from graphite-poly.h.
6011
6012         * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
6013         (extern loop_is_parallel_p): Move to graphite-htab.h.
6014         (extern get_loop_body_pbbs): Move to graphite-htab.h.
6015
6016         * haifa-sched.c (htab_t delay_htab):
6017         Change type to hash_table.  Update dependent calls and types.
6018         (htab_t delay_htab_i2): Likewise.
6019
6020         * ira-color.c (htab_t allocno_hard_regs_htab):
6021         Change type to hash_table.  Update dependent calls and types.
6022
6023         * ira-costs.c (htab_t cost_classes_htab):
6024         Change type to hash_table.  Update dependent calls and types.
6025
6026         * loop-invariant.c (htab_t merge_identical_invariants::eq):
6027         Change type to hash_table.  Update dependent calls and types.
6028
6029         * loop-iv.c (htab_t bivs):
6030         Change type to hash_table.  Update dependent calls and types.
6031
6032         * loop-unroll.c (htab_t opt_info::insns_to_split):
6033         Change type to hash_table.  Update dependent calls and types.
6034         (htab_t opt_info::insns_with_var_to_expand): Likewise.
6035
6036         * lto-streamer.h (struct string_slot): Move from data-streamer.h
6037         (struct string_slot_hasher): New.
6038         (htab_t output_block::string_hash_table):
6039         Change type to hash_table.  Update dependent calls and types.
6040
6041         * lto-streamer-in.c (freeing_string_slot_hasher): New.
6042         (htab_t file_name_hash_table):
6043         Change type to hash_table.  Update dependent calls and types.
6044
6045         * lto-streamer-out.c: Update output_block::string_hash_table dependent
6046         calls and types.
6047
6048         * lto-streamer.c (htab_t tree_htab):
6049         Change type to hash_table.  Update dependent calls and types.
6050
6051         * omp-low.c: Include gimplify-ctx.h.
6052
6053         * passes.c (htab_t name_to_pass_map):
6054         Change type to hash_table.  Update dependent calls and types.
6055         (pass_traverse): Rename to passes_pass_traverse.
6056
6057         * plugin.c (htab_t event_tab):
6058         Change type to hash_table.  Update dependent calls and types.
6059
6060         * postreload-gcse.c (htab_t expr_table):
6061         Change type to hash_table.  Update dependent calls and types.
6062         (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
6063
6064         * sese.c (debug_rename_map_1): Make extern.
6065         (htab_t copy_bb_and_scalar_dependences::rename_map):
6066         Change type to hash_table.  Update dependent calls and types.
6067
6068         * sese.h (extern debug_rename_map): Move to .c file.
6069
6070         * store-motion.c (htab_t store_motion_mems_table):
6071         Change type to hash_table.  Update dependent calls and types.
6072
6073         * trans-mem.c (htab_t tm_new_mem_hash):
6074         Change type to hash_table.  Update dependent calls and types.
6075
6076         * tree-browser.c (htab_t TB_up_ht):
6077         Change type to hash_table.  Update dependent calls and types.
6078
6079         * tree-cfg.c (htab_t discriminator_per_locus):
6080         Change type to hash_table.  Update dependent calls and types.
6081
6082         * tree-complex.c: Include tree-hasher.h
6083         (htab_t complex_variable_components):
6084         Change type to hash_table.  Update dependent calls and types.
6085
6086         * tree-eh.c (htab_t finally_tree):
6087         Change type to hash_table.  Update dependent calls and types.
6088
6089         * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
6090         struct int_tree_hasher.
6091         (extern int_tree_map_eq): Likewise.
6092         (uid_decl_map_hash): Removed.
6093         (extern decl_tree_map_eq): Likewise.
6094
6095         * tree-hasher.h: New.
6096         (struct int_tree_hasher): New.
6097         (typedef int_tree_htab_type): New.
6098
6099         * tree-inline.c: Include gimplify-ctx.h.
6100
6101         * tree-mudflap.c: Include gimplify-ctx.h.
6102
6103         * tree-parloops.c: Include tree-hasher.h.
6104         (htab_t eliminate_local_variables_stmt::decl_address):
6105         Change type to hash_table.  Update dependent calls and types.
6106         (htab_t separate_decls_in_region::decl_copies): Likewise.
6107
6108         * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
6109         Change type to hash_table.  Update dependent calls and types.
6110
6111         * tree-sra.c (candidates):
6112         Change type to hash_table.  Update dependent calls and types.
6113
6114         * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
6115         in tree-flow.h.
6116         (int_tree_map_hash): Likewise.
6117
6118         * tree-ssa-dom.c (htab_t avail_exprs):
6119         Change type to hash_table.  Update dependent calls and types.
6120
6121         * tree-ssa-live.c (var_map_base_init::tree_to_index):
6122         Change type to hash_table.  Update dependent calls and types.
6123
6124         * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
6125         Change type to hash_table.  Update dependent calls and types.
6126
6127         * tree-ssa-phiopt.c (seen_ssa_names):
6128         Change type to hash_table.  Update dependent calls and types.
6129
6130         * tree-ssa-strlen.c (decl_to_stridxlist_htab):
6131         Change type to hash_table.  Update dependent calls and types.
6132
6133         * tree-ssa-uncprop.c (equiv):
6134         Change type to hash_table.  Update dependent calls and types.
6135
6136 2013-04-25  Jakub Jelinek  <jakub@redhat.com>
6137
6138         PR rtl-optimization/57003
6139         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
6140         call note_stores with kill_clobbered_value callback again after
6141         killing regs_invalidated_by_call.
6142
6143 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
6144
6145         * config/aarch64/aarch64-simd.md
6146         (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
6147         (aarch64_simd_bsl<mode>): Likewise.
6148         * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
6149
6150 2013-04-25  Marek Polacek  <polacek@redhat.com>
6151
6152         PR tree-optimization/57066
6153         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
6154
6155 2013-04-25  James Greenhalgh  <jame.greenhalgh@arm.com>
6156
6157         * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
6158
6159 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
6160
6161         * config/aarch64/aarch64-builtins.c
6162         (aarch64_fold_builtin): New.
6163         * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
6164         * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
6165         * config/aarch64/aarch64-simd-builtins.def (abs): New.
6166         * config/aarch64/arm_neon.h
6167         (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
6168
6169 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
6170             Tejas Belagod  <tejas.belagod@arm.com>
6171
6172         * config/aarch64/aarch64-builtins.c
6173         (aarch64_gimple_fold_builtin): New.
6174         * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
6175         * config/aarch64/aarch64-simd-builtins.def (addv): New.
6176         * config/aarch64/aarch64-simd.md (addpv4sf): New.
6177         (addvv4sf): Update.
6178         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
6179
6180 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6181
6182         * config/aarch64/aarch64.md
6183         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
6184
6185 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6186
6187         * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
6188         (*ngcsi_uxtw): New pattern.
6189
6190 2013-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6191             Julian Brown  <julian@codesourcery.com>
6192
6193         * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
6194         (TB_DREG): Add T_V4HF.
6195         (v4hf_UP): New macro.
6196         (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
6197         (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
6198         Handle initialisation of V4HF. Adjust initialisation of reinterpret
6199         built-ins.
6200         (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
6201         (arm_vector_mode_supported_p): Handle V4HF.
6202         (arm_mangle_map): Handle V4HFmode.
6203         * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
6204         * config/arm/arm_neon_builtins.def: Add entries for
6205         vcvtv4hfv4sf, vcvtv4sfv4hf.
6206         * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
6207         (neon_vcvtv4hfv4sf): Likewise.
6208         * config/arm/neon-gen.ml: Handle half-precision floating point
6209         features.
6210         * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
6211         * config/arm/arm_neon.h: Regenerate.
6212         * config/arm/neon.ml (type elts): Add F16.
6213         (type vectype): Add T_float16x4, T_floatHF.
6214         (type vecmode): Add V4HF.
6215         (type features): Add Requires_FP_bit feature.
6216         (elt_width): Handle F16.
6217         (elt_class): Likewise.
6218         (elt_of_class_width): Likewise.
6219         (mode_of_elt): Refactor.
6220         (type_for_elt): Handle F16, fix error messages.
6221         (vectype_size): Handle T_float16x4.
6222         (vcvt_sh): New function.
6223         (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
6224         (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
6225         (string_of_mode): Handle V4HF.
6226         * doc/arm-neon-intrinsics.texi: Regenerate.
6227
6228 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
6229
6230         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
6231         format specifier in 'X' case.
6232
6233 2013-04-25  Alan Modra  <amodra@gmail.com>
6234
6235         PR target/57052
6236         * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
6237         rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
6238         (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
6239         Repeat for many other rotate/shift and mask patterns using subregs.
6240         Name lshiftrt insns.
6241         (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
6242         on WORDS_BIG_ENDIAN.
6243
6244 2013-04-25  Alan Modra  <amodra@gmail.com>
6245
6246         * config.gcc: Support little-endian powerpc-linux targets.
6247         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
6248         (LINK_OS_LINUX_SPEC): Define.
6249         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
6250         Preserve MASK_LITTLE_ENDIAN.
6251         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
6252         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
6253         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
6254         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
6255         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
6256         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
6257         Correct fp word order for little-endian.  Don't shift toc entries
6258         smaller than a word for little-endian.
6259         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
6260         (bswapdi2 splits): Correct low-part subreg for little-endian.
6261         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
6262         low/high where such is correct only for be.
6263         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
6264         little-endian for -mcall-aixdesc.
6265
6266 2013-04-25  Alan Modra  <amodra@gmail.com>
6267
6268         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
6269         replace_equiv_address_nv.
6270
6271 2013-04-25  Alan Modra  <amodra@gmail.com>
6272
6273         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
6274
6275 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
6276
6277         Revert:
6278         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
6279         * rtl.h (struct rtx_def): ...
6280
6281 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
6282
6283         PR rtl-optimizations/57046
6284         * lra-constraints (split_reg): Set up lra_risky_transformations_p
6285         for multi-reg splits.
6286
6287 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
6288
6289         * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
6290
6291 2013-04-24  Sterling Augustine  <saugustine@google.com>
6292
6293         * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
6294         (comp_dir_string, debug_str_dwo_section): New.
6295         (DEBUG_STR_DWO_SECTION): Rename to ...
6296         (DEBUG_DWO_STR_SECTION): ... this.
6297         (DEBUG_NORM_STR_SECTION): Delete.
6298         (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
6299         (DEBUG_STR_DWO_SECTION_FLAGS): New.
6300         (find_AT_string): Move most logic to ...
6301         (find_AT_string_in_table): ... here.  New.
6302         (add_top_level_skeleton_die_attrs): Call comp_dir_string and
6303         add_skeleton_AT_string.  Delete logic.
6304         (output_skeleton_debug_sections): Remove call to
6305         add_top_level_skeleton_die_attrs.
6306         (add_comp_dir_attribute): Move logic to comp_dir_string.
6307         (dwarf2out_init): Initialize debug_str_dwo_section.
6308         (output_indirect_string): Call find_string_form.
6309         (output_indirect_strings): Rewrite.
6310         (prune_unused_types): Empty skeleton_debug_str_hash.
6311         Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
6312         (dwarf2out_finish):  Call output_indirect_strings.
6313
6314 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
6315
6316         * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
6317
6318 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
6319
6320         * rtl.h (struct rtx_def): Add comment for field jump.
6321         (LRA_SUBREG_P): New macro.
6322         * recog.c (register_operand): Check LRA_SUBREG_P.
6323         * lra.c (lra): Add note at the end of RTL code. Align non-empty
6324         stack frame.
6325         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
6326         (lra_final_code_change): Skip subreg change for operators.
6327         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
6328         if there are no operand changes.
6329         * lra-constraints.c (curr_insn_set): New.
6330         (match_reload): Set LRA_SUBREG_P.
6331         (emit_spill_move): Ditto.
6332         (check_and_process_move): Use curr_insn_set. Process only single
6333         set insns.  Don't initialize sec_mem_p and change_p.
6334         (simplify_operand_subreg): Use LRA_SUBREG_P.
6335         (reg_in_class_p): New function.
6336         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
6337         of #ifdef.  Add code to remove cycling.
6338         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
6339         non-null disp.  Reload inner instead of disp when base and index
6340         are null.  Try to put lo_sum into register.
6341         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
6342         (check_and_process_move): Move code for move cost check to
6343         simple_move_p.  Remove equiv_substitution.
6344         (simple_move_p): New function.
6345         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
6346         curr_insn_set.  Call check_and_process_move only for single set
6347         insns.  Use the new function.  Move call of check_and_process_move
6348         after operand equiv substitution and address process.
6349
6350 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
6351
6352         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
6353         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
6354         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
6355
6356 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
6357
6358         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
6359
6360 2013-04-24  Marek Polacek  <polacek@redhat.com>
6361
6362         * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
6363         * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
6364         (select_loops_exit_conditions): Likewise.
6365         (number_of_iterations_for_all_loops): Likewise.
6366         (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
6367         (scev_analysis): Likewise.
6368
6369 2013-04-02  Catherine Moore  <clm@codesourcery.com>
6370             Chao-ying Fu <fu@mips.com>
6371
6372         * config/mips/micromips.md (jraddiusp): New pattern.
6373         * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
6374         instruction if possible.
6375
6376 2013-04-24  Alan Modra  <amodra@gmail.com>
6377
6378         * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
6379
6380 2013-04-24  Julian Brown  <julian@codesourcery.com>
6381             Chung-Lin Tang  <cltang@codesourcery.com>
6382
6383         * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
6384         dependency behavior in enumeration type DIE generation. Add TODO note
6385         to comments about future DW_FORM_sdata/udata re-work of related code.
6386
6387 2013-04-23  Lawrence Crowl  <crowl@google.com>
6388
6389         * Makefile.in: Update as needed below.
6390
6391         * hash-table.h (class hash_table):
6392         Correct many methods with parameter types compare_type to the correct
6393         value_type.  (Correct code was unlikely to notice the change.)
6394         (hash_table::elements_with_deleted) New.
6395         (class hashtable::iterator): New.
6396         (hashtable::begin()): New.
6397         (hashtable::end()): New.
6398         (FOR_EACH_HASH_TABLE_ELEMENT): New.
6399
6400         * statistics.c (statistics_hashes):
6401         Change type to hash_table.  Update dependent calls and types.
6402
6403         * tree-into-ssa.c (var_infos):
6404         Change type to hash_table.  Update dependent calls and types.
6405
6406         * tree-ssa-coalesce.c (struct coalesce_list_d.list):
6407         Change type to hash_table.  Update dependent calls and types.
6408
6409         * tree-ssa-loop-im.c (struct mem_ref.refs):
6410         Change type to hash_table.  Update dependent calls and types.
6411
6412         * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
6413         Change type to hash_table.  Update dependent calls and types.
6414
6415         * tree-ssa-sccvn.c (vn_tables_s::nary):
6416         Change type to hash_table.  Update dependent calls and types.
6417         (vn_tables_s::phis): Likewise.
6418         (vn_tables_s::references): Likewise.
6419
6420         * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
6421         (vn_reference_eq): Update parameter and return types.
6422
6423         * tree-ssa-structalias.c (pointer_equiv_class_table):
6424         Change type to hash_table.  Update dependent calls and types.
6425         (location_equiv_class_table): Likewise.
6426
6427         * tree-vect-data-refs.c: Consequential changes for making
6428         peeling a hash_table.
6429
6430         * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
6431         (destroy_loop_vec_info): Dependent hash_table update.
6432
6433         * tree-vectorizer.h (peeling_htab):
6434         Change type to hash_table.  Update dependent calls and types.
6435
6436 2013-04-23  Shiva Chen  <shiva0217@gmail.com>
6437
6438         * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
6439         to check the register content is equal or not.
6440         * lra-constraints.c (match_reload): Use lra_assign_reg_val
6441         to assign register content record.
6442         * lra-eliminations.c (update_reg_eliminate): Use
6443         lra_update_reg_val_offset to update register content offset.
6444         * lra-int.h (struct lra_reg): Add offset member.
6445         (lra_reg_val_equal_p): New static inline function.
6446         (lra_update_reg_val_offset): New static inline function.
6447         (lra_assign_reg_val): New static inline function.
6448         * lra.c (lra_create_new_reg): Use lra_assign_reg_val
6449         to assign register content record.
6450         (initialize_lra_reg_info_element): Initial offset to zero.
6451
6452 2013-04-23  Catherine Moore  <clm@codesourcery.com>
6453
6454         * config/mips/mips.md (*movhi_internal, *movqi_internal): New
6455         operands.  Record compression.
6456
6457 2013-04-23  Xinliang David Li  <davidxl@google.com>
6458
6459         * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
6460
6461 2013-04-23  Richard Biener  <rguenther@suse.de>
6462
6463         PR middle-end/57036
6464         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
6465         parameter, only add abnormal goto edges from the copied body
6466         if the call could perform abnormal gotos.
6467         (copy_cfg_body): Adjust.
6468
6469 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
6470
6471         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
6472
6473 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
6474
6475         * coretypes.h (gimple_stmt_iterator): Add struct to make
6476         compatible with C.
6477
6478 2013-04-23  Richard Biener  <rguenther@suse.de>
6479
6480         PR tree-optimization/57026
6481         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
6482         from SSA names occuring in abnormal PHI nodes.
6483
6484 2013-04-22  Andi Kleen  <ak@linux.intel.com>
6485
6486         * lto/lto.c (print_lto_report_1): Fix LTO report names.
6487
6488 2013-04-22  Andi Kleen  <ak@linux.intel.com>
6489
6490         * lto/lto.c (print_lto_report_1): Declare early.
6491         (read_cgraph_and_symbols): Call print_lto_report_1 early.
6492
6493 2013-04-22  Andi Kleen  <ak@linux.intel.com>
6494
6495         * common.opt (-flto-report-wpa): Add.
6496         * doc/invoke.texi (-flto-report-wpa): Add.
6497         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
6498         (lto_main): dito.
6499
6500 2013-04-22  Xinliang David Li  <davidxl@google.com>
6501
6502         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
6503         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
6504         * Makefile.in: New dependency
6505
6506             David Daney <ddaney.cavm@gmail.com>
6507
6508         * configure.ac (gcc_cv_as_micromips_support):  Use the
6509         --fatal-warnings option.
6510         * configure: Regenerate.
6511
6512 2013-04-22  Marek Polacek  <polacek@redhat.com>
6513
6514         PR sanitizer/56990
6515         * tsan.c (instrument_expr): Don't instrument expression
6516         in case its size is zero.
6517
6518 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
6519
6520         PR target/57032
6521         Revert:
6522         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
6523
6524         * config/alpha/alpha.c (TARGET_LRA_P): New define.
6525
6526 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
6527
6528         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
6529         (gimple_stmt_iterator): New typedef.
6530         * gimple.h (gimple_stmt_iterator): Rename to...
6531         (gimple_stmt_iterator_d): ... This.
6532         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
6533         trees be valid for GIMPLE and GENERIC.
6534         (TARGET_GIMPLE_FOLD_BUILTIN): New.
6535         * gimple-fold.c (gimple_fold_call): Call target hook
6536         gimple_fold_builtin.
6537         * hooks.c (hook_bool_gsiptr_false): New.
6538         * hooks.h (hook_bool_gsiptr_false): New.
6539         * target.def (fold_stmt): New.
6540         * doc/tm.texi: Regenerate.
6541
6542 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
6543
6544         PR target/57018
6545         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
6546         a set sp if no stack realignment.
6547
6548 2013-04-22  Nick Clifton  <nickc@redhat.com>
6549
6550         * config.gcc (tilegx-linux): Extend extra_objs rather than
6551         overwriting it.
6552         (tilepro-linux): Likewise.
6553
6554 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
6555
6556         * config/aarch64/aarch64-builtins.c
6557         (CF): Remove.
6558         (CF0, CF1, CF2, CF3, CF4, CF10): New.
6559         (VAR<1-12>): Add MAP parameter.
6560         (BUILTIN_*): Likewise.
6561         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
6562         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
6563         (aarch64_ushl_n<mode>): Likewise.
6564         (aarch64_sshr_n<mode>): Likewise.
6565         (aarch64_ushr_n<mode>): Likewise.
6566         (aarch64_<maxmin><mode>): Likewise.
6567         (aarch64_sqrt<mode>): Likewise.
6568         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
6569         (vshr<q>_n_*): Likewise.
6570
6571 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
6572
6573         * config/aarch64/aarch64-builtins.c
6574         (aarch64_simd_builtin_type_mode): Handle SF types.
6575         (sf_UP): Define.
6576         (BUILTIN_GPF): Define.
6577         (aarch64_init_simd_builtins): Handle SF types.
6578         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
6579         (frecps): Likewise.
6580         (frecpx): Likewise.
6581         * config/aarch64/aarch64-simd.md
6582         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
6583         (aarch64_frecpe<mode>): New.
6584         (aarch64_frecps<mode>): Likewise.
6585         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
6586         (v8type): Add frecp<esx>.
6587         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
6588         (aarch64_frecps<mode>): Likewise.
6589         * config/aarch64/iterators.md (FRECP): New.
6590         (frecp_suffix): Likewise.
6591         * config/aarch64/arm_neon.h
6592         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
6593
6594 2013-04-22  Christian Bruel  <christian.bruel@st.com>
6595
6596         PR target/56995
6597         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
6598         (REG_CLASS_NAMES): Idem.
6599         (REG_CLASS_CONTENTS): Idem.
6600         (REGCLASS_HAS_FP_REG): Idem.
6601         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
6602         (sh_conditional_register_usage): Idem.
6603
6604 2013-04-21  Jeff Law  <law@redhat.com>
6605
6606         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
6607         (ssa_forward_propagate_and_combine): Use it.
6608
6609 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
6610
6611         * lra.c: Update the flow chart diagram.
6612
6613 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
6614
6615         PR rtl-optimization/56847
6616         * lra-constraints.c (process_alt_operands): Discourage alternative
6617         with non-matche doffsettable memory constraint fro memory with
6618         known offset.
6619
6620 2013-04-19  Richard Biener  <rguenther@suse.de>
6621
6622         PR tree-optimization/56982
6623         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
6624         function.
6625         * gimplify.c (gimplify_call_expr): Notice special calls.
6626         (gimplify_modify_expr): Likewise.
6627         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
6628         abnormal control flow receivers.
6629         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
6630         in the same way as cfun->has_nonlocal_labels.
6631         (gimple_purge_dead_abnormal_call_edges): Likewise.
6632         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
6633         receivers start a basic-block.
6634
6635 2013-04-19  Richard Biener  <rguenther@suse.de>
6636
6637         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
6638         member ...
6639         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
6640         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
6641         (SLP_TREE_LOAD_PERMUTATION): Add.
6642         (vect_transform_slp_perm_load): Adjust prototype.
6643         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
6644         (vect_free_slp_instance): Likewise.
6645         (vect_create_new_slp_node): Likewise.
6646         (vect_supported_slp_permutation_p): Remove.
6647         (vect_slp_rearrange_stmts): Adjust.
6648         (vect_supported_load_permutation_p): Likewise.  Inline
6649         vect_supported_slp_permutation_p here.
6650         (vect_analyze_slp_instance): Compute load permutations per
6651         slp node instead of per instance.
6652         (vect_get_slp_defs): Adjust.
6653         (vect_transform_slp_perm_load): Likewise.
6654         (vect_schedule_slp_instance): Remove redundant code.
6655         (vect_schedule_slp): Remove hack for PR56270, add it ...
6656         * tree-vect-stmts.c (vectorizable_load): ... here, do not
6657         CSE loads for SLP.  Adjust.
6658
6659 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
6660
6661         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
6662         spelling in two comments.
6663
6664 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
6665
6666         PR target/56797
6667         * config/arm/arm.c (load_multiple_sequence): Require SP
6668         as base register for loads if SP is in the register list.
6669
6670 2013-04-19  Martin Jambor  <mjambor@suse.cz>
6671
6672         PR tree-optimization/56718
6673         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
6674         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
6675         and made public.  Adjusted all callers.
6676         (ipa_intraprocedural_devirtualization): New function.
6677         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
6678         (ipa_intraprocedural_devirtualization): Likewise.
6679         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
6680
6681 2013-04-19  Richard Biener  <rguenther@suse.de>
6682
6683         PR tree-optimization/57000
6684         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
6685
6686 2013-04-19  Terry Guo  <terry.guo@arm.com>
6687
6688         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
6689         Replace with ...
6690         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
6691         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
6692         (cortex_m4_fmacs): Use new reservations.
6693         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
6694
6695 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
6696
6697         PR rtl-optimization/56999
6698         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
6699         related code.
6700         (lra_coalesce): Remove split_origin_bitmap and related code.
6701         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
6702         ranges if necessary.
6703
6704 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
6705
6706         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
6707         New array.
6708         (ix86_expand_call): Remove clobbered_registers array and use
6709         x86_64_ms_sysv_extra_clobbered_registers instead.
6710         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
6711         Declare here.
6712         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
6713         predicate.
6714         * config/i386/i386.md (*call_rex64_ms_sysv): Use
6715         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
6716         (*call_value_rex64_ms_sysv): Ditto.
6717
6718 2013-04-18  Cary Coutant  <ccoutant@google.com>
6719
6720         * dwarf2out.c (output_pubnames): Check die_perennial_p of
6721         parent instead of die_mark.
6722
6723 2013-04-18  Diego Novillo  <dnovillo@google.com>
6724
6725         * gimple.c (create_gimple_tmp): New.
6726         (get_expr_type): New.
6727         (build_assign): New.
6728         (build_type_cast): New.
6729         * gimple.h (enum ssa_mode): Define.
6730         (gimple_seq_set_location): New.
6731         * asan.c (build_check_stmt): Change some gimple_build_* calls
6732         to use build_assign and build_type_cast.
6733
6734 2013-04-18  Richard Biener  <rguenther@suse.de>
6735
6736         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
6737         handle negative step.  Remove redundant checks.
6738         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
6739         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
6740         for negative step and grouped loads fail to vectorize.
6741
6742 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
6743
6744         * emit-rtl.c (reset_insn_used_flags): New function.
6745         (reset_all_used_flags): Use it.
6746         (verify_insn_sharing): New function.
6747         (verify_rtl_sharing): Fix verification for SEQUENCEs.
6748
6749 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
6750
6751         PR tree-optimization/56984
6752         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
6753         and (x >> M) >= N don't register any assertion if N << M is the
6754         minimum value.
6755
6756 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
6757
6758         * lower-subreg.c (resolve_simple_move): If called self-recursive,
6759         do not delete_insn insns that have not yet been emitted, only
6760         unlink them with remove_insn.
6761         * df-scan.c (df_insn_delete): Revert r197492.
6762
6763 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
6764
6765         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
6766         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
6767
6768 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
6769
6770         * config/arm/arm.md (movsicc_insn): Convert define_insn into
6771         define_insn_and_split.
6772         (and_scc,ior_scc,negscc): Likewise.
6773         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
6774
6775 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
6776
6777         * config/arm/arm.c (use_return_insn): Return 0 for targets that
6778         can benefit from using a sequence of LDRD instructions in epilogue
6779         instead of a single LDM instruction.
6780
6781 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6782
6783         PR 45688
6784         * doc/extend.texi: Fix typo.
6785
6786 2013-04-17  Richard Biener  <rguenther@suse.de>
6787
6788         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
6789         (vect_build_slp_tree): ... here.
6790         (vect_build_slp_tree_1): Compute which stmts of the SLP group
6791         match.  Remove special-casing of mismatched complex loads.
6792         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
6793         re-try the match with swapped commutative operands.
6794         (vect_supported_load_permutation_p): Remove special-casing of
6795         mismatched complex loads.
6796         (vect_analyze_slp_instance): Adjust.
6797
6798 2013-04-17  Richard Biener  <rguenther@suse.de>
6799
6800         PR rtl-optimization/56921
6801         * cfgloop.h (struct loop): Add simple_loop_desc member.
6802         (struct niter_desc): Mark with GTY(()).
6803         (simple_loop_desc): Do not use aux field but simple_loop_desc.
6804         * loop-iv.c (get_simple_loop_desc): Likewise.
6805         (free_simple_loop_desc): Likewise.
6806
6807         Revert
6808         2013-04-16  Richard Biener  <rguenther@suse.de>
6809
6810         PR rtl-optimization/56921
6811         * loop-init.c (pass_rtl_move_loop_invariants): Add
6812         TODO_do_not_ggc_collect to todo_flags_finish.
6813         (pass_rtl_unswitch): Same.
6814         (pass_rtl_unroll_and_peel_loops): Same.
6815         (pass_rtl_doloop): Same.
6816
6817 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
6818
6819         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
6820         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
6821         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
6822         references.
6823         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
6824         * tree-streamer.c (record_common_node): Adjust reference in comment.
6825
6826 2013-04-17  Terry Guo  <terry.guo@arm.com>
6827
6828         * config/arm/cortex-m4.md: Add a new bypass.
6829
6830 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6831
6832         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
6833         New pattern.
6834         (*subs_<optab><mode>_multp2): New pattern.
6835         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
6836         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
6837
6838 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6839
6840         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
6841         (*subs_mul_imm_<mode>): New pattern.
6842
6843 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
6844
6845         PR target/56948
6846         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
6847         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
6848         (vsx_movti_32bit): Change j->wa to O->wa.
6849
6850 2013-04-16  Richard Biener  <rguenther@suse.de>
6851
6852         PR rtl-optimization/56921
6853         * loop-init.c (pass_rtl_move_loop_invariants): Add
6854         TODO_do_not_ggc_collect to todo_flags_finish.
6855         (pass_rtl_unswitch): Same.
6856         (pass_rtl_unroll_and_peel_loops): Same.
6857         (pass_rtl_doloop): Same.
6858
6859 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
6860
6861         * config/arm/arm.c (emit_multi_reg_push): New declaration
6862         for an existing function.
6863         (arm_emit_strd_push): New function.
6864         (arm_expand_prologue): Used here.
6865         (arm_emit_ldrd_pop): New function.
6866         (arm_expand_epilogue): Used here.
6867         (arm_get_frame_offsets): Update condition.
6868         (arm_emit_multi_reg_pop): Add a special case for load of a single
6869         register with writeback.
6870
6871 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
6872
6873         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
6874         description.
6875
6876 2013-04-16  Richard Biener  <rguenther@suse.de>
6877
6878         PR tree-optimization/56756
6879         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
6880         (first_mem_ref_loc): New.
6881         (execute_sm): Place the load temporarily before a previous
6882         access instead of in the latch edge to ensure its SSA dependencies
6883         are defined at points dominating the load.
6884
6885 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
6886
6887         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
6888         correct fix by moving header and footer insn to the footer of
6889         the merged basic block.  Clear BB_END of the merged-away block.
6890
6891         PR middle-end/43631
6892         * emit-rtl.c (make_note_raw): New function.
6893         (link_insn_into_chain): New static inline function.
6894         (add_insn): Use it.
6895         (add_insn_before, add_insn_after): Factor insn chain linking code...
6896         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
6897         using link_insn_into_chain.
6898         (note_outside_basic_block_p): New helper function for emit_note_after
6899         and emit_note_before.
6900         (emit_note_after): Use nobb variant of add_insn_after if the note
6901         should not be contained in a basic block.
6902         (emit_note_before): Use nobb variant of add_insn_before if the note
6903         should not be contained in a basic block.
6904         (emit_note_copy): Use make_note_raw.
6905         (emit_note): Likewise.
6906         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
6907         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
6908         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
6909         the moved barrier the tail of the basic block it follows.
6910         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
6911
6912 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
6913
6914         PR tree-optimization/56962
6915         * gimple-ssa-strength-reduction.c (record_increment): Only set
6916         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
6917         either rhs1 or rhs2 is equal to c->base_expr.
6918
6919 2013-04-15  Richard Biener  <rguenther@suse.de>
6920
6921         PR tree-optimization/56933
6922         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
6923         member.
6924         (GROUP_READ_WRITE_DEPENDENCE): Remove.
6925         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
6926         * tree-vect-data-refs.c (vect_analyze_group_access): Move
6927         dependence check ...
6928         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
6929         ... here.
6930         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
6931         GROUP_READ_WRITE_DEPENDENCE.
6932
6933 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6934
6935         * emit-rtl.c (reset_all_used_flags): New function.
6936         (verify_rtl_sharing): Call reset_all_used_flags before and after
6937         performing the checks.
6938
6939 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6940
6941         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
6942         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
6943         * config/arm/constraints.md (De): New constraint.
6944         * config/arm/neon.md (anddi3_neon): Delete.
6945         (neon_vand<mode>): Expand to standard anddi3 pattern.
6946         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
6947         Move earlier in the file.
6948         (neon_inv_logic_op2): Likewise.
6949         (arm_anddi_operand_neon): New predicate.
6950
6951 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6952
6953         * configure.ac (gcc_cv_ld_as_needed): Set
6954         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
6955         Use -z ignore, -z record on *-*-solaris2*.
6956         (HAVE_LD_AS_NEEDED): Update comment.
6957         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
6958         * configure: Regenerate.
6959         * config.in: Regenerate.
6960         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
6961         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
6962         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
6963         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
6964         equivalents.  Fix markup.
6965         * doc/tm.texi: Regenerate.
6966
6967 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
6968
6969         * config/i386/i386.opt: New option mstack-protector-guard=.
6970         * config/i386/i386-opts.h: Add enum stack_protector_guard.
6971         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
6972         TARGET_SSP_TLS_GUARD.
6973         * config/i386/i386.c (ix86_option_override_internal): Set
6974         ix86_stack_protector_guard.
6975         * config/i386/i386.md (stack_protect_set): Enable for
6976         TARGET_SSP_TLS_GUARD only.
6977         (stack_protect_set_<mode>): Ditto.
6978         (stack_protect_test): Ditto.
6979         (stack_protect_test_<mode>): Ditto.
6980         * doc/invoke.texi (i386 Option): Document.
6981
6982 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
6983
6984         PR target/56890
6985         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
6986         (S_MODES): Set H_MODE bit.
6987         (SF_MODES): Set only S_MODE and SF_MODE bits.
6988         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
6989         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
6990         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
6991         <MODE_FLOAT>: Likewise.
6992
6993 2013-04-15  Joey Ye  <joey.ye@arm.com>
6994
6995         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
6996
6997 2013-04-15  Joey Ye  <joey.ye@arm.com>
6998
6999         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
7000         for real far jump.
7001         (thumb_far_jump_used_p): Count instruction size and set
7002         far_jump_used.
7003
7004 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
7005
7006         * reorg.c (fill_simple_delay_slots): Reindent block of code.
7007         * resource.c (mark_target_live_regs): Reformat conditional block.
7008
7009 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
7010
7011         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
7012         notes, they are emitted only just before final.
7013         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
7014
7015 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
7016
7017         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
7018         * cfgrtl.c (delete_insn): Call it here instead.
7019         * lra-spills.c (lra_final_code_change): Use delete_insn.
7020         * haifa-sched.c (sched_remove_insn): Likewise.
7021         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
7022         returning to the nop pool.
7023         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
7024         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
7025
7026 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
7027
7028         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
7029         * doc/tm.texi: Regenerated.
7030
7031 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
7032
7033         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
7034         QImode checks.
7035
7036 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
7037
7038         * df-core.c (df_find_def): Compare register numbers.
7039         (df_find_use): Likewise.
7040
7041 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
7042
7043         PR target/56903
7044         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
7045         lra_in_progress for return.
7046
7047 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
7048
7049         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
7050         define_insn into define_insn_and_split and emit movsicc patterns.
7051
7052 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
7053
7054         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
7055
7056 2013-04-12  Richard Biener  <rguenther@suse.de>
7057
7058         * tree-pass.h (TODO_do_not_ggc_collect): New.
7059         * passes.c (execute_one_ipa_transform_pass): Honor
7060         TODO_do_not_ggc_collect.
7061         (execute_one_pass): Likewise.
7062
7063         Revert
7064         2013-04-10  Richard Biener  <rguenther@suse.de>
7065
7066         * passes.c (init_optimization_passes): Remove reload pass.
7067         * ira.c (do_reload): Merge into ...
7068         (ira): ... this.
7069         (rest_of_handle_reload): Remove.
7070         (pass_reload): Likewise.
7071         * config/i386/i386.c (ix86_option_override): Refer to ira instead
7072         of reload for vzeroupper pass placement.
7073
7074 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
7075
7076         PR tree-optimization/56918
7077         PR tree-optimization/56920
7078         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
7079         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
7080         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
7081         use wide_mul_with_sign method.
7082
7083 2013-04-12  Richard Biener  <rguenther@suse.de>
7084
7085         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
7086         not be considered a gimple constant.
7087
7088 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
7089
7090         * fold-const.c (const_binop): Handle vector shifts by a scalar.
7091         (fold_binary_loc): Call const_binop also for mixed vector-scalar
7092         operations.
7093
7094 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7095             Jakub Jelinek  <jakub@redhat.com>
7096
7097         * opts.c: Include diagnostic-color.h.
7098         (common_handle_option): Handle OPT_fdiagnostics_color_.
7099         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
7100         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
7101         (diagnostic-color.o): New.
7102         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
7103         (diagnostic_color_rule): New enum.
7104         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
7105         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
7106         the location string.
7107         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
7108         either NULL, or color kind.
7109         * diagnostic-color.c: New file.
7110         * diagnostic-color.h: New file.
7111         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
7112         arguments.
7113         * doc/invoke.texi (-fdiagnostics-color): Document.
7114         * pretty-print.h (pp_show_color): Define.
7115         (struct pretty_print_info): Add show_color field.
7116         * diagnostic.c: Include diagnostic-color.h.
7117         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
7118         macros.  Colorize error:, warning: etc. strings and also the location
7119         string.
7120         (diagnostic_show_locus): Colorize the caret line.
7121         * pretty-print.c: Include diagnostic-color.h.
7122         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
7123         inside of %< %> quotes or quoted through q format modifier.
7124
7125 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7126
7127         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
7128
7129 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7130
7131         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
7132         code in CC_NZ mode.
7133         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
7134         pattern.
7135
7136 2013-04-11  Marek Polacek  <polacek@redhat.com>
7137
7138         PR tree-optimization/48184
7139         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
7140
7141 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
7142
7143         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
7144         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
7145         (skip_simple_arithmetic): Tidy up.
7146         * tree.h (skip_simple_constant_arithmetic): Declare.
7147
7148 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7149
7150         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
7151
7152 2013-04-11  Richard Biener  <rguenther@suse.de>
7153
7154         * tree-vect-loop.c (get_initial_def_for_induction): Properly
7155         generate vector constants.
7156
7157 2013-04-11  Richard Biener  <rguenther@suse.de>
7158
7159         PR tree-optimization/56878
7160         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
7161         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
7162         New function.
7163         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7164         Prefer to align the DR with the most invariant base address.
7165
7166 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
7167
7168         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
7169         comment.
7170
7171 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
7172
7173         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
7174         floating-point vector comparisons against 0.
7175
7176 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
7177
7178         PR tree-optimization/56899
7179         * fold-const.c (extract_muldiv_1): Apply distributive law
7180         only if TYPE_OVERFLOW_WRAPS (ctype).
7181
7182 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
7183
7184         PR target/56124
7185         * ira-costs.c (scan_one_insn): Check whether the source rtx of
7186         loading has side effect.
7187
7188 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
7189
7190         * config/sparc/sparc.c: Include tree-pass.h.
7191         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
7192         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
7193         head of file.  Change return type.  Split off gate function.
7194         (sparc_gate_work_around_errata): New function.
7195         (pass_work_around_errata): New pass definition.
7196         (insert_pass_work_around_errata) New pass insert definition to
7197         insert pass_work_around_errata just after delayed-branch scheduling.
7198         (sparc_option_override): Insert the pass.
7199         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
7200
7201 2013-04-10  David S. Miller  <davem@davemloft.net>
7202
7203         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
7204         or -mcpu=hypersparc.
7205
7206         * target.def (cstore_mode): New hook.
7207         * target.h: Include insn-codes.h
7208         * targhooks.c: Likewise.
7209         (default_cstore_mode): New function.
7210         * targhooks.h: Declare it.
7211         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
7212         * doc/tm.texi: Rebuild.
7213         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
7214         target hook, rather than inspecting the insn_data.
7215         * config/sparc/sparc.c (sparc_cstore_mode): New function.
7216         (TARGET_CSTORE_MODE): Redefine.
7217         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
7218         result patterns.
7219         * config/sparc/predicates.md (cstore_result_operand): New special
7220         predicate.
7221         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
7222         Use it for operand 0.
7223         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
7224         (*snesi_special): Likewise.
7225         (*snesi_zero): Likewise.
7226         (*seqsi_zero): Likewise.
7227         (*sltu_insn): Likewise.
7228         (*sgeu_insn): Likewise.
7229         (*seqdi_special): Make operand 0 and comparison operation be of
7230         DImode.
7231         (*snedi_special): Likewise.
7232         (*snedi_special_vis3): Likewise.
7233         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
7234         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
7235         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
7236         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
7237         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
7238         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
7239         (*sltu_extend_sp64): Likewise.
7240         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
7241         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
7242         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
7243         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
7244         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
7245
7246 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
7247
7248         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
7249         (aarch64_start_file): Use the new function.
7250
7251 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
7252             Jason Merrill  <jason@redhat.com>
7253
7254         * common.opt: Add -gdwarf.
7255         * opts.c (common_handle_option): Handle it.
7256         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
7257
7258 2013-04-10  Richard Biener  <rguenther@suse.de>
7259
7260         * passes.c (execute_todo): Do not call ggc_collect conditional here.
7261         (execute_one_ipa_transform_pass): But unconditionally here.
7262         (execute_one_pass): And here.
7263         (init_optimization_passes): Remove reload pass.
7264         * tree-pass.h (TODO_ggc_collect): Remove.
7265         (pass_reload): Likewise.
7266         * ira.c (do_reload): Merge into ...
7267         (ira): ... this.
7268         (rest_of_handle_reload): Remove.
7269         (pass_reload): Likewise.
7270         * config/i386/i386.c (ix86_option_override): Refer to ira instead
7271         of reload for vzeroupper pass placement.
7272         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
7273         and todo_flags_finish of all passes.
7274
7275 2013-04-10  Richard Biener  <rguenther@suse.de>
7276
7277         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
7278         first_const_oprnd field, rename first_def_type to first_op_type.
7279         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
7280         (vect_get_and_check_slp_defs): Always use the type of the
7281         operand.  Allow mixed vect_external_def, vect_constant_def types.
7282         (vect_get_constant_vectors): Handle mixed vect_external_def,
7283         vect_constant_def types.
7284
7285 2013-04-10  Joern Rennecke <joern.rennecke@embecosm.com>
7286
7287         PR tree-optimization/55524
7288         * tree-ssa-math-opts.c
7289         (convert_mult_to_fma): Don't use an fms construct
7290         when we don't have an fms operation, but fnma, and it looks
7291         likely that we'll be able to use the latter.
7292
7293 2013-04-10  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
7294
7295         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
7296         function.
7297         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
7298         inline fail caused by overwritable functions.
7299
7300 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
7301
7302         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
7303         unnecessary bits in the constant power of two case.
7304
7305 2013-04-10  Richard Biener  <rguenther@suse.de>
7306
7307         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
7308         broken code swapping operands.
7309         (vect_build_slp_tree): Do not compute load permutations here.
7310         (vect_analyze_slp_instance): Compute load permutations here,
7311         after building the SLP tree.
7312
7313 2013-04-09  Christian Bruel  <christian.bruel@st.com>
7314
7315         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
7316         of next/prev_real_insn.
7317
7318 2013-04-09  Jan Hubicka  <jh@suse.cz>
7319
7320         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
7321         Drop aliased parameter.
7322         (function_and_variable_visibility): Do not handle alias pairs.
7323         * cgraph.c (varpool_externally_visible_p): Update prototype.
7324         * varpool.c (varpool_add_new_variable): Update.
7325
7326 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7327
7328         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
7329
7330 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
7331
7332         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
7333
7334         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
7335
7336 2013-04-09  Marek Polacek  <polacek@redhat.com>
7337
7338         PR tree-optimization/48762
7339         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
7340
7341 2013-04-09  Richard Biener  <rguenther@suse.de>
7342
7343         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
7344         dealing with cost.
7345         (vect_build_slp_tree): Likewise.
7346         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
7347         calculating the cost of a SLP instance.
7348         (vect_analyze_slp_instance): Use it from here, after building
7349         the SLP tree.
7350
7351 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
7352
7353         PR middle-end/56883
7354         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
7355         expand_omp_for_static_chunk): Use simple_p = true in
7356         force_gimple_operand_gsi calls when assigning to addressable decls.
7357
7358 2013-04-09  Jeff Law  <law@redhat.com>
7359
7360         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
7361         when the boolean was created by converting a wider object which
7362         had a boolean range.
7363
7364 2013-04-09  Richard Biener  <rguenther@suse.de>
7365
7366         * tree-vectorizer.h (slp_void_p): Remove.
7367         (slp_tree): Typedef before _slp_tree declaration.
7368         (struct _slp_tree): Use a vector of slp_tree as children.
7369         (vect_get_place_in_interleaving_chain): Remove.
7370         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
7371         Move ...
7372         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
7373         and make static.
7374         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
7375         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
7376         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
7377         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
7378         Use slp_node instead of slp_void_p and adjust.
7379
7380 2013-04-09  Richard Biener  <rguenther@suse.de>
7381
7382         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
7383         work that is not necessary.
7384
7385 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
7386
7387         PR tree-optimization/56854
7388         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
7389         forward into clobber stmts if it would change MEM_REF lhs into
7390         non-MEM_REF.
7391
7392 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
7393
7394         * tree.c (type_hash_lookup, type_hash_add): Make static.
7395         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
7396
7397 2013-04-09  Richard Biener  <rguenther@suse.de>
7398
7399         * tree.h (unsave_expr_now): Remove.
7400         * tree-inline.c (mark_local_for_remap_r): Remove.
7401         (unsave_expr_1): Likewise.
7402         (unsave_r): Likewise.
7403         (unsave_expr_now): Likewise.
7404         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
7405         (propagate_tree_value): Likewise.
7406
7407 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
7408
7409         * doc/rtl.texi (sequence): Rewrite documentation to match the
7410         current use of SEQUENCE rtl objects.
7411         * rtl.def (SEQUENCE): Likewise.
7412
7413         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
7414         Update documentation.
7415         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
7416         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
7417
7418         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
7419
7420 2013-04-08  Teresa Johnson  <tejohnson@google.com>
7421
7422         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
7423         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
7424         methods.
7425         (estimate_edge_size_and_time): Add comment to suggest using rounding
7426         methods.
7427         (estimate_node_size_and_time): Ditto.
7428         (remap_edge_change_prob): Use helper rounding divide methods.
7429         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
7430         (gimple_mod_pow2_value_transform): Ditto.
7431         (gimple_mod_subtract_transform): Ditto.
7432         (gimple_ic_transform): Ditto.
7433         (gimple_stringops_transform): Ditto.
7434         * stmt.c (conditional_probability): Ditto.
7435         (emit_case_dispatch_table): Ditto.
7436         * lto-cgraph.c (merge_profile_summaries): Ditto.
7437         * tree-optimize.c (execute_fixup_cfg): Ditto.
7438         * cfgcleanup.c (try_forward_edges): Ditto.
7439         * cfgloopmanip.c (scale_loop_profile): Ditto.
7440         (loopify): Ditto.
7441         (duplicate_loop_to_header_edge): Ditto.
7442         (lv_adjust_loop_entry_edge): Ditto.
7443         * tree-vect-loop.c (vect_transform_loop): Ditto.
7444         * profile.c (compute_branch_probabilities): Ditto.
7445         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
7446         * lto-streamer-in.c (input_cfg): Ditto.
7447         * gimple-streamer-in.c (input_bb): Ditto.
7448         * ipa-cp.c (update_profiling_info): Ditto.
7449         (update_specialized_profile): Ditto.
7450         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
7451         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
7452         rounding methods.
7453         * sched-rgn.c (compute_dom_prob_ps): Ditto.
7454         (compute_trg_info): Ditto.
7455         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
7456         (purge_dead_edges): Ditto.
7457         * loop-unswitch.c (unswitch_loop): Ditto.
7458         * cgraphclones.c (cgraph_clone_edge): Ditto.
7459         (cgraph_clone_node): Ditto.
7460         * tree-inline.c (copy_bb): Ditto.
7461         (copy_edges_for_bb): Ditto.
7462         (initialize_cfun): Ditto.
7463         (copy_cfg_body): Ditto.
7464         (expand_call_inline): Ditto.
7465
7466 2013-04-08  Kai Tietz  <ktietz@redhat.com>
7467
7468         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
7469         TARGET_CYGWIN64 by TARGET_64BIT.
7470
7471 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
7472
7473         * config/epiphany/epiphany.md (GPR_1): New constant.
7474         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
7475         * config/epiphany/epiphany.c (gen_compare_reg):
7476         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
7477         is already in place.
7478         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
7479         Don't require being called during rtl expansion; If y operlaps r0,
7480         return 0.
7481         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
7482         (epiphany_expand_epilogue): Likewise.
7483
7484         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
7485         Don't use CC_FPmode for ORDERED / UNORDERED.
7486         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
7487
7488         * config/epiphany/constraints.md (CnL): New constraint.
7489         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
7490         * config/epiphany/predicates.md (add_operand): Allow 1024.
7491
7492         * config/epiphany/epiphany.md (logical_op): New code iterator.
7493         (op_mnc): New code attribute.
7494         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
7495         (mov_f+1, mov_f+2): New peephole2 patterns.
7496
7497         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
7498         (cstoresi4): Also allow re-use of zero result when doing a NE
7499         comparison to a non-zero operand.
7500         Use (clobber (scratch)) for first insn if the gpr output is not needed.
7501
7502         * config/epiphany/epiphany.md (<insn_opname>v2si3):
7503         Use gen_addsi3_i / gen_subsi3_i.
7504
7505 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
7506
7507         PR c++/34949
7508         PR c++/50243
7509         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
7510         contain anything but clobbers, at most one __builtin_stack_restore,
7511         optionally debug stmts and final resx, and if it has at least one
7512         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
7513         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
7514         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
7515         which isn't defaut definition, remove them.
7516         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
7517         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
7518         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
7519         with MEM_REF LHS with SSA_NAME address.
7520
7521 2013-04-08  Jeff Law  <law@redhat.com>
7522
7523         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
7524
7525 2013-04-08  Richard Biener  <rguenther@suse.de>
7526
7527         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
7528         extra newline.
7529         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
7530         determined vector type.
7531         (vect_analyze_data_refs): Likewise.
7532         (vect_get_new_vect_var): Adjust.
7533         (vect_create_destination_var): Preserve SSA name versions.
7534         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
7535         not dump anything here.
7536
7537 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
7538
7539         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
7540         Add member lr_slot_known.
7541         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
7542         if necessary.
7543         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
7544         Remove code that sets lr_slot_offset according to what a previous
7545         version of epiphany_emit_save_restore used to do.
7546         (epiphany_emit_save_restore): When doing an lr save or restore,
7547         set/verify lr_slot_known and lr_slot_offset.
7548
7549 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
7550
7551         PR target/54338
7552         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
7553         in ALL_REGS.
7554
7555 2013-04-08  Richard Biener  <rguenther@suse.de>
7556
7557         * alias.c (find_base_term): Fix thinko in previous change.
7558
7559 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
7560
7561         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
7562         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
7563         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
7564         if possible to compute val.
7565         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
7566         For QImode integers don't require anything about precision.  Use
7567         const_with_all_bytes_same to find out if the constant doesn't have
7568         repeated bytes in it.
7569
7570 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7571
7572         * config/s390/s390.c (s390_expand_insv): Only accept insertions
7573         within mode size.
7574
7575 2013-04-08  Marek Polacek  <polacek@redhat.com>
7576
7577         PR rtl-optimization/48182
7578         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
7579         value to 1.
7580
7581 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7582
7583         PR target/55487
7584         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
7585         nuses, make sure we have a label.
7586
7587 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7588
7589         PR target/56843
7590         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
7591         (rs6000_emit_swdiv_low_precision): Remove.
7592         (rs6000_emit_swdiv): Rewrite to handle between one and four
7593         iterations of Newton-Raphson generally; modify required number of
7594         iterations for some cases.
7595         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
7596
7597 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
7598
7599         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
7600         set-but-unused variable.
7601
7602         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
7603         basic blocks of released function bodies garbage-collectable.
7604
7605         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
7606         (struct rtl_opt_pass): Add TODO_df_finish.
7607
7608         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
7609
7610 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7611
7612         * config/arm/constraints.md (q): New constraint.
7613         * config/arm/ldrdstrd.md: New file.
7614         * config/arm/arm.md (ldrdstrd.md) New include.
7615         (arm_movdi): Use "q" instead of "r" constraint
7616         for double-word memory access.
7617         (movdf_soft_insn): Likewise.
7618         * config/arm/vfp.md (movdi_vfp): Likewise.
7619         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
7620         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
7621         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
7622         (mem_ok_for_ldrd_strd): Likewise.
7623         (output_move_double): Update assertion.
7624
7625 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7626
7627         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
7628
7629 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7630
7631         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
7632         define_insn_and_split.
7633         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
7634
7635 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7636
7637         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
7638         define_insn_and_split.
7639         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
7640         (shiftsi3_compare): New pattern.
7641         (rrx): New pattern.
7642         * config/arm/unspecs.md (UNSPEC_RRX): New.
7643
7644 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7645
7646         * config/arm/arm.md (negdi_extendsidi): New pattern.
7647         (negdi_zero_extendsidi): Likewise.
7648
7649 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7650
7651         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
7652         define_insn_and_split.
7653         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
7654         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
7655
7656 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7657
7658         * config/arm/arm.md (arm_subdi3): Convert define_insn into
7659         define_insn_and_split.
7660         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
7661         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
7662
7663 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7664
7665         * config/arm/arm.md (subsi3_carryin): New pattern.
7666         (subsi3_carryin_const): Likewise.
7667         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
7668         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
7669
7670 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7671
7672         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
7673
7674 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7675
7676         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
7677         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
7678
7679 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7680
7681         * config/arm/arm.c (arm_expand_builtin): Change fcode
7682         type to unsigned int.
7683
7684 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7685
7686         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
7687
7688 2013-04-04  Ian Lance Taylor  <iant@google.com>
7689
7690         * doc/standards.texi (Standards): The Go frontend supports the Go 1
7691         language standard.
7692
7693 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
7694
7695         PR middle-end/56729
7696         * df-scan.c (df_insn_delete): Disable failing assert.
7697
7698 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7699
7700         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
7701         New function prototype.
7702         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
7703         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
7704         (arm_builtin_vectorized_function): New function.
7705
7706 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7707
7708         * config/arm/arm_neon_builtins.def: New file.
7709         * config/arm/arm.c (neon_builtin_data): Move contents to
7710         arm_neon_builtins.def.
7711         (enum arm_builtins): Include neon builtin definitions.
7712         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
7713         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
7714
7715 2013-04-04  Marek Polacek  <polacek@redhat.com>
7716
7717         PR tree-optimization/48186
7718         * predict.c (maybe_hot_frequency_p): Return false if
7719         HOT_BB_FREQUENCY_FRACTION is 0.
7720         (cgraph_maybe_hot_edge_p): Likewise.
7721
7722 2013-04-04  Richard Biener  <rguenther@suse.de>
7723
7724         PR tree-optimization/56826
7725         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
7726         more accurately.
7727
7728 2013-04-04  Richard Biener  <rguenther@suse.de>
7729
7730         PR tree-optimization/56213
7731         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
7732         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
7733
7734 2013-04-04  Richard Biener  <rguenther@suse.de>
7735
7736         PR tree-optimization/56837
7737         * tree-loop-distribution.c (classify_partition): For non-zero
7738         values require that the value has the same precision as its
7739         mode to be useful as memset value.
7740
7741 2013-04-03  Nick Clifton  <nickc@redhat.com>
7742
7743         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
7744         (fmssf4): Use fmsf.s on E3V5 architectures.
7745         (fnmasf4): Use fnmaf.s on E3V5 architectures.
7746         (fnmssf4): Use fnmsf.s on E3V5 architectures.
7747
7748 2013-04-03  Jeff Law  <law@redhat.com>
7749
7750         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
7751         (lra-eliminations.o): Likewise.
7752
7753 2013-04-03  Teresa Johnson  <tejohnson@google.com>
7754
7755         * gcov-io.c (compute_working_sets): Moved most of body of old
7756         compute_working_sets here from profile.c.
7757         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
7758         (gcov_working_set_t): Moved typedef here from basic-block.h
7759         (compute_working_set): Declare.
7760         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
7761         (get_working_sets): Renamed from compute_working_set,
7762         replace most of body with call to new compute_working_sets.
7763         (get_exec_counts): Replace call to compute_working_sets
7764         to get_working_sets.
7765         * profile.h (get_working_sets): Renamed from compute_working_set.
7766         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
7767         to get_working_sets.
7768         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
7769         * gcov-dump.c (dump_working_sets): New function.
7770
7771 2013-04-03  Kenneth Zadeck <zadeck@naturalbridge.com>
7772
7773         * hwint.c (sext_hwi, zext_hwi): New functions.
7774         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
7775         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
7776         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
7777         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
7778         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
7779         (sext_hwi, zext_hwi): New functions.
7780
7781 2013-04-03  Jeff Law  <law@redhat.com>
7782
7783         PR tree-optimization/56799
7784         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
7785         back test for widening conversion erroneously dropped in prior change.
7786
7787 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7788
7789         PR target/56809
7790         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
7791         instead of next_real_insn.
7792
7793 2013-04-03  Marek Polacek  <polacek@redhat.com>
7794
7795         PR sanitizer/55702
7796         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
7797
7798 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7799
7800         PR target/56809
7801         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
7802         next_real_insn.
7803         (thumb1_output_casesi): Likewise.
7804         (thumb2_output_casesi): Likewise.
7805
7806 2013-04-03  Richard Biener  <rguenther@suse.de>
7807
7808         PR tree-optimization/56817
7809         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
7810         Split out ...
7811         (tree_unroll_loops_completely_1): ... new function to manually
7812         walk the loop tree, properly defering outer loops of unrolled
7813         loops to later iterations.
7814
7815 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
7816
7817         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
7818         (vectorizable_load): Likewise.
7819         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
7820         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
7821
7822 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
7823
7824         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
7825         BIT_FIELD_REF.
7826
7827 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7828
7829         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
7830
7831 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
7832
7833         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
7834
7835 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
7836
7837         PR tree-optimization/56790
7838         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
7839         folding.
7840
7841 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
7842
7843         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
7844         Handle VEC_MERGE.
7845         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
7846         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
7847         equal arguments.
7848
7849 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
7850
7851         PR c/19449
7852         * tree.h (force_folding_builtin_constant_p): New decl.
7853         * builtins.c (force_folding_builtin_constant_p): New variable.
7854         (fold_builtin_constant_p): Fold immediately also if
7855         force_folding_builtin_constant_p.
7856
7857 2013-04-03  Richard Biener  <rguenther@suse.de>
7858
7859         PR tree-optimization/56812
7860         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
7861         DRs of the same interleaving chain are independent.
7862
7863 2013-04-02  Jason Merrill  <jason@redhat.com>
7864
7865         * gdbinit.in (pbb): Use debug fn.
7866
7867 2013-04-02  Lawrence Crowl  <crowl@google.com>
7868
7869         * sese.h (struct ivtype_map_elt_s): Remove unused.
7870         (extern debug_ivtype_map): Remove unused.
7871         (extern eq_ivtype_map_elts): Remove unused.
7872         * sese.c (debug_ivtype_map): Removed unused.
7873         (debug_ivtype_map_1): Removed unused.
7874         (debug_ivtype_elt): Remove unused.
7875         (eq_ivtype_map_elts): Remove unused.
7876
7877
7878 2013-04-02  Kai Tietz  <ktietz@redhat.com>
7879
7880         PR target/52790
7881         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
7882         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
7883         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
7884         function.
7885         (legitimize_pe_coff_symbol): Likewise.
7886         (is_imported_p): New helper-function.
7887         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
7888         for Windows x64 targets.
7889         (ix86_expand_prologue): Optimize for pe-coff targets.
7890         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
7891         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
7892         medium/large code-model.
7893         (legitimize_pic_address): Likewise.
7894         (legitimize_tls_address): Likewise.
7895         (ix86_expand_call): Likewise.
7896         (x86_output_mi_thunk): Likewise.
7897         (get_dllimport_decl): Add new beimport argument.
7898         (construct_plt_address): Don't assert for x64 pe-coff targets.
7899         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
7900         targets.
7901         (SYMBOL_FLAG_STUBVAR): New macro.
7902         (SYMBOL_REF_STUBVAR_P): Likewise.
7903         * config/i386/winnt.c (stub_list): New structure.
7904         (stub_head): New local variable.
7905         (i386_pe_record_stub): New function.
7906         (i386_pe_file_end): Emit refptr-stubs.
7907
7908 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
7909
7910         PR rtl-optimization/56745
7911         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
7912         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
7913
7914         PR c++/34949
7915         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
7916         and both of them are MEM_REFs, just compare first argument for
7917         equality and attempt to deal even with differing offsets.
7918
7919         PR c++/34949
7920         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
7921         of gimple_clobber_p to be MEM_REF.
7922         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
7923         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
7924         after gimplification.
7925         * asan.c (get_mem_ref_of_assignment): Don't instrument
7926         gimple_clobber_p stmts.
7927         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
7928         gimple_clobber_p stmt if they have MEM_REF lhs and
7929         are dead because of another gimple_clobber_p stmt.
7930         * tree-ssa-live.c (clear_unused_block_pointer): Treat
7931         gimple_clobber_p stmts like debug stmts.
7932         (remove_unused_locals): Remove clobbers with MEM_REF lhs
7933         that refer to unused VAR_DECLs or uninitialized values.
7934         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
7935         gimple_clobber_p stmts if they refer to removed parameters.
7936         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
7937         formatting.
7938
7939 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
7940
7941         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
7942         using SWI48 mode attribute.
7943
7944 2013-04-02  Wei Mi  <wmi@google.com>
7945
7946         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
7947         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
7948         *<rotate_insn><mode>3_mask in i386.md.
7949
7950 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7951
7952         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
7953
7954 2013-04-02  Richard Biener  <rguenther@suse.de>
7955
7956         PR tree-optimization/56778
7957         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
7958         Runtime alias tests are not supported for gather loads.
7959         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
7960         stmts referenced from SSA operands before updating SSA form.
7961
7962 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
7963             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7964
7965         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
7966         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
7967         * config/arm/cortex-a53.md: New file.
7968         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
7969         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
7970         * config/arm/arm.c (arm_issue_rate): Likewise.
7971         * config/arm/arm-tune.md: Regenerate
7972         * config/arm/arm-tables.opt: Regenerate.
7973         * config/arm/arm-cores.def: Add cortex-a53.
7974
7975 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
7976
7977         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
7978         non-static link.
7979
7980 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
7981
7982         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
7983         scalar load/store operations using B/H registers.
7984         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
7985
7986 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
7987
7988         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
7989         scalar move.
7990         * config/aarch64/aarch64.c
7991         (aarch64_simd_scalar_immediate_valid_for_move): New.
7992         * config/aarch64/aarch64-protos.h
7993         (aarch64_simd_scalar_immediate_valid_for_move): New.
7994         * config/aarch64/constraints.md (Dh, Dq): New.
7995         * config/aarch64/iterators.md (hq): New.
7996
7997 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
7998
7999         * reorg.c (get_branch_condition): Deal with conditional returns.
8000         (fill_simple_delay_slots): Remove dead code dealing with jumps.
8001
8002 2013-04-01  Wei Mi  <wmi@google.com>
8003
8004         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
8005         Truncate operand 2 using %b asm operand modifier.
8006         (*<shift_insn><mode>3_mask): Ditto.
8007         (*<rotate_insn><mode>3_mask): Ditto.
8008
8009 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
8010
8011         PR middle-end/56798
8012         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
8013
8014 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
8015
8016         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
8017         of next_real_insn.
8018         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
8019
8020 2013-03-30  Lawrence Crowl  <crowl@google.com>
8021
8022         * dse.c (clear_alias_sets): Remove never set.
8023         (disqualified_clear_alias_sets): Remove never set.
8024         (clear_alias_mode_pool): Remove never set.
8025         (dse_step0): Remove condition that is never true.
8026         (canon_address): Remove condition that is never true.
8027         (dse_step7): Remove condition that is never true.
8028         (rest_of_handle_dse): Remove condition that is never true.
8029         (rest_of_handle_dse::did_global): Remove never read from above.
8030         (dse_step2_spill): Remove never called from above.
8031         (dse_step5_spill): Remove never called from above.
8032
8033 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
8034
8035         * doc/md.texi (Standard Names) <casesi>: Update documentation for
8036         JUMP_TABLE_DATA changes.
8037         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
8038         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
8039         (Insns) <jump_table_data>: New entry.
8040         * doc/tm.texi: Regenerate.
8041
8042         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
8043
8044         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
8045         for table jump at the end of a basic block using tablejump_p.
8046         * targhooks.c (default_invalid_within_doloop): Likewise.
8047         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
8048         target hook implementation that is identical to the default hook.
8049         (rs6000_invalid_within_doloop): Remove.
8050
8051         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
8052         unused variable from tablejump_p call.
8053
8054         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
8055         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
8056         (INSN_DELETED_P): Likewise.
8057         (emit_jump_table_data): New prototype.
8058         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
8059         after 4th as unused.
8060         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
8061         * sched-vis.c (print_insn): Likewise.
8062         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
8063         insn for compatibility with back ends that use next_active_insn to
8064         identify jump table data.
8065         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
8066         (remove_insn): Likewise.
8067         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
8068         to be emitted.
8069         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
8070         (emit_jump_table_data): New function.
8071
8072         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
8073         basic block, a JUMP_TABLE_DATA never is.
8074         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
8075         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
8076         off from code handling real insns.
8077         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
8078         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
8079         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
8080         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
8081         is not a NONDEBUG_INSN_P.
8082         * ira-costs.c (scan_one_insn): Likewise.
8083         * jump.c (mark_all_labels): Likewise.
8084         (mark_jump_label_1): Likewise.
8085         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
8086         * lra.c (get_insn_freq): Expect all insns reaching here to be in
8087         a basic block.
8088         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
8089         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
8090         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
8091         JUMP_TABLE_DATA_P insns.
8092         (calculate_elim_costs_all_insns): Likewise.
8093         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
8094         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
8095         (delete_output_reload): Code style fixups.
8096         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
8097         insn flags on this non-insn.
8098         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
8099         as scheduling barriers, for pre-change compatibility.
8100         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
8101         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
8102
8103         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
8104         redundant JUMP_TABLE_DATA_P test.
8105         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
8106         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
8107         (frv_for_each_packet): Likewise.
8108         * config/i386/i386.c (min_insn_size): Likewise.
8109         (ix86_avoid_jump_mispredicts): Likewise.
8110         * config/m32r/m32r.c (m32r_is_insn): Likewise.
8111         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
8112         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
8113         (mips16_insn_length): Robustify.
8114         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
8115         (mips16_split_long_branches): Likewise.
8116         * config/pa/pa.c (pa_combine_instructions): Likewise.
8117         * config/rs6000/rs6000.c (get_next_active_insn): Treat
8118         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
8119         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
8120         as contributing to pool range lengths.
8121         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
8122         Remove redundant JUMP_TABLE_DATA_P test.
8123         (sh_loop_align): Likewise.
8124         (split_branches): Likewise.
8125         (sh_insn_length_adjustment): Likewise.
8126         * config/spu/spu.c (get_branch_target): Likewise.
8127
8128 2013-03-29  Jan Hubicka  <jh@suse.cz>
8129
8130         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
8131         gcov streaming; stream hot bb threshold to ltrans.
8132         * predict.c (get_hot_bb_threshold): Break out from ....
8133         (maybe_hot_count_p): ... here.
8134         (set_hot_bb_threshold): New function.
8135         * lto-section-in.c (lto_section_name): Add profile.
8136         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
8137         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
8138         and data-streamer.h
8139         (histogram_entry): New structure.
8140         (histogram, histogram_pool): New global vars.
8141         (histogram_hash): New structure.
8142         (histogram_hash::hash): New method.
8143         (histogram_hash::equal): Likewise.
8144         (account_time_size): New function.
8145         (cmp_counts): New function.
8146         (dump_histogram): New function.
8147         (ipa_profile_generate_summary): New function.
8148         (ipa_profile_write_summary): New function.
8149         (ipa_profile_read_summary): New function.
8150         (ipa_profile): Decide on threshold.
8151         (pass_ipa_profile): Add ipa_profile_write_summary and
8152         ipa_profile_read_summary.
8153         * Makefile.in (ipa.o): Update dependencies.
8154         * lto-streamer.h (LTO_section_ipa_profile): New section.
8155
8156 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8157
8158         * tree.h (VAR_P): New.
8159
8160 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
8161
8162         PR lto/56777
8163         * doc/invoke.texi ([-fwhole-program]): Fix typo.
8164
8165 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
8166
8167         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
8168         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
8169         (control_flow_insn_p): Likewise.
8170         * cfgrtl.c (duplicate_insn_chain): Likewise.
8171         * final.c (get_attr_length_1): Likewise.
8172         (shorten_branches): Likewise.
8173         (final_scan_insn): Likewise.
8174         * function.c (instantiate_virtual_regs): Likewise.
8175         * gcse.c (insert_insn_end_basic_block): Likewise.
8176         * ira-costs.c (scan_one_insn): Likewise.
8177         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
8178         * lra.c (check_rtl): Likewise.
8179         * reload1.c (elimination_costs_in_insn): Likewise.
8180         * reorg.c (follow_jumps): Likewise.
8181
8182         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
8183         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
8184         (thumb_far_jump_used_p): Likewise.
8185         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
8186         (workaround_speculation): Likewise.
8187         (add_sched_insns_for_speculation): Likewise.
8188         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
8189         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
8190         (frv_for_each_packet): Likewise.
8191         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
8192         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
8193         (final_emit_insn_group_barriers): Likewise.
8194         * config/m32r/m32r.c (m32r_is_insn): Likewise.
8195         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
8196         (mips16_insn_length): Likewise.
8197         * config/pa/pa.c (pa_reorg): Likewise.
8198         (pa_combine_instructions): Likewise.
8199         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
8200         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
8201         (sh_reorg): Likewise.
8202         (split_branches): Likewise.
8203         * config/spu/spu.c (get_branch_target): Likewise.
8204
8205         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
8206         JUMP_TABLE_DATA_P.
8207
8208 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
8209
8210         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
8211         Fix declaration name.
8212
8213 2013-03-28  Lawrence Crowl  <crowl@google.com>
8214
8215         * graphds.h (struct graph.indicies): Remove unused.
8216         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
8217         (SCOP_ORIGINAL_PDDRS): Remove unused.
8218         * sese.h (extern insert_loop_close_phis): Removed unused.
8219         (extern insert_guard_phis): Removed unused.
8220         (extern ivtype_map_elt_info): Removed unused.
8221         (new_ivtype_map_elt): Removed unused.
8222         * sese.c (ivtype_map_elt_info): Removed unused.
8223
8224 2013-03-28  Lawrence Crowl  <crowl@google.com>
8225
8226         * Makefile.in: Add several missing include dependences.
8227         (DUMPFILE_H): New.
8228         (test-dump.o): New.  This object is not added to any executable,
8229         but is present for ad-hoc testing.
8230         * bitmap.c
8231         (debug (const bitmap_head_def &)): New.
8232         (debug (const bitmap_head_def *)): New.
8233         * bitmap.h
8234         (extern debug (const bitmap_head_def &)): New.
8235         (extern debug (const bitmap_head_def *)): New.
8236         * cfg.c
8237         (debug (edge_def &)): New.
8238         (debug (edge_def *)): New.
8239         * cfghooks.c
8240         (debug (basic_block_def &)): New.
8241         (debug (basic_block_def *)): New.
8242         * dumpfile.h
8243         (dump_node (const_tree, int, FILE *)): Correct source file.
8244         * dwarf2out.c
8245         (debug (die_struct &)): New.
8246         (debug (die_struct *)): New.
8247         * dwarf2out.h
8248         (extern debug (die_struct &)): New.
8249         (extern debug (die_struct *)): New.
8250         * gimple-pretty-print.c
8251         (debug (gimple_statement_d &)): New.
8252         (debug (gimple_statement_d *)): New.
8253         * gimple-pretty-print.h
8254         (extern debug (gimple_statement_d &)): New.
8255         (extern debug (gimple_statement_d *)): New.
8256         * ira-build.c
8257         (debug (ira_allocno_copy &)): New.
8258         (debug (ira_allocno_copy *)): New.
8259         (debug (ira_allocno &)): New.
8260         (debug (ira_allocno *)): New.
8261         * ira-int.h
8262         (extern debug (ira_allocno_copy &)): New.
8263         (extern debug (ira_allocno_copy *)): New.
8264         (extern debug (ira_allocno &)): New.
8265         (extern debug (ira_allocno *)): New.
8266         * ira-lives.c
8267         (debug (live_range &)): New.
8268         (debug (live_range *)): New.
8269         * lra-int.h
8270         (debug (lra_live_range &)): New.
8271         (debug (lra_live_range *)): New.
8272         * lra-lives.c
8273         (debug (lra_live_range &)): New.
8274         (debug (lra_live_range *)): New.
8275         * omega.c
8276         (debug (omega_pb_d &)): New.
8277         (debug (omega_pb_d *)): New.
8278         * omega.h
8279         (extern debug (omega_pb_d &)): New.
8280         (extern debug (omega_pb_d *)): New.
8281         * print-rtl.c
8282         (debug (const rtx_def &)): New.
8283         (debug (const rtx_def *)): New.
8284         * print-tree.c
8285         (debug_tree (tree): Move within file.
8286         (debug_raw (const tree_node &)): New.
8287         (debug_raw (const tree_node *)): New.
8288         (dump_tree_via_hooks (const tree_node *, int)): New.
8289         (debug (const tree_node &)): New.
8290         (debug (const tree_node *)): New.
8291         (debug_verbose (const tree_node &)): New.
8292         (debug_verbose (const tree_node *)): New.
8293         (debug_head (const tree_node &)): New.
8294         (debug_head (const tree_node *)): New.
8295         (debug_body (const tree_node &)): New.
8296         (debug_body (const tree_node *)): New.
8297         (debug_vec_tree (tree): Move and reimplement in terms of dump.
8298         (debug (vec<tree, va_gc> &)): New.
8299         (debug (vec<tree, va_gc> *)): New.
8300         * rtl.h
8301         (extern debug (const rtx_def &)): New.
8302         (extern debug (const rtx_def *)): New.
8303         * sbitmap.c
8304         (debug_raw (simple_bitmap_def &)): New.
8305         (debug_raw (simple_bitmap_def *)): New.
8306         (debug (simple_bitmap_def &)): New.
8307         (debug (simple_bitmap_def *)): New.
8308         * sbitmap.h
8309         (extern debug (simple_bitmap_def &)): New.
8310         (extern debug (simple_bitmap_def *)): New.
8311         (extern debug_raw (simple_bitmap_def &)): New.
8312         (extern debug_raw (simple_bitmap_def *)): New.
8313         * sel-sched-dump.c
8314         (debug (vinsn_def &)): New.
8315         (debug (vinsn_def *)): New.
8316         (debug_verbose (vinsn_def &)): New.
8317         (debug_verbose (vinsn_def *)): New.
8318         (debug (expr_def &)): New.
8319         (debug (expr_def *)): New.
8320         (debug_verbose (expr_def &)): New.
8321         (debug_verbose (expr_def *)): New.
8322         (debug (vec<rtx> &)): New.
8323         (debug (vec<rtx> *)): New.
8324         * sel-sched-dump.h
8325         (extern debug (vinsn_def &)): New.
8326         (extern debug (vinsn_def *)): New.
8327         (extern debug_verbose (vinsn_def &)): New.
8328         (extern debug_verbose (vinsn_def *)): New.
8329         (extern debug (expr_def &)): New.
8330         (extern debug (expr_def *)): New.
8331         (extern debug_verbose (expr_def &)): New.
8332         (extern debug_verbose (expr_def *)): New.
8333         (extern debug (vec<rtx> &)): New.
8334         (extern debug (vec<rtx> *)): New.
8335         * sel-sched-ir.h
8336         (_list_iter_cond_expr): Make inline instead of static.
8337         * sreal.c
8338         (debug (sreal &)): New.
8339         (debug (sreal *)): New.
8340         * sreal.h
8341         (extern debug (sreal &)): New.
8342         (extern debug (sreal *)): New.
8343         * tree.h
8344         (extern debug_raw (const tree_node &)): New.
8345         (extern debug_raw (const tree_node *)): New.
8346         (extern debug (const tree_node &)): New.
8347         (extern debug (const tree_node *)): New.
8348         (extern debug_verbose (const tree_node &)): New.
8349         (extern debug_verbose (const tree_node *)): New.
8350         (extern debug_head (const tree_node &)): New.
8351         (extern debug_head (const tree_node *)): New.
8352         (extern debug_body (const tree_node &)): New.
8353         (extern debug_body (const tree_node *)): New.
8354         (extern debug (vec<tree, va_gc> &)): New.
8355         (extern debug (vec<tree, va_gc> *)): New.
8356         * tree-cfg.c
8357         (debug (struct loop &)): New.
8358         (debug (struct loop *)): New.
8359         (debug_verbose (struct loop &)): New.
8360         (debug_verbose (struct loop *)): New.
8361         * tree-dump.c: Add header dependence.
8362         * tree-flow.h
8363         (extern debug (struct loop &)): New.
8364         (extern debug (struct loop *)): New.
8365         (extern debug_verbose (struct loop &)): New.
8366         (extern debug_verbose (struct loop *)): New.
8367         * tree-data-ref.c
8368         (debug (data_reference &)): New.
8369         (debug (data_reference *)): New.
8370         (debug (vec<data_reference_p> &)): New.
8371         (debug (vec<data_reference_p> *)): New.
8372         (debug (vec<ddr_p> &)): New.
8373         (debug (vec<ddr_p> *)): New.
8374         * tree-data-ref.h
8375         (extern debug (data_reference &)): New.
8376         (extern debug (data_reference *)): New.
8377         (extern debug (vec<data_reference_p> &)): New.
8378         (extern debug (vec<data_reference_p> *)): New.
8379         (extern debug (vec<ddr_p> &)): New.
8380         (extern debug (vec<ddr_p> *)): New.
8381         * tree-ssa-alias.c
8382         (debug (pt_solution &)): New.
8383         (debug (pt_solution *)): New.
8384         * tree-ssa-alias.h
8385         (extern debug (pt_solution &)): New.
8386         (extern debug (pt_solution *)): New.
8387         * tree-ssa-alias.c
8388         (debug (_var_map &)): New.
8389         (debug (_var_map *)): New.
8390         (debug (tree_live_info_d &)): New.
8391         (debug (tree_live_info_d *)): New.
8392         * tree-ssa-alias.h
8393         (extern debug (_var_map &)): New.
8394         (extern debug (_var_map *)): New.
8395         (extern debug (tree_live_info_d &)): New.
8396         (extern debug (tree_live_info_d *)): New.
8397
8398 2013-03-28  Jan Hubicka  <jh@suse.cz>
8399
8400         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
8401
8402 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
8403
8404         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
8405         record only when desired or required.
8406
8407 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
8408
8409         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
8410         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
8411
8412 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8413
8414         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
8415         (*andsi3_compare0_uxtw): New pattern.
8416         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
8417         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
8418
8419 2013-03-28  Jan Hubicka  <jh@suse.cz>
8420
8421         * data-streamer-in.c (streamer_read_gcov_count): New function.
8422         * gimple-streamer-out.c: Include value-prof.h.
8423         (output_gimple_stmt): Output histogram.
8424         (output_bb): Use streamer_write_gcov_count.
8425         * value-prof.c: Include data-streamer.h
8426         (dump_histogram_value): Add HIST_TYPE_MAX.
8427         (stream_out_histogram_value): New function.
8428         (stream_in_histogram_value): New function.
8429         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
8430         (stream_out_histogram_value, stream_in_histogram_value): Declare.
8431         * data-streamer-out.c (streamer_write_gcov_count): New function.
8432         (streamer_write_gcov_count_stream): New function.
8433         * lto-cgraph.c (lto_output_edge): Update counter streaming.
8434         (lto_output_node): Likewise.
8435         (input_node, input_edge): Likewise.
8436         * lto-streamer-out.c (output_cfg): Update streaming.
8437         * lto-streamer-in.c (input_cfg): Likewise.
8438         * data-streamer.h (streamer_write_gcov_count,
8439         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
8440         * gimple-streamer-in.c: Include value-prof.h
8441         (input_gimple_stmt): Input histograms.
8442         (input_bb): Update profile streaming.
8443
8444 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
8445
8446         * genmodes.c (emit_max_int): New function.
8447         (emit_insn_modes_h): Added call to emit_max_function.
8448         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
8449         Added doc.
8450         * machmode.def: Fixed comment.
8451
8452 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
8453
8454         * combine.c (try_combine): Removed useless assert.
8455         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
8456
8457 2013-03-28  Marek Polacek  <polacek@redhat.com>
8458             Richard Biener  <rguenther@suse.de>
8459
8460         PR tree-optimization/56695
8461         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
8462         build signed result of a vector comparison.
8463         * tree-cfg.c (verify_gimple_comparison): Check that a result
8464         of a vector comparison has signed type.
8465
8466 2013-03-28  Richard Biener  <rguenther@suse.de>
8467
8468         PR tree-optimization/37021
8469         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
8470         do not restrict gaps between groups.
8471         * tree-vect-stmts.c (vectorizable_load): Properly account for
8472         a gap between groups.
8473
8474 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
8475
8476         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
8477         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
8478         is not enabled.
8479
8480 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
8481
8482         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
8483         * doc/extend.texi (Named Address Spaces): Ditto.
8484         (Variable Attributes): Ditto.
8485
8486 2013-03-27  Kai Tietz  <ktietz@redhat.com>
8487
8488         * config.build: Add support for cygwin x64 target.
8489         * config.gcc: Likewise.
8490         * config.host: Likewise.
8491         * configure.ac: Likewise
8492         * configure: Regenerated.
8493
8494 2013-03-27 Kai Tietz  <ktietz@redhat.com>
8495
8496         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
8497         * config/i386/t-cygwin-w64: New file.
8498         * config/i386/cygwin-w64.h: New file.
8499         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
8500         and add support for x64-cygwin target.
8501         (CPP_SPEC): Likewise.
8502         (CXX_WRAP_SPEC_LIST): Undefine before define.
8503         (LIBGCJ_SONAME): Use 15 as version.
8504
8505 2013-03-27  Richard Biener  <rguenther@suse.de>
8506
8507         PR tree-optimization/56716
8508         * tree-ssa-structalias.c (perform_var_substitution): Adjust
8509         dumping for ref nodes.
8510
8511 2013-03-27  Martin Jambor  <mjambor@suse.cz>
8512
8513         PR tree-optimization/55334
8514         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
8515         restricted pointers to arrays.
8516
8517 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8518
8519         * Makefile.in (.SUFFIXES): Add .cc.
8520         (.c.o): Apply same recipe for implicit rule .cc.o.
8521
8522 2013-03-27  Richard Biener  <rguenther@suse.de>
8523
8524         PR tree-optimization/37021
8525         * tree-vect-data-refs.c (vect_check_strided_load): Allow
8526         REALPART/IMAGPART_EXPRs around the supported refs.
8527         * tree-ssa-structalias.c (find_func_aliases): Assume that
8528         floating-point values are not used to transfer pointers.
8529
8530 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8531
8532         * target.def (TARGET_HAS_IFUNC_P): New target hook.
8533         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
8534         * doc/tm.texi: Regenerate.
8535         * targhooks.h (default_has_ifunc_p): New.
8536         * targhooks.c (default_has_ifunc_p): Ditto.
8537         * config/linux-protos.h: New file.
8538         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
8539         this hook for linux which disables support of indirect functions in
8540         android.
8541         * config/linux-android.c: New file.
8542         * config/t-linux-android.c: Ditto.
8543         * config.gcc: Added new object file linux-android.o.
8544         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
8545         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
8546         * varasm.c (do_assemble_alias): Likewise.
8547         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
8548         doesn't support indirect functions.
8549         * configure: Regenerate.
8550
8551 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
8552
8553         PR target/56102
8554         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
8555         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
8556         mult-word mode.
8557
8558 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8559
8560         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
8561
8562 2013-03-27  Terry Guo  <terry.guo@arm.com>
8563
8564         * config/arm/arm-cores.def: Added core cortex-r7.
8565         * config/arm/arm-tune.md: Regenerated.
8566         * config/arm/arm-tables.opt: Regenerated.
8567         * doc/invoke.texi: Added entry for core cortex-r7.
8568
8569 2013-03-27  Walter Lee  <walt@tilera.com>
8570
8571         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
8572         double-decrement of next_scratch_regno.
8573
8574 2013-03-27  Walter Lee  <walt@tilera.com>
8575
8576         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
8577         input operands.
8578         (insn_v1mulus): Ditto.
8579         (insn_v2muls): Ditto.
8580
8581 2013-03-27  Walter Lee  <walt@tilera.com>
8582
8583         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
8584         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
8585
8586 2013-03-27  Walter Lee  <walt@tilera.com>
8587
8588         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
8589         (*sibcall_value): Ditto.
8590
8591 2013-03-27  Walter Lee  <walt@tilera.com>
8592
8593         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
8594         (insn_mnz_v8qi): ... this ...
8595         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
8596         vector equivalent.
8597         (insn_v<n>mnz): Replaced by ...
8598         (insn_v1mnz): ... this ...
8599         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
8600         equivalent.
8601         (insn_mz_<mode>): Replaced by ...
8602         (insn_mz_v8qi): ... this ...
8603         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
8604         vector equivalent.
8605         (insn_v<n>mz): Replaced by ...
8606         (insn_v1mz): ... this ...
8607         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
8608         equivalent.
8609
8610 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
8611
8612         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
8613
8614 2013-03-26  Roland McGrath  <mcgrathr@google.com>
8615
8616         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
8617         than fprintf with a non-constant, non-format string.
8618
8619 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
8620
8621         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
8622         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
8623         operand 0 predicate.
8624         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
8625         attribute.  Use general_x64nomem_operand as operand 1 predicate.
8626         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
8627         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
8628         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
8629         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
8630         (mov<mode>_insv_1): Remove expander.  Merge insn with
8631         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
8632         Use general_x64nomem_operand as operand 1 predicate.
8633         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
8634         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
8635         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
8636         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
8637         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
8638         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
8639         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
8640         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
8641         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
8642         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
8643         (general_x64nomem_operand): Ditto.
8644
8645 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
8646
8647         * config/rtems.opt: Add -pthread option.
8648
8649 2013-03-26  Richard Biener  <rguenther@suse.de>
8650
8651         * alias.c (find_base_term): Avoid redundant and not used recursion.
8652         (base_alias_check): Get the initial base term from the caller.
8653         (true_dependence_1): Compute and pass base terms to base_alias_check.
8654         (write_dependence_p): Likewise.
8655         (may_alias_p): Likewise.
8656
8657 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
8658
8659         * config/aarch64/aarch64.c (aarch64_classify_address): Support
8660         PC-relative load in SI modes and above only.
8661
8662 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
8663
8664         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
8665         * config/arm/iwmmxt.md (WCGR0): Update.
8666         (WCGR1, WCGR2, WCGR3): Likewise.
8667
8668 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
8669
8670         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
8671         Use x64 and nox64 isa attributes.
8672
8673 2013-03-26  Richard Biener  <rguenther@suse.de>
8674
8675         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
8676         alignment computations and rely on get_object_alignment_1
8677         for the !TYPE_P case.
8678         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
8679
8680 2013-03-26  Walter Lee  <walt@tilera.com>
8681
8682         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
8683         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
8684
8685 2013-03-25  Jeff Law  <law@redhat.com>
8686
8687         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
8688         check for INTEGRAL_TYPE_P that was missing due to checking in
8689         wrong version of prior patch.
8690
8691 2013-03-25  Walter Lee  <walt@tilera.com>
8692
8693         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
8694         TILEGX_INSN_SHUFFLEBYTES1.
8695         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
8696         shufflebytes1.
8697         (tilegx_builtins): Ditto.
8698         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
8699
8700 2013-03-25  Walter Lee  <walt@tilera.com>
8701
8702         * config/tilegx/tilegx.md (floatsisf2): New pattern.
8703         (floatunssisf2): New pattern.
8704         (floatsidf2): New pattern.
8705         (floatunssidf2): New pattern.
8706
8707 2013-03-25  Walter Lee  <walt@tilera.com>
8708
8709         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
8710         tests for constraint J, K, N, P.
8711
8712 2013-03-25  Walter Lee  <walt@tilera.com>
8713
8714         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
8715         Use indirect/pcrel encoding.
8716         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
8717         Ditto.
8718
8719 2013-03-25  Steve Ellcey  <sellcey@mips.com>
8720
8721         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
8722         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
8723         * config/mips/mips.c (mips_option_override): Set IMADD default.
8724         * config/mips/mips.h (PTF_AVOID_IMADD): New.
8725         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
8726         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
8727         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
8728         * doc/invoke.texi (-mimadd/-mno-imadd): New.
8729
8730 2013-03-25  Jeff Law  <law@redhat.com>
8731
8732         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
8733         slightly to avoid creating and folding useless trees.  Simplify
8734         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
8735
8736 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
8737
8738         * config/i386/i386.md (*zero_extendsidi2): Merge with
8739         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
8740         * config/i386/predicates.md (x86_64_zext_operand): Rename from
8741         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
8742         targets.  Clarify comment.
8743
8744 2013-03-25  Martin Jambor  <mjambor@suse.cz>
8745
8746         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
8747         pass-through jump functions differently.
8748         (ipa_read_jump_function): Likewise.  Also use setter functions to set
8749         up jump functions.
8750
8751 2013-03-25  Martin Jambor  <mjambor@suse.cz>
8752
8753         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
8754         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
8755         process it.
8756         (ipa_get_indirect_edge_target): New function.
8757         (devirtualization_time_bonus): New parameter known_aggs, pass it to
8758         ipa_get_indirect_edge_target.  Update all callers.
8759         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
8760         ipa_get_indirect_edge_target_1 instead of calling
8761         ipa_get_indirect_edge_target.
8762         (create_specialized_node): Pass aggvlas to
8763         ipcp_discover_new_direct_edges.
8764
8765 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8766
8767         * config/arm/arm.md (f_sels, f_seld): New types.
8768         (*cmov<mode>): New pattern.
8769         * config/arm/predicates.md (arm_vsel_comparison_operator): New
8770         predicate.
8771
8772 2013-03-25  Kai Tietz  <ktietz@redhat.com>
8773
8774         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
8775         POSIX-printf for mingw-hosted  builds.
8776
8777 2013-03-25  Richard Biener  <rguenther@suse.de>
8778
8779         PR middle-end/56694
8780         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
8781         must-not-throw stmt location.
8782
8783 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8784
8785         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
8786         Emit load-acquire versions when acq is true.
8787         (arm_emit_store_exclusive): Add rel parameter.
8788         Emit store-release versions when rel is true.
8789         (arm_split_compare_and_swap): Use acquire-release instructions
8790         instead.
8791         of barriers when appropriate.
8792         (arm_split_atomic_op): Likewise.
8793         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
8794         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
8795         (VUNSPEC_SLX): Likewise.
8796         (VUNSPEC_LDA): Likewise.
8797         (VUNSPEC_STL): Likewise.
8798         * config/arm/sync.md (atomic_load<mode>): New pattern.
8799         (atomic_store<mode>): Likewise.
8800         (arm_load_acquire_exclusive<mode>): Likewise.
8801         (arm_load_acquire_exclusivesi): Likewise.
8802         (arm_load_acquire_exclusivedi): Likewise.
8803         (arm_store_release_exclusive<mode>): Likewise.
8804
8805 2013-03-25  Catherine Moore  <clm@codesourcery.com>
8806
8807         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
8808         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
8809         * config/mip/predicates.md (lwsp_swsp_operand,
8810         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
8811         sb16_operand, db4_operand, db7_operand, ib3_operand,
8812         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
8813         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
8814         andi16_operand): New predicates.
8815         * config/mips/mips.md (compression): New attribute.
8816         (enabled): New attribute.
8817         (length): Consider compression in computing length.
8818         (shift_compression): New code attribute.
8819         (*add<mode>3): New operands. Record compression.
8820         (sub<mode>3): Likewise.
8821         (one_cmpl<mode>2): Likewise.
8822         (*and<mode>3): Likewise.
8823         (*ior<mode>3): Likewise.
8824         (unnamed pattern for xor): Likewise.
8825         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
8826         (*<optab><mode>3): Likewise.
8827         (*mov<mode>_internal: Likewise.
8828         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
8829         (mips_unsigned_immediate_p): New.
8830         (umips_lwsp_swsp_address_p): New.
8831         (m16_based_address_p): New.
8832         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
8833         (mips_unsigned_immediate_p): New prototype.
8834         (lwsp_swsp_address_p): New prototype.
8835         (m16_based_address_p): New prototype.
8836         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
8837         (mips_signed_immediate_p): New function.
8838         (m16_based_address_p): New function.
8839         (lwsp_swsp_address_p): New function.
8840         (mips_print_operand_punctuation): Recognize short delay slot insns
8841         for microMIPS.add<mode>3"
8842
8843 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8844
8845         PR target/56720
8846         * config/arm/iterators.md (v_cmp_result): New mode attribute.
8847         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
8848
8849 2013-03-25  Richard Biener  <rguenther@suse.de>
8850
8851         PR tree-optimization/56689
8852         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
8853         any edge.
8854
8855 2013-03-25  Richard Biener  <rguenther@suse.de>
8856
8857         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
8858         of bitmap.
8859         (memory_references): Likewise.
8860         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
8861         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
8862         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
8863         (gather_mem_refs_in_loops): Fold into ...
8864         (analyze_memory_references): ... this.  Move initialization
8865         to tree_ssa_lim_initialize.
8866         (fill_always_executed_in): Rename to ...
8867         (fill_always_executed_in_1): ... this.
8868         (fill_always_executed_in): Move contains_call computation to
8869         this new function from ...
8870         (tree_ssa_lim_initialize): ... here.
8871         (tree_ssa_lim): Call fill_always_executed_in.
8872
8873 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
8874
8875         * postreload.c (reload_combine): Fix code detecting returns.
8876
8877 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
8878
8879         * function.c (emit_use_return_register_into_block): On cc0 targets,
8880         do not emit the sequence between cc0 setter and user.
8881
8882 2013-03-25  Kai Tietz  <ktietz@redhat.com>
8883
8884         * config/i386/predicates.md (local_symbolic_operand): Interpret
8885         dll-imported symbols as none-local.
8886
8887 2013-03-25  Richard Biener  <rguenther@suse.de>
8888
8889         * tree-ssa-loop-im.c (struct depend): Remove.
8890         (struct lim_aux_data): Make depends a vec of gimples.
8891         (free_lim_aux_data): Adjust.
8892         (add_dependency): Likewise.
8893         (set_level): Likewise.
8894
8895 2013-03-25  Richard Biener  <rguenther@suse.de>
8896
8897         PR middle-end/56434
8898         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
8899         the pointer returned by calls with ECF_MALLOC set.
8900
8901 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
8902
8903         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
8904
8905 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
8906
8907         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
8908         using MMXMODE mode iterator.
8909         (*move<mode>_internal): Merge with *movv2sf_internal and
8910         *movv2sf_internal_rex64 using MMXMODE mode iterator.
8911
8912 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
8913
8914         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
8915         (record_last_mem_set_info): Likewise.
8916
8917         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
8918         of XNEWVEC followed by memset.
8919         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
8920
8921 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
8922
8923         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
8924         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
8925         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
8926         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
8927         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
8928         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
8929         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
8930         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
8931         BARRIER_P instead of GET_CODE.
8932
8933 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
8934
8935         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
8936         inaccuracy in the probing code.
8937
8938         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
8939         (ctrapdi4): Likewise.
8940
8941 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
8942
8943         * calls.c (expand_call): Add missing guard to code handling return
8944         of non-BLKmode structures in MSB.
8945         * function.c (expand_function_end): Likewise.
8946
8947 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
8948
8949         * combine.c (try_combine): Adjust comment.  Do not add the set of
8950         insn #0 if the destination indirectly is set or dies in insn #2.
8951         Tidy up code to distribute a new note.
8952
8953 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
8954
8955         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
8956         also for alternatives 16 and 17.
8957
8958 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
8959
8960         * config/i386/sse.md (*mov<mode>_internal): Merge with
8961         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
8962         Emit insn template depending on type attribute.  Use
8963         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
8964         movd instead of movq mnemonic for interunit moves.  Rewrite mode
8965         attribute calculation.  Remove unit attribute calculation.
8966         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
8967         Set prefix_data16 attribute for DImode ssemov types.
8968         Use Ym instead of y for SSE-MMX conversion alternatives.
8969         Reorder operand constraints.
8970
8971 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
8972
8973         * df.h (df_insn_delete): Adjust prototype.
8974         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
8975         and let it decide whether mark the basic block dirty.
8976         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
8977         * df-scan.c (df_insn_info_delete): New helper function, split
8978         off from df_insn_delete.
8979         (df_scan_free_bb_info): Use it.
8980         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
8981         Likewise.
8982         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
8983         that the insn is actually an insn and it has a non-NULL basic block.
8984         Do not mark basic block dirty if only deleting a DEBUG_INSN.
8985
8986 2013-03-22  Richard Biener  <rguenther@suse.de>
8987
8988         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
8989         dep_ref members.
8990         (mem_ref_alloc): Do not allocate them.
8991         (refs_independent_p): Do not query or maintain a cache.
8992
8993 2013-03-22  Richard Biener  <rguenther@suse.de>
8994
8995         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
8996         (gather_mem_refs_in_loops): Do not compute it.
8997         (analyze_memory_references): Do not allocate it.
8998         (tree_ssa_lim_finalize): Do not free it.
8999         (for_all_locs_in_loop): Do not query all_refs_in_loop.
9000
9001 2013-03-22  Richard Biener  <rguenther@suse.de>
9002
9003         * is-a.h (as_a): Use gcc_checking_assert.
9004
9005 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
9006
9007         * config/aarch64/aarch64.c (aarch64_print_operand): New
9008         format specifier for printing a constant in hex.
9009         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
9010         format specifier for printing second operand.
9011
9012 2013-03-22  Richard Biener  <rguenther@suse.de>
9013
9014         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
9015         bitmaps.
9016         (gather_mem_refs_in_loops): Perform store accumulation here.
9017         (create_vop_ref_mapping_loop): Remove.
9018         (create_vop_ref_mapping): Likewise.
9019         (analyze_memory_references): Initialize refs_stored_in_loop.
9020         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
9021         (record_indep_loop): Remove.
9022         (record_dep_loop): New function.
9023         (ref_indep_loop_p_1): Adjust to only walk over references
9024         in the loop, not its subloops.
9025         (ref_indep_loop_p): Rename to ...
9026         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
9027         maintaining a more fine-grained cache.
9028         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
9029         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
9030
9031 2013-03-22  Richard Biener  <rguenther@suse.de>
9032
9033         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
9034         (struct mem_ref): Make accesses_in_loop a vec of a vec of
9035         aggregate mem_ref_loc.
9036         (free_mem_ref_locs): Inline into ...
9037         (memref_free): ... this and adjust.
9038         (mem_ref_alloc): Adjust.
9039         (mem_ref_locs_alloc): Remove.
9040         (record_mem_ref_loc): Adjust.
9041         (get_all_locs_in_loop): Rewrite into ...
9042         (for_all_locs_in_loop): ... this iterator.
9043         (rewrite_mem_ref_loc): New functor.
9044         (rewrite_mem_refs): Use for_all_locs_in_loop.
9045         (sm_set_flag_if_changed): New functor.
9046         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
9047         (ref_always_accessed): New functor.
9048         (ref_always_accessed_p): Use for_all_locs_in_loop.
9049
9050 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
9051
9052         * tree-pass.h (PROP_gimple_lvec): New.
9053         * passes.c (dump_properties): Handle PROP_gimple_lvec.
9054         (init_optimization_passes): Move pass_lower_vector.
9055         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
9056         PROP_gimple_lvec.
9057         (pass_lower_vector): Provide PROP_gimple_lvec.
9058         (pass_lower_vector_ssa): Likewise.
9059         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
9060
9061 2013-03-21  Mark Wielaard  <mjw@redhat.com>
9062
9063         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
9064
9065 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
9066
9067         * config/i386/i386.md (*movdi_internal): Disparage slightly
9068         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
9069         conversion alternatives.
9070
9071 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
9072
9073         PR middle-end/48087
9074         * diagnostic.def (DK_WERROR): New kind.
9075         * diagnostic.h (werrorcount): Define.
9076         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
9077         promoted to DK_ERROR, increment DK_WERROR counter instead of
9078         DK_ERROR counter.
9079         * toplev.c (toplev_main): Call print_ignored_options even if
9080         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
9081         even if just werrorcount is non-zero.
9082
9083         PR debug/55608
9084         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
9085         on failure.
9086         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
9087         (string_cst_pool_decl): New function.
9088         (optimize_one_addr_into_implicit_ptr): New function.
9089         (resolve_addr_in_expr): Optimize DWARF location expression
9090         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
9091         which doesn't live in memory, but has DW_AT_location or
9092         DW_AT_const_value, or refers to a string literal, into
9093         DW_OP_GNU_implicit_pointer.
9094         (optimize_location_into_implicit_ptr): New function.
9095         (resolve_addr): If removing DW_AT_location of a variable because
9096         it was DW_OP_addr of address of the variable, but the variable doesn't
9097         live in memory, try to emit const value attribute for the initializer.
9098
9099 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
9100
9101         * tree.h (VECTOR_TYPE_P): New macro.
9102         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
9103         TYPE_MODE): Use it.
9104         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
9105         VEC_COND_EXPR cannot be lvalues.
9106         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
9107
9108 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
9109
9110         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
9111         Restrict the transformation to equal modes.
9112
9113 2013-03-21  Richard Biener  <rguenther@suse.de>
9114
9115         PR tree-optimization/39326
9116         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
9117         (MEM_ANALYZABLE): Adjust.
9118         (record_mem_ref_loc): Move bitmap ops ...
9119         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
9120         unanalyzable refs, do not record locations for it.
9121         (analyze_memory_references): Allocate ref zero as shared
9122         unanalyzable ref.
9123         (refs_independent_p): Do not test for unanalyzed mems here.
9124         (ref_indep_loop_p_1): Special-case disambiguation against
9125         the unanalyzed ref.
9126         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
9127
9128 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
9129
9130         * config/arm/arm-protos.h (tune_params): Add
9131         prefer_neon_for_64bits field.
9132         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
9133         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
9134         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
9135         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
9136         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
9137         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
9138         (arm_option_override): Handle -mneon-for-64bits new option.
9139         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
9140         (prefer_neon_for_64bits): Declare new variable.
9141         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
9142         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
9143         (arch_enabled): Handle new arch types. Remove support for onlya8
9144         and nota8.
9145         (one_cmpldi2): Use new arch names.
9146         (zero_extend<mode>di2, extend<mode>di2): Ditto.
9147         * config/arm/arm.opt (mneon-for-64bits): Add option.
9148         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
9149         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
9150         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
9151         of onlya8.
9152         * doc/invoke.texi (-mneon-for-64bits): Document.
9153
9154 2013-03-21  Richard Biener  <rguenther@suse.de>
9155
9156         PR tree-optimization/39326
9157         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
9158         (sort_bbs_in_loop_postorder_cmp): New function.
9159         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
9160
9161 2013-03-21  Richard Biener  <rguenther@suse.de>
9162
9163         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
9164         (vect_insert_into_interleaving_chain): Likewise.
9165         (vect_drs_dependent_in_basic_block): Inline ...
9166         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
9167         split out from ...
9168         (vect_analyze_data_ref_dependence): ... here.  Simplify.
9169         (vect_check_interleaving): Simplify.
9170         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
9171         (vect_slp_analyze_data_ref_dependences): ... this new function.
9172         (dr_group_sort_cmp): New function.
9173         (vect_analyze_data_ref_accesses): Compute data-reference groups
9174         here instead of in vect_analyze_data_ref_dependence.  Use
9175         a more efficient algorithm.
9176         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
9177         vect_slp_analyze_data_ref_dependences.  Call
9178         vect_analyze_data_ref_accesses earlier.
9179         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
9180         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
9181         (vect_slp_analyze_data_ref_dependences): New prototype.
9182
9183 2013-03-21  Richard Biener  <rguenther@suse.de>
9184
9185         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
9186         ref is stored in the loop.
9187         (find_refs_for_sm): Walk only over all stores.
9188         (store_motion_loop): Allocate from lim_bitmap_obstack.
9189         (store_motion): Likewise.
9190
9191 2013-03-21  Richard Biener  <rguenther@suse.de>
9192
9193         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
9194         Update virtual SSA form.
9195
9196 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9197
9198         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
9199         * configure: Regenerate.
9200         * config.in: Regenerate.
9201         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
9202         if !HAVE_LD_EH_FRAME_CIEV3.
9203
9204 2013-03-21  Richard Biener  <rguenther@suse.de>
9205
9206         * tree-cfg.c (verify_expr_no_block): New function.
9207         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
9208         nor DECL_VALUE_EXPR have locations with associated blocks.
9209         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
9210         (clear_unused_block_pointer): Remove code dealing with
9211         blocks in DECL_DEBUG_EXPR locations.
9212
9213 2013-03-21  Richard Biener  <rguenther@suse.de>
9214
9215         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
9216         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
9217         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
9218         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
9219         instead of DECL_DEBUG_EXPR_IS_FROM.
9220         * gimplify.c (gimplify_modify_expr): Likewise.
9221         * tree-cfg.c (verify_expr_location_1): Likewise.
9222         * tree-complex.c (create_one_component_var): Likewise.
9223         * tree-sra.c (create_access_replacement): Likewise.
9224         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
9225         (clear_unused_block_pointer): Likewise.
9226         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
9227         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
9228         * var-tracking.c (var_debug_decl): Likewise.
9229         (track_expr_p): Likewise.
9230         * tree-inline.c (add_local_variables): Likewise.  Set
9231         DECL_HAS_DEBUG_EXPR_P after copying it.
9232         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
9233         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
9234
9235 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
9236
9237         PR bootstrap/56656
9238         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
9239         * configure: Regenerate.
9240         * config.in: Regenerate.
9241         * config/i386/i386.md (*movdf_internal): Use
9242         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
9243         movd instead of movq mnemonic for interunit moves.
9244         (*movdi_internal): Ditto.
9245
9246 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
9247
9248         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
9249         (abd<mode>_3): New pattern.
9250         (aba<mode>_3): New pattern.
9251         (fabd<mode>_3): New pattern.
9252
9253 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
9254
9255         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
9256         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
9257         occurrence of REGISTER_PREFIX as its empty string.
9258
9259 2013-03-20  Jeff Law  <law@redhat.com>
9260
9261         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
9262         addititional equivalences for equality comparisons between an SSA_NAME
9263         and a constant where the SSA_NAME was set from a widening conversion.
9264
9265 2013-03-20  Walter Lee  <walt@tilera.com>
9266
9267         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
9268
9269 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
9270
9271         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
9272         depending on type attribute.
9273         (*movti_internal): Ditto.
9274         (*movtf_internal): Ditto.
9275         (*movxf_internal): Ditto.
9276         (*movdf_internal): Ditto.
9277         (*movsf_internal): Ditto.
9278
9279 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
9280
9281         * config/i386/i386.md (*movti_internal): Set prefix attribute to
9282         maybe_vex for sselog1 and ssemov types.
9283         (*movdi_internal): Reorder operand constraints.
9284         (*movsi_internal): Ditto.  Set prefix attribute to
9285         maybe_vex for sselog1 and ssemov types.
9286         (*movtf_internal): Set prefix attribute to maybe_vex
9287         for sselog1 and ssemov types.
9288         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
9289         DImode ssemov types.  Reorder operand constraints.
9290         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
9291         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
9292         attribute for SImode ssemov types.  Reorder operand constraints.
9293
9294 2013-03-20  Martin Jambor  <mjambor@suse.cz>
9295
9296         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
9297         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
9298
9299 2013-03-20  Pat Haugen <pthaugen@us.ibm.com>
9300
9301         * config/rs6000/predicates.md (indexed_address, update_address_mem
9302         update_indexed_address_mem): New predicates.
9303         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
9304         attribute for load/store instructions.
9305         * config/rs6000/dfp.md (movsd_store): Likewise.
9306         (movsd_load): Likewise.
9307         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
9308         (unnamed HI->DI extend define_insn): Likewise.
9309         (unnamed SI->DI extend define_insn): Likewise.
9310         (unnamed QI->SI extend define_insn): Likewise.
9311         (unnamed QI->HI extend define_insn): Likewise.
9312         (unnamed HI->SI extend define_insn): Likewise.
9313         (unnamed HI->SI extend define_insn): Likewise.
9314         (extendsfdf2_fpr): Likewise.
9315         (movsi_internal1): Likewise.
9316         (movsi_internal1_single): Likewise.
9317         (movhi_internal): Likewise.
9318         (movqi_internal): Likewise.
9319         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
9320         attribute for load/store instructions.
9321         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
9322         instructions.
9323         (mov<mode>_softfloat): Likewise.
9324         (mov<mode>_hardfloat32): Likewise.
9325         (mov<mode>_hardfloat64): Likewise.
9326         (mov<mode>_softfloat64): Likewise.
9327         (movdi_internal32): Likewise.
9328         (movdi_internal64): Likewise.
9329         (probe_stack_<mode>): Likewise.
9330
9331 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
9332
9333         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
9334         floating point, and decimal floating point to reload iterator.
9335
9336         * config/rs6000/constraints.md (wl constraint): New constraints to
9337         return FLOAT_REGS if certain options are used to reduce the number
9338         of separate patterns that exist in the file.
9339         (wx constraint): Likewise.
9340         (wz constraint): Likewise.
9341
9342         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
9343         -mdebug=reg, print wg, wl, wx, and wz constraints.
9344         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
9345         Initialize the reload functions for 64-bit binary/decimal floating
9346         point types.
9347         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
9348         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
9349         create the buffer on the stack to overcome not having a 32-bit
9350         load and store.
9351         (rs6000_emit_move): Likewise.
9352         (rs6000_secondary_memory_needed_rtx): Likewise.
9353         (rs6000_alloc_sdmode_stack_slot): Likewise.
9354         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
9355         via xxlxor, just like DFmode 0.0.
9356
9357         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
9358         define as 1 if we are running on a power7 or newer.
9359         (enum r6000_reg_class_enum): Add new constraints.
9360
9361         * config/rs6000/dfp.md (movsd): Delete, combine with binary
9362         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
9363         with other moves by using conditional constraits (wg).  Use LFIWZX
9364         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
9365         (movsd splitter): Likewise.
9366         (movsd_hardfloat): Likewise.
9367         (movsd_softfloat): Likewise.
9368
9369         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
9370         binary and decimal floating point moves.
9371         (fmove_ok): New attributes to combine binary and decimal floating
9372         point moves, and to combine power6x (mfpgpr) moves along normal
9373         floating moves.
9374         (real_value_to_target): Likewise.
9375         (f32_lr): Likewise.
9376         (f32_lm): Likewise.
9377         (f32_li): Likewise.
9378         (f32_sr): Likewise.
9379         (f32_sm): Likewise.
9380         (f32_si): Likewise.
9381         (movsf): Combine binary and decimal floating point moves.  Combine
9382         power6x (mfpgpr) moves with other moves by using conditional
9383         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
9384         (mov<mode> for SFmode/SDmode); Likewise.
9385         (SFmode/SDmode splitters): Likewise.
9386         (movsf_hardfloat): Likewise.
9387         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
9388         (movsf_softfloat): Likewise.
9389         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
9390
9391         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
9392         wx and wz constraints.
9393
9394         * config/rs6000/constraints.md (wg constraint): New constraint to
9395         return FLOAT_REGS if -mmfpgpr (power6x) was used.
9396
9397         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
9398         constraint.
9399
9400         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
9401         -mdebug=reg, print wg, wl, wx, and wz constraints.
9402         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
9403         Initialize the reload functions for 64-bit binary/decimal floating
9404         point types.
9405         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
9406         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
9407         create the buffer on the stack to overcome not having a 32-bit
9408         load and store.
9409         (rs6000_emit_move): Likewise.
9410         (rs6000_secondary_memory_needed_rtx): Likewise.
9411         (rs6000_alloc_sdmode_stack_slot): Likewise.
9412         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
9413         via xxlxor, just like DFmode 0.0.
9414
9415         * config/rs6000/dfp.md (movdd): Delete, combine with binary
9416         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
9417         with other moves by using conditional constraits (wg).  Use LFIWZX
9418         and STFIWX for loading SDmode on power7.
9419         (movdd splitters): Likewise.
9420         (movdd_hardfloat32): Likewise.
9421         (movdd_softfloat32): Likewise.
9422         (movdd_hardfloat64_mfpgpr): Likewise.
9423         (movdd_hardfloat64): Likewise.
9424         (movdd_softfloat64): Likewise.
9425
9426         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
9427         64-bit binary and decimal floating point moves.
9428         (FMOVE64X): Likewise.
9429         (movdf): Combine 64-bit binary and decimal floating point moves.
9430         Combine power6x (mfpgpr) moves with other moves by using
9431         conditional constraits (wg).
9432         (mov<mode> for DFmode/DDmode): Likewise.
9433         (DFmode/DDmode splitters): Likewise.
9434         (movdf_hardfloat32): Likewise.
9435         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
9436         (movdf_softfloat32): Likewise.
9437         (movdf_hardfloat64_mfpgpr): Likewise.
9438         (movdf_hardfloat64): Likewise.
9439         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
9440         (movdf_softfloat64): Likewise.
9441         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
9442         (reload_<mode>_load): Move to later in the file so they aren't in
9443         the middle of the floating point move insns.
9444         (reload_<mode>_store): Likewise.
9445
9446         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
9447         constraint.
9448
9449         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
9450         constraint if -mdebug=reg.
9451         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
9452         Enable using dd reload support if needed.
9453
9454         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
9455         binary and decimal floating point moves in rs6000.md.
9456         (movtd_internal): Likewise.
9457
9458         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
9459         decimal floating point moves.
9460         (movtf): Likewise.
9461         (movtf_internal): Likewise.
9462         (mov<mode>_internal, TDmode/TFmode): Likewise.
9463         (movtf_softfloat): Likewise.
9464         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
9465
9466         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
9467         movdi_internal64, using wg constraint for move direct operations.
9468         (movdi_internal64): Likewise.
9469
9470         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
9471         MODES_TIEABLE_P for selected modes.  Print the numerical value of
9472         the various virtual registers. Use GPR/FPR first/last values,
9473         instead of hard coding the register numbers.  Print which modes
9474         have reload functions registered.
9475         (rs6000_option_override_internal): If -mdebug=reg, trace the options
9476         settings before/after setting cpu, target and subtarget settings.
9477         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
9478         and for secondary reload failures in rs6000_secondary_reload_inner.
9479         (rs6000_secondary_reload_fail): Likewise.
9480         (rs6000_secondary_reload_inner): Likewise.
9481
9482         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
9483         macros for first/last GPR and FPR registers.
9484         (LAST_GPR_REGNO): Likewise.
9485         (FIRST_FPR_REGNO): Likewise.
9486         (LAST_FPR_REGNO): Likewise.
9487
9488         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
9489         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
9490         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
9491         (vcond<mode><mode>): Likewise.
9492         (vcondu<mode><mode>): Likewise.
9493         (vector_gtu<mode>): Likewise.
9494         (vector_gte<mode>): Likewise.
9495         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
9496         to prevent the compiler from converting DImode operations to TImode.
9497         (ior<mode>3): Likewise.
9498         (and<mode>3): Likewise.
9499         (one_cmpl<mode>2): Likewise.
9500         (nor<mode>3): Likewise.
9501         (andc<mode>3): Likewise.
9502
9503         * config/rs6000/constraints.md (wt constraint): New constraint
9504         that returns VSX_REGS if TImode is allowed in VSX registers.
9505
9506         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
9507         constant under VSX.
9508
9509         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
9510         similar to TImode, but it is restricted to being in the GPRs.
9511
9512         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
9513         TImode to occupy a single VSX register.
9514
9515         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
9516         -mvsx-timode for power7/power8.
9517         (power7 cpu): Likewise.
9518         (power8 cpu): Likewise.
9519
9520         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
9521         sure that TFmode/TDmode take up two registers if they are ever
9522         allowed in the upper VSX registers.
9523         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
9524         registers.
9525         (rs6000_init_hard_regno_mode_ok): Likewise.
9526         (rs6000_debug_reg_global): Add debugging for PTImode and wt
9527         constraint.  Print if LRA is turned on.
9528         (rs6000_option_override_internal): Give an error if -mvsx-timode
9529         and VSX is not enabled.
9530         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
9531         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
9532         to reg+offset addressing.  Use PTImode when checking offset
9533         addresses for validity.
9534         (reg_offset_addressing_ok_p): Likewise.
9535         (rs6000_legitimate_offset_address_p): Likewise.
9536         (rs6000_legitimize_address): Likewise.
9537         (rs6000_legitimize_reload_address): Likewise.
9538         (rs6000_legitimate_address_p): Likewise.
9539         (rs6000_eliminate_indexed_memrefs): Likewise.
9540         (rs6000_emit_move): Likewise.
9541         (rs6000_secondary_reload): Likewise.
9542         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
9543         reloads to fpr registers to continue to use reg+offset addressing,
9544         but 64-bit reloads to altivec registers need reg+reg addressing.
9545         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
9546         it.  Treat LO_SUM like a PLUS operation.
9547         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
9548         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
9549         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
9550         registers to share a register with a smaller sized type, since VSX
9551         puts scalars in the upper 64-bits.
9552         (print_operand): Add support for PTImode.
9553         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
9554         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
9555         registers, but don't have arithmetic support.
9556         (rs6000_memory_move_cost): Add test for VSX.
9557         (rs6000_opt_masks): Add -mvsx-timode.
9558
9559         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
9560         for TImode.
9561         (VSs): Likewise.
9562         (VSr): Use wt constraint for TImode.
9563         (VSv): Drop TImode support.
9564         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
9565         (vsx_movti_64bit): Likewise.
9566         (vsx_movti_32bit): Likewise.
9567         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
9568         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
9569         one '?' on the appropriate output constraint.  Do not allow TImode
9570         logical operations on 32-bit systems.
9571         (vsx_ior<mode>3): Likewise.
9572         (vsx_xor<mode>3): Likewise.
9573         (vsx_one_cmpl<mode>2): Likewise.
9574         (vsx_nor<mode>3): Likewise.
9575         (vsx_andc<mode>3): Likewise.
9576         (vsx_concat_<mode>): Likewise.
9577         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
9578
9579         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
9580         OPTION_MASK_VSX_TIMODE.
9581         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
9582         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
9583
9584         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
9585         (TI2 iterator): New iterator for TImode, PTImode.
9586         (wd mode attribute): Add values for vector types.
9587         (movti_string): Replace TI move operations with operations for TImode
9588         and PTImode.  Add support for TImode being allowed in VSX registers.
9589         (mov<mode>_string, TImode/PTImode): Likewise.
9590         (movti_ppc64): Likewise.
9591         (mov<mode>_ppc64, TImode/PTImode): Likewise.
9592         (TI mode splitters): Likewise.
9593
9594         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
9595         constraint.
9596
9597 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
9598
9599         PR tree-optimization/56355
9600         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
9601         Also handle integers with undefined overflow.
9602
9603 2013-03-20  Catherine Moore  <clm@codesourcery.com>
9604             Maciej W. Rozycki  <macro@codesourcery.com>
9605             Tom de Vries  <tom@codesourcery.com>
9606             Nathan Sidwell <nathan@codesourcery.com>
9607             Iain Sandoe  <iain@codesourcery.com>
9608             Nathan Froyd  <froydnj@codesourcery.com>
9609             Chao-ying Fu <fu@mips.com>
9610
9611         * doc/extend.texi: (micromips, nomicromips, nocompression):
9612         Document new function attributes.
9613         * doc/invoke.texi (minterlink-compressed, mmicromips,
9614         m14k, m14ke, m14kec): Document new options.
9615         (minterlink-mips16): Update documentation.
9616         * doc/md.texi (ZC, ZD): Document new constraints.
9617         * configure.ac (gcc_cv_as_micromips): Check if linker
9618         supports the .set micromips directive.
9619         * configure: Regenerate.
9620         * config.in: Regenerate.
9621         * config/mips/mips-tables.opt: Regenerate.
9622         * config/mips/micromips.md: New file.
9623         * constraints.md (ZC, ZD): New constraints.
9624         * config/mips/predicates.md (movep_src_register): New predicate.
9625         (movep_src_operand): New predicate.
9626         (non_volatile_mem_operand): New predicate.
9627         * config/mips/mips.md (multimem): New type.
9628         (length): Differentiate between 17-bit and 18-bit branch offsets.
9629         (MOVEP1, MOVEP2): New mode iterator.
9630         (mov_<load>l): Use ZC constraint.
9631         (mov_<load>r): Likewise.
9632         (mov_<store>l): Likewise.
9633         (mov_<store>r): Likewise.
9634         (*branch_equality<mode>_inverted): Add microMIPS support.
9635         (*branch_equality<mode>): Likewise.
9636         (*jump_absolute): Likewise.
9637         (indirect_jump_<mode>): Likewise.
9638         (tablejump_<mode>): Likewise.
9639         (<optab>_internal): Likewise.
9640         (sibcall_internal): Likewise.
9641         (sibcall_value_internal): Likewise.
9642         (prefetch): Use constraint ZD.
9643         * config/mips/mips.opt (minterlink-compressed): New option.
9644         (minterlink-mips16): Now an alias for minterlink-compressed.
9645         (mmicromips): New option.
9646         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
9647         (compare_and_swap_12): Likewise.
9648         (sync_add<mode>): Likewise.
9649         (sync_<optab>_12): Likewise.
9650         (sync_old_<optab>_12): Likewise.
9651         (sync_new_<optab>_12): Likewise.
9652         (sync_nand_12): Likewise.
9653         (sync_old_nand_12): Likewise.
9654         (sync_new_nand_12): Likewise.
9655         (sync_sub<mode>): Likewise.
9656         (sync_old_add<mode>): Likewise.
9657         (sync_old_sub<mode>): Likewise.
9658         (sync_new_add<mode>): Likewise.
9659         (sync_new_sub<mode>): Likewise.
9660         (sync_<optab><mode>): Likewise.
9661         (sync_old_<optab><mode>): Likewise.
9662         (sync_new_<optab><mode>): Likewise.
9663         (sync_nand<mode>): Likewise.
9664         (sync_old_nand<mode>): Likewise.
9665         (sync_new_nand<mode>): Likewise.
9666         (sync_lock_test_and_set<mode>): Likewise.
9667         (test_and_set_12): Likewise.
9668         (atomic_compare_and_swap<mode>): Likewise.
9669         (atomic_exchange<mode>_llsc): Likewise.
9670         (atomic_fetch_add<mode>_llsc): Likewise.
9671         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
9672         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
9673         (umips_save_restore_pattern_p): Likewise.
9674         (umips_load_store_pair_p): Likewise.
9675         (umips_output_load_store_pair): Likewise.
9676         (umips_movep_target_p): Likewise.
9677         (umips_12bit_offset_address_p): Likewise.
9678         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
9679         (mips_base_mips16): Rename this...
9680         (mips_base_compression_flags): ...to this. Update all uses.
9681         (mips_attribute_table): Add micromips, nomicromips and nocompression.
9682         (mips_mips16_decl_p): Delete.
9683         (mips_nomips16_decl_p): Delete.
9684         (mips_get_compress_on_flags): New function.
9685         (mips_get_compress_off_flags): New function.
9686         (mips_get_compress_mode): New function.
9687         (mips_get_compress_on_name): New function.
9688         (mips_get_compress_off_name): New function.
9689         (mips_insert_attributes): Support multiple compression types.
9690         (mips_merge_decl_attributes): Likewise.
9691         (umips_12bit_offset_address_p): New function.
9692         (mips_start_function_definition): Emit .set micromips directive.
9693         (mips_call_may_need_jalx_p): New function.
9694         (mips_function_ok_for_sibcall): Add microMIPS support.
9695         (mips_print_operand_punctuation): Support short delay slots and
9696         compact jumps.
9697         (umips_swm_mask, umips_swm_encoding): New.
9698         (umips_build_save_restore): New function.
9699         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
9700         (was_mips16_p): Remove.
9701         (old_compression_mode): New.
9702         (mips_set_compression_mode): New function.
9703         (mips_set_current_function): Add microMIPS support.
9704         (mips_option_override): Likewise.
9705         (umips_save_restore_pattern_p): New function.
9706         (umips_output_save_restore): New function.
9707         (umips_load_store_pair_p_1): New function.
9708         (umips_load_store_pair_p): New function.
9709         (umips_output_load_store_pair_1): New function.
9710         (umips_output_load_store_pair): New function.
9711         (umips_movep_target_p) New function.
9712         (mips_prepare_pch_save): Add microMIPS support.
9713         * config/mips/mips.h (TARGET_COMPRESSION): New.
9714         (TARGET_CPU_CPP_BUILTINS): Update macro
9715         to use new compression flags and to support microMIPS.
9716         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
9717         (MIPS_ARCH_FLOAT_SPEC): Likewise.
9718         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
9719         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
9720         (ASM_SPEC): Support mmicromips and mno-micromips.
9721         (M16STORE_REG_P): New macro.
9722         (MIPS_CALL): Support TARGET_MICROMIPS.
9723         (MICROMIPS_J): New macro.
9724         (mips_base_mips16): Rename this...
9725         (mips_base_compression_flags): ...to this.
9726         (UMIPS_12BIT_OFFSET_P): New macro.
9727         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
9728         (MULTILIB_DIRNAMES): Likewise.
9729 2013-03-20  Richard Biener  <rguenther@suse.de>
9730
9731         PR tree-optimization/56661
9732         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
9733         the result does not have to be distinct.
9734
9735 2013-03-20  Richard Biener  <rguenther@suse.de>
9736
9737         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
9738         remap_gimple_op_r.
9739
9740 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9741             Steven Bosscher <steven@gcc.gnu.org>
9742
9743         PR rtl-optimization/56605
9744         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
9745
9746 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
9747
9748         PR bootstrap/56656
9749         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
9750         that require movd instead of movq.
9751
9752 2013-03-20  Richard Biener  <rguenther@suse.de>
9753
9754         * tree-ssa-structalias.c (struct variable_info): Add pointer
9755         to the first field of an aggregate with sub-vars.  Make
9756         this and the pointer to the next subfield its ID.
9757         (vi_next): New function.
9758         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
9759         storedanything_id, integer_id): Increment by one.
9760         (new_var_info, get_call_vi, lookup_call_clobber_vi,
9761         get_call_clobber_vi): Adjust.
9762         (solution_set_expand): Simplify and speedup.
9763         (solution_set_add): Inline into ...
9764         (set_union_with_increment): ... this.  Adjust accordingly.
9765         (do_sd_constraint): Likewise.
9766         (do_ds_constraint): Likewise.
9767         (do_complex_constraint): Simplify.
9768         (build_pred_graph): Adjust.
9769         (solve_graph): Likewise.  Simplify and speedup.
9770         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
9771         get_constraint_for_component_ref, get_constraint_for_1,
9772         first_vi_for_offset, first_or_preceding_vi_for_offset,
9773         create_function_info_for, create_variable_info_for_1,
9774         create_variable_info_for, intra_create_variable_infos): Adjust.
9775         (init_base_vars): Push NULL for ID zero.
9776         (compute_points_to_sets): Adjust.
9777
9778 2013-03-20  Richard Biener  <rguenther@suse.de>
9779
9780         * cfgloop.c (verify_loop_structure): Streamline and avoid
9781         ICEing on corrupt loop tree.
9782         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
9783         loop tree.
9784
9785 2013-03-20  Richard Biener  <rguenther@suse.de>
9786
9787         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
9788         check whether an SSA update is needed.
9789
9790 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
9791
9792         * config/mips/constraints.md (T): Rename to...
9793         (Yf): ...this.
9794         (U): Rename to...
9795         (Yd): ...this.
9796         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
9797         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
9798
9799 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
9800
9801         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
9802         (*subsi3_carryin_uxtw): Likewise.
9803
9804 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
9805
9806         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
9807         (*rorsi3_insn_uxtw): Likewise.
9808
9809 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
9810
9811         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
9812         (*extrsi5_insn_uxtw): Likewise.
9813
9814 2013-03-19  Richard Biener  <rguenther@suse.de>
9815
9816         PR tree-optimization/56273
9817         * passes.c (init_optimization_passes): Move second VRP after DOM.
9818
9819 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
9820
9821         * config/i386/i386.md (*movti_internal): Merge from
9822         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
9823         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
9824         nox64 isa attributes.
9825
9826 2013-03-18  Richard Biener  <rguenther@suse.de>
9827
9828         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
9829         (unite): Likewise.
9830         (merge_node_constraints): Likewise.
9831         (build_succ_graph): Likewise.
9832         (valid_graph_edge): Inline into single caller.
9833         (unify_nodes): Likewise.  Use bitmap_set_bit return value
9834         and cache varinfo.
9835         (scc_visit): Fix formatting and variable use.
9836         (do_sd_constraint): Use gcc_checking_assert.
9837         (do_ds_constraint): Likewise.
9838         (do_complex_constraint): Likewise.
9839         (condense_visit): Likewise.  Cleanup.
9840         (dump_pred_graph): New function.
9841         (perform_var_substitution): Dump the pred-graph before
9842         variable substitution.
9843         (find_equivalent_node): Use gcc_checking_assert.
9844         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
9845
9846 2013-03-18  Richard Biener  <rguenther@suse.de>
9847
9848         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
9849         Remove cond_expr_stmt_list argument and do not gimplify the
9850         built expression.
9851         (vect_loop_versioning): Adjust.
9852         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
9853         Cleanup to use less temporaries.
9854         (vect_create_data_ref_ptr): Cleanup.
9855
9856 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
9857
9858         PR tree-optimization/56635
9859         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
9860         require types_compatible_p types.
9861
9862 2013-03-18  Nick Clifton  <nickc@redhat.com>
9863
9864         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
9865         spurious backslash.
9866
9867         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
9868         Add missing line to comment describing function.
9869
9870 2013-03-18  Richard Biener  <rguenther@suse.de>
9871
9872         PR tree-optimization/56210
9873         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9874         Handle string / character search functions.
9875         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
9876
9877 2013-03-18  Richard Biener  <rguenther@suse.de>
9878
9879         PR middle-end/56483
9880         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
9881         and implement properly.
9882         * gimple.h (gimple_cond_single_var_p): Remove.
9883
9884 2013-03-18  Richard Biener  <rguenther@suse.de>
9885
9886         * tree-data-ref.h (find_data_references_in_loop): Declare.
9887         * tree-data-ref.c (get_references_in_stmt): Use a stack
9888         vector pre-allocated in the callers.
9889         (find_data_references_in_stmt): Adjust.
9890         (graphite_find_data_references_in_stmt): Likewise.
9891         (create_rdg_vertices): Likewise.
9892         (find_data_references_in_loop): Export.
9893         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
9894         Compute dependences here...
9895         (vect_analyze_data_refs): ...not here.  When we encounter
9896         a non-vectorizable data reference in basic-block vectorization
9897         truncate the data reference vector.  Do not bother to
9898         fixup data-dependence information for gather loads.
9899         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
9900         of data references, as reported.
9901
9902 2013-03-18  Richard Biener  <rguenther@suse.de>
9903
9904         PR tree-optimization/3713
9905         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
9906         has_constants and expr.
9907         (stmt_has_constants): Properly valueize SSA names when deciding
9908         whether the stmt has constants.
9909
9910 2013-03-18  Richard Biener  <rguenther@suse.de>
9911
9912         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
9913         whole function when there is nothing to do.
9914         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
9915         * tree-vectorizer.c (vectorize_loops): Update virtual and
9916         loop-closed SSA once.
9917         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
9918
9919 2013-03-18  Richard Biener  <rguenther@suse.de>
9920
9921         PR middle-end/56113
9922         * domwalk.c (bb_postorder): New global static.
9923         (cmp_bb_postorder): New function.
9924         (walk_dominator_tree): Replace scheme imposing an order for
9925         visiting dominator sons by one sorting them at the time they
9926         are pushed on the stack.
9927
9928 2013-03-18  Richard Biener  <rguenther@suse.de>
9929
9930         PR tree-optimization/39326
9931         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
9932         (struct mem_ref): Replace mem member with ao_ref typed member.
9933         (MEM_ANALYZABLE): Adjust.
9934         (memref_eq): Likewise.
9935         (mem_ref_alloc): Likewise.
9936         (gather_mem_refs_stmt): Likewise.
9937         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
9938         (execute_sm_if_changed_flag_set): Adjust.
9939         (execute_sm): Likewise.
9940         (ref_always_accessed_p): Likewise.
9941         (refs_independent_p): Likewise.
9942         (can_sm_ref_p): Likewise.
9943
9944 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
9945
9946         PR c/56566
9947         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
9948         return 1 even for !unsignedp.
9949
9950 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
9951
9952         * config/i386/i386.md (isa): Add x64 and nox64.
9953         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
9954         (*pushtf): Enable *roF alternative for x64 isa only.
9955         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
9956         mode attribute of integer alternatives to DImode for TARGET_64BIT.
9957         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
9958         (*movtf_internal): Merge from *movtf_internal_rex64 and
9959         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
9960         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
9961         nox64 isa attributes.
9962         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
9963         nox64 isa attributes.
9964         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
9965
9966 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
9967
9968         * config/alpha/alpha.c (TARGET_LRA_P): New define.
9969
9970 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
9971
9972         PR target/56640
9973         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
9974         class names.  Remove trailing comma after "ALL_REGS".
9975
9976 2013-03-16  Jan Hubicka  <jh@suse.cz>
9977
9978         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
9979         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
9980         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
9981         of cgraph_get_create_node.
9982         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
9983
9984 2013-03-16  Jason Merrill  <jason@redhat.com>
9985
9986         PR debug/49090
9987         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
9988         with DW_AT_default_value.
9989
9990 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
9991
9992         * BASE-VER: Set to 4.9.0.
9993
9994 2013-03-14  Andi Kleen  <ak@linux.intel.com>
9995
9996         PR target/56619
9997         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
9998         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
9999         Document _x* TSX intrinsics.
10000
10001 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
10002             David Holsgrove  <david.holsgrove@xilinx.com>
10003
10004         * configure.ac: Add MicroBlaze TLS support detection.
10005         * configure: Regenerate.
10006         * config/microblaze/microblaze-protos.h
10007         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
10008         symbol_mentioned_p, label_mentioned_p): Add prototypes.
10009         * config/microblaze/microblaze.c (microblaze_address_type): Add
10010         ADDRESS_TLS and tls_reloc address types.
10011         (microblaze_address_info): Add tls_reloc.
10012         (TARGET_HAVE_TLS): Define.
10013         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
10014          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
10015          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
10016         load_tls_operand,  microblaze_call_tls_get_addr,
10017         microblaze_legitimize_tls_address): New functions.
10018         (microblaze_classify_unspec): Handle UNSPEC_TLS.
10019         (get_base_reg): Use microblaze_tls_symbol_p.
10020         (microblaze_classify_address): Handle TLS.
10021         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
10022         label_mentioned_p and microblaze_tls_referenced_p.
10023         (microblaze_legitimize_address): Handle TLS.
10024         (microblaze_address_insns): Handle ADDRESS_TLS.
10025         (pic_address_needs_scratch): Handle TLS.
10026         (print_operand_address): Handle TLS.
10027         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
10028         (microblaze_expand_move): Handle TLS.
10029         (microblaze_legitimate_constant_p): Check
10030         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
10031         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
10032         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
10033         (PIC_OFFSET_TABLE_REGNUM): Set.
10034         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
10035         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
10036         (addsi3, movsi_internal2, movdf_internal): Update constraints
10037         * config/microblaze/predicates.md (arith_plus_operand): Define
10038         (move_operand): Redefine as move_src_operand,
10039         check microblaze_tls_referenced_p.
10040
10041 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
10042
10043         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
10044         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
10045
10046 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
10047
10048         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
10049         CC mode for AND.
10050
10051 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
10052
10053         PR tree-optimization/53265
10054         * common.opt (Waggressive-loop-optimizations): New option.
10055         * tree-ssa-loop-niter.c: Include tree-pass.h.
10056         (do_warn_aggressive_loop_optimizations): New function.
10057         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
10058         if number_of_latch_executions returned constant.
10059         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
10060         early.  If number_of_latch_executions returned constant, set
10061         nb_iterations_upper_bound back to it.
10062         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
10063         field.
10064         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
10065         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
10066
10067         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
10068         (MULTILIB_OSDIRNAMES): Set.
10069         * genmultilib: If defaultosdirname doesn't start with :: , set
10070         defaultosdirname2 instead, clear it and emit two . multilib_raw
10071         entries instead of just one.
10072
10073 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
10074
10075         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
10076         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
10077         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
10078         (SUBTARGET_OVERRIDE_OPTIONS): New.
10079
10080 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
10081
10082         PR target/49880
10083         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
10084         (musermode): Convert to Var(TARGET_USERMODE).
10085         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
10086         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
10087         * config/sh/sh.c (sh_option_override): Use
10088         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
10089         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
10090         condition.
10091         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
10092         TARGET_SH4.
10093         (udivsi3_i4_single, divsi3_i4_single): Use
10094         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
10095
10096 2013-03-13  Dave Korn  <dave.korn.cygwin@....>
10097
10098         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
10099         default setting.
10100
10101 2013-03-13  Richard Biener  <rguenther@suse.de>
10102
10103         PR tree-optimization/56608
10104         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
10105         calls when vectorizing basic-blocks.
10106
10107 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
10108
10109         PR plugins/45078
10110         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
10111         tm_file.
10112
10113 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
10114
10115         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
10116
10117 2013-03-11  Jan Hubicka  <jh@suse.cz>
10118
10119         PR lto/56557
10120         * lto-streamer-out.c (output_symbol_p): Skip references from
10121         constructors of external variables.
10122
10123 2013-03-11  Jan Hubicka  <jh@suse.cz>
10124
10125         PR middle-end/56571
10126         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
10127         from pseudos.
10128         * emit-rtl.c (verify_rtx_sharing): Likewise.
10129         (copy_insn_1): Likewise.
10130         * rtl.c (copy_rtx): Likewise.
10131
10132 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
10133
10134         PR target/56591
10135         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
10136         output_operand_lossage message.
10137
10138 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
10139
10140         PR target/56470
10141         * arm.c (shift_op): Validate RTL pattern on the fly.
10142         (arm_print_operand, case 'S'): Don't use shift_operator to validate
10143         the RTL.
10144
10145 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10146
10147         PR target/56347
10148         * config/pa/pa.md (call_value): Check for calls to powf and direct to
10149         new call patterns that clobber %fr12.
10150         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
10151         split and postreload patterns.
10152         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
10153         registers %fr12 and %fr12R as call used.
10154
10155 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
10156
10157         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
10158         (canon_address, record_store, replace_read, check_mem_read_rtx,
10159         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
10160         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
10161         rest_of_handle_dse): Likewise.
10162
10163 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
10164
10165         PR middle-end/56524
10166         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
10167         Add base_optabs.
10168         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
10169         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
10170         (save_optabs_if_changed): Replace with...
10171         (init_tree_optimization_optabs): ...this.
10172         * optabs.c (save_optabs_if_changed): Rename to...
10173         (init_tree_optimization_optabs): ...this.  Take the optimization node
10174         as argument.  Do nothing if the base optabs are already correct.
10175         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
10176         to recompute optabs.
10177         * function.h (function): Remove optabs field.
10178         * function.c (invoke_set_current_function_hook): Call
10179         init_tree_optimization_optabs.  Use the result to initialize
10180         this_fn_optabs.
10181
10182 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
10183
10184         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
10185         if GTMA_HAS_NO_INSTRUMENTATION.
10186         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
10187         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
10188         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
10189         * gimple-pretty-print.c (dump_gimple_transaction): Handle
10190         GTMA_HAS_NO_INSTRUMENTATION.
10191
10192 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
10193
10194         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
10195         libasan_preinit.o.
10196
10197 2013-03-08  Marek Polacek  <polacek@redhat.com>
10198             Jakub Jelinek  <jakub@redhat.com>
10199
10200         PR tree-optimization/56478
10201         * predict.c (is_comparison_with_loop_invariant_p): Change the
10202         type of loop_step to tree.
10203         (predict_loops): Adjust.
10204         (predict_iv_comparison): Perform the computations on double_ints.
10205
10206 2013-03-08  Richard Biener  <rguenther@suse.de>
10207
10208         PR tree-optimization/56570
10209         * tree-cfg.c (verify_expr_location_1): Verify locations for
10210         DECL_DEBUG_EXPR.
10211         * tree-sra.c (create_access_replacement): Strip locations
10212         from DECL_DEBUG_EXPRs.
10213
10214 2013-03-08  Richard Biener  <rguenther@suse.de>
10215
10216         * tree-inline.c (expand_call_inline): Do not associate
10217         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
10218         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
10219
10220 2013-03-08  Richard Biener  <rguenther@suse.de>
10221
10222         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
10223         or block changes with -Og.  Fix for location / block encoding
10224         changes and PHI arguments with locations.
10225
10226 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
10227
10228         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
10229         for all counters.
10230         (struct output_info): Likewise.
10231         (register_overhead): Remove bad gcc_assert.
10232         (bitmap_find_bit): If there is only a single bitmap element, do not
10233         count a miss as a search.
10234         (print_statistics): Update for counter type changes.
10235         (dump_bitmap_statistics): Likewise.  Print headers such that they
10236         are properly lined up with the printed counters.
10237
10238 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
10239
10240         PR tree-optimization/56559
10241         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
10242         check that it has only a single use.
10243
10244 2013-03-07  Richard Biener  <rguenther@suse.de>
10245
10246         * doc/invoke.texi (fwhole-program): Discourage use in combination
10247         with -flto.
10248
10249 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
10250
10251         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
10252
10253         PR tree-optimization/56539
10254         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
10255         instead of GSI_CONTINUE_LINKING as last argument to
10256         force_gimple_operand_gsi.  Adjust function comment.
10257
10258         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
10259         aarch64-cores.def.
10260
10261         PR middle-end/56548
10262         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
10263         promoted mode, convert the result back to the original mode.
10264
10265 2013-03-06  Richard Biener  <rguenther@suse.de>
10266
10267         PR middle-end/56294
10268         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
10269         (insert_updated_phi_nodes_compare_uids): New function.
10270         (update_ssa): Sort symbols_to_rename after UID before
10271         traversing it to insert PHI nodes.
10272
10273 2013-03-06  Richard Biener  <rguenther@suse.de>
10274
10275         PR middle-end/50494
10276         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
10277         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
10278
10279         Revert
10280         2013-02-13  Richard Biener  <rguenther@suse.de>
10281
10282         PR lto/50494
10283         * varasm.c (output_constant_def_1): Get the decl representing
10284         the constant as argument.
10285         (output_constant_def): Wrap output_constant_def_1.
10286         (make_decl_rtl): Use output_constant_def_1 with the decl
10287         representing the constant.
10288         (build_constant_desc): Optionally re-use a decl already
10289         representing the constant.
10290         (tree_output_constant_def): Adjust.
10291
10292 2013-03-06  Joey Ye  <joey.ye@arm.com>
10293
10294         PR lto/50293
10295         * gcc.c (convert_white_space): New function.
10296         (main): Handles white space in function name.
10297
10298 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
10299
10300         PR target/56529
10301         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
10302         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
10303         to SH_DIV_CALL_TABLE for TARGET_SH2.
10304         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
10305         list.
10306         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
10307         call-table options.
10308
10309 2013-03-05  Sterling Augustine  <saugustine@google.com>
10310             Cary Coutant  <ccoutant@google.com>
10311
10312         PR debug/55364
10313         * dwarf2out.c (resolve_addr): Don't call
10314         remove_loc_list_addr_table_entries a second time for the same
10315         expression.
10316
10317 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
10318
10319         PR debug/56510
10320         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
10321         (avoid_complex_debug_insns): New function.
10322         (expand_debug_locations): Call it.
10323
10324         PR rtl-optimization/56484
10325         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
10326         lifetimes of hard registers on small register class machines.
10327
10328 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
10329
10330         * config/microblaze/microblaze-protos.h: Rename
10331         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
10332         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
10333         fast_interrupt.
10334         (microblaze_fast_interrupt_function_p): New function.
10335         (microblaze_is_interrupt_handler): Rename to
10336         microblaze_is_interrupt_variant and add fast_interrupt check.
10337         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
10338         (save_restore_insns): Likewise.
10339         (compute_frame_size): Likewise.
10340         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
10341         (microblaze_globalize_label): Likewise.
10342         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
10343         * config/microblaze/microblaze.md: Use wrapper
10344         microblaze_is_interrupt_variant.
10345
10346 2013-03-05  Kai Tietz  <ktietz@redhat.com>
10347
10348         * sdbout.c (sdbout_one_type): Switch to current function's section
10349         supporting cold/hot.
10350
10351 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
10352
10353         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
10354         -mxl-reorder.
10355
10356 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
10357
10358         PR middle-end/56461
10359         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
10360         if VALGRIND_GET_VBITS is defined, temporarily make object
10361         memory all defined, and restore previous valgrind addressability
10362         and definability afterwards.  Free this_object at the end.
10363
10364         PR middle-end/56461
10365         * lra.c (lra): Call lra_clear_live_ranges if live_p,
10366         right before calling lra_create_live_ranges, also call it
10367         when clearing live_p.  Only call lra_clear_live_ranges
10368         at the end if live_p.
10369
10370         PR middle-end/56461
10371         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
10372
10373 2013-03-05  Richard Biener  <rguenther@suse.de>
10374
10375         PR tree-optimization/56521
10376         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
10377         value-id.
10378
10379 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
10380
10381         PR c++/55135
10382         * except.h (remove_unreachable_eh_regions): New prototype.
10383         * except.c (remove_eh_handler_splicer): New function, split out
10384         of remove_eh_handler.
10385         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
10386         warning about running it on many EH regions one at a time.
10387         (remove_unreachable_eh_regions_worker): New function, walk the
10388         EH tree in depth-first order and remove non-marked regions.
10389         (remove_unreachable_eh_regions): New function.
10390         * tree-eh.c (mark_reachable_handlers): New function, split out
10391         from remove_unreachable_handlers.
10392         (remove_unreachable_handlers): Use mark_reachable_handlers and
10393         remove_unreachable_eh_regions.
10394         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
10395         and remove_unreachable_eh_regions.
10396
10397 2013-03-05  Richard Biener  <rguenther@suse.de>
10398
10399         PR middle-end/56525
10400         * loop-init.c (fix_loop_structure): Remove loops in two stages,
10401         not freeing them until the end.
10402
10403 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10404
10405         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
10406
10407 2013-03-05  Richard Biener  <rguenther@suse.de>
10408
10409         PR tree-optimization/56270
10410         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
10411         of loads after scheduling an SLP instance.
10412
10413 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
10414
10415         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
10416         tic6x.exp.
10417         (check_gcc_parallelize): Run guality.exp as a separate job from
10418         vect.exp with unsorted.exp and $(dg_target_exps) separately from
10419         struct-layout-1.exp with stackalign.exp.
10420
10421         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
10422
10423         PR middle-end/56461
10424         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
10425         load_index sbitmap even if some bit in it isn't set.
10426
10427         PR middle-end/56461
10428         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
10429         (discover_iteration_bound_by_body_walk): Change queues to
10430         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
10431         spelling in comment.  Call safe_push on queues[bound_index] directly.
10432         Release queues[queue_index] in every iteration unconditionally.
10433         Release bounds vector.
10434
10435         PR middle-end/56461
10436         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
10437         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
10438         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
10439         inner_phis vector.
10440
10441 2013-03-05  Richard Biener  <rguenther@suse.de>
10442
10443         PR lto/56515
10444         * tree-inline.c (remap_blocks_to_null): New function.
10445         (expand_call_inline): When expanding a call stmt without
10446         an associated block inline remap all callee blocks to NULL.
10447
10448 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
10449
10450         PR rtl-optimization/56494
10451         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
10452         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
10453         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
10454
10455         PR middle-end/56461
10456         * sel-sched-ir.c (free_sched_pools): Release
10457         succs_info_pool.stack[succs_info_pool.max_top] vectors too
10458         if succs_info_pool.max_top isn't -1.
10459
10460         PR bootstrap/56509
10461         * opts.c (opts_obstack, opts_concat): Moved to...
10462         * opts-common.c (opts_obstack, opts_concat): ... here.
10463
10464 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
10465
10466         PR middle-end/56461
10467         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
10468
10469 2013-03-04  Martin Jambor  <mjambor@suse.cz>
10470
10471         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
10472         all appropriate places.
10473
10474 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
10475
10476         PR tree-optimization/56424
10477         * ipa-split.c (split_function): Do not set the RSO flag if result is
10478         not by reference and its type is a register type.
10479
10480 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
10481
10482         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
10483         (microblaze_legitimate_pic_operand): Likewise
10484         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
10485         new function microblaze_legitimate_pic_operand
10486         * config/microblaze/microblaze-protos.h
10487         (microblaze_legitimate_pic_operand): Declare.
10488
10489 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10490
10491         * config/microblaze/predicates.md (call_insn_simple_operand):
10492         New predicate for supported rtx code types.
10493         * config/microblaze/microblaze.md (call_internal1): Use
10494         call_insn_simple_operand predicate.
10495
10496 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
10497
10498         PR middle-end/56461
10499         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
10500         partitions.ordered_remove.
10501
10502         PR middle-end/56461
10503         * tree-vect-stmts.c (vectorizable_conversion): Don't call
10504         vec_oprnds0.create (1) for modifier == NONE.
10505
10506         PR middle-end/56461
10507         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
10508         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
10509         vec_oprnds1 right before pushing anything to it for
10510         scalar_shift_arg.
10511
10512         PR middle-end/56461
10513         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
10514         set nbbs to 0 instead of having separate code path.
10515         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
10516         instead of false as last argument if returning NULL.
10517
10518 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
10519
10520         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
10521         the attribute is now called "target" instead of "option".
10522         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
10523         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
10524         attribute/pragma name for TARGET_OPTION_VALID_P and
10525         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
10526         * doc/tm.texi: Regenerated.
10527
10528 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
10529
10530         * config/microblaze/microblaze.c:
10531         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
10532         * config/microblaze/microblaze.h: Add -mxl-reorder to
10533         DRIVER_SELF_SPECS.
10534         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
10535         instructions emitted if TARGET_REORDER.
10536         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
10537         or 0 for -m/-mno case, but initialises as 2 to detect default use case
10538         separately.
10539
10540 2013-03-01  Xinliang David Li  <davidxl@google.com>
10541
10542         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
10543         walk length.
10544
10545 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
10546
10547         PR middle-end/56461
10548         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
10549         vector even when returning true.  Fix up function comment formatting.
10550
10551         PR middle-end/56461
10552         * ira-build.c (ira_loop_nodes_count): New variable.
10553         (create_loop_tree_nodes): Initialize it.
10554         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
10555
10556         PR middle-end/56461
10557         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
10558         method on dr_chain and result_chain.
10559         * tree-vect-stmts.c (vectorizable_store): Only call
10560         result_chain.create if j == 0.
10561
10562         PR middle-end/56461
10563         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
10564         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
10565         before overwriting it.
10566
10567 2013-03-01  Tobias Burnus  <burnus@net-b.de>
10568
10569         * doc/extended.texi (C Extensions): Change order in @menu
10570         to match @node.
10571         (Other MIPS Built-in Functions): Move last MIPS entry before
10572         "picoChip Built-in Functions".
10573         (SH Built-in Functions): Move after RX Built-in Functions.
10574         * doc/gcc.texi (Introduction): Change order in @menu
10575         to match @node.
10576         * doc/md.texi (Constraints): Ditto.
10577         * gty.texi (Type Information): Ditto.
10578         (User-provided marking routines for template types): Make
10579         subsection.
10580         * doc/invoke.texi (AArch64 Options): Move before
10581         "Adapteva Epiphany Options".
10582
10583 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
10584             Jakub Jelinek  <jakub@redhat.com>
10585
10586         PR sanitizer/56454
10587         * asan.c (gate_asan): Lookup no_sanitize_address instead of
10588         no_address_safety_analysis attribute.
10589         * doc/extend.texi (no_address_safety_attribute): Rename to
10590         no_sanitize_address attribute, mention no_address_safety_analysis
10591         attribute as deprecated alias.
10592
10593 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
10594
10595         PR middle-end/56461
10596         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
10597         type to vec<vec<tree> > *.
10598         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
10599         to be vec<tree> instead of vec<tree> *, set vec_defs
10600         to vNULL and call vec_defs.create (number_of_vects), adjust other
10601         uses of vec_defs.
10602         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
10603         vectorizable_condition): Adjust vect_get_slp_defs callers.
10604
10605 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
10606
10607         * config/aarch64/aarch64.c
10608         (aarch64_float_const_representable): Remove unused variable.
10609
10610 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
10611
10612         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
10613
10614 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
10615
10616         * config/aarch64/aarch64-builtins.c
10617         (aarch64_init_simd_builtins): Make static.
10618
10619 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
10620
10621         * config/aarch64/aarch64.c
10622         (aarch64_simd_make_constant): Make static.
10623
10624 2013-02-28  Martin Jambor  <mjambor@suse.cz>
10625
10626         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
10627         with no initialization to the RHS of debug statements.
10628
10629 2013-02-28  Martin Jambor  <mjambor@suse.cz>
10630
10631         PR tree-optimization/56294
10632         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
10633         Adjust dumping.
10634         (get_access_replacement): Do not call create_access_replacement.
10635         Assert a replacement exists.
10636         (get_repl_default_def_ssa_name): Create the replacement declaration
10637         itself.
10638
10639 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10640
10641         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
10642         final_end_function.
10643
10644 2013-02-28  Marek Polacek  <polacek@redhat.com>
10645
10646         PR rtl-optimization/56466
10647         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
10648         if we're changing a loop.
10649         (peel_loops_completely): Likewise.
10650
10651 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
10652
10653         PR c++/55813
10654         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
10655
10656 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
10657
10658         PR target/56445
10659         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
10660         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
10661         INTX_FTYPE_FX, FX_FTYPE_INTX.
10662         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
10663
10664 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
10665
10666         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
10667         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
10668         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
10669         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
10670         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
10671         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
10672         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
10673         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
10674         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
10675         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
10676         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
10677         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
10678         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
10679         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
10680         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
10681         (avrxmega6): Increase max flash segments from 5 to 6.
10682         * config/avr/t-multilib: Regenerate.
10683         * config/avr/avr-tables.opt: Regenerate.
10684         * doc/avr-mmcu.texi: Regenerate.
10685
10686 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
10687
10688         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
10689         (avr_device_to_arch): Rename to avr_device_to_ld.
10690         (avr_device_to_as): New prototype.
10691         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
10692         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
10693         * config/avr/driver-avr.c (avr_device_to_as): New.
10694         (avr_device_to_arch): Rename to avr_device_to_ld.
10695
10696 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
10697
10698         PR middle-end/56461
10699         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
10700         method on dr_chain and result_chain.
10701
10702         PR middle-end/56461
10703         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
10704         pointer_set_destroy on not_executed_last_iteration.
10705
10706         PR middle-end/56461
10707         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
10708
10709         PR middle-end/56461
10710         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
10711         FOR_EACH_DEFINED_FUNCTION when freeing state.
10712
10713         PR middle-end/56461
10714         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
10715         pool_free.
10716         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
10717         overwriting it.
10718
10719         PR middle-end/56461
10720         * ipa-cp.c (decide_whether_version_node): Call vec_free on
10721         known_aggs[i].items and release known_aggs vector.
10722
10723         PR middle-end/56461
10724         * ipa-reference.c (propagate): Free node_info even for alias nodes.
10725
10726 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10727
10728         * config/microblaze/microblaze.c (microblaze_emit_compare):
10729         Use xor for EQ/NE comparisions.
10730         * config/microblaze/microblaze.md (cstoresf4): Add constraints
10731         (cbranchsf4): Adjust operator to comparison_operator.
10732
10733 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
10734
10735         PR middle-end/56461
10736         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
10737         vector.
10738         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
10739         vec_safe_push, always update *slot.
10740         (redirect_edge_var_map_clear): Use vec_free.
10741         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
10742         (free_var_map_entry): Use vec_free.
10743         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
10744         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
10745
10746 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
10747
10748         PR middle-end/45472
10749         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
10750         when the may_trap_p bit of the exprs being merged differs.
10751         Reorder tests for speculativeness in the logical and operator.
10752
10753 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
10754
10755         * incpath.c (add_standard_paths): Use reconcat instead of concat
10756         where appropriate and avoid leaking memory.
10757
10758         * opts.h: Include obstack.h.
10759         (opts_concat): New prototype.
10760         (opts_obstack): New declaration.
10761         * opts.c (opts_concat): New function.
10762         (opts_obstack): New variable.
10763         (init_options_struct): Call gcc_init_obstack on opts_obstack.
10764         (finish_options): Use opts_concat instead of concat
10765         and XOBNEWVEC instead of XNEWVEC.
10766         * opts-common.c (generate_canonical_option, decode_cmdline_option,
10767         generate_option): Likewise.
10768         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
10769         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
10770
10771         PR target/56455
10772         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
10773         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
10774
10775 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
10776
10777         PR middle-end/56461
10778         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
10779
10780 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
10781
10782         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
10783         (arm_block_move_unaligned_straight): Likewise.
10784         (arm_adjust_block_mem): Likewise.
10785
10786 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
10787
10788         PR target/48901
10789         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
10790         temp, cond and label.
10791         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
10792
10793         PR target/52500
10794         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
10795         * config/c6x/c6x.h (dbx_register_map): Update declaration.
10796
10797         PR target/52501
10798         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
10799         of prologue/epilogue functions.
10800
10801         PR target/52550
10802         * config/tilegx/tilegx.c (tilegx_expand_prologue):
10803         Remove unused variable cfa_offset.
10804         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
10805
10806         PR target/54639
10807         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
10808         type promotion to unsigned.
10809
10810         PR target/54640
10811         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
10812         for HOST_WIDE_INT of 32 bit / same size as int.
10813         (arm_block_move_unaligned_straight): Likewise.
10814         (arm_adjust_block_mem): Likewise.
10815
10816         PR target/54662
10817         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
10818         ALL_CFLAGS.
10819
10820 2013-02-26  Marek Polacek  <polacek@redhat.com>
10821
10822         PR tree-optimization/56426
10823         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
10824
10825 2013-02-26  Richard Biener  <rguenther@suse.de>
10826
10827         PR target/56444
10828         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
10829         unused variable loops.
10830
10831 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
10832
10833         PR tree-optimization/56448
10834         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
10835         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
10836         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
10837         later operands of the references, or even first operand for
10838         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
10839
10840         PR tree-optimization/56443
10841         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
10842         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
10843         to type_for_mode langhook.
10844
10845 2013-02-25  Matt Turner  <mattst88@gmail.com>
10846
10847         * doc/invoke.texi: Document r4700.
10848
10849 2013-02-25  Richard Biener  <rguenther@suse.de>
10850
10851         PR tree-optimization/56175
10852         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
10853         split out from ...
10854         (simplify_bitwise_binary): ... here.  Also guard the conversion
10855         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
10856
10857 2013-02-25  Catherine Moore  <clm@codesourcery.com>
10858
10859         Revert:
10860         2013-02-24  Catherine Moore  <clm@codesourcery.com>
10861             Maciej W. Rozycki  <macro@codesourcery.com>
10862             Tom de Vries  <tom@codesourcery.com>
10863             Nathan Sidwell  <nathan@codesourcery.com>
10864             Iain Sandoe  <iain@codesourcery.com>
10865             Nathan Froyd  <froydnj@codesourcery.com>
10866             Chao-ying Fu  <fu@mips.com>
10867
10868         * doc/extend.texi: (micromips, nomicromips, nocompression):
10869         Document new function attributes.
10870         * doc/invoke.texi (minterlink-compressed, mmicromips,
10871         m14k, m14ke, m14kec): Document new options.
10872         (minterlink-mips16): Update documentation.
10873         * doc/md.texi (ZC, ZD): Document new constraints.
10874         * configure.ac (gcc_cv_as_micromips): Check if linker
10875         supports the .set micromips directive.
10876         * configure: Regenerate.
10877         * config.in: Regenerate.
10878         * config/mips/mips-tables.opt: Regenerate.
10879         * config/mips/micromips.md: New file.
10880         * constraints.md (ZC, AD): New constraints.
10881         * config/mips/predicates.md (movep_src_register): New predicate.
10882         (movep_src_operand): New predicate.
10883         (non_volatile_mem_operand): New predicate.
10884         * config/mips/mips.md (multimem): New type.
10885         (length): Differentiate between 17-bit and 18-bit branch offsets.
10886         (MOVEP1, MOVEP2): New mode iterator.
10887         (mov_<load>l): Use ZC constraint.
10888         (mov_<load>r): Likewise.
10889         (mov_<store>l): Likewise.
10890         (mov_<store>r): Likewise.
10891         (*branch_equality<mode>_inverted): Add microMIPS support.
10892         (*branch_equality<mode>): Likewise.
10893         (*jump_absolute): Likewise.
10894         (indirect_jump_<mode>): Likewise.
10895         (tablejump_<mode>): Likewise.
10896         (<optab>_internal): Likewise.
10897         (sibcall_internal): Likewise.
10898         (sibcall_value_internal): Likewise.
10899         (prefetch): Use constraint ZD.
10900         * config/mips/mips.opt (minterlink-compressed): New option.
10901         (minterlink-mips16): Now an alias for minterlink-compressed.
10902         (mmicromips): New option.
10903         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
10904         (compare_and_swap_12): Likewise.
10905         (sync_add<mode>): Likewise.
10906         (sync_<optab>_12): Likewise.
10907         (sync_old_<optab>_12): Likewise.
10908         (sync_new_<optab>_12): Likewise.
10909         (sync_nand_12): Likewise.
10910         (sync_old_nand_12): Likewise.
10911         (sync_new_nand_12): Likewise.
10912         (sync_sub<mode>): Likewise.
10913         (sync_old_add<mode>): Likewise.
10914         (sync_old_sub<mode>): Likewise.
10915         (sync_new_add<mode>): Likewise.
10916         (sync_new_sub<mode>): Likewise.
10917         (sync_<optab><mode>): Likewise.
10918         (sync_old_<optab><mode>): Likewise.
10919         (sync_new_<optab><mode>): Likewise.
10920         (sync_nand<mode>): Likewise.
10921         (sync_old_nand<mode>): Likewise.
10922         (sync_new_nand<mode>): Likewise.
10923         (sync_lock_test_and_set<mode>): Likewise.
10924         (test_and_set_12): Likewise.
10925         (atomic_compare_and_swap<mode>): Likewise.
10926         (atomic_exchange<mode>_llsc): Likewise.
10927         (atomic_fetch_add<mode>_llsc): Likewise.
10928         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
10929         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
10930         (umips_save_restore_pattern_p): Likewise.
10931         (umips_load_store_pair_p): Likewise.
10932         (umips_output_load_store_pair): Likewise.
10933         (umips_movep_target_p): Likewise.
10934         (umips_12bit_offset_address_p): Likewise.
10935         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
10936         (mips_base_mips16): Rename this...
10937         (mips_base_compression_flags): ...to this. Update all uses.
10938         (mips_attribute_table): Add micromips, nomicromips and nocompression.
10939         (mips_mips16_decl_p): Delete.
10940         (mips_nomips16_decl_p): Delete.
10941         (mips_get_compress_on_flags): New function.
10942         (mips_get_compress_off_flags): New function.
10943         (mips_get_compress_mode): New function.
10944         (mips_get_compress_on_name): New function.
10945         (mips_get_compress_off_name): New function.
10946         (mips_insert_attributes): Support multiple compression types.
10947         (mips_merge_decl_attributes): Likewise.
10948         (umips_12bit_offset_address_p): New function.
10949         (mips_start_function_definition): Emit .set micromips directive.
10950         (mips_call_may_need_jalx_p): New function.
10951         (mips_function_ok_for_sibcall): Add microMIPS support.
10952         (mips_print_operand_punctuation): Support short delay slots and
10953         compact jumps.
10954         (umips_swm_mask, umips_swm_encoding): New.
10955         (umips_build_save_restore): New function.
10956         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
10957         (was_mips16_p): Remove.
10958         (old_compression_mode): New.
10959         (mips_set_compression_mode): New function.
10960         (mips_set_current_function): Add microMIPS support.
10961         (mips_option_override): Likewise.
10962         (umips_save_restore_pattern_p): New function.
10963         (umips_output_save_restore): New function.
10964         (umips_load_store_pair_p_1): New function.
10965         (umips_load_store_pair_p): New function.
10966         (umips_output_load_store_pair_1): New function.
10967         (umips_output_load_store_pair): New function.
10968         (umips_movep_target_p) New function.
10969         (mips_prepare_pch_save): Add microMIPS support.
10970         * config/mips/mips.h (TARGET_COMPRESSION): New.
10971         (TARGET_CPU_CPP_BUILTINS): Update macro
10972         to use new compression flags and to support microMIPS.
10973         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
10974         (MIPS_ARCH_FLOAT_SPEC): Likewise.
10975         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
10976         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
10977         (ASM_SPEC): Support mmicromips and mno-micromips.
10978         (M16STORE_REG_P): New macro.
10979         (MIPS_CALL): Support TARGET_MICROMIPS.
10980         (MICROMIPS_J): New macro.
10981         (mips_base_mips16): Rename this...
10982         (mips_base_compression_flags): ...to this.
10983         (UMIPS_12BIT_OFFSET_P): New macro.
10984         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
10985         (MULTILIB_DIRNAMES): Likewise.
10986
10987 2013-02-25  Tom de Vries  <tom@codesourcery.com>
10988
10989         PR rtl-optimization/56131
10990         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
10991         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
10992         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
10993
10994 2013-02-25  Tobias Burnus  <burnus@net-b.de>
10995
10996         * doc/invoke.texi (-fsanitize=): Move from optimization
10997         to debugging options.
10998
10999 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
11000
11001         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
11002
11003 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
11004             Alexander Monakov  <amonakov@ispras.ru>
11005
11006         PR middle-end/56077
11007         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
11008         flush pending lists also on non-jumps.  Adjust comment.
11009
11010 2013-02-24  Catherine Moore  <clm@codesourcery.com>
11011             Maciej W. Rozycki  <macro@codesourcery.com>
11012             Tom de Vries  <tom@codesourcery.com>
11013             Nathan Sidwell  <nathan@codesourcery.com>
11014             Iain Sandoe  <iain@codesourcery.com>
11015             Nathan Froyd  <froydnj@codesourcery.com>
11016             Chao-ying Fu  <fu@mips.com>
11017
11018         * doc/extend.texi: (micromips, nomicromips, nocompression):
11019         Document new function attributes.
11020         * doc/invoke.texi (minterlink-compressed, mmicromips,
11021         m14k, m14ke, m14kec): Document new options.
11022         (minterlink-mips16): Update documentation.
11023         * doc/md.texi (ZC, ZD): Document new constraints.
11024         * configure.ac (gcc_cv_as_micromips): Check if linker
11025         supports the .set micromips directive.
11026         * configure: Regenerate.
11027         * config.in: Regenerate.
11028         * config/mips/mips-tables.opt: Regenerate.
11029         * config/mips/micromips.md: New file.
11030         * constraints.md (ZC, AD): New constraints.
11031         * config/mips/predicates.md (movep_src_register): New predicate.
11032         (movep_src_operand): New predicate.
11033         (non_volatile_mem_operand): New predicate.
11034         * config/mips/mips.md (multimem): New type.
11035         (length): Differentiate between 17-bit and 18-bit branch offsets.
11036         (MOVEP1, MOVEP2): New mode iterator.
11037         (mov_<load>l): Use ZC constraint.
11038         (mov_<load>r): Likewise.
11039         (mov_<store>l): Likewise.
11040         (mov_<store>r): Likewise.
11041         (*branch_equality<mode>_inverted): Add microMIPS support.
11042         (*branch_equality<mode>): Likewise.
11043         (*jump_absolute): Likewise.
11044         (indirect_jump_<mode>): Likewise.
11045         (tablejump_<mode>): Likewise.
11046         (<optab>_internal): Likewise.
11047         (sibcall_internal): Likewise.
11048         (sibcall_value_internal): Likewise.
11049         (prefetch): Use constraint ZD.
11050         * config/mips/mips.opt (minterlink-compressed): New option.
11051         (minterlink-mips16): Now an alias for minterlink-compressed.
11052         (mmicromips): New option.
11053         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
11054         (compare_and_swap_12): Likewise.
11055         (sync_add<mode>): Likewise.
11056         (sync_<optab>_12): Likewise.
11057         (sync_old_<optab>_12): Likewise.
11058         (sync_new_<optab>_12): Likewise.
11059         (sync_nand_12): Likewise.
11060         (sync_old_nand_12): Likewise.
11061         (sync_new_nand_12): Likewise.
11062         (sync_sub<mode>): Likewise.
11063         (sync_old_add<mode>): Likewise.
11064         (sync_old_sub<mode>): Likewise.
11065         (sync_new_add<mode>): Likewise.
11066         (sync_new_sub<mode>): Likewise.
11067         (sync_<optab><mode>): Likewise.
11068         (sync_old_<optab><mode>): Likewise.
11069         (sync_new_<optab><mode>): Likewise.
11070         (sync_nand<mode>): Likewise.
11071         (sync_old_nand<mode>): Likewise.
11072         (sync_new_nand<mode>): Likewise.
11073         (sync_lock_test_and_set<mode>): Likewise.
11074         (test_and_set_12): Likewise.
11075         (atomic_compare_and_swap<mode>): Likewise.
11076         (atomic_exchange<mode>_llsc): Likewise.
11077         (atomic_fetch_add<mode>_llsc): Likewise.
11078         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
11079         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
11080         (umips_save_restore_pattern_p): Likewise.
11081         (umips_load_store_pair_p): Likewise.
11082         (umips_output_load_store_pair): Likewise.
11083         (umips_movep_target_p): Likewise.
11084         (umips_12bit_offset_address_p): Likewise.
11085         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
11086         (mips_base_mips16): Rename this...
11087         (mips_base_compression_flags): ...to this. Update all uses.
11088         (mips_attribute_table): Add micromips, nomicromips and nocompression.
11089         (mips_mips16_decl_p): Delete.
11090         (mips_nomips16_decl_p): Delete.
11091         (mips_get_compress_on_flags): New function.
11092         (mips_get_compress_off_flags): New function.
11093         (mips_get_compress_mode): New function.
11094         (mips_get_compress_on_name): New function.
11095         (mips_get_compress_off_name): New function.
11096         (mips_insert_attributes): Support multiple compression types.
11097         (mips_merge_decl_attributes): Likewise.
11098         (umips_12bit_offset_address_p): New function.
11099         (mips_start_function_definition): Emit .set micromips directive.
11100         (mips_call_may_need_jalx_p): New function.
11101         (mips_function_ok_for_sibcall): Add microMIPS support.
11102         (mips_print_operand_punctuation): Support short delay slots and
11103         compact jumps.
11104         (umips_swm_mask, umips_swm_encoding): New.
11105         (umips_build_save_restore): New function.
11106         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
11107         (was_mips16_p): Remove.
11108         (old_compression_mode): New.
11109         (mips_set_compression_mode): New function.
11110         (mips_set_current_function): Add microMIPS support.
11111         (mips_option_override): Likewise.
11112         (umips_save_restore_pattern_p): New function.
11113         (umips_output_save_restore): New function.
11114         (umips_load_store_pair_p_1): New function.
11115         (umips_load_store_pair_p): New function.
11116         (umips_output_load_store_pair_1): New function.
11117         (umips_output_load_store_pair): New function.
11118         (umips_movep_target_p) New function.
11119         (mips_prepare_pch_save): Add microMIPS support.
11120         * config/mips/mips.h (TARGET_COMPRESSION): New.
11121         (TARGET_CPU_CPP_BUILTINS): Update macro
11122         to use new compression flags and to support microMIPS.
11123         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
11124         (MIPS_ARCH_FLOAT_SPEC): Likewise.
11125         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
11126         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
11127         (ASM_SPEC): Support mmicromips and mno-micromips.
11128         (M16STORE_REG_P): New macro.
11129         (MIPS_CALL): Support TARGET_MICROMIPS.
11130         (MICROMIPS_J): New macro.
11131         (mips_base_mips16): Rename this...
11132         (mips_base_compression_flags): ...to this.
11133         (UMIPS_12BIT_OFFSET_P): New macro.
11134         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
11135         (MULTILIB_DIRNAMES): Likewise.
11136
11137 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
11138
11139         PR target/52555
11140         * target-globals.c (save_target_globals): For init_reg_sets and
11141         target_reinit remporarily set this_fn_optabs to this_target_optabs.
11142
11143 2013-02-22  James Grennahlgh  <james.greenhalgh@arm.com>
11144
11145         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
11146         * config/aarch64/t-aarch64
11147         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
11148
11149 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
11150
11151         PR inline-asm/56148
11152         * lra-constraints.c (process_alt_operands): Reload operand
11153         conflicting with earlier clobber only if no more other conflicting
11154         operands.
11155
11156 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
11157
11158         PR sanitizer/56393
11159         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
11160         if not linking a shared library.
11161
11162 2013-02-22  Seth LaForge  <sethml@google.com>
11163
11164         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
11165
11166 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
11167
11168         * config/arm/arm.md (split for extendsidi): Update condition.
11169         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
11170         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
11171         (qhs_zextenddi_cstr): Likewise.
11172
11173 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
11174
11175         PR middle-end/56420
11176         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
11177         avoid signed wrapping.
11178         (expand_mult): Handle properly multiplication by
11179         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
11180         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
11181         in the compiler if coeff is HOST_WIDE_INT_MIN.
11182         (expand_divmod): Don't make ext_op1 static, change it's type to
11183         uhwi.  Avoid undefined behavior in -INTVAL (op1).
11184
11185         PR rtl-optimization/50339
11186         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
11187         field.
11188         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
11189         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
11190         into splitting_ashiftrt field.
11191         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
11192         ASHIFTRT.
11193         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
11194         choices.
11195
11196 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
11197
11198         PR middle-end/56108
11199         * trans-mem.c (execute_tm_mark): Do not expand transactions that
11200         are sure to go irrevocable.
11201
11202 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
11203
11204         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
11205         scalars are valid operands.
11206
11207 2013-02-21  Martin Jambor  <mjambor@suse.cz>
11208
11209         PR tree-optimization/56310
11210         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
11211         only matching indices and non-negative final offsets.
11212         (intersect_aggregates_with_edge): Pass src_idx to
11213         agg_replacements_to_vector.  Pass src_idx insstead of index to
11214         intersect_with_agg_replacements.
11215
11216 2013-02-21  Martin Jambor  <mjambor@suse.cz>
11217
11218         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
11219         instead of hard-wired defaults.
11220
11221 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
11222
11223         * doc/invoke.texi (MIPS Options): Update documentation of the
11224         floating-point multiply-accumulate instruction restrictions.
11225
11226 2013-02-21  Kostya Serebryany  <kcc@google.com>
11227
11228         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
11229         asan_shadow_offset on x86_64 linux.
11230
11231 2013-02-21  Richard Biener  <rguenther@suse.de>
11232
11233         PR tree-optimization/56415
11234         Revert
11235         2013-02-11  Richard Biener  <rguenther@suse.de>
11236
11237         PR tree-optimization/56273
11238         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
11239         first VRP run.
11240
11241 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
11242
11243         PR bootstrap/56258
11244         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
11245         instead of @itemx.
11246
11247         PR inline-asm/56405
11248         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
11249         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
11250
11251 2013-02-20  Jan Hubicka  <jh@suse.cz>
11252
11253         PR tree-optimization/56265
11254         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
11255         when target is referenced for first time.
11256
11257 2013-02-20  Richard Biener  <rguenther@suse.de>
11258
11259         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
11260         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
11261         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
11262         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
11263         not return anything.
11264         (rename_ssa_copies): Do not remove unused locals.
11265         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
11266         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
11267         * passes.c (execute_function_todo): Do not schedule unused locals
11268         removal if cleanup_tree_cfg did something.
11269         * tree-ssa-live.c (remove_unused_locals): Dump statistics
11270         about the number of removed locals.
11271
11272 2013-02-20  Richard Biener  <rguenther@suse.de>
11273
11274         PR tree-optimization/56398
11275         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
11276
11277 2013-02-20  Martin Jambor  <mjambor@suse.cz>
11278
11279         PR tree-optimization/55334
11280         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
11281         restricted pointers to arrays.
11282
11283 2013-02-20  Richard Biener  <rguenther@suse.de>
11284             Jakub Jelinek  <jakub@redhat.com>
11285
11286         PR tree-optimization/56396
11287         * tree-ssa-ccp.c (n_const_val): New static variable.
11288         (get_value): Return NULL for SSA names we don't have a lattice
11289         entry for.
11290         (ccp_initialize): Initialize n_const_val.
11291         * tree-ssa-copy.c (n_copy_of): New static variable.
11292         (init_copy_prop): Initialize n_copy_of.
11293         (get_value): Return NULL_TREE for SSA names we don't have a
11294         lattice entry for.
11295
11296 2013-02-20  Martin Jambor  <mjambor@suse.cz>
11297
11298         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
11299
11300 2013-02-20  Richard Biener  <rguenther@suse.de>
11301
11302         * genpreds.c (write_lookup_constraint): Do not compare first
11303         letter of the constraint again.
11304
11305 2013-02-20  Richard Biener  <rguenther@suse.de>
11306
11307         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
11308         and ceil_log2.
11309         (get_use_iv_cost): Terminate hashtable walk when coming across
11310         an empty entry.
11311
11312 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
11313
11314         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
11315         reassociation for avx2 targets.
11316
11317 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11318
11319         * config/microblaze/microblaze.c: microblaze_has_clz = 0
11320         Add version check for v8.10.a to enable microblaze_has_clz
11321         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
11322         version and TARGET_PATTERN_COMPARE check
11323         * config/microblaze/microblaze.md: New clzsi2 instruction
11324
11325 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11326
11327         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
11328         function before branching.
11329
11330 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
11331
11332         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
11333         DUMP_INSN_RTX_UID.
11334         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
11335
11336 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
11337
11338         PR middle-end/55889
11339         * sel-sched.c: Include ira.h.
11340         (implicit_clobber_conflict_p): New function.
11341         (moveup_expr): Use it.
11342         * Makefile.in (sel-sched.o): Depend on ira.h.
11343
11344 2013-02-19  Richard Biener  <rguenther@suse.de>
11345
11346         PR tree-optimization/56384
11347         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
11348         (vn_hash_type): Split out from ...
11349         (vn_hash_constant_with_type): ... here.
11350         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
11351         (vn_phi_eq): Compare types from vn_phi_s structure.
11352         (vn_phi_lookup): Populate vn_phi_s type.
11353         (vn_phi_insert): Likewise.
11354
11355 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
11356
11357         PR tree-optimization/56350
11358         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
11359         if haven't found reduction or nested cycle operand, rather than
11360         asserting we must find it.
11361
11362         PR tree-optimization/56381
11363         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
11364         to fold_build3.
11365
11366 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
11367             Jakub Jelinek  <jakub@redhat.com>
11368
11369         PR target/52555
11370         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
11371         (swap_optab_enable): Same.
11372         (init_all_optabs): Use argument instead of global.
11373         * tree.h (struct tree_optimization_option): New field target_optabs.
11374         * expr.h (init_all_optabs): Add argument to prototype.
11375         (TREE_OPTIMIZATION_OPTABS): New.
11376         (save_optabs_if_changed): Protoize.
11377         * optabs.h: Declare this_fn_optabs.
11378         * optabs.c (save_optabs_if_changed): New.
11379         Declare this_fn_optabs.
11380         (init_optabs): Add argument to init_all_optabs() call.
11381         * function.c (invoke_set_current_function_hook): Handle per
11382         function optabs.
11383         * function.h (struct function): New field optabs.
11384         * config/mips/mips.c (mips_set_mips16_mode): Handle when
11385         optimization_current_node has changed.
11386         * target-globals.h (save_target_globals_default_opts): Protoize.
11387         * target-globals.c (save_target_globals_default_opts): New.
11388
11389 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11390
11391         PR target/56347
11392         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
11393         registers %fr12 and %fr12R as call used.
11394
11395         PR target/56214
11396         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
11397         and HImode, require all displacements to be an integer multiple of
11398         their mode size.
11399         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
11400         only allow QImode and HImode when reload is in progress and strict is
11401         true.  Likewise for symbolic addresses.  Use base14_operand to check
11402         displacements in REG+BASE addresses.
11403
11404 2013-02-18  Richard Biener  <rguenther@suse.de>
11405
11406         PR tree-optimization/56366
11407         * tree-vect-loop.c (get_initial_def_for_induction): Properly
11408         handle sign-conversion of outer-loop initial induction value.
11409
11410 2013-02-18  Richard Biener  <rguenther@suse.de>
11411
11412         PR middle-end/56349
11413         * cfghooks.c (merge_blocks): If we merge a latch into another
11414         block adjust references to it.
11415         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
11416         (verify_loop_structure): Verify that a recorded latch is in fact
11417         a latch.
11418
11419 2013-02-18  Richard Biener  <rguenther@suse.de>
11420
11421         PR tree-optimization/56321
11422         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
11423         order SSA name release and virtual operand unlinking.
11424
11425 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11426
11427         * config/microblaze/microblaze.md (save_stack_block): Define.
11428         (restore_stack_block): Likewise.
11429
11430 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11431
11432         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
11433         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
11434         * config/microblaze/microblaze.c (microblaze_option_override):
11435         Bail out early for PIC modes when target does not support PIC.
11436
11437 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11438
11439         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
11440         Replace with a microblaze version.
11441         (microblaze_trampoline_init): Adapt for microblaze.
11442         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
11443         microblaze.
11444
11445 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
11446             Dodji Seketeli  <dodji@redhat.com>
11447
11448         PR asan/56330
11449         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
11450         (instrument_mem_region_access): Do not forget to always put
11451         instrumentation of the of 'base' and 'base + len' in a "if (len !=
11452         0) statement, even for cases where either 'base' or 'base + len'
11453         are not instrumented -- because they have been previously
11454         instrumented.  Simplify the logic by putting all the statements
11455         instrument 'base + len' inside a sequence, and then insert that
11456         sequence right before the current insertion point.  Then, to
11457         instrument 'base + len', just get an iterator on that statement.
11458         And do not forget to update the pointer to iterator the function
11459         received as argument.
11460
11461 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
11462
11463         PR rtl-optimization/56348
11464         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
11465
11466 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
11467
11468         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
11469         (clean_graph_dump_file): Pass base to start_graph_dump.
11470
11471 2013-02-14  Richard Henderson  <rth@redhat.com>
11472
11473         PR target/55941
11474         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
11475
11476 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
11477
11478         * collect2-aix.h: Define F_LOADONLY.
11479
11480 2013-02-14  Richard Biener  <rguenther@suse.de>
11481
11482         PR lto/50494
11483         * varasm.c (output_constant_def_1): Get the decl representing
11484         the constant as argument.
11485         (output_constant_def): Wrap output_constant_def_1.
11486         (make_decl_rtl): Use output_constant_def_1 with the decl
11487         representing the constant.
11488         (build_constant_desc): Optionally re-use a decl already
11489         representing the constant.
11490         (tree_output_constant_def): Adjust.
11491
11492 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
11493
11494         Fix an asan crash
11495         * asan.c (instrument_builtin_call):  Really put the length of the
11496         second source argument into src1_len.
11497
11498 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
11499
11500         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
11501         argument.  If it is false, don't create edge from then_bb to
11502         fallthru_bb.
11503         (insert_if_then_before_iter): Pass true to it.
11504         (build_check_stmt): Pass false to it.
11505         (transform_statements): Flush hash table only on extended basic
11506         block boundaries, rather than at the beginning of every bb.
11507         Don't flush hash table on nonfreeing_call_p calls.
11508         * tree-flow.h (nonfreeing_call_p): New prototype.
11509         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
11510
11511 2013-02-13  David S. Miller  <davem@davemloft.net>
11512
11513         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
11514
11515 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
11516
11517         PR target/56184
11518         * ira.c (max_regno_before_ira): Move from ...
11519         (ira): ... here.
11520         (fix_reg_equiv_init): Use max_regno_before_ira instead of
11521         vec_safe_length.
11522
11523 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
11524
11525         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
11526
11527 2013-02-13  Richard Biener  <rguenther@suse.de>
11528
11529         PR lto/56295
11530         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
11531         globals in MEM_REFs.
11532
11533 2013-02-13  Richard Biener  <rguenther@suse.de>
11534
11535         * loop-init.c (loop_optimizer_init): Clear loop state when
11536         re-initializing preserved loops.
11537         * loop-unswitch.c (unswitch_single_loop): Return whether
11538         we unswitched the loop.  Do not verify loop state here.
11539         (unswitch_loops): When we unswitched a loop discover new loops.
11540
11541 2013-02-13  Kostya Serebryany  <kcc@google.com>
11542
11543         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
11544         on x86_64 linux.
11545         * sanitizer.def: Rename __asan_init to __asan_init_v1.
11546
11547 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
11548
11549         Avoid instrumenting duplicated memory access in the same basic block
11550         * Makefile.in (asan.o): Add new dependency on hash-table.h
11551         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
11552         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
11553         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
11554         (free_mem_ref_resources, has_mem_ref_been_instrumented)
11555         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
11556         (get_mem_ref_of_assignment): New functions.
11557         (get_mem_refs_of_builtin_call): Extract from
11558         instrument_builtin_call and tweak a little bit to make it fit with
11559         the new signature.
11560         (instrument_builtin_call): Use the new
11561         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
11562         of is_gimple_builtin_call.
11563         (instrument_derefs, instrument_mem_region_access): Insert the
11564         instrumented memory reference into the hash table.
11565         (maybe_instrument_assignment): Renamed instrument_assignment into
11566         this, and change it to advance the iterator when instrumentation
11567         actually happened and return true in that case.  This makes it
11568         homogeneous with maybe_instrument_assignment, and thus give a
11569         chance to callers to be more 'regular'.
11570         (transform_statements): Clear the memory reference hash table
11571         whenever we enter a new BB, when we cross a function call, or when
11572         we are done transforming statements.  Use
11573         maybe_instrument_assignment instead of instrumentation.  No more
11574         need to special case maybe_instrument_assignment and advance the
11575         iterator after calling it; it's now handled just like
11576         maybe_instrument_call.  Update comment.
11577
11578 2013-02-13  Richard Biener  <rguenther@suse.de>
11579
11580         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
11581         Fix loop discovery code.
11582
11583 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
11584
11585         PR inline-asm/56148
11586         * lra-constraints.c (process_alt_operands): Match early clobber
11587         operand with itself.  Check conflicts with earlyclobber only if
11588         the operand is not reloaded.  Prefer to reload conflicting operand
11589         if earlyclobber and matching operands are the same.
11590
11591 2013-02-12  Richard Biener  <rguenther@suse.de>
11592
11593         PR lto/56297
11594         * lto-streamer-out.c (write_symbol): Do not output symbols
11595         for hard register variables.
11596
11597 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
11598
11599         PR target/54222
11600         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
11601         (umulsidi3_insn, mulsidi3_insn): New insns.
11602
11603 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
11604
11605         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
11606         (struct tune_params): Add vec_costs field.
11607         * config/arm/arm.c (arm_builtin_vectorization_cost)
11608         (arm_add_stmt_cost): New functions.
11609         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
11610         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
11611         (arm_default_vec_cost): New struct of type cpu_vec_costs.
11612         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
11613         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
11614         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
11615         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
11616
11617 2013-02-12  Richard Biener  <rguenther@suse.de>
11618
11619         PR lto/56295
11620         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
11621         decls again if possible.
11622
11623 2013-02-12  Richard Biener  <rguenther@suse.de>
11624
11625         PR middle-end/56288
11626         * tree-ssa.c (verify_ssa_name): Fix check, move
11627         SSA_NAME_IN_FREE_LIST check up.
11628
11629 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
11630             Steven Bosscher   <steven@gcc.gnu.org>
11631
11632         PR rtl-optimization/56151
11633         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
11634         equal to op0 or op1, and last_insn pattern is CODE operation
11635         with MEM dest and one of the operands matches that MEM.
11636
11637 2013-02-11  Sriraman Tallam  <tmsriramgoogle.com>
11638
11639         * doc/extend.texi: Document Function Multiversioning and "default"
11640         parameter string to target attribute.
11641         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
11642         target attribute parameter is "default".
11643         (ix86_compare_version_priority): Remove checks for target attribute.
11644         (ix86_mangle_function_version_assembler_name): Change error to sorry.
11645         Remove check for target attribute equal to NULL. Add assert.
11646         (ix86_generate_version_dispatcher_body): Change error to sorry.
11647
11648 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
11649             Jack Howarth  <howarth@bromo.med.uc.edu>
11650             Patrick Marlier  <patrick.marlier@gmail.com>
11651
11652         PR libitm/55693
11653         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
11654         define ENDFILE_SPEC as TM_DESTRUCTOR.
11655         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
11656
11657 2013-02-11  Alexander Potapenko  <glider@google.com>
11658             Jack Howarth  <howarth@bromo.med.uc.edu>
11659             Jakub Jelinek  <jakub@redhat.com>
11660
11661         PR sanitizer/55617
11662         * config/darwin.c (cdtor_record): Rename ctor_record.
11663         (sort_cdtor_records): Rename sort_ctor_records.
11664         (finalize_dtors): New routine to sort destructors by
11665         priority before use in assemble_integer.
11666         (machopic_asm_out_destructor): Use finalize_dtors if needed.
11667
11668 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
11669
11670         PR rtl-optimization/56275
11671         * simplify-rtx.c (avoid_constant_pool_reference): Check that
11672         offset is non-negative and less than cmode size before
11673         calling simplify_subreg.
11674
11675 2013-02-11  Richard Biener  <rguenther@suse.de>
11676
11677         PR tree-optimization/56264
11678         * cfgloop.h (fix_loop_structure): Adjust prototype.
11679         * loop-init.c (fix_loop_structure): Return the number of
11680         newly discovered loops.
11681         * tree-cfgcleanup.c (repair_loop_structures): When new loops
11682         are discovered, do a full loop-closed SSA rewrite.
11683
11684 2013-02-11  Richard Biener  <rguenther@suse.de>
11685
11686         PR tree-optimization/56273
11687         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
11688         first VRP run.
11689         (check_array_ref): Fix missing newline in dumps.
11690         (search_for_addr_array): Likewise.
11691
11692 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
11693
11694         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
11695
11696 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
11697
11698         PR target/56256
11699         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
11700
11701 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
11702
11703         PR rtl-optimization/56246
11704         * lra-constraints.c (simplify_operand_subreg): Try to reuse
11705         reload pseudo.
11706         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
11707         constraints are satisfied.
11708
11709 2013-02-08  Jeff Law  <law@redhat.com>
11710
11711         PR debug/53948
11712         * emit-rtl.c (reg_is_parm_p): New function.
11713         * regs.h (reg_is_parm_p): New prototype.
11714         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
11715         callee-clobbered registers.
11716
11717 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
11718
11719         PR target/56043
11720         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
11721         If there is no implicit builtin declaration, just return NULL.
11722
11723 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
11724
11725         * config/i386/sse.md (FMAMODEM): New mode iterator.
11726         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
11727         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
11728
11729 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
11730
11731         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
11732         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
11733         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
11734
11735 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11736
11737         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
11738         (microblaze*-*-elf): Likewise.
11739         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
11740         LINK_SPEC.
11741         * config/microblaze/microblaze-c.c: Add builtin defines for
11742         _LITTLE_ENDIAN and _BIG_ENDIAN.
11743         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
11744         add to TARGET_DEFAULT flags.
11745         Expand ASM_SPEC and LINK_SPEC.
11746         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
11747         * config/microblaze/microblaze.md: Update extendsidi2 and
11748         movdi_internal instructions to use low-order / high-order reg
11749         print_operands.
11750         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
11751         options and inversemask / mask of LITTLE_ENDIAN.
11752         * config/microblaze/t-microblaze: Expand multilib options to
11753         include mlittle-endian (le) and update exceptions patterns.
11754
11755 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
11756
11757         PR rtl-optimization/56195
11758         * lra-constraints.c (get_reload_reg): Don't reuse regs
11759         if they have smaller mode than requested, if they have
11760         wider mode than requested, try to return a SUBREG.
11761
11762         PR tree-optimization/56250
11763         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
11764         if type is unsigned and code isn't MULT_EXPR.
11765
11766 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
11767
11768         PR tree-optimization/56064
11769         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
11770         bits according to mode.
11771         * fixed-value.h (fixed_from_double_int)
11772         (const_fixed_from_double_int): Adjust comments.
11773
11774 2013-02-08  Richard Biener  <rguenther@suse.de>
11775
11776         PR lto/56231
11777         * lto-streamer.h (struct data_in): Remove current_file, current_line
11778         and current_col members.
11779         * lto-streamer-out.c (lto_output_location): Stream changed bits
11780         en-block for efficiency.
11781         * lto-streamer-in.c (clear_line_info): Remove.
11782         (lto_input_location): Cache current file, line and column
11783         globally via local statics.  Read changed bits en-block.
11784         (input_function): Do not call clear_line_info.
11785         (lto_read_body): Likewise.
11786         (lto_input_toplevel_asms): Likewise.
11787
11788 2013-02-08  Michael Matz  <matz@suse.de>
11789
11790         PR tree-optimization/52448
11791         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
11792         (nt_call_phase): New static.
11793         (add_or_mark_expr): Only mark accesses with newer phase than any
11794         call seen.
11795         (nonfreeing_call_p): New.
11796         (nt_init_block): Update nt_call_phase, mark blocks as visited.
11797         (nt_fini_block): Keep blocks marked as visited.
11798         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
11799
11800 2013-02-08  Richard Biener  <rguenther@suse.de>
11801
11802         * ira.c (ira): Free broken dominator information.
11803
11804 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
11805
11806         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
11807
11808 2013-02-08  Marek Polacek  <polacek@redhat.com>
11809
11810         * cfgloop.c (verify_loop_structure): Add more checking of headers.
11811
11812 2013-02-08  Richard Biener  <rguenther@suse.de>
11813
11814         PR middle-end/56181
11815         * cfgloop.h (flow_loops_find): Adjust.
11816         (bb_loop_header_p): Declare.
11817         * cfgloop.c (bb_loop_header_p): New function split out from ...
11818         (flow_loops_find): ... here.  Adjust function signature,
11819         support incremental loop structure update.
11820         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
11821         * cfgloopmanip.c (fix_loop_structure): Move ...
11822         * loop-init.c (fix_loop_structure): ... here.
11823         (apply_loop_flags): Split out from ...
11824         (loop_optimizer_init): ... here.
11825         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
11826         in incremental mode, only remove dead loops here.
11827
11828 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
11829
11830         PR target/54222
11831         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
11832         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
11833         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
11834         (*round<mode>3.libgcc): New insns for fixed-modes.
11835         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
11836         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
11837         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
11838         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
11839         implementations.  Define to __builtin_avr_absFX,
11840         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
11841         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
11842         __builtin_avr_countlsFX, respectively.
11843         * config/avr/avr-c.c (target.h): Include it.
11844         (enum avr_builtin_id): New enum.
11845         (avr_resolve_overloaded_builtin): New static function.
11846         (avr_register_target_pragmas): Use it to set
11847         targetm.resolve_overloaded_builtin.
11848         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
11849         tree nodes used by DEF_BUILTIN.
11850         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
11851         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
11852         <AVR_BUILTIN_xxBITS>: Same.
11853
11854 2013-02-08  Richard Biener  <rguenther@suse.de>
11855
11856         * cfgloop.c (verify_loop_structure): Properly handle
11857         a loop exiting to another loop header.
11858         * ira-int.h (ira_loops): Remove.
11859         * ira.c (ira_loops): Remove.
11860         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
11861         (do_reload): Use loop_optimizer_finalize.
11862         * ira-build.c (create_loop_tree_nodes): Use get_loops and
11863         number_of_loops to access the loop tree.
11864         (more_one_region_p): Likewise.
11865         (finish_loop_tree_nodes): Likewise.
11866         (rebuild_regno_allocno_maps): Likewise.
11867         (mark_loops_for_removal): Likewise.
11868         (mark_all_loops_for_removal): Likewise.
11869         (remove_unnecessary_regions): Likewise.
11870         (ira_build): Likewise.
11871         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
11872
11873 2013-02-08  Richard Biener  <rguenther@suse.de>
11874
11875         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
11876         * ipa-pure-const.c (analyze_function): Avoid calling
11877         mark_irreducible_loops twice.
11878         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
11879
11880 2013-02-07  David S. Miller  <davem@davemloft.net>
11881
11882         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
11883         on 'reg'.
11884         * var-tracking.c (vt_add_function_parameter): Test the presence of
11885         HAVE_window_save properly and do not remap argument registers when
11886         we have a leaf function.
11887
11888 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
11889
11890         PR bootstrap/56227
11891         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
11892         instead of "ll".
11893         * config/i386/i386.c (ix86_print_operand): Ditto.
11894
11895 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
11896
11897         * lra-constraints.c (process_alt_operands): Fix recently added comment.
11898
11899 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
11900
11901         PR rtl-optimization/56225
11902         * lra-constraints.c (process_alt_operands): Check that reload hard
11903         reg can hold value for strict_low_part.
11904
11905 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
11906
11907         PR debug/56154
11908         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
11909         dwarf2out_end_function.
11910         (in_first_function_p, maybe_at_text_label_p,
11911         first_loclabel_num_not_at_text_label): New variables.
11912         (dwarf2out_var_location): In the first function find out
11913         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
11914         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
11915         functions.
11916
11917 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
11918
11919         PR rtl-optimization/56178
11920         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
11921         SUBREG of a register.  Tidy up related block of code.
11922         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
11923         note if the source is a register or a SUBREG of a register.
11924
11925 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
11926
11927         PR target/56228
11928         * config/rs6000/rs6000.md (ptrm): New mode attr.
11929         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
11930         call_value_indirect_aix<pttrsize>,
11931         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
11932         m in constraints.
11933
11934 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
11935
11936         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
11937         if -bnortl. Convert to strcmp and strncmp.
11938
11939 2013-02-07  Alan Modra  <amodra@gmail.com>
11940
11941         PR target/54009
11942         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
11943         addresses won't wrap when offsetting.
11944         (rs6000_secondary_reload): Provide secondary reloads needed for
11945         wrapping LO_SUM addresses.
11946
11947 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
11948
11949         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
11950         MACH, just __MACH__.
11951
11952 2013-02-06  Richard Biener  <rguenther@suse.de>
11953
11954         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
11955         instead of calling fix_loop_structure.
11956
11957 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
11958
11959         PR middle-end/56217
11960         * omp-low.c (use_pointer_for_field): Return false if
11961         lower_send_shared_vars doesn't generate any copy-out code.
11962
11963 2013-02-06  Tom de Vries  <tom@codesourcery.com>
11964
11965         PR rtl-optimization/56131
11966         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
11967         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
11968         of the label is NULL.  Add comment.
11969
11970 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
11971
11972         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
11973
11974         PR sanitizer/55374
11975         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
11976         (STATIC_LIBTSAN_LIBS): Likewise.
11977         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
11978         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
11979         is defined, don't add anything else beyond that.
11980         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
11981         (LINK_COMMAND_SPEC): Use them.
11982
11983         PR tree-optimization/56205
11984         * tree-stdarg.c (check_all_va_list_escapes): Return true if
11985         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
11986         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
11987
11988 2013-02-05  Richard Biener  <rguenther@suse.de>
11989
11990         PR tree-optimization/53342
11991         PR tree-optimization/53185
11992         * tree-vectorizer.h (vect_check_strided_load): Remove.
11993         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
11994         not disallow peeling for vectorized strided loads.
11995         (vect_check_strided_load): Make static and simplify.
11996         (vect_analyze_data_refs): Adjust.
11997         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
11998         correctly when vectorizing strided loads.
11999
12000 2013-02-05  Richard Biener  <rguenther@suse.de>
12001
12002         * doc/install.texi: Refer to ISL, not PPL.
12003
12004 2013-02-05  Jan Hubicka  <jh@suse.cz>
12005
12006         PR tree-optimization/55789
12007         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
12008
12009 2013-02-05  Jan Hubicka  <jh@suse.cz>
12010
12011         PR tree-optimization/55789
12012         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
12013         the dead call anyway.
12014
12015 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
12016
12017         PR sanitizer/55374
12018         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
12019
12020 2013-02-04  Alexander Potapenko  <glider@google.com>
12021             Jack Howarth  <howarth@bromo.med.uc.edu>
12022             Jakub Jelinek  <jakub@redhat.com>
12023
12024         PR sanitizer/55617
12025         * config/darwin.c (sort_ctor_records): Stabilized qsort
12026         on constructor priority by using original position.
12027         (finalize_ctors): New routine to sort constructors by
12028         priority before use in assemble_integer.
12029         (machopic_asm_out_constructor): Use finalize_ctors if needed.
12030
12031 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
12032
12033         PR libstdc++/54314
12034         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
12035         about visibility on artificial decls.
12036         * config/sol2.c (solaris_assemble_visibility): Likewise.
12037
12038 2013-02-04  Kai Tietz  <ktietz@redhat.com>
12039
12040         PR target/56186
12041         * config/i386/i386.c (function_value_ms_64): Add additional valtype
12042         argument and improve checking of return-argument types for 16-byte
12043         modes.
12044         (ix86_function_value_1): Add additional valtype argument on call
12045         of function_value_64.
12046         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
12047         handling infunction_value_64 function.
12048
12049 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
12050
12051         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
12052
12053 2013-02-04  Richard Biener  <rguenther@suse.de>
12054
12055         PR tree-optimization/56188
12056         * tree-ssa-structalias.c (label_visit): Consider case with
12057         initially non-empty points-to set.
12058         (perform_var_substitution): Dump node mapping and clean up.
12059
12060 2013-02-04  Richard Guenther  <rguenther@suse.de>
12061
12062         PR lto/56168
12063         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
12064         node prevail as last resort.
12065         (lto_symtab_merge_decls): Remove guard on LTRANS here.
12066         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
12067
12068 2013-02-04  Richard Biener  <rguenther@suse.de>
12069
12070         PR tree-optimization/56113
12071         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
12072         Merge into ...
12073         (equiv_class_lookup_or_add): ... this.
12074         (label_visit): Adjust and fix error in previous patch.
12075         (perform_var_substitution): Adjust.
12076
12077 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
12078
12079         * config/sh/divtab.c: Fix formatting and comments throughout the file.
12080         * config/sh/sh4-300.md: Likewise.
12081         * config/sh/sh4a.md: Likewise.
12082         * config/sh/constraints.md: Likewise.
12083         * config/sh/sh.md: Likewise.
12084         * config/sh/netbsd-elf.h: Likewise.
12085         * config/sh/predicates.md: Likewise.
12086         * config/sh/sh-protos.h: Likewise.
12087         * config/sh/ushmedia.h: Likewise.
12088         * config/sh/linux.h: Likewise.
12089         * config/sh/sh.c: Likewise.
12090         * config/sh/superh.h: Likewise.
12091         * config/sh/elf.h: Likewise.
12092         * config/sh/sh4.md: Likewise.
12093         * config/sh/sh.h: Likewise.
12094
12095 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12096
12097         * config/pa/constraints.md: Adjust unused letters.  Change "T"
12098         constraint to match_test floating_point_store_memory_operand().
12099         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
12100         (base14_operand): New.
12101         (floating_point_store_memory_operand): New.
12102         (integer_store_memory_operand): Revise to use base14_operand and
12103         reg_plus_base_memory_operand.
12104         (move_dest_operand): Allow symbolic_memory_operands.
12105         (symbolic_memory_operand): Check for LO_SOM.
12106         (symbolic_operand): Change default case to break.
12107         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
12108         CONST_DOUBLE values to be reloaded by putting them into memory when
12109         the destination is a floating point register.
12110         (movdf): Remove code to handle CONST_DOUBLE.
12111         (movsf): Likewise.
12112         (reload_indf_r1): New.
12113         (reload_insf_r1): New.
12114         Consistently use "Q" and "T" constraints with integer and floating
12115         point move instructions, respectively.
12116         (movdi): Remove FAIL.
12117         Change predicate for source operand unamed DImode move from
12118         general_operand to move_src_operand.
12119         (umulsidi3): Change predicate for destination operand to
12120         register_operand.
12121         Likewise for similar unamed patterns.
12122         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
12123         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
12124         (hppa_legitimize_address): Simplify mask calculation.
12125         (pa_emit_move_sequence): Revised handling of secondary reloads from
12126         REG+D addresses for floating point loads and stores.  Directly handle
12127         loading CONST0_RTX (mode) to a floating point register.
12128         (pa_secondary_reload): Handle reloading DF and SFmode constant values
12129         to floating point registers.  Don't restrict secondary reloads to
12130         floating point registers to integer modes.  Revise some comments and
12131         cleanup some code.
12132         (TARGET_LEGITIMATE_ADDRESS_P): Define.
12133         (pa_legitimate_address_p): New.
12134         (pa_legitimize_reload_address): New.
12135         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
12136         (STRICT_REG_OK_FOR_BASE_P): New.
12137         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
12138         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
12139
12140 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
12141             Andrew Dixie  <andrewd@gentrack.com>
12142
12143         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
12144         flag set.
12145
12146 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
12147
12148         * expmed.c (extract_bit_field_1): Pass the full width of the
12149         structure to get_best_reg_extraction_insn.
12150
12151 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
12152
12153         PR target/54601
12154         * configure.ac (use_cxa_atexit): Add AIX.
12155         * configure: Regenerate.
12156
12157         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
12158
12159 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
12160
12161         PR debug/54793
12162         * final.c (need_profile_function): New variable.
12163         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
12164         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
12165         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
12166         notes, targetm.asm_out.function_prologue doesn't emit anything,
12167         HAVE_prologue and profiler should be emitted before prologue,
12168         set need_profile_function instead of emitting it.
12169         (final_scan_insn): If need_profile_function, emit
12170         profile_function on the first NOTE_INSN_BASIC_BLOCK or
12171         NOTE_INSN_FUNCTION_BEG note.
12172
12173 2013-02-01  Richard Henderson  <rth@redhat.com>
12174
12175         * config/rs6000/rs6000.md (smulditi3): New.
12176         (umulditi3): New.
12177
12178         * config/alpha/alpha.md (umulditi3): New.
12179
12180 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
12181
12182         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
12183         (ASM_OUTPUT_ALIGNED_LOCAL): New.
12184
12185 2013-02-01  Richard Biener  <rguenther@suse.de>
12186
12187         PR tree-optimization/56113
12188         * tree-ssa-structalias.c (label_visit): Reduce work for
12189         single-predecessor nodes.
12190
12191 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
12192
12193         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
12194         range isn't testing for zero.
12195
12196 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
12197
12198         PR middle-end/56113
12199         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
12200
12201 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
12202             Nick Clifton  <nickc@redhat.com>
12203
12204         * config/v850/constraints.md (Q): Define as a memory constraint.
12205         * config/v850/predicates.md (label_ref_operand): New predicate.
12206         (e3v5_shift_operand): New predicate.
12207         (ior_operator): New predicate.
12208         * config/v850/t-v850: Add e3v5 multilib.
12209         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
12210         (v850_gen_movdi): Prototype.
12211         * config/v850/v850.c: Add support for e3v5 architecture.
12212         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
12213         TARGET_V850E_UP.
12214         (construct_save_jarl): Add e3v5 long JARL support.
12215         (v850_adjust_insn_length): New function.  Adjust length of call
12216         insns when using e3v5 instructions.
12217         (v850_gen_movdi): New function: Generate instructions to move a
12218         DImode value.
12219         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
12220         (CPP_SPEC): Define __v850e3v5__ as appropriate.
12221         (TARGET_USE_FPU): Enable for e3v5.
12222         (CONST_OK_FOR_W): New macro.
12223         (ADJUST_INSN_LENGTH): Define.
12224         * config/v850/v850.md (UNSPEC_LOOP): Define.
12225         (attr cpu): Add v850e3v5.
12226         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
12227         (movdi): New pattern.
12228         (movdi_internal): New pattern.
12229         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
12230         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
12231         (cstoresf4): Likewise.
12232         (cstoredf4): Likewise.
12233         (insv): New pattern.
12234         (rotlso3_a): New pattern.
12235         (rotlsi3_b): New pattern
12236         (rotlsi3_v850e3v5): New pattern.
12237         (doloop_begin): New pattern.
12238         (fix_loop_counter): New pattern.
12239         (doloop_end): New pattern.
12240         (branch_normal): Add e3v5 long branch support.
12241         (branch_invert): Likewise.
12242         (branch_z_normal): Likewise.
12243         (branch_z_invert): Likewise.
12244         (branch_nz_normal): Likewise.
12245         (branch_nz_invert): Likewise.
12246         (call_internal_short): Add e3v5 register-indirect JARL support.
12247         (call_internal_long): Likewise.
12248         (call_value_internal_short): Likewise.
12249         (call_value_internal_long): Likewise.
12250         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
12251         (mloop): New option.
12252         * config.gcc: Add support for configuring v840e3v5 target.
12253         * doc/invoke.texi: Document new v850 specific command line options.
12254
12255 2013-01-31  Paul Koning  <ni1d@arrl.net>
12256
12257         PR debug/55059
12258         PR debug/54508
12259         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
12260         children if parent is a class.
12261         (prune_unused_types_prune): Don't add DW_AT_declaration.
12262
12263 2013-01-31  Richard Biener  <rguenther@suse.de>
12264
12265         PR tree-optimization/56157
12266         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
12267         match up operand with SLP child.
12268
12269 2013-01-31  Jason Merrill  <jason@redhat.com>
12270
12271         PR debug/54410
12272         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
12273         parameters the first time.
12274         (gen_scheduled_generic_parms_dies): Check completeness here.
12275
12276 2013-01-31  Richard Biener  <rguenther@suse.de>
12277
12278         PR middle-end/53073
12279         * common.opt (faggressive-loop-optimizations): New flag,
12280         enabled by default.
12281         * doc/invoke.texi (faggressive-loop-optimizations): Document.
12282         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
12283         infer_loop_bounds_from_undefined by it.
12284
12285 2013-01-31  Richard Biener  <rguenther@suse.de>
12286
12287         PR tree-optimization/56150
12288         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
12289         visit virtual operands.
12290         (find_uses_to_rename_bb): Likewise.
12291
12292 2013-01-31  Richard Biener  <rguenther@suse.de>
12293
12294         PR tree-optimization/56150
12295         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
12296         mixed store non-store stmts.
12297
12298 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
12299
12300         PR sanitizer/55374
12301         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
12302         LIBASAN_EARLY_SPEC is defined.
12303         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
12304         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
12305         before %o.
12306         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
12307
12308         PR c++/55742
12309         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
12310         invalid args instead of ICEing on it.
12311         (ix86_valid_target_attribute_tree): Return error_mark_node if
12312         ix86_valid_target_attribute_inner_p failed.
12313         (ix86_valid_target_attribute_p): Return false only if
12314         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
12315         target("default") attribute.
12316         (sorted_attr_string): Change argument from const char * to tree,
12317         merge in all target attribute arguments rather than just one.
12318         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
12319         instead of free.  Avoid using strcat.
12320         (ix86_mangle_function_version_assembler_name): Mangle
12321         target("default") as if no target attribute is present.  Adjust
12322         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
12323         instead of xmalloc and XDELETEVEC instead of free.
12324         (ix86_function_versions): Don't return true if one of the decls
12325         doesn't have target attribute.  If they don't and one of the decls
12326         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
12327         sorted_attr_string caller.  Use XDELETEVEC instead of free.
12328         (ix86_supports_function_versions): Remove.
12329         (make_name): Fix up formatting.
12330         (make_dispatcher_decl): Remove resolver_name and its initialization.
12331         Avoid leaking memory.
12332         (is_function_default_version): Return true if there is
12333         target("default") attribute rather than no target attribute at all.
12334         (make_resolver_func): Avoid leaking memory.
12335         (ix86_generate_version_dispatcher_body): Likewise.
12336         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
12337         * target.def (supports_function_versions): Remove.
12338         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
12339         * doc/tm.texi: Regenerated.
12340
12341 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
12342
12343         PR rtl-optimization/56144
12344         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
12345         for values with side effects.
12346
12347 2013-01-30  Richard Biener  <rguenther@suse.de>
12348
12349         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
12350         (sparseset_pop): Likewise.
12351         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
12352         to be able to use quick_push in the worker loop.
12353
12354 2013-01-30  Marek Polacek  <polacek@redhat.com>
12355
12356         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
12357
12358 2013-01-30  Richard Biener  <rguenther@suse.de>
12359
12360         PR lto/56147
12361         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
12362
12363 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
12364
12365         PR tree-optimization/56064
12366         * fixed-value.c (fixed_from_double_int): New function.
12367         * fixed-value.h (fixed_from_double_int): New prototype.
12368         (const_fixed_from_double_int): New static inline function.
12369         * fold-const.c (native_interpret_fixed): New static function.
12370         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
12371         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
12372         (native_encode_fixed): New static function.
12373         (native_encode_expr) <FIXED_CST>: Use it.
12374         (native_interpret_int): Move double_int worker code to...
12375         * double-int.c (double_int::from_buffer): ...this new static method.
12376         * double-int.h (double_int::from_buffer): Prototype it.
12377
12378 2013-01-30  Richard Biener  <rguenther@suse.de>
12379
12380         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
12381         New pointer-map and obstack.
12382         (init_alias_vars): Allocate pointer-map and obstack.
12383         (delete_points_to_sets): Free them.
12384         (find_what_var_points_to): Cache result.
12385         (find_what_p_points_to): Adjust for changed interface of
12386         find_what_var_points_to.
12387         (compute_points_to_sets): Likewise.
12388         (ipa_pta_execute): Likewise.
12389
12390 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12391
12392         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
12393         * configure: Regenerate.
12394         * config.in: Regenerate.
12395         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
12396         #nobits/#progbits if supported.
12397
12398 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
12399
12400         PR target/56121
12401         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
12402         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
12403         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
12404
12405 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
12406
12407         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
12408         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
12409
12410 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
12411
12412         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
12413         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
12414
12415 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
12416
12417         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
12418         declaration.
12419         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
12420         * config/arm/cortex-a7.md: New bypasses using
12421         arm_mac_accumulator_is_result.
12422
12423 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
12424
12425         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
12426         (cortex_a7_neon_mla): Likewise.
12427         (cortex_a7_fpfmad): New reservation.
12428         (cortex_a7_fpmacs): Use ffmas and update required units.
12429         (cortex_a7_fpmuld): Update required units and latency.
12430         (cortex_a7_fpmacd): Likewise.
12431         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
12432         (cortex_a7_neon). Likewise.
12433         (bypass) Update participating units.
12434
12435 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
12436
12437         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
12438         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
12439         from fmac to ffma.
12440         * config/arm/vfp11.md (vfp_farith): Use ffmas.
12441         (vfp_fmul): Use ffmad.
12442         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
12443         (cortex_r4_fmacd): Use ffmad.
12444         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
12445         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
12446         (cortex_a9_fmacd): Use ffmad.
12447         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
12448         (cortex_a8_vfp_macd): Use ffmad.
12449         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
12450         (cortex_a5_fpmacd): Use ffmad.
12451         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
12452         (cortex_a15_vfp_macd): Use ffmad.
12453         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
12454
12455 2013-01-29  Jason Merrill  <jason@redhat.com>
12456
12457         PR libstdc++/54314
12458         * varasm.c (default_assemble_visibility): Don't warn about
12459         visibility on artificial decls.
12460
12461 2013-01-29  Richard Biener  <rguenther@suse.de>
12462
12463         PR tree-optimization/56113
12464         * tree-ssa-structalias.c (equiv_class_lookup): Also return
12465         the bitmap leader.
12466         (label_visit): Free duplicate bitmaps and record the leader instead.
12467         (perform_var_substitution): Adjust.
12468
12469 2013-01-29  Richard Biener  <rguenther@suse.de>
12470
12471         PR tree-optimization/55270
12472         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
12473         the CFG, schedule loops for fixup.
12474
12475 2013-01-29  Nick Clifton  <nickc@redhat.com>
12476
12477         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
12478         SP_REG.
12479
12480 2013-01-28  Leif Ekblad  <leif@rdos.net>
12481
12482         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
12483         * config/i386/i386.h (TARGET_RDOS): New macro.
12484         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
12485         * config/i386/i386.c (ix86_option_override_internal): For 64bit
12486         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
12487         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
12488         DEFAULT_LARGE_SECTION_THRESHOLD.
12489         * config/i386/i386.md (R14_REG, R15_REG): New constants.
12490         * config/i386/rdos.h: New file.
12491         * config/i386/rdos64.h: New file.
12492
12493 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
12494
12495         PR other/54814
12496         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
12497         TEST_HARD_REG_BIT.
12498
12499 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
12500
12501         PR rtl-optimization/56117
12502         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
12503         call cselib_lookup_from_insn on the MEM before calling
12504         add_insn_mem_dependence.
12505
12506 2013-01-28  Richard Biener  <rguenther@suse.de>
12507
12508         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
12509         to a stmt that didn't have one.
12510         (copy_phis_for_bb): Likewise for PHI arguments.
12511         (copy_debug_stmt): Likewise for debug stmts.
12512
12513 2013-01-28  Richard Biener  <rguenther@suse.de>
12514
12515         PR tree-optimization/56034
12516         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
12517         (partition_builtin_p): Adjust.
12518         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
12519         it is the last partition.
12520         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
12521         up the vertex for the definition.
12522         (classify_partition): Classify whether a partition is a
12523         PKIND_REDUCTION, thus has uses outside of the loop.
12524         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
12525         Merge all PKIND_REDUCTION partitions into the last partition.
12526         (tree_loop_distribution): Seed partitions from reductions as well.
12527
12528 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
12529
12530         PR tree-optimization/56125
12531         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
12532         pow(x,c) into sqrt(x) * powi(x, n/2) or
12533         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
12534         optimizing for size.
12535         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
12536         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
12537         integer.
12538
12539         PR tree-optimization/56094
12540         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
12541         to UNKNOWN_LOCATION while gimplifying expr.
12542
12543 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
12544
12545         PR target/56114
12546         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
12547         operand 0 in movabs insn template for -masm=intel asm alternative.
12548         (*movabs<mode>_2): Ditto for operand 1.
12549
12550 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
12551
12552         PR target/54663
12553         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
12554         of microblaze-c.o
12555
12556 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
12557
12558         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
12559         tm_file.
12560
12561 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
12562
12563         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
12564         Undef to avoid warning.
12565
12566 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
12567
12568         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
12569         * configure: Regenerate.
12570
12571 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
12572
12573         PR tree-optimization/56098
12574         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
12575         for stmts with volatile ops.
12576         (cond_store_replacement): Don't optimize if assign has volatile ops.
12577         (cond_if_else_store_replacement_1): Don't optimize if either
12578         then_assign or else_assign have volatile ops.
12579         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
12580         volatile ops.
12581
12582 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
12583
12584         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
12585
12586 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
12587
12588         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
12589         missing ':' in asm example.
12590
12591 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
12592
12593         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
12594         entries into lane and laneq entries.
12595         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
12596         Remove AdvSIMD scalar modes.
12597         (aarch64_sq<r>dmulh_laneq<mode>): New.
12598         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
12599         modes.
12600         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
12601         builtin implementations to relfect changes in RTL in aarch64-simd.md.
12602         * config/aarch64/iterators.md (VCOND): New.
12603         (VCONQ): New.
12604
12605 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
12606
12607         PR target/54222
12608         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
12609         Add NULL LIBNAME argument to existing definitions.
12610         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
12611         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
12612         * config/avr/avr.c (DEF_BUILTIN): Same.
12613         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
12614         (avr_expand_builtin): Expand to a vanilla call if a libgcc
12615         implementation is available (DECL_ASSEMBLER_NAME is set).
12616         (avr_fold_absfx): New static function.
12617         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
12618         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
12619         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
12620         AVR_BUILTIN_ABSLLK.
12621         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
12622         (abshk, absk, abslk, absllk): Provide as static inline functions.
12623
12624 2013-01-25  Marek Polacek  <polacek@redhat.com>
12625
12626         PR tree-optimization/56035
12627         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
12628
12629 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
12630
12631         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
12632         (*movtf_internal_rex64): Add (!o,C) alternative
12633         (*movxf_internal_rex64): Ditto.
12634         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
12635
12636 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
12637
12638         * doc/invoke.texi: fix typo.
12639         * doc/objc.texi: fix typo.
12640
12641 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
12642
12643         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
12644         for the first two alternatives.
12645
12646 2013-01-24  Diego Novillo  <dnovillo@google.com>
12647
12648         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
12649         (ggc-zone.o): Remove.
12650         * configure.ac: Remove option --with-gc.
12651         * configure: Re-generate.
12652         * doc/install.texi: Remove documentation for --with-gc.
12653         * gengtype.c (write_enum_defn): Remove.  Update all users.
12654         (write_Types_process_field): Remove generation of gt_e_* argument.
12655         (output_type_enum): Remove.  Update all users.
12656         (write_enum_defn): Remove.  Update all users.
12657         (enum alloc_zone): Remove.  Update all users.
12658         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
12659         * ggc-common.c (ggc_splay_alloc): Remove first argument.
12660         Update all callers.
12661         (struct ptr_data): Remove field TYPE.  Update all users.
12662         (gt_pch_note_object): Remove argument TYPE.  Update all users.
12663         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
12664         Update all users.
12665         * ggc-none.c (ggc_alloc_typed_stat): Remove.
12666         (struct alloc_zone): Remove.
12667         (ggc_internal_alloc_zone_stat): Remove.
12668         (ggc_internal_cleared_alloc_zone_stat): Remove.
12669         * ggc-page.c (ggc_alloc_typed_stat): Remove.
12670         (ggc_pch_count_object): Remove last argument.  Update all users.
12671         (ggc_pch_alloc_object): Remove last argument.  Update all users.
12672         (struct alloc_zone): Remove.
12673         * ggc-zone.c: Remove.
12674         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
12675         (struct alloc_zone): Remove.
12676         (ggc_alloc_typed_stat): Remove.
12677         (ggc_alloc_typed): Remove.
12678         (ggc_splay_alloc): Remove first argument.
12679         (rtl_zone): Remove.  Update all users.
12680         (tree_zone): Remove.  Update all users.
12681         (tree_id_zone): Remove.  Update all users.
12682         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
12683         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
12684         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
12685         * tree-ssanames.c: Remove references to zone allocator in comments.
12686
12687 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
12688
12689         * config/avr/avr.c (avr_out_fract): Make register numbers that
12690         might be outside of source operand signed.
12691
12692 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
12693
12694         * config/i386/constraints.md (Yf): New constraint.
12695         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
12696         of f constraint to conditionaly disable x87 register preferences.
12697         (*movdf_internal): Ditto.
12698         (*movsf_internal): Ditto.
12699
12700 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
12701
12702         PR inline-asm/55934
12703         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
12704         that have operands with impossible constraints.
12705         Add a FIXME for a speed-up opportunity.
12706         * lra-constraints.c (process_alt_operands): Verify that a class
12707         selected from constraints on asms is valid for the operand mode.
12708         (curr_insn_transform): Remove incorrect comment.
12709
12710 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
12711
12712         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
12713         TOC operand is a valid symbol ref in the constant pool.
12714
12715 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
12716
12717         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
12718
12719 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
12720
12721         PR target/54222
12722         * config/avr/stdfix.h: New file.
12723         * t-avr (stdfix-gcc.h): New rule to build it.
12724         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
12725
12726 2013-01-23  Kostya Serebryany  <kcc@google.com>
12727
12728         * config/darwin.h: remove dependency on
12729         CoreFoundation (asan on Mac OS).
12730
12731 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
12732
12733         PR target/49069
12734         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
12735         instead of cmpdi_operand for first comparison operand.
12736         Don't assert that comparison operands aren't both constants.
12737
12738 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
12739
12740         * doc/install.texi (Downloading the Source): Update references to
12741         downloading separate components.
12742
12743 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
12744
12745         * doc/extend.texi (__int128): Improve grammar.
12746
12747 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
12748
12749         PR target/56028
12750         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
12751         alternative to (o,r).
12752         (*movdi_internal_rex64): Remove (!o,n) alternative.
12753         (DImode immediate->memory splitter): Remove.
12754         (DImode immediate->memory peephole2): Remove.
12755         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
12756         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
12757         alternative to (!o,*r).
12758         (*movtf_internal_sse): New pattern.
12759         (*movxf_internal_rex64): New pattern.
12760         (*movxf_internal): Disable for TARGET_64BIT.
12761         (*movdf_internal_rex64): Remove (!o,F) alternative.
12762
12763 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
12764
12765         PR middle-end/56074
12766         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
12767         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
12768         * tree-vect-loop-manip.c (find_loop_location): Also ignore
12769         stmt locations where LOCATION_LOCUS of the stmt location is
12770         UNKNOWN_LOCATION or BUILTINS_LOCATION.
12771
12772         PR target/55686
12773         * config/i386/i386.md (UNSPEC_STOS): New.
12774         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
12775         *strsetqi_1): Add UNSPEC_STOS.
12776
12777 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
12778
12779         PR c++/56067
12780         * doc/invoke.texi: Remove left over -Wsynth example.
12781
12782 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
12783
12784         PR tree-optimization/56051
12785         * fold-const.c (fold_binary_loc): Don't fold
12786         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
12787         a narrowing conversion, or widening conversion from signed
12788         to unsigned.
12789
12790 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
12791
12792         PR rtl-optimization/56023
12793         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
12794         dependent on debug instruction.
12795
12796 2013-01-21  Martin Jambor  <mjambor@suse.cz>
12797
12798         PR middle-end/56022
12799         * function.c (allocate_struct_function): Call
12800         invoke_set_current_function_hook earlier.
12801
12802 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
12803
12804         * reload1.c (init_reload): Only initialize reload_obstack
12805         during the first call.
12806
12807 2013-01-21  Marek Polacek  <polacek@redhat.com>
12808
12809         * cfgloop.c (verify_loop_structure): Fix up grammar.
12810
12811 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
12812
12813         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
12814         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
12815
12816 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12817
12818         PR target/56058
12819         * config/arm/marvell-pj4.md: Update copyright year.
12820         Fix up use of alu to alu_reg and simple_alu_imm.
12821
12822 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
12823
12824         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
12825
12826 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
12827
12828         PR target/55433
12829         * lra-constraints.c (curr_insn_transform): Don't reuse original
12830         insn for secondary memory move when memory mode should be different.
12831
12832 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12833
12834         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
12835         atomic_storedi_1): New patterns.
12836
12837 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
12838
12839         btver2 pipeline descriptions.
12840         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
12841         descriptions.
12842         * config/i386/i386.md (btver2_decode): New type attributes.
12843         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
12844         type attributes.
12845         * config/i386/btver2.md: New file describing btver2 pipelines.
12846
12847 2013-01-19  Andrew Pinski  <apinski@cavium.com>
12848
12849         PR tree-optimization/52631
12850         * tree-ssa-sccvn (visit_use): Before looking up the original
12851         statement, try looking up the simplified expression.
12852
12853 2013-01-19  Anthony Green  <green@moxielogic.com>
12854
12855         * config/moxie/moxie.c (moxie_expand_prologue): Set
12856         current_function_static_stack_size.
12857
12858 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
12859
12860         PR tree-optimization/56029
12861         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
12862         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
12863
12864 2013-01-18  Sharad Singhai  <singhai@google.com>
12865
12866         PR tree-optimization/55995
12867         * dumpfile.c (dump_loc): Print location only if available.
12868         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
12869
12870 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
12871
12872         PR target/55433
12873         * lra-constraints.c (curr_insn_transform): Reuse original insn for
12874         secondary memory move.
12875         (inherit_reload_reg): Use rclass instead of cl for
12876         check_secondary_memory_needed_p.
12877
12878 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
12879
12880         PR middle-end/56015
12881         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
12882         the case where writing real complex part of target modifies op1.
12883
12884 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
12885
12886         * config/aarch64/aarch64-simd.md
12887         (aarch64_vcond_internal<mode>): Handle unordered cases.
12888         * config/aarch64/iterators.md (v_cmp_result): New.
12889
12890 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
12891             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12892
12893         * config/arm/marvell-pj4.md: New file.
12894         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
12895         * config/arm/arm.md (generic_sched): Add marvell_pj4.
12896         (generic_vfp): Likewise.
12897         * config/arm/arm-cores.def: Add marvell-pj4.
12898         * config/arm/arm-tune.md: Regenerate.
12899         * config/arm/arm-tables.opt: Regenerate.
12900         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
12901         * doc/invoke.texi: Document marvell-pj4.
12902
12903 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
12904
12905         * config/aarch64/arm_neon.h: Map scalar types to standard types.
12906
12907 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
12908
12909         PR debug/54114
12910         PR debug/54402
12911         PR debug/49888
12912         * var-tracking.c (negative_power_of_two_p): New.
12913         (global_get_addr_cache, local_get_addr_cache): New.
12914         (get_addr_from_global_cache, get_addr_from_local_cache): New.
12915         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
12916         heading comment.
12917         (vt_stack_offset_p): Remove.
12918         (vt_canon_true_dep): Always canonicalize loc's address.
12919         (clobber_overlapping_mems): Make sure we have a MEM.
12920         (local_get_addr_clear_given_value): New.
12921         (val_reset): Clear local cached entries.
12922         (compute_bb_dataflow): Create and release the local cache.
12923         Disable duplicate MEMs clobbering.
12924         (emit_notes_in_bb): Clobber MEMs likewise.
12925         (vt_emit_notes): Create and release the local cache.
12926         (vt_initialize, vt_finalize): Create and release the global
12927         cache, respectively.
12928         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
12929
12930 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
12931
12932         PR libmudflap/53359
12933         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
12934         not found in the symtab.
12935
12936 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
12937
12938         PR debug/56006
12939         PR rtl-optimization/55547
12940         PR rtl-optimization/53827
12941         PR debug/53671
12942         PR debug/49888
12943         * alias.c (offset_overlap_p): New, factored out of...
12944         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
12945         the conservative special case for symbolic constants.  Don't
12946         adjust zero sizes on alignment.
12947
12948 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
12949
12950         PR rtl-optimization/52573
12951         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
12952         REG_UNUSED for the same register.
12953
12954 2013-01-17  Richard Biener  <rguenther@suse.de>
12955             Marek Polacek  <polacek@redhat.com>
12956
12957         PR rtl-optimization/55833
12958         * loop-unswitch.c (unswitch_loops): Move loop verification...
12959         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
12960         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
12961         Set it to true when we're removing a loop from hierarchy tree in
12962         an irreducible region.
12963         (fix_bb_placements): Adjust caller.
12964         (fix_loop_placements): Likewise.
12965
12966 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
12967
12968         * config/avr/builtins.def (DEF_BUILTIN): Factor out
12969         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
12970         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
12971         Remove ID.  Adjust comments.
12972         * config/avr/avr-c.c (avr_builtin_name): Remove.
12973         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
12974         * config/avr/avr.c (avr_tolower): New static function.
12975         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
12976         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
12977         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
12978         default expansion.
12979
12980 2013-01-17  Jan Hubicka  <jh@suse.cz>
12981
12982         PR tree-optimization/55273
12983         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
12984
12985 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
12986
12987         PR target/55981
12988         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
12989         store through atomic_store<mode>_1.
12990         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
12991
12992 2013-01-17  Martin Jambor  <mjambor@suse.cz>
12993
12994         PR tree-optimizations/55264
12995         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
12996         for virtual methods.
12997         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
12998         virtual methods before inlining is over.
12999         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
13000         virtual functions.
13001         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
13002         non-virtual.
13003
13004 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
13005
13006         PR rtl-optimization/56005
13007         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
13008         pending reads for prefetch.
13009
13010 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
13011
13012         * config/aarch64/aarch64.md
13013         (*cstoresi_neg_uxtw): New pattern.
13014         (*cmovsi_insn_uxtw): New pattern.
13015         (*<optab>si3_uxtw): New pattern.
13016         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
13017         (*<optab>si3_insn_uxtw): New pattern.
13018         (*bswapsi2_uxtw): New pattern.
13019
13020 2013-01-16  Richard Biener  <rguenther@suse.de>
13021
13022         * tree-inline.c (tree_function_versioning): Remove set but
13023         never used variable.
13024
13025 2013-01-16  Richard Biener  <rguenther@suse.de>
13026
13027         PR tree-optimization/55964
13028         * tree-flow.h (rename_variables_in_loop): Remove.
13029         (rename_variables_in_bb): Likewise.
13030         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
13031         (copy_loop_before): Adjust and delete update-ssa status.
13032         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
13033         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
13034         (rename_variables_in_loop): Remove.
13035         (slpeel_update_phis_for_duplicate_loop): Likewise.
13036         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
13037         use available cfg machinery instead of duplicating it.
13038         Update PHI nodes and perform poor-mans SSA update here.
13039         (slpeel_tree_peel_loop_to_edge): Adjust.
13040
13041 2013-01-16  Richard Biener  <rguenther@suse.de>
13042
13043         PR tree-optimization/54767
13044         PR tree-optimization/53465
13045         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
13046         (vrp_visit_phi_node): For PHI arguments coming via backedges
13047         drop all symbolical range information.
13048         (execute_vrp): Compute backedges.
13049
13050 2013-01-16  Richard Biener  <rguenther@suse.de>
13051
13052         * doc/install.texi: Update CLooG and ISL requirements to
13053         0.18.0 and 0.11.1.
13054
13055 2013-01-16  Christian Bruel  <christian.bruel@st.com>
13056
13057         PR target/55301
13058         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
13059         (broken_move): Handle UNSPECV_SP_SWITCH_B.
13060         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
13061
13062 2013-01-16  DJ Delorie  <dj@redhat.com>
13063
13064         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
13065         (UNSPECV_SP_SWITCH_E): New.
13066         (sp_switch_1): Change to an unspec.
13067         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
13068         replace $r15.
13069
13070 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
13071
13072         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
13073         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
13074         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
13075         (expand_mem_thread_fence): Ditto.
13076         (expand_mem_signal_fence): Ditto.
13077         (expand_atomic_load): Ditto.
13078         (expand_atomic_store): Ditto.
13079
13080 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
13081
13082         PR rtl-optimization/55547
13083         PR rtl-optimization/53827
13084         PR debug/53671
13085         PR debug/49888
13086         * alias.c (memrefs_conflict_p): Set sizes to negative after
13087         AND adjustments.
13088
13089 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
13090
13091         PR target/55940
13092         * function.c (thread_prologue_and_epilogue_insns): Always
13093         add crtl->drap_reg to set_up_by_prologue.set, even if
13094         stack_realign_drap is false.
13095
13096 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
13097
13098         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
13099         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
13100         *call): Fix indention.
13101
13102 2013-01-15  Tom de Vries  <tom@codesourcery.com>
13103
13104         PR target/55876
13105         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
13106         Update comment.
13107
13108 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
13109
13110         PR rtl-optimization/55153
13111         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
13112
13113 2013-01-15  Martin Jambor  <mjambor@suse.cz>
13114
13115         PR tree-optimization/55920
13116         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
13117         accesses as grp_to_be_debug_replaced.
13118
13119 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
13120
13121         PR tree-optimization/55920
13122         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
13123         there is non-useless type conversion needed from debug rhs to lhs,
13124         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
13125
13126 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
13127             Mikael Pettersson  <mikpe@it.uu.se>
13128
13129         PR target/43961
13130         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
13131         Thumb.
13132         (ASM_OUTPUT_CASE_LABEL): Remove.
13133         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
13134         * final.c (shorten_branches): Update alignment of labels before
13135         jump tables if CASE_VECTOR_SHORTEN_MODE.
13136
13137 2013-01-15  Richard Biener  <rguenther@suse.de>
13138
13139         PR bootstrap/55961
13140         * system.h: Do not include gmp.h for building host tools.
13141
13142 2013-01-15  Richard Biener  <rguenther@suse.de>
13143
13144         PR middle-end/55882
13145         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
13146         account for bitpos when computing alignment.
13147
13148 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
13149
13150         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
13151         (ix86_target_macros_internal): Likewise.
13152
13153         * config/i386/i386.c (m_CORE2I7): Removed.
13154         (m_CORE_HASWELL): New macro.
13155         (m_CORE_ALL): Likewise.
13156         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
13157         (initial_ix86_arch_features): Likewise.
13158         (processor_target_table): Initializations for Core avx2.
13159         (cpu_names): New names "core-avx2".
13160         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
13161         PROCESSOR_CORE_HASWELL.
13162         (ix86_issue_rate): New case.
13163         (ia32_multipass_dfa_lookahead): Likewise.
13164         (ix86_sched_init_global): Likewise.
13165
13166         * config/i386/i386.h (TARGET_HASWELL): New macro.
13167         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
13168         (processor_type): New PROCESSOR_HASWELL.
13169
13170 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
13171
13172         PR tree-optimization/55955
13173         * tree-vect-loop.c (vectorizable_reduction): Give up early on
13174         *SHIFT_EXPR and *ROTATE_EXPR codes.
13175
13176         PR tree-optimization/48766
13177         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
13178         -ftrapv disable -fwrapv.
13179
13180 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
13181
13182         PR target/55974
13183         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
13184         etc. to 1 and not to __flash.
13185         Use LL suffix for __INT24_MAX__ with -mint8.
13186         Use ULL suffix for __UINT24_MAX__ with -mint8.
13187
13188 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
13189
13190         * config/avr/avr-arch.h
13191         (struct base_arch_s): Use typedef avr_arch_t instead.
13192         (struct arch_info_s): Use typedef avr_arch_info_t instead.
13193         (struct mcu_type_s): Use typedef avr_mcu_t instead.
13194         * config/avr/avr.c: Same.
13195         * config/avr/avr-devices.c: Same.
13196         * config/avr/driver-avr.c: Same.
13197         * config/avr/gen-avr-mmcu-texi.c: Same.
13198         * config/avr/avr-mcus.def: Adjust comment.
13199
13200 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
13201
13202         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
13203         * config/aarch64/iterators.md (VALLDI): New.
13204
13205 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
13206             Andi Kleen  <ak@linux.intel.com>
13207
13208         PR target/55948
13209         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
13210         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
13211         memmodel flag.
13212
13213 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
13214
13215         * config/avr/avr-stdint.h: Remove trailing blanks.
13216         * config/avr/avr-log.h: Same.
13217         * config/avr/avr-arch.h: Same.
13218         * config/avr/avr-devices.c: Same.
13219         * config/avr/avr-dimode.md: Same.
13220         * config/avr/predicates.md: Same.
13221         * config/avr/avr-c.c: Same.  And fix typo.
13222
13223         * config/avr/avr-protos.h: Same.  And:
13224         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
13225         (init_cumulative_args): Rename to avr_init_cumulative_args.
13226         (expand_prologue): Rename to avr_expand_prologue.
13227         (expand_epilogue): Rename to avr_expand_epilogue.
13228         (adjust_insn_length): Rename to avr_adjust_insn_length.
13229         (notice_update_cc): Rename to avr_notice_update_cc.
13230         (final_prescan_insn): Rename to avr_final_prescan_insn.
13231         * config/avr/avr.c: Same.
13232         * config/avr/avr.h: Same.
13233         * config/avr/avr.md: Remove trailing blanks.
13234         (prologue): Use avr_expand_prologue.
13235         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
13236
13237 2013-01-14  Richard Biener  <rguenther@suse.de>
13238
13239         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
13240         verify_location, collect_subblocks): New functions.
13241         (verify_gimple_in_cfg): Verify that locations only reference
13242         BLOCKs in the functions BLOCK tree.
13243
13244 2013-01-14  Richard Biener  <rguenther@suse.de>
13245
13246         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
13247         PHI argument.
13248         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
13249         unshare reference.
13250         (insert_out_of_ssa_copy_on_edge): Likewise.
13251         (rewrite_close_phi_out_of_ssa): Likewise.
13252         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
13253         debug expressions.
13254         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
13255         propagated constants.
13256         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
13257         can not be shared.
13258
13259 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
13260
13261         * config/avr/avr-modes.def: Add GPL copyright notice.
13262
13263 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
13264
13265         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
13266         MEMMODEL_MASK to determine memory model.
13267         (atomic_store<mode>): Ditto from operands[2].
13268         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
13269
13270 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
13271
13272         PR fortran/55935
13273         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
13274         (fold_gimple_assign): Don't call unshare_expr here.
13275         (fold_ctor_reference): Call unshare_expr.
13276
13277 2013-01-13  Terry Guo  <terry.guo@arm.com>
13278
13279         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
13280         * doc/fragments.texi: Document MULTILIB_REUSE.
13281         * gcc.c (multilib_reuse): New internal spec.
13282         (set_multilib_dir): Also search multilib from multilib_reuse.
13283         * genmultilib (tmpmultilib3): Refactor code.
13284         (tmpmultilib4): Ditto.
13285         (multilib_reuse): New multilib argument.
13286
13287 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
13288
13289         * Makefile.in: Update copyright.
13290
13291 2013-01-12  Tom de Vries  <tom@codesourcery.com>
13292
13293         PR middle-end/55890
13294         * calls.c (expand_call): Check if arg_nr is valid.
13295
13296 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
13297
13298         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
13299         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
13300         documentation.  Add missing '__' in front of
13301         __builtin_ia32_packssdw256.
13302
13303 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13304
13305         PR target/55719
13306         * config/s390/s390.c (s390_preferred_reload_class): Do not return
13307         NO_REGS for larl operands.
13308         (s390_reload_larl_operand): Use s390_load_address instead of
13309         emit_move_insn.
13310
13311 2013-01-11  Richard Biener  <rguenther@suse.de>
13312
13313         * tree-cfg.c (verify_node_sharing_1): Split out from ...
13314         (verify_node_sharing): ... here.
13315         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
13316
13317 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
13318
13319         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
13320         Substitute TREECHECKING.
13321         * configure: Regenerate.
13322         * Makefile.in (TREECHECKING): New.
13323
13324 2013-01-11  Richard Guenther  <rguenther@suse.de>
13325
13326         PR tree-optimization/44061
13327         * tree-vrp.c (extract_range_basic): Compute zero as
13328         value-range for __builtin_constant_p of function parameters.
13329
13330 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
13331
13332         Update copyright years.
13333
13334 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
13335
13336         PR rtl-optimization/55672
13337         * lra-eliminations.c (mark_not_eliminable): Permit addition with
13338         const to be eliminable.
13339
13340 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
13341
13342         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
13343         * configure: Regenerate.
13344
13345 2013-01-10  Richard Biener  <rguenther@suse.de>
13346
13347         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
13348
13349 2013-01-10  Richard Biener  <rguenther@suse.de>
13350
13351         PR bootstrap/55792
13352         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
13353         locations for virtual PHI arguments.
13354         (rewrite_update_phi_arguments): Likewise.
13355
13356 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
13357
13358         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
13359         on to assembler.
13360
13361 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
13362
13363         PR tree-optimization/55921
13364         * tree-complex.c (expand_complex_asm): New function.
13365         (expand_complex_operations_1): Call it for GIMPLE_ASM.
13366
13367 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13368
13369         PR target/55718
13370         * config/s390/s390.c (s390_symref_operand_p)
13371         (s390_loadrelative_operand_p): Merge the two functions.
13372         (s390_check_qrst_address, print_operand_address): Add parameters
13373         to s390_loadrelative_operand_p invokation.
13374         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
13375         (s390_reload_larl_operand, s390_secondary_reload): Use
13376         s390_loadrelative_operand_p instead of s390_symref_operand_p.
13377         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
13378
13379 2013-01-09  Mike Stump  <mikestump@comcast.net>
13380
13381         * dse.c (record_store): Remove unnecessary assert.
13382
13383 2013-01-09  Jan Hubicka  <jh@suse.cz>
13384
13385         PR tree-optimization/55569
13386         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
13387         * cfgloop.h (scale_loop_profile): Likewise.
13388
13389 2013-01-09  Jan Hubicka  <jh@suse.cz>
13390
13391         PR lto/45375
13392         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
13393         functions.
13394         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
13395
13396 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
13397
13398         PR middle-end/55114
13399         * expr.h (maybe_emit_group_store): Declare.
13400         * expr.c (maybe_emit_group_store): New function.
13401         * builtins.c (expand_builtin_int_roundingfn): Call it.
13402         (expand_builtin_int_roundingfn_2): Likewise.
13403
13404 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
13405
13406         PR rtl-optimization/55829
13407         * lra-constraints.c (match_reload): Add code for absent output.
13408         (curr_insn_transform): Add code for reloads of matched inputs
13409         without output.
13410
13411 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
13412
13413         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
13414         attribute of movddup insn to DF.
13415         (*vec_interleave_lowv2df): Ditto.
13416         (vec_dupv2df): Ditto.
13417
13418 2013-01-09  Jan Hubicka  <jh@suse.cz>
13419
13420         PR tree-optimiation/55875
13421         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
13422         EVERY_ITERATION parameter.
13423         (number_of_iterations_exit): Check if exit is executed every iteration.
13424         (idx_infer_loop_bounds): Similarly here.
13425         (n_of_executions_at_most): Simplify
13426         to only test for cases where statement is dominated by the
13427         particular bound; handle correctly the "postdominance" test.
13428         (scev_probably_wraps_p): Use max loop iterations info
13429         as a global bound first.
13430
13431 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
13432             Nick Clifton  <nickc@redhat.com>
13433
13434         * config/v850/v850.md (cbranchsf4): New pattern.
13435         (cstoresf4): New pattern.
13436         (cbranchdf4): New pattern.
13437         (cstoredf4): New pattern.
13438         (movsicc): Disallow floating point comparisons.
13439         (cmpsf_le_insn): Fix order of operators.
13440         (cmpsf_lt_insn): Likewise.
13441         (cmpsf_eq_insn): Likewise.
13442         (cmpdf_le_insn): Likewise.
13443         (cmpdf_lt_insn): Likewise.
13444         (cmpdf_eq_insn): Likewise.
13445         (cmpsf_ge_insn): Use LE comparison.
13446         (cmpdf_ge_insn): Likewise.
13447         (cmpsf_gt_insn): Use LT comparison.
13448         (cmpdf_gt_insn): Likewise.
13449         (cmpsf_ne_insn): Delete pattern.
13450         (cmpdf_ne_insn): Delete pattern.
13451         * config/v850/v850.c (v850_gen_float_compare): Use
13452         gen_cmpdf_eq_insn for NE comparison.
13453         (v850_float_z_comparison_operator)
13454         (v850_float_nz_comparison_operator): Move from here ...
13455         * config/v850/predicates.md: ... to here.  Move GT and GE
13456         comparisons into v850_float_z_comparison_operator.
13457         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
13458         Delete prototype.
13459         (v850_float_nz_comparison_operator): Likewise.
13460
13461 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13462
13463         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
13464         with calls to gen_insvsi/gen_insvdi.
13465
13466 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
13467
13468         * config/i386/i386.c (initial_ix86_tune_features): Set up
13469         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
13470
13471 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
13472             Jakub Jelinek  <jakub@redhat.com>
13473
13474         PR tree-optimization/48189
13475         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
13476         If nitercst is 0, don't predict the exit edge.
13477
13478 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
13479
13480         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
13481         in asm_fprintf with reg_names.
13482         (aarch64_print_operand_address): Likewise.
13483         (aarch64_return_addr): Likewise.
13484         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
13485
13486 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13487
13488         * config/pa/pa.h (VAL_U6_BITS_P): Define.
13489         (INT_U6_BITS): Likewise.
13490         * config/pa/predicates.md (uint6_operand): New predicate.
13491         (shift5_operand, shift6_operand): Likewise.
13492         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
13493         arith32_operand.
13494         (lshrdi3): Use shift6_operand.
13495         (shrpsi4, shrpdi4): New insn patterns.
13496         (extzv): Delete expander.
13497         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
13498         predicates in unamed zero extract patterns.  Tighten common constraint.
13499         (extv): Delete expander.
13500         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
13501         predicates in unamed sign extract patterns.  Tighten common constraint.
13502         (insv): Delete expander.
13503         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
13504         predicates in unamed insert patterns.  Tighten common constraint.
13505         Change uint32_operand predicate to uint6_operand predicate in unamed
13506         DImode pattern to insert constant values of type 1...1xxxx.
13507
13508 2013-01-04  Jan Hubicka  <jh@suse.cz>
13509
13510         PR tree-optimization/55823
13511         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
13512         issue.
13513
13514 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
13515             Uros Bizjak  <ubizjak@gmail.com>
13516
13517         PR rtl-optimization/55845
13518         * df-problems.c (can_move_insns_across): Stop scanning at
13519         volatile_insn_p source instruction or give up if
13520         across_from .. across_to range contains any volatile_insn_p
13521         instructions.
13522
13523 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
13524
13525         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
13526         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
13527         Declare.
13528         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
13529         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
13530
13531 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
13532
13533         PR fortran/55341
13534         * asan.c (asan_clear_shadow): New function.
13535         (asan_emit_stack_protection): Use it.
13536
13537 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
13538
13539         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
13540         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
13541         with tab instead of space.
13542
13543 2013-01-08  Nick Clifton  <nickc@redhat.com>
13544
13545         * config/rl78/rl78.c (rl78_expand_prologue): Always select
13546         register bank 0 at the start of an interrupt handler.
13547         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
13548         MDBH registers.
13549
13550 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
13551
13552         * config/aarch64/aarch64-simd.md
13553         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
13554         (aarch64_simd_bsl): Likewise.
13555         (aarch64_vcond_internal<mode>): Likewise.
13556         (vcond<mode><mode>): Likewise.
13557         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
13558         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
13559
13560 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
13561
13562         * config/aarch64/aarch64-builtins.c
13563         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
13564
13565 2013-01-08  Martin Jambor  <mjambor@suse.cz>
13566
13567         PR debug/55579
13568         * tree-sra.c (analyze_access_subtree): Return true also after
13569         potentially creating a debug-only replacement.
13570
13571 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
13572
13573         PR middle-end/55890
13574         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
13575
13576         PR tree-optimization/54120
13577         * tree-vrp.c (range_fits_type_p): Don't allow
13578         src_precision < precision from signed vr to unsigned_p
13579         if vr->min or vr->max is negative.
13580         (simplify_float_conversion_using_ranges): Test can_float_p
13581         against CODE_FOR_nothing.
13582
13583 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
13584             Richard Biener  <rguenther@suse.de>
13585
13586         PR middle-end/55851
13587         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
13588         types instead of just INTEGER_TYPE types.
13589
13590 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
13591
13592         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
13593         TF_SIZE): Define.
13594
13595 2013-01-07  Steve Ellcey  <sellcey@mips.com>
13596
13597         PR target/42661
13598         * config/mips/mips.opt: Change mad to mmad to match documentation.
13599
13600 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
13601
13602         PR target/55897
13603         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
13604         .progmemx.data now.
13605
13606 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
13607
13608         PR target/55897
13609         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
13610         (avr_addrspace_t): Add .section_name field.
13611         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
13612         array size.
13613         (avr_addrspace): Same.  Initialize .section_name.  Remove last
13614         NULL entry.  Put __memx into .progmemx.data.
13615         (progmem_section_prefix): Remove.
13616         (avr_asm_init_sections): No need to initialize progmem_section.
13617         (avr_asm_named_section): Use avr_addrspace[].section_name to get
13618         section name prefix.
13619         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
13620         retrieve the progmem section.
13621         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
13622         boundary to run over avr_addrspace[].
13623         (avr_register_target_pragmas): Ditto.
13624
13625 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
13626
13627         * varasm.c (output_constant_def_contents): For asan_protect_global
13628         protected strings, adjust DECL_ALIGN if needed, before testing for
13629         anchored symbols.
13630         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
13631         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
13632         normal decls.
13633         (output_object_block): For asan protected decls, emit asan padding
13634         after their contents.
13635         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
13636         (asan_finish_file): Test it here instead.
13637
13638 2013-01-07  Nick Clifton  <nickc@redhat.com>
13639             Matthias Klose  <doko@debian.org>
13640             Doug Kwan  <dougkwan@google.com>
13641             H.J. Lu  <hongjiu.lu@intel.com>
13642
13643         PR driver/55470
13644         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
13645
13646         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
13647
13648         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
13649
13650         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
13651
13652         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
13653
13654 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
13655
13656         PR target/54461
13657         * doc/install.texi (Cross-Compiler-Specific Options): Document
13658         --with-avrlibc.
13659
13660 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
13661
13662         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
13663         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
13664         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
13665         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
13666         vqmovun_high_s64): Fix source operand number and update copyright.
13667
13668 2013-01-07  Richard Biener  <rguenther@suse.de>
13669
13670         PR middle-end/55890
13671         * gimple.h (gimple_call_builtin_p): New overload.
13672         * gimple.c (validate_call): New function.
13673         (gimple_call_builtin_p): Likewise.
13674         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
13675         Use gimple_call_builtin_p.
13676         (find_func_clobbers): Likewise.
13677         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
13678         (strlen_optimize_stmt): Likewise.
13679
13680 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
13681
13682         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
13683         (vld1q_dup_*): Likewise.
13684         (vld1_*): Likewise.
13685         (vld1q_*): Likewise.
13686         (vld1_lane_*): Likewise.
13687         (vld1q_lane_*): Likewise.
13688
13689 2013-01-07  Richard Biener  <rguenther@suse.de>
13690
13691         * lto-streamer.h (LTO_minor_version): Bump to 2.
13692
13693 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
13694
13695         * config/aarch64/aarch64-protos.h
13696         (aarch64_const_double_zero_rtx_p): Rename to...
13697         (aarch64_float_const_zero_rtx_p): ...this.
13698         (aarch64_float_const_representable_p): New.
13699         (aarch64_output_simd_mov_immediate): Likewise.
13700         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
13701         move immediate case.
13702         * config/aarch64/aarch64.c
13703         (aarch64_const_double_zero_rtx_p): Rename to...
13704         (aarch64_float_const_zero_rtx_p): ...this.
13705         (aarch64_print_operand): Allow printing of new constants.
13706         (aarch64_valid_floating_const): New.
13707         (aarch64_legitimate_constant_p): Check for valid floating-point
13708         constants.
13709         (aarch64_simd_valid_immediate): Likewise.
13710         (aarch64_vect_float_const_representable_p): New.
13711         (aarch64_float_const_representable_p): Likewise.
13712         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
13713         (aarch64_output_simd_mov_immediate): New.
13714         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
13715         (*movdf_aarch64): Likewise.
13716         * config/aarch64/constraints.md (Ufc): New.
13717         (Y): call aarch64_float_const_zero_rtx.
13718         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
13719
13720 2013-01-07  Richard Biener  <rguenther@suse.de>
13721
13722         PR tree-optimization/55888
13723         PR tree-optimization/55862
13724         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
13725         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
13726         not if it is contained therein.
13727
13728 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
13729
13730         * config/avr/t-avr: Typo.
13731
13732 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
13733
13734         PR55243
13735         * config/avr/t-avr: Don't automatically rebuild
13736         $(srcdir)/config/avr/t-multilib
13737         $(srcdir)/config/avr/avr-tables.opt
13738         $(srcdir)/doc/avr-mmcu.texi
13739         (avr-mcus): New phony target to build them on request.
13740         (s-avr-mlib, s-avr-mmcu-texi): Remove.
13741         * avr/avr-mcus.def: Adjust comments.
13742
13743 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
13744
13745         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
13746
13747 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
13748
13749         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
13750
13751 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
13752
13753         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
13754
13755 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
13756
13757         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
13758         to generate profiling.
13759         * config/rs6000/aix64.h (LIB_SPEC): Same.
13760
13761 2013-01-04  Andrew Pinski  <apinski@cavium.com>
13762
13763         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
13764         New function.
13765         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
13766
13767 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
13768
13769         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
13770         unconditionally.
13771         (ix86_expand_move): Ditto.
13772         (ix86_zero_extend_to_Pmode): Ditto.
13773         (ix86_expand_call): Ditto.
13774         (ix86_expand_special_args_builtin): Ditto.
13775         (ix86_expand_builtin): Ditto.
13776
13777 2013-01-04  Richard Biener  <rguenther@suse.de>
13778
13779         PR tree-optimization/55862
13780         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
13781         translating them through PHI nodes.
13782
13783 2013-01-04  Martin Jambor  <mjambor@suse.cz>
13784
13785         PR tree-optimization/55755
13786         * tree-sra.c (sra_modify_assign): Do not check that an access has no
13787         children when trying to avoid producing a VIEW_CONVERT_EXPR.
13788
13789 2013-01-04  Marek Polacek  <polacek@redhat.com>
13790
13791         PR middle-end/55859
13792         * opts.c (default_options_optimization): Clarify error message.
13793
13794 2013-01-04  Richard Biener  <rguenther@suse.de>
13795
13796         PR middle-end/55863
13797         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
13798         reassociation.
13799
13800 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13801
13802         PR target/53789
13803         * config/pa/pa.md (movsi): Revert previous change.
13804         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
13805         references.
13806
13807 2013-01-03  Richard Henderson  <rth@redhat.com>
13808
13809         * config/i386/i386.c (ix86_expand_move): Always assign to op1
13810         after eliminating TLS symbols.
13811
13812 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
13813
13814         PR bootstrap/50167
13815         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
13816         * graphite-poly.c (debug_gmp_value): Likewise.
13817
13818 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
13819
13820         PR target/55712
13821         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
13822         selected code model, define __code_mode_small__, __code_model_medium__,
13823         __code_model_large__, __code_model_32__ or __code_model_kernel__.
13824         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
13825         xchg temporary register with %k.  Declare temporary register as
13826         early clobbered.
13827         [__x86_64__]: For medium and large code models, preserve %rbx register.
13828
13829 2013-01-03  Richard Biener  <rguenther@suse.de>
13830
13831         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
13832         (dump_subscript): Adjust.
13833         (finalize_ddr_dependent): Do not dump redundant info.
13834         (analyze_siv_subscript): Adjust.
13835         (subscript_dependence_tester): Likewise.
13836         (compute_affine_dependence): Likewise.
13837
13838 2013-01-03  Richard Biener  <rguenther@suse.de>
13839
13840         Revert
13841         2013-01-03  Richard Biener  <rguenther@suse.de>
13842
13843         PR tree-optimization/55857
13844         * tree-vect-stmts.c (vectorizable_load): Do not setup
13845         re-alignment for invariant loads.
13846
13847         2013-01-02  Richard Biener  <rguenther@suse.de>
13848
13849         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
13850         invariant load do not generate a vector load from the scalar location.
13851
13852 2013-01-03  Richard Biener  <rguenther@suse.de>
13853
13854         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
13855         for not vectorizing.
13856         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
13857         not build INDIRECT_REFs, call get_name once only.
13858         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
13859         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
13860
13861 2013-01-03  Richard Biener  <rguenther@suse.de>
13862
13863         PR tree-optimization/55857
13864         * tree-vect-stmts.c (vectorizable_load): Do not setup
13865         re-alignment for invariant loads.
13866
13867 2013-01-03  Richard Biener  <rguenther@suse.de>
13868
13869         PR lto/55848
13870         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
13871         prefer a built-in decl.
13872
13873 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
13874
13875         * gcc.c (process_command): Update copyright notice dates.
13876         * gcov.c (print_version): Likewise.
13877         * gcov-dump.c (print_version): Likewise.
13878
13879         PR rtl-optimization/55838
13880         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
13881         iv0.step, iv1.step and step.
13882
13883 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
13884             Marc Glisse  <marc.glisse@inria.fr>
13885
13886         PR tree-optimization/55832
13887         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
13888         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
13889         integer_{one,zero}_node.
13890
13891 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
13892
13893         PR debug/54402
13894         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
13895         * var-tracking.c (reverse_op): Don't add reverse ops to
13896         VALUEs that have already
13897         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
13898
13899 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
13900
13901         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
13902
13903 2013-01-02  Teresa Johnson  <tejohnson@google.com>
13904
13905         * dumpfile.c (dump_loc): Print filename with location.
13906         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
13907         new location_t parameter to emit complete unroll message with
13908         new dump framework.
13909         (canonicalize_loop_induction_variables): Compute loops location
13910         and pass to try_unroll_loop_completely.
13911         * loop-unroll.c (report_unroll_peel): New function.
13912         (peel_loops_completely): Use new dump format with location
13913         for main dumpfile message, and invoke report_unroll_peel on success.
13914         (decide_unrolling_and_peeling): Ditto.
13915         (decide_peel_once_rolling): Remove old dumpfile message subsumed
13916         by report_unroll_peel.
13917         (decide_peel_completely): Ditto.
13918         (decide_unroll_constant_iterations): Ditto.
13919         (decide_unroll_runtime_iterations): Ditto.
13920         (decide_peel_simple): Ditto.
13921         (decide_unroll_stupid): Ditto.
13922         * cfgloop.c (get_loop_location): New function.
13923         * cfgloop.h (get_loop_location): Declare.
13924
13925 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
13926
13927         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
13928         NULL.
13929
13930 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13931
13932         PR middle-end/55198
13933         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
13934         BLKmode objects when EXPAND_MEMORY is specified.
13935
13936 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
13937
13938         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
13939         in loop predicate.
13940         (fold_builtin_cpu): Do not share cpu model decls across statements.
13941
13942 2013-01-02  Jason Merrill  <jason@redhat.com>
13943
13944         PR c++/55804
13945         * tree.c (build_array_type_1): Revert earlier change.
13946
13947 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
13948
13949         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
13950         "cortex-a57".
13951         * config/aarch64/aarch64-tune.md: Re-generate.
13952
13953 2013-01-02  Richard Biener  <rguenther@suse.de>
13954
13955         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
13956         invariant load do not generate a vector load from the scalar location.
13957
13958 2013-01-02  Richard Biener  <rguenther@suse.de>
13959
13960         PR bootstrap/55784
13961         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
13962         * configure: Regenerate.
13963
13964 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
13965
13966         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
13967         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
13968         (expand_builtin_int_roundingfn_2): Keep the original target around
13969         for the fallback case.
13970
13971 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
13972
13973         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
13974         to be clear for sign changes.
13975
13976 2013-01-01  Jan Hubicka  <jh@suse.cz>
13977
13978         * ipa-inline-analysis.c: Fix formatting.
13979
13980 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
13981
13982         PR tree-optimization/55831
13983         * tree-vect-loop.c (get_initial_def_for_induction): Use
13984         gsi_after_labels instead of gsi_start_bb.
13985 \f
13986 Copyright (C) 2013 Free Software Foundation, Inc.
13987
13988 Copying and distribution of this file, with or without modification,
13989 are permitted in any medium without royalty provided the copyright
13990 notice and this notice are preserved.