s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save and cfun_fpr_bit_p to cfun_fpr_s...
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2
3         * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
4         and cfun_fpr_bit_p to cfun_fpr_save_p.
5         (s390_frame_area, s390_register_info, s390_frame_info)
6         (s390_emit_prologue, s390_emit_epilogue)
7         (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
8         register numbers.
9         * config/s390/s390.h: Define *_REGNUM macros for floating point
10         register numbers.
11
12 2013-07-08  Eric Botcazou  <ebotcazou@adacore.com>
13
14         * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
15
16 2013-07-08  Po-Chun Chang  <pchang9@cs.wisc.edu>
17
18         PR rtl-optimization/57786
19         * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
20         and break out of the loop when it is set to false.
21
22 2013-07-08  Jakub Jelinek  <jakub@redhat.com>
23
24         PR target/57819
25         * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
26         Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
27         (const_int 63)) 0)).
28         * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
29         using simplify_gen_unary instead of gen_rtx_*_EXTEND.
30         * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
31
32         PR rtl-optimization/57829
33         * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
34         mask bits outside of mode are just sign-extension from mode to HWI.
35
36 2013-07-08  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
37
38         * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
39         * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
40         adjust_address instead of change_address to keep info about alignment.
41         (emit_strmov): Remove.
42         (emit_memmov): New function.
43         (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
44         (expand_movmem_epilogue): Likewise and return updated rtx for
45         destination.
46         (expand_constant_movmem_prologue): Likewise and return updated rtx for
47         destination and source.
48         (decide_alignment): Refactor, handle vector_loop.
49         (ix86_expand_movmem): Likewise.
50         (ix86_expand_setmem): Likewise.
51         * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
52
53 2013-07-07  Uros Bizjak  <ubizjak@gmail.com>
54
55         * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
56         signature_TM2_ebx, it interferes with signature_INTEL_ebx.
57
58 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
59
60         * config/i386/sse.md (sse_movlhps): Change alternative 3
61         of operand 2 to "m".
62
63 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
64
65         PR target/57807
66         * config/i386/sse.md (iptr): New mode attribute.
67         (sse2_movq128): Add pointer size overrides for Intel asm dialect.
68         (<sse>_vm<plusminus_insn><mode>3): Ditto.
69         (<sse>_vmmul<mode>3): Ditto.
70         (<sse>_vmdiv<mode>3): Ditto.
71         (sse_vmrcpv4sf2): Ditto.
72         (<sse>_vmsqrt<mode>2): Ditto.
73         (sse_vmrsqrtv4sf2): Ditto.
74         (<sse>_vm<code><mode>3): Ditto.
75         (avx_vmcmp<mode>3): Ditto.
76         (<sse>_vmmaskcmp<mode>3): Ditto.
77         (<sse>_comi): Ditto.
78         (<sse>_ucomi): Ditto.
79         (*xop_vmfrcz_<mode>): Ditto.
80         (*fmai_fmadd_<mode>): Ditto.
81         (*fmai_fmsub_<mode>): Ditto.
82         (*fmai_fnmadd_<mode>): Ditto.
83         (*fmai_fnmsub_<mode>): Ditto.
84         (*fma4i_vmfmadd_<mode>): Ditto.
85         (*fma4i_vmfmsub_<mode>): Ditto.
86         (*fma4i_vmfnmadd_<mode>): Ditto.
87         (*fma4i_vmfnmsub_<mode>): Ditto.
88         (*xop_vmfrcz_<mode>): Ditto.
89         (sse_cvtps2pi): Ditto.
90         (sse_cvttps2pi): Ditto.
91         (sse_cvtss2si): Ditto.
92         (sse_cvtss2si_2): Ditto.
93         (sse_cvtss2siq_2): Ditto.
94         (sse_cvttss2si): Ditto.
95         (sse_cvttss2siq): Ditto.
96         (sse_cvtsd2si): Ditto.
97         (sse_cvtsd2si_2): Ditto.
98         (sse_cvtsd2siq_2): Ditto.
99         (sse_cvttsd2si): Ditto.
100         (sse_cvttsd2siq): Ditto.
101         (sse_cvtsd2ss): Ditto.
102         (sse_cvtss2sd): Ditto.
103         (avx2_pbroadcast<mode>): Ditto.
104         (avx2_pbroadcast<mode>_1): Ditto.
105         (*avx_vperm_broadcast_v4sf): Ditto.
106
107         (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
108         (sse_movlhps): Ditto.
109         (sse_storehps): Ditto.
110         (sse_loadhps): Ditto.
111         (sse_storelps): Ditto.
112         (sse_loadlps): Ditto.
113         (*vec_concatv4sf): Ditto.
114         (*vec_interleave_highv2df): Ditto.
115         (*vec_interleave_lowv2df): Ditto.
116         (*vec_extractv2df_1_sse): Ditto.
117         (*vec_extractv2df_0_sse): Ditto.
118         (sse2_storelpd): Ditto.
119         (sse2_loadlpd): Ditto.
120         (sse2_movsd): Ditto.
121         (*vec_concatv4si): Ditto.
122         (vec_concatv2di): Ditto.
123
124         * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
125         for Intel asm dialect.
126         (mmx_punpcklwd): Ditto.
127         (mmx_punpckldq): Ditto.
128
129         * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
130         for intel assembler dialect.
131
132 2013-07-06  Jakub Jelinek  <jakub@redhat.com>
133
134         PR target/29776
135         * fold-const.c (tree_call_nonnegative_warnv_p): Return true
136         for BUILT_IN_C{LZ,LRSB}*.
137         * tree.h (CASE_INT_FN): Add FN##IMAX case.
138         * tree-vrp.c (extract_range_basic): Handle
139         BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*.  For
140         BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
141         fall thru to code calling set_value*.
142         * builtins.c (expand_builtin): Remove *IMAX cases.
143         (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
144         if width is bigger than 2*HWI.
145
146 2013-07-05  Vladimir Makarov  <vmakarov@redhat.com>
147
148         PR rtl-optimization/55342
149         * lra-int.h (lra_subreg_reload_pseudos): New.
150         * lra.c: Add undoing optional reloads to the block diagram.
151         (lra_subreg_reload_pseudos): New.
152         (lra_optional_reload_pseudos): Change comments.
153         (lra): Init and clear lra_subreg_reload_pseudos.  Clear
154         lra_optional_reload_pseudos after undo transformations.
155         * lra-assigns.c (pseudo_prefix_title): New.
156         (lra_setup_reg_renumber): Use it.
157         (spill_for): Ditto.  Check subreg reload pseudos too.
158         (assign_by_spills): Consider subreg reload pseudos too.
159         * lra-constraints.c (simplify_operand_subreg): Use
160         lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
161         (curr_insn_transform): Recognize and do optional reloads.
162         (undo_optional_reloads): New.
163         (lra_undo_inheritance): Call undo_optional_reloads.
164
165 2013-07-05  Thomas Quinot  <quinot@adacore.com>
166
167         * tree-complex.c (expand_complex_operations_1): Fix typo.
168
169 2013-07-04  Tejas Belagod  <tejas.belagod@arm.com>
170
171         * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
172         (tune_params): New member 'const vec_costs'.
173         * config/aarch64/aarch64.c (generic_vector_cost): New.
174         (generic_tunings): New member 'generic_vector_cost'.
175         (aarch64_builtin_vectorization_cost): New.
176         (aarch64_add_stmt_cost): New.
177         (TARGET_VECTORIZE_ADD_STMT_COST): New.
178         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
179
180 2013-07-03  Jakub Jelinek  <jakub@redhat.com>
181
182         PR target/57777
183         * config/i386/predicates.md (vsib_address_operand): Disallow
184         SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
185
186 2013-07-03  Hans-Peter Nilsson  <hp@bitrange.com>
187
188         PR middle-end/55030
189         * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
190         expand_builtin_setjmp_receiver.
191         (expand_label): Adjust, call expand_builtin_setjmp_receiver
192         with NULL for the label parameter.
193         * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
194         the frame-pointer.  Adjust comments.
195         [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
196         only if LABEL is non-NULL.
197
198 2013-07-03  Yufeng Zhang  <yufeng.zhang@arm.com>
199
200         * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
201         (ARM_ABI_AAPCS64): Ditto.
202         (arm_abi): Ditto.
203         (ARM_DEFAULT_ABI): Ditto.
204
205 2013-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
206
207         * config/aarch64/aarch64-builtins.c
208         (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
209         * config/aarch64/aarch64-simd-builtins.def (ld1): New.
210         (st1): Likewise.
211         * config/aarch64/aarch64-simd.md
212         (aarch64_ld1<VALL:mode>): New.
213         (aarch64_st1<VALL:mode>): Likewise.
214         * config/aarch64/arm_neon.h
215         (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
216
217 2013-07-02  Sriraman Tallam  <tmsriram@google.com>
218
219         * config/i386/i386.c (gate_insert_vzeroupper): Check if
220         target ISA is AVX.
221         (ix86_option_override_internal):Turn on all -mavx target flags by
222         default as they are dependent on AVX anyway.
223
224 2013-07-02  Cary Coutant  <ccoutant@google.com>
225
226         * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
227         deterministic hash.
228         (loc_checksum_ordered): Likewise.
229         (hash_loc_operands): Remove inline keyword.
230
231 2013-07-02  Jakub Jelinek  <jakub@redhat.com>
232
233         PR tree-optimization/57741
234         * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
235         non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
236         or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
237         Allow REAL_CST step_exprs if flag_associative_math.
238         (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
239
240 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
241
242         * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
243
244 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
245
246         * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
247
248 2013-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
249
250         * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
251         encoding.
252         (iorsi3_insn): Likewise.
253         (arm_xorsi3): Likewise.
254
255 2013-07-01  Sofiane Naci  <sofiane.naci@arm.com>
256
257         * arm.md (attribute "wtype"): Delete.  Move attribute values from here
258         to ...
259         (attribute "type"): ... here, and prefix with "wmmx_".
260         (attribute "core_cycles"): Update for attribute changes.
261         * iwmmxt.md (tbcstv8qi): Update for attribute changes.
262         (tbcstv4hi): Likewise.
263         (tbcstv2si): Likewise.
264         (iwmmxt_iordi3): Likewise.
265         (iwmmxt_xordi3): Likewise.
266         (iwmmxt_anddi3): Likewise.
267         (iwmmxt_nanddi3): Likewise.
268         (iwmmxt_arm_movdi): Likewise.
269         (iwmmxt_movsi_insn): Likewise.
270         (mov<mode>_internal): Likewise.
271         (and<mode>3_iwmmxt): Likewise.
272         (ior<mode>3_iwmmxt): Likewise.
273         (xor<mode>3_iwmmxt): Likewise.
274         (add<mode>3_iwmmxt): Likewise.
275         (ssaddv8qi3): Likewise.
276         (ssaddv4hi3): Likewise.
277         (ssaddv2si3): Likewise.
278         (usaddv8qi3): Likewise.
279         (usaddv4hi3): Likewise.
280         (usaddv2si3): Likewise.
281         (sub<mode>3_iwmmxt): Likewise.
282         (sssubv8qi3): Likewise.
283         (sssubv4hi3): Likewise.
284         (sssubv2si3): Likewise.
285         (ussubv8qi3): Likewise.
286         (ussubv4hi3): Likewise.
287         (ussubv2si3): Likewise.
288         (mulv4hi3_iwmmxt): Likewise.
289         (smulv4hi3_highpart): Likewise.
290         (umulv4hi3_highpart): Likewise.
291         (iwmmxt_wmacs): Likewise.
292         (iwmmxt_wmacsz): Likewise.
293         (iwmmxt_wmacu): Likewise.
294         (iwmmxt_wmacuz): Likewise.
295         (iwmmxt_clrdi): Likewise.
296         (iwmmxt_clrv8qi): Likewise.
297         (iwmmxt_clr4hi): Likewise.
298         (iwmmxt_clr2si): Likewise.
299         (iwmmxt_uavgrndv8qi3): Likewise.
300         (iwmmxt_uavgrndv4hi3): Likewise.
301         (iwmmxt_uavgv8qi3): Likewise.
302         (iwmmxt_uavgv4hi3): Likewise.
303         (iwmmxt_tinsrb): Likewise.
304         (iwmmxt_tinsrh): Likewise.
305         (iwmmxt_tinsrw): Likewise.
306         (iwmmxt_textrmub): Likewise.
307         (iwmmxt_textrmsb): Likewise.
308         (iwmmxt_textrmuh): Likewise.
309         (iwmmxt_textrmsh): Likewise.
310         (iwmmxt_textrmw): Likewise.
311         (iwmxxt_wshufh): Likewise.
312         (eqv8qi3): Likewise.
313         (eqv4hi3): Likewise.
314         (eqv2si3): Likewise.
315         (gtuv8qi3): Likewise.
316         (gtuv4hi3): Likewise.
317         (gtuv2si3): Likewise.
318         (gtv8qi3): Likewise.
319         (gtv4hi3): Likewise.
320         (gtv2si3): Likewise.
321         (smax<mode>3_iwmmxt): Likewise.
322         (umax<mode>3_iwmmxt): Likewise.
323         (smin<mode>3_iwmmxt): Likewise.
324         (umin<mode>3_iwmmxt): Likewise.
325         (iwmmxt_wpackhss): Likewise.
326         (iwmmxt_wpackwss): Likewise.
327         (iwmmxt_wpackdss): Likewise.
328         (iwmmxt_wpackhus): Likewise.
329         (iwmmxt_wpackwus): Likewise.
330         (iwmmxt_wpackdus): Likewise.
331         (iwmmxt_wunpckihb): Likewise.
332         (iwmmxt_wunpckihh): Likewise.
333         (iwmmxt_wunpckihw): Likewise.
334         (iwmmxt_wunpckilb): Likewise.
335         (iwmmxt_wunpckilh): Likewise.
336         (iwmmxt_wunpckilw): Likewise.
337         (iwmmxt_wunpckehub): Likewise.
338         (iwmmxt_wunpckehuh): Likewise.
339         (iwmmxt_wunpckehuw): Likewise.
340         (iwmmxt_wunpckehsb): Likewise.
341         (iwmmxt_wunpckehsh): Likewise.
342         (iwmmxt_wunpckehsw): Likewise.
343         (iwmmxt_wunpckelub): Likewise.
344         (iwmmxt_wunpckeluh): Likewise.
345         (iwmmxt_wunpckeluw): Likewise.
346         (iwmmxt_wunpckelsb): Likewise.
347         (iwmmxt_wunpckelsh): Likewise.
348         (iwmmxt_wunpckelsw): Likewise.
349         (ror<mode>3): Likewise.
350         (ashr<mode>3_iwmmxt): Likewise.
351         (lshr<mode>3_iwmmxt): Likewise.
352         (ashl<mode>3_iwmmxt): Likewise.
353         (ror<mode>3_di): Likewise.
354         (ashr<mode>3_di): Likewise.
355         (lshr<mode>3_di): Likewise.
356         (ashl<mode>3_di): Likewise.
357         (iwmmxt_wmadds): Likewise.
358         (iwmmxt_wmaddu): Likewise.
359         (iwmmxt_tmia): Likewise.
360         (iwmmxt_tmiaph): Likewise.
361         (iwmmxt_tmiabb): Likewise.
362         (iwmmxt_tmiatb): Likewise.
363         (iwmmxt_tmiabt): Likewise.
364         (iwmmxt_tmiatt): Likewise.
365         (iwmmxt_tmovmskb): Likewise.
366         (iwmmxt_tmovmskh): Likewise.
367         (iwmmxt_tmovmskw): Likewise.
368         (iwmmxt_waccb): Likewise.
369         (iwmmxt_wacch): Likewise.
370         (iwmmxt_waccw): Likewise.
371         (iwmmxt_waligni): Likewise.
372         (iwmmxt_walignr): Likewise.
373         (iwmmxt_walignr0): Likewise.
374         (iwmmxt_walignr1): Likewise.
375         (iwmmxt_walignr2): Likewise.
376         (iwmmxt_walignr3): Likewise.
377         (iwmmxt_wsadb): Likewise.
378         (iwmmxt_wsadh): Likewise.
379         (iwmmxt_wsadbz): Likewise.
380         (iwmmxt_wsadhz): Likewise.
381         * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
382         (iwmmxt_wabsdiffb): Likewise.
383         (iwmmxt_wabsdiffh): Likewise.
384         (iwmmxt_wabsdiffw): Likewise.
385         (iwmmxt_waddsubhx): Likewise
386         (iwmmxt_wsubaddhx): Likewise.
387         (addc<mode>3): Likewise.
388         (iwmmxt_avg4): Likewise.
389         (iwmmxt_avg4r): Likewise.
390         (iwmmxt_wmaddsx): Likewise.
391         (iwmmxt_wmaddux): Likewise.
392         (iwmmxt_wmaddsn): Likewise.
393         (iwmmxt_wmaddun): Likewise.
394         (iwmmxt_wmulwsm): Likewise.
395         (iwmmxt_wmulwum): Likewise.
396         (iwmmxt_wmulsmr): Likewise.
397         (iwmmxt_wmulumr): Likewise.
398         (iwmmxt_wmulwsmr): Likewise.
399         (iwmmxt_wmulwumr): Likewise.
400         (iwmmxt_wmulwl): Likewise.
401         (iwmmxt_wqmulm): Likewise.
402         (iwmmxt_wqmulwm): Likewise.
403         (iwmmxt_wqmulmr): Likewise.
404         (iwmmxt_wqmulwmr): Likewise.
405         (iwmmxt_waddbhusm): Likewise.
406         (iwmmxt_waddbhusl): Likewise.
407         (iwmmxt_wqmiabb): Likewise.
408         (iwmmxt_wqmiabt): Likewise.
409         (iwmmxt_wqmiatb): Likewise.
410         (iwmmxt_wqmiatt): Likewise.
411         (iwmmxt_wqmiabbn): Likewise.
412         (iwmmxt_wqmiabtn): Likewise.
413         (iwmmxt_wqmiatbn): Likewise.
414         (iwmmxt_wqmiattn): Likewise.
415         (iwmmxt_wmiabb): Likewise.
416         (iwmmxt_wmiabt): Likewise.
417         (iwmmxt_wmiatb): Likewise.
418         (iwmmxt_wmiatt): Likewise.
419         (iwmmxt_wmiabbn): Likewise.
420         (iwmmxt_wmiabtn): Likewise.
421         (iwmmxt_wmiatbn): Likewise.
422         (iwmmxt_wmiattn): Likewise.
423         (iwmmxt_wmiawbb): Likewise.
424         (iwmmxt_wmiawbt): Likewise.
425         (iwmmxt_wmiawtb): Likewise.
426         (iwmmxt_wmiawtt): Likewise.
427         (iwmmxt_wmiawbbn): Likewise.
428         (iwmmxt_wmiawbtn): Likewise.
429         (iwmmxt_wmiawtbn): Likewise.
430         (iwmmxt_wmiawttn): Likewise.
431         (iwmmxt_wmerge): Likewise.
432         (iwmmxt_tandc<mode>3): Likewise.
433         (iwmmxt_torc<mode>3): Likewise.
434         (iwmmxt_torvsc<mode>3): Likewise.
435         (iwmmxt_textrc<mode>3): Likewise.
436         * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
437         (wmmxt_pack): Likewise.
438         (wmmxt_mult_c1): Likewise.
439         (wmmxt_mult_c2): Likewise.
440         (wmmxt_alu_c1): Likewise.
441         (wmmxt_alu_c2): Likewise.
442         (wmmxt_alu_c3): Likewise.
443         (wmmxt_transfer_c1): Likewise.
444         (wmmxt_transfer_c2): Likewise.
445         (wmmxt_transfer_c3): Likewise.
446         (marvell_f_iwmmxt_wstr): Likewise.
447         (marvell_f_iwmmxt_wldr): Likewise.
448
449 2013-06-29  Yufeng Zhang  <yufeng.zhang@arm.com>
450
451         * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
452
453 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
454
455         Revert:
456         2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
457         * lra-constraints.c (need_for_split_p): Check call used hard regs
458         living through calls.
459
460         * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
461         call used regs for call insn.
462
463 2013-06-28  Jakub Jelinek  <jakub@redhat.com>
464
465         PR target/57736
466         * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
467         mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
468
469 2013-06-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
470
471         * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
472
473 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
474
475         * lra-constraints.c (need_for_split_p): Check call used hard regs
476         living through calls.
477
478 2013-06-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
479
480         PR target/57744
481         * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
482         to tie with any other modes.  Eliminate Altivec vector mode tests,
483         since these are a subset of ALTIVEC or VSX vector modes.  Simplify
484         code, to return 0 if testing MODE2 for a condition, if we've
485         already tested MODE1 for the same condition.
486
487 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
488
489         * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
490         layout.
491
492 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
493
494         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
495         Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
496
497 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
498
499         * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
500         Define.
501         (aarch64_symbolic_constant_p): Remove.
502         * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
503         static.  Fix line length and white space.
504         (aarch64_symbolic_constant_p): Remove.
505         * config/aarch64/predicates.md (aarch64_valid_symref):
506         Use aarch64_classify_symbol_expression.
507
508 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
509
510         * config/arm/constraints.md (Ts): New constraint.
511         * config/arm/arm.md (arm_movqi_insn): Add alternatives for
512         16-bit encodings.
513         (compare_scc): Use "Ts" constraint for operand 0.
514         (ior_scc_scc): Likewise.
515         (and_scc_scc): Likewise.
516         (and_scc_scc_nodom): Likewise.
517         (ior_scc_scc_cmp): Likewise for operand 7.
518         (and_scc_scc_cmp): Likewise.
519         * config/arm/thumb2.md (thumb2_movsi_insn):
520         Add alternatives for 16-bit encodings.
521         (thumb2_movhi_insn): Likewise.
522         (thumb2_movsicc_insn): Likewise.
523         (thumb2_and_scc): Take 'and' outside cond_exec.  Use "Ts" constraint.
524         (thumb2_negscc): Use "Ts" constraint.
525         Move mvn instruction outside cond_exec block.
526         * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
527         for 16-bit encodings.
528
529 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
530
531         * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
532         encoding.
533         (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
534         (mulsi3subsi): Likewise.
535         (mulsidi3adddi): Likewise.
536         (mulsidi3_v6): Likewise.
537         (umulsidi3_v6): Likewise.
538         (umulsidi3adddi_v6): Likewise.
539         (smulsi3_highpart_v6): Likewise.
540         (umulsi3_highpart_v6): Likewise.
541         (mulhisi3tb): Likewise.
542         (mulhisi3bt): Likewise.
543         (mulhisi3tt): Likewise.
544         (maddhisi4): Likewise.
545         (maddhisi4tb): Likewise.
546         (maddhisi4tt): Likewise.
547         (maddhidi4): Likewise.
548         (maddhidi4tb): Likewise.
549         (maddhidi4tt): Likewise.
550         (zeroextractsi_compare0_scratch): Likewise.
551         (insv_zero): Likewise.
552         (insv_t2): Likewise.
553         (anddi_notzesidi_di): Likewise.
554         (anddi_notsesidi_di): Likewise.
555         (andsi_notsi_si): Likewise.
556         (iordi_zesidi_di): Likewise.
557         (xordi_zesidi_di): Likewise.
558         (andsi_iorsi3_notsi): Likewise.
559         (smax_0): Likewise.
560         (smax_m1): Likewise.
561         (smin_0): Likewise.
562         (not_shiftsi): Likewise.
563         (unaligned_loadsi): Likewise.
564         (unaligned_loadhis): Likewise.
565         (unaligned_loadhiu): Likewise.
566         (unaligned_storesi): Likewise.
567         (unaligned_storehi): Likewise.
568         (extv_reg): Likewise.
569         (extzv_t2): Likewise.
570         (divsi3): Likewise.
571         (udivsi3): Likewise.
572         (arm_zero_extendhisi2addsi): Likewise.
573         (arm_zero_extendqisi2addsi): Likewise.
574         (compareqi_eq0): Likewise.
575         (arm_extendhisi2_v6): Likewise.
576         (arm_extendqisi2addsi): Likewise.
577         (arm_movt): Likewise.
578         (thumb2_ldrd): Likewise.
579         (thumb2_ldrd_base): Likewise.
580         (thumb2_ldrd_base_neg): Likewise.
581         (thumb2_strd): Likewise.
582         (thumb2_strd_base): Likewise.
583         (thumb2_strd_base_neg): Likewise.
584         (arm_negsi2): Add alternative for 16-bit encoding.
585         (arm_one_cmplsi2): Likewise.
586
587 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
588
589         * config/arm/predicates.md (arm_cond_move_operator): New predicate.
590         * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
591         (movdfcc): Likewise.
592         * config/arm/vfp.md (*thumb2_movsf_vfp):
593         Disable predication for arm_restrict_it.
594         (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
595         (*thumb2_movdfcc_vfp): Likewise.
596         (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
597         *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
598         *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
599         *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
600         *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
601         *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
602         *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
603         *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
604         *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
605         *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
606         *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
607         *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
608         Disable predication for arm_restrict_it.
609
610 2013-06-28  Kirill Yukhin  <kirill.yukhin@intel.com>
611
612         * config/i386/bmiintrin.h (_bextr_u32): New.
613         (_bextr_u64): Ditto.
614
615 2013-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
616
617         * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
618         (mips64r5900el-*-elf*): Include mips/n32-elf.h.
619         * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
620         (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
621         * config/mips/n32-elf.h: ...this new file.
622
623 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
624
625         PR target/57224
626         * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
627         IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
628
629 2013-06-27  Catherine Moore <clm@codesourcery.com>
630
631         * config/mips/mips-tables.opt: Regenerate.
632         * config/mips/mips-cpus.def: Add m14ke and m14kec.
633         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
634         * doc/invoke.texi: Add -m14kc.
635
636 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
637
638         PR target/57623
639         * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
640         constraints of operand 1 and 2.
641
642         PR target/57623
643         * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
644         to match RTL canonicalization.  Swap predicates and
645         constraints of operand 1 and 2.
646
647 2013-06-27  Vladimir Makarov  <vmakarov@redhat.com>
648
649         * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
650         Process OP_INOUT regs for splitting too.
651
652 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
653
654         * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
655         decl before the loop, initialize to NULL.
656         (vectorizable_load): Initialize ptr_incr to NULL.
657
658 2013-06-27  Martin Jambor  <mjambor@suse.cz>
659
660         PR lto/57208
661         * ipa-ref.h (ipa_maybe_record_reference): Declare.
662         * ipa-ref.c (ipa_maybe_record_reference): New function.
663         * cgraphclones.c (cgraph_create_virtual_clone): Use it.
664         * ipa-cp.c (create_specialized_node): Record potential references from
665         aggvals.
666         * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
667
668 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
669
670         * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
671         parameter 'mode' of type 'enum machine_mode mode'; change to pass
672         'mode' to force_reg.
673         (aarch64_add_offset): Update calls to aarch64_force_temporary.
674         (aarch64_expand_mov_immediate): Likewise.
675
676 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
677
678         * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
679         'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
680
681 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
682
683         * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
684         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
685         (struct machine_function): Add tbegin_p.
686         (s390_canonicalize_comparison): Fold CC mode compares to
687         conditional jump if possible.
688         (s390_emit_jump): Return the emitted jump.
689         (s390_branch_condition_mask, s390_branch_condition_mnemonic):
690         Handle CCRAWmode compares.
691         (s390_option_override): Default to -mhtm if available.
692         (s390_reg_clobbered_rtx): Handle floating point regs as well.
693         (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
694         FPRs instead of df_regs_ever_live_p.
695         (s390_optimize_nonescaping_tx): New function.
696         (s390_init_frame_layout): Extend clobbered_regs array to cover
697         FPRs as well.
698         (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
699         (s390_expand_tbegin): New function.
700         (enum s390_builtin): New enum definition.
701         (code_for_builtin): New array definition.
702         (s390_init_builtins): New function.
703         (s390_expand_builtin): New function.
704         (TARGET_INIT_BUILTINS): Define.
705         (TARGET_EXPAND_BUILTIN): Define.
706         * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
707         * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
708         (s390_alc_comparison): Likewise.
709         * config/s390/s390-modes.def: Add CCRAWmode.
710         * config/s390/s390.h (processor_flags): Add PF_TX.
711         (TARGET_CPU_HTM): Define macro.
712         (TARGET_HTM): Define macro.
713         (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
714         * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
715         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
716         (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
717         (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
718         (TBEGIN_MASK, TBEGINC_MASK): New constants.
719         ("*cc_to_int"): Move up.
720         ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
721         constants other than 0.
722         ("*ccraw_to_int"): New insn and splitter definition.
723         ("tbegin", "tbegin_nofloat", "tbegin_retry")
724         ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
725         ("tx_assist"): New expander.
726         ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
727         ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
728         * config/s390/s390.opt: Add -mhtm option.
729         * config/s390/s390-protos.h (s390_emit_jump): Add return type.
730         * config/s390/htmxlintrin.h: New file.
731         * config/s390/htmintrin.h: New file.
732         * config/s390/s390intrin.h: New file.
733         * doc/extend.texi: Document htm builtins.
734         * config.gcc: Add the new header files to extra_headers.
735
736 2013-06-26  Thomas Schwinge  <thomas@codesourcery.com>
737
738         * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
739         (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
740
741 2013-06-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
742             Pat Haugen <pthaugen@us.ibm.com>
743             Peter Bergner <bergner@vnet.ibm.com>
744
745         * config/rs6000/power8.md: New.
746         * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
747         setting for power8 entry.
748         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
749         * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
750         test for Power4/Power5 only.
751         (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
752         support.
753         (force_new_group): Adjust comment.
754         * config/rs6000/rs6000.md: Include power8.md.
755
756 2013-06-26  Greta Yorsh  <Greta.Yorsh@arm.com>
757
758         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
759         * config/arm/arm-protos.h (arm_max_conditional_execute): New
760         declaration.
761         (tune_params): Update comment.
762         * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
763         (arm_max_conditional_execute): New function.
764         (thumb2_final_prescan_insn): Use max_insn_skipped and
765         MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
766
767 2013-06-25  Jakub Jelinek  <jakub@redhat.com>
768
769         PR tree-optimization/57705
770         * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
771         SSA_NAME step, provided that it is not defined inside the loop.
772         (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
773         (get_initial_def_for_induction): Handle SSA_NAME IV step.
774
775 2013-06-25  Martin Jambor  <mjambor@suse.cz>
776
777         PR middle-end/57670
778         * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
779         * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
780         calls in the dump.
781         (ipa_note_param_call): Initialize member_ptr flag.
782         (ipa_analyze_indirect_call_uses): Set member_ptr flag.
783         (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
784         (ipa_write_indirect_edge_info): Stream member_ptr flag.
785         (ipa_read_indirect_edge_info): Likewise.
786
787 2013-06-25  Richard Biener  <rguenther@suse.de>
788
789         PR middle-end/56977
790         * passes.c (init_optimization_passes): Move pass_fold_builtins
791         and pass_dce earlier with -Og.
792
793 2013-06-25  Eric Botcazou  <ebotcazou@adacore.com>
794
795         * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
796         <BIT_FIELD_REF>: Remove trailing TAB.
797         * varasm.c (output_constructor_bitfield): Fix formatting glitch and
798         remove blank line.
799
800 2013-06-24  Martin Jambor  <mjambor@suse.cz>
801
802         PR tree-optimization/57358
803         * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
804         (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
805         (ipa_analyze_params_uses): Generate pessimistic info when true.
806
807 2013-06-24  Martin Jambor  <mjambor@suse.cz>
808
809         PR tree-optimization/57539
810         * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
811         global.inlined_to of the new node to it.  All callers changed.
812         * ipa-inline-transform.c (clone_inlined_nodes): New variable
813         inlining_into, pass it to cgraph_clone_node.
814         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
815         ipa_free_edge_args_substructures.
816         (ipa_edge_duplication_hook): Only add edges from inlined nodes to
817         rdesc linked list.  Do not assert rdesc edges have inlined caller.
818         Assert we have found an rdesc in the rdesc list.
819
820 2013-06-24  Richard Biener  <rguenther@suse.de>
821
822         * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
823         (pointer_set_lookup): Declare.
824         (class pointer_map): New template class implementing a
825         generic pointer to T map.
826         (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
827         pointer_map<T>::contains, pointer_map<T>::insert,
828         pointer_map<T>::traverse): New functions.
829         * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
830         (pointer_set_lookup): New function.
831         (pointer_set_contains): Use pointer_set_lookup.
832         (pointer_set_insert): Likewise.
833         (insert_aux): Remove.
834         (struct pointer_map_t): Embed a pointer_set_t.
835         (pointer_map_create): Adjust.
836         (pointer_map_destroy): Likewise.
837         (pointer_map_contains): Likewise.
838         (pointer_map_insert): Likewise.
839         (pointer_map_traverse): Likewise.
840         * tree-streamer.h (struct streamer_tree_cache_d): Use a
841         pointer_map<unsigned> instead of a pointer_map_t.
842         * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
843         (streamer_tree_cache_lookup): Likewise.
844         (streamer_tree_cache_create): Likewise.
845         (streamer_tree_cache_delete): Likewise.
846         * lto-streamer.h (struct lto_tree_ref_encoder): Use a
847         pointer_map<unsigned> instead of a pointer_map_t.
848         (lto_init_tree_ref_encoder): Adjust.
849         (lto_destroy_tree_ref_encoder): Likewise.
850         * lto-section-out.c (lto_output_decl_index): Likewise.
851         (lto_record_function_out_decl_state): Likewise.
852         * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
853
854 2013-06-24  Richard Biener  <rguenther@suse.de>
855
856         PR tree-optimization/57488
857         * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
858
859 2013-06-24  Alan Modra  <amodra@gmail.com>
860
861         * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
862         (gen_easy_altivec_constant): Likewise.
863         * config/rs6000/predicates.md (easy_vector_constant_add_self,
864         easy_vector_constant_msb): Likewise.
865
866 2013-06-23  Jakub Jelinek  <jakub@redhat.com>
867
868         PR target/57688
869         * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
870         add missing return true.
871
872 2013-06-23  Oleg Endo <olegendo@gcc.gnu.org>
873
874         PR target/52483
875         * config/sh/predicates.md (general_extend_operand): Invoke
876         general_movsrc_operand for memory operands.
877         (general_movsrc_operand): Allow reg+reg addressing, do not use
878         general_operand for memory operands.
879
880 2013-06-23  Sriraman Tallam  <tmsriram@google.com>
881
882         * config/i386/i386.c (ix86_pragma_target_parse):  Restore target
883         when current target options does not apply.
884         * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
885         * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
886         * config/i386/bmiintrin.h: Pass appropriate target
887         attributes to header.
888         * config/i386/mmintrin.h: Ditto.
889         * config/i386/nmmintrin.h: Ditto.
890         * config/i386/avx2intrin.h: Ditto.
891         * config/i386/fxsrintrin.h: Ditto.
892         * config/i386/tbmintrin.h: Ditto.
893         * config/i386/xsaveintrin.h: Ditto.
894         * config/i386/f16cintrin.h: Ditto.
895         * config/i386/xtestintrin.h: Ditto.
896         * config/i386/xsaveoptintrin.h: Ditto.
897         * config/i386/bmi2intrin.h: Ditto.
898         * config/i386/lzcntintrin.h: Ditto.
899         * config/i386/smmintrin.h: Ditto.
900         * config/i386/wmmintrin.h: Ditto.
901         * config/i386/x86intrin.h: Remove all header include guards.
902         * config/i386/prfchwintrin.h: Ditto.
903         * config/i386/pmmintrin.h: Ditto.
904         * config/i386/tmmintrin.h: Ditto.
905         * config/i386/xmmintrin.h: Ditto.
906         * config/i386/popcntintrin.h: Ditto.
907         * config/i386/rdseedintrin.h: Ditto.
908         * config/i386/ammintrin.h: Ditto.
909         * config/i386/emmintrin.h: Ditto.
910         * config/i386/immintrin.h: Remove all header include guards.
911         * config/i386/fma4intrin.h: Ditto.
912         * config/i386/lwpintrin.h: Ditto.
913         * config/i386/xopintrin.h: Ditto.
914         * config/i386/ia32intrin.h: Ditto.
915         * config/i386/avxintrin.h: Ditto.
916         * config/i386/rtmintrin.h: Ditto.
917         * config/i386/fmaintrin.h: Ditto.
918         * config/i386/mm3dnow.h: Ditto.
919
920 2013-06-22  Sriraman Tallam  <tmsriram@google.com>
921
922         * common/config/i386/i386-common.c: Handle LZCNT.
923
924 2013-06-22  Andi Kleen  <ak@linux.intel.com>
925
926         * doc/extend.texi: Use __atomic_store_n instead of
927         __atomic_store in HLE example.
928
929 2013-06-22  Oleg Endo <olegendo@gcc.gnu.org>
930
931         * config/sh/sh.c: Remove <cstdlib> workaround.
932
933 2013-06-21  Andi Kleen  <ak@linux.intel.com>
934
935         * doc/extend.texi: Dont use __atomic_clear in HLE example.  Fix typo.
936
937 2013-06-21  Andi Kleen  <ak@linux.intel.com>
938
939         * doc/extend.texi: Document that __atomic_clear and
940           __atomic_test_and_set should only be used with bool.
941
942 2013-06-20  Jan Hubicka  <jh@suse.cz>
943
944         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
945         types_same_for_odr.
946         * tree.c (decls_same_for_odr): New function.
947         (same_for_edr): New function.
948         (types_same_for_odr): New function.
949         (get_binfo_at_offset): Use it.
950         * tree.h (types_same_for_odr): Declare.
951
952 2013-06-20  Oleg Endo <olegendo@gcc.gnu.org>
953             Jason Merrill  <jason@redhat.com>
954
955         * system.h: Include <cstdlib> as well as <stdlib.h>.
956
957 2013-06-20  Uros Bizjak  <ubizjak@gmail.com>
958
959         PR target/57655
960         * config/i386/i386.c (construct_container): Report error if
961         long double is used with disabled x87 float returns.
962
963 2013-06-20  Jan Hubicka  <jh@suse.cz>
964
965         * lto-cgraph.c (input_symtab): Do not set cgraph state.
966
967 2013-06-20  Joern Rennecke <joern.rennecke@embecosm.com>
968
969         PR rtl-optimization/57425
970         PR rtl-optimization/57569
971         * alias.c (write_dependence_p): Remove parameters mem_mode and
972         canon_mem_addr.  Add parameters x_mode, x_addr and x_canonicalized.
973         Changed all callers.
974         (canon_anti_dependence): Get comments and semantics in sync.
975         Add parameter mem_canonicalized.  Changed all callers.
976         * rtl.h (canon_anti_dependence): Update prototype.
977
978 2013-06-20  Richard Biener  <rguenther@suse.de>
979
980         * data-streamer-in.c (streamer_read_uhwi): Optimize single
981         byte case, inline streamer_read_uchar and defer section
982         overrun check.
983
984 2013-06-20  Richard Biener  <rguenther@suse.de>
985
986         PR tree-optimization/57584
987         * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
988         SSA names into the expanded expression that take part in
989         abnormal coalescing.
990
991 2013-06-19    <singhai@google.com>
992
993         * gcov.c (print_usage): Handle new option.
994         (process_args): Ditto.
995         (get_gcov_intermediate_filename): New function.
996         (output_intermediate_file): New function.
997         (output_gcov_file): New function
998         (generate_results): Handle new option.
999         (release_function): Relase demangled name.
1000         (read_graph_file): Handle demangled name.
1001         (output_lines): Ditto.
1002         * doc/gcov.texi: Document gcov intermediate format.
1003
1004 2013-06-19  Vladimir Makarov  <vmakarov@redhat.com>
1005
1006         PR bootstrap/57604
1007         * lra.c (emit_add3_insn, emit_add2_insn): New functions.
1008         (lra_emit_add): Use the functions.  Add comment about Y as an
1009         address segment.
1010
1011 2013-06-19  David Edelsohn  <dje.gcc@gmail.com>
1012
1013         PR driver/57652
1014         * collect2.c (collect_atexit): New.
1015         (collect_exit): Delete.
1016         (main): Register collect_atexit with atexit.
1017         (collect_wait): Change collect_exit to exit.
1018         (do_wait): Same.
1019         * collect2.h (collect_exit): Delete.
1020         * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
1021
1022 2013-06-19  Wei Mi  <wmi@google.com>
1023
1024         PR rtl-optimization/57518
1025         * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
1026         if regno is used in paradoxical subreg.
1027         (update_equiv_regs): Check pdx_subregs[regno] before
1028         set a reg to be equivalent with a mem.
1029
1030 2013-06-19  Matthias Klose  <doko@ubuntu.com>
1031
1032         PR driver/57651
1033         * file-find.h (find_a_file): Add a mode parameter.
1034         * file-find.c (find_a_file): Likewise.
1035         * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
1036         with X_OK for the executables.
1037         * collect2.c (main): Call find_a_file with X_OK.
1038
1039 2013-06-19  Steve Ellcey  <sellcey@mips.com>
1040
1041         PR target/56942
1042         * config/mips/mips.md (casesi_internal_mips16_<mode>):
1043         Use NEXT_INSN instead of next_real_insn.
1044
1045 2013-06-19  Jan Hubicka  <jh@suse.cz>
1046
1047         * cgraph.h (const_value_known_p): Replace by ...
1048         (ctor_for_folding): .. this one.
1049         * cgraphunit.c (process_function_and_variable_attributes): Use it.
1050         * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
1051         * expr.c (expand_expr_real_1): Likewise.
1052         (string_constant): Likewise.
1053         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
1054         * ipa.c (process_references): Likewise.
1055         (symtab_remove_unreachable_nodes): Likewise.
1056         * ipa-inline-analysis.c (param_change_prob): Likewise.
1057         * gimple-fold.c (canonicalize_constructor_val): Likewise.
1058         (get_base_constructor): Likwise.
1059         * varpool.c (varpool_remove_node): Likewise.
1060         (varpool_remove_initializer): LIkewise.
1061         (dump_varpool_node): LIkwise.
1062         (const_value_known_p): Rewrite to ...
1063         (ctor_for_folding): ... this one.
1064
1065 2013-06-19  Jakub Jelinek  <jakub@redhat.com>
1066
1067         PR driver/57651
1068         * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
1069         PERSONALITY in $PATH derived prefixes.
1070
1071 2013-06-19  Jeff Law  <law@redhat.com>
1072
1073         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
1074         in comment.
1075
1076         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
1077         (simplify_bitwise_binary): Use it to simpify certain binary ops on
1078         booleans.
1079
1080 2013-06-19  Sofiane Naci  <sofiane.naci@arm.com>
1081
1082         * config/arm/vfp.md: Move VFP instruction classification documentation
1083         to ...
1084         * config/arm/arm.md: ... here.  Update instruction classification
1085         documentation.
1086
1087 2013-06-19  Richard Earnshaw  <rearnsha@arm.com>
1088
1089         arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
1090         (peepholes for eq(reg, not-0)): Ensure condition register is dead after
1091         pattern.  Use more efficient sequences on ARMv5 and Thumb2.
1092
1093 2013-06-19  Steven Bosscher  <steven@gcc.gnu.org>
1094
1095         PR target/57609
1096         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
1097         with NEXT_INSN.  Use tablejump_p to check for jump table data
1098         insns.
1099
1100 2013-06-19  Paolo Carlini  <paolo.carlini@oracle.com>
1101
1102         PR c++/56544
1103         * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
1104         that now in C++ the value is correct per the C++ standards.
1105
1106 2013-06-19  Richard Biener  <rguenther@suse.de>
1107
1108         * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
1109         for global context.
1110
1111 2013-06-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1112
1113         Revert:
1114         2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1115
1116         PR target/57609
1117         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
1118         with next_active_insn.
1119
1120 2013-06-18  Sriraman Tallam  <tmsriram@google.com>
1121
1122         * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
1123         functions are inlined during failures to flag an error.
1124         * tree-inline.c (expand_call_inline): Allow the error to be flagged
1125         in early inline pass.
1126
1127 2013-06-18  H.J. Lu  <hongjiu.lu@intel.com>
1128
1129         * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
1130         in comments.
1131
1132 2013-06-18  Julian Brown  <julian@codesourcery.com>
1133
1134         * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
1135         Permit virtual register pre-reload if !strict.
1136         (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
1137         change.
1138         * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
1139         prototype.
1140         * config/arm/neon.md (movmisalign<mode>): Use
1141         neon_perm_struct_or_reg_operand instead of
1142         neon_struct_or_register_operand.
1143         (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
1144         neon_permissive_struct_operand instead of neon_struct_operand.
1145         * config/arm/constraints.md (Un, Um, Us): Adjust calls to
1146         neon_vector_mem_operand.
1147         * config/arm/predicates.md (neon_struct_operand): Adjust call to
1148         neon_vector_mem_operand.
1149         (neon_permissive_struct_operand): New.
1150         (neon_struct_or_register_operand): Rename to...
1151         (neon_perm_struct_or_reg_operand): This. Adjust call to
1152         neon_vector_mem_operand.
1153
1154 2013-06-18  Richard Biener  <rguenther@suse.de>
1155
1156         * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
1157         * lto-streamer.h: Include pointer-set.h.
1158         (struct lto_decl_slot): Remove.
1159         (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
1160         Remove next_index entry.
1161         (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
1162         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
1163         (lto_init_tree_ref_encoder): Adjust.
1164         (lto_destroy_tree_ref_encoder): Likewise.
1165         * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
1166         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
1167         (lto_output_decl_index): Adjust.
1168         (lto_new_out_decl_state): Likewise.
1169         (lto_record_function_out_decl_state): Likewise.
1170         * lto-streamer-out.c (copy_function): Likewise.
1171
1172 2013-06-18  Richard Biener  <rguenther@suse.de>
1173
1174         * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
1175         * cgraphunit.c: Include cfgloop.h.
1176         (init_lowered_empty_function): Initialize the loop tree.
1177         (assemble_thunk): Insert new BBs into loops.
1178
1179 2013-06-18  Richard Biener  <rguenther@suse.de>
1180
1181         * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
1182         * tree-streamer.c (streamer_tree_cache_create): Make maintaining
1183         the map from cache entry to cache index optional.
1184         (streamer_tree_cache_replace_tree): Adjust accordingly.
1185         (streamer_tree_cache_append): Likewise.
1186         (streamer_tree_cache_delete): Likewise.
1187         * lto-streamer-in.c (lto_data_in_create): Do not maintain the
1188         streamer cache map from cache entry to cache index.
1189         * lto-streamer-out.c (create_output_block): Adjust.
1190
1191 2013-06-18  Sofiane Naci  <sofiane.naci@arm.com>
1192
1193         * config/arm/arm.md (attribute "insn"): Move multiplication and
1194         division attributes to...
1195         (attribute "type"): ... here.  Remove mult.
1196         (attribute "mul32"): New attribute.
1197         (attribute "mul64"): Add umaal.
1198         (*arm_mulsi3): Update attributes.
1199         (*arm_mulsi3_v6): Likewise.
1200         (*thumb_mulsi3): Likewise.
1201         (*thumb_mulsi3_v6): Likewise.
1202         (*mulsi3_compare0): Likewise.
1203         (*mulsi3_compare0_v6): Likewise.
1204         (*mulsi_compare0_scratch): Likewise.
1205         (*mulsi_compare0_scratch_v6): Likewise.
1206         (*mulsi3addsi): Likewise.
1207         (*mulsi3addsi_v6): Likewise.
1208         (*mulsi3addsi_compare0): Likewise.
1209         (*mulsi3addsi_compare0_v6): Likewise.
1210         (*mulsi3addsi_compare0_scratch): Likewise.
1211         (*mulsi3addsi_compare0_scratch_v6): Likewise.
1212         (*mulsi3subsi): Likewise.
1213         (*mulsidi3adddi): Likewise.
1214         (*mulsi3addsi_v6): Likewise.
1215         (*mulsidi3adddi_v6): Likewise.
1216         (*mulsidi3_nov6): Likewise.
1217         (*mulsidi3_v6): Likewise.
1218         (*umulsidi3_nov6): Likewise.
1219         (*umulsidi3_v6): Likewise.
1220         (*umulsidi3adddi): Likewise.
1221         (*umulsidi3adddi_v6): Likewise.
1222         (*smulsi3_highpart_nov6): Likewise.
1223         (*smulsi3_highpart_v6): Likewise.
1224         (*umulsi3_highpart_nov6): Likewise.
1225         (*umulsi3_highpart_v6): Likewise.
1226         (mulhisi3): Likewise.
1227         (*mulhisi3tb): Likewise.
1228         (*mulhisi3bt): Likewise.
1229         (*mulhisi3tt): Likewise.
1230         (maddhisi4): Likewise.
1231         (*maddhisi4tb): Likewise.
1232         (*maddhisi4tt): Likewise.
1233         (maddhidi4): Likewise.
1234         (*maddhidi4tb): Likewise.
1235         (*maddhidi4tt): Likewise.
1236         (divsi3): Likewise.
1237         (udivsi3): Likewise.
1238         * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
1239         (thumb2_mulsi_short_compare0): Likewise.
1240         (thumb2_mulsi_short_compare0_scratch): Likewise.
1241         * config/arm/arm1020e.md (1020mult1): Update attribute change.
1242         (1020mult2): Likewise.
1243         (1020mult3): Likewise.
1244         (1020mult4): Likewise.
1245         (1020mult5): Likewise.
1246         (1020mult6): Likewise.
1247         * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
1248         change.
1249         (cortex_a15_mult64): Likewise.
1250         (cortex_a15_sdiv): Likewise.
1251         (cortex_a15_udiv): Likewise.
1252         * config/arm/arm1026ejs.md (mult1): Update attribute change.
1253         (mult2): Likewise.
1254         (mult3): Likewise.
1255         (mult4): Likewise.
1256         (mult5): Likewise.
1257         (mult6): Likewise.
1258         * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
1259         (pj4_ir_div): Likewise.
1260         * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
1261         (11_mult2): Likewise.
1262         (11_mult3): Likewise.
1263         (11_mult4): Likewise.
1264         (11_mult5): Likewise.
1265         (11_mult6): Likewise.
1266         (11_mult7): Likewise.
1267         * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
1268         (cortex_a8_mla): Likewise.
1269         (cortex_a8_mull): Likewise.
1270         (cortex_a8_smulwy): Likewise.
1271         (cortex_a8_smlald): Likewise.
1272         * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
1273         * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
1274         (cortex_r4_mul_3): Likewise.
1275         (cortex_r4_mla_4): Likewise.
1276         (cortex_r4_mla_3): Likewise.
1277         (cortex_r4_smlald): Likewise.
1278         (cortex_r4_mull): Likewise.
1279         (cortex_r4_sdiv): Likewise.
1280         (cortex_r4_udiv): Likewise.
1281         * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
1282         (cortex_a7_idiv): Likewise.
1283         * config/arm/arm926ejs.md (9_mult1): Update attribute change.
1284         (9_mult2): Likewise.
1285         (9_mult3): Likewise.
1286         (9_mult4): Likewise.
1287         (9_mult5): Likewise.
1288         (9_mult6): Likewise.
1289         * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
1290         (cortex_a53_sdiv): Likewise.
1291         (cortex_a53_udiv): Likewise.
1292         * config/arm/fa726te.md (726te_mult_op): Update attribute change.
1293         * config/arm/fmp626.md (mp626_mult1): Update attribute change.
1294         (mp626_mult2): Likewise.
1295         (mp626_mult3): Likewise.
1296         (mp626_mult4): Likewise.
1297         * config/arm/fa526.md (526_mult1): Update attribute change.
1298         (526_mult2): Likewise.
1299         * config/arm/arm-generic.md (mult): Update attribute change.
1300         (mult_ldsched_strongarm): Likewise.
1301         (mult_ldsched): Likewise.
1302         (multi_cycle): Likewise.
1303         * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
1304         * config/arm/fa606te.md (606te_mult1): Update attribute change.
1305         (606te_mult2): Likewise.
1306         (606te_mult3): Likewise.
1307         (606te_mult4): Likewise.
1308         * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
1309         (cortex_a9_mac16): Likewise.
1310         (cortex_a9_multiply): Likewise.
1311         (cortex_a9_mac): Likewise.
1312         (cortex_a9_multiply_long): Likewise.
1313         * config/arm/fa626te.md (626te_mult1): Update attribute change.
1314         (626te_mult2): Likewise.
1315         (626te_mult3): Likewise.
1316         (626te_mult4): Likewise.
1317
1318 2013-06-18  Richard Biener  <rguenther@suse.de>
1319
1320         PR lto/57334
1321         * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
1322
1323 2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1324
1325         PR target/57609
1326         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
1327         with next_active_insn.
1328
1329 2013-06-18  Alan Modra  <amodra@gmail.com>
1330
1331         * config/rs6000/rs6000.h (enum data_align): New.
1332         (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
1333         (DATA_ABI_ALIGNMENT): Define.
1334         (CONSTANT_ALIGNMENT): Correct comment.
1335         * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
1336         * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
1337
1338 2013-06-17  David Malcolm  <dmalcolm@redhat.com>
1339
1340         * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
1341         ATTRIBUTE_UNUSED marking.
1342
1343 2013-06-17  Sofiane Naci  <sofiane.naci@arm.com>
1344
1345         * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
1346         alternative and update.
1347         (aarch64_dup_lanedi): Delete.
1348         * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
1349         * config/aarch64/aarch64-simd-builtins.def: Update.
1350
1351 2013-06-17  Richard Biener  <rguenther@suse.de>
1352
1353         * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
1354         (lto_input_scc): Declare.
1355         (lto_input_tree_1): Likewise.
1356         (struct lto_stats_d): Add num_tree_bodies_output and
1357         num_pickle_refs_output.
1358         * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
1359         (lto_read_tree_1): Split out from ...
1360         (lto_read_tree): ... this.
1361         (lto_input_scc): New function.
1362         (lto_input_tree_1): Split out from ...
1363         (lto_input_tree): ... this.  Handle LTO_tree_scc.
1364         (lto_data_in_create): Create the streamer cache without hashes.
1365         * lto-streamer-out.c (create_output_block): Create the streamer
1366         cache with hashes when not doing WPA.
1367         (lto_write_tree_1): Split out from ...
1368         (lto_write_tree): ... this.
1369         (get_symbol_initial_value): New function.
1370         (lto_output_tree_1): Split out from ...
1371         (lto_output_tree): ... this.  Write trees as series of SCCs
1372         using a DFS walk via DFS_write_tree.
1373         (struct sccs, struct scc_entry): New types.
1374         (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
1375         (DFS_write_tree_body): New function.
1376         (DFS_write_tree): Likewise.
1377         (hash_tree): Likewise.
1378         (scc_entry_compare): Likewise.
1379         (hash_scc): Likewise.
1380         (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
1381         * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
1382         TREE_CHAIN as regular reference.
1383         (streamer_read_integer_cst): Remove.
1384         (streamer_get_pickled_tree): Adjust.
1385         * tree-streamer-out.c (streamer_write_chain): Disable streaming
1386         of DECL_EXTERNALs in BLOCK_VARS for now.
1387         (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
1388         reference.
1389         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
1390         Add hash value argument and record that if hashes are recorded
1391         in the cache.
1392         (streamer_tree_cache_insert_1): Adjust.
1393         (streamer_tree_cache_insert): Likewise.
1394         (streamer_tree_cache_insert_at): Rename to ...
1395         (streamer_tree_cache_replace_tree): ... this and adjust.
1396         (streamer_tree_cache_append): Adjust.
1397         (record_common_node): Likewise.
1398         (streamer_tree_cache_create): Add argument whether to
1399         record hash values together with trees.
1400         (streamer_tree_cache_delete): Adjust.
1401         * tree-streamer.h (struct streamer_tree_cache_d): Add
1402         vector of hashes.
1403         (streamer_read_integer_cst): Remove.
1404         (streamer_tree_cache_insert): Adjust.
1405         (streamer_tree_cache_append): Likewise.
1406         (streamer_tree_cache_insert_at): Rename to ...
1407         (streamer_tree_cache_replace_tree): ... this and adjust.
1408         (streamer_tree_cache_create): Add argument whether to record hashes.
1409         (streamer_tree_cache_get): Rename to ...
1410         (streamer_tree_cache_get_tree): ... this.
1411         (streamer_tree_cache_get_hash): New function.
1412         * tree.c (cache_integer_cst): New function.
1413         * tree.h (cache_integer_cst): Declare.
1414         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
1415         * lto-symtab.c (lto_varpool_replace_node): Only release
1416         DECL_INITIAL of non-prevailing decls.
1417         * varpool.c (varpool_remove_initializer): Do not release
1418         DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
1419
1420 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
1421
1422         * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
1423         (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
1424         * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
1425         (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
1426         (mul<mode>3_mul3): Handle TARGET_MIPS5900.
1427         (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
1428         (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
1429         (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
1430         instead of TARGET_64BIT.
1431         (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
1432         Require ISA_HAS_<D>DIV.
1433
1434 2013-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
1435
1436         * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
1437         (mips*-*-linux*): Move default with_llsc setting to where other
1438         defaults are set.
1439         (mips*-*-vxworks*): Move with_arch default from with_cpu block to
1440         with_arch block.
1441         (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
1442         Likewise.  Remove default with_tune setting.  Move default float
1443         setting to its own block.  Handle with_llsc in the same block as above.
1444
1445 2013-06-16  Joern Rennecke <joern.rennecke@embecosm.com>
1446
1447         PR rtl-optimization/57425
1448         PR rtl-optimization/57569
1449         * alias.c (write_dependence_p): Add new parameters mem_mode,
1450         canon_mem_addr and mem_canonicalized.  Change type of writep to bool.
1451         Changed all callers.
1452         (canon_anti_dependence): New function.
1453         * cse.c (check_dependence): Use canon_anti_dependence.
1454         * cselib.c (cselib_invalidate_mem): Likewise.
1455         * rtl.h (canon_anti_dependence): Declare.
1456
1457 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
1458
1459         * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
1460         * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
1461         ".set mips3" for 64-bit targets.
1462
1463 2013-06-15  Dehao Chen  <dehao@google.com>
1464
1465         * tree-flow.h (gimple_check_call_matching_types): Add new argument.
1466         * gimple-low.c (gimple_check_call_matching_types): Likewise.
1467         (gimple_check_call_args): Likewise.
1468         * value-prof.c (check_ic_target): Likewise.
1469         * ipa-inline.c (early_inliner): Likewise.
1470         * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
1471         * cgraph.c (cgraph_create_edge_1): Likewise.
1472         (cgraph_make_edge_direct): Likewise.
1473
1474 2013-06-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
1475
1476         PR target/57615
1477         * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
1478         rs6000_output_move_128bit to handle emitting quad memory
1479         operations.  Set attribute length to 8 bytes.
1480
1481 2013-06-14  Vidya Praveen <vidyapraveen@arm.com>
1482
1483         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
1484         New pattern.
1485         (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
1486         (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
1487         (aarch64_<su>mlsl<mode>): Likewise.
1488
1489 2013-06-14  Mike Stump  <mikestump@comcast.net>
1490
1491         * Makefile.in (TARGET_H): Add insn-codes.h.
1492
1493 2013-06-14  Alan Modra  <amodra@gmail.com>
1494
1495         PR middle-end/57134
1496         PR middle-end/57586
1497         * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
1498         EXPAND_MEMORY and EXPAND_WRITE to recursive call.  Don't use
1499         bitfield expansion when EXPAND_MEMORY.
1500         (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
1501
1502 2013-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
1503
1504         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1505         test for clearing quad memory on 32-bit later.
1506
1507 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
1508
1509         * fold-const.c (negate_expr_p): Handle VECTOR_CST.
1510         (fold_negate_expr): Likewise.
1511         (fold_real_zero_addition_p): Handle vectors.
1512         (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
1513
1514 2013-06-14  Alan Modra  <amodra@gmail.com>
1515
1516         * varasm.c (force_const_mem): Revert 2013-06-07 change.
1517
1518 2013-06-13  Jan Hubicka  <jh@suse.cz>
1519
1520         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
1521         Local comdats are not externally visible.
1522         * symtab.c (dump_symtab_base): Dump externally visible.
1523         (verify_symtab_base): Verify back links in the symtab hash.
1524
1525 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
1526
1527         * fold-const.c (operand_equal_p): Consider NOP_EXPR and
1528         CONVERT_EXPR as equal nodes.
1529
1530 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
1531
1532         * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
1533
1534 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
1535
1536         * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
1537         Generalize to complex and vector.
1538         * tree.c (build_all_ones_cst): New function.
1539         * tree.h (build_all_ones_cst): Declare it.
1540
1541 2013-06-13  Alan Modra  <amodra@gmail.com>
1542
1543         * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
1544         * config/rs6000/rs6000.md (signbittf2): New insn.
1545         (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
1546         (abstf2_internal, cmptf_internal2): Likewise.
1547         * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
1548
1549 2013-06-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
1550             Pat Haugen <pthaugen@us.ibm.com>
1551             Peter Bergner <bergner@vnet.ibm.com>
1552
1553         * config/rs6000/rs6000.c (emit_load_locked): Add support for
1554         power8 byte, half-word, and quad-word atomic instructions.
1555         (emit_store_conditional): Likewise.
1556         (rs6000_expand_atomic_compare_and_swap): Likewise.
1557         (rs6000_expand_atomic_op): Likewise.
1558
1559         * config/rs6000/sync.md (larx): Add new modes for power8.
1560         (stcx): Likewise.
1561         (AINT): New mode iterator to include TImode as well as normal
1562         integer modes on power8.
1563         (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
1564         that VSX registers are not considered.  Use AINT mode iterator
1565         instead of INT1 to allow inclusion of quad word atomic operations
1566         on power8.
1567         (load_locked<mode>): Likewise.
1568         (store_conditional<mode>): Likewise.
1569         (atomic_compare_and_swap<mode>): Likewise.
1570         (atomic_exchange<mode>): Likewise.
1571         (atomic_nand<mode>): Likewise.
1572         (atomic_fetch_<fetchop_name><mode>): Likewise.
1573         (atomic_nand_fetch<mode>): Likewise.
1574         (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
1575         each type.
1576         (ATOMIC): On power8, add QImode, HImode modes.
1577         (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
1578         modes that promote to SImode.
1579         (load_lockedti): Convert TImode arguments to PTImode, so that we
1580         get a guaranteed even/odd register pair.
1581         (load_lockedpti): Likewise.
1582         (store_conditionalti): Likewise.
1583         (store_conditionalpti): Likewise.
1584
1585         * config/rs6000/rs6000.md (QHI): New mode iterator for power8
1586         atomic load/store instructions.
1587         (HSI): Likewise.
1588
1589 2013-06-12  Richard Sandiford  <rdsandiford@googlemail.com>
1590
1591         * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
1592         loads.
1593         (insn_count): New attribute, with most cases extracted from...
1594         (length): ...here.  Redefine most cases in terms of insn_count.
1595         (single_insn): Delete.
1596         (can_delay): Use insn_count to check for single instructions.
1597         (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
1598         (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
1599         (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
1600         (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
1601         (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
1602         (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
1603         (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
1604         (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
1605         (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
1606         (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
1607         rather than "length".
1608         (tls_get_tp_<mode>): Likewise.  Remove redundant "no_delay" attribute.
1609         * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
1610         Use "insn_count" rather than "length".
1611         * config/mips/mips-dsp.md
1612         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
1613         (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
1614         length attributes.
1615
1616 2013-06-12  Marc Glisse  <marc.glisse@inria.fr>
1617
1618         PR tree-optimization/57361
1619         * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
1620
1621 2013-06-12  Sofiane Naci  <sofiane.naci@arm.com>
1622
1623         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
1624         to split.
1625         (aarch64_simd_combine<mode>): New instruction expansion.
1626         * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
1627         function prototype.
1628         * config/aarch64/aarch64.c (aarch64_split_combine): New function.
1629         * config/aarch64/iterators.md (Vdbl): Add entry for DF.
1630
1631 2013-06-12  Jan Hubicka  <jh@suse.cz>
1632
1633         * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
1634         decl has when in streaming stage.
1635         * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
1636         * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
1637
1638 2013-06-12  Roland Stigge <stigge@antcom.de>
1639
1640         PR target/57578
1641         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
1642
1643 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
1644
1645         PR tree-optimization/57537
1646         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
1647         vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
1648
1649 2013-06-12  Richard Biener  <rguenther@suse.de>
1650
1651         * data-streamer.h (streamer_write_char_stream): CSE
1652         obs->current_pointer.
1653         * data-streamer-out.c (streamer_write_uhwi_stream): Inline
1654         streamer_write_char_stream manually and optimize the resulting loop.
1655         (streamer_write_hwi_stream): Likewise.
1656
1657 2013-06-12  Jan Hubicka  <jh@suse.cz>
1658
1659         * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
1660         * cgraph.h (varpool_create_empty_node): Declare.
1661         * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
1662         duplicated nodes.
1663         * symtab.c (symtab_unregister_node): Be lax about missin entries
1664         in node hash.
1665         (symtab_get_node): Update comment.
1666         * varpool.c (varpool_create_empty_node): Break out from ...
1667         (varpool_node_for_decl): ... here.
1668         * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
1669
1670 2013-06-12  Eric Botcazou  <ebotcazou@adacore.com>
1671
1672         * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
1673         <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
1674         part.  Use straight-line flow at the end.
1675         <COMPONENT_REF>: Remove superfluous else.
1676         <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
1677
1678 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
1679
1680         PR target/56564
1681         * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
1682         target hook even for !TREE_PUBLIC decls.  If no resolution info
1683         is available, return false for common and external decls.
1684
1685 2013-06-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
1686
1687         * config/rl78/constraints.md (U): New constraint.
1688         * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
1689         valloc attribute.
1690
1691 2013-06-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
1692
1693         PR target/57589
1694         * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
1695         to allow returning address to AT_PLATFORM name.
1696
1697 2013-06-11  Jan Hubicka  <jh@suse.cz>
1698
1699         * cgraph.c (cgraph_create_function_alias): Set weakref flag.
1700         * cgraph.h (symtab_node_base): Add weakref flag.
1701         * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
1702         (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
1703         (output_weakrefs): Use weakref flag.
1704         * fold-const.c (simple_operand_p): Handle WEAK.
1705         * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
1706         * ipa.c (varpool_externally_visible_p): Drop weakref.
1707         (function_and_variable_visibility): Update comment; fix weakref
1708         sanity checks; do not clear DECL_WEAK on them.
1709         * lto-cgraph.c (lto_output_node): update.
1710         (lto_output_varpool_node): Update.
1711         (input_overwrite_node): Update.
1712         (input_node): Update.
1713         (input_varpool_node): Update.
1714         * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
1715         (lto_symtab_merge_symbols): Add sanity check.
1716         (lto_symtab_prevailing_decl): Do not special case weakrefs.
1717         * passes.c (rest_of_decl_compilation): Set static flag, too.
1718         * symtab.c (dump_symtab_base): Dump weakref.
1719         (verify_symtab_base): Sanity check weakrefs.
1720         (symtab_make_decl_local): Remove duplicated code.
1721         (symtab_alias_ultimate_target): Simplify.
1722         * varpool.c (varpool_create_variable_alias): Set weakref flag.
1723
1724 2013-06-11  DJ Delorie  <dj@redhat.com>
1725
1726         * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
1727         (rl78_unwind_word_mode): New.
1728
1729 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
1730
1731         * final.c (debug_prefix_maps): Make static.
1732
1733 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
1734
1735         * function.c (initial_trampoline): Remove stray copy.
1736
1737 2013-06-11  Sofiane Naci  <sofiane.naci@arm.com>
1738
1739         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
1740
1741 2013-06-11  Martin Jambor  <mjambor@suse.cz>
1742
1743         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
1744         within bounds at the beginning of the function.
1745
1746 2013-06-11  Alan Modra  <amodra@gmail.com>
1747
1748         * varasm.c (get_section): Don't die on !DECL_P decl.  Tidy error
1749         reporting.
1750         (get_named_section): Don't NULL !DECL_P decl.
1751
1752 2013-06-11  Igor Zamyatin  <igor.zamyatin@intel.com>
1753
1754         * doc/invoke.texi (core-avx2): Document.
1755         (slm): Likewise.
1756         (atom): Updated with MOVBE.
1757
1758 2013-06-11  Richard Biener  <rguenther@suse.de>
1759
1760         * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
1761
1762 2013-06-11  Anton Blanchard  <anton@samba.org>
1763
1764         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
1765         correct shift value in little-endian mode.
1766
1767 2013-06-11  Jakub Jelinek  <jakub@redhat.com>
1768
1769         PR target/56564
1770         * varasm.c (get_variable_align): Move #endif to the right place.
1771
1772 2013-06-10  Cary Coutant  <ccoutant@google.com>
1773
1774         * dwarf2out.c (hash_external_ref): Use die_symbol or signature
1775         for hash so that hash table traversal order is deterministic.
1776
1777 2013-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
1778             Pat Haugen <pthaugen@us.ibm.com>
1779             Peter Bergner <bergner@vnet.ibm.com>
1780
1781         * config/rs6000/vector.md (GPR move splitter): Do not split moves
1782         of vectors in GPRS if they are direct moves or quad word load or
1783         store moves.
1784
1785         * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
1786         declaration.
1787         (direct_move_p): Likewise.
1788         (quad_load_store_p): Likewise.
1789
1790         * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
1791         classes into bins based on the physical register type.
1792         (reg_class_to_reg_type): Likewise.
1793         (IS_STD_REG_TYPE): Likewise.
1794         (IS_FP_VECT_REG_TYPE): Likewise.
1795         (reload_fpr_gpr): Arrays to determine what insn to use if we can
1796         use direct move instructions.
1797         (reload_gpr_vsx): Likewise.
1798         (reload_vsx_gpr): Likewise.
1799         (rs6000_init_hard_regno_mode_ok): Precalculate the register type
1800         information that is a simplification of register classes.  Also
1801         precalculate direct move reload helpers.
1802         (direct_move_p): New function to return true if the operation can
1803         be done as a direct move instruciton.
1804         (quad_load_store_p): New function to return true if the operation
1805         is a quad memory operation.
1806         (rs6000_legitimize_address): If quad memory, only allow register
1807         indirect for TImode addresses.
1808         (rs6000_legitimate_address_p): Likewise.
1809         (enum reload_reg_type): Delete, replace with rs6000_reg_type.
1810         (rs6000_reload_register_type): Likewise.
1811         (register_to_reg_type): Return register type.
1812         (rs6000_secondary_reload_simple_move): New helper function for
1813         secondary reload and secondary memory needed to identify anything
1814         that is a simple move, and does not need reloading.
1815         (rs6000_secondary_reload_direct_move): New helper function for
1816         secondary reload to identify cases that can be done with several
1817         instructions via the direct move instructions.
1818         (rs6000_secondary_reload_move): New helper function for secondary
1819         reload to identify moves between register types that can be done.
1820         (rs6000_secondary_reload): Add support for quad memory operations
1821         and for direct move.
1822         (rs6000_secondary_memory_needed): Likewise.
1823         (rs6000_debug_secondary_memory_needed): Change argument names.
1824         (rs6000_output_move_128bit): New function to return the move to
1825         use for 128-bit moves, including knowing about the various
1826         limitations of quad memory operations.
1827
1828         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
1829         memory operations.  call rs6000_output_move_128bit for the actual
1830         instruciton(s) to generate.
1831         (vsx_movti_64bit): Likewise.
1832
1833         * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
1834         (UNSPEC_P8V_MTVSRWZ): Likewise.
1835         (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
1836         (UNSPEC_P8V_MTVSRD): Likewise.
1837         (UNSPEC_P8V_XXPERMDI): Likewise.
1838         (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
1839         (UNSPEC_FUSION_GPR): Likewise.
1840         (FMOVE128_GPR): New iterator for direct move.
1841         (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
1842         (f32_sv): Likewise.
1843         (f32_dm): Likewise.
1844         (zero_extend<mode>di2_internal1): Add support for power8 32-bit
1845         loads and direct move instructions.
1846         (zero_extendsidi2_lfiwzx): Likewise.
1847         (extendsidi2_lfiwax): Likewise.
1848         (extendsidi2_nocell): Likewise.
1849         (floatsi<mode>2_lfiwax): Likewise.
1850         (lfiwax): Likewise.
1851         (floatunssi<mode>2_lfiwzx): Likewise.
1852         (lfiwzx): Likewise.
1853         (fix_trunc<mode>_stfiwx): Likewise.
1854         (fixuns_trunc<mode>_stfiwx): Likewise.
1855         (mov<mode>_hardfloat, 32-bit floating point): Likewise.
1856         (mov<move>_hardfloat64, 64-bit floating point): Likewise.
1857         (parity<mode>2_cmpb): Set length/type attr.
1858         (unnamed shift right patterns, mov<mode>_internal2): Change type attr
1859         for 'mr.' to fast_compare.
1860         (bpermd_<mode>): Change type attr to popcnt.
1861         (p8_fmrgow_<mode>): New insns for power8 direct move support.
1862         (p8_mtvsrwz_1): Likewise.
1863         (p8_mtvsrwz_2): Likewise.
1864         (reload_fpr_from_gpr<mode>): Likewise.
1865         (p8_mtvsrd_1): Likewise.
1866         (p8_mtvsrd_2): Likewise.
1867         (p8_xxpermdi_<mode>): Likewise.
1868         (reload_vsx_from_gpr<mode>): Likewise.
1869         (reload_vsx_from_gprsf): Likewise.
1870         (p8_mfvsrd_3_<mode>): LIkewise.
1871         (reload_gpr_from_vsx<mode>): Likewise.
1872         (reload_gpr_from_vsxsf): Likewise.
1873         (p8_mfvsrd_4_disf): Likewise.
1874         (multi-word GPR splits): Do not split direct moves or quad memory
1875         operations.
1876
1877 2013-06-10  David Malcolm  <dmalcolm@redhat.com>
1878
1879         * tree-into-ssa.c (interesting_blocks): Make static.
1880
1881 2013-06-10  Jakub Jelinek  <jakub@redhat.com>
1882
1883         PR target/56564
1884         * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
1885         CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
1886         Use DATA_ABI_ALIGNMENT for that case instead if defined.
1887         (get_variable_align): New function.
1888         (get_variable_section, emit_bss, emit_common,
1889         assemble_variable_contents, place_block_symbol): Use
1890         get_variable_align instead of DECL_ALIGN.
1891         (assemble_noswitch_variable): Add align argument, use it
1892         instead of DECL_ALIGN.
1893         (assemble_variable): Adjust caller.  Use get_variable_align
1894         instead of DECL_ALIGN.
1895         * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
1896         caller.
1897         (DATA_ABI_ALIGNMENT): Define.
1898         * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
1899         * config/i386/i386.c (x86_data_alignment): Add opt argument.  If
1900         opt is false, only return the psABI mandated alignment increase.
1901         * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
1902         (DATA_ABI_ALIGNMENT): ... this.
1903         * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
1904         (DATA_ABI_ALIGNMENT): ... this.
1905         * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
1906         * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
1907         (DATA_ABI_ALIGNMENT): ... this.
1908         * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
1909         * doc/tm.texi: Regenerated.
1910
1911 2013-06-10  Uros Bizjak  <ubizjak@gmail.com>
1912
1913         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
1914         cmp_code to construct REG_EQUAL note.
1915
1916 2013-06-09  Jakub Jelinek  <jakub@redhat.com>
1917
1918         PR target/57568
1919         * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
1920         that operands[2] doesn't overlap with operands[0].
1921
1922 2013-06-09  David Edelsohn  <dje.gcc@gmail.com>
1923             Jan Hubicka  <jh@suse.cz>
1924
1925         * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
1926         hack to mark symbols as used.
1927
1928 2013-06-08  Vladimir Makarov  <vmakarov@redhat.com>
1929
1930         PR rtl-optimization/57559
1931         * lra-constraints.c (process_alt_operands): Don't discourage
1932         memory with known offset for offsetable memory constraint.
1933         * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
1934
1935 2013-06-08  Eric Botcazou  <ebotcazou@adacore.com>
1936
1937         * varasm.c (struct oc_local_state): Reorder fields.
1938         (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
1939         and adjust accordingly.
1940         (output_constructor): Reorder initialization code and adjust call to
1941         output_constructor_bitfield.
1942
1943 2013-06-07  Jan Hubicka  <jh@suse.cz>
1944
1945         * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
1946
1947 2013-06-07  David Malcolm  <dmalcolm@redhat.com>
1948
1949         * tree-object-size.c (unknown): Make const.
1950
1951 2013-06-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1952
1953         * config/s390/s390.md (cpu_facility): Add cpu_zarch.
1954         ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
1955         for last alternative in the cpu_facility attribute.
1956
1957 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1958
1959         PR target/56315
1960         * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
1961         (xordi3): Change operand 2 constraint to arm_xordi_operand.
1962         * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
1963         * config/arm/constraints.md (Dg): New constraint.
1964         * config/arm/neon.md (xordi3_neon): Remove.
1965         (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
1966         * config/arm/predicates.md (arm_xordi_operand): New predicate.
1967
1968 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1969
1970         * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
1971         Clean up alternatives.
1972
1973 2013-06-07  Alan Modra  <amodra@gmail.com>
1974
1975         * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
1976         va_list_gpr_size.
1977
1978 2013-06-07  Alan Modra  <amodra@gmail.com>
1979
1980         * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
1981
1982 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1983
1984         * config/arm/constraints.md (Df): New constraint.
1985         * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
1986         Correct length attribute for last two alternatives.
1987
1988 2013-06-07  Alan Modra  <amodra@gmail.com>
1989
1990         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
1991         override user -mfp-in-toc.
1992         (offsettable_ok_by_alignment): Consider just the current access
1993         rather than the whole object, unless BLKmode.  Handle
1994         CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
1995         (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
1996         for -mcmodel=medium.
1997         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
1998         override user -mfp-in-toc or -msum-in-toc.  Default to
1999         -mno-fp-in-toc for -mcmodel=medium.
2000
2001 2013-06-06  DJ Delorie  <dj@redhat.com>
2002
2003         * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
2004         TARGET_VALID_POINTER_MODE.
2005
2006 2013-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
2007             Pat Haugen <pthaugen@us.ibm.com>
2008             Peter Bergner <bergner@vnet.ibm.com>
2009
2010         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
2011         Document new power8 builtins.
2012
2013         * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
2014         condition code register, to allow 128-bit logical operations to be
2015         done in the VSX or GPR registers.
2016         (nor<mode>3): Use the canonical form for nor.
2017         (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
2018         vclz*, and vpopcnt* vector instructions.
2019         (nand<mode>3): Likewise.
2020         (orc<mode>3): Likewise.
2021         (clz<mode>2): LIkewise.
2022         (popcount<mode>2): Likewise.
2023
2024         * config/rs6000/predicates.md (int_reg_operand): Rework tests so
2025         that only the GPRs are recognized.
2026
2027         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2028         support for new power8 builtins.
2029
2030         * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
2031         builtin functions.
2032         (xscvdpspn): Likewise.
2033         (vclz): Likewise.
2034         (vclzb): Likewise.
2035         (vclzh): Likewise.
2036         (vclzw): Likewise.
2037         (vclzd): Likewise.
2038         (vpopcnt): Likewise.
2039         (vpopcntb): Likewise.
2040         (vpopcnth): Likewise.
2041         (vpopcntw): Likewise.
2042         (vpopcntd): Likewise.
2043         (vgbbd): Likewise.
2044         (vmrgew): Likewise.
2045         (vmrgow): Likewise.
2046         (eqv): Likewise.
2047         (eqv_v16qi3): Likewise.
2048         (eqv_v8hi3): Likewise.
2049         (eqv_v4si3): Likewise.
2050         (eqv_v2di3): Likewise.
2051         (eqv_v4sf3): Likewise.
2052         (eqv_v2df3): Likewise.
2053         (nand): Likewise.
2054         (nand_v16qi3): Likewise.
2055         (nand_v8hi3): Likewise.
2056         (nand_v4si3): Likewise.
2057         (nand_v2di3): Likewise.
2058         (nand_v4sf3): Likewise.
2059         (nand_v2df3): Likewise.
2060         (orc): Likewise.
2061         (orc_v16qi3): Likewise.
2062         (orc_v8hi3): Likewise.
2063         (orc_v4si3): Likewise.
2064         (orc_v2di3): Likewise.
2065         (orc_v4sf3): Likewise.
2066         (orc_v2df3): Likewise.
2067
2068         * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
2069         allow power8 quad mode in 64-bit.
2070         (rs6000_builtin_vectorized_function): Add support to vectorize
2071         ISA 2.07 count leading zeros, population count builtins.
2072         (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
2073         V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
2074         (builtin_function_type): Add vgbbd builtin function which takes an
2075         unsigned argument.
2076         (altivec_expand_vec_perm_const): Add support for new power8 merge
2077         instructions.
2078
2079         * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
2080         that does not include TImdoe for use with 32-bit.
2081         (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
2082         instructions.
2083         (UNSPEC_VSX_CVDPSPN): Likewise.
2084         (vsx_xscvdpspn): Likewise.
2085         (vsx_xscvspdpn): Likewise.
2086         (vsx_xscvdpspn_scalar): Likewise.
2087         (vsx_xscvspdpn_directmove): Likewise.
2088         (vsx_and<mode>3): Split logical operations into 32-bit and
2089         64-bit. Add support to do logical operations on TImode as well as
2090         VSX vector types.  Allow logical operations to be done in either
2091         VSX registers or in general purpose registers in 64-bit mode.  Add
2092         splitters if GPRs were used. For AND, add clobber of CCmode to
2093         allow use of ANDI on GPRs.  Rewrite nor to use the canonical RTL
2094         encoding.
2095         (vsx_and<mode>3_32bit): Likewise.
2096         (vsx_and<mode>3_64bit): Likewise.
2097         (vsx_ior<mode>3): Likewise.
2098         (vsx_ior<mode>3_32bit): Likewise.
2099         (vsx_ior<mode>3_64bit): Likewise.
2100         (vsx_xor<mode>3): Likewise.
2101         (vsx_xor<mode>3_32bit): Likewise.
2102         (vsx_xor<mode>3_64bit): Likewise.
2103         (vsx_one_cmpl<mode>2): Likewise.
2104         (vsx_one_cmpl<mode>2_32bit): Likewise.
2105         (vsx_one_cmpl<mode>2_64bit): Likewise.
2106         (vsx_nor<mode>3): Likewise.
2107         (vsx_nor<mode>3_32bit): Likewise.
2108         (vsx_nor<mode>3_64bit): Likewise.
2109         (vsx_andc<mode>3): Likewise.
2110         (vsx_andc<mode>3_32bit): Likewise.
2111         (vsx_andc<mode>3_64bit): Likewise.
2112         (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
2113         and xxlorc instructions.
2114         (vsx_eqv<mode>3_64bit): Likewise.
2115         (vsx_nand<mode>3_32bit): Likewise.
2116         (vsx_nand<mode>3_64bit): Likewise.
2117         (vsx_orc<mode>3_32bit): Likewise.
2118         (vsx_orc<mode>3_64bit): Likewise.
2119
2120         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
2121
2122         * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
2123         instruction.
2124         (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
2125         (p8_vmrgow): Likewise.
2126         (altivec_and<mode>3): Add clobber of CCmode to allow AND using
2127         GPRs to be split under VSX.
2128         (p8v_clz<mode>2): Add power8 count leading zero support.
2129         (p8v_popcount<mode>2): Add power8 population count support.
2130         (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
2131         support.
2132
2133         * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
2134         instruction.
2135
2136         * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
2137         builtin functions.
2138         (vec_nand): Likewise.
2139         (vec_vclz): Likewise.
2140         (vec_vclzb): Likewise.
2141         (vec_vclzd): Likewise.
2142         (vec_vclzh): Likewise.
2143         (vec_vclzw): Likewise.
2144         (vec_vgbbd): Likewise.
2145         (vec_vmrgew): Likewise.
2146         (vec_vmrgow): Likewise.
2147         (vec_vpopcnt): Likewise.
2148         (vec_vpopcntb): Likewise.
2149         (vec_vpopcntd): Likewise.
2150         (vec_vpopcnth): Likewise.
2151         (vec_vpopcntw): Likewise.
2152
2153 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
2154
2155         PR rtl-optimization/57468
2156         * config/i386/i386.c (inline_secondary_memory_needed): Ignore
2157         spilled pseudos.
2158
2159 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
2160
2161         PR rtl-optimization/57459
2162         * lra-constraints.c (update_ebb_live_info): Fix typo for operand
2163         type when setting live regs.
2164
2165 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
2166
2167         * config/s390/s390.opt (mlra): New option.
2168         * config/s390/s390.c (s390_decompose_address): Check displacement
2169         for all registers for LRA.
2170         (s390_secondary_reload): Don't used secondary reloads for LRA.
2171         (s390_lra_p): New function.
2172         (TARGET_LRA_P): Define.
2173         * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
2174         of attribute cpu_facility to zarch for the last alternative.
2175         (*cmpmem_short): Ditto.
2176
2177 2013-06-06  Eric Botcazou  <ebotcazou@adacore.com>
2178
2179         * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
2180         (arm_compute_static_chain_stack_bytes): Use it.  Tidy up.
2181         (arm_expand_prologue): Likewise.
2182
2183 2013-06-06  Teresa Johnson  <tejohnson@google.com>
2184
2185         PR c++/53743
2186         * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
2187         as this is now done by redirect_edge_and_branch_force.
2188         * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
2189         barriers, and fix interaction with splitting.
2190         * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
2191         * cfgcleanup.c (try_forward_edges): Fix early return value to properly
2192         reflect changes made in the routine.
2193         * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
2194         (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
2195         since this is called in cfglayout mode, and replace partition fixup
2196         with assert as that is now done by force_nonfallthru_and_redirect.
2197         (add_reg_crossing_jump_notes): Handle the fact that some jumps may
2198         already be marked with region crossing note.
2199         (insert_section_boundary_note): Make non-static, gate on flag
2200         has_bb_partition, rewrite to also check for multiple partitions.
2201         (rest_of_handle_reorder_blocks): Remove call to
2202         insert_section_boundary_note, now done later during free_cfg.
2203         (duplicate_computed_gotos): Don't duplicate partition crossing edge.
2204         * bb-reorder.h (insert_section_boundary_note): Declare.
2205         * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
2206         * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
2207         invoke insert_section_boundary_note.
2208         (try_redirect_by_replacing_jump): Remove unnecessary
2209         check for region crossing note.
2210         (fixup_partition_crossing): New function.
2211         (rtl_redirect_edge_and_branch): Fixup partition boundaries.
2212         (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
2213         in non-cfglayout mode.
2214         (force_nonfallthru_and_redirect): Fixup partition boundaries,
2215         remove old code that tried to do this. Emit barrier correctly
2216         when we are in cfglayout mode.
2217         (last_bb_in_partition): New function.
2218         (rtl_split_edge): Correctly fixup partition boundaries.
2219         (commit_one_edge_insertion): Remove old code that tried to
2220         fixup region crossing edge since this is now handled in
2221         split_block, and set up insertion point correctly since
2222         block may now end in a jump.
2223         (verify_hot_cold_block_grouping): Guard against checking when not in
2224         linearized RTL mode.
2225         (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
2226         notes.
2227         (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
2228         rtl_verify_flow_info, so not called in cfglayout mode.
2229         (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
2230         (fixup_reorder_chain): Remove old code that attempted to fixup region
2231         crossing note as this is now handled in force_nonfallthru_and_redirect.
2232         (duplicate_insn_chain): Don't duplicate switch section notes.
2233         (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
2234         note.
2235         * basic-block.h (emit_barrier_after_bb): Declare.
2236
2237 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2238
2239         * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
2240         sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
2241         arm_usatsihi): Adjust alternatives for arm_restrict_it.
2242
2243 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2244
2245         * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
2246         where appropriate.
2247         * config/arm/ldmstm.md: Regenerate.
2248
2249 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2250
2251         * config/arm/sync.md (atomic_loaddi_1):
2252         Disable predication for arm_restrict_it.
2253         (arm_load_exclusive<mode>): Likewise.
2254         (arm_load_exclusivesi): Likewise.
2255         (arm_load_exclusivedi): Likewise.
2256         (arm_load_acquire_exclusive<mode>): Likewise.
2257         (arm_load_acquire_exclusivesi): Likewise.
2258         (arm_load_acquire_exclusivedi): Likewise.
2259         (arm_store_exclusive<mode>): Likewise.
2260         (arm_store_exclusive<mode>): Likewise.
2261         (arm_store_release_exclusivedi): Likewise.
2262         (arm_store_release_exclusive<mode>): Likewise.
2263
2264 2013-06-06  Richard Biener  <rguenther@suse.de>
2265
2266         * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
2267         after LTO_null.
2268         (lto_tag_is_tree_code_p): Adjust.
2269         (lto_tag_is_gimple_code_p): Likewise.
2270         (lto_gimple_code_to_tag): Likewise.
2271         (lto_tag_to_gimple_code): Likewise.
2272         (lto_tree_code_to_tag): Likewise.
2273         (lto_tag_to_tree_code): Likewise.
2274         * data-streamer.h (streamer_write_hwi_in_range): Use
2275         uhwi streaming to stream the normalized range.
2276         (streamer_read_hwi_in_range): Likewise.
2277
2278 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2279
2280         * config/arm/arm.md (enabled_for_depr_it): New attribute.
2281         (predicable_short_it): Likewise.
2282         (predicated): Likewise.
2283         (enabled): Handle above.
2284         (define_cond_exec): Set predicated attribute to yes.
2285
2286 2013-06-05  Mike Stump  <mikestump@comcast.net>
2287
2288         * gdbinit.in (__FUNCTION__): Add.
2289
2290 2013-06-05  Uros Bizjak  <ubizjak@gmail.com>
2291
2292         * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
2293         GE, GT, GEU and GTU compares, modulo DImode compares with zero.
2294
2295 2013-06-05  Jan Hubicka  <jh@suse.cz>
2296
2297         * varasm.c (mark_decl_referenced): Revert the removal until targets
2298         are fixed.
2299
2300 2013-06-05  David Edelsohn  <dje.gcc@gmail.com>
2301
2302         * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
2303         instead of mark_decl_referenced.
2304
2305 2013-06-05  Jan Hubicka  <jh@suse.cz>
2306
2307         * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
2308         (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
2309         and symtab_used_from_object_file_p.
2310         (cgraph_make_node_local_1): Clear forced_by_abi.
2311         (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
2312         * cgraph.h (symtab_node_base): Add forced_by_abi.
2313         (decide_is_variable_needed): Remove.
2314         (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
2315         * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
2316         (decide_is_symbol_needed): ... this one; handle symbols in general;
2317         always analyze virtuals; honnor forced_by_abi.
2318         (cgraph_finalize_function): Update.
2319         (varpool_finalize_decl): Update.
2320         (symbol_defined_and_needed): Remove.
2321         (analyze_functions): Update.
2322         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
2323         output_refs, input_overwrite_node): Handle forced_by_abi.
2324         * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
2325         (address_taken_from_non_vtable_p): ... this one.
2326         (comdat_can_be_unshared_p_1): New function.
2327         (cgraph_comdat_can_be_unshared_p): Rename to ...
2328         (comdat_can_be_unshared_p): ... this one; handle symbols in general.
2329         (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
2330         (function_and_variable_visibility): Clear forced_by_abi as needed.
2331         * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
2332         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
2333         * symtab.c (dump_symtab_base): Dump forced_by_abi.
2334         * varpool.c (decide_is_variable_needed): Remove.
2335
2336 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2337
2338         * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
2339         (arm_option_override): Override arm_restrict_it where appropriate.
2340         (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
2341         * config/arm/arm.opt (mrestrict-it): New command-line option.
2342         * doc/invoke.texi: Document -mrestrict-it.
2343
2344 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
2345
2346         * tsan.c (tsan_atomic_table): Make const.
2347
2348 2013-06-05  Richard Biener  <rguenther@suse.de>
2349
2350         * tree-streamer.c (streamer_tree_cache_insert_1): Update the
2351         index associated with the tree we are supposed to replace.
2352         * tree-streamer-out.c (pack_ts_base_value_fields): Output
2353         TREE_ASM_WRITTEN as zero for everything but SSA names.
2354
2355 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
2356
2357         * tree-ssa-structalias.c (call_stmt_vars): Make static.
2358
2359 2013-06-04  Jan Hubicka  <jh@suse.cz>
2360
2361         * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
2362         (input_node, input_varpool_node): Handle correctly external same
2363         body aliases.
2364         * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
2365         nodes at ltrans stage.
2366
2367 2013-06-04  Jan Hubicka  <jh@suse.cz>
2368
2369         * ipa-inline.c (update_caller_keys): Fix availability test.
2370         (update_callee_keys): Likewise.
2371         * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
2372         to follow ELF standard.
2373
2374 2013-06-04  Jürgen Urban  <JuergenUrban@gmx.de>
2375
2376         * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
2377         (mips64r5900el-*-elf*): New configurations.
2378         * config/mips/mips-cpus.def (r5900): New processor.
2379         * config/mips/mips-tables.opt: Regenerate.
2380         * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
2381         (mips_issue_rate): Handle PROCESSOR_R5900.
2382         (mips_reorg_process_insns): Force reorder mode for the R5900.
2383         * config/mips/mips.h (TARGET_MIPS5900): Define.
2384         (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
2385         TARGET_MIPS5900.
2386         (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
2387         TARGET_MIPS5900.
2388         * config/mips/mips.md (processor): Add r5900.
2389         (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
2390
2391 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
2392
2393         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
2394         into function to generate MOVI instruction.
2395         * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
2396         (aarch64_preferred_simd_mode): Turn into wrapper.
2397         (aarch64_output_scalar_simd_mov_immediate): New function.
2398         * config/aarch64/aarch64-protos.h: Add prototype for above.
2399
2400 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
2401
2402         * config/aarch64/aarch64.c (simd_immediate_info): Remove
2403         element_char member.
2404         (sizetochar): Return signed char.
2405         (aarch64_simd_valid_immediate): Remove elchar and other
2406         unnecessary variables.
2407         (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
2408         Calculate element_char as required.
2409         * config/aarch64/aarch64-protos.h: Update and move prototype
2410         for aarch64_output_simd_mov_immediate.
2411         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
2412         Update arguments.
2413
2414 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
2415
2416         * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
2417         information completed by aarch64_simd_valid_immediate.
2418         (aarch64_legitimate_constant_p): Update arguments.
2419         (aarch64_simd_valid_immediate): Work with struct rather than many
2420         pointers.
2421         (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
2422         (aarch64_simd_make_constant): Update arguments.
2423         (aarch64_output_simd_mov_immediate): Work with struct rather than
2424         many pointers.  Output immediate directly rather than as operand.
2425         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
2426         Update prototype.
2427         * config/aarch64/constraints.md (Dn): Update arguments.
2428
2429 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
2430
2431         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
2432         longer static.
2433         (aarch64_simd_immediate_valid_for_move): Remove.
2434         (aarch64_simd_scalar_immediate_valid_for_move): Update call.
2435         (aarch64_simd_make_constant): Update call.
2436         (aarch64_output_simd_mov_immediate): Update call.
2437         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
2438         Add prototype.
2439         * config/aarch64/constraints.md (Dn): Update call.
2440
2441 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
2442
2443         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
2444         return type to bool for prototype.
2445         (aarch64_legitimate_constant_p): Check for true instead of not -1.
2446         (aarch64_simd_valid_immediate): Fix up each return to return a bool.
2447         (aarch64_simd_immediate_valid_for_move): Update retval for bool.
2448
2449 2013-06-04  Catherine Moore  <clm@codesourcery.com>
2450
2451         * config/mips/mips.opt (meva): New.
2452         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
2453         (ASM_SPEC): Handle -meva.
2454         * doc/invoke.texi (meva):  Document.
2455
2456 2013-06-04  Alan Modra  <amodra@gmail.com>
2457
2458         * config/rs6000/rs6000.c (output_toc): Correct little-endian float
2459         constant output.
2460
2461 2013-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2462
2463         * rtl.def: Add extra fourth optional field to define_cond_exec.
2464         * gensupport.c (process_one_cond_exec): Process attributes from
2465         define_cond_exec.
2466         * doc/md.texi: Document fourth field in define_cond_exec.
2467
2468 2013-06-04  Eric Botcazou  <ebotcazou@adacore.com>
2469
2470         * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
2471         out the processing order as in store_bit_field_1.
2472
2473 2013-06-04  Jan Hubicka  <jh@suse.cz>
2474
2475         PR middle-end/57500
2476         * cgraphunit.c (cgraph_process_same_body_aliases): Create
2477         non-VAR_DECL node if it does not exist yet.
2478
2479 2013-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
2480
2481         * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
2482         (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
2483         (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
2484         target_cpu_default setting.
2485
2486 2013-06-03  Teresa Johnson  <tejohnson@google.com>
2487
2488         * dumpfile.c (opt_info_switch_p): Change -fopt-info
2489         default to -fopt-info=optimized instead of all.
2490         * doc/invoke.texi: Ditto.
2491         * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
2492         success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
2493         (execute_vect_slp): Emit BB vectorization success under
2494         MSG_OPTIMIZED_LOCATIONS.
2495         * tree-vect-slp.c (vect_slp_transform_bb): Change
2496         MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
2497         * tree-vect-loop.c (vect_transform_loop): Ditto.
2498
2499 2013-06-03  Jason Merrill  <jason@redhat.com>
2500
2501         PR c++/57415
2502         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2503         Use TARGET_EXPR for C++.
2504
2505 2013-06-03  Jakub Jelinek  <jakub@redhat.com>
2506
2507         PR rtl-optimization/57268
2508         * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
2509         if DEBUG_INSN_P (insn).
2510
2511         Reapply
2512         2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
2513
2514         PR rtl-optimization/57268
2515         * sched-deps.c (sched_analyze_2): Flush dependence lists if
2516         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2517
2518 2013-06-03  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
2519
2520         * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
2521         (ix86_avoid_lea_for_addr): Likewise.
2522         (exact_dependency_1): Likewise.
2523         (ix86_adjust_cost): Likewise.
2524         (swap_top_of_ready_list): Fix formatting and !reload_completed check
2525         removed.
2526         (do_reorder_for_imul): Fix typo, formatting and
2527         !reload_completed check removed.
2528         (ix86_sched_reorder): Fix typo and formatting.
2529         (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
2530         list.
2531
2532 2013-06-03  Sofiane Naci  <sofiane.naci@arm.com>
2533
2534         * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
2535
2536 2013-06-03  Eric Botcazou  <ebotcazou@adacore.com>
2537
2538         * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
2539         <STRING_CST>: Likewise.
2540         <VECTOR_CST>: Likewise.
2541
2542 2013-06-01  Janus Weil  <janus@gcc.gnu.org>
2543             Mikael Morin  <mikael@gcc.gnu.org>
2544
2545         * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
2546         * config.in: Regenerated.
2547         * configure: Regenerated.
2548
2549 2013-06-01  Jan Hubicka  <jh@suse.cz>
2550
2551         PR middle-end/57366
2552         * cgraphunit.c (compile): When weakref is not supported,
2553         set up transparent aliases before final output pass.
2554         * varasm.c (assemble_alias): Do not try to do it here.
2555
2556 2013-06-01  Jan Hubicka  <jh@suse.cz>
2557
2558         PR middle-end/57467
2559         * passes.c (for_per_function): Skip unanalyzed functions.
2560
2561 2013-06-01  Jan Hubicka  <jh@suse.cz>
2562
2563         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
2564         (lto_symtab_merge_symbols_1): ... this one.
2565         (lto_symtab_merge_cgraph_nodes): Rename to ...
2566         (lto_symtab_merge_symbols): ... this one; simplify.
2567         * cgraph.c (same_body_aliases_done): Rename to ...
2568         (cpp_implicit_aliases_done): ... this one.
2569         (cgraph_create_function_alias): Update.
2570         (cgraph_same_body_alias): Update.
2571         (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
2572         (verify_edge_corresponds_to_fndecl): Simplify.
2573         * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
2574         (cgraph_node): Remove same_body_alias.
2575         (varpool_node): Remove alias_of and extra_name_alias.
2576         (same_body_aliases_done): Rename to ..
2577         (cpp_implicit_aliases_done): ... this one.
2578         (symtab_alias_ultimate_target): Add default parameter.
2579         (symtab_resolve_alias): New function.
2580         (fixup_same_cpp_alias_visibility): Declare.
2581         (cgraph_function_node): Add default parameter.
2582         (cgraph_node_asm_name): Likewise.
2583         (cgraph_function_or_thunk_node): Add default parameter; do
2584         not ICE when it is NULL.
2585         (varpool_variable_node): Likewise.
2586         * tree-emutls.c (create_emultls_var): Update.
2587         (ipa_lower_emutls): Update.
2588         * cgraphunit.c (cgraph_decide_is_function_needed): Update.
2589         (cgraph_reset_node): Reset alias info.
2590         (cgraph_finalize_function): Update.
2591         (fixup_same_cpp_alias_visibility): Move to symtab.c.
2592         (analyze_function): Simplify.
2593         (cgraph_process_same_body_aliases): Simplify.
2594         (analyze_functions): Fixup same body aliases.
2595         (handle_alias_pairs): Simplify.
2596         (assemble_thunk): Update.
2597         (assemble_thunks_and_aliases): Update.
2598         (output_weakrefs): Rewrite.
2599         * lto-cgraph.c (lto_output_node): Rewrite alias handling.
2600         (lto_output_varpool_node): Likewise.
2601         (compute_ltrans_boundary): Remve assert.
2602         (get_alias_symbol): New functoin.
2603         (input_node): Rewrite alias handling.
2604         (input_varpool_node): Likewise.
2605         * ipa-pure-const.c (propagate_pure_const): Fix formating.
2606         * ipa.c (process_references): Handle weakrefs correctly.
2607         (symtab_remove_unreachable_nodes): Likewise.
2608         * trans-mem.c (get_cg_data): Update.
2609         (ipa_tm_create_version_alias): Update.
2610         (ipa_tm_execute): Update.
2611         * symtab.c (dump_symtab_base): Dump aliases.
2612         (verify_symtab_base): Verify aliases.
2613         (symtab_node_availability): New function.
2614         (symtab_alias_ultimate_target): Simplify.
2615         (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
2616         handle all the fixup cases.
2617         (symtab_resolve_alias): New function.
2618         * passes.c (ipa_write_summaries): Handle weakrefs.
2619         * varpool.c (varpool_analyze_node): Simplify.
2620         (assemble_aliases): Update.
2621         (varpool_create_variable_alias): Simplify.
2622         (varpool_extra_name_alias): Simplify.
2623         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
2624         (lto_symtab_merge_symbols): ... this one.
2625
2626 2013-06-01  Dinar Temirbulatov  <dinar@kugelworks.com>
2627
2628         Revert
2629         PR rtl-optimization/57268
2630         * sched-deps.c (sched_analyze_2): Flush dependence lists if
2631         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2632
2633 2013-06-01  Tobias Burnus  <burnus@net-b.de>
2634
2635         Partially reverted:
2636         2013-05-31  Tobias Burnus  <burnus@net-b.de>
2637
2638         PR middle-end/57073
2639         * tree-ssa-math-opts.c (execute_cse_sincos): Move check
2640         further up.
2641
2642 2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
2643
2644         PR rtl-optimization/57268
2645         * sched-deps.c (sched_analyze_2): Flush dependence lists if
2646         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2647
2648 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
2649
2650         * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
2651         unordered comparison operators when -fno-trapping-math is in effect
2652         on the e500.
2653         * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
2654         and implement unordered comparison operators properly on the e500.
2655
2656 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
2657
2658         * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
2659         for constant scalar integers.
2660         (simplify_relational_operation_1): Likewise.
2661
2662 2013-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
2663
2664         * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
2665         * config/rs6000/rs6000.md (cpu): Reorder.  Split long line.
2666         Fix comment.
2667
2668 2013-05-31  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
2669             Igor Zamyatin  <igor.zamyatin@intel.com>
2670
2671         Silvermont (SLM) architecture performance tuning.
2672         * config/i386/i386.h (enum ix86_tune_indices): Add
2673         X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
2674         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
2675
2676         * config/i386/i386.c (initial_ix86_tune_features)
2677         <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
2678         (ix86_lea_outperforms): Handle Silvermont tuning.
2679         (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
2680         call.
2681         (ix86_use_lea_for_mov): Likewise.
2682         (ix86_avoid_lea_for_addr): Likewise.
2683         (ix86_lea_for_add_ok): Likewise.
2684         (exact_dependency_1): New function.
2685         (exact_store_load_dependency): Likewise.
2686         (ix86_adjust_cost): Handle Silvermont tuning.
2687         (do_reoder_for_imul): Likewise.
2688         (swap_top_of_ready_list): New function.
2689         (ix86_sched_reorder): Changed to handle Silvermont tuning.
2690
2691         * config/i386/i386.md (peepholes that split memory operand in fp
2692         converts): New.
2693
2694 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2695
2696         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2697         Remove un-necessary braces.
2698
2699 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2700
2701         * config/aarch64/aarch64.c (aarch64_classify_symbol):
2702         Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
2703
2704 2013-05-31  Tobias Burnus  <burnus@net-b.de>
2705
2706         PR middle-end/57073
2707         * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
2708
2709 2013-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2710
2711         PR target/56315
2712         * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
2713         * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
2714         * config/arm/neon.md (iordi3_neon): Remove.
2715         (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
2716         * config/arm/predicates.md (imm_for_neon_logic_operand):
2717         Move to earlier in the file.
2718         (neon_logic_op2): Likewise.
2719         (arm_iordi_operand_neon): New predicate.
2720
2721 2013-05-31  Richard Biener  <rguenther@suse.de>
2722
2723         PR tree-optimization/57478
2724         PR tree-optimization/57453
2725         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
2726         are life as well.
2727
2728 2013-05-31  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
2729
2730         * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
2731         (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
2732
2733 2013-05-30  Tobias Burnus  <burnus@net-b.de>
2734             Thomas Koenig  <tkoenig@gcc.gnu.org>
2735
2736         PR middle-end/57073
2737         * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
2738         powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
2739
2740 2013-05-30  Steven Bosscher  <steven@gcc.gnu.org>
2741
2742         * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
2743
2744 2013-05-30  Vladimir Makarov  <vmakarov@redhat.com>
2745
2746         * target.def (register_usage_leveling_p): New hook.
2747         * targhooks.c (default_register_usage_leveling_p): New.
2748         * targhooks.h (default_register_usage_leveling_p): New prototype.
2749         * lra-assigns.c (register_usage_leveling_p): Use the hook.
2750         * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
2751         * doc/tm.texi: Update.
2752         * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
2753
2754 2013-05-30  Ian Bolton  <ian.bolton@arm.com>
2755
2756         * config/aarch64/aarch64.md (insv<mode>): New define_expand.
2757         (*insv_reg<mode>): New define_insn.
2758
2759 2013-05-30  Joern Rennecke <joern.rennecke@embecosm.com>
2760
2761         PR rtl-optimization/57439
2762         * postreload.c (move2add_valid_value_p): Check that we have
2763         a zero subreg_regno_offset when accessing the register in
2764         the requested mode.
2765
2766 2013-05-30  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
2767             Igor Zamyatin  <igor.zamyatin@intel.com>
2768
2769         Silvermont (SLM) architecture pipeline model, tuning and
2770         insn selection.
2771         * config.gcc: Add slm config options and target.
2772
2773         * config/i386/slm.md: New.
2774
2775         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
2776
2777         * gcc/config/i386/i386-c.c (ix86_target_macros_internal):  New case
2778         PROCESSOR_SLM.
2779         (ix86_target_macros_internal): Likewise.
2780
2781         * gcc/config/i386/i386.c (slm_cost): New cost.
2782         (m_SLM): New macro flag.
2783         (initial_ix86_tune_features): Set m_SLM.
2784         (x86_accumulate_outgoing_args): Likewise.
2785         (x86_arch_always_fancy_math_387): Likewise.
2786         (processor_target_table): Add slm cost.
2787         (cpu_names): Add slm cpu name.
2788         (x86_option_override_internal): Set SLM ISA.
2789         (ix86_issue_rate): New case PROCESSOR_SLM.
2790         (ia32_multipass_dfa_lookahead): Likewise.
2791         (fold_builtin_cpu): Add slm.
2792
2793         * config/i386/i386.h (TARGET_SLM): New target macro.
2794         (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
2795         (processor_type): Add PROCESSOR_SLM.
2796
2797         * config/i386/i386.md (cpu): Add new value "slm".
2798         (slm.md): Include slm.md.
2799
2800 2013-05-30  Bernd Schmidt  <bernds@codesourcery.com>
2801             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
2802
2803         * config/arm/arm-protos.h: Add and update function protos.
2804         * config/arm/arm.c (use_simple_return_p): New added.
2805         (thumb2_expand_return): Check simple_return flag.
2806         * config/arm/arm.md: Add simple_return and conditional simple_return.
2807         * config/arm/iterators.md: Add iterator for return and simple_return.
2808
2809 2013-05-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
2810
2811         * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
2812         (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
2813         (arm_emit_vfp_multi_reg_pop): Likewise.
2814         (thumb2_emit_ldrd_pop): Likewise.
2815         (arm_expand_epilogue): Add misc REG_CFA notes.
2816         (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
2817
2818 2013-05-29  Lawrence Crowl  <crowl@google.com>
2819
2820         * config/arm/t-arm: Update for below.
2821
2822         * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
2823         Change type to hash_table.  Update dependent calls and types.
2824
2825         * config/i386/t-cygming: Update for below.
2826
2827         * config/i386/t-interix: Update for below.
2828
2829         * config/i386/winnt.c (i386_pe_section_type_flags::htab):
2830         Change type to hash_table.  Update dependent calls and types.
2831         (i386_find_on_wrapper_list::wrappers): Likewise.
2832
2833         * config/ia64/t-ia64: Update for below.
2834
2835         * config/ia64/ia64.c (bundle_state_table):
2836         Change type to hash_table.  Update dependent calls and types.
2837
2838         * config/mips/mips.c (mips_reorg_process_insns::htab):
2839         Change type to hash_table.  Update dependent calls and types.
2840
2841         * config/sol2.c (solaris_comdat_htab):
2842         Change type to hash_table.  Update dependent calls and types.
2843
2844         * config/t-sol2: Update for above.
2845
2846 2013-05-29  Teresa Johnson  <tejohnson@google.com>
2847
2848         * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
2849         functions are not yet marked as defined.
2850
2851 2013-05-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
2852             Pat Haugen <pthaugen@us.ibm.com>
2853             Peter Bergner <bergner@vnet.ibm.com>
2854
2855         * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
2856         instructions.
2857         (VEC_A): Likewise.
2858         (VEC_C): Likewise.
2859         (vrotl<mode>3): Likewise.
2860         (vashl<mode>3): Likewise.
2861         (vlshr<mode>3): Likewise.
2862         (vashr<mode>3): Likewise.
2863
2864         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2865         support for power8 V2DI builtins.
2866
2867         * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
2868         power8 V2DI builtins.
2869         (vupkhsw): Likewise.
2870         (vupklsw): Likewise.
2871         (vaddudm): Likewise.
2872         (vminsd): Likewise.
2873         (vmaxsd): Likewise.
2874         (vminud): Likewise.
2875         (vmaxud): Likewise.
2876         (vpkudum): Likewise.
2877         (vpksdss): Likewise.
2878         (vpkudus): Likewise.
2879         (vpksdus): Likewise.
2880         (vrld): Likewise.
2881         (vsld): Likewise.
2882         (vsrd): Likewise.
2883         (vsrad): Likewise.
2884         (vsubudm): Likewise.
2885         (vcmpequd): Likewise.
2886         (vcmpgtsd): Likewise.
2887         (vcmpgtud): Likewise.
2888         (vcmpequd_p): Likewise.
2889         (vcmpgtsd_p): Likewise.
2890         (vcmpgtud_p): Likewise.
2891         (vupkhsw): Likewise.
2892         (vupklsw): Likewise.
2893         (vaddudm): Likewise.
2894         (vmaxsd): Likewise.
2895         (vmaxud): Likewise.
2896         (vminsd): Likewise.
2897         (vminud): Likewise.
2898         (vpksdss): Likewise.
2899         (vpksdus): Likewise.
2900         (vpkudum): Likewise.
2901         (vpkudus): Likewise.
2902         (vrld): Likewise.
2903         (vsld): Likewise.
2904         (vsrad): Likewise.
2905         (vsrd): Likewise.
2906         (vsubudm): Likewise.
2907
2908         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
2909         support for power8 V2DI instructions.
2910
2911         * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
2912         power8 V2DI instructions.  Combine pack and unpack insns to use an
2913         iterator for each mode.  Check whether a particular mode supports
2914         Altivec instructions instead of just checking TARGET_ALTIVEC.
2915         (UNSPEC_VPKUWUM): Likewise.
2916         (UNSPEC_VPKSHSS): Likewise.
2917         (UNSPEC_VPKSWSS): Likewise.
2918         (UNSPEC_VPKUHUS): Likewise.
2919         (UNSPEC_VPKSHUS): Likewise.
2920         (UNSPEC_VPKUWUS): Likewise.
2921         (UNSPEC_VPKSWUS): Likewise.
2922         (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
2923         (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
2924         (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
2925         (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
2926         (UNSPEC_VUPKHSB): Likewise.
2927         (UNSPEC_VUNPACK_HI_SIGN): Likewise.
2928         (UNSPEC_VUNPACK_LO_SIGN): Likewise.
2929         (UNSPEC_VUPKHSH): Likewise.
2930         (UNSPEC_VUPKLSB): Likewise.
2931         (UNSPEC_VUPKLSH): Likewise.
2932         (VI2): Likewise.
2933         (VI_char): Likewise.
2934         (VI_scalar): Likewise.
2935         (VI_unit): Likewise.
2936         (VP): Likewise.
2937         (VP_small): Likewise.
2938         (VP_small_lc): Likewise.
2939         (VU_char): Likewise.
2940         (add<mode>3): Likewise.
2941         (altivec_vaddcuw): Likewise.
2942         (altivec_vaddu<VI_char>s): Likewise.
2943         (altivec_vadds<VI_char>s): Likewise.
2944         (sub<mode>3): Likewise.
2945         (altivec_vsubcuw): Likewise.
2946         (altivec_vsubu<VI_char>s): Likewise.
2947         (altivec_vsubs<VI_char>s): Likewise.
2948         (altivec_vavgs<VI_char>): Likewise.
2949         (altivec_vcmpbfp): Likewise.
2950         (altivec_eq<mode>): Likewise.
2951         (altivec_gt<mode>): Likewise.
2952         (altivec_gtu<mode>): Likewise.
2953         (umax<mode>3): Likewise.
2954         (smax<mode>3): Likewise.
2955         (umin<mode>3): Likewise.
2956         (smin<mode>3): Likewise.
2957         (altivec_vpkuhum): Likewise.
2958         (altivec_vpkuwum): Likewise.
2959         (altivec_vpkshss): Likewise.
2960         (altivec_vpkswss): Likewise.
2961         (altivec_vpkuhus): Likewise.
2962         (altivec_vpkshus): Likewise.
2963         (altivec_vpkuwus): Likewise.
2964         (altivec_vpkswus): Likewise.
2965         (altivec_vpks<VI_char>ss): Likewise.
2966         (altivec_vpks<VI_char>us): Likewise.
2967         (altivec_vpku<VI_char>us): Likewise.
2968         (altivec_vpku<VI_char>um): Likewise.
2969         (altivec_vrl<VI_char>): Likewise.
2970         (altivec_vsl<VI_char>): Likewise.
2971         (altivec_vsr<VI_char>): Likewise.
2972         (altivec_vsra<VI_char>): Likewise.
2973         (altivec_vsldoi_<mode>): Likewise.
2974         (altivec_vupkhsb): Likewise.
2975         (altivec_vupkhs<VU_char>): Likewise.
2976         (altivec_vupkls<VU_char>): Likewise.
2977         (altivec_vupkhsh): Likewise.
2978         (altivec_vupklsb): Likewise.
2979         (altivec_vupklsh): Likewise.
2980         (altivec_vcmpequ<VI_char>_p): Likewise.
2981         (altivec_vcmpgts<VI_char>_p): Likewise.
2982         (altivec_vcmpgtu<VI_char>_p): Likewise.
2983         (abs<mode>2): Likewise.
2984         (vec_unpacks_hi_v16qi): Likewise.
2985         (vec_unpacks_hi_v8hi): Likewise.
2986         (vec_unpacks_lo_v16qi): Likewise.
2987         (vec_unpacks_hi_<VP_small_lc>): Likewise.
2988         (vec_unpacks_lo_v8hi): Likewise.
2989         (vec_unpacks_lo_<VP_small_lc>): Likewise.
2990         (vec_pack_trunc_v8h): Likewise.
2991         (vec_pack_trunc_v4si): Likewise.
2992         (vec_pack_trunc_<mode>): Likewise.
2993
2994         * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
2995         V2DI builtins.
2996         (vec_vmaxsd): Likewise.
2997         (vec_vmaxud): Likewise.
2998         (vec_vminsd): Likewise.
2999         (vec_vminud): Likewise.
3000         (vec_vpksdss): Likewise.
3001         (vec_vpksdus): Likewise.
3002         (vec_vpkudum): Likewise.
3003         (vec_vpkudus): Likewise.
3004         (vec_vrld): Likewise.
3005         (vec_vsld): Likewise.
3006         (vec_vsrad): Likewise.
3007         (vec_vsrd): Likewise.
3008         (vec_vsubudm): Likewise.
3009         (vec_vupkhsw): Likewise.
3010         (vec_vupklsw): Likewise.
3011
3012 2013-05-29  Jan Hubicka  <jh@suse.cz>
3013
3014         * cgraph.h (symtab_node_base): Add definition, alias and analyzed
3015         flags; reorder rest of fields in more consistent way.
3016         (varpool_node): Remove analyzed, finalized and alias.
3017         (cgraph_ndoe): Likewise.
3018         (symtab_alias_ultimate_target): New function.
3019         (cgraph_function_node): Move offline.
3020         (cgraph_reset_node): Declare.
3021         (cgraph_comdat_can_be_unshared_p): Remove.
3022         (varpool_remove_initializer): Declare.
3023         (varpool_first_defined_variable, varpool_next_defined_variable
3024         cgraph_first_defined_function, cgraph_next_defined_function): Update.
3025         (cgraph_function_with_gimple_body_p): Update.
3026         (varpool_all_refs_explicit_p): Update.
3027         (symtab_alias_target): New function.
3028         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
3029         (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
3030         (cgraph_function_or_thunk_node): Simplify using
3031         symtab_alias_ultimate_target.
3032         (varpool_variable_node): Likewise.
3033         * cgraph.c (cgraph_create_function_alias): Update.
3034         (cgraph_add_thunk): Update.
3035         (cgraph_remove_node): Update.
3036         (dump_cgraph_node): Do not dump removed flags.
3037         (cgraph_function_body_availability): Update.
3038         (cgraph_propagate_frequency): Update.
3039         (verify_cgraph_node): Check sanity of local flag.
3040         (cgraph_function_node): Move here from cgraph.h; revamp for
3041         cgraph_function_or_thunk_node.
3042         * lto-symtab.c (lto_varpool_replace_node): Update.
3043         (lto_symtab_resolve_can_prevail_p): Update.
3044         (lto_symtab_merge_cgraph_nodes): Update.
3045         * ipa-cp.c (determine_versionability, initialize_node_lattices,
3046         propagate_constants_accross_call, devirtualization_time_bonus,
3047         ipcp_propagate_stage): Update.
3048         * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
3049         * ipa-inline-transform.c (clone_inlined_nodes,
3050         preserve_function_body_p): Update.
3051         * ipa-reference.c (propagate): Update.
3052         (write_node_summary_p): Update.
3053         * toplev.c (wrapup_global_declaration_2): Update.
3054         * cgraphunit.c (cgraph_analyze_function): Rename to ...
3055         (analyze_function) ... this one.
3056         (cgraph_process_new_functions): Update.
3057         (cgraph_reset_node): Export.
3058         (cgraph_finalize_function): Update.
3059         (cgraph_add_new_function): Update.
3060         (process_function_and_variable_attributes): Update.
3061         (varpool_finalize_decl): Update.
3062         (symbol_finalized): Remove.
3063         (symbol_finalized_and_needed): Rename to ...
3064         (symbol_defined_and_needed): ... update.
3065         (cgraph_analyze_functions): Update.
3066         (handle_alias_pairs): Update.
3067         (mark_functions_to_output): Update.
3068         (assemble_thunk): Update.
3069         (output_in_order): Update.
3070         (output_weakrefs): Update.
3071         (finalize_compilation_unit): Update.
3072         * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
3073         lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
3074         input_node, input_varpool_node): Update.
3075         * dbxout.c (dbxout_expand_expr): Update.
3076         * cgraphclones.c (cgraph_clone_node): Update.
3077         (cgraph_copy_node_for_versioning): Update.
3078         (cgraph_materialize_clone): Update.
3079         (cgraph_materialize_all_clones): Update.
3080         * ipa-pure-const.c (analyze_function, pure_const_write_summary,
3081         propagate_pure_const, propagate_nothrow): Update.
3082         * lto-streamer-out.c (lto_output, write_symbol): Update.
3083         * ipa-utils.c (ipa_reverse_postorder): Update.
3084         * ipa-inline.c (can_inline_edge_p): Update.
3085         (update_caller_keys, ipa_inline): Update.
3086         * dwarf2out.c (reference_to_unused,
3087         premark_types_used_by_global_vars_helper): Update.
3088         * tree-eh.c (tree_could_trap_p): Update.
3089         * ipa-split.c (consider_split, execute_split_functions): Update.
3090         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
3091         has_addr_references_p): Update; move ahead in file for better
3092         readability.
3093         (process_references): Simplify.
3094         (symtab_remove_unreachable_nodes): Update; cleanup way function/var
3095         bodies are removed.
3096         (cgraph_comdat_can_be_unshared_p): Make static.
3097         (cgraph_externally_visible_p): Update.
3098         (varpool_externally_visible_p): Update.
3099         (function_and_variable_visibility): Update.
3100         * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
3101         ipa_tm_mark_force_output_node): Update.
3102         * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
3103         estimate_edge_devirt_benefit, inline_generate_summary,
3104         inline_write_summary): Update.
3105         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
3106         * ipa-prop.c (ipa_compute_jump_functions): Update.
3107         (ipa_print_node_params, ipa_prop_read_section,
3108         ipa_update_after_lto_read, read_replacements_section): Update.
3109         * varasm.c (mark_decl_referenced): Update.
3110         (assemble_alias, dump_tm_clone_pairs): Update.
3111         * tree-inline.c (copy_bb): Update.
3112         (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
3113         Update.
3114         * symtab.c (dump_symtab_base): Print new flags.
3115         (verify_symtab_base): Verify new flags.
3116         (symtab_alias_ultimate_target): New function.
3117         * tree-ssa-structalias.c (get_constraint_for_ssa_var,
3118         create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
3119         Update.
3120         * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
3121         Update.
3122         * i386.c (ix86_get_function_versions_dispatcher,
3123         ix86_generate_version_dispatcher_body): Update.
3124         (fold_builtin_cpu): Use varpool_add_new_variable.
3125         * varpool.c (varpool_remove_initializer): Break out from ...
3126         (varpool_remove_node): ... this one.
3127         (dump_varpool_node, varpool_node_for_asm,
3128         cgraph_variable_initializer_availability, varpool_analyze_node,
3129         varpool_assemble_decl, varpool_remove_unreferenced_decls,
3130         varpool_finalize_named_section_flags, varpool_create_variable_alias):
3131         Update.
3132
3133 2013-05-29  Jan Hubicka  <jh@suse.cz>
3134
3135         * passes.c (init_optimization_passes): Move OMP expansion into lowering.
3136
3137 2013-05-29  Easwaran Raman  <eraman@google.com>
3138
3139         PR tree-optimization/57442
3140         * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
3141         when control exits the main loop.
3142
3143 2013-05-29  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
3144
3145         * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
3146         and RX600.
3147         * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
3148         * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
3149         * rx/t-rx: Add rx100 under multi library matches option for nofpu
3150         option.
3151
3152 2013-05-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3153
3154         PR tree-optimization/57441
3155         * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
3156         Don't limit size of incr_vec to number of candidates.
3157
3158 2013-05-29  Steve Ellcey  <sellcey@imgtec.com>
3159
3160         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
3161         and mips16 directories.
3162         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
3163         (MULTILIB_DIRNAMES): Ditto.
3164         (MULTILIB_EXCEPTIONS): Add new exceptions.
3165         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
3166         (MULTILIB_DIRNAMES): Ditto.
3167         (MULTILIB_EXCEPTIONS): Add new exceptions.
3168
3169 2012-05-29  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3170             Marcus Shawcroft  <marcus.shawcroft@arm.com>
3171
3172         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
3173         SYMBOL_TINY_ABSOLUTE.
3174         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
3175         SYMBOL_TINY_ABSOLUTE.
3176         (aarch64_expand_mov_immediate): Likewise.
3177         (aarch64_classify_symbol): Likewise.
3178         (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
3179         Permit SYMBOL_TINY_ABSOLUTE.
3180         * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
3181
3182 2013-05-29  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3183             Marcus Shawcroft  <marcus.shawcroft@arm.com>
3184
3185         * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
3186         Refactor if/switch.  Replace gcc_assert with if.
3187
3188 2013-05-29  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
3189
3190         * config/i386/i386.c (initial_ix86_tune_features): Enable
3191         FP Reassociation for AMD bdver1 and bdver2.
3192
3193 2013-05-29  Martin Jambor  <mjambor@suse.cz>
3194
3195         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
3196         and IMAGPART_EXPR do not occur within other handled_components.
3197
3198 2013-05-29  Richard Biener  <rguenther@suse.de>
3199
3200         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
3201         access on whether the use is in the BB we currently try to
3202         vectorize.
3203         (vect_bb_vectorization_profitable_p): Pass the BB we currently
3204         vectorize to vect_bb_slp_scalar_cost.
3205
3206 2013-05-29  Richard Biener  <rguenther@suse.de>
3207
3208         * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
3209         computing scalar cost offsetted by stmts that are kept live
3210         by scalar uses.
3211         (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
3212         for computation of scalar cost.
3213
3214 2013-05-28  Steve Ellcey  <sellcey@mips.com>
3215
3216         * config/mips/mips-cpus.def (mips32r2): Change processor type.
3217
3218 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
3219
3220         * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
3221         array notation built-in reduction functions.
3222         * doc/passes.texi (Passes): Added documentation about changes done
3223         for Cilk Plus.
3224         * doc/invoke.texi (C Dialect Options): Added documentation about
3225         the -fcilkplus flag.
3226         * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
3227         (BUILTINS_DEF): Depend on cilkplus.def.
3228         * builtins.def: Include cilkplus.def.  Define DEF_CILKPLUS_BUILTIN.
3229         * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
3230         * cilkplus.def: New file.
3231
3232 2013-05-28  Joern Rennecke <joern.rennecke@embecosm.com>
3233
3234         PR rtl-optimization/57439
3235         * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
3236
3237 2013-05-28  Easwaran Raman  <eraman@google.com>
3238
3239         PR tree-optimization/57337
3240         * tree-ssa-reassoc.c (appears_later_in_bb): New function.
3241         (find_insert_point): Correctly identify the insertion point
3242         when two statements with the same UID is compared.
3243
3244 2013-05-28  Richard Biener  <rguenther@suse.de>
3245
3246         PR tree-optimization/56787
3247         * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
3248         from the list of data references.
3249         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
3250         clobbers.
3251         (vect_analyze_loop_operations): Likewise.
3252         (vect_transform_loop): Remove clobbers.
3253
3254 2013-05-28  Martin Jambor  <mjambor@suse.cz>
3255
3256         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
3257         and REALPART_EXPRs have scalar type.
3258
3259 2013-05-28  Richard Biener  <rguenther@suse.de>
3260
3261         PR tree-optimization/57411
3262         * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
3263         virtual operands.
3264         * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
3265         virtual operand propagation.
3266
3267 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
3268
3269         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
3270         destination register for bmasksi_vis.
3271         (vector_init_bshuffle): Likewise.
3272         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
3273
3274 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
3275
3276         * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
3277         * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
3278         mode if the instruction isn't available in the original mode.
3279         * config/sparc/sparc.opt (mfix-ut699): New option.
3280         * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
3281         (divdf3): Turn into expander.
3282         (divdf3_nofix): New insn.
3283         (divdf3_fix): Likewise.
3284         (divsf3): Disable if -mfix-ut699.
3285         (sqrtdf2): Turn into expander.
3286         (sqrtdf2_nofix): New insn.
3287         (sqrtdf2_fix): Likewise.
3288         (sqrtsf2): Disable if -mfix-ut699.
3289
3290 2013-05-27  Richard Biener  <rguenther@suse.de>
3291
3292         PR middle-end/57412
3293         * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
3294         block for the new loop.
3295
3296 2013-05-27  Richard Biener  <rguenther@suse.de>
3297
3298         PR tree-optimization/57343
3299         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
3300         use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
3301         (number_of_iterations_cond): Do not build the folded tree.
3302
3303 2013-05-27  Richard Biener  <rguenther@suse.de>
3304
3305         Revert
3306         PR middle-end/57381
3307         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
3308         OEP_CONSTANT_ADDRESS_OF retained.
3309
3310         PR tree-optimization/57417
3311         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
3312         for unchanged base.
3313         (set_ssa_val_to): Compare addresses using
3314         get_addr_base_and_unit_offset.
3315
3316 2013-05-27  Joern Rennecke <joern.rennecke@embecosm.com>
3317
3318         PR rtl-optimization/56833
3319         * postreload.c (move2add_record_mode): New function.
3320         (move2add_record_sym_value, move2add_valid_value_p): Likewise.
3321         (move2add_use_add2_insn): Use move2add_record_sym_value.
3322         (move2add_use_add3_insn): Likewise.
3323         (reload_cse_move2add): Use move2add_valid_value_p and
3324         move2add_record_mode.  Invalidate call-clobbered and REG_INC
3325         affected regs by setting reg_mode to VOIDmode.
3326         (move2add_note_store): Don't pretend the inside of a SUBREG is
3327         the actual destination.  Invalidate single/leading registers by
3328         setting reg_mode to VOIDmode.
3329         Use move2add_record_sym_value, move2add_valid_value_p and
3330         move2add_record_mode.
3331
3332 2013-05-27  Richard Biener  <rguenther@suse.de>
3333
3334         PR tree-optimization/57396
3335         * tree-affine.c (double_int_constant_multiple_p): Properly
3336         return false for val == 0 and div != 0.
3337
3338 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
3339
3340         * config/mips/mips.h: Use #elif in preprocessor conditions.
3341
3342 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
3343
3344         PR target/53916
3345         * config/mips/constraints.md (kl): New constraint.
3346         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
3347         (divmod<mode>4_internal): Rename to divmod<mode>4.  Use "kl" as the
3348         constraint for operand 0.  Split after CSE for MIPS16.  Emit a move
3349         from LO for MIPS16.
3350         (udivmod<mode>4_internal): Likewise udivmod<mode>4.
3351
3352 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
3353
3354         PR target/55777
3355         * config/mips/mips.c (mips_can_inline_p): New function.
3356         (TARGET_CAN_INLINE_P): Define.
3357
3358 2013-05-25  Steven Bosscher  <steven@gcc.gnu.org>
3359
3360         * sched-int.h (ds_t, dw_t): Make unsigned int.
3361         Fix documentation that describes how all the ds_t bits are used.
3362         Reserve the last bit for delayed-branch scheduling.
3363         (BITS_PER_DEP_STATUS): Move to ds_t typedef.
3364         (BITS_PER_DEP_WEAK): Fix definition and documentation.
3365         (gen_dep_weak_1): Remove prototype.
3366         * sched-deps.c (get_dep_weak_1): Make static.
3367         * target.def (speculate_insn, needs_block_p, gen_spec_check,
3368         get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
3369         * doc/tm.texi: Regenerate.
3370         * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
3371
3372 2013-05-24  Steven Bosscher  <steven@gcc.gnu.org>
3373
3374         PR debug/56950
3375         * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
3376
3377 2013-05-24  Nathan Sidwell  <nathan@codesourcery.com>
3378             Sandra Loosemore  <sandra@codesourcery.com>
3379
3380         * config.gcc (powerpc-*): Allow native for with-cpu.
3381
3382 2013-05-24  Jeff Law  <law@redhat.com>
3383
3384         PR tree-optimization/57124
3385         * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
3386         conversion feeding a condition if the range has an overflow
3387         if -fstrict-overflow.  Add warnings for when we do make the
3388         transformation.
3389
3390 2013-05-24  Dehao Chen  <dehao@google.com>
3391
3392         * tree-cfg.c (locus_discrim_map): Fix the typo.
3393         (locus_discrim_hasher): Likewise.
3394         (locus_discrim_hasher::hash): Likewise.
3395         (locus_discrim_hasher::equal): Likewise.
3396
3397 2013-05-24  Martin Jambor  <mjambor@suse.cz>
3398
3399         PR tree-optimization/57294
3400         * cgraph.h (ipa_record_stmt_references): Declare.
3401         * cgraphbuild.c (ipa_record_stmt_references): New function.
3402         (build_cgraph_edges): Use ipa_record_stmt_references.
3403         (rebuild_cgraph_edges): Likewise.
3404         (cgraph_rebuild_references): Likewise.
3405         * ipa-prop.c (ipa_modify_call_arguments): Discard references
3406         associated with the old statement and build references from the
3407         newly built statements.
3408         * ipa-ref.c (ipa_remove_stmt_references): New function.
3409         * ipa-ref.h (ipa_remove_stmt_references): Declare.
3410
3411 2013-05-24  Vladimir Makarov  <vmakarov@redhat.com>
3412
3413         * lra-constraints.c (emit_spill_move): Use smaller mode for
3414         mem-mem moves.
3415         (check_and_process_move): Consider mem-reg moves for secondary
3416         too.
3417         (curr_insn_transform): Don't lose insns emitted before for
3418         secondary memory moves.
3419         (inherit_in_ebb): Mark defined reg.  Add usage only if it is not a
3420         reg set up in the current insn.
3421
3422 2013-05-24  Dehao Chen  <dehao@google.com>
3423
3424         * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
3425         hash function.
3426         (locus_descrim_hasher::equal): Likewise.
3427         (build_gimple_cfg): New discriminator assignment algorithm.
3428         (make_edges): Likewise.
3429         (next_discriminator_for_locus): Likewise.
3430         (same_line_p): Likewise.
3431         (assign_discriminators): Likewise.
3432         (make_cond_expr_edges): Likewise.
3433         (make_gimple_switch_edges): Likewise.
3434         (make_goto_expr_edges): Likewise.
3435         (make_gimple_asm_edges): Likewise.
3436
3437 2013-05-24  Ian Bolton  <ian.bolton@arm.com>
3438
3439         * config/aarch64/aarch64.c (aarch64_print_operand): Change the
3440         X format specifier to only display bottom 16 bits.
3441         * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
3442         immediate to match for operand 2, since it will be masked.
3443
3444 2013-05-24  Richard Biener  <rguenther@suse.de>
3445
3446         PR tree-optimization/57287
3447         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
3448         all SSA names that occur in abnormal PHIs.
3449
3450 2013-05-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3451
3452         PR tree-ssa/57385
3453         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
3454         that index is not negative.
3455
3456 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
3457
3458         PR rtl-optimization/55177
3459         * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
3460         (simplify_byte_swapping_operation): New.
3461         (simplify_binary_operation_1): Call it for AND, IOR and XOR.
3462         (simplify_relational_operation_1): Deal with BSWAP.
3463
3464 2013-05-23  Richard Henderson  <rth@redhat.com>
3465
3466         PR target/56742
3467         * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
3468         (ix86_reorg): Call it.
3469
3470 2013-05-23  Uros Bizjak  <ubizjak@gmail.com>
3471
3472         PR target/57379
3473         * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
3474         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
3475         REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
3476
3477 2013-05-23  Christian Bruel  <christian.bruel@st.com>
3478
3479         PR debug/57351
3480         * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
3481
3482 2013-05-23  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3483             Marcus Shawcroft  <marcus.shawcroft@arm.com>
3484
3485         * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
3486         * config/aarch64/constraints.md (Usa): Remove.
3487         * doc/md.texi (AArch64 Usa): Remove.
3488
3489 2013-05-23  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3490             Marcus Shawcroft  <marcus.shawcroft@arm.com>
3491
3492         * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
3493         * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
3494         * config/aarch64/predicates.md (aarch64_const_address): Remove.
3495         (aarch64_mov_operand): Use aarch64_mov_operand_p.
3496
3497 2013-05-23  Vidya Praveen <vidyapraveen@arm.com>
3498
3499         * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
3500         instruction (AdvSIMD).
3501         * config/aarch64/aarch64-builtins.c
3502         (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
3503         * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
3504
3505 2013-05-23  Martin Jambor  <mjambor@suse.cz>
3506
3507         PR middle-end/57347
3508         * tree.h (contains_bitfld_component_ref_p): Declare.
3509         * tree-sra.c (contains_bitfld_comp_ref_p): Move...
3510         * tree.c (contains_bitfld_component_ref_p): ...here.  Adjust its
3511         caller.
3512         * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
3513         not access a bit-field.  Assert all final offsets are byte-aligned.
3514
3515 2013-05-23  Richard Biener  <rguenther@suse.de>
3516
3517         PR tree-optimization/57380
3518         * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
3519         least one invariant or re-used load.
3520         * passes.c (init_optimization_passes): Move pass_phiprop before
3521         pass_forwprop.
3522
3523 2013-05-23  James Greenhalgh  <james.greenhalgh@arm.com>
3524
3525         * config/aarch64/aarch64-simd.md
3526         (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
3527
3528 2013-05-23  Richard Biener  <rguenther@suse.de>
3529
3530         PR middle-end/57381
3531         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
3532         OEP_CONSTANT_ADDRESS_OF retained.
3533
3534 2013-05-23  Jakub Jelinek  <jakub@redhat.com>
3535
3536         PR middle-end/57344
3537         * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
3538         don't lower unit.  Handle unit not being always BITS_PER_WORD.
3539
3540 2013-05-23  Richard Biener  <rguenther@suse.de>
3541
3542         PR rtl-optimization/57341
3543         * ira.c (validate_equiv_mem_from_store): Use anti_dependence
3544         instead of true_dependence.
3545
3546 2013-05-22  David Malcolm  <dmalcolm@redhat.com>
3547
3548         * bb-reorder.c (branch_threshold): Make const.
3549         (exec_threshold): Ditto.
3550
3551 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
3552             Pat Haugen <pthaugen@us.ibm.com>
3553             Peter Bergner <bergner@vnet.ibm.com>
3554
3555         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
3556         documentation for the power8 crypto builtins.
3557
3558         * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
3559
3560         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
3561         macros for defining power8 builtin functions.
3562         (BU_P8V_AV_2): Likewise.
3563         (BU_P8V_AV_P): Likewise.
3564         (BU_P8V_VSX_1): Likewise.
3565         (BU_P8V_OVERLOAD_1): Likewise.
3566         (BU_P8V_OVERLOAD_2): Likewise.
3567         (BU_CRYPTO_1): Likewise.
3568         (BU_CRYPTO_2): Likewise.
3569         (BU_CRYPTO_3): Likewise.
3570         (BU_CRYPTO_OVERLOAD_1): Likewise.
3571         (BU_CRYPTO_OVERLOAD_2): Likewise.
3572         (XSCVSPDP): Fix typo, point to the correct instruction.
3573         (VCIPHER): Add power8 crypto builtins.
3574         (VCIPHERLAST): Likewise.
3575         (VNCIPHER): Likewise.
3576         (VNCIPHERLAST): Likewise.
3577         (VPMSUMB): Likewise.
3578         (VPMSUMH): Likewise.
3579         (VPMSUMW): Likewise.
3580         (VPERMXOR_V2DI): Likewise.
3581         (VPERMXOR_V4SI: Likewise.
3582         (VPERMXOR_V8HI: Likewise.
3583         (VPERMXOR_V16QI: Likewise.
3584         (VSHASIGMAW): Likewise.
3585         (VSHASIGMAD): Likewise.
3586         (VPMSUM): Likewise.
3587         (VPERMXOR): Likewise.
3588         (VSHASIGMA): Likewise.
3589
3590         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
3591         __CRYPTO__ if the crypto instructions are available.
3592         (altivec_overloaded_builtins): Add support for overloaded power8
3593         builtins.
3594
3595         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
3596         support for power8 crypto builtins.
3597         (builtin_function_type): Likewise.
3598         (altivec_init_builtins): Add support for builtins that take vector
3599         long long (V2DI) arguments.
3600
3601         * config/rs6000/crypto.md: New file, define power8 crypto
3602         instructions.
3603
3604 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
3605             Pat Haugen <pthaugen@us.ibm.com>
3606             Peter Bergner <bergner@vnet.ibm.com>
3607
3608         * doc/invoke.texi (Option Summary): Add power8 options.
3609         (RS/6000 and PowerPC Options): Likewise.
3610
3611         * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
3612         constraints.md instead of rs6000.h.  Reorder w* constraints.  Add
3613         wm, wn, wr documentation.
3614
3615         * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
3616         registers if direct move instructions are enabled.
3617         (wn): New constraint for no registers.
3618         (wq): New constraint for quad word even GPR registers.
3619         (wr): New constraint if 64-bit instructions are enabled.
3620         (wv): New constraint if power8 vector instructions are enabled.
3621         (wQ): New constraint for quad word memory locations.
3622
3623         * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
3624         constraint for 0..15 for crypto instructions.
3625         (gpc_reg_operand): If VSX allow registers in VSX registers as well
3626         as GPR and floating point registers.
3627         (int_reg_operand): New predicate to match only GPR registers.
3628         (base_reg_operand): New predicate to match base registers.
3629         (quad_int_reg_operand): New predicate to match even GPR registers
3630         for quad memory operations.
3631         (vsx_reg_or_cint_operand): New predicate to allow vector logical
3632         operations in both GPR and VSX registers.
3633         (quad_memory_operand): New predicate for quad memory operations.
3634         (reg_or_indexed_operand): New predicate for direct move support.
3635
3636         * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
3637         Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
3638         (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
3639         (POWERPC_MASKS): Add power8 options.
3640         (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
3641         various options.
3642
3643         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
3644         Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
3645
3646         * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
3647         (-mpower8-fusion): New power8 options.
3648         (-mpower8-fusion-sign): Likewise.
3649         (-mpower8-vector): Likewise.
3650         (-mcrypto): Likewise.
3651         (-mdirect-move): Likewise.
3652         (-mquad-memory): Likewise.
3653
3654         * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
3655         power8.
3656         (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
3657         registers.
3658         (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
3659         (rs6000_debug_vector_unit): Add p8_vector.
3660         (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
3661         definitions.  Also print fusion state.
3662         (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
3663         (rs6000_builtin_mask_calculate): Add power8 builtin support.
3664         (rs6000_option_override_internal): Add support for power8.
3665         (rs6000_common_init_builtins): Add debugging for skipped builtins
3666         if -mdebug=builtin.
3667         (rs6000_adjust_cost): Add power8 support.
3668         (rs6000_issue_rate): Likewise.
3669         (insn_must_be_first_in_group): Likewise.
3670         (insn_must_be_last_in_group): Likewise.
3671         (force_new_group): Likewise.
3672         (rs6000_register_move_cost): Likewise.
3673         (rs6000_opt_masks): Likewise.
3674
3675         * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
3676         power8 capable assembler, default to power7 options.
3677         (TARGET_DIRECT_MOVE): Likewise.
3678         (TARGET_CRYPTO): Likewise.
3679         (TARGET_P8_VECTOR): Likewise.
3680         (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
3681         (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
3682         (VECTOR_MEM_P8_VECTOR_P): Likewise.
3683         (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
3684         (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
3685         (TARGET_XSCVDPSPN): Likewise.
3686         (TARGET_XSCVSPDPN): Likewsie.
3687         (TARGET_SYNC_HI_QI): Likewise.
3688         (TARGET_SYNC_TI): Likewise.
3689         (MASK_CRYPTO): Likewise.
3690         (MASK_DIRECT_MOVE): Likewise.
3691         (MASK_P8_FUSION): Likewise.
3692         (MASK_P8_VECTOR): Likewise.
3693         (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
3694         temporary used by some of the direct move instructions to get two FP
3695         temporary registers does not force creation of a stack frame.
3696         (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
3697         (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
3698         that any VSX registers are tieable, even if they are also an
3699         Altivec vector mode.
3700         (r6000_reg_class_enum): Add wm, wr, wv constraints.
3701         (RS6000_BTM_P8_VECTOR): Power8 builtin support.
3702         (RS6000_BTM_CRYPTO): Likewise.
3703         (RS6000_BTM_COMMON): Likewise.
3704
3705         * config/rs6000/rs6000.md (cpu attribute): Add power8.
3706         * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
3707         (enum rs6000_vector): Add power8 vector support.
3708
3709 2013-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3710
3711         PR target/19599
3712         PR target/57340
3713         * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
3714         (any_sibcall_could_use_r3): this and handle indirect calls.
3715         (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
3716
3717 2013-05-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3718
3719         * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
3720
3721 2013-05-22  Richard Biener  <rguenther@suse.de>
3722
3723         PR middle-end/57349
3724         * profile.c (branch_prob): Do not split blocks that are
3725         abnormally receiving from ECF_RETURNS_TWICE functions.
3726
3727 2013-05-22  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
3728
3729         * recog.c (offsettable_address_addr_space_p): Fix calculation of
3730         address mode.  Move pointer mode initialization to the same place.
3731
3732 2013-05-22  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3733
3734         * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
3735         while it has any effect.
3736
3737 2013-05-21  Easwaran Raman  <eraman@google.com>
3738
3739         PR tree-optimization/57322
3740         * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
3741         UID of the statement added to the BB to be 1.
3742
3743 2013-05-21  Jakub Jelinek  <jakub@redhat.com>
3744
3745         PR tree-optimization/57331
3746         * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
3747         of conversion from pointer type to integral type with integer.
3748
3749 2013-05-21  Martin Jambor  <mjambor@suse.cz>
3750
3751         PR lto/57289
3752         * ipa-prop.c (ipa_read_node_info): Process param_used and
3753         controlled_uses in the same order as when writing.
3754
3755 2013-05-21  Magnus Granberg  <baldrick@free.fr>
3756
3757         PR plugins/56754
3758         * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
3759
3760 2013-05-21  Richard Biener  <rguenther@suse.de>
3761
3762         PR tree-optimization/57318
3763         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
3764         estimate stmts with side-effects as likely eliminated.
3765
3766 2013-05-21  Richard Biener  <rguenther@suse.de>
3767
3768         PR tree-optimization/57330
3769         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
3770         preserve the call stmts fntype.
3771
3772 2013-05-21  Richard Biener  <rguenther@suse.de>
3773
3774         PR tree-optimization/57303
3775         * tree-ssa-sink.c (statement_sink_location): Improve killing
3776         stmt detection and properly handle self-assignments.
3777
3778 2013-05-21  Christian Bruel  <christian.bruel@st.com>
3779
3780         * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
3781         spanning registers. LEAF_REG_REMAP is supported only for contiguous
3782         registers. Set register size out of the PARALLEL loop.
3783
3784 2013-05-20  Oleg Endo  <olegendo@gcc.gnu.org>
3785
3786         PR target/56547
3787         * config/sh/sh.md (fmasf4): Remove empty constraints strings.
3788         (*fmasf4, *fmasf4_media): New insns.
3789
3790 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
3791
3792         * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
3793         * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
3794         (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
3795         (mips_idiv_insns): Update the comments to say that the returned
3796         instruction counts are in units of BASE_INSN_LENGTH.
3797         (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
3798         by BASE_INSN_LENGTH rather than 4.  Add the jump separately,
3799         using 2 rather than 4 as the length of indirect MIPS16 and
3800         microMIPS jumps.  Use NOP_INSN_LENGTH rather than 4 as the
3801         length of a NOP.  Don't divide MIPS16 lengths by 2.
3802         (mips16_split_long_branches): Assume a branch is long if the
3803         length is greater than 4 rather than 8.
3804         * config/mips/mips.md (length): Give MIPS16 lengths directly,
3805         rather than multiplying them by 2.  Multiply instruction counts
3806         by BASE_INSN_LENGTH rather than 4.
3807         (*jump_mips16, tls_get_tp_mips16_<mode>)
3808         (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
3809
3810 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
3811
3812         * config/mips/mips.md (extended_mips16): Remove branch case.
3813         (length): Remove duplicated extended_mips16 test.
3814
3815 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
3816
3817         * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
3818
3819 2013-05-18  Richard Sandiford  <rdsandiford@googlemail.com>
3820
3821         * recog.h (Recog_data): Rename to...
3822         (recog_data_d): ...this.
3823         (recog_data): Update accordingly.
3824         * recog.c (recog_data): Likewise.
3825         * reload.c (save_recog_data): Likewise.
3826         * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
3827         (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
3828
3829 2013-05-17  Julian Brown  <julian@codesourcery.com>
3830
3831         * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
3832         found in a REG_EQUAL note, invalidate it.
3833
3834 2013-05-17   Easwaran Raman  <eraman@google.com>
3835
3836         * tree-ssa-reassoc.c (find_insert_point): New function.
3837         (insert_stmt_after): Likewise.
3838         (get_def_stmt): Likewise.
3839         (ensure_ops_are_available): Likewise.
3840         (not_dominated_by): Likewise.
3841         (rewrite_expr_tree): Do not move statements beyond what is
3842         necessary. Remove call to swap_ops_for_binary_stmt...
3843         (reassociate_bb): ... and move it here.
3844         (build_and_add_sum): Assign UIDs for new statements.
3845         (linearize_expr): Likewise.
3846         (do_reassoc): Renumber gimple statement UIDs.
3847
3848 2013-05-17  Jan Hubicka  <jh@suse.cz>
3849
3850         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
3851         weakrefs.
3852         * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
3853         * cgraphunit.c (handle_alias_pairs): Store target of unresolved
3854         weakrefs.
3855         (output_weakrefs): Update.
3856
3857 2013-05-17  Po-Chun Chang  <pchang9@cs.wisc.edu>
3858             Martin Jambor  <mjambor@suse.cz>
3859
3860         PR middle-end/57276
3861         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
3862         value that corresponds to the given aggval is found in values vector.
3863
3864 2013-05-17  Uros Bizjak  <ubizjak@gmail.com>
3865
3866         * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
3867         sse, sse2, sse3, ssse3 and sse4a flags to options.
3868
3869 2013-05-17  David Malcolm  <dmalcolm@redhat.com>
3870
3871         * gengtype-state.c: (s_expr_writer): New class, to handle
3872         prettifying of output layout of s-expressions.
3873         (state_writer): New class, to write out gtype.state.
3874         (state_written_type_count): Move this variable into member data of
3875         state_writer.
3876         (s_expr_writer::s_expr_writer): New code: constructor for new class
3877         (state_writer::state_writer(): ditto
3878         (s_expr_writer::write_new_line): New function
3879         (s_expr_writer::write_any_indent): ditto
3880         (s_expr_writer::begin_s_expr): ditto
3881         (s_expr_writer::end_s_expr): ditto
3882         (write_state_fileloc): convert to method of state_writer...
3883         (state_writer:: write_state_fileloc): ...and use methods of
3884         s_expr_writer to write indentation into the gtype.state output file
3885         to visually represent the hierarchical structure of the list
3886         structures
3887         (write_state_fields): ditto, renaming to...
3888         (state_writer::write_state_fields)
3889         (write_state_a_string): ditto, renaming to...
3890         (state_writer::write_state_a_string)
3891         (write_state_string_option): ditto, renaming to...
3892         (state_writer::write_state_string_option)
3893         (write_state_type_option): ditto, renaming to...
3894         (state_writer::write_state_type_option)
3895         (write_state_nested_option): ditto, renaming to...
3896         (state_writer::write_state_nested_option)
3897         (write_state_option): ditto, renaming to...
3898         (state_writer::write_state_option)
3899         (write_state_options): ditto, renaming to...
3900         (state_writer::write_state_options)
3901         (write_state_lang_bitmap): ditto, renaming to...
3902         (state_writer::write_state_lang_bitmap)
3903         (write_state_version): ditto, renaming to...
3904         (state_writer::write_state_version)
3905         (write_state_scalar_type): ditto, renaming to...
3906         (state_writer::write_state_scalar_type)
3907         (write_state_string_type): ditto, renaming to...
3908         (state_writer::write_state_string_type)
3909         (write_state_undefined_type): ditto, renaming to...
3910         (state_writer::write_state_undefined_type)
3911         (write_state_struct_union_type): ditto, renaming to...
3912         (state_writer::write_state_struct_union_type)
3913         (write_state_struct_type): ditto, renaming to...
3914         (state_writer::write_state_struct_type)
3915         (write_state_user_struct_type): ditto, renaming to...
3916         (state_writer::write_state_user_struct_type)
3917         (write_state_lang_struct_type): ditto, renaming to...
3918         (state_writer::write_state_lang_struct_type)
3919         (write_state_param_struct_type): ditto, renaming to...
3920         (state_writer::write_state_param_struct_type)
3921         (write_state_pointer_type): ditto, renaming to...
3922         (state_writer::write_state_pointer_type)
3923         (write_state_array_type): ditto, renaming to...
3924         (state_writer::write_state_array_type)
3925         (write_state_gc_used): ditto, renaming to...
3926         (state_writer::write_state_gc_used)
3927         (write_state_common_type_content): ditto, renaming to...
3928         (state_writer::write_state_common_type_content)
3929         (write_state_type): ditto, renaming to...
3930         (state_writer::write_state_type)
3931         (write_state_pair_list): ditto, renaming to...
3932         (state_writer::write_state_pair_list)
3933         (write_state_pair): ditto, renaming to...
3934         (state_writer::write_state_pair)
3935         (write_state_typedefs): ditto, renaming to...
3936         (state_writer::write_state_typedefs)
3937         (write_state_structures): ditto, renaming to...
3938         (state_writer::write_state_structures)
3939         (write_state_param_structs): ditto, renaming to...
3940         (state_writer::write_state_param_structs)
3941         (write_state_variables): ditto, renaming to...
3942         (state_writer::write_state_variables)
3943         (write_state_srcdir): ditto, renaming to...
3944         (state_writer::write_state_srcdir)
3945         (write_state_files_list): ditto, renaming to...
3946         (state_writer::write_state_files_list)
3947         (write_state_languages): ditto, renaming to...
3948         (state_writer::write_state_languages)
3949         (write_state): create a state_writer instance and use it when
3950         writing out the state file
3951
3952 2013-05-17  Mike Stump  <mikestump@comcast.net>
3953
3954         PR rtl-optimization/57304
3955         * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
3956         accessing DF_REF_REAL_LOC.
3957
3958 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
3959
3960         PR rtl-optimization/57281
3961         PR rtl-optimization/57300
3962         * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
3963         (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
3964         what the other splitter did if the registers are dead.
3965
3966 2013-05-17  Richard Biener  <rguenther@suse.de>
3967
3968         * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
3969         MEM_REF offsets.
3970
3971 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
3972
3973         * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
3974         linking.
3975
3976 2013-05-17  Marek Polacek  <polacek@redhat.com>
3977
3978         * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
3979         length when doing non-zero store of storing '\0' to '\0'.
3980
3981 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
3982
3983         * tree-vect-patterns.c (vect_recog_rotate_pattern): For
3984         vect_external_def oprnd1 with loop_vinfo, try to emit
3985         optional cast, negation and and stmts on the loop preheader
3986         edge instead of into the pattern def seq.
3987
3988         PR tree-optimization/57051
3989         * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
3990         case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
3991
3992 2013-05-16  Nick Clifton  <nickc@redhat.com>
3993
3994         * config/rl78/rl78.c (rl78_attribute_table): Add naked.
3995         (rl78_is_naked_func): New function.
3996         (rl78_expand_prologue): Skip prologue generation for naked functions.
3997         (rl78_expand_epilogue): Skip epilogue generation for naked functions.
3998         * doc/extend.texi (naked): Add RL78 to the list of processors
3999         that supports this attribute.
4000
4001 2013-05-16  Jeff Law  <law@redhat.com>
4002
4003         * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
4004
4005 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
4006
4007         * config/i386/driver-i386.c (host_detect_local_cpu): Determine
4008         cache parameters using detect_caches_amd also for CYRIX,
4009         NSC and TM2 signatures.
4010
4011 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
4012             Dzianis Kahanovich  <mahatma@eu.by>
4013
4014         PR target/45359
4015         PR target/46396
4016         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
4017         VIA/Centaur processors and determine their cache parameters
4018         using detect_caches_amd.
4019
4020 2013-05-16  Teresa Johnson  <tejohnson@google.com>
4021
4022         * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
4023         (rtl_verify_edges): New function.
4024         (rtl_verify_bb_insns): Ditto.
4025         (rtl_verify_bb_pointers): Ditto.
4026         (rtl_verify_bb_insn_chain): Ditto.
4027         (rtl_verify_fallthru): Ditto.
4028         (rtl_verify_bb_layout): Ditto.
4029         (rtl_verify_flow_info_1): Outline checks into new functions.
4030         (rtl_verify_flow_info): Ditto.
4031
4032 2013-05-16  Steve Ellcey  <sellcey@imgtec.com>
4033
4034         * cfghooks.c (copy_bbs): Add update_dominance argument.
4035         * cfghooks.h (copy_bbs): Update prototype.
4036         * tree-cfg.c (gimple_duplicate_sese_region):
4037         Add update_dominance argument.
4038         * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
4039         * tree-ssa-loop-ch.c (copy_loop_headers): Update
4040         gimple_duplicate_sese_region call.
4041         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
4042         Update copy_bbs call.
4043         * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
4044         * trans-mem.c (ipa_uninstrument_transaction): Ditto.
4045
4046 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
4047
4048         * tree-vectorizer.h (NUM_PATTERNS): Increment.
4049         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
4050         vect_recog_rotate_pattern.
4051         (vect_recog_rotate_pattern): New function.
4052
4053 2013-05-16  Jason Merrill  <jason@redhat.com>
4054
4055         * Makefile.in (LLINKER): New variable.
4056         (mostlyclean): Remove link mutex.
4057         * configure.ac: Handle --enable-link-mutex.
4058         * lock-and-run.sh: New script.
4059
4060 2013-05-16  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4061
4062         PR target/19599
4063         * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
4064         for NULL decl.
4065
4066 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4067
4068         * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
4069
4070 2013-05-16  Greta Yorsh  <Greta.Yorsh@arm.com>
4071
4072         * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
4073         * config/arm/arm.c (next_consecutive_mem): New function.
4074         (gen_movmem_ldrd_strd): Likewise.
4075         * config/arm/arm.md (movmemqi): Update condition and code.
4076         (unaligned_loaddi, unaligned_storedi): New patterns.
4077
4078 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4079
4080         * config.gcc: Obsolete *-*-solaris2.9*.
4081         * doc/install.texi (Specific, *-*-solaris2*): Document it.
4082
4083 2013-05-16  Richard Biener  <rguenther@suse.de>
4084
4085         * passes.c (init_optimization_passes): Move pass_parallelize_loops
4086         earlier, after GRAPHITE transforms and IV canonicalization.
4087
4088 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
4089
4090         * omp-low.c (extract_omp_for_data): For collapsed loops,
4091         if at least one of the loops is known at compile time to
4092         iterate zero times, set count to 0.
4093         (expand_omp_regimplify_p): New function.
4094         (expand_omp_for_generic): For collapsed loops, if at least
4095         one of the loops isn't known to iterate at least once,
4096         add runtime check with setting count to 0.
4097         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
4098         For unsigned types if it isn't known at compile time that
4099         the loop will iterate at least once, add runtime check to bypass
4100         the whole loop if initial condition isn't true.
4101
4102 2013-05-16  Nathan Sidwell  <nathan@codesourcery.com>
4103
4104         * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
4105
4106 2013-05-16  Marc Glisse  <marc.glisse@inria.fr>
4107
4108         PR middle-end/57286
4109         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
4110         transformations to avoid an infinite loop.
4111
4112 2013-05-16  Marek Polacek  <polacek@redhat.com>
4113
4114         * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
4115
4116 2013-05-15  Leif Ekblad  <leif@rdos.net>
4117
4118         * config/i386/i386.c (ix86_decompose_address): Use
4119         DEFAULT_TLS_SEG_REG to access TLS segment register.
4120         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
4121         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
4122         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
4123
4124 2013-05-15  Richard Sandiford  <rdsandiford@googlemail.com>
4125
4126         PR target/57260
4127         * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
4128         sibling calls to functions that would normally be lazily bound,
4129         unless $gp is call-clobbered.
4130
4131 2013-05-15  Uros Bizjak  <ubizjak@gmail.com>
4132
4133         * config/i386/i386.c (ix86_option_override_internal): Update
4134         processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags.  Add
4135         PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
4136         non-SSE 3dNow! targets.  Enable TARGET_PRFCHW for TARGET_3DNOW targets.
4137         * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
4138         of TARGET_3DNOW.
4139         (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
4140
4141 2013-05-15  Andreas Schwab  <schwab@suse.de>
4142
4143         * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
4144         for rotlhi3+1 and rotlqi3+1, resp.  Fix reference to non-existing
4145         third operand.
4146
4147 2013-05-15  Teresa Johnson  <tejohnson@google.com>
4148
4149         * loop-unroll.c (report_unroll_peel): Check decision before
4150         emitting unroll/peel message.
4151
4152 2013-05-15  Teresa Johnson  <tejohnson@google.com>
4153
4154         * function.h (has_bb_partition): New rtl_data flag.
4155         (bb_reorder_complete): Ditto.
4156         * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
4157         instead of flag_reorder_blocks_and_partition.
4158         * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
4159         with some enhancements.
4160         (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
4161         * bb-reorder.c (connect_traces): Check for has_bb_partition
4162         instead of flag_reorder_blocks_and_partition.
4163         (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
4164         (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
4165         verify_hot_cold_block_grouping.
4166         (partition_hot_cold_basic_blocks): Set has_bb_partition.
4167
4168 2013-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4169
4170         PR target/19599
4171         * config/arm/predicates.md (call_insn_operand): New predicate.
4172         * config/arm/constraints.md ("Cs", "Ss"):  New constraints.
4173         * config/arm/arm.md (*call_insn, *call_value_insn): Match only
4174         if insn is not a tail call.
4175         (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
4176         registers.
4177         * config/arm/arm.h (enum reg_class): New caller save register class.
4178         (REG_CLASS_NAMES): Likewise.
4179         (REG_CLASS_CONTENTS): Likewise.
4180         * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
4181         without decls.
4182
4183 2013-05-15  Richard Biener  <rguenther@suse.de>
4184
4185         * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
4186         of MSG_OPTIMIZED_LOCATIONS.
4187         * tree-vect-slp.c (vect_make_slp_decision): Likewise.
4188         (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
4189         message.
4190         * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
4191         of MSG_OPTIMIZED_LOCATIONS.
4192         (execute_vect_slp): Likewise.
4193         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
4194         (vect_create_cond_for_alias_checks): Likewise.
4195         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
4196         (vect_recog_widen_mult_pattern): Likewise.
4197         (vect_recog_widen_sum_pattern): Likewise.
4198         (vect_recog_over_widening_pattern): Likewise.
4199         (vect_recog_widen_shift_pattern): Likewise.
4200         (vect_recog_vector_vector_shift_pattern): Likewise.
4201         (vect_recog_divmod_pattern): Likewise.
4202         (vect_recog_mixed_size_cond_pattern): Likewise.
4203         (vect_recog_bool_pattern): Likewise.
4204         (vect_pattern_recog_1): Likewise.
4205
4206 2013-05-15  Martin Jambor  <mjambor@suse.cz>
4207
4208         * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
4209         non-functions to builtin_unreachable.
4210         * ipa-inline-transform.c (inline_call): Do not assert estimates were
4211         correct when new direct edges were discovered.
4212
4213 2013-05-15  Martin Jambor  <mjambor@suse.cz>
4214
4215         * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
4216         header, print symbol order instead of node uid, print more information
4217         about indirect edge targets.
4218         (ipa_make_edge_direct_to_target): Print symbol order instead of node
4219         uids.
4220         (ipa_make_edge_direct_to_target): Likewise.
4221         (remove_described_reference): Likewise.
4222         (propagate_controlled_uses): Likewise.
4223         (ipa_print_node_params): Also print symbol order.
4224         (ipcp_transform_function): Print symbol order instead of node uids.
4225         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
4226         (cgraph_get_create_real_symbol_node): Likewise.
4227         * ipa-cp.c (print_lattice): Likewise.
4228         (print_all_lattices): Likewise.
4229         (determine_versionability): Likewise.
4230         (initialize_node_lattices): Likewise.
4231         (estimate_local_effects): Likewise.
4232         (update_profiling_info): Likewise.
4233         (create_specialized_node): Likewise.
4234         (perhaps_add_new_callers): Likewise.
4235         (decide_about_value): Likewise.
4236         (decide_whether_version_node): Likewise.
4237         (identify_dead_nodes): Likewise.
4238         * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
4239         (dump_inline_summary): Likewise.
4240         (estimate_node_size_and_time): Likewise.
4241         (inline_analyze_function): Likewise.
4242         * ipa-inline.c (report_inline_failed_reason): Likewise.
4243         (want_early_inline_function_p): Likewise.
4244         (edge_badness): Likewise.
4245         (update_edge_key): Likewise.
4246         (inline_small_functions): Likewise.  Add dumping of order to two other
4247         dumps.
4248         * ipa-pure-const.c (pure_const_read_summary): Print symbol order
4249         instead of node uids.
4250         (propagate_pure_const): Likewise.
4251         (propagate_pure_const): Likewise.
4252         * ipa-utils.c (dump_cgraph_node_set): Likewise.
4253         * lto-cgraph.c (input_node): Explicitly specify we dump uid.
4254         * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
4255         of node uids.
4256         * tree-pretty-print.c (dump_function_header): Likewise.
4257         * tree-sra.c (convert_callers_for_node): Dump in traditional format.
4258         Print symbol order instead of node uids.
4259
4260 2013-05-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4261
4262         * config/s390/s390.c (s390_register_move_cost): Don't impose the
4263         FPR<->GPR move cost penalty if ldgr/lgdr can be used.
4264
4265 2013-05-15  Richard Biener  <rguenther@suse.de>
4266
4267         PR tree-optimization/57275
4268         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
4269         return value for fail to do runtime alias checks for gather loads.
4270
4271 2013-05-15  Jan Hubicka  <jh@suse.cz>
4272
4273         PR lto/57038
4274         PR lto/47375
4275         * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
4276         weakrefs are not external.
4277         (lto_symtab_merge_decls): Fix thinko when dealing with
4278         non-lto_symtab decls.
4279         (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
4280         (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
4281         * varpool.c (dump_varpool_node): Dump more flags.
4282
4283 2013-05-15  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
4284
4285         * config/i386/i386.c (processor_alias_table): Add instruction
4286         FSGSBASE for AMD bdver3 architecture.
4287
4288 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
4289
4290         * tree.c (warn_deprecated_use): Print file:line using locus color.
4291         * diagnostic.c (diagnostic_report_current_module): Print file:line
4292         and file:line:column using locus color.
4293
4294 2013-05-14  Mike Stump  <mikestump@comcast.net>
4295
4296         * gdbinit.in: Add __null.
4297
4298 2013-05-14  Mike Stump  <mikestump@comcast.net>
4299
4300         * recog.h: Rename struct recog_data to Recog_data.
4301         * recog.c: Likewise.
4302         * reload.c (can_reload_into): Likewise.
4303         * config/picochip/picochip.c: Likewise.
4304
4305 2013-05-14  Mike Stump  <mikestump@comcast.net>
4306
4307         * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
4308
4309 2013-05-14  Steven Bosscher  <steven@gcc.gnu.org>
4310
4311         * resource.h (struct resources): Remove unch_memory member.
4312         (CLEAR_RESOURCE): Don't clear unch_memory.
4313         * resource.c (mark_referenced_resources): Don't set it.
4314         (mark_set_resources): Likewise.
4315         (mark_target_live_regs): Don't clear it.
4316         (init_resource_info): Likewise.
4317         * reorg.c (resource_conflicts_p): Don't compare it.
4318         (redundant_insn): Don't set it.
4319
4320         * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
4321         Remove prototypes.
4322         * emit-rtl.c (next_label): Remove unused function.
4323         (skip_consecutive_labels, link_cc0_insns): Move to ...
4324         * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
4325         only place where these functions are used, and make them static.
4326
4327 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
4328
4329         * fold-const.c (fold_negate_expr): Handle vectors.
4330         (fold_truth_not_expr): Make it static.
4331         (fold_invert_truthvalue): New static function.
4332         (invert_truthvalue_loc): Handle vectors. Do not call
4333         fold_truth_not_expr directly.
4334         (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
4335         <TRUTH_NOT_EXPR>: Do not cast to boolean.
4336         (fold_comparison): Handle vector constants.
4337         (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
4338         (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
4339         * tree.h (fold_truth_not_expr): Remove declaration.
4340
4341 2013-05-14  James Greenhalgh  <james.greenhalgh@arm.com>
4342
4343         * config/aarch64/aarch64-simd.md
4344         (aarch64_vcond_internal<mode>): Rename to...
4345         (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
4346         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
4347         float modes. Clarify all iterator modes.
4348         (vcond<mode><mode>): Use new name for vcond expanders.
4349         (vcond<v_cmp_result><mode>): Likewise.
4350         (vcondu<mode><mode>: Likewise.
4351         * config/aarch64/iterators.md (VDQF_COND): New.
4352
4353 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
4354
4355         PR bootstrap/57266
4356         * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
4357         variable for the shift amount. Check that we shift by non-negative
4358         amounts.
4359
4360 2013-05-14  Chung-Lin Tang  <cltang@codesourcery.com>
4361
4362         PR target/42017
4363         * config/arm/arm.h (EPILOGUE_USES): Only return true
4364         for LR_REGNUM after epilogue_completed.
4365
4366 2013-05-14  Joern Rennecke <joern.rennecke@embecosm.com>
4367
4368         * config/avr/avr.c (avr_encode_section_info): Bail out if the type
4369         is error_mark_node.
4370
4371 2013-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4372
4373         PR target/57261
4374         * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
4375         and Solaris 11+/x86 with gld.
4376         * configure: Regenerate.
4377
4378 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
4379
4380         * expmed.c (expand_shift_1): Canonicalize rotates by
4381         constant bitsize / 2 to bitsize - 1.
4382         * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
4383         case ROTATERT>: Likewise.
4384
4385         Revert:
4386         2013-05-10  Jakub Jelinek  <jakub@redhat.com>
4387
4388         * config/i386/i386.md (rotateinv): New code attr.
4389         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
4390         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
4391         roll $31, %eax, etc.
4392
4393 2013-05-14  Richard Biener  <rguenther@suse.de>
4394
4395         PR middle-end/57235
4396         * tree-eh.c (sink_clobbers): Give up for successors with
4397         multiple predecessors and no virtual uses.
4398
4399 2013-05-14  Eric Botcazou  <ebotcazou@adacore.com>
4400
4401         * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
4402         * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
4403
4404 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
4405
4406         PR middle-end/57251
4407         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
4408         the case when both op0 and op1 have VOIDmode.
4409
4410 2013-05-14  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
4411
4412         * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
4413         in multiply-accumulate mode.
4414
4415 2013-05-13  Guozhi Wei  <carrot@google.com>
4416
4417         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
4418
4419 2013-05-13  Kai Tietz  <ktietz@redhat.com>
4420
4421         PR target/56975
4422         * config/i386/cygming.h (TARGET_PECOFF): Define as true.
4423         * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
4424         (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
4425         * config/i386/i386.c (ix86_option_override_internal): Likewise.
4426         (ix86_expand_prologue): Likewise.
4427         (ix86_expand_split_stack_prologue): Likewise.
4428         (legitimate_pic_address_disp_p): Likewise.
4429         (legitimize_pic_address): Likewise.
4430         (legitimize_tls_address): Likewise.
4431         (legitimize_pe_coff_symbol): Likewise.
4432         (output_pic_addr_const): Likewise.
4433         (construct_plt_address): Likewise.
4434         (ix86_expand_call): Likewise.
4435         (x86_output_mi_thunk): Likewise.
4436         (x86_function_profiler): Likewise.
4437
4438 2013-05-13  Sofiane Naci  <sofiane.naci@arm.com>
4439
4440         * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
4441         similar switch cases.
4442         (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
4443         (aarch64_simd_mov_to_<mode>low): Delete.
4444         (aarch64_simd_mov_to_<mode>high): Delete.
4445         (move_lo_quad_<mode>): Add w<-r alternative.
4446         (aarch64_simd_move_hi_quad_<mode>): Likewise.
4447         (aarch64_simd_mov_from_*): Update type attribute.
4448         * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
4449         statement.
4450
4451 2013-05-13  Jan Hubicka  <jh@suse.cz>
4452
4453         * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
4454         * config/i386/i386.c (ix86_compute_frame_layout,
4455         ix86_expand_epilogue, emit_i387_cw_initialization,
4456         ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
4457         ix86_local_alignment): Fix use of size/speed predicates.
4458
4459 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
4460
4461         PR tree-optimization/45216
4462         PR tree-optimization/57157
4463         * tree-ssa-forwprop.c (simplify_rotate): Only recognize
4464         the (-Y) & (B - 1) variant if OP is |.
4465         * expmed.c (expand_shift_1): For rotations by const0_rtx just
4466         return shifted.  Use (-op1) & (prec - 1) as other_amount
4467         instead of prec - op1.
4468
4469 2013-05-13  Martin Jambor  <mjambor@suse.cz>
4470
4471         PR middle-end/42371
4472         * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
4473         (ipa_constant_data): New type.
4474         (ipa_jump_func): Use ipa_constant_data to hold information about
4475         constant jump functions.
4476         (ipa_get_jf_constant): Adjust to jump function type changes.
4477         (ipa_get_jf_constant_rdesc): New function.
4478         (ipa_param_descriptor): New field controlled_uses.
4479         (ipa_get_controlled_uses): New function.
4480         (ipa_set_controlled_uses): Likewise.
4481         * ipa-ref.h (ipa_find_reference): Declare.
4482         * ipa-prop.c (ipa_cst_ref_desc): New type.
4483         (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
4484         changes.
4485         (ipa_set_jf_constant): Likewise.  Also create reference descriptions.
4486         New parameter cs.  Adjust all callers.
4487         (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
4488         (remove_described_reference): New function.
4489         (jfunc_rdesc_usable): Likewise.
4490         (try_make_edge_direct_simple_call): Decrement controlled use count,
4491         attempt to remove reference if it hits zero.
4492         (combine_controlled_uses_counters): New function.
4493         (propagate_controlled_uses): Likewise.
4494         (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
4495         (ipa_edge_duplication_hook): Duplicate reference descriptions.
4496         (ipa_print_node_params): Print described use counter.
4497         (ipa_write_jump_function): Adjust to jump function type changes.
4498         (ipa_read_jump_function): New parameter CS, pass it to
4499         ipa_set_jf_constant.  Adjust caller.
4500         (ipa_write_node_info): Stream controlled use count
4501         (ipa_read_node_info): Likewise.
4502         * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
4503         asserting.
4504         * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
4505         count.  Remove cloning-added reference if it reaches zero.
4506         * ipa-ref.c (ipa_find_reference): New function.
4507
4508 2013-05-13  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
4509
4510         * config/i386/i386.c (processor_target_table): Modified default
4511         alignment values for AMD BD and BT architectures.
4512
4513 2013-05-13  Marc Glisse  <marc.glisse@inria.fr>
4514
4515         * tree-vect-generic.c (uniform_vector_p): Move ...
4516         * tree.c (uniform_vector_p): ... here.
4517         * tree.h (uniform_vector_p): Declare it.
4518         * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
4519         into a scalar.
4520
4521 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
4522
4523         PR tree-optimization/57230
4524         * tree-ssa-strlen.c (handle_char_store): Record length for
4525         array store from STRING_CST.
4526
4527         PR tree-optimization/57230
4528         * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
4529         check.
4530
4531 2013-05-12  Joern Rennecke  <joern.rennecke@embecosm.com>
4532
4533         * config/epiphany/epiphany.c (epiphany_init): Check size of
4534         NUM_MODES_FOR_MODE_SWITCHING.
4535         (epiphany_expand_prologue):
4536         Remove CONFIG_REGNUM initial value handling code.
4537         (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
4538         (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
4539         (emit_set_fp_mode, epiphany_mode_after): Likewise.
4540         (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
4541         Don't return 1 for FP_MODE_NONE.
4542         * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
4543         Add value for EPIPHANY_MSW_ENTITY_CONFIG.
4544         (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
4545         * config/epiphany/epiphany.md (save_config): New pattern.
4546
4547 2013-05-12  Uros Bizjak  <ubizjak@gmail.com>
4548
4549         * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
4550
4551 2013-05-10  Uros Bizjak  <ubizjak@gmail.com>
4552
4553         * config/i386/i386.md (memory): Handle sseishft1.
4554         * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
4555         (*vec_extractv2di_1): Ditto.
4556
4557 2013-05-10  Vladimir Makarov  <vmakarov@redhat.com>
4558
4559         * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
4560         saved registers.
4561
4562 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4563
4564         * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
4565         Add mthumb/march=armv7-a multilib.
4566         Add mthumb/march=armv7-r multilib.
4567         Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
4568
4569 2013-05-10  Ralf Corsépius  <ralf.corsepius@rtems.org>
4570
4571         * config/v850/t-rtems: Add more multilibs.
4572
4573 2013-05-10  Richard Biener  <rguenther@suse.de>
4574
4575         PR tree-optimization/57214
4576         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
4577         not propagate from SSA names that occur in abnormal PHI nodes.
4578
4579 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
4580
4581         * stor-layout.c (element_precision): New function.
4582         * machmode.h (element_precision): Declare it.
4583         * tree.c (build_minus_one_cst): New function.
4584         (element_precision): Likewise.
4585         * tree.h (build_minus_one_cst): Declare new function.
4586         (element_precision): Likewise.
4587         * fold-const.c (operand_equal_p): Use element_precision.
4588         (fold_binary_loc): Handle vector types.
4589         * convert.c (convert_to_integer): Use element_precision.
4590         * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
4591         separately.
4592
4593 2013-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
4594
4595         * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
4596         (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
4597         (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
4598         (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
4599         * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
4600         (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
4601         (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
4602         (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
4603         * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
4604         (Uuw8): New constraints.
4605         (Usb4): Move into alphabetical order.
4606         * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
4607         (sd8_operand, ub8_operand, uw8_operand): New predicates.
4608         * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
4609         previously unnamed patterns.
4610         (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
4611         (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
4612         (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
4613         (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
4614         of set_attr_alternative/if_then_else.  Use extended_mips16 instead
4615         of specific lengths.
4616
4617 2013-05-10  Jakub Jelinek  <jakub@redhat.com>
4618
4619         * config/i386/i386.md (rotateinv): New code attr.
4620         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
4621         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
4622         roll $31, %eax, etc.
4623
4624         PR tree-optimization/45216
4625         PR tree-optimization/57157
4626         * tree-ssa-forwprop.c (simplify_rotate): New function.
4627         (ssa_forward_propagate_and_combine): Call it.
4628
4629 2013-05-10  Richard Biener  <rguenther@suse.de>
4630
4631         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
4632         disable peeling when we version for aliasing.
4633         (vector_alignment_reachable_p): Honor explicit user alignment.
4634         (vect_supportable_dr_alignment): Likewise.
4635         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
4636         STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
4637         * tree-vect-loop.c (vect_transform_loop): First apply versioning,
4638         then peeling to arrange for the cost-model check to come first.
4639
4640 2013-05-10  Alan Modra  <amodra@gmail.com>
4641
4642         * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
4643         (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
4644         * configure: Regenerate.
4645
4646 2013-05-10  Alan Modra  <amodra@gmail.com>
4647
4648         PR target/55033
4649         * varasm.c (default_elf_select_section): Move !DECL_P check..
4650         (get_named_section): ..to here before calling get_section_name.
4651         Adjust assertion.
4652         (default_section_type_flags): Add DECL_P check.
4653         * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
4654         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
4655
4656 2013-05-09  Joern Rennecke  <joern.rennecke@embecosm.com>
4657
4658         * config/epiphany/epiphany.c (epiphany_expand_prologue):
4659         When using gen_stack_adjust_str with a register offset, add a
4660         REG_FRAME_RELATED_EXPR note.
4661
4662 2013-05-09  Uros Bizjak  <ubizjak@gmail.com>
4663
4664         * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
4665         (*vec_extractv4si_zext_mem): Ditto.
4666         (*vec_extractv2di): Add 0->x and x->x alternatives.
4667         * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
4668         * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
4669
4670 2013-05-09  Jason Merrill  <jason@redhat.com>
4671
4672         N3639 C++1y VLA support
4673         * gimplify.c (gimplify_vla_decl): Don't touch an existing
4674         DECL_VALUE_EXPR.
4675
4676         * tree.c (build_constructor_va): New.
4677         * tree.h: Declare it.
4678
4679 2013-05-09  Martin Jambor  <mjambor@suse.cz>
4680
4681         PR lto/57084
4682         * gimple-fold.c (canonicalize_constructor_val): Call
4683         cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
4684
4685 2013-05-09  Jan Hubicka  <jh@suse.cz>
4686             Richard Biener  <rguenther@suse.de>
4687
4688         PR lto/54095
4689         * symtab.c (symtab_make_decl_local): Do not add private names.
4690
4691 2013-05-09  Jan Hubicka  <jh@suse.cz>
4692
4693         PR lto/54095
4694         * symtab.c (insert_to_assembler_name_hash): Handle clones.
4695         (unlink_from_assembler_name_hash): Likewise.
4696         (symtab_prevail_in_asm_name_hash, symtab_register_node,
4697         symtab_unregister_node, symtab_initialize_asm_name_hash,
4698         change_decl_assembler_name): Update.
4699
4700 2013-05-09  Sofiane Naci  <sofiane.naci@arm.com>
4701
4702         * config/aarch64/aarch64.md: New movtf split.
4703         (*movtf_aarch64): Update.
4704         (aarch64_movdi_tilow): Handle TF modes and rename to
4705         aarch64_movdi_<mode>low.
4706         (aarch64_movdi_tihigh): Handle TF modes and rename to
4707         aarch64_movdi_<mode>high
4708         (aarch64_movtihigh_di): Handle TF modes and rename to
4709         aarch64_mov<mode>high_di
4710         (aarch64_movtilow_di): Handle TF modes and rename to
4711         aarch64_mov<mode>low_di
4712         (aarch64_movtilow_tilow): Remove spurious whitespace.
4713         * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
4714         splits.
4715         (aarch64_print_operand): Update.
4716
4717 2013-05-09  Alan Modra  <amodra@gmail.com>
4718
4719         * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
4720         powerpc64le.
4721         * configure: Regenerate.
4722
4723 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
4724
4725         * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
4726         splitter preparation statements.
4727         * config/i386/sse.md (*vec_extract* splitters): Ditto.
4728         (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
4729         adjust_address_nv.
4730
4731 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4732
4733         * gimple-ssa-strength-reduction.c (count_candidates): Change
4734         return value to int.
4735         (analyze_candidates_and_replace): Change type of length to int.
4736
4737 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
4738
4739         * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
4740         (*vec_extract<mode>): Use VI12_128 mode iterator.
4741         (*vec_extract<mode>_mem): Ditto.
4742         (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
4743         attribute.
4744
4745 2013-05-08  Diego Novillo  <dnovillo@google.com>
4746
4747         PR bootstrap/54659
4748
4749         Revert:
4750         2012-08-17  Diego Novillo  <dnovillo@google.com>
4751
4752         PR bootstrap/54281
4753         * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
4754         * config.in: Regenerate.
4755         * configure: Regenerate.
4756         * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4757
4758 2013-05-08  Jan Hubicka  <jh@suse.cz>
4759
4760         PR lto/54095
4761         * cgraph.c (cgraph_make_node_local_1): Se unique_name.
4762         * cgraph.h (symtab_node_base): Add unique_name.
4763         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
4764         input_overwrite_node, input_varpool_node): Stream unique_name.
4765         * cgraphclones.c (cgraph_create_virtual_clone,
4766         cgraph_function_versioning): Set unique_name.
4767         * ipa.c (function_and_variable_visibility): Set unique_name.
4768
4769 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4770
4771         * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
4772         (alloc_cand_and_find_basis): Restrict conditional candidate
4773         processing to CAND_MULTs.
4774
4775 2013-05-08  Jan Hubicka  <jh@suse.cz>
4776
4777         PR lto/54095
4778         lto-symtab.c (lto_symtab_symbol_p): New function.
4779         (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
4780         lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
4781         lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
4782         Skip static symbols.
4783
4784 2013-05-08  Paolo Carlini  <paolo.carlini@oracle.com>
4785
4786         PR tree-optimization/57200
4787         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
4788         Only call inform if the preceding warning_at returns true.
4789
4790 2013-05-07  Han Shen  <shenhan@google.com>
4791
4792         * cfgexpand.c (record_or_union_type_has_array_p): New function.
4793         (expand_used_vars): Add logic handling '-fstack-protector-strong'.
4794         * common.opt (fstack-protector-strong): New option.
4795         * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
4796         * doc/invoke.texi (Optimization Options): Document
4797         "-fstack-protector-strong".
4798         * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
4799
4800 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
4801
4802         * config/mips/mips.c (mips_machine_reorg2): Return 0.
4803
4804 2013-05-07  Vladimir Makarov  <vmakarov@redhat.com>
4805
4806         * ira.c (update_equiv_regs): Add insn having equiv memory even if
4807         it is not lhs of the insn.
4808         (setup_reg_equiv): Remove insn having equiv memory which it is not
4809         lhs of the insn.
4810         * lra-constraints.c (process_address): Try to improve generation
4811         code for address base + disp.
4812         (lra_constraints): Make correct the code for checking insn setting
4813         up backward equivalence.  Remove insn only if it is in the init
4814         insn list.
4815         * lra-eliminations.c (update_reg_eliminate): Change return value.
4816         (lra_eliminate): Use the result.
4817
4818 2013-05-07  Uros Bizjak  <ubizjak@gmail.com>
4819
4820         * config/i386/sse.md (ssescalarnummask): New mode attribute.
4821         (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
4822         (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
4823         *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
4824         register target operands.
4825         (*vec_extractv8hi_sse2): New pattern.
4826         (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
4827         (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
4828         (*vec_extract<mode>_mem): New insn and split pattern.
4829
4830 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
4831
4832         * config/arm/arm.c (arm_asan_shadow_offset): New function.
4833         (TARGET_ASAN_SHADOW_OFFSET): Define.
4834         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
4835         (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
4836
4837 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4838
4839         * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
4840         (incr_vec_index): Return -1 if increment not found.
4841         (create_add_on_incoming_edge): Assert if increment not found.
4842         (record_increment): Limit number of increments recorded.
4843         (all_phi_incrs_profitable): Return false if an increment not found.
4844         (replace_profitable_candidates): Don't process increments that were
4845         not recorded.
4846         (analyze_candidates_and_replace): Limit size of incr_vec.
4847
4848 2013-05-07  Richard Biener  <rguenther@suse.de>
4849
4850         * calls.c (special_function_p): setjmp-like functions are leaf.
4851         * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
4852         * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
4853
4854 2013-05-07  Sofiane Naci  <sofiane.naci@arm.com>
4855
4856         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
4857         (aarch64_simd_mov<mode>): New expander.
4858         (aarch64_simd_mov_to_<mode>low): New instruction pattern.
4859         (aarch64_simd_mov_to_<mode>high): Likewise.
4860         (aarch64_simd_mov_from_<mode>low): Likewise.
4861         (aarch64_simd_mov_from_<mode>high): Likewise.
4862         (aarch64_dup_lane<mode>): Update.
4863         (aarch64_dup_lanedi): New instruction pattern.
4864         * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
4865         * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
4866
4867 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4868
4869         * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
4870         (replace_mult_candidate): Remove unnecessary argument; remove
4871         unnecessary parameter from call to introduce_cast_before_cand.
4872         (replace_unconditional_candidate): Remove unnecessary parameter
4873         from call to replace_mult_candidate.
4874         (replace_conditional_candidate): Likewise.
4875         (insert_initializers): Use make_temp_ssa_name.
4876         (introduce_cast_before_cand): Remove unnecessary argument; use
4877         make_temp_ssa_name.
4878         (replace_one_candidate): Remove unnecessary argument; remove
4879         unnecessary parameter from calls to introduce_cast_before_cand.
4880         (replace_profitable_candidates): Remove unnecessary parameters
4881         from calls to replace_one_candidate.
4882
4883 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4884
4885         * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
4886         phi def as possibly hiding a basis for a CAND_ADD whose operands
4887         have been commuted in the analysis.
4888         (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
4889
4890 2013-05-07  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4891
4892         * config/aarch64/aarch64.md
4893         (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
4894         shift value between 0-4.
4895
4896 2013-05-07  Richard Biener  <rguenther@suse.de>
4897
4898         * double-int.h (rshift): New overload.
4899         * double-int.c (rshift): New function.
4900         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
4901         (create_reference_ops_from_ref): Remove.
4902         (vn_reference_insert): Use shared ops for constructing the
4903         reference and copy it.
4904
4905 2013-05-07  Richard Biener  <rguenther@suse.de>
4906
4907         PR middle-end/57190
4908         * tree-eh.c (sink_clobbers): Properly propagate
4909         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
4910
4911 2013-05-07  Jakub Jelinek  <jakub@redhat.com>
4912
4913         PR tree-optimization/57149
4914         * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
4915         (can_skip_redundant_opnd, compute_uninit_opnds_pos,
4916         collect_phi_def_edges, execute_late_warn_uninitialized): Use
4917         uninit_undefined_value_p instead of ssa_undefined_value_p.
4918
4919         PR debug/57184
4920         * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
4921         for modifier == EXPAND_INITIALIZER.
4922
4923 2013-05-07  Anton Blanchard  <anton@samba.org>
4924
4925         * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
4926         for powerpc64 little endian.
4927         * configure: Regenerate.
4928
4929 2013-05-06  Graham Stott  <grahams@btinternet.com>
4930
4931         * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
4932         mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
4933         wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
4934         shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
4935
4936 2013-05-06  Graham Stott  <grahams@btinternet.com>
4937
4938         * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
4939         codes which allow non-lvalues.
4940
4941 2013-05-06  Marc Glisse  <marc.glisse@inria.fr>
4942
4943         * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
4944         components are all 1s.
4945         (integer_minus_onep): New function.
4946         * tree.h (integer_minus_onep): Declare it.
4947         * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
4948         integer_minus_onep instead of integer_all_onesp.
4949
4950 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
4951
4952         PR target/52933
4953         * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
4954         variations of these patterns.
4955
4956 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
4957
4958         * config/i386/i386.md (isa): Add x64_sse4 member.
4959         (enabled): Handle x64_sse4.
4960         (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
4961         instruction for 64bit SSE4_1 targets.  Update insn attributes.
4962         (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
4963         instruction for SSE4_1 targets.  Update insn attributes.
4964         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
4965         with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
4966         (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
4967         const_1 selector.
4968         (*vec_extractv4si): Rename from *sse4_1_pextrd.
4969         (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
4970         (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
4971
4972 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
4973
4974         PR target/57108
4975         * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
4976
4977 2013-05-06  Maxim Kuznetsov  <maks.kuznetsov@gmail.com>
4978
4979         * final.c (do_assembler_dialects): Don't handle curly braces and
4980         vertical bar escaped by % as dialect delimiters.
4981         (output_asm_insn): Print curly braces and vertical bar if escaped
4982         by % and ASSEMBLER_DIALECT defined.
4983         * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
4984         * doc/tm.texi: Regenerated.
4985
4986 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
4987
4988         * config/mips/mips.c: Include tree-pass.h.
4989         (mips_reorg): Split in pre- and post-dbr_schedule parts.
4990         (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
4991         (pass_mips_machine_reorg2): New machine specific pass.
4992         (insert_pass_mips_machine_reorg2): New pass plugin definition.
4993         (mips_option_override): Register the new pass.
4994         * rtl.h (cleanup_barriers): Remove prototype.
4995         (dbr_schedule): Likewise.
4996         * jump.c (cleanup_barriers): Make static.
4997         * reorg.c (dbr_schedule): Likewise.
4998
4999 2013-05-06  Richard Biener  <rguenther@suse.de>
5000
5001         PR tree-optimization/57185
5002         * tree-parloops.c (add_field_for_reduction): Handle anonymous
5003         SSA names properly.
5004
5005 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
5006
5007         PR target/57106
5008         * config/i386/i386.c (add_parameter_dependencies): Add dependence
5009         between "first_arg" and "insn", not "last" and "insn".
5010
5011 2013-05-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5012
5013         * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
5014         (find_candidates_in_block): Re-enable slsr_process_phi.
5015         (create_phi_basis): Fix double counting of candidate adjustment.
5016
5017 2013-05-06  Richard Biener  <rguenther@suse.de>
5018
5019         PR middle-end/57147
5020         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
5021         the edge is also fallthru, preserve it and just clear the
5022         abnormal flag.
5023         * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
5024         also complex, preserve that and just clear the fallthru flag.
5025         * tree-inline.c (update_ssa_across_abnormal_edges): Also
5026         update virtual operands.
5027
5028 2013-05-06  Alan Modra  <amodra@gmail.com>
5029
5030         * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
5031         (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
5032         * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
5033         * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
5034         (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
5035         * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
5036
5037 2013-05-06  Alan Modra  <amodra@gmail.com>
5038
5039         * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
5040         (ASM_SPEC): ..here.  Emit DEFAULT_ASM_ENDIAN too.
5041         (DEFAULT_ASM_ENDIAN): Define.
5042         (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
5043         * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
5044         Update -K PIC clause from sysv4.h.
5045         (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
5046         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
5047
5048 2013-05-06  Alan Modra  <amodra@gmail.com>
5049
5050         * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
5051         twice for little-endian.
5052         (ashrdi3_no_power, ashrdi3): Support little-endian.
5053
5054 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
5055
5056         PR target/55303
5057         * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
5058         * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
5059         related expanders.
5060         * config/sh/iterators.md (SMIN_SMAX): New code iterator.
5061         * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
5062         clips_min_const_int, clips_max_const_int, clipu_max_const_int):
5063         New predicates.
5064
5065 2013-05-05  Steven Bosscher  <steven@gcc.gnu.org>
5066             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5067
5068         * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
5069         * config/pa/pa.opt: Make mbig-switch a no-op.
5070         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
5071         (CASE_VECTOR_MODE): Always return SImode.
5072         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
5073         for the !TARGET_BIG_SWITCH case.
5074         * config/pa/pa-linux.h: Likewise.
5075         * config/pa/pa-openbsd.h: Likewise.
5076         * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
5077         * config/pa/pa.md (short_jump): Remove define_insn.
5078         (casesi): Remove code for the !TARGET_BIG_SWITCH case.
5079         (casesi0): Remove define_insn.
5080         (type): Remove btable_branch.
5081         (pa_combine_type): Likewise.
5082         (in_nullified_branch_delay): Likewise.
5083         (in_call_delay): Likewise.
5084         (define_delay): Likewise.
5085         (define_insn_reservation "Z3"): Likewise.
5086         (define_insn_reservation "Z4"): Likewise.
5087         * config/pa/pa.c  (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
5088         (pa_adjust_insn_length): Remove adjustment for btable branches.
5089         * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
5090         and mno-big-switch
5091
5092 2013-05-05  Uros Bizjak  <ubizjak@gmail.com>
5093
5094         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
5095         from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
5096         Add m->r,x alternatives.
5097         (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
5098         splitters using SWI48x mode iterator.
5099         (*vec_extract_v2di_0_sse): Rename from *sse2_storeq.  Disable for
5100         TARGET_64BIT.  Add m->x alternative.
5101         (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
5102         Add o->x alternative.  Enable for TARGET_SSE.
5103         (sse_storeq): Remove expander.
5104         (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
5105         with memory input operand.
5106         (*vec_extractv2di_1 splitter): New.
5107         (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
5108         * config/i386/i386.md (ssevecmodelower): New mode attribute.
5109
5110 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
5111
5112         * config/rs6000/rs6000.c (INT_P): Reformat.  Delete obsolete comment.
5113         (INT_LOWPART): Delete.
5114         (extract_MB): Adjust.
5115         (extract_ME): Adjust.
5116         (print_operand): Adjust.
5117
5118 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
5119
5120         * config/rs6000/predicates.md (reg_or_add_cint_operand,
5121         reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
5122         (reg_or_logical_cint_operand, easy_fp_constant,
5123         logical_const_operand): Delete "CONST_DOUBLE" case.
5124         * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
5125         "HOST_BITS_PER_WIDE_INT == 64" test.
5126         (num_insns_constant): Ditto.  Delete CONST_DOUBLE DImode/VOIDmode case.
5127         (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
5128         (rs6000_emit_set_const): Delete CONST_DOUBLE case.
5129         (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
5130         test.
5131         (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
5132         CONST_DOUBLE DImode/VOIDmode case.
5133         (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
5134         (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
5135         CONST_DOUBLE VOIDmode case.
5136         (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
5137         (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
5138         * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
5139         Delete CONST_DOUBLE case.
5140         (splitters for mov FMOVE64 const_double): Delete
5141         "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
5142         "HOST_BITS_PER_WIDE_INT >= 64" test.
5143         (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
5144         case.
5145         (mov DI const_double): Delete.
5146
5147 2013-05-04  Jakub Jelinek  <jakub@redhat.com>
5148
5149         * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
5150         on op shows all bits zero in mode of a lowpart subreg, return zero.
5151
5152 2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
5153
5154         PR target/57150
5155         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
5156         to save TFmode registers and DImode to save TImode registers for
5157         caller save operations.
5158         (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
5159         mark being partially clobbered since they only use the first
5160         double word.
5161
5162         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
5163         and TDmode only use the upper 64-bits of each VSX register.
5164
5165 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5166
5167         * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
5168         (find_candidates_in_block): Disable slsr_process_phi.
5169
5170 2013-05-03  Guozhi Wei  <carrot@google.com>
5171
5172         * coverage.c (coverage_obj_init): Move the construction of gcov
5173         constructor to ...
5174         (build_init_ctor): ... here.
5175
5176 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5177
5178         * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
5179         (slsr_cand_d): Redefine def_phi.
5180         (stride_status, phi_adjust_status, count_phis_status): New enums.
5181         (find_phi_def): New.
5182         (find_basis_for_base_expr): New.
5183         (find_basis_for_candidate): Handle hidden bases.
5184         (alloc_cand_and_find_basis): Handle phi candidates.
5185         (slsr_process_phi): New.
5186         (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
5187         (create_mul_imm_cand): Likewise.
5188         (create_add_ssa_cand): Exclude phi base candidates.
5189         (create_add_imm_cand): Likewise.
5190         (slsr_process_cast): Likewise.
5191         (slsr_process_copy): Likewise.
5192         (find_candidates_in_block): Handle phi candidates.
5193         (dump_candidate): Likewise.
5194         (unconditional_cands): Delete.
5195         (unconditional_cands_with_known_stride_p): Delete.
5196         (phi_dependent_cand_p): New.
5197         (cand_increment): Handle phi-dependent candidates.
5198         (replace_dependent): Delete.
5199         (replace_mult_candidate): New.
5200         (replace_unconditional_candidate): New.
5201         (incr_vec_index): Move to avoid forward reference.
5202         (create_add_on_incoming_edge): New.
5203         (create_phi_basis): New.
5204         (replace_dependents): Delete.
5205         (replace_conditional_candidate): New.
5206         (phi_add_costs): New.
5207         (replace_uncond_cands_and_profitable_phis): New.
5208         (record_increment): Handle phi adjustments.
5209         (record_phi_increments): New.
5210         (record_increments): Handle phi adjustments.
5211         (phi_incr_cost): New.
5212         (lowest_cost_path): Handle phis.
5213         (total_savings): Likewise.
5214         (analyze_increments): Likewise.
5215         (ncd_with_phi): New.
5216         (ncd_of_cand_and_phis): New.
5217         (nearest_common_dominator_for_cands): Handle phi increments.
5218         (all_phi_incrs_profitable): New.
5219         (replace_profitable_candidates): Handle phi-dependent candidates.
5220         (analyze_candidates_and_replace): Likewise.
5221
5222 2013-05-03  Teresa Johnson  <tejohnson@google.com>
5223
5224         PR bootstrap/57154
5225         * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
5226         do not exceed REG_BR_PROB_BASE.
5227
5228 2013-05-03  Jeff Law  <law@redhat.com>
5229
5230         PR tree-optimization/57144
5231         * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
5232         operand of the condition will bit into the new type when eliminating
5233         a cast feeding a condition.
5234
5235 2013-05-03  Jakub Jelinek  <jakub@redhat.com>
5236
5237         PR rtl-optimization/57130
5238         * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
5239         of COMPARE as in_code to the recursive call if needed.
5240
5241 2013-05-03  Uros Bizjak  <ubizjak@gmail.com>
5242
5243         * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
5244         (enabled): Handle new members.
5245         * config/i386/sse.md (*vec_concatv2si): Merge from
5246         *vec_concatv2si_sse2 and vec_concatv2si_sse.
5247         (vec_concatv2di): Merge with *vec_concatv2di_rex64.
5248
5249 2013-05-03  Joern Rennecke <joern.rennecke@embecosm.com>
5250
5251         PR tree-optimization/57027
5252         * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
5253         for fnms opportunity, check we got the prerequisite kind
5254         of tree / gimple before using accessor functions.
5255
5256 2013-05-03  Richard Biener  <rguenther@suse.de>
5257
5258         * double-int.h (lshift): New overload without precision
5259         and arith argument.
5260         (operator *=, operator +=, operator -=): Move ...
5261         * double-int.c (operator *=, operator +=, operator -=): ... here
5262         and implement more efficiently.
5263         (mul_double_with_sign): Remove.
5264         (lshift_double): Adjust to take unsinged shift argument, push
5265         dispatching code to callers.
5266         (mul_double_wide_with_sign): Add early out for callers that
5267         are not interested in high parts or overflow.
5268         (lshift): New function.
5269         (lshift, rshift, alshift, arshift, llshift, lrshift): Add
5270         dispatch code here.
5271         (lrotate, rrotate): Use logical shifts.
5272         * expr.c (get_inner_reference): Use lshift.
5273         * fixed-value.c (do_fixed_divide): Likewise.
5274         * tree-dfa.c (get_ref_base_and_extent): Likewise.
5275         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
5276         (indirect_refs_may_alias_p): Likewise.
5277         (stmt_kills_ref_p_1): Likewise.
5278
5279 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
5280
5281         * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
5282
5283 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
5284
5285         * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
5286         scalar form of FABD instruction.
5287
5288 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
5289
5290         * lra-constraints.c (process_alt_operands): Add checking alt
5291         number to choose the best alternative.
5292
5293 2013-05-02  Richard Biener  <rguenther@suse.de>
5294
5295         * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
5296         bitmap and its handling.
5297         (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
5298
5299 2013-05-02  Richard Biener  <rguenther@suse.de>
5300
5301         PR middle-end/57140
5302         * tree-inline.c (copy_loops): Properly handle removed loops.
5303         (copy_cfg_body): Mark destination loops for fixup if source
5304         loops needed fixup.
5305
5306 2013-05-02  Greta Yorsh  <Greta.Yorsh@arm.com>
5307
5308         PR target/56732
5309         * config/arm/arm.c (arm_expand_epilogue): Check really_return before
5310         generating simple_return for naked functions.
5311
5312 2013-05-02  Martin Jambor  <mjambor@suse.cz>
5313
5314         PR middle-end/56988
5315         * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
5316         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
5317         flags match.
5318         (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
5319         ipa_agg_replacement_value structures.
5320         (known_aggs_to_agg_replacement_list): Likewise.
5321         * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
5322         (read_agg_replacement_chain): Likewise.
5323         (ipcp_transform_function): Also check that by_ref flags match.
5324
5325 2013-05-02  Richard Biener  <rguenther@suse.de>
5326
5327         * graphds.h (struct graph): Add obstack member.
5328         * graphds.c (new_graph): Initialize obstack and allocate
5329         vertices from it.
5330         (add_edge): Allocate edge from the obstack.
5331         (free_graph): Free the obstack instead of all edges and vertices.
5332
5333 2013-05-02  Teresa Johnson  <tejohnson@google.com>
5334
5335         * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
5336         divides.
5337         * cfg.c (update_bb_profile_for_threading): Ditto.
5338         * tree-inline.c (copy_bb): Ditto.
5339         (copy_edges_for_bb): Ditto.
5340         (initialize_cfun): Ditto.
5341         (copy_cfg_body): Ditto.
5342         (expand_call_inline): Ditto.
5343         * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
5344         (estimate_node_size_and_time): Ditto.
5345         (inline_merge_summary): Ditto.
5346         * cgraphclones.c (cgraph_clone_edge): Ditto.
5347         (cgraph_clone_node): Ditto.
5348         * sched-rgn.c (compute_dom_prob_ps): Ditto.
5349         (compute_trg_info): Ditto.
5350
5351 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
5352
5353         * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
5354         S reg when fp attribute set.
5355         (movdi_aarch64): Only allow to/from D reg when fp attribute set.
5356
5357 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
5358
5359         * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
5360         New pattern.
5361         (*and_one_cmplsi3_compare0_uxtw): Likewise.
5362         (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
5363         (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
5364
5365 2013-05-02  Richard Biener  <rguenther@suse.de>
5366
5367         * tree-scalar-evolution.c (scev_info_hasher): Remove.
5368         (struct instantiate_cache_entry): New type.
5369         (struct instantiate_cache_entry_hasher): New hashtable descriptor.
5370         (struct instantiate_cache_type): New type.
5371         (set_instantiated_value, get_instantiated_value): Remove.
5372         (get_instantiated_value_entry): New function.
5373         (instantiate_scev_name): Use the new cache and adjust.
5374         (instantiate_scev_poly): Adjust.
5375         (instantiate_scev_binary): Likewise.
5376         (instantiate_array_ref): Likewise.
5377         (instantiate_scev_convert): Likewise.
5378         (instantiate_scev_not): Likewise.
5379         (instantiate_scev_3): Likewise.
5380         (instantiate_scev_2): Likewise.
5381         (instantiate_scev_r): Likewise.
5382         (instantiate_scev): Likewise.
5383         (resolve_mixers): Likewise.
5384
5385 2013-05-01  Vladimir Makarov  <vmakarov@redhat.com>
5386
5387         PR target/57091
5388         * lra-constraints.c (best_small_class_operands_num): Remove.
5389         (process_alt_operands): Remove small_class_operands_num.  Take
5390         small classes operands into losers and only if the operand is not
5391         matched.  Modify debugging output.
5392         (curr_insn_transform): Remove best_small_class_operands_num.
5393         Print insn name.
5394
5395 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
5396
5397         * config/aarch64/aarch64-builtins.c
5398         (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
5399         * config/aarch64/aarch64-simd-builtins.def
5400         (reduc_splus_): Add new modes.
5401         (reduc_uplus_): New.
5402         * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
5403         (reduc_uplus_v4sf): Likewise.
5404         (reduc_splus_v4sf): Likewise.
5405         (aarch64_addv<mode>): Likewise.
5406         (reduc_uplus_<mode>): Likewise.
5407         (reduc_splus_<mode>): Likewise.
5408         (aarch64_addvv2di): Likewise.
5409         (reduc_uplus_v2di): Likewise.
5410         (reduc_splus_v2di): Likewise.
5411         (aarch64_addvv2si): Likewise.
5412         (reduc_uplus_v2si): Likewise.
5413         (reduc_splus_v2si): Likewise.
5414         (reduc_<sur>plus_<mode>): New.
5415         (reduc_<sur>plus_v2di): Likewise.
5416         (reduc_<sur>plus_v2si): Likewise.
5417         (reduc_<sur>plus_v4sf): Likewise.
5418         (aarch64_addpv4sf): Likewise.
5419         * config/aarch64/arm_neon.h
5420         (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
5421         * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
5422         add UNSPEC_SADDV, UNSPEC_UADDV.
5423         (SUADDV): New.
5424         (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
5425
5426 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
5427
5428         * config/aarch64/arm_neon.h
5429         (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
5430
5431 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
5432
5433         * config/aarch64/aarch64-builtins
5434         (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
5435
5436 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
5437
5438         * config/aarch64/aarch64-simd-builtins.def
5439         (reduc_smax_): New.
5440         (reduc_smin_): Likewise.
5441         (reduc_umax_): Likewise.
5442         (reduc_umin_): Likewise.
5443         (reduc_smax_nan_): Likewise.
5444         (reduc_smin_nan_): Likewise.
5445         (fmax): Remove.
5446         (fmin): Likewise.
5447         (smax): Update for V2SF, V4SF and V2DF modes.
5448         (smin): Likewise.
5449         (smax_nan): New.
5450         (smin_nan): Likewise.
5451         * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
5452         (<su><maxmin><mode>3): ...This, refactor.
5453         (s<maxmin><mode>3): New.
5454         (<maxmin_uns><mode>3): Likewise.
5455         (reduc_<maxmin_uns>_<mode>): Refactor.
5456         (reduc_<maxmin_uns>_v4sf): Likewise.
5457         (reduc_<maxmin_uns>_v2si): Likewise.
5458         (aarch64_<fmaxmin><mode>: Remove.
5459         * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
5460         new builtin names.
5461         (vmin<q>_f<32,64>): Likewise.
5462         * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
5463         (FMAXMIN): New.
5464         (su): Add mappings for smax, smin, umax, umin.
5465         (maxmin): New.
5466         (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
5467         (FMAXMIN): Rename as...
5468         (FMAXMIN_UNS): ...This.
5469         (maxminv): Remove.
5470         (fmaxminv): Likewise.
5471         (fmaxmin): Likewise.
5472         (maxmin_uns): New.
5473         (maxmin_uns_op): Likewise.
5474
5475 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
5476
5477         * config/aarch64/arm_neon.h
5478         (vac<ge, gt><sd>_f<32, 64>): Rename to...
5479         (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
5480         (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
5481
5482 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
5483
5484         * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
5485         * config/aarch64/iterators.md (FAC_COMPARISONS): New.
5486
5487 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
5488
5489         * config/aarch64/aarch64-simd.md
5490         (vcond<mode>_internal): Handle special cases for constant masks.
5491         (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
5492         (vcondu<mode><mode>): Likewise.
5493         (vcond<v_cmp_result><mode>): New.
5494
5495 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
5496
5497         * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
5498         (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
5499         * config/aarch64/aarch64-simd-builtins.def
5500         (cmeq): Update to BUILTIN_VALLDI.
5501         (cmgt): Likewise.
5502         (cmge): Likewise.
5503         (cmle): Likewise.
5504         (cmlt): Likewise.
5505         * config/aarch64/arm_neon.h
5506         (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
5507         to builtins or C as appropriate.
5508
5509 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
5510
5511         * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
5512         (cmgeu): ...This.
5513         (cmhi): Rename to...
5514         (cmgtu): ...This.
5515         * config/aarch64/aarch64-simd.md
5516         (simd_mode): Add SF.
5517         (aarch64_vcond_internal): Use new names for unsigned comparison insns.
5518         (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
5519         * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
5520         (cstore<mode>_neg): ...This.
5521         * config/aarch64/iterators.md
5522         (VALLF): new.
5523         (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
5524         (COMPARISONS): New.
5525         (UCOMPARISONS): Likewise.
5526         (optab): Add missing comparisons.
5527         (n_optab): New.
5528         (cmp_1): Likewise.
5529         (cmp_2): Likewise.
5530         (CMP): Likewise.
5531         (cmp): Remove.
5532         (VCMP_S): Likewise.
5533         (VCMP_U): Likewise.
5534         (V_cmp_result): Add DF, SF modes.
5535         (v_cmp_result): Likewise.
5536         (v): Likewise.
5537         (vmtype): Likewise.
5538         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
5539
5540 2013-05-01  Greta Yorsh  <Greta.Yorsh@arm.com>
5541
5542         * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
5543         define_insn to define_insn_and_split.
5544         (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
5545         (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
5546         (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
5547         (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
5548         (thumb2_negscc): Likewise.
5549
5550 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
5551
5552         * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
5553
5554 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
5555
5556         * config/arm/thumb2.md: Remove trailing whitespaces.
5557
5558 2013-04-30  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
5559
5560         * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
5561         Use gen_int_mode rather than GEN_INT.
5562
5563 2013-04-30  H.J. Lu  <hongjiu.lu@intel.com>
5564
5565         * value-prof.c (stream_in_histogram_value): Remove the strayed
5566         debug_gimple_stmt.
5567
5568 2013-04-30  Richard Biener  <rguenther@suse.de>
5569
5570         PR middle-end/57122
5571         * cfghooks.c (split_edge): Properly check for the loop latch edge.
5572
5573 2013-04-30  Richard Biener  <rguenther@suse.de>
5574
5575         PR middle-end/57107
5576         * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
5577
5578 2013-04-30  Andrey Belevantsev  <abel@ispras.ru>
5579
5580         PR rtl-optimization/56957
5581         PR rtl-optimization/57105
5582         * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
5583         variable.  Use just INSN_UID for determining whether an insn
5584         should be only disconnected from the insn stream.
5585         * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
5586
5587 2013-04-30  Jakub Jelinek  <jakub@redhat.com>
5588
5589         PR tree-optimization/57104
5590         * tsan.c (instrument_expr): Don't instrument accesses to
5591         DECL_HARD_REGISTER VAR_DECLs.
5592
5593 2013-04-30  Richard Biener  <rguenther@suse.de>
5594
5595         * function.h (loops_for_fn): New inline function.
5596         (set_loops_for_fn): Likewise.
5597         * cfgloop.h (place_new_loop): Add struct function parameter.
5598         (get_loop): Likewise.
5599         (get_loops): Likewise.
5600         (number_of_loops): Likewise.
5601         (fel_next): Adjust.
5602         (fel_init): Likewise.
5603         * cfg.c (get_loop_copy): Adjust.
5604         * cfgloop.c (flow_loops_dump): Likewise.
5605         (record_loop_exits): Likewise.
5606         (verify_loop_structure): Likewise.
5607         * cfgloopanal.c (mark_irreducible_loops): Likewise.
5608         (estimate_reg_pressure_cost): Likewise.
5609         (mark_loop_exit_edges): Likewise.
5610         * cfgloopmanip.c (place_new_loop): Likewise.
5611         (add_loop): Likewise.
5612         (duplicate_loop): Likewise.
5613         * graph.c (draw_cfg_nodes): Likewise.
5614         * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
5615         * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
5616         (extract_affine_chrec): Likewise.
5617         (build_scop_iteration_domain): Likewise.
5618         * graphite.c (graphite_initialize): Likewise.
5619         * ira-build.c (create_loop_tree_nodes): Likewise.
5620         (more_one_region_p): Likewise.
5621         (rebuild_regno_allocno_maps): Likewise.
5622         (mark_loops_for_removal): Likewise.
5623         (mark_all_loops_for_removal): Likewise.
5624         (remove_unnecessary_regions): Likewise.
5625         (ira_build): Likewise.
5626         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
5627         * loop-init.c (fix_loop_structure): Likewise.
5628         (gate_rtl_move_loop_invariants): Likewise.
5629         (gate_rtl_unswitch): Likewise.
5630         (gate_rtl_unroll_and_peel_loops): Likewise.
5631         (rtl_doloop): Likewise.
5632         * lto-streamer-in.c (input_cfg): Likewise.
5633         * lto-streamer-out.c (output_cfg): Likewise.
5634         * modulo-sched.c (sms_schedule): Likewise.
5635         * predict.c (tree_estimate_probability): Likewise.
5636         (tree_estimate_probability_driver): Likewise.
5637         (estimate_loops): Likewise.
5638         * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
5639         (move_sese_region_to_fn): Likewise.
5640         (debug_loop_num): Likewise.
5641         * tree-chrec.c (chrec_evaluate): Likewise.
5642         (hide_evolution_in_other_loops_than_loop): Likewise.
5643         (chrec_component_in_loop_num): Likewise.
5644         (reset_evolution_in_loop): Likewise.
5645         (evolution_function_is_invariant_rec_p): Likewise.
5646         * tree-if-conv.c (main_tree_if_conversion): Likewise.
5647         * tree-inline.c (copy_loops): Likewise.
5648         (copy_cfg_body): Likewise.
5649         (tree_function_versioning): Likewise.
5650         * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
5651         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
5652         Likewise.
5653         (add_to_evolution_1): Likewise.
5654         (scev_const_prop): Likewise.
5655         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
5656         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
5657         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
5658         (tree_ssa_lim_initialize): Likewise.
5659         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
5660         (verify_loop_closed_ssa): Likewise.
5661         * tree-ssa-loop.c  (tree_ssa_loop_init): Likewise.
5662         (tree_ssa_loop_im): Likewise.
5663         (tree_ssa_loop_unswitch): Likewise.
5664         (tree_vectorize): Likewise.
5665         (check_data_deps): Likewise.
5666         (tree_ssa_loop_ivcanon): Likewise.
5667         (tree_ssa_loop_bounds): Likewise.
5668         (tree_complete_unroll): Likewise.
5669         (tree_complete_unroll_inner): Likewise.
5670         (tree_parallelize_loops): Likewise.
5671         (tree_ssa_loop_prefetch): Likewise.
5672         (tree_ssa_loop_ivopts): Likewise.
5673         * tree-ssa.c (execute_update_addresses_taken): Liekwise.
5674         * tree-vectorizer.c (vectorize_loops): Likewise.
5675
5676 2013-04-29  Mike Frysinger  <vapier@gentoo.org>
5677
5678         * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
5679         (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
5680         * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
5681         with EABI_LINK_SPEC.
5682
5683 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
5684
5685         PR target/44578
5686         * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
5687         alternative.
5688
5689 2013-04-29  Vladimir Makarov  <vmakarov@redhat.com>
5690
5691         PR target/57097
5692         * lra-constraints.c (process_alt_operands): Discourage a bit more
5693         using memory for pseudos.  Print cost dump for alternatives.
5694         Modify cost values for conflicts with early clobbers.
5695         (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
5696
5697 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
5698
5699         PR target/57098
5700         * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
5701
5702 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
5703
5704         * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
5705         from/to S register.
5706         (movdi_aarch64): Support LDR/STR from/to D register.
5707
5708 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
5709
5710         * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
5711         or higher by default.
5712
5713 2013-04-29  Richard Biener  <rguenther@suse.de>
5714
5715         PR middle-end/57075
5716         * tree-inline.c (copy_edges_for_bb): Still split the bbs,
5717         even if not adding abnormal edges for calls that can make
5718         abnormal gotos.
5719
5720 2013-04-29  Richard Biener  <rguenther@suse.de>
5721
5722         PR middle-end/57103
5723         * tree-cfg.c (move_stmt_op): Fix condition under which to update
5724         TREE_BLOCK.
5725         (move_stmt_r): Remove redundant checking.
5726
5727 2013-04-29  Teresa Johnson  <tejohnson@google.com>
5728
5729         PR bootstrap/57077
5730         * basic-block.h (apply_scale): New function.
5731         (apply_probability): Use apply_scale.
5732         * gimple-streamer-in.c (input_bb): Ditto.
5733         * lto-streamer-in.c (input_cfg): Ditto.
5734         * lto-cgraph.c (merge_profile_summaries): Ditto.
5735         * tree-optimize.c (execute_fixup_cfg): Ditto.
5736         * tree-inline.c (copy_bb): Update comment to use apply_scale.
5737         (copy_edges_for_bb): Ditto.
5738         (copy_cfg_body): Ditto.
5739
5740 2013-04-29  Tom de Vries  <tom@codesourcery.com>
5741
5742         * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
5743         (replace_block_by): Don't set LOOPS_NEED_FIXUP.
5744         (tail_merge_optimize): Handle current_loops == NULL.
5745
5746 2013-04-26  Jeff Law  <law@redhat.com>
5747
5748         * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
5749         (simplify_cond_using_ranges): Generalize code to simplify
5750         COND_EXPRs where one argument is a constant and the other
5751         is an SSA_NAME created by an integral type conversion.
5752
5753 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5754
5755         * config/arm/arm.md (store_minmaxsi): Use only when
5756         optimize_insn_for_size_p.
5757
5758 2013-04-29  Christian Bruel  <christian.bruel@st.com>
5759
5760         PR target/57108
5761         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
5762
5763 2013-04-29  Richard Biener  <rguenther@suse.de>
5764
5765         PR middle-end/57089
5766         * omp-low.c (expand_omp_taskreg): If the parent function had a broken
5767         loop tree make sure to schedule a fixup for the child as well.
5768         (expand_omp_for_generic): Properly add loops.
5769         (expand_omp_for_static_nochunk): Likewise.
5770         (expand_omp_for_static_chunk): Likewise.
5771         (expand_omp_for): For the degenerate case fixup loops.
5772         (expand_omp_sections): Fix default bb placement in loops.
5773         (expand_omp_atomic_pipeline): Properly add loops.
5774
5775 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5776
5777         * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
5778
5779 2013-04-29  Tom de Vries  <tom@codesourcery.com>
5780
5781         * tree-ssa-tail-merge.c: Update header comment.
5782
5783 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5784
5785         * config/aarch64/arm_neon.h
5786         (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
5787         (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
5788         (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
5789         (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
5790         (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
5791         (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
5792         (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
5793         (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
5794
5795 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5796
5797         * config/aarch64/aarch64-simd.md
5798         (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
5799         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
5800         fix_trunc, fixuns_trunc.
5801         (ftrunc<VDQF:mode>2): New.
5802         * config/aarch64/iterators.md (optab): Add fix, fixuns.
5803         (fix_trunc_optab): New.
5804
5805 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5806
5807         * config/aarch64/aarch64-builtins.c
5808         (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
5809         iceilf, lround, iroundf.
5810
5811 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
5812
5813         PR target/54349
5814         * config/i386/i386.h (enum ix86_tune_indices)
5815         <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
5816         New, split from X86_TUNE_INTER_UNIT_MOVES.
5817         <X86_TUNE_INTER_UNIT_MOVES>: Remove.
5818         (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
5819         (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
5820         (TARGET_INTER_UNIT_MOVES): Remove.
5821         * config/i386/i386.c (initial_ix86_tune_features): Update.
5822         Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
5823         (ix86_expand_convert_uns_didf_sse): Use
5824         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
5825         (ix86_expand_vector_init_one_nonzero): Ditto.
5826         (ix86_expand_vector_init_interleave): Ditto.
5827         (inline_secondary_memory_needed): Return true for moves from SSE class
5828         registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
5829         to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
5830         * config/i386/constraints.md (Yi, Ym): Depend on
5831         TARGET_INTER_UNIT_MOVES_TO_VEC.
5832         (Yj, Yn): New constraints.
5833         * config/i386/i386.md (*movdi_internal): Change constraints of
5834         operand 1 from Yi to Yj and from Ym to Yn.
5835         (*movsi_internal): Ditto.
5836         (*movdf_internal): Ditto.
5837         (*movsf_internal): Ditto.
5838         (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
5839         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
5840         (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
5841         (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
5842         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
5843         * config/i386/sse.md (movdi_to_sse): Ditto.
5844         (sse2_stored): Change constraint of operand 1 from Yi to Yj.
5845         Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
5846         TARGET_INTER_UNIT_MOVES.
5847         (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
5848         (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
5849         instead of TARGET_INTER_UNIT_MOVES.
5850         * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
5851         operand 1 from Yi to Yj and from Ym to Yn.
5852
5853 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5854
5855         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
5856         (float_truncate_hi_): Likewise.
5857         (float_extend_lo_): Likewise.
5858         (float_truncate_lo_): Likewise.
5859         * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
5860         (aarch64_float_extend_lo_v2df): Likewise.
5861         (vec_unpacks_hi_v4sf): Likewise.
5862         (aarch64_float_truncate_lo_v2sf): Likewise.
5863         (aarch64_float_truncate_hi_v4sf): Likewise.
5864         (vec_pack_trunc_v2df): Likewise.
5865         (vec_pack_trunc_df): Likewise.
5866
5867 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5868
5869         * config/aarch64/aarch64-builtins.c
5870         (aarch64_fold_builtin): Fold float conversions.
5871         * config/aarch64/aarch64-simd-builtins.def
5872         (floatv2si, floatv4si, floatv2di): New.
5873         (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
5874         * config/aarch64/aarch64-simd.md
5875         (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
5876         * config/aarch64/iterators.md (FLOATUORS): New.
5877         (optab): Add float, floatuns.
5878         (su_optab): Likewise.
5879
5880 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5881
5882         * config/aarch64/aarch64-builtins.c
5883         (aarch64_builtin_vectorized_function): Use new names for
5884         fcvt builtins.
5885         * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
5886         (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
5887         (fcvtzu): Split as...
5888         (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
5889         (fcvtas): Split as...
5890         (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
5891         (fcvtau): Split as...
5892         (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
5893         (fcvtps): Split as...
5894         (lceilv2sf, lceilv4sf, lceilv2df): ...This.
5895         (fcvtpu): Split as...
5896         (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
5897         (fcvtms): Split as...
5898         (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
5899         (fcvtmu): Split as...
5900         (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
5901         (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
5902         (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
5903         (lfrintnusf, lfrintnudf): Likewise.
5904         * config/aarch64/aarch64-simd.md
5905         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
5906         define_insn.
5907         (aarch64_fcvt<frint_suffix><su><mode>): Remove.
5908         * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
5909         (fcvt_pattern): Likewise.
5910
5911 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5912
5913         * config/aarch64/aarch64-simd.md
5914         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
5915         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
5916
5917 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5918
5919         * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
5920         (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
5921         (vrnd<a,m,n,p>_f32): Implement using builtins.
5922         (vrnd<i,x><q>_f<32, 64>): New.
5923
5924 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5925
5926         * config/aarch64/aarch64-builtins.c
5927         (aarch64_builtin_vectorized_function): Fold to standard pattern names.
5928         * config/aarch64/aarch64-simd-builtins.def (frintn): New.
5929         (frintz): Rename to...
5930         (btrunc): ...this.
5931         (frintp): Rename to...
5932         (ceil): ...this.
5933         (frintm): Rename to...
5934         (floor): ...this.
5935         (frinti): Rename to...
5936         (nearbyint): ...this.
5937         (frintx): Rename to...
5938         (rint): ...this.
5939         (frinta): Rename to...
5940         (round): ...this.
5941         * config/aarch64/aarch64-simd.md
5942         (aarch64_frint<frint_suffix><mode>): Delete.
5943         (<frint_pattern><mode>2): Convert to insn.
5944         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
5945         * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
5946         (frint_pattern): Likewise.
5947         (frint_suffix): Likewise.
5948
5949 2013-04-29  Richard Biener  <rguenther@suse.de>
5950
5951         PR tree-optimization/57081
5952         * loop-init.c: Include tree-flow.h.
5953         (loop_optimizer_finalize): Free number of iteration estimates.
5954         * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
5955
5956 2013-04-29  Jakub Jelinek  <jakub@redhat.com>
5957
5958         PR tree-optimization/57083
5959         * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
5960         non-singleton shift count range, zero extend low_bound for uns case.
5961
5962         * config/i386/predicates.md (general_vector_operand): New predicate.
5963         * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
5964         (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
5965         if they aren't nonimmediate operands.  If their original values
5966         satisfy const_vector_equal_evenodd_p, don't shift them.
5967         * config/i386/sse.md (mul<mode>3): Use general_vector_operand
5968         predicates.  For the SSE4.1 case force operands[{1,2}] into registers
5969         if not nonimmediate_operand.
5970         (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
5971         instead of register_operand.
5972         (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
5973
5974 2013-04-28  Eric Botcazou  <ebotcazou@adacore.com>
5975
5976         * stor-layout.c (finalize_size_functions): Allocate a structure and
5977         reset cfun before dumping the functions.
5978
5979 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
5980
5981         * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
5982
5983         PR target/56866
5984         * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
5985         use xop_pmacsdqh if uns_p.
5986         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
5987         the immediate rotate count.
5988
5989 2013-04-26  Vladimir Makarov  <vmakarov@redhat.com>
5990
5991         * rtl.h (struct rtx_def): Add comment for field jump.
5992         (LRA_SUBREG_P): New macro.
5993         * recog.c (register_operand): Check LRA_SUBREG_P.
5994         * lra.c (lra): Add note at the end of RTL code. Align non-empty
5995         stack frame.
5996         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
5997         (lra_final_code_change): Skip subreg change for operators.
5998         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
5999         if there are no operand changes.
6000         * lra-constraints.c (curr_insn_set): New.
6001         (match_reload): Set LRA_SUBREG_P.
6002         (emit_spill_move): Ditto.
6003         (check_and_process_move): Use curr_insn_set. Process only single
6004         set insns.  Don't initialize sec_mem_p and change_p.
6005         (simplify_operand_subreg): Use LRA_SUBREG_P.
6006         (reg_in_class_p): New function.
6007         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
6008         of #ifdef.  Add code to remove cycling.
6009         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
6010         non-null disp.  Reload inner instead of disp when base and index
6011         are null.  Try to put lo_sum into register.
6012         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
6013         (check_and_process_move): Move code for move cost check to
6014         simple_move_p.  Remove equiv_substitution.
6015         (simple_move_p): New function.
6016         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
6017         curr_insn_set.  Call check_and_process_move only for single set
6018         insns.  Use the new function.  Move call of check_and_process_move
6019         after operand equiv substitution and address process.
6020
6021 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
6022
6023         PR go/57045
6024         * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
6025         with nonlocal goto receivers or returns twice calls, ignore
6026         unininitialized values from abnormal edges to nl goto receiver
6027         or returns twice call.
6028
6029 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
6030
6031         PR tree-optimization/57051
6032         * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
6033         and VEC_RSHIFT_EXPR if shift count is a multiple of element
6034         bitsize.
6035
6036 2013-04-26  Richard Biener  <rguenther@suse.de>
6037
6038         * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
6039         (expand_omp_taskreg): Likewise.  Mark loops for fixup.
6040         * tree-cfg.c (move_block_to_fn): Remap loop fathers.
6041         (fixup_loop_arrays_after_move): New function.
6042         (move_sese_region_to_fn): Properly outline the loop tree parts
6043         of the SESE region.
6044
6045 2013-04-26  Uros Bizjak  <ubizjak@gmail.com>
6046
6047         * config/i386/i386.md (type, unit): Fix long lines.
6048
6049 2013-04-26  Richard Biener  <rguenther@suse.de>
6050
6051         * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
6052         (lto-streamer-out.o): Likewise.
6053         * cfgloop.c (init_loops_structure): Export, add struct function
6054         argument and adjust.
6055         (flow_loops_find): Adjust.
6056         * cfgloop.h (enum loop_estimation): Add EST_LAST.
6057         (init_loops_structure): Declare.
6058         * lto-streamer-in.c: Include cfgloop.h.
6059         (input_cfg): Input the loop tree.
6060         * lto-streamer-out.c: Include cfgloop.h.
6061         (output_cfg): Output the loop tree.
6062         (output_struct_function_base): Do not drop PROP_loops.
6063
6064 2013-03-26  Richard Biener  <rguenther@suse.de>
6065
6066         * tree-cfg.c (execute_build_cfg): Build the loop tree.
6067         (pass_build_cfg): Provide PROP_loops.
6068         (move_sese_region_to_fn): Remove loops that are outlined into fn
6069         for now.
6070         * tree-inline.c: Include cfgloop.h.
6071         (initialize_cfun): Do not drop PROP_loops.
6072         (copy_loops): New function.
6073         (copy_cfg_body): Copy loop structure.
6074         (tree_function_versioning): Initialize destination loop tree.
6075         * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
6076         (pass_parallelize_loops): Do IL verification.
6077         * loop-init.c (loop_optimizer_init): Fixup loops if required.
6078         * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
6079         the CFG make sure we fixup loops as well.
6080         * tree-ssa-tail-merge.c: Include cfgloop.h.
6081         (replace_block_by): When merging loop latches mark loops for fixup.
6082         * lto-streamer-out.c (output_struct_function_base): Drop
6083         PROP_loops for now.
6084         * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
6085         (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
6086         * ipa-split.c: Include cfgloop.h.
6087         (split_function): Add the new return block to the loop tree root.
6088         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
6089         whether we have removed the forwarder block.
6090         (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
6091         * cfgloop.h (place_new_loop): Declare.
6092         * cfgloopmanip.c (place_new_loop): Export.
6093         * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
6094         (tree-switch-conversion.o): Likewise.
6095         (tree-complex.o): Likewise.
6096         (tree-inline.o): Likewise.
6097         (tree-ssa-tailmerge.o): Likewise.
6098         (ipa-split.o): Likewise.
6099         (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
6100         (tree-ssa-copy.o): Likewise.
6101         * tree-switch-conversion.c: Include cfgloop.h
6102         (process_switch): If we emit a bit-test cascade, schedule loops
6103         for fixup.
6104         * tree-complex.c: Include cfgloop.h.
6105         (expand_complex_div_wide): Properly add new basic-blocks to loops.
6106         * asan.c: Include cfgloop.h.
6107         (create_cond_insert_point): Properly add new basic-blocks to
6108         loops, schedule loop fixup.
6109         * cfgloop.c (verify_loop_structure): Check that looks are not
6110         marked for fixup.
6111         * omp-low.c (expand_parallel_call): Properly add new basic-blocks
6112         to loops.
6113         (expand_omp_for_generic): Likewise.
6114         (expand_omp_sections): Likewise.
6115         (expand_omp_atomic_pipeline): Schedule loops for fixup.
6116         * tree-ssa-copy.c: Include tree-scalar-evolution.h.
6117         (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
6118         is initialized, not when loops are present.
6119         * tree-parloops.c (parallelize_loops): Remove checking here.
6120         * passes.c (init_optimization_passes): Schedule a copy-propagation
6121         pass before complete unrolling of inner loops.
6122
6123 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
6124
6125         * Makefile.in (toplev.o): Depend on diagnostic-color.h.
6126         * diagnostic-color.c (should_colorize): Remove _WIN32 version.
6127         (colorize_init): Add argument to _WIN32 version.
6128         * toplev.c: Include diagnostic-color.h.
6129         (process_options): Default to -fdiagnostics-color=auto if
6130         GCC_COLORS env var is in the environment.
6131         * common.opt (fdiagnostics-color=): Add Var and Init.
6132         * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
6133         env var is in the environment, the default is auto rather than never.
6134
6135         * diagnostic.h (file_name_as_prefix): Add context argument.
6136         * diagnostic.c (file_name_as_prefix): Likewise.  Colorize
6137         the string as locus.
6138         * langhooks.c (lhd_print_error_function): Adjust caller.
6139
6140 2013-04-25  Lawrence Crowl  <crowl@google.com>
6141
6142         * var-tracking.c (shared_hash_def::htab):
6143         Change type to hash_table.  Update dependent calls and types.
6144
6145 2013-04-25  Lawrence Crowl  <crowl@google.com>
6146
6147         * Makefile.in: Update as needed below.
6148
6149         * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
6150         Move declaration to after the type's method definitons.
6151
6152         * attribs.c (htab_t scoped_attributes::attribute_hash):
6153         Change type to hash_table.  Update dependent calls and types.
6154
6155         * bitmap.c (htab_t bitmap_desc_hash):
6156         Change type to hash_table.  Update dependent calls and types.
6157
6158         * cselib.c (htab_t cselib_hash_table):
6159         Change type to hash_table.  Update dependent calls and types.
6160
6161         * data-streamer.h (struct string_slot): Move to lto-streamer.h.
6162         (hash_string_slot_node): Move implementation into lto-streamer.h
6163         struct string_slot_hasher.
6164         (eq_string_slot_node): Likewise.
6165
6166         * data-streamer-out.c: Update output_block::string_hash_table
6167         dependent calls and types.
6168
6169         * dwarf2cfi.c (htab_t trace_index):
6170         Change type to hash_table.  Update dependent calls and types.
6171
6172         * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
6173         Change type to hash_table.  Update dependent calls and types.
6174         (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
6175         (htab_t optimize_external_refs::map): Likewise.
6176         (htab_t output_comp_unit::extern_map): Likewise.
6177         (htab_t output_comdat_type_unit::extern_map): Likewise.
6178         (htab_t output_macinfo::macinfo_htab): Likewise.
6179         (htab_t optimize_location_lists::htab): Likewise.
6180         (htab_t dwarf2out_finish::comdat_type_table): Likewise.
6181
6182         * except.c (htab_t ehspec_hash_type):
6183         Change type to hash_table.  Update dependent calls and types.
6184         (assign_filter_values::ttypes): Likewise.
6185         (assign_filter_values::ehspec): Likewise.
6186         (sjlj_assign_call_site_values::ar_hash): Likewise.
6187         (convert_to_eh_region_ranges::ar_hash): Likewise.
6188
6189         * gcse.c (htab_t pre_ldst_table):
6190         Change type to hash_table.  Update dependent calls and types.
6191
6192         * ggc-common.c (htab_t saving_htab):
6193         Change type to hash_table.  Update dependent calls and types.
6194         (htab_t loc_hash): Likewise.
6195         (htab_t ptr_hash): Likewise.
6196         (call_count): Rename ggc_call_count.
6197         (call_alloc): Rename ggc_call_alloc.
6198         (loc_descriptor): Rename make_loc_descriptor.
6199         (add_statistics): Rename ggc_add_statistics.
6200
6201         * ggc-common.c (saving_htab):
6202         Change type to hash_table.  Update dependent calls and types.
6203
6204         * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
6205         (push_gimplify_context): Likewise.
6206         (pop_gimplify_context): Likewise.
6207         (struct gimple_temp_hash_elt): Added.
6208         (struct gimplify_hasher): Likewise.
6209         (struct gimplify_ctx.temp_htab):
6210         Change type to hash_table.  Update dependent calls and types.
6211
6212         * gimple-fold.c: Include gimplify-ctx.h.
6213
6214         * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
6215         Change type to hash_table.  Update dependent calls and types.
6216         (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
6217         avoid potential global name collision.
6218
6219         * gimplify.c: Include gimplify-ctx.h.
6220         (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
6221         (htab_t gimplify_ctx::temp_htab):
6222         Update dependent calls and types for new type hash_table.
6223         (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
6224         (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
6225
6226         * gimplify-ctx.h: New.
6227         (struct gimple_temp_hash_elt): Move from gimplify.c.
6228         (class gimplify_hasher): New.
6229         (struct gimplify_ctx): Move from gimple.h.
6230         (htab_t gimplify_ctx::temp_htab):
6231         Change type to hash_table.  Update dependent calls and types.
6232
6233         * graphite-clast-to-gimple.c: Include graphite-htab.h.
6234         (htab_t ivs_params::newivs_index):
6235         Change type to hash_table.  Update dependent calls and types.
6236         (htab_t ivs_params::params_index): Likewise.
6237         (htab_t print_generated_program::params_index): Likewise.
6238         (htab_t gloog::newivs_index): Likewise.
6239         (htab_t gloog::params_index): Likewise.
6240
6241         * graphite.c: Include graphite-htab.h.
6242         4htab_t graphite_transform_loops::bb_pbb_mapping):
6243         Change type to hash_table.  Update dependent calls and types.
6244
6245         * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
6246         (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
6247         (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
6248
6249         * graphite-dependences.c: Include graphite-htab.h.
6250         (loop_is_parallel_p): Change hash table type of parameter.
6251
6252         * graphite-htab.h: New.
6253         (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
6254         (extern find_pbb_via_hash): Move from graphite-poly.h.
6255         (extern loop_is_parallel_p): Move from graphite-poly.h.
6256         (extern get_loop_body_pbbs): Move from graphite-poly.h.
6257
6258         * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
6259         (extern loop_is_parallel_p): Move to graphite-htab.h.
6260         (extern get_loop_body_pbbs): Move to graphite-htab.h.
6261
6262         * haifa-sched.c (htab_t delay_htab):
6263         Change type to hash_table.  Update dependent calls and types.
6264         (htab_t delay_htab_i2): Likewise.
6265
6266         * ira-color.c (htab_t allocno_hard_regs_htab):
6267         Change type to hash_table.  Update dependent calls and types.
6268
6269         * ira-costs.c (htab_t cost_classes_htab):
6270         Change type to hash_table.  Update dependent calls and types.
6271
6272         * loop-invariant.c (htab_t merge_identical_invariants::eq):
6273         Change type to hash_table.  Update dependent calls and types.
6274
6275         * loop-iv.c (htab_t bivs):
6276         Change type to hash_table.  Update dependent calls and types.
6277
6278         * loop-unroll.c (htab_t opt_info::insns_to_split):
6279         Change type to hash_table.  Update dependent calls and types.
6280         (htab_t opt_info::insns_with_var_to_expand): Likewise.
6281
6282         * lto-streamer.h (struct string_slot): Move from data-streamer.h
6283         (struct string_slot_hasher): New.
6284         (htab_t output_block::string_hash_table):
6285         Change type to hash_table.  Update dependent calls and types.
6286
6287         * lto-streamer-in.c (freeing_string_slot_hasher): New.
6288         (htab_t file_name_hash_table):
6289         Change type to hash_table.  Update dependent calls and types.
6290
6291         * lto-streamer-out.c: Update output_block::string_hash_table dependent
6292         calls and types.
6293
6294         * lto-streamer.c (htab_t tree_htab):
6295         Change type to hash_table.  Update dependent calls and types.
6296
6297         * omp-low.c: Include gimplify-ctx.h.
6298
6299         * passes.c (htab_t name_to_pass_map):
6300         Change type to hash_table.  Update dependent calls and types.
6301         (pass_traverse): Rename to passes_pass_traverse.
6302
6303         * plugin.c (htab_t event_tab):
6304         Change type to hash_table.  Update dependent calls and types.
6305
6306         * postreload-gcse.c (htab_t expr_table):
6307         Change type to hash_table.  Update dependent calls and types.
6308         (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
6309
6310         * sese.c (debug_rename_map_1): Make extern.
6311         (htab_t copy_bb_and_scalar_dependences::rename_map):
6312         Change type to hash_table.  Update dependent calls and types.
6313
6314         * sese.h (extern debug_rename_map): Move to .c file.
6315
6316         * store-motion.c (htab_t store_motion_mems_table):
6317         Change type to hash_table.  Update dependent calls and types.
6318
6319         * trans-mem.c (htab_t tm_new_mem_hash):
6320         Change type to hash_table.  Update dependent calls and types.
6321
6322         * tree-browser.c (htab_t TB_up_ht):
6323         Change type to hash_table.  Update dependent calls and types.
6324
6325         * tree-cfg.c (htab_t discriminator_per_locus):
6326         Change type to hash_table.  Update dependent calls and types.
6327
6328         * tree-complex.c: Include tree-hasher.h
6329         (htab_t complex_variable_components):
6330         Change type to hash_table.  Update dependent calls and types.
6331
6332         * tree-eh.c (htab_t finally_tree):
6333         Change type to hash_table.  Update dependent calls and types.
6334
6335         * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
6336         struct int_tree_hasher.
6337         (extern int_tree_map_eq): Likewise.
6338         (uid_decl_map_hash): Removed.
6339         (extern decl_tree_map_eq): Likewise.
6340
6341         * tree-hasher.h: New.
6342         (struct int_tree_hasher): New.
6343         (typedef int_tree_htab_type): New.
6344
6345         * tree-inline.c: Include gimplify-ctx.h.
6346
6347         * tree-mudflap.c: Include gimplify-ctx.h.
6348
6349         * tree-parloops.c: Include tree-hasher.h.
6350         (htab_t eliminate_local_variables_stmt::decl_address):
6351         Change type to hash_table.  Update dependent calls and types.
6352         (htab_t separate_decls_in_region::decl_copies): Likewise.
6353
6354         * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
6355         Change type to hash_table.  Update dependent calls and types.
6356
6357         * tree-sra.c (candidates):
6358         Change type to hash_table.  Update dependent calls and types.
6359
6360         * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
6361         in tree-flow.h.
6362         (int_tree_map_hash): Likewise.
6363
6364         * tree-ssa-dom.c (htab_t avail_exprs):
6365         Change type to hash_table.  Update dependent calls and types.
6366
6367         * tree-ssa-live.c (var_map_base_init::tree_to_index):
6368         Change type to hash_table.  Update dependent calls and types.
6369
6370         * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
6371         Change type to hash_table.  Update dependent calls and types.
6372
6373         * tree-ssa-phiopt.c (seen_ssa_names):
6374         Change type to hash_table.  Update dependent calls and types.
6375
6376         * tree-ssa-strlen.c (decl_to_stridxlist_htab):
6377         Change type to hash_table.  Update dependent calls and types.
6378
6379         * tree-ssa-uncprop.c (equiv):
6380         Change type to hash_table.  Update dependent calls and types.
6381
6382 2013-04-25  Jakub Jelinek  <jakub@redhat.com>
6383
6384         PR rtl-optimization/57003
6385         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
6386         call note_stores with kill_clobbered_value callback again after
6387         killing regs_invalidated_by_call.
6388
6389 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
6390
6391         * config/aarch64/aarch64-simd.md
6392         (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
6393         (aarch64_simd_bsl<mode>): Likewise.
6394         * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
6395
6396 2013-04-25  Marek Polacek  <polacek@redhat.com>
6397
6398         PR tree-optimization/57066
6399         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
6400
6401 2013-04-25  James Greenhalgh  <jame.greenhalgh@arm.com>
6402
6403         * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
6404
6405 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
6406
6407         * config/aarch64/aarch64-builtins.c
6408         (aarch64_fold_builtin): New.
6409         * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
6410         * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
6411         * config/aarch64/aarch64-simd-builtins.def (abs): New.
6412         * config/aarch64/arm_neon.h
6413         (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
6414
6415 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
6416             Tejas Belagod  <tejas.belagod@arm.com>
6417
6418         * config/aarch64/aarch64-builtins.c
6419         (aarch64_gimple_fold_builtin): New.
6420         * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
6421         * config/aarch64/aarch64-simd-builtins.def (addv): New.
6422         * config/aarch64/aarch64-simd.md (addpv4sf): New.
6423         (addvv4sf): Update.
6424         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
6425
6426 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6427
6428         * config/aarch64/aarch64.md
6429         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
6430
6431 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6432
6433         * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
6434         (*ngcsi_uxtw): New pattern.
6435
6436 2013-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6437             Julian Brown  <julian@codesourcery.com>
6438
6439         * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
6440         (TB_DREG): Add T_V4HF.
6441         (v4hf_UP): New macro.
6442         (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
6443         (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
6444         Handle initialisation of V4HF. Adjust initialisation of reinterpret
6445         built-ins.
6446         (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
6447         (arm_vector_mode_supported_p): Handle V4HF.
6448         (arm_mangle_map): Handle V4HFmode.
6449         * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
6450         * config/arm/arm_neon_builtins.def: Add entries for
6451         vcvtv4hfv4sf, vcvtv4sfv4hf.
6452         * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
6453         (neon_vcvtv4hfv4sf): Likewise.
6454         * config/arm/neon-gen.ml: Handle half-precision floating point
6455         features.
6456         * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
6457         * config/arm/arm_neon.h: Regenerate.
6458         * config/arm/neon.ml (type elts): Add F16.
6459         (type vectype): Add T_float16x4, T_floatHF.
6460         (type vecmode): Add V4HF.
6461         (type features): Add Requires_FP_bit feature.
6462         (elt_width): Handle F16.
6463         (elt_class): Likewise.
6464         (elt_of_class_width): Likewise.
6465         (mode_of_elt): Refactor.
6466         (type_for_elt): Handle F16, fix error messages.
6467         (vectype_size): Handle T_float16x4.
6468         (vcvt_sh): New function.
6469         (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
6470         (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
6471         (string_of_mode): Handle V4HF.
6472         * doc/arm-neon-intrinsics.texi: Regenerate.
6473
6474 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
6475
6476         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
6477         format specifier in 'X' case.
6478
6479 2013-04-25  Alan Modra  <amodra@gmail.com>
6480
6481         PR target/57052
6482         * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
6483         rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
6484         (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
6485         Repeat for many other rotate/shift and mask patterns using subregs.
6486         Name lshiftrt insns.
6487         (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
6488         on WORDS_BIG_ENDIAN.
6489
6490 2013-04-25  Alan Modra  <amodra@gmail.com>
6491
6492         * config.gcc: Support little-endian powerpc-linux targets.
6493         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
6494         (LINK_OS_LINUX_SPEC): Define.
6495         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
6496         Preserve MASK_LITTLE_ENDIAN.
6497         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
6498         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
6499         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
6500         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
6501         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
6502         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
6503         Correct fp word order for little-endian.  Don't shift toc entries
6504         smaller than a word for little-endian.
6505         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
6506         (bswapdi2 splits): Correct low-part subreg for little-endian.
6507         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
6508         low/high where such is correct only for be.
6509         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
6510         little-endian for -mcall-aixdesc.
6511
6512 2013-04-25  Alan Modra  <amodra@gmail.com>
6513
6514         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
6515         replace_equiv_address_nv.
6516
6517 2013-04-25  Alan Modra  <amodra@gmail.com>
6518
6519         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
6520
6521 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
6522
6523         Revert:
6524         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
6525         * rtl.h (struct rtx_def): ...
6526
6527 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
6528
6529         PR rtl-optimizations/57046
6530         * lra-constraints (split_reg): Set up lra_risky_transformations_p
6531         for multi-reg splits.
6532
6533 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
6534
6535         * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
6536
6537 2013-04-24  Sterling Augustine  <saugustine@google.com>
6538
6539         * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
6540         (comp_dir_string, debug_str_dwo_section): New.
6541         (DEBUG_STR_DWO_SECTION): Rename to ...
6542         (DEBUG_DWO_STR_SECTION): ... this.
6543         (DEBUG_NORM_STR_SECTION): Delete.
6544         (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
6545         (DEBUG_STR_DWO_SECTION_FLAGS): New.
6546         (find_AT_string): Move most logic to ...
6547         (find_AT_string_in_table): ... here.  New.
6548         (add_top_level_skeleton_die_attrs): Call comp_dir_string and
6549         add_skeleton_AT_string.  Delete logic.
6550         (output_skeleton_debug_sections): Remove call to
6551         add_top_level_skeleton_die_attrs.
6552         (add_comp_dir_attribute): Move logic to comp_dir_string.
6553         (dwarf2out_init): Initialize debug_str_dwo_section.
6554         (output_indirect_string): Call find_string_form.
6555         (output_indirect_strings): Rewrite.
6556         (prune_unused_types): Empty skeleton_debug_str_hash.
6557         Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
6558         (dwarf2out_finish):  Call output_indirect_strings.
6559
6560 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
6561
6562         * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
6563
6564 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
6565
6566         * rtl.h (struct rtx_def): Add comment for field jump.
6567         (LRA_SUBREG_P): New macro.
6568         * recog.c (register_operand): Check LRA_SUBREG_P.
6569         * lra.c (lra): Add note at the end of RTL code. Align non-empty
6570         stack frame.
6571         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
6572         (lra_final_code_change): Skip subreg change for operators.
6573         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
6574         if there are no operand changes.
6575         * lra-constraints.c (curr_insn_set): New.
6576         (match_reload): Set LRA_SUBREG_P.
6577         (emit_spill_move): Ditto.
6578         (check_and_process_move): Use curr_insn_set. Process only single
6579         set insns.  Don't initialize sec_mem_p and change_p.
6580         (simplify_operand_subreg): Use LRA_SUBREG_P.
6581         (reg_in_class_p): New function.
6582         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
6583         of #ifdef.  Add code to remove cycling.
6584         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
6585         non-null disp.  Reload inner instead of disp when base and index
6586         are null.  Try to put lo_sum into register.
6587         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
6588         (check_and_process_move): Move code for move cost check to
6589         simple_move_p.  Remove equiv_substitution.
6590         (simple_move_p): New function.
6591         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
6592         curr_insn_set.  Call check_and_process_move only for single set
6593         insns.  Use the new function.  Move call of check_and_process_move
6594         after operand equiv substitution and address process.
6595
6596 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
6597
6598         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
6599         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
6600         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
6601
6602 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
6603
6604         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
6605
6606 2013-04-24  Marek Polacek  <polacek@redhat.com>
6607
6608         * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
6609         * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
6610         (select_loops_exit_conditions): Likewise.
6611         (number_of_iterations_for_all_loops): Likewise.
6612         (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
6613         (scev_analysis): Likewise.
6614
6615 2013-04-02  Catherine Moore  <clm@codesourcery.com>
6616             Chao-ying Fu <fu@mips.com>
6617
6618         * config/mips/micromips.md (jraddiusp): New pattern.
6619         * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
6620         instruction if possible.
6621
6622 2013-04-24  Alan Modra  <amodra@gmail.com>
6623
6624         * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
6625
6626 2013-04-24  Julian Brown  <julian@codesourcery.com>
6627             Chung-Lin Tang  <cltang@codesourcery.com>
6628
6629         * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
6630         dependency behavior in enumeration type DIE generation. Add TODO note
6631         to comments about future DW_FORM_sdata/udata re-work of related code.
6632
6633 2013-04-23  Lawrence Crowl  <crowl@google.com>
6634
6635         * Makefile.in: Update as needed below.
6636
6637         * hash-table.h (class hash_table):
6638         Correct many methods with parameter types compare_type to the correct
6639         value_type.  (Correct code was unlikely to notice the change.)
6640         (hash_table::elements_with_deleted) New.
6641         (class hashtable::iterator): New.
6642         (hashtable::begin()): New.
6643         (hashtable::end()): New.
6644         (FOR_EACH_HASH_TABLE_ELEMENT): New.
6645
6646         * statistics.c (statistics_hashes):
6647         Change type to hash_table.  Update dependent calls and types.
6648
6649         * tree-into-ssa.c (var_infos):
6650         Change type to hash_table.  Update dependent calls and types.
6651
6652         * tree-ssa-coalesce.c (struct coalesce_list_d.list):
6653         Change type to hash_table.  Update dependent calls and types.
6654
6655         * tree-ssa-loop-im.c (struct mem_ref.refs):
6656         Change type to hash_table.  Update dependent calls and types.
6657
6658         * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
6659         Change type to hash_table.  Update dependent calls and types.
6660
6661         * tree-ssa-sccvn.c (vn_tables_s::nary):
6662         Change type to hash_table.  Update dependent calls and types.
6663         (vn_tables_s::phis): Likewise.
6664         (vn_tables_s::references): Likewise.
6665
6666         * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
6667         (vn_reference_eq): Update parameter and return types.
6668
6669         * tree-ssa-structalias.c (pointer_equiv_class_table):
6670         Change type to hash_table.  Update dependent calls and types.
6671         (location_equiv_class_table): Likewise.
6672
6673         * tree-vect-data-refs.c: Consequential changes for making
6674         peeling a hash_table.
6675
6676         * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
6677         (destroy_loop_vec_info): Dependent hash_table update.
6678
6679         * tree-vectorizer.h (peeling_htab):
6680         Change type to hash_table.  Update dependent calls and types.
6681
6682 2013-04-23  Shiva Chen  <shiva0217@gmail.com>
6683
6684         * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
6685         to check the register content is equal or not.
6686         * lra-constraints.c (match_reload): Use lra_assign_reg_val
6687         to assign register content record.
6688         * lra-eliminations.c (update_reg_eliminate): Use
6689         lra_update_reg_val_offset to update register content offset.
6690         * lra-int.h (struct lra_reg): Add offset member.
6691         (lra_reg_val_equal_p): New static inline function.
6692         (lra_update_reg_val_offset): New static inline function.
6693         (lra_assign_reg_val): New static inline function.
6694         * lra.c (lra_create_new_reg): Use lra_assign_reg_val
6695         to assign register content record.
6696         (initialize_lra_reg_info_element): Initial offset to zero.
6697
6698 2013-04-23  Catherine Moore  <clm@codesourcery.com>
6699
6700         * config/mips/mips.md (*movhi_internal, *movqi_internal): New
6701         operands.  Record compression.
6702
6703 2013-04-23  Xinliang David Li  <davidxl@google.com>
6704
6705         * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
6706
6707 2013-04-23  Richard Biener  <rguenther@suse.de>
6708
6709         PR middle-end/57036
6710         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
6711         parameter, only add abnormal goto edges from the copied body
6712         if the call could perform abnormal gotos.
6713         (copy_cfg_body): Adjust.
6714
6715 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
6716
6717         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
6718
6719 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
6720
6721         * coretypes.h (gimple_stmt_iterator): Add struct to make
6722         compatible with C.
6723
6724 2013-04-23  Richard Biener  <rguenther@suse.de>
6725
6726         PR tree-optimization/57026
6727         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
6728         from SSA names occuring in abnormal PHI nodes.
6729
6730 2013-04-22  Andi Kleen  <ak@linux.intel.com>
6731
6732         * lto/lto.c (print_lto_report_1): Fix LTO report names.
6733
6734 2013-04-22  Andi Kleen  <ak@linux.intel.com>
6735
6736         * lto/lto.c (print_lto_report_1): Declare early.
6737         (read_cgraph_and_symbols): Call print_lto_report_1 early.
6738
6739 2013-04-22  Andi Kleen  <ak@linux.intel.com>
6740
6741         * common.opt (-flto-report-wpa): Add.
6742         * doc/invoke.texi (-flto-report-wpa): Add.
6743         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
6744         (lto_main): dito.
6745
6746 2013-04-22  Xinliang David Li  <davidxl@google.com>
6747
6748         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
6749         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
6750         * Makefile.in: New dependency
6751
6752             David Daney <ddaney.cavm@gmail.com>
6753
6754         * configure.ac (gcc_cv_as_micromips_support):  Use the
6755         --fatal-warnings option.
6756         * configure: Regenerate.
6757
6758 2013-04-22  Marek Polacek  <polacek@redhat.com>
6759
6760         PR sanitizer/56990
6761         * tsan.c (instrument_expr): Don't instrument expression
6762         in case its size is zero.
6763
6764 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
6765
6766         PR target/57032
6767         Revert:
6768         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
6769
6770         * config/alpha/alpha.c (TARGET_LRA_P): New define.
6771
6772 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
6773
6774         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
6775         (gimple_stmt_iterator): New typedef.
6776         * gimple.h (gimple_stmt_iterator): Rename to...
6777         (gimple_stmt_iterator_d): ... This.
6778         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
6779         trees be valid for GIMPLE and GENERIC.
6780         (TARGET_GIMPLE_FOLD_BUILTIN): New.
6781         * gimple-fold.c (gimple_fold_call): Call target hook
6782         gimple_fold_builtin.
6783         * hooks.c (hook_bool_gsiptr_false): New.
6784         * hooks.h (hook_bool_gsiptr_false): New.
6785         * target.def (fold_stmt): New.
6786         * doc/tm.texi: Regenerate.
6787
6788 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
6789
6790         PR target/57018
6791         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
6792         a set sp if no stack realignment.
6793
6794 2013-04-22  Nick Clifton  <nickc@redhat.com>
6795
6796         * config.gcc (tilegx-linux): Extend extra_objs rather than
6797         overwriting it.
6798         (tilepro-linux): Likewise.
6799
6800 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
6801
6802         * config/aarch64/aarch64-builtins.c
6803         (CF): Remove.
6804         (CF0, CF1, CF2, CF3, CF4, CF10): New.
6805         (VAR<1-12>): Add MAP parameter.
6806         (BUILTIN_*): Likewise.
6807         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
6808         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
6809         (aarch64_ushl_n<mode>): Likewise.
6810         (aarch64_sshr_n<mode>): Likewise.
6811         (aarch64_ushr_n<mode>): Likewise.
6812         (aarch64_<maxmin><mode>): Likewise.
6813         (aarch64_sqrt<mode>): Likewise.
6814         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
6815         (vshr<q>_n_*): Likewise.
6816
6817 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
6818
6819         * config/aarch64/aarch64-builtins.c
6820         (aarch64_simd_builtin_type_mode): Handle SF types.
6821         (sf_UP): Define.
6822         (BUILTIN_GPF): Define.
6823         (aarch64_init_simd_builtins): Handle SF types.
6824         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
6825         (frecps): Likewise.
6826         (frecpx): Likewise.
6827         * config/aarch64/aarch64-simd.md
6828         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
6829         (aarch64_frecpe<mode>): New.
6830         (aarch64_frecps<mode>): Likewise.
6831         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
6832         (v8type): Add frecp<esx>.
6833         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
6834         (aarch64_frecps<mode>): Likewise.
6835         * config/aarch64/iterators.md (FRECP): New.
6836         (frecp_suffix): Likewise.
6837         * config/aarch64/arm_neon.h
6838         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
6839
6840 2013-04-22  Christian Bruel  <christian.bruel@st.com>
6841
6842         PR target/56995
6843         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
6844         (REG_CLASS_NAMES): Idem.
6845         (REG_CLASS_CONTENTS): Idem.
6846         (REGCLASS_HAS_FP_REG): Idem.
6847         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
6848         (sh_conditional_register_usage): Idem.
6849
6850 2013-04-21  Jeff Law  <law@redhat.com>
6851
6852         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
6853         (ssa_forward_propagate_and_combine): Use it.
6854
6855 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
6856
6857         * lra.c: Update the flow chart diagram.
6858
6859 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
6860
6861         PR rtl-optimization/56847
6862         * lra-constraints.c (process_alt_operands): Discourage alternative
6863         with non-matche doffsettable memory constraint fro memory with
6864         known offset.
6865
6866 2013-04-19  Richard Biener  <rguenther@suse.de>
6867
6868         PR tree-optimization/56982
6869         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
6870         function.
6871         * gimplify.c (gimplify_call_expr): Notice special calls.
6872         (gimplify_modify_expr): Likewise.
6873         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
6874         abnormal control flow receivers.
6875         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
6876         in the same way as cfun->has_nonlocal_labels.
6877         (gimple_purge_dead_abnormal_call_edges): Likewise.
6878         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
6879         receivers start a basic-block.
6880
6881 2013-04-19  Richard Biener  <rguenther@suse.de>
6882
6883         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
6884         member ...
6885         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
6886         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
6887         (SLP_TREE_LOAD_PERMUTATION): Add.
6888         (vect_transform_slp_perm_load): Adjust prototype.
6889         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
6890         (vect_free_slp_instance): Likewise.
6891         (vect_create_new_slp_node): Likewise.
6892         (vect_supported_slp_permutation_p): Remove.
6893         (vect_slp_rearrange_stmts): Adjust.
6894         (vect_supported_load_permutation_p): Likewise.  Inline
6895         vect_supported_slp_permutation_p here.
6896         (vect_analyze_slp_instance): Compute load permutations per
6897         slp node instead of per instance.
6898         (vect_get_slp_defs): Adjust.
6899         (vect_transform_slp_perm_load): Likewise.
6900         (vect_schedule_slp_instance): Remove redundant code.
6901         (vect_schedule_slp): Remove hack for PR56270, add it ...
6902         * tree-vect-stmts.c (vectorizable_load): ... here, do not
6903         CSE loads for SLP.  Adjust.
6904
6905 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
6906
6907         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
6908         spelling in two comments.
6909
6910 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
6911
6912         PR target/56797
6913         * config/arm/arm.c (load_multiple_sequence): Require SP
6914         as base register for loads if SP is in the register list.
6915
6916 2013-04-19  Martin Jambor  <mjambor@suse.cz>
6917
6918         PR tree-optimization/56718
6919         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
6920         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
6921         and made public.  Adjusted all callers.
6922         (ipa_intraprocedural_devirtualization): New function.
6923         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
6924         (ipa_intraprocedural_devirtualization): Likewise.
6925         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
6926
6927 2013-04-19  Richard Biener  <rguenther@suse.de>
6928
6929         PR tree-optimization/57000
6930         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
6931
6932 2013-04-19  Terry Guo  <terry.guo@arm.com>
6933
6934         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
6935         Replace with ...
6936         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
6937         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
6938         (cortex_m4_fmacs): Use new reservations.
6939         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
6940
6941 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
6942
6943         PR rtl-optimization/56999
6944         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
6945         related code.
6946         (lra_coalesce): Remove split_origin_bitmap and related code.
6947         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
6948         ranges if necessary.
6949
6950 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
6951
6952         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
6953         New array.
6954         (ix86_expand_call): Remove clobbered_registers array and use
6955         x86_64_ms_sysv_extra_clobbered_registers instead.
6956         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
6957         Declare here.
6958         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
6959         predicate.
6960         * config/i386/i386.md (*call_rex64_ms_sysv): Use
6961         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
6962         (*call_value_rex64_ms_sysv): Ditto.
6963
6964 2013-04-18  Cary Coutant  <ccoutant@google.com>
6965
6966         * dwarf2out.c (output_pubnames): Check die_perennial_p of
6967         parent instead of die_mark.
6968
6969 2013-04-18  Diego Novillo  <dnovillo@google.com>
6970
6971         * gimple.c (create_gimple_tmp): New.
6972         (get_expr_type): New.
6973         (build_assign): New.
6974         (build_type_cast): New.
6975         * gimple.h (enum ssa_mode): Define.
6976         (gimple_seq_set_location): New.
6977         * asan.c (build_check_stmt): Change some gimple_build_* calls
6978         to use build_assign and build_type_cast.
6979
6980 2013-04-18  Richard Biener  <rguenther@suse.de>
6981
6982         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
6983         handle negative step.  Remove redundant checks.
6984         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
6985         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
6986         for negative step and grouped loads fail to vectorize.
6987
6988 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
6989
6990         * emit-rtl.c (reset_insn_used_flags): New function.
6991         (reset_all_used_flags): Use it.
6992         (verify_insn_sharing): New function.
6993         (verify_rtl_sharing): Fix verification for SEQUENCEs.
6994
6995 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
6996
6997         PR tree-optimization/56984
6998         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
6999         and (x >> M) >= N don't register any assertion if N << M is the
7000         minimum value.
7001
7002 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
7003
7004         * lower-subreg.c (resolve_simple_move): If called self-recursive,
7005         do not delete_insn insns that have not yet been emitted, only
7006         unlink them with remove_insn.
7007         * df-scan.c (df_insn_delete): Revert r197492.
7008
7009 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
7010
7011         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
7012         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
7013
7014 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
7015
7016         * config/arm/arm.md (movsicc_insn): Convert define_insn into
7017         define_insn_and_split.
7018         (and_scc,ior_scc,negscc): Likewise.
7019         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
7020
7021 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
7022
7023         * config/arm/arm.c (use_return_insn): Return 0 for targets that
7024         can benefit from using a sequence of LDRD instructions in epilogue
7025         instead of a single LDM instruction.
7026
7027 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7028
7029         PR 45688
7030         * doc/extend.texi: Fix typo.
7031
7032 2013-04-17  Richard Biener  <rguenther@suse.de>
7033
7034         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
7035         (vect_build_slp_tree): ... here.
7036         (vect_build_slp_tree_1): Compute which stmts of the SLP group
7037         match.  Remove special-casing of mismatched complex loads.
7038         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
7039         re-try the match with swapped commutative operands.
7040         (vect_supported_load_permutation_p): Remove special-casing of
7041         mismatched complex loads.
7042         (vect_analyze_slp_instance): Adjust.
7043
7044 2013-04-17  Richard Biener  <rguenther@suse.de>
7045
7046         PR rtl-optimization/56921
7047         * cfgloop.h (struct loop): Add simple_loop_desc member.
7048         (struct niter_desc): Mark with GTY(()).
7049         (simple_loop_desc): Do not use aux field but simple_loop_desc.
7050         * loop-iv.c (get_simple_loop_desc): Likewise.
7051         (free_simple_loop_desc): Likewise.
7052
7053         Revert
7054         2013-04-16  Richard Biener  <rguenther@suse.de>
7055
7056         PR rtl-optimization/56921
7057         * loop-init.c (pass_rtl_move_loop_invariants): Add
7058         TODO_do_not_ggc_collect to todo_flags_finish.
7059         (pass_rtl_unswitch): Same.
7060         (pass_rtl_unroll_and_peel_loops): Same.
7061         (pass_rtl_doloop): Same.
7062
7063 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
7064
7065         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
7066         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
7067         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
7068         references.
7069         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
7070         * tree-streamer.c (record_common_node): Adjust reference in comment.
7071
7072 2013-04-17  Terry Guo  <terry.guo@arm.com>
7073
7074         * config/arm/cortex-m4.md: Add a new bypass.
7075
7076 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7077
7078         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
7079         New pattern.
7080         (*subs_<optab><mode>_multp2): New pattern.
7081         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
7082         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
7083
7084 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7085
7086         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
7087         (*subs_mul_imm_<mode>): New pattern.
7088
7089 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
7090
7091         PR target/56948
7092         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
7093         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
7094         (vsx_movti_32bit): Change j->wa to O->wa.
7095
7096 2013-04-16  Richard Biener  <rguenther@suse.de>
7097
7098         PR rtl-optimization/56921
7099         * loop-init.c (pass_rtl_move_loop_invariants): Add
7100         TODO_do_not_ggc_collect to todo_flags_finish.
7101         (pass_rtl_unswitch): Same.
7102         (pass_rtl_unroll_and_peel_loops): Same.
7103         (pass_rtl_doloop): Same.
7104
7105 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
7106
7107         * config/arm/arm.c (emit_multi_reg_push): New declaration
7108         for an existing function.
7109         (arm_emit_strd_push): New function.
7110         (arm_expand_prologue): Used here.
7111         (arm_emit_ldrd_pop): New function.
7112         (arm_expand_epilogue): Used here.
7113         (arm_get_frame_offsets): Update condition.
7114         (arm_emit_multi_reg_pop): Add a special case for load of a single
7115         register with writeback.
7116
7117 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
7118
7119         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
7120         description.
7121
7122 2013-04-16  Richard Biener  <rguenther@suse.de>
7123
7124         PR tree-optimization/56756
7125         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
7126         (first_mem_ref_loc): New.
7127         (execute_sm): Place the load temporarily before a previous
7128         access instead of in the latch edge to ensure its SSA dependencies
7129         are defined at points dominating the load.
7130
7131 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
7132
7133         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
7134         correct fix by moving header and footer insn to the footer of
7135         the merged basic block.  Clear BB_END of the merged-away block.
7136
7137         PR middle-end/43631
7138         * emit-rtl.c (make_note_raw): New function.
7139         (link_insn_into_chain): New static inline function.
7140         (add_insn): Use it.
7141         (add_insn_before, add_insn_after): Factor insn chain linking code...
7142         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
7143         using link_insn_into_chain.
7144         (note_outside_basic_block_p): New helper function for emit_note_after
7145         and emit_note_before.
7146         (emit_note_after): Use nobb variant of add_insn_after if the note
7147         should not be contained in a basic block.
7148         (emit_note_before): Use nobb variant of add_insn_before if the note
7149         should not be contained in a basic block.
7150         (emit_note_copy): Use make_note_raw.
7151         (emit_note): Likewise.
7152         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
7153         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
7154         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
7155         the moved barrier the tail of the basic block it follows.
7156         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
7157
7158 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
7159
7160         PR tree-optimization/56962
7161         * gimple-ssa-strength-reduction.c (record_increment): Only set
7162         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
7163         either rhs1 or rhs2 is equal to c->base_expr.
7164
7165 2013-04-15  Richard Biener  <rguenther@suse.de>
7166
7167         PR tree-optimization/56933
7168         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
7169         member.
7170         (GROUP_READ_WRITE_DEPENDENCE): Remove.
7171         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
7172         * tree-vect-data-refs.c (vect_analyze_group_access): Move
7173         dependence check ...
7174         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
7175         ... here.
7176         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
7177         GROUP_READ_WRITE_DEPENDENCE.
7178
7179 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7180
7181         * emit-rtl.c (reset_all_used_flags): New function.
7182         (verify_rtl_sharing): Call reset_all_used_flags before and after
7183         performing the checks.
7184
7185 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7186
7187         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
7188         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
7189         * config/arm/constraints.md (De): New constraint.
7190         * config/arm/neon.md (anddi3_neon): Delete.
7191         (neon_vand<mode>): Expand to standard anddi3 pattern.
7192         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
7193         Move earlier in the file.
7194         (neon_inv_logic_op2): Likewise.
7195         (arm_anddi_operand_neon): New predicate.
7196
7197 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7198
7199         * configure.ac (gcc_cv_ld_as_needed): Set
7200         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
7201         Use -z ignore, -z record on *-*-solaris2*.
7202         (HAVE_LD_AS_NEEDED): Update comment.
7203         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
7204         * configure: Regenerate.
7205         * config.in: Regenerate.
7206         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
7207         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
7208         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
7209         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
7210         equivalents.  Fix markup.
7211         * doc/tm.texi: Regenerate.
7212
7213 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
7214
7215         * config/i386/i386.opt: New option mstack-protector-guard=.
7216         * config/i386/i386-opts.h: Add enum stack_protector_guard.
7217         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
7218         TARGET_SSP_TLS_GUARD.
7219         * config/i386/i386.c (ix86_option_override_internal): Set
7220         ix86_stack_protector_guard.
7221         * config/i386/i386.md (stack_protect_set): Enable for
7222         TARGET_SSP_TLS_GUARD only.
7223         (stack_protect_set_<mode>): Ditto.
7224         (stack_protect_test): Ditto.
7225         (stack_protect_test_<mode>): Ditto.
7226         * doc/invoke.texi (i386 Option): Document.
7227
7228 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
7229
7230         PR target/56890
7231         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
7232         (S_MODES): Set H_MODE bit.
7233         (SF_MODES): Set only S_MODE and SF_MODE bits.
7234         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
7235         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
7236         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
7237         <MODE_FLOAT>: Likewise.
7238
7239 2013-04-15  Joey Ye  <joey.ye@arm.com>
7240
7241         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
7242
7243 2013-04-15  Joey Ye  <joey.ye@arm.com>
7244
7245         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
7246         for real far jump.
7247         (thumb_far_jump_used_p): Count instruction size and set
7248         far_jump_used.
7249
7250 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
7251
7252         * reorg.c (fill_simple_delay_slots): Reindent block of code.
7253         * resource.c (mark_target_live_regs): Reformat conditional block.
7254
7255 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
7256
7257         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
7258         notes, they are emitted only just before final.
7259         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
7260
7261 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
7262
7263         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
7264         * cfgrtl.c (delete_insn): Call it here instead.
7265         * lra-spills.c (lra_final_code_change): Use delete_insn.
7266         * haifa-sched.c (sched_remove_insn): Likewise.
7267         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
7268         returning to the nop pool.
7269         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
7270         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
7271
7272 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
7273
7274         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
7275         * doc/tm.texi: Regenerated.
7276
7277 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
7278
7279         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
7280         QImode checks.
7281
7282 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
7283
7284         * df-core.c (df_find_def): Compare register numbers.
7285         (df_find_use): Likewise.
7286
7287 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
7288
7289         PR target/56903
7290         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
7291         lra_in_progress for return.
7292
7293 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
7294
7295         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
7296         define_insn into define_insn_and_split and emit movsicc patterns.
7297
7298 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
7299
7300         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
7301
7302 2013-04-12  Richard Biener  <rguenther@suse.de>
7303
7304         * tree-pass.h (TODO_do_not_ggc_collect): New.
7305         * passes.c (execute_one_ipa_transform_pass): Honor
7306         TODO_do_not_ggc_collect.
7307         (execute_one_pass): Likewise.
7308
7309         Revert
7310         2013-04-10  Richard Biener  <rguenther@suse.de>
7311
7312         * passes.c (init_optimization_passes): Remove reload pass.
7313         * ira.c (do_reload): Merge into ...
7314         (ira): ... this.
7315         (rest_of_handle_reload): Remove.
7316         (pass_reload): Likewise.
7317         * config/i386/i386.c (ix86_option_override): Refer to ira instead
7318         of reload for vzeroupper pass placement.
7319
7320 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
7321
7322         PR tree-optimization/56918
7323         PR tree-optimization/56920
7324         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
7325         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
7326         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
7327         use wide_mul_with_sign method.
7328
7329 2013-04-12  Richard Biener  <rguenther@suse.de>
7330
7331         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
7332         not be considered a gimple constant.
7333
7334 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
7335
7336         * fold-const.c (const_binop): Handle vector shifts by a scalar.
7337         (fold_binary_loc): Call const_binop also for mixed vector-scalar
7338         operations.
7339
7340 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7341             Jakub Jelinek  <jakub@redhat.com>
7342
7343         * opts.c: Include diagnostic-color.h.
7344         (common_handle_option): Handle OPT_fdiagnostics_color_.
7345         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
7346         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
7347         (diagnostic-color.o): New.
7348         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
7349         (diagnostic_color_rule): New enum.
7350         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
7351         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
7352         the location string.
7353         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
7354         either NULL, or color kind.
7355         * diagnostic-color.c: New file.
7356         * diagnostic-color.h: New file.
7357         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
7358         arguments.
7359         * doc/invoke.texi (-fdiagnostics-color): Document.
7360         * pretty-print.h (pp_show_color): Define.
7361         (struct pretty_print_info): Add show_color field.
7362         * diagnostic.c: Include diagnostic-color.h.
7363         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
7364         macros.  Colorize error:, warning: etc. strings and also the location
7365         string.
7366         (diagnostic_show_locus): Colorize the caret line.
7367         * pretty-print.c: Include diagnostic-color.h.
7368         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
7369         inside of %< %> quotes or quoted through q format modifier.
7370
7371 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7372
7373         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
7374
7375 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7376
7377         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
7378         code in CC_NZ mode.
7379         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
7380         pattern.
7381
7382 2013-04-11  Marek Polacek  <polacek@redhat.com>
7383
7384         PR tree-optimization/48184
7385         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
7386
7387 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
7388
7389         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
7390         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
7391         (skip_simple_arithmetic): Tidy up.
7392         * tree.h (skip_simple_constant_arithmetic): Declare.
7393
7394 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7395
7396         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
7397
7398 2013-04-11  Richard Biener  <rguenther@suse.de>
7399
7400         * tree-vect-loop.c (get_initial_def_for_induction): Properly
7401         generate vector constants.
7402
7403 2013-04-11  Richard Biener  <rguenther@suse.de>
7404
7405         PR tree-optimization/56878
7406         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
7407         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
7408         New function.
7409         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7410         Prefer to align the DR with the most invariant base address.
7411
7412 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
7413
7414         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
7415         comment.
7416
7417 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
7418
7419         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
7420         floating-point vector comparisons against 0.
7421
7422 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
7423
7424         PR tree-optimization/56899
7425         * fold-const.c (extract_muldiv_1): Apply distributive law
7426         only if TYPE_OVERFLOW_WRAPS (ctype).
7427
7428 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
7429
7430         PR target/56124
7431         * ira-costs.c (scan_one_insn): Check whether the source rtx of
7432         loading has side effect.
7433
7434 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
7435
7436         * config/sparc/sparc.c: Include tree-pass.h.
7437         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
7438         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
7439         head of file.  Change return type.  Split off gate function.
7440         (sparc_gate_work_around_errata): New function.
7441         (pass_work_around_errata): New pass definition.
7442         (insert_pass_work_around_errata) New pass insert definition to
7443         insert pass_work_around_errata just after delayed-branch scheduling.
7444         (sparc_option_override): Insert the pass.
7445         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
7446
7447 2013-04-10  David S. Miller  <davem@davemloft.net>
7448
7449         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
7450         or -mcpu=hypersparc.
7451
7452         * target.def (cstore_mode): New hook.
7453         * target.h: Include insn-codes.h
7454         * targhooks.c: Likewise.
7455         (default_cstore_mode): New function.
7456         * targhooks.h: Declare it.
7457         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
7458         * doc/tm.texi: Rebuild.
7459         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
7460         target hook, rather than inspecting the insn_data.
7461         * config/sparc/sparc.c (sparc_cstore_mode): New function.
7462         (TARGET_CSTORE_MODE): Redefine.
7463         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
7464         result patterns.
7465         * config/sparc/predicates.md (cstore_result_operand): New special
7466         predicate.
7467         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
7468         Use it for operand 0.
7469         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
7470         (*snesi_special): Likewise.
7471         (*snesi_zero): Likewise.
7472         (*seqsi_zero): Likewise.
7473         (*sltu_insn): Likewise.
7474         (*sgeu_insn): Likewise.
7475         (*seqdi_special): Make operand 0 and comparison operation be of
7476         DImode.
7477         (*snedi_special): Likewise.
7478         (*snedi_special_vis3): Likewise.
7479         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
7480         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
7481         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
7482         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
7483         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
7484         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
7485         (*sltu_extend_sp64): Likewise.
7486         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
7487         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
7488         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
7489         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
7490         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
7491
7492 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
7493
7494         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
7495         (aarch64_start_file): Use the new function.
7496
7497 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
7498             Jason Merrill  <jason@redhat.com>
7499
7500         * common.opt: Add -gdwarf.
7501         * opts.c (common_handle_option): Handle it.
7502         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
7503
7504 2013-04-10  Richard Biener  <rguenther@suse.de>
7505
7506         * passes.c (execute_todo): Do not call ggc_collect conditional here.
7507         (execute_one_ipa_transform_pass): But unconditionally here.
7508         (execute_one_pass): And here.
7509         (init_optimization_passes): Remove reload pass.
7510         * tree-pass.h (TODO_ggc_collect): Remove.
7511         (pass_reload): Likewise.
7512         * ira.c (do_reload): Merge into ...
7513         (ira): ... this.
7514         (rest_of_handle_reload): Remove.
7515         (pass_reload): Likewise.
7516         * config/i386/i386.c (ix86_option_override): Refer to ira instead
7517         of reload for vzeroupper pass placement.
7518         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
7519         and todo_flags_finish of all passes.
7520
7521 2013-04-10  Richard Biener  <rguenther@suse.de>
7522
7523         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
7524         first_const_oprnd field, rename first_def_type to first_op_type.
7525         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
7526         (vect_get_and_check_slp_defs): Always use the type of the
7527         operand.  Allow mixed vect_external_def, vect_constant_def types.
7528         (vect_get_constant_vectors): Handle mixed vect_external_def,
7529         vect_constant_def types.
7530
7531 2013-04-10  Joern Rennecke <joern.rennecke@embecosm.com>
7532
7533         PR tree-optimization/55524
7534         * tree-ssa-math-opts.c
7535         (convert_mult_to_fma): Don't use an fms construct
7536         when we don't have an fms operation, but fnma, and it looks
7537         likely that we'll be able to use the latter.
7538
7539 2013-04-10  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
7540
7541         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
7542         function.
7543         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
7544         inline fail caused by overwritable functions.
7545
7546 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
7547
7548         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
7549         unnecessary bits in the constant power of two case.
7550
7551 2013-04-10  Richard Biener  <rguenther@suse.de>
7552
7553         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
7554         broken code swapping operands.
7555         (vect_build_slp_tree): Do not compute load permutations here.
7556         (vect_analyze_slp_instance): Compute load permutations here,
7557         after building the SLP tree.
7558
7559 2013-04-09  Christian Bruel  <christian.bruel@st.com>
7560
7561         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
7562         of next/prev_real_insn.
7563
7564 2013-04-09  Jan Hubicka  <jh@suse.cz>
7565
7566         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
7567         Drop aliased parameter.
7568         (function_and_variable_visibility): Do not handle alias pairs.
7569         * cgraph.c (varpool_externally_visible_p): Update prototype.
7570         * varpool.c (varpool_add_new_variable): Update.
7571
7572 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7573
7574         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
7575
7576 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
7577
7578         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
7579
7580         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
7581
7582 2013-04-09  Marek Polacek  <polacek@redhat.com>
7583
7584         PR tree-optimization/48762
7585         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
7586
7587 2013-04-09  Richard Biener  <rguenther@suse.de>
7588
7589         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
7590         dealing with cost.
7591         (vect_build_slp_tree): Likewise.
7592         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
7593         calculating the cost of a SLP instance.
7594         (vect_analyze_slp_instance): Use it from here, after building
7595         the SLP tree.
7596
7597 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
7598
7599         PR middle-end/56883
7600         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
7601         expand_omp_for_static_chunk): Use simple_p = true in
7602         force_gimple_operand_gsi calls when assigning to addressable decls.
7603
7604 2013-04-09  Jeff Law  <law@redhat.com>
7605
7606         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
7607         when the boolean was created by converting a wider object which
7608         had a boolean range.
7609
7610 2013-04-09  Richard Biener  <rguenther@suse.de>
7611
7612         * tree-vectorizer.h (slp_void_p): Remove.
7613         (slp_tree): Typedef before _slp_tree declaration.
7614         (struct _slp_tree): Use a vector of slp_tree as children.
7615         (vect_get_place_in_interleaving_chain): Remove.
7616         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
7617         Move ...
7618         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
7619         and make static.
7620         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
7621         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
7622         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
7623         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
7624         Use slp_node instead of slp_void_p and adjust.
7625
7626 2013-04-09  Richard Biener  <rguenther@suse.de>
7627
7628         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
7629         work that is not necessary.
7630
7631 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
7632
7633         PR tree-optimization/56854
7634         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
7635         forward into clobber stmts if it would change MEM_REF lhs into
7636         non-MEM_REF.
7637
7638 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
7639
7640         * tree.c (type_hash_lookup, type_hash_add): Make static.
7641         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
7642
7643 2013-04-09  Richard Biener  <rguenther@suse.de>
7644
7645         * tree.h (unsave_expr_now): Remove.
7646         * tree-inline.c (mark_local_for_remap_r): Remove.
7647         (unsave_expr_1): Likewise.
7648         (unsave_r): Likewise.
7649         (unsave_expr_now): Likewise.
7650         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
7651         (propagate_tree_value): Likewise.
7652
7653 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
7654
7655         * doc/rtl.texi (sequence): Rewrite documentation to match the
7656         current use of SEQUENCE rtl objects.
7657         * rtl.def (SEQUENCE): Likewise.
7658
7659         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
7660         Update documentation.
7661         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
7662         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
7663
7664         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
7665
7666 2013-04-08  Teresa Johnson  <tejohnson@google.com>
7667
7668         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
7669         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
7670         methods.
7671         (estimate_edge_size_and_time): Add comment to suggest using rounding
7672         methods.
7673         (estimate_node_size_and_time): Ditto.
7674         (remap_edge_change_prob): Use helper rounding divide methods.
7675         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
7676         (gimple_mod_pow2_value_transform): Ditto.
7677         (gimple_mod_subtract_transform): Ditto.
7678         (gimple_ic_transform): Ditto.
7679         (gimple_stringops_transform): Ditto.
7680         * stmt.c (conditional_probability): Ditto.
7681         (emit_case_dispatch_table): Ditto.
7682         * lto-cgraph.c (merge_profile_summaries): Ditto.
7683         * tree-optimize.c (execute_fixup_cfg): Ditto.
7684         * cfgcleanup.c (try_forward_edges): Ditto.
7685         * cfgloopmanip.c (scale_loop_profile): Ditto.
7686         (loopify): Ditto.
7687         (duplicate_loop_to_header_edge): Ditto.
7688         (lv_adjust_loop_entry_edge): Ditto.
7689         * tree-vect-loop.c (vect_transform_loop): Ditto.
7690         * profile.c (compute_branch_probabilities): Ditto.
7691         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
7692         * lto-streamer-in.c (input_cfg): Ditto.
7693         * gimple-streamer-in.c (input_bb): Ditto.
7694         * ipa-cp.c (update_profiling_info): Ditto.
7695         (update_specialized_profile): Ditto.
7696         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
7697         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
7698         rounding methods.
7699         * sched-rgn.c (compute_dom_prob_ps): Ditto.
7700         (compute_trg_info): Ditto.
7701         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
7702         (purge_dead_edges): Ditto.
7703         * loop-unswitch.c (unswitch_loop): Ditto.
7704         * cgraphclones.c (cgraph_clone_edge): Ditto.
7705         (cgraph_clone_node): Ditto.
7706         * tree-inline.c (copy_bb): Ditto.
7707         (copy_edges_for_bb): Ditto.
7708         (initialize_cfun): Ditto.
7709         (copy_cfg_body): Ditto.
7710         (expand_call_inline): Ditto.
7711
7712 2013-04-08  Kai Tietz  <ktietz@redhat.com>
7713
7714         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
7715         TARGET_CYGWIN64 by TARGET_64BIT.
7716
7717 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
7718
7719         * config/epiphany/epiphany.md (GPR_1): New constant.
7720         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
7721         * config/epiphany/epiphany.c (gen_compare_reg):
7722         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
7723         is already in place.
7724         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
7725         Don't require being called during rtl expansion; If y operlaps r0,
7726         return 0.
7727         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
7728         (epiphany_expand_epilogue): Likewise.
7729
7730         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
7731         Don't use CC_FPmode for ORDERED / UNORDERED.
7732         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
7733
7734         * config/epiphany/constraints.md (CnL): New constraint.
7735         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
7736         * config/epiphany/predicates.md (add_operand): Allow 1024.
7737
7738         * config/epiphany/epiphany.md (logical_op): New code iterator.
7739         (op_mnc): New code attribute.
7740         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
7741         (mov_f+1, mov_f+2): New peephole2 patterns.
7742
7743         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
7744         (cstoresi4): Also allow re-use of zero result when doing a NE
7745         comparison to a non-zero operand.
7746         Use (clobber (scratch)) for first insn if the gpr output is not needed.
7747
7748         * config/epiphany/epiphany.md (<insn_opname>v2si3):
7749         Use gen_addsi3_i / gen_subsi3_i.
7750
7751 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
7752
7753         PR c++/34949
7754         PR c++/50243
7755         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
7756         contain anything but clobbers, at most one __builtin_stack_restore,
7757         optionally debug stmts and final resx, and if it has at least one
7758         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
7759         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
7760         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
7761         which isn't defaut definition, remove them.
7762         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
7763         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
7764         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
7765         with MEM_REF LHS with SSA_NAME address.
7766
7767 2013-04-08  Jeff Law  <law@redhat.com>
7768
7769         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
7770
7771 2013-04-08  Richard Biener  <rguenther@suse.de>
7772
7773         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
7774         extra newline.
7775         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
7776         determined vector type.
7777         (vect_analyze_data_refs): Likewise.
7778         (vect_get_new_vect_var): Adjust.
7779         (vect_create_destination_var): Preserve SSA name versions.
7780         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
7781         not dump anything here.
7782
7783 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
7784
7785         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
7786         Add member lr_slot_known.
7787         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
7788         if necessary.
7789         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
7790         Remove code that sets lr_slot_offset according to what a previous
7791         version of epiphany_emit_save_restore used to do.
7792         (epiphany_emit_save_restore): When doing an lr save or restore,
7793         set/verify lr_slot_known and lr_slot_offset.
7794
7795 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
7796
7797         PR target/54338
7798         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
7799         in ALL_REGS.
7800
7801 2013-04-08  Richard Biener  <rguenther@suse.de>
7802
7803         * alias.c (find_base_term): Fix thinko in previous change.
7804
7805 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
7806
7807         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
7808         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
7809         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
7810         if possible to compute val.
7811         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
7812         For QImode integers don't require anything about precision.  Use
7813         const_with_all_bytes_same to find out if the constant doesn't have
7814         repeated bytes in it.
7815
7816 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7817
7818         * config/s390/s390.c (s390_expand_insv): Only accept insertions
7819         within mode size.
7820
7821 2013-04-08  Marek Polacek  <polacek@redhat.com>
7822
7823         PR rtl-optimization/48182
7824         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
7825         value to 1.
7826
7827 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7828
7829         PR target/55487
7830         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
7831         nuses, make sure we have a label.
7832
7833 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7834
7835         PR target/56843
7836         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
7837         (rs6000_emit_swdiv_low_precision): Remove.
7838         (rs6000_emit_swdiv): Rewrite to handle between one and four
7839         iterations of Newton-Raphson generally; modify required number of
7840         iterations for some cases.
7841         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
7842
7843 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
7844
7845         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
7846         set-but-unused variable.
7847
7848         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
7849         basic blocks of released function bodies garbage-collectable.
7850
7851         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
7852         (struct rtl_opt_pass): Add TODO_df_finish.
7853
7854         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
7855
7856 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7857
7858         * config/arm/constraints.md (q): New constraint.
7859         * config/arm/ldrdstrd.md: New file.
7860         * config/arm/arm.md (ldrdstrd.md) New include.
7861         (arm_movdi): Use "q" instead of "r" constraint
7862         for double-word memory access.
7863         (movdf_soft_insn): Likewise.
7864         * config/arm/vfp.md (movdi_vfp): Likewise.
7865         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
7866         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
7867         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
7868         (mem_ok_for_ldrd_strd): Likewise.
7869         (output_move_double): Update assertion.
7870
7871 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7872
7873         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
7874
7875 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7876
7877         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
7878         define_insn_and_split.
7879         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
7880
7881 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7882
7883         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
7884         define_insn_and_split.
7885         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
7886         (shiftsi3_compare): New pattern.
7887         (rrx): New pattern.
7888         * config/arm/unspecs.md (UNSPEC_RRX): New.
7889
7890 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7891
7892         * config/arm/arm.md (negdi_extendsidi): New pattern.
7893         (negdi_zero_extendsidi): Likewise.
7894
7895 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7896
7897         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
7898         define_insn_and_split.
7899         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
7900         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
7901
7902 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7903
7904         * config/arm/arm.md (arm_subdi3): Convert define_insn into
7905         define_insn_and_split.
7906         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
7907         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
7908
7909 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7910
7911         * config/arm/arm.md (subsi3_carryin): New pattern.
7912         (subsi3_carryin_const): Likewise.
7913         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
7914         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
7915
7916 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7917
7918         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
7919
7920 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7921
7922         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
7923         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
7924
7925 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7926
7927         * config/arm/arm.c (arm_expand_builtin): Change fcode
7928         type to unsigned int.
7929
7930 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7931
7932         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
7933
7934 2013-04-04  Ian Lance Taylor  <iant@google.com>
7935
7936         * doc/standards.texi (Standards): The Go frontend supports the Go 1
7937         language standard.
7938
7939 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
7940
7941         PR middle-end/56729
7942         * df-scan.c (df_insn_delete): Disable failing assert.
7943
7944 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7945
7946         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
7947         New function prototype.
7948         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
7949         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
7950         (arm_builtin_vectorized_function): New function.
7951
7952 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7953
7954         * config/arm/arm_neon_builtins.def: New file.
7955         * config/arm/arm.c (neon_builtin_data): Move contents to
7956         arm_neon_builtins.def.
7957         (enum arm_builtins): Include neon builtin definitions.
7958         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
7959         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
7960
7961 2013-04-04  Marek Polacek  <polacek@redhat.com>
7962
7963         PR tree-optimization/48186
7964         * predict.c (maybe_hot_frequency_p): Return false if
7965         HOT_BB_FREQUENCY_FRACTION is 0.
7966         (cgraph_maybe_hot_edge_p): Likewise.
7967
7968 2013-04-04  Richard Biener  <rguenther@suse.de>
7969
7970         PR tree-optimization/56826
7971         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
7972         more accurately.
7973
7974 2013-04-04  Richard Biener  <rguenther@suse.de>
7975
7976         PR tree-optimization/56213
7977         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
7978         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
7979
7980 2013-04-04  Richard Biener  <rguenther@suse.de>
7981
7982         PR tree-optimization/56837
7983         * tree-loop-distribution.c (classify_partition): For non-zero
7984         values require that the value has the same precision as its
7985         mode to be useful as memset value.
7986
7987 2013-04-03  Nick Clifton  <nickc@redhat.com>
7988
7989         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
7990         (fmssf4): Use fmsf.s on E3V5 architectures.
7991         (fnmasf4): Use fnmaf.s on E3V5 architectures.
7992         (fnmssf4): Use fnmsf.s on E3V5 architectures.
7993
7994 2013-04-03  Jeff Law  <law@redhat.com>
7995
7996         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
7997         (lra-eliminations.o): Likewise.
7998
7999 2013-04-03  Teresa Johnson  <tejohnson@google.com>
8000
8001         * gcov-io.c (compute_working_sets): Moved most of body of old
8002         compute_working_sets here from profile.c.
8003         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
8004         (gcov_working_set_t): Moved typedef here from basic-block.h
8005         (compute_working_set): Declare.
8006         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
8007         (get_working_sets): Renamed from compute_working_set,
8008         replace most of body with call to new compute_working_sets.
8009         (get_exec_counts): Replace call to compute_working_sets
8010         to get_working_sets.
8011         * profile.h (get_working_sets): Renamed from compute_working_set.
8012         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
8013         to get_working_sets.
8014         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
8015         * gcov-dump.c (dump_working_sets): New function.
8016
8017 2013-04-03  Kenneth Zadeck <zadeck@naturalbridge.com>
8018
8019         * hwint.c (sext_hwi, zext_hwi): New functions.
8020         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
8021         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
8022         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
8023         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
8024         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
8025         (sext_hwi, zext_hwi): New functions.
8026
8027 2013-04-03  Jeff Law  <law@redhat.com>
8028
8029         PR tree-optimization/56799
8030         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
8031         back test for widening conversion erroneously dropped in prior change.
8032
8033 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8034
8035         PR target/56809
8036         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
8037         instead of next_real_insn.
8038
8039 2013-04-03  Marek Polacek  <polacek@redhat.com>
8040
8041         PR sanitizer/55702
8042         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
8043
8044 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8045
8046         PR target/56809
8047         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
8048         next_real_insn.
8049         (thumb1_output_casesi): Likewise.
8050         (thumb2_output_casesi): Likewise.
8051
8052 2013-04-03  Richard Biener  <rguenther@suse.de>
8053
8054         PR tree-optimization/56817
8055         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
8056         Split out ...
8057         (tree_unroll_loops_completely_1): ... new function to manually
8058         walk the loop tree, properly defering outer loops of unrolled
8059         loops to later iterations.
8060
8061 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
8062
8063         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
8064         (vectorizable_load): Likewise.
8065         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
8066         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
8067
8068 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
8069
8070         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
8071         BIT_FIELD_REF.
8072
8073 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8074
8075         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
8076
8077 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
8078
8079         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
8080
8081 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
8082
8083         PR tree-optimization/56790
8084         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
8085         folding.
8086
8087 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
8088
8089         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
8090         Handle VEC_MERGE.
8091         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
8092         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
8093         equal arguments.
8094
8095 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
8096
8097         PR c/19449
8098         * tree.h (force_folding_builtin_constant_p): New decl.
8099         * builtins.c (force_folding_builtin_constant_p): New variable.
8100         (fold_builtin_constant_p): Fold immediately also if
8101         force_folding_builtin_constant_p.
8102
8103 2013-04-03  Richard Biener  <rguenther@suse.de>
8104
8105         PR tree-optimization/56812
8106         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
8107         DRs of the same interleaving chain are independent.
8108
8109 2013-04-02  Jason Merrill  <jason@redhat.com>
8110
8111         * gdbinit.in (pbb): Use debug fn.
8112
8113 2013-04-02  Lawrence Crowl  <crowl@google.com>
8114
8115         * sese.h (struct ivtype_map_elt_s): Remove unused.
8116         (extern debug_ivtype_map): Remove unused.
8117         (extern eq_ivtype_map_elts): Remove unused.
8118         * sese.c (debug_ivtype_map): Removed unused.
8119         (debug_ivtype_map_1): Removed unused.
8120         (debug_ivtype_elt): Remove unused.
8121         (eq_ivtype_map_elts): Remove unused.
8122
8123
8124 2013-04-02  Kai Tietz  <ktietz@redhat.com>
8125
8126         PR target/52790
8127         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
8128         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
8129         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
8130         function.
8131         (legitimize_pe_coff_symbol): Likewise.
8132         (is_imported_p): New helper-function.
8133         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
8134         for Windows x64 targets.
8135         (ix86_expand_prologue): Optimize for pe-coff targets.
8136         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
8137         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
8138         medium/large code-model.
8139         (legitimize_pic_address): Likewise.
8140         (legitimize_tls_address): Likewise.
8141         (ix86_expand_call): Likewise.
8142         (x86_output_mi_thunk): Likewise.
8143         (get_dllimport_decl): Add new beimport argument.
8144         (construct_plt_address): Don't assert for x64 pe-coff targets.
8145         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
8146         targets.
8147         (SYMBOL_FLAG_STUBVAR): New macro.
8148         (SYMBOL_REF_STUBVAR_P): Likewise.
8149         * config/i386/winnt.c (stub_list): New structure.
8150         (stub_head): New local variable.
8151         (i386_pe_record_stub): New function.
8152         (i386_pe_file_end): Emit refptr-stubs.
8153
8154 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
8155
8156         PR rtl-optimization/56745
8157         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
8158         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
8159
8160         PR c++/34949
8161         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
8162         and both of them are MEM_REFs, just compare first argument for
8163         equality and attempt to deal even with differing offsets.
8164
8165         PR c++/34949
8166         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
8167         of gimple_clobber_p to be MEM_REF.
8168         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
8169         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
8170         after gimplification.
8171         * asan.c (get_mem_ref_of_assignment): Don't instrument
8172         gimple_clobber_p stmts.
8173         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
8174         gimple_clobber_p stmt if they have MEM_REF lhs and
8175         are dead because of another gimple_clobber_p stmt.
8176         * tree-ssa-live.c (clear_unused_block_pointer): Treat
8177         gimple_clobber_p stmts like debug stmts.
8178         (remove_unused_locals): Remove clobbers with MEM_REF lhs
8179         that refer to unused VAR_DECLs or uninitialized values.
8180         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
8181         gimple_clobber_p stmts if they refer to removed parameters.
8182         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
8183         formatting.
8184
8185 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
8186
8187         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
8188         using SWI48 mode attribute.
8189
8190 2013-04-02  Wei Mi  <wmi@google.com>
8191
8192         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
8193         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
8194         *<rotate_insn><mode>3_mask in i386.md.
8195
8196 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8197
8198         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
8199
8200 2013-04-02  Richard Biener  <rguenther@suse.de>
8201
8202         PR tree-optimization/56778
8203         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
8204         Runtime alias tests are not supported for gather loads.
8205         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
8206         stmts referenced from SSA operands before updating SSA form.
8207
8208 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
8209             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8210
8211         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
8212         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
8213         * config/arm/cortex-a53.md: New file.
8214         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
8215         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
8216         * config/arm/arm.c (arm_issue_rate): Likewise.
8217         * config/arm/arm-tune.md: Regenerate
8218         * config/arm/arm-tables.opt: Regenerate.
8219         * config/arm/arm-cores.def: Add cortex-a53.
8220
8221 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
8222
8223         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
8224         non-static link.
8225
8226 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
8227
8228         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
8229         scalar load/store operations using B/H registers.
8230         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
8231
8232 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
8233
8234         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
8235         scalar move.
8236         * config/aarch64/aarch64.c
8237         (aarch64_simd_scalar_immediate_valid_for_move): New.
8238         * config/aarch64/aarch64-protos.h
8239         (aarch64_simd_scalar_immediate_valid_for_move): New.
8240         * config/aarch64/constraints.md (Dh, Dq): New.
8241         * config/aarch64/iterators.md (hq): New.
8242
8243 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
8244
8245         * reorg.c (get_branch_condition): Deal with conditional returns.
8246         (fill_simple_delay_slots): Remove dead code dealing with jumps.
8247
8248 2013-04-01  Wei Mi  <wmi@google.com>
8249
8250         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
8251         Truncate operand 2 using %b asm operand modifier.
8252         (*<shift_insn><mode>3_mask): Ditto.
8253         (*<rotate_insn><mode>3_mask): Ditto.
8254
8255 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
8256
8257         PR middle-end/56798
8258         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
8259
8260 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
8261
8262         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
8263         of next_real_insn.
8264         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
8265
8266 2013-03-30  Lawrence Crowl  <crowl@google.com>
8267
8268         * dse.c (clear_alias_sets): Remove never set.
8269         (disqualified_clear_alias_sets): Remove never set.
8270         (clear_alias_mode_pool): Remove never set.
8271         (dse_step0): Remove condition that is never true.
8272         (canon_address): Remove condition that is never true.
8273         (dse_step7): Remove condition that is never true.
8274         (rest_of_handle_dse): Remove condition that is never true.
8275         (rest_of_handle_dse::did_global): Remove never read from above.
8276         (dse_step2_spill): Remove never called from above.
8277         (dse_step5_spill): Remove never called from above.
8278
8279 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
8280
8281         * doc/md.texi (Standard Names) <casesi>: Update documentation for
8282         JUMP_TABLE_DATA changes.
8283         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
8284         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
8285         (Insns) <jump_table_data>: New entry.
8286         * doc/tm.texi: Regenerate.
8287
8288         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
8289
8290         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
8291         for table jump at the end of a basic block using tablejump_p.
8292         * targhooks.c (default_invalid_within_doloop): Likewise.
8293         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
8294         target hook implementation that is identical to the default hook.
8295         (rs6000_invalid_within_doloop): Remove.
8296
8297         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
8298         unused variable from tablejump_p call.
8299
8300         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
8301         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
8302         (INSN_DELETED_P): Likewise.
8303         (emit_jump_table_data): New prototype.
8304         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
8305         after 4th as unused.
8306         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
8307         * sched-vis.c (print_insn): Likewise.
8308         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
8309         insn for compatibility with back ends that use next_active_insn to
8310         identify jump table data.
8311         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
8312         (remove_insn): Likewise.
8313         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
8314         to be emitted.
8315         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
8316         (emit_jump_table_data): New function.
8317
8318         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
8319         basic block, a JUMP_TABLE_DATA never is.
8320         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
8321         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
8322         off from code handling real insns.
8323         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
8324         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
8325         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
8326         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
8327         is not a NONDEBUG_INSN_P.
8328         * ira-costs.c (scan_one_insn): Likewise.
8329         * jump.c (mark_all_labels): Likewise.
8330         (mark_jump_label_1): Likewise.
8331         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
8332         * lra.c (get_insn_freq): Expect all insns reaching here to be in
8333         a basic block.
8334         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
8335         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
8336         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
8337         JUMP_TABLE_DATA_P insns.
8338         (calculate_elim_costs_all_insns): Likewise.
8339         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
8340         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
8341         (delete_output_reload): Code style fixups.
8342         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
8343         insn flags on this non-insn.
8344         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
8345         as scheduling barriers, for pre-change compatibility.
8346         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
8347         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
8348
8349         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
8350         redundant JUMP_TABLE_DATA_P test.
8351         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
8352         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
8353         (frv_for_each_packet): Likewise.
8354         * config/i386/i386.c (min_insn_size): Likewise.
8355         (ix86_avoid_jump_mispredicts): Likewise.
8356         * config/m32r/m32r.c (m32r_is_insn): Likewise.
8357         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
8358         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
8359         (mips16_insn_length): Robustify.
8360         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
8361         (mips16_split_long_branches): Likewise.
8362         * config/pa/pa.c (pa_combine_instructions): Likewise.
8363         * config/rs6000/rs6000.c (get_next_active_insn): Treat
8364         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
8365         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
8366         as contributing to pool range lengths.
8367         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
8368         Remove redundant JUMP_TABLE_DATA_P test.
8369         (sh_loop_align): Likewise.
8370         (split_branches): Likewise.
8371         (sh_insn_length_adjustment): Likewise.
8372         * config/spu/spu.c (get_branch_target): Likewise.
8373
8374 2013-03-29  Jan Hubicka  <jh@suse.cz>
8375
8376         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
8377         gcov streaming; stream hot bb threshold to ltrans.
8378         * predict.c (get_hot_bb_threshold): Break out from ....
8379         (maybe_hot_count_p): ... here.
8380         (set_hot_bb_threshold): New function.
8381         * lto-section-in.c (lto_section_name): Add profile.
8382         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
8383         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
8384         and data-streamer.h
8385         (histogram_entry): New structure.
8386         (histogram, histogram_pool): New global vars.
8387         (histogram_hash): New structure.
8388         (histogram_hash::hash): New method.
8389         (histogram_hash::equal): Likewise.
8390         (account_time_size): New function.
8391         (cmp_counts): New function.
8392         (dump_histogram): New function.
8393         (ipa_profile_generate_summary): New function.
8394         (ipa_profile_write_summary): New function.
8395         (ipa_profile_read_summary): New function.
8396         (ipa_profile): Decide on threshold.
8397         (pass_ipa_profile): Add ipa_profile_write_summary and
8398         ipa_profile_read_summary.
8399         * Makefile.in (ipa.o): Update dependencies.
8400         * lto-streamer.h (LTO_section_ipa_profile): New section.
8401
8402 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8403
8404         * tree.h (VAR_P): New.
8405
8406 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
8407
8408         PR lto/56777
8409         * doc/invoke.texi ([-fwhole-program]): Fix typo.
8410
8411 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
8412
8413         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
8414         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
8415         (control_flow_insn_p): Likewise.
8416         * cfgrtl.c (duplicate_insn_chain): Likewise.
8417         * final.c (get_attr_length_1): Likewise.
8418         (shorten_branches): Likewise.
8419         (final_scan_insn): Likewise.
8420         * function.c (instantiate_virtual_regs): Likewise.
8421         * gcse.c (insert_insn_end_basic_block): Likewise.
8422         * ira-costs.c (scan_one_insn): Likewise.
8423         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
8424         * lra.c (check_rtl): Likewise.
8425         * reload1.c (elimination_costs_in_insn): Likewise.
8426         * reorg.c (follow_jumps): Likewise.
8427
8428         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
8429         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
8430         (thumb_far_jump_used_p): Likewise.
8431         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
8432         (workaround_speculation): Likewise.
8433         (add_sched_insns_for_speculation): Likewise.
8434         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
8435         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
8436         (frv_for_each_packet): Likewise.
8437         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
8438         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
8439         (final_emit_insn_group_barriers): Likewise.
8440         * config/m32r/m32r.c (m32r_is_insn): Likewise.
8441         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
8442         (mips16_insn_length): Likewise.
8443         * config/pa/pa.c (pa_reorg): Likewise.
8444         (pa_combine_instructions): Likewise.
8445         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
8446         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
8447         (sh_reorg): Likewise.
8448         (split_branches): Likewise.
8449         * config/spu/spu.c (get_branch_target): Likewise.
8450
8451         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
8452         JUMP_TABLE_DATA_P.
8453
8454 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
8455
8456         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
8457         Fix declaration name.
8458
8459 2013-03-28  Lawrence Crowl  <crowl@google.com>
8460
8461         * graphds.h (struct graph.indicies): Remove unused.
8462         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
8463         (SCOP_ORIGINAL_PDDRS): Remove unused.
8464         * sese.h (extern insert_loop_close_phis): Removed unused.
8465         (extern insert_guard_phis): Removed unused.
8466         (extern ivtype_map_elt_info): Removed unused.
8467         (new_ivtype_map_elt): Removed unused.
8468         * sese.c (ivtype_map_elt_info): Removed unused.
8469
8470 2013-03-28  Lawrence Crowl  <crowl@google.com>
8471
8472         * Makefile.in: Add several missing include dependences.
8473         (DUMPFILE_H): New.
8474         (test-dump.o): New.  This object is not added to any executable,
8475         but is present for ad-hoc testing.
8476         * bitmap.c
8477         (debug (const bitmap_head_def &)): New.
8478         (debug (const bitmap_head_def *)): New.
8479         * bitmap.h
8480         (extern debug (const bitmap_head_def &)): New.
8481         (extern debug (const bitmap_head_def *)): New.
8482         * cfg.c
8483         (debug (edge_def &)): New.
8484         (debug (edge_def *)): New.
8485         * cfghooks.c
8486         (debug (basic_block_def &)): New.
8487         (debug (basic_block_def *)): New.
8488         * dumpfile.h
8489         (dump_node (const_tree, int, FILE *)): Correct source file.
8490         * dwarf2out.c
8491         (debug (die_struct &)): New.
8492         (debug (die_struct *)): New.
8493         * dwarf2out.h
8494         (extern debug (die_struct &)): New.
8495         (extern debug (die_struct *)): New.
8496         * gimple-pretty-print.c
8497         (debug (gimple_statement_d &)): New.
8498         (debug (gimple_statement_d *)): New.
8499         * gimple-pretty-print.h
8500         (extern debug (gimple_statement_d &)): New.
8501         (extern debug (gimple_statement_d *)): New.
8502         * ira-build.c
8503         (debug (ira_allocno_copy &)): New.
8504         (debug (ira_allocno_copy *)): New.
8505         (debug (ira_allocno &)): New.
8506         (debug (ira_allocno *)): New.
8507         * ira-int.h
8508         (extern debug (ira_allocno_copy &)): New.
8509         (extern debug (ira_allocno_copy *)): New.
8510         (extern debug (ira_allocno &)): New.
8511         (extern debug (ira_allocno *)): New.
8512         * ira-lives.c
8513         (debug (live_range &)): New.
8514         (debug (live_range *)): New.
8515         * lra-int.h
8516         (debug (lra_live_range &)): New.
8517         (debug (lra_live_range *)): New.
8518         * lra-lives.c
8519         (debug (lra_live_range &)): New.
8520         (debug (lra_live_range *)): New.
8521         * omega.c
8522         (debug (omega_pb_d &)): New.
8523         (debug (omega_pb_d *)): New.
8524         * omega.h
8525         (extern debug (omega_pb_d &)): New.
8526         (extern debug (omega_pb_d *)): New.
8527         * print-rtl.c
8528         (debug (const rtx_def &)): New.
8529         (debug (const rtx_def *)): New.
8530         * print-tree.c
8531         (debug_tree (tree): Move within file.
8532         (debug_raw (const tree_node &)): New.
8533         (debug_raw (const tree_node *)): New.
8534         (dump_tree_via_hooks (const tree_node *, int)): New.
8535         (debug (const tree_node &)): New.
8536         (debug (const tree_node *)): New.
8537         (debug_verbose (const tree_node &)): New.
8538         (debug_verbose (const tree_node *)): New.
8539         (debug_head (const tree_node &)): New.
8540         (debug_head (const tree_node *)): New.
8541         (debug_body (const tree_node &)): New.
8542         (debug_body (const tree_node *)): New.
8543         (debug_vec_tree (tree): Move and reimplement in terms of dump.
8544         (debug (vec<tree, va_gc> &)): New.
8545         (debug (vec<tree, va_gc> *)): New.
8546         * rtl.h
8547         (extern debug (const rtx_def &)): New.
8548         (extern debug (const rtx_def *)): New.
8549         * sbitmap.c
8550         (debug_raw (simple_bitmap_def &)): New.
8551         (debug_raw (simple_bitmap_def *)): New.
8552         (debug (simple_bitmap_def &)): New.
8553         (debug (simple_bitmap_def *)): New.
8554         * sbitmap.h
8555         (extern debug (simple_bitmap_def &)): New.
8556         (extern debug (simple_bitmap_def *)): New.
8557         (extern debug_raw (simple_bitmap_def &)): New.
8558         (extern debug_raw (simple_bitmap_def *)): New.
8559         * sel-sched-dump.c
8560         (debug (vinsn_def &)): New.
8561         (debug (vinsn_def *)): New.
8562         (debug_verbose (vinsn_def &)): New.
8563         (debug_verbose (vinsn_def *)): New.
8564         (debug (expr_def &)): New.
8565         (debug (expr_def *)): New.
8566         (debug_verbose (expr_def &)): New.
8567         (debug_verbose (expr_def *)): New.
8568         (debug (vec<rtx> &)): New.
8569         (debug (vec<rtx> *)): New.
8570         * sel-sched-dump.h
8571         (extern debug (vinsn_def &)): New.
8572         (extern debug (vinsn_def *)): New.
8573         (extern debug_verbose (vinsn_def &)): New.
8574         (extern debug_verbose (vinsn_def *)): New.
8575         (extern debug (expr_def &)): New.
8576         (extern debug (expr_def *)): New.
8577         (extern debug_verbose (expr_def &)): New.
8578         (extern debug_verbose (expr_def *)): New.
8579         (extern debug (vec<rtx> &)): New.
8580         (extern debug (vec<rtx> *)): New.
8581         * sel-sched-ir.h
8582         (_list_iter_cond_expr): Make inline instead of static.
8583         * sreal.c
8584         (debug (sreal &)): New.
8585         (debug (sreal *)): New.
8586         * sreal.h
8587         (extern debug (sreal &)): New.
8588         (extern debug (sreal *)): New.
8589         * tree.h
8590         (extern debug_raw (const tree_node &)): New.
8591         (extern debug_raw (const tree_node *)): New.
8592         (extern debug (const tree_node &)): New.
8593         (extern debug (const tree_node *)): New.
8594         (extern debug_verbose (const tree_node &)): New.
8595         (extern debug_verbose (const tree_node *)): New.
8596         (extern debug_head (const tree_node &)): New.
8597         (extern debug_head (const tree_node *)): New.
8598         (extern debug_body (const tree_node &)): New.
8599         (extern debug_body (const tree_node *)): New.
8600         (extern debug (vec<tree, va_gc> &)): New.
8601         (extern debug (vec<tree, va_gc> *)): New.
8602         * tree-cfg.c
8603         (debug (struct loop &)): New.
8604         (debug (struct loop *)): New.
8605         (debug_verbose (struct loop &)): New.
8606         (debug_verbose (struct loop *)): New.
8607         * tree-dump.c: Add header dependence.
8608         * tree-flow.h
8609         (extern debug (struct loop &)): New.
8610         (extern debug (struct loop *)): New.
8611         (extern debug_verbose (struct loop &)): New.
8612         (extern debug_verbose (struct loop *)): New.
8613         * tree-data-ref.c
8614         (debug (data_reference &)): New.
8615         (debug (data_reference *)): New.
8616         (debug (vec<data_reference_p> &)): New.
8617         (debug (vec<data_reference_p> *)): New.
8618         (debug (vec<ddr_p> &)): New.
8619         (debug (vec<ddr_p> *)): New.
8620         * tree-data-ref.h
8621         (extern debug (data_reference &)): New.
8622         (extern debug (data_reference *)): New.
8623         (extern debug (vec<data_reference_p> &)): New.
8624         (extern debug (vec<data_reference_p> *)): New.
8625         (extern debug (vec<ddr_p> &)): New.
8626         (extern debug (vec<ddr_p> *)): New.
8627         * tree-ssa-alias.c
8628         (debug (pt_solution &)): New.
8629         (debug (pt_solution *)): New.
8630         * tree-ssa-alias.h
8631         (extern debug (pt_solution &)): New.
8632         (extern debug (pt_solution *)): New.
8633         * tree-ssa-alias.c
8634         (debug (_var_map &)): New.
8635         (debug (_var_map *)): New.
8636         (debug (tree_live_info_d &)): New.
8637         (debug (tree_live_info_d *)): New.
8638         * tree-ssa-alias.h
8639         (extern debug (_var_map &)): New.
8640         (extern debug (_var_map *)): New.
8641         (extern debug (tree_live_info_d &)): New.
8642         (extern debug (tree_live_info_d *)): New.
8643
8644 2013-03-28  Jan Hubicka  <jh@suse.cz>
8645
8646         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
8647
8648 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
8649
8650         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
8651         record only when desired or required.
8652
8653 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
8654
8655         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
8656         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
8657
8658 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8659
8660         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
8661         (*andsi3_compare0_uxtw): New pattern.
8662         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
8663         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
8664
8665 2013-03-28  Jan Hubicka  <jh@suse.cz>
8666
8667         * data-streamer-in.c (streamer_read_gcov_count): New function.
8668         * gimple-streamer-out.c: Include value-prof.h.
8669         (output_gimple_stmt): Output histogram.
8670         (output_bb): Use streamer_write_gcov_count.
8671         * value-prof.c: Include data-streamer.h
8672         (dump_histogram_value): Add HIST_TYPE_MAX.
8673         (stream_out_histogram_value): New function.
8674         (stream_in_histogram_value): New function.
8675         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
8676         (stream_out_histogram_value, stream_in_histogram_value): Declare.
8677         * data-streamer-out.c (streamer_write_gcov_count): New function.
8678         (streamer_write_gcov_count_stream): New function.
8679         * lto-cgraph.c (lto_output_edge): Update counter streaming.
8680         (lto_output_node): Likewise.
8681         (input_node, input_edge): Likewise.
8682         * lto-streamer-out.c (output_cfg): Update streaming.
8683         * lto-streamer-in.c (input_cfg): Likewise.
8684         * data-streamer.h (streamer_write_gcov_count,
8685         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
8686         * gimple-streamer-in.c: Include value-prof.h
8687         (input_gimple_stmt): Input histograms.
8688         (input_bb): Update profile streaming.
8689
8690 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
8691
8692         * genmodes.c (emit_max_int): New function.
8693         (emit_insn_modes_h): Added call to emit_max_function.
8694         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
8695         Added doc.
8696         * machmode.def: Fixed comment.
8697
8698 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
8699
8700         * combine.c (try_combine): Removed useless assert.
8701         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
8702
8703 2013-03-28  Marek Polacek  <polacek@redhat.com>
8704             Richard Biener  <rguenther@suse.de>
8705
8706         PR tree-optimization/56695
8707         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
8708         build signed result of a vector comparison.
8709         * tree-cfg.c (verify_gimple_comparison): Check that a result
8710         of a vector comparison has signed type.
8711
8712 2013-03-28  Richard Biener  <rguenther@suse.de>
8713
8714         PR tree-optimization/37021
8715         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
8716         do not restrict gaps between groups.
8717         * tree-vect-stmts.c (vectorizable_load): Properly account for
8718         a gap between groups.
8719
8720 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
8721
8722         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
8723         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
8724         is not enabled.
8725
8726 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
8727
8728         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
8729         * doc/extend.texi (Named Address Spaces): Ditto.
8730         (Variable Attributes): Ditto.
8731
8732 2013-03-27  Kai Tietz  <ktietz@redhat.com>
8733
8734         * config.build: Add support for cygwin x64 target.
8735         * config.gcc: Likewise.
8736         * config.host: Likewise.
8737         * configure.ac: Likewise
8738         * configure: Regenerated.
8739
8740 2013-03-27 Kai Tietz  <ktietz@redhat.com>
8741
8742         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
8743         * config/i386/t-cygwin-w64: New file.
8744         * config/i386/cygwin-w64.h: New file.
8745         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
8746         and add support for x64-cygwin target.
8747         (CPP_SPEC): Likewise.
8748         (CXX_WRAP_SPEC_LIST): Undefine before define.
8749         (LIBGCJ_SONAME): Use 15 as version.
8750
8751 2013-03-27  Richard Biener  <rguenther@suse.de>
8752
8753         PR tree-optimization/56716
8754         * tree-ssa-structalias.c (perform_var_substitution): Adjust
8755         dumping for ref nodes.
8756
8757 2013-03-27  Martin Jambor  <mjambor@suse.cz>
8758
8759         PR tree-optimization/55334
8760         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
8761         restricted pointers to arrays.
8762
8763 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8764
8765         * Makefile.in (.SUFFIXES): Add .cc.
8766         (.c.o): Apply same recipe for implicit rule .cc.o.
8767
8768 2013-03-27  Richard Biener  <rguenther@suse.de>
8769
8770         PR tree-optimization/37021
8771         * tree-vect-data-refs.c (vect_check_strided_load): Allow
8772         REALPART/IMAGPART_EXPRs around the supported refs.
8773         * tree-ssa-structalias.c (find_func_aliases): Assume that
8774         floating-point values are not used to transfer pointers.
8775
8776 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8777
8778         * target.def (TARGET_HAS_IFUNC_P): New target hook.
8779         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
8780         * doc/tm.texi: Regenerate.
8781         * targhooks.h (default_has_ifunc_p): New.
8782         * targhooks.c (default_has_ifunc_p): Ditto.
8783         * config/linux-protos.h: New file.
8784         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
8785         this hook for linux which disables support of indirect functions in
8786         android.
8787         * config/linux-android.c: New file.
8788         * config/t-linux-android.c: Ditto.
8789         * config.gcc: Added new object file linux-android.o.
8790         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
8791         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
8792         * varasm.c (do_assemble_alias): Likewise.
8793         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
8794         doesn't support indirect functions.
8795         * configure: Regenerate.
8796
8797 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
8798
8799         PR target/56102
8800         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
8801         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
8802         mult-word mode.
8803
8804 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8805
8806         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
8807
8808 2013-03-27  Terry Guo  <terry.guo@arm.com>
8809
8810         * config/arm/arm-cores.def: Added core cortex-r7.
8811         * config/arm/arm-tune.md: Regenerated.
8812         * config/arm/arm-tables.opt: Regenerated.
8813         * doc/invoke.texi: Added entry for core cortex-r7.
8814
8815 2013-03-27  Walter Lee  <walt@tilera.com>
8816
8817         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
8818         double-decrement of next_scratch_regno.
8819
8820 2013-03-27  Walter Lee  <walt@tilera.com>
8821
8822         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
8823         input operands.
8824         (insn_v1mulus): Ditto.
8825         (insn_v2muls): Ditto.
8826
8827 2013-03-27  Walter Lee  <walt@tilera.com>
8828
8829         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
8830         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
8831
8832 2013-03-27  Walter Lee  <walt@tilera.com>
8833
8834         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
8835         (*sibcall_value): Ditto.
8836
8837 2013-03-27  Walter Lee  <walt@tilera.com>
8838
8839         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
8840         (insn_mnz_v8qi): ... this ...
8841         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
8842         vector equivalent.
8843         (insn_v<n>mnz): Replaced by ...
8844         (insn_v1mnz): ... this ...
8845         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
8846         equivalent.
8847         (insn_mz_<mode>): Replaced by ...
8848         (insn_mz_v8qi): ... this ...
8849         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
8850         vector equivalent.
8851         (insn_v<n>mz): Replaced by ...
8852         (insn_v1mz): ... this ...
8853         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
8854         equivalent.
8855
8856 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
8857
8858         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
8859
8860 2013-03-26  Roland McGrath  <mcgrathr@google.com>
8861
8862         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
8863         than fprintf with a non-constant, non-format string.
8864
8865 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
8866
8867         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
8868         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
8869         operand 0 predicate.
8870         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
8871         attribute.  Use general_x64nomem_operand as operand 1 predicate.
8872         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
8873         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
8874         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
8875         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
8876         (mov<mode>_insv_1): Remove expander.  Merge insn with
8877         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
8878         Use general_x64nomem_operand as operand 1 predicate.
8879         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
8880         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
8881         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
8882         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
8883         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
8884         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
8885         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
8886         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
8887         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
8888         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
8889         (general_x64nomem_operand): Ditto.
8890
8891 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
8892
8893         * config/rtems.opt: Add -pthread option.
8894
8895 2013-03-26  Richard Biener  <rguenther@suse.de>
8896
8897         * alias.c (find_base_term): Avoid redundant and not used recursion.
8898         (base_alias_check): Get the initial base term from the caller.
8899         (true_dependence_1): Compute and pass base terms to base_alias_check.
8900         (write_dependence_p): Likewise.
8901         (may_alias_p): Likewise.
8902
8903 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
8904
8905         * config/aarch64/aarch64.c (aarch64_classify_address): Support
8906         PC-relative load in SI modes and above only.
8907
8908 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
8909
8910         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
8911         * config/arm/iwmmxt.md (WCGR0): Update.
8912         (WCGR1, WCGR2, WCGR3): Likewise.
8913
8914 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
8915
8916         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
8917         Use x64 and nox64 isa attributes.
8918
8919 2013-03-26  Richard Biener  <rguenther@suse.de>
8920
8921         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
8922         alignment computations and rely on get_object_alignment_1
8923         for the !TYPE_P case.
8924         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
8925
8926 2013-03-26  Walter Lee  <walt@tilera.com>
8927
8928         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
8929         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
8930
8931 2013-03-25  Jeff Law  <law@redhat.com>
8932
8933         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
8934         check for INTEGRAL_TYPE_P that was missing due to checking in
8935         wrong version of prior patch.
8936
8937 2013-03-25  Walter Lee  <walt@tilera.com>
8938
8939         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
8940         TILEGX_INSN_SHUFFLEBYTES1.
8941         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
8942         shufflebytes1.
8943         (tilegx_builtins): Ditto.
8944         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
8945
8946 2013-03-25  Walter Lee  <walt@tilera.com>
8947
8948         * config/tilegx/tilegx.md (floatsisf2): New pattern.
8949         (floatunssisf2): New pattern.
8950         (floatsidf2): New pattern.
8951         (floatunssidf2): New pattern.
8952
8953 2013-03-25  Walter Lee  <walt@tilera.com>
8954
8955         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
8956         tests for constraint J, K, N, P.
8957
8958 2013-03-25  Walter Lee  <walt@tilera.com>
8959
8960         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
8961         Use indirect/pcrel encoding.
8962         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
8963         Ditto.
8964
8965 2013-03-25  Steve Ellcey  <sellcey@mips.com>
8966
8967         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
8968         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
8969         * config/mips/mips.c (mips_option_override): Set IMADD default.
8970         * config/mips/mips.h (PTF_AVOID_IMADD): New.
8971         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
8972         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
8973         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
8974         * doc/invoke.texi (-mimadd/-mno-imadd): New.
8975
8976 2013-03-25  Jeff Law  <law@redhat.com>
8977
8978         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
8979         slightly to avoid creating and folding useless trees.  Simplify
8980         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
8981
8982 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
8983
8984         * config/i386/i386.md (*zero_extendsidi2): Merge with
8985         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
8986         * config/i386/predicates.md (x86_64_zext_operand): Rename from
8987         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
8988         targets.  Clarify comment.
8989
8990 2013-03-25  Martin Jambor  <mjambor@suse.cz>
8991
8992         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
8993         pass-through jump functions differently.
8994         (ipa_read_jump_function): Likewise.  Also use setter functions to set
8995         up jump functions.
8996
8997 2013-03-25  Martin Jambor  <mjambor@suse.cz>
8998
8999         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
9000         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
9001         process it.
9002         (ipa_get_indirect_edge_target): New function.
9003         (devirtualization_time_bonus): New parameter known_aggs, pass it to
9004         ipa_get_indirect_edge_target.  Update all callers.
9005         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
9006         ipa_get_indirect_edge_target_1 instead of calling
9007         ipa_get_indirect_edge_target.
9008         (create_specialized_node): Pass aggvlas to
9009         ipcp_discover_new_direct_edges.
9010
9011 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9012
9013         * config/arm/arm.md (f_sels, f_seld): New types.
9014         (*cmov<mode>): New pattern.
9015         * config/arm/predicates.md (arm_vsel_comparison_operator): New
9016         predicate.
9017
9018 2013-03-25  Kai Tietz  <ktietz@redhat.com>
9019
9020         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
9021         POSIX-printf for mingw-hosted  builds.
9022
9023 2013-03-25  Richard Biener  <rguenther@suse.de>
9024
9025         PR middle-end/56694
9026         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
9027         must-not-throw stmt location.
9028
9029 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9030
9031         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
9032         Emit load-acquire versions when acq is true.
9033         (arm_emit_store_exclusive): Add rel parameter.
9034         Emit store-release versions when rel is true.
9035         (arm_split_compare_and_swap): Use acquire-release instructions
9036         instead.
9037         of barriers when appropriate.
9038         (arm_split_atomic_op): Likewise.
9039         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
9040         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
9041         (VUNSPEC_SLX): Likewise.
9042         (VUNSPEC_LDA): Likewise.
9043         (VUNSPEC_STL): Likewise.
9044         * config/arm/sync.md (atomic_load<mode>): New pattern.
9045         (atomic_store<mode>): Likewise.
9046         (arm_load_acquire_exclusive<mode>): Likewise.
9047         (arm_load_acquire_exclusivesi): Likewise.
9048         (arm_load_acquire_exclusivedi): Likewise.
9049         (arm_store_release_exclusive<mode>): Likewise.
9050
9051 2013-03-25  Catherine Moore  <clm@codesourcery.com>
9052
9053         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
9054         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
9055         * config/mip/predicates.md (lwsp_swsp_operand,
9056         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
9057         sb16_operand, db4_operand, db7_operand, ib3_operand,
9058         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
9059         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
9060         andi16_operand): New predicates.
9061         * config/mips/mips.md (compression): New attribute.
9062         (enabled): New attribute.
9063         (length): Consider compression in computing length.
9064         (shift_compression): New code attribute.
9065         (*add<mode>3): New operands. Record compression.
9066         (sub<mode>3): Likewise.
9067         (one_cmpl<mode>2): Likewise.
9068         (*and<mode>3): Likewise.
9069         (*ior<mode>3): Likewise.
9070         (unnamed pattern for xor): Likewise.
9071         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
9072         (*<optab><mode>3): Likewise.
9073         (*mov<mode>_internal: Likewise.
9074         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
9075         (mips_unsigned_immediate_p): New.
9076         (umips_lwsp_swsp_address_p): New.
9077         (m16_based_address_p): New.
9078         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
9079         (mips_unsigned_immediate_p): New prototype.
9080         (lwsp_swsp_address_p): New prototype.
9081         (m16_based_address_p): New prototype.
9082         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
9083         (mips_signed_immediate_p): New function.
9084         (m16_based_address_p): New function.
9085         (lwsp_swsp_address_p): New function.
9086         (mips_print_operand_punctuation): Recognize short delay slot insns
9087         for microMIPS.add<mode>3"
9088
9089 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9090
9091         PR target/56720
9092         * config/arm/iterators.md (v_cmp_result): New mode attribute.
9093         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
9094
9095 2013-03-25  Richard Biener  <rguenther@suse.de>
9096
9097         PR tree-optimization/56689
9098         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
9099         any edge.
9100
9101 2013-03-25  Richard Biener  <rguenther@suse.de>
9102
9103         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
9104         of bitmap.
9105         (memory_references): Likewise.
9106         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
9107         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
9108         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
9109         (gather_mem_refs_in_loops): Fold into ...
9110         (analyze_memory_references): ... this.  Move initialization
9111         to tree_ssa_lim_initialize.
9112         (fill_always_executed_in): Rename to ...
9113         (fill_always_executed_in_1): ... this.
9114         (fill_always_executed_in): Move contains_call computation to
9115         this new function from ...
9116         (tree_ssa_lim_initialize): ... here.
9117         (tree_ssa_lim): Call fill_always_executed_in.
9118
9119 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
9120
9121         * postreload.c (reload_combine): Fix code detecting returns.
9122
9123 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
9124
9125         * function.c (emit_use_return_register_into_block): On cc0 targets,
9126         do not emit the sequence between cc0 setter and user.
9127
9128 2013-03-25  Kai Tietz  <ktietz@redhat.com>
9129
9130         * config/i386/predicates.md (local_symbolic_operand): Interpret
9131         dll-imported symbols as none-local.
9132
9133 2013-03-25  Richard Biener  <rguenther@suse.de>
9134
9135         * tree-ssa-loop-im.c (struct depend): Remove.
9136         (struct lim_aux_data): Make depends a vec of gimples.
9137         (free_lim_aux_data): Adjust.
9138         (add_dependency): Likewise.
9139         (set_level): Likewise.
9140
9141 2013-03-25  Richard Biener  <rguenther@suse.de>
9142
9143         PR middle-end/56434
9144         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
9145         the pointer returned by calls with ECF_MALLOC set.
9146
9147 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
9148
9149         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
9150
9151 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
9152
9153         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
9154         using MMXMODE mode iterator.
9155         (*move<mode>_internal): Merge with *movv2sf_internal and
9156         *movv2sf_internal_rex64 using MMXMODE mode iterator.
9157
9158 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
9159
9160         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
9161         (record_last_mem_set_info): Likewise.
9162
9163         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
9164         of XNEWVEC followed by memset.
9165         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
9166
9167 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
9168
9169         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
9170         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
9171         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
9172         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
9173         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
9174         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
9175         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
9176         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
9177         BARRIER_P instead of GET_CODE.
9178
9179 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
9180
9181         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
9182         inaccuracy in the probing code.
9183
9184         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
9185         (ctrapdi4): Likewise.
9186
9187 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
9188
9189         * calls.c (expand_call): Add missing guard to code handling return
9190         of non-BLKmode structures in MSB.
9191         * function.c (expand_function_end): Likewise.
9192
9193 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
9194
9195         * combine.c (try_combine): Adjust comment.  Do not add the set of
9196         insn #0 if the destination indirectly is set or dies in insn #2.
9197         Tidy up code to distribute a new note.
9198
9199 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
9200
9201         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
9202         also for alternatives 16 and 17.
9203
9204 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
9205
9206         * config/i386/sse.md (*mov<mode>_internal): Merge with
9207         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
9208         Emit insn template depending on type attribute.  Use
9209         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
9210         movd instead of movq mnemonic for interunit moves.  Rewrite mode
9211         attribute calculation.  Remove unit attribute calculation.
9212         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
9213         Set prefix_data16 attribute for DImode ssemov types.
9214         Use Ym instead of y for SSE-MMX conversion alternatives.
9215         Reorder operand constraints.
9216
9217 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
9218
9219         * df.h (df_insn_delete): Adjust prototype.
9220         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
9221         and let it decide whether mark the basic block dirty.
9222         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
9223         * df-scan.c (df_insn_info_delete): New helper function, split
9224         off from df_insn_delete.
9225         (df_scan_free_bb_info): Use it.
9226         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
9227         Likewise.
9228         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
9229         that the insn is actually an insn and it has a non-NULL basic block.
9230         Do not mark basic block dirty if only deleting a DEBUG_INSN.
9231
9232 2013-03-22  Richard Biener  <rguenther@suse.de>
9233
9234         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
9235         dep_ref members.
9236         (mem_ref_alloc): Do not allocate them.
9237         (refs_independent_p): Do not query or maintain a cache.
9238
9239 2013-03-22  Richard Biener  <rguenther@suse.de>
9240
9241         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
9242         (gather_mem_refs_in_loops): Do not compute it.
9243         (analyze_memory_references): Do not allocate it.
9244         (tree_ssa_lim_finalize): Do not free it.
9245         (for_all_locs_in_loop): Do not query all_refs_in_loop.
9246
9247 2013-03-22  Richard Biener  <rguenther@suse.de>
9248
9249         * is-a.h (as_a): Use gcc_checking_assert.
9250
9251 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
9252
9253         * config/aarch64/aarch64.c (aarch64_print_operand): New
9254         format specifier for printing a constant in hex.
9255         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
9256         format specifier for printing second operand.
9257
9258 2013-03-22  Richard Biener  <rguenther@suse.de>
9259
9260         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
9261         bitmaps.
9262         (gather_mem_refs_in_loops): Perform store accumulation here.
9263         (create_vop_ref_mapping_loop): Remove.
9264         (create_vop_ref_mapping): Likewise.
9265         (analyze_memory_references): Initialize refs_stored_in_loop.
9266         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
9267         (record_indep_loop): Remove.
9268         (record_dep_loop): New function.
9269         (ref_indep_loop_p_1): Adjust to only walk over references
9270         in the loop, not its subloops.
9271         (ref_indep_loop_p): Rename to ...
9272         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
9273         maintaining a more fine-grained cache.
9274         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
9275         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
9276
9277 2013-03-22  Richard Biener  <rguenther@suse.de>
9278
9279         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
9280         (struct mem_ref): Make accesses_in_loop a vec of a vec of
9281         aggregate mem_ref_loc.
9282         (free_mem_ref_locs): Inline into ...
9283         (memref_free): ... this and adjust.
9284         (mem_ref_alloc): Adjust.
9285         (mem_ref_locs_alloc): Remove.
9286         (record_mem_ref_loc): Adjust.
9287         (get_all_locs_in_loop): Rewrite into ...
9288         (for_all_locs_in_loop): ... this iterator.
9289         (rewrite_mem_ref_loc): New functor.
9290         (rewrite_mem_refs): Use for_all_locs_in_loop.
9291         (sm_set_flag_if_changed): New functor.
9292         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
9293         (ref_always_accessed): New functor.
9294         (ref_always_accessed_p): Use for_all_locs_in_loop.
9295
9296 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
9297
9298         * tree-pass.h (PROP_gimple_lvec): New.
9299         * passes.c (dump_properties): Handle PROP_gimple_lvec.
9300         (init_optimization_passes): Move pass_lower_vector.
9301         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
9302         PROP_gimple_lvec.
9303         (pass_lower_vector): Provide PROP_gimple_lvec.
9304         (pass_lower_vector_ssa): Likewise.
9305         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
9306
9307 2013-03-21  Mark Wielaard  <mjw@redhat.com>
9308
9309         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
9310
9311 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
9312
9313         * config/i386/i386.md (*movdi_internal): Disparage slightly
9314         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
9315         conversion alternatives.
9316
9317 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
9318
9319         PR middle-end/48087
9320         * diagnostic.def (DK_WERROR): New kind.
9321         * diagnostic.h (werrorcount): Define.
9322         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
9323         promoted to DK_ERROR, increment DK_WERROR counter instead of
9324         DK_ERROR counter.
9325         * toplev.c (toplev_main): Call print_ignored_options even if
9326         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
9327         even if just werrorcount is non-zero.
9328
9329         PR debug/55608
9330         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
9331         on failure.
9332         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
9333         (string_cst_pool_decl): New function.
9334         (optimize_one_addr_into_implicit_ptr): New function.
9335         (resolve_addr_in_expr): Optimize DWARF location expression
9336         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
9337         which doesn't live in memory, but has DW_AT_location or
9338         DW_AT_const_value, or refers to a string literal, into
9339         DW_OP_GNU_implicit_pointer.
9340         (optimize_location_into_implicit_ptr): New function.
9341         (resolve_addr): If removing DW_AT_location of a variable because
9342         it was DW_OP_addr of address of the variable, but the variable doesn't
9343         live in memory, try to emit const value attribute for the initializer.
9344
9345 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
9346
9347         * tree.h (VECTOR_TYPE_P): New macro.
9348         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
9349         TYPE_MODE): Use it.
9350         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
9351         VEC_COND_EXPR cannot be lvalues.
9352         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
9353
9354 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
9355
9356         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
9357         Restrict the transformation to equal modes.
9358
9359 2013-03-21  Richard Biener  <rguenther@suse.de>
9360
9361         PR tree-optimization/39326
9362         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
9363         (MEM_ANALYZABLE): Adjust.
9364         (record_mem_ref_loc): Move bitmap ops ...
9365         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
9366         unanalyzable refs, do not record locations for it.
9367         (analyze_memory_references): Allocate ref zero as shared
9368         unanalyzable ref.
9369         (refs_independent_p): Do not test for unanalyzed mems here.
9370         (ref_indep_loop_p_1): Special-case disambiguation against
9371         the unanalyzed ref.
9372         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
9373
9374 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
9375
9376         * config/arm/arm-protos.h (tune_params): Add
9377         prefer_neon_for_64bits field.
9378         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
9379         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
9380         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
9381         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
9382         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
9383         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
9384         (arm_option_override): Handle -mneon-for-64bits new option.
9385         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
9386         (prefer_neon_for_64bits): Declare new variable.
9387         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
9388         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
9389         (arch_enabled): Handle new arch types. Remove support for onlya8
9390         and nota8.
9391         (one_cmpldi2): Use new arch names.
9392         (zero_extend<mode>di2, extend<mode>di2): Ditto.
9393         * config/arm/arm.opt (mneon-for-64bits): Add option.
9394         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
9395         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
9396         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
9397         of onlya8.
9398         * doc/invoke.texi (-mneon-for-64bits): Document.
9399
9400 2013-03-21  Richard Biener  <rguenther@suse.de>
9401
9402         PR tree-optimization/39326
9403         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
9404         (sort_bbs_in_loop_postorder_cmp): New function.
9405         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
9406
9407 2013-03-21  Richard Biener  <rguenther@suse.de>
9408
9409         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
9410         (vect_insert_into_interleaving_chain): Likewise.
9411         (vect_drs_dependent_in_basic_block): Inline ...
9412         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
9413         split out from ...
9414         (vect_analyze_data_ref_dependence): ... here.  Simplify.
9415         (vect_check_interleaving): Simplify.
9416         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
9417         (vect_slp_analyze_data_ref_dependences): ... this new function.
9418         (dr_group_sort_cmp): New function.
9419         (vect_analyze_data_ref_accesses): Compute data-reference groups
9420         here instead of in vect_analyze_data_ref_dependence.  Use
9421         a more efficient algorithm.
9422         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
9423         vect_slp_analyze_data_ref_dependences.  Call
9424         vect_analyze_data_ref_accesses earlier.
9425         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
9426         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
9427         (vect_slp_analyze_data_ref_dependences): New prototype.
9428
9429 2013-03-21  Richard Biener  <rguenther@suse.de>
9430
9431         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
9432         ref is stored in the loop.
9433         (find_refs_for_sm): Walk only over all stores.
9434         (store_motion_loop): Allocate from lim_bitmap_obstack.
9435         (store_motion): Likewise.
9436
9437 2013-03-21  Richard Biener  <rguenther@suse.de>
9438
9439         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
9440         Update virtual SSA form.
9441
9442 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9443
9444         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
9445         * configure: Regenerate.
9446         * config.in: Regenerate.
9447         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
9448         if !HAVE_LD_EH_FRAME_CIEV3.
9449
9450 2013-03-21  Richard Biener  <rguenther@suse.de>
9451
9452         * tree-cfg.c (verify_expr_no_block): New function.
9453         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
9454         nor DECL_VALUE_EXPR have locations with associated blocks.
9455         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
9456         (clear_unused_block_pointer): Remove code dealing with
9457         blocks in DECL_DEBUG_EXPR locations.
9458
9459 2013-03-21  Richard Biener  <rguenther@suse.de>
9460
9461         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
9462         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
9463         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
9464         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
9465         instead of DECL_DEBUG_EXPR_IS_FROM.
9466         * gimplify.c (gimplify_modify_expr): Likewise.
9467         * tree-cfg.c (verify_expr_location_1): Likewise.
9468         * tree-complex.c (create_one_component_var): Likewise.
9469         * tree-sra.c (create_access_replacement): Likewise.
9470         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
9471         (clear_unused_block_pointer): Likewise.
9472         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
9473         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
9474         * var-tracking.c (var_debug_decl): Likewise.
9475         (track_expr_p): Likewise.
9476         * tree-inline.c (add_local_variables): Likewise.  Set
9477         DECL_HAS_DEBUG_EXPR_P after copying it.
9478         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
9479         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
9480
9481 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
9482
9483         PR bootstrap/56656
9484         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
9485         * configure: Regenerate.
9486         * config.in: Regenerate.
9487         * config/i386/i386.md (*movdf_internal): Use
9488         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
9489         movd instead of movq mnemonic for interunit moves.
9490         (*movdi_internal): Ditto.
9491
9492 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
9493
9494         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
9495         (abd<mode>_3): New pattern.
9496         (aba<mode>_3): New pattern.
9497         (fabd<mode>_3): New pattern.
9498
9499 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
9500
9501         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
9502         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
9503         occurrence of REGISTER_PREFIX as its empty string.
9504
9505 2013-03-20  Jeff Law  <law@redhat.com>
9506
9507         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
9508         addititional equivalences for equality comparisons between an SSA_NAME
9509         and a constant where the SSA_NAME was set from a widening conversion.
9510
9511 2013-03-20  Walter Lee  <walt@tilera.com>
9512
9513         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
9514
9515 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
9516
9517         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
9518         depending on type attribute.
9519         (*movti_internal): Ditto.
9520         (*movtf_internal): Ditto.
9521         (*movxf_internal): Ditto.
9522         (*movdf_internal): Ditto.
9523         (*movsf_internal): Ditto.
9524
9525 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
9526
9527         * config/i386/i386.md (*movti_internal): Set prefix attribute to
9528         maybe_vex for sselog1 and ssemov types.
9529         (*movdi_internal): Reorder operand constraints.
9530         (*movsi_internal): Ditto.  Set prefix attribute to
9531         maybe_vex for sselog1 and ssemov types.
9532         (*movtf_internal): Set prefix attribute to maybe_vex
9533         for sselog1 and ssemov types.
9534         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
9535         DImode ssemov types.  Reorder operand constraints.
9536         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
9537         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
9538         attribute for SImode ssemov types.  Reorder operand constraints.
9539
9540 2013-03-20  Martin Jambor  <mjambor@suse.cz>
9541
9542         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
9543         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
9544
9545 2013-03-20  Pat Haugen <pthaugen@us.ibm.com>
9546
9547         * config/rs6000/predicates.md (indexed_address, update_address_mem
9548         update_indexed_address_mem): New predicates.
9549         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
9550         attribute for load/store instructions.
9551         * config/rs6000/dfp.md (movsd_store): Likewise.
9552         (movsd_load): Likewise.
9553         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
9554         (unnamed HI->DI extend define_insn): Likewise.
9555         (unnamed SI->DI extend define_insn): Likewise.
9556         (unnamed QI->SI extend define_insn): Likewise.
9557         (unnamed QI->HI extend define_insn): Likewise.
9558         (unnamed HI->SI extend define_insn): Likewise.
9559         (unnamed HI->SI extend define_insn): Likewise.
9560         (extendsfdf2_fpr): Likewise.
9561         (movsi_internal1): Likewise.
9562         (movsi_internal1_single): Likewise.
9563         (movhi_internal): Likewise.
9564         (movqi_internal): Likewise.
9565         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
9566         attribute for load/store instructions.
9567         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
9568         instructions.
9569         (mov<mode>_softfloat): Likewise.
9570         (mov<mode>_hardfloat32): Likewise.
9571         (mov<mode>_hardfloat64): Likewise.
9572         (mov<mode>_softfloat64): Likewise.
9573         (movdi_internal32): Likewise.
9574         (movdi_internal64): Likewise.
9575         (probe_stack_<mode>): Likewise.
9576
9577 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
9578
9579         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
9580         floating point, and decimal floating point to reload iterator.
9581
9582         * config/rs6000/constraints.md (wl constraint): New constraints to
9583         return FLOAT_REGS if certain options are used to reduce the number
9584         of separate patterns that exist in the file.
9585         (wx constraint): Likewise.
9586         (wz constraint): Likewise.
9587
9588         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
9589         -mdebug=reg, print wg, wl, wx, and wz constraints.
9590         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
9591         Initialize the reload functions for 64-bit binary/decimal floating
9592         point types.
9593         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
9594         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
9595         create the buffer on the stack to overcome not having a 32-bit
9596         load and store.
9597         (rs6000_emit_move): Likewise.
9598         (rs6000_secondary_memory_needed_rtx): Likewise.
9599         (rs6000_alloc_sdmode_stack_slot): Likewise.
9600         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
9601         via xxlxor, just like DFmode 0.0.
9602
9603         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
9604         define as 1 if we are running on a power7 or newer.
9605         (enum r6000_reg_class_enum): Add new constraints.
9606
9607         * config/rs6000/dfp.md (movsd): Delete, combine with binary
9608         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
9609         with other moves by using conditional constraits (wg).  Use LFIWZX
9610         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
9611         (movsd splitter): Likewise.
9612         (movsd_hardfloat): Likewise.
9613         (movsd_softfloat): Likewise.
9614
9615         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
9616         binary and decimal floating point moves.
9617         (fmove_ok): New attributes to combine binary and decimal floating
9618         point moves, and to combine power6x (mfpgpr) moves along normal
9619         floating moves.
9620         (real_value_to_target): Likewise.
9621         (f32_lr): Likewise.
9622         (f32_lm): Likewise.
9623         (f32_li): Likewise.
9624         (f32_sr): Likewise.
9625         (f32_sm): Likewise.
9626         (f32_si): Likewise.
9627         (movsf): Combine binary and decimal floating point moves.  Combine
9628         power6x (mfpgpr) moves with other moves by using conditional
9629         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
9630         (mov<mode> for SFmode/SDmode); Likewise.
9631         (SFmode/SDmode splitters): Likewise.
9632         (movsf_hardfloat): Likewise.
9633         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
9634         (movsf_softfloat): Likewise.
9635         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
9636
9637         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
9638         wx and wz constraints.
9639
9640         * config/rs6000/constraints.md (wg constraint): New constraint to
9641         return FLOAT_REGS if -mmfpgpr (power6x) was used.
9642
9643         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
9644         constraint.
9645
9646         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
9647         -mdebug=reg, print wg, wl, wx, and wz constraints.
9648         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
9649         Initialize the reload functions for 64-bit binary/decimal floating
9650         point types.
9651         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
9652         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
9653         create the buffer on the stack to overcome not having a 32-bit
9654         load and store.
9655         (rs6000_emit_move): Likewise.
9656         (rs6000_secondary_memory_needed_rtx): Likewise.
9657         (rs6000_alloc_sdmode_stack_slot): Likewise.
9658         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
9659         via xxlxor, just like DFmode 0.0.
9660
9661         * config/rs6000/dfp.md (movdd): Delete, combine with binary
9662         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
9663         with other moves by using conditional constraits (wg).  Use LFIWZX
9664         and STFIWX for loading SDmode on power7.
9665         (movdd splitters): Likewise.
9666         (movdd_hardfloat32): Likewise.
9667         (movdd_softfloat32): Likewise.
9668         (movdd_hardfloat64_mfpgpr): Likewise.
9669         (movdd_hardfloat64): Likewise.
9670         (movdd_softfloat64): Likewise.
9671
9672         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
9673         64-bit binary and decimal floating point moves.
9674         (FMOVE64X): Likewise.
9675         (movdf): Combine 64-bit binary and decimal floating point moves.
9676         Combine power6x (mfpgpr) moves with other moves by using
9677         conditional constraits (wg).
9678         (mov<mode> for DFmode/DDmode): Likewise.
9679         (DFmode/DDmode splitters): Likewise.
9680         (movdf_hardfloat32): Likewise.
9681         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
9682         (movdf_softfloat32): Likewise.
9683         (movdf_hardfloat64_mfpgpr): Likewise.
9684         (movdf_hardfloat64): Likewise.
9685         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
9686         (movdf_softfloat64): Likewise.
9687         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
9688         (reload_<mode>_load): Move to later in the file so they aren't in
9689         the middle of the floating point move insns.
9690         (reload_<mode>_store): Likewise.
9691
9692         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
9693         constraint.
9694
9695         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
9696         constraint if -mdebug=reg.
9697         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
9698         Enable using dd reload support if needed.
9699
9700         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
9701         binary and decimal floating point moves in rs6000.md.
9702         (movtd_internal): Likewise.
9703
9704         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
9705         decimal floating point moves.
9706         (movtf): Likewise.
9707         (movtf_internal): Likewise.
9708         (mov<mode>_internal, TDmode/TFmode): Likewise.
9709         (movtf_softfloat): Likewise.
9710         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
9711
9712         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
9713         movdi_internal64, using wg constraint for move direct operations.
9714         (movdi_internal64): Likewise.
9715
9716         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
9717         MODES_TIEABLE_P for selected modes.  Print the numerical value of
9718         the various virtual registers. Use GPR/FPR first/last values,
9719         instead of hard coding the register numbers.  Print which modes
9720         have reload functions registered.
9721         (rs6000_option_override_internal): If -mdebug=reg, trace the options
9722         settings before/after setting cpu, target and subtarget settings.
9723         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
9724         and for secondary reload failures in rs6000_secondary_reload_inner.
9725         (rs6000_secondary_reload_fail): Likewise.
9726         (rs6000_secondary_reload_inner): Likewise.
9727
9728         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
9729         macros for first/last GPR and FPR registers.
9730         (LAST_GPR_REGNO): Likewise.
9731         (FIRST_FPR_REGNO): Likewise.
9732         (LAST_FPR_REGNO): Likewise.
9733
9734         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
9735         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
9736         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
9737         (vcond<mode><mode>): Likewise.
9738         (vcondu<mode><mode>): Likewise.
9739         (vector_gtu<mode>): Likewise.
9740         (vector_gte<mode>): Likewise.
9741         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
9742         to prevent the compiler from converting DImode operations to TImode.
9743         (ior<mode>3): Likewise.
9744         (and<mode>3): Likewise.
9745         (one_cmpl<mode>2): Likewise.
9746         (nor<mode>3): Likewise.
9747         (andc<mode>3): Likewise.
9748
9749         * config/rs6000/constraints.md (wt constraint): New constraint
9750         that returns VSX_REGS if TImode is allowed in VSX registers.
9751
9752         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
9753         constant under VSX.
9754
9755         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
9756         similar to TImode, but it is restricted to being in the GPRs.
9757
9758         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
9759         TImode to occupy a single VSX register.
9760
9761         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
9762         -mvsx-timode for power7/power8.
9763         (power7 cpu): Likewise.
9764         (power8 cpu): Likewise.
9765
9766         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
9767         sure that TFmode/TDmode take up two registers if they are ever
9768         allowed in the upper VSX registers.
9769         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
9770         registers.
9771         (rs6000_init_hard_regno_mode_ok): Likewise.
9772         (rs6000_debug_reg_global): Add debugging for PTImode and wt
9773         constraint.  Print if LRA is turned on.
9774         (rs6000_option_override_internal): Give an error if -mvsx-timode
9775         and VSX is not enabled.
9776         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
9777         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
9778         to reg+offset addressing.  Use PTImode when checking offset
9779         addresses for validity.
9780         (reg_offset_addressing_ok_p): Likewise.
9781         (rs6000_legitimate_offset_address_p): Likewise.
9782         (rs6000_legitimize_address): Likewise.
9783         (rs6000_legitimize_reload_address): Likewise.
9784         (rs6000_legitimate_address_p): Likewise.
9785         (rs6000_eliminate_indexed_memrefs): Likewise.
9786         (rs6000_emit_move): Likewise.
9787         (rs6000_secondary_reload): Likewise.
9788         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
9789         reloads to fpr registers to continue to use reg+offset addressing,
9790         but 64-bit reloads to altivec registers need reg+reg addressing.
9791         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
9792         it.  Treat LO_SUM like a PLUS operation.
9793         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
9794         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
9795         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
9796         registers to share a register with a smaller sized type, since VSX
9797         puts scalars in the upper 64-bits.
9798         (print_operand): Add support for PTImode.
9799         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
9800         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
9801         registers, but don't have arithmetic support.
9802         (rs6000_memory_move_cost): Add test for VSX.
9803         (rs6000_opt_masks): Add -mvsx-timode.
9804
9805         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
9806         for TImode.
9807         (VSs): Likewise.
9808         (VSr): Use wt constraint for TImode.
9809         (VSv): Drop TImode support.
9810         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
9811         (vsx_movti_64bit): Likewise.
9812         (vsx_movti_32bit): Likewise.
9813         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
9814         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
9815         one '?' on the appropriate output constraint.  Do not allow TImode
9816         logical operations on 32-bit systems.
9817         (vsx_ior<mode>3): Likewise.
9818         (vsx_xor<mode>3): Likewise.
9819         (vsx_one_cmpl<mode>2): Likewise.
9820         (vsx_nor<mode>3): Likewise.
9821         (vsx_andc<mode>3): Likewise.
9822         (vsx_concat_<mode>): Likewise.
9823         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
9824
9825         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
9826         OPTION_MASK_VSX_TIMODE.
9827         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
9828         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
9829
9830         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
9831         (TI2 iterator): New iterator for TImode, PTImode.
9832         (wd mode attribute): Add values for vector types.
9833         (movti_string): Replace TI move operations with operations for TImode
9834         and PTImode.  Add support for TImode being allowed in VSX registers.
9835         (mov<mode>_string, TImode/PTImode): Likewise.
9836         (movti_ppc64): Likewise.
9837         (mov<mode>_ppc64, TImode/PTImode): Likewise.
9838         (TI mode splitters): Likewise.
9839
9840         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
9841         constraint.
9842
9843 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
9844
9845         PR tree-optimization/56355
9846         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
9847         Also handle integers with undefined overflow.
9848
9849 2013-03-20  Catherine Moore  <clm@codesourcery.com>
9850             Maciej W. Rozycki  <macro@codesourcery.com>
9851             Tom de Vries  <tom@codesourcery.com>
9852             Nathan Sidwell <nathan@codesourcery.com>
9853             Iain Sandoe  <iain@codesourcery.com>
9854             Nathan Froyd  <froydnj@codesourcery.com>
9855             Chao-ying Fu <fu@mips.com>
9856
9857         * doc/extend.texi: (micromips, nomicromips, nocompression):
9858         Document new function attributes.
9859         * doc/invoke.texi (minterlink-compressed, mmicromips,
9860         m14k, m14ke, m14kec): Document new options.
9861         (minterlink-mips16): Update documentation.
9862         * doc/md.texi (ZC, ZD): Document new constraints.
9863         * configure.ac (gcc_cv_as_micromips): Check if linker
9864         supports the .set micromips directive.
9865         * configure: Regenerate.
9866         * config.in: Regenerate.
9867         * config/mips/mips-tables.opt: Regenerate.
9868         * config/mips/micromips.md: New file.
9869         * constraints.md (ZC, ZD): New constraints.
9870         * config/mips/predicates.md (movep_src_register): New predicate.
9871         (movep_src_operand): New predicate.
9872         (non_volatile_mem_operand): New predicate.
9873         * config/mips/mips.md (multimem): New type.
9874         (length): Differentiate between 17-bit and 18-bit branch offsets.
9875         (MOVEP1, MOVEP2): New mode iterator.
9876         (mov_<load>l): Use ZC constraint.
9877         (mov_<load>r): Likewise.
9878         (mov_<store>l): Likewise.
9879         (mov_<store>r): Likewise.
9880         (*branch_equality<mode>_inverted): Add microMIPS support.
9881         (*branch_equality<mode>): Likewise.
9882         (*jump_absolute): Likewise.
9883         (indirect_jump_<mode>): Likewise.
9884         (tablejump_<mode>): Likewise.
9885         (<optab>_internal): Likewise.
9886         (sibcall_internal): Likewise.
9887         (sibcall_value_internal): Likewise.
9888         (prefetch): Use constraint ZD.
9889         * config/mips/mips.opt (minterlink-compressed): New option.
9890         (minterlink-mips16): Now an alias for minterlink-compressed.
9891         (mmicromips): New option.
9892         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
9893         (compare_and_swap_12): Likewise.
9894         (sync_add<mode>): Likewise.
9895         (sync_<optab>_12): Likewise.
9896         (sync_old_<optab>_12): Likewise.
9897         (sync_new_<optab>_12): Likewise.
9898         (sync_nand_12): Likewise.
9899         (sync_old_nand_12): Likewise.
9900         (sync_new_nand_12): Likewise.
9901         (sync_sub<mode>): Likewise.
9902         (sync_old_add<mode>): Likewise.
9903         (sync_old_sub<mode>): Likewise.
9904         (sync_new_add<mode>): Likewise.
9905         (sync_new_sub<mode>): Likewise.
9906         (sync_<optab><mode>): Likewise.
9907         (sync_old_<optab><mode>): Likewise.
9908         (sync_new_<optab><mode>): Likewise.
9909         (sync_nand<mode>): Likewise.
9910         (sync_old_nand<mode>): Likewise.
9911         (sync_new_nand<mode>): Likewise.
9912         (sync_lock_test_and_set<mode>): Likewise.
9913         (test_and_set_12): Likewise.
9914         (atomic_compare_and_swap<mode>): Likewise.
9915         (atomic_exchange<mode>_llsc): Likewise.
9916         (atomic_fetch_add<mode>_llsc): Likewise.
9917         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
9918         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
9919         (umips_save_restore_pattern_p): Likewise.
9920         (umips_load_store_pair_p): Likewise.
9921         (umips_output_load_store_pair): Likewise.
9922         (umips_movep_target_p): Likewise.
9923         (umips_12bit_offset_address_p): Likewise.
9924         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
9925         (mips_base_mips16): Rename this...
9926         (mips_base_compression_flags): ...to this. Update all uses.
9927         (mips_attribute_table): Add micromips, nomicromips and nocompression.
9928         (mips_mips16_decl_p): Delete.
9929         (mips_nomips16_decl_p): Delete.
9930         (mips_get_compress_on_flags): New function.
9931         (mips_get_compress_off_flags): New function.
9932         (mips_get_compress_mode): New function.
9933         (mips_get_compress_on_name): New function.
9934         (mips_get_compress_off_name): New function.
9935         (mips_insert_attributes): Support multiple compression types.
9936         (mips_merge_decl_attributes): Likewise.
9937         (umips_12bit_offset_address_p): New function.
9938         (mips_start_function_definition): Emit .set micromips directive.
9939         (mips_call_may_need_jalx_p): New function.
9940         (mips_function_ok_for_sibcall): Add microMIPS support.
9941         (mips_print_operand_punctuation): Support short delay slots and
9942         compact jumps.
9943         (umips_swm_mask, umips_swm_encoding): New.
9944         (umips_build_save_restore): New function.
9945         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
9946         (was_mips16_p): Remove.
9947         (old_compression_mode): New.
9948         (mips_set_compression_mode): New function.
9949         (mips_set_current_function): Add microMIPS support.
9950         (mips_option_override): Likewise.
9951         (umips_save_restore_pattern_p): New function.
9952         (umips_output_save_restore): New function.
9953         (umips_load_store_pair_p_1): New function.
9954         (umips_load_store_pair_p): New function.
9955         (umips_output_load_store_pair_1): New function.
9956         (umips_output_load_store_pair): New function.
9957         (umips_movep_target_p) New function.
9958         (mips_prepare_pch_save): Add microMIPS support.
9959         * config/mips/mips.h (TARGET_COMPRESSION): New.
9960         (TARGET_CPU_CPP_BUILTINS): Update macro
9961         to use new compression flags and to support microMIPS.
9962         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
9963         (MIPS_ARCH_FLOAT_SPEC): Likewise.
9964         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
9965         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
9966         (ASM_SPEC): Support mmicromips and mno-micromips.
9967         (M16STORE_REG_P): New macro.
9968         (MIPS_CALL): Support TARGET_MICROMIPS.
9969         (MICROMIPS_J): New macro.
9970         (mips_base_mips16): Rename this...
9971         (mips_base_compression_flags): ...to this.
9972         (UMIPS_12BIT_OFFSET_P): New macro.
9973         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
9974         (MULTILIB_DIRNAMES): Likewise.
9975 2013-03-20  Richard Biener  <rguenther@suse.de>
9976
9977         PR tree-optimization/56661
9978         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
9979         the result does not have to be distinct.
9980
9981 2013-03-20  Richard Biener  <rguenther@suse.de>
9982
9983         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
9984         remap_gimple_op_r.
9985
9986 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9987             Steven Bosscher <steven@gcc.gnu.org>
9988
9989         PR rtl-optimization/56605
9990         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
9991
9992 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
9993
9994         PR bootstrap/56656
9995         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
9996         that require movd instead of movq.
9997
9998 2013-03-20  Richard Biener  <rguenther@suse.de>
9999
10000         * tree-ssa-structalias.c (struct variable_info): Add pointer
10001         to the first field of an aggregate with sub-vars.  Make
10002         this and the pointer to the next subfield its ID.
10003         (vi_next): New function.
10004         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
10005         storedanything_id, integer_id): Increment by one.
10006         (new_var_info, get_call_vi, lookup_call_clobber_vi,
10007         get_call_clobber_vi): Adjust.
10008         (solution_set_expand): Simplify and speedup.
10009         (solution_set_add): Inline into ...
10010         (set_union_with_increment): ... this.  Adjust accordingly.
10011         (do_sd_constraint): Likewise.
10012         (do_ds_constraint): Likewise.
10013         (do_complex_constraint): Simplify.
10014         (build_pred_graph): Adjust.
10015         (solve_graph): Likewise.  Simplify and speedup.
10016         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
10017         get_constraint_for_component_ref, get_constraint_for_1,
10018         first_vi_for_offset, first_or_preceding_vi_for_offset,
10019         create_function_info_for, create_variable_info_for_1,
10020         create_variable_info_for, intra_create_variable_infos): Adjust.
10021         (init_base_vars): Push NULL for ID zero.
10022         (compute_points_to_sets): Adjust.
10023
10024 2013-03-20  Richard Biener  <rguenther@suse.de>
10025
10026         * cfgloop.c (verify_loop_structure): Streamline and avoid
10027         ICEing on corrupt loop tree.
10028         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
10029         loop tree.
10030
10031 2013-03-20  Richard Biener  <rguenther@suse.de>
10032
10033         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
10034         check whether an SSA update is needed.
10035
10036 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
10037
10038         * config/mips/constraints.md (T): Rename to...
10039         (Yf): ...this.
10040         (U): Rename to...
10041         (Yd): ...this.
10042         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
10043         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
10044
10045 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
10046
10047         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
10048         (*subsi3_carryin_uxtw): Likewise.
10049
10050 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
10051
10052         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
10053         (*rorsi3_insn_uxtw): Likewise.
10054
10055 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
10056
10057         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
10058         (*extrsi5_insn_uxtw): Likewise.
10059
10060 2013-03-19  Richard Biener  <rguenther@suse.de>
10061
10062         PR tree-optimization/56273
10063         * passes.c (init_optimization_passes): Move second VRP after DOM.
10064
10065 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
10066
10067         * config/i386/i386.md (*movti_internal): Merge from
10068         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
10069         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
10070         nox64 isa attributes.
10071
10072 2013-03-18  Richard Biener  <rguenther@suse.de>
10073
10074         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
10075         (unite): Likewise.
10076         (merge_node_constraints): Likewise.
10077         (build_succ_graph): Likewise.
10078         (valid_graph_edge): Inline into single caller.
10079         (unify_nodes): Likewise.  Use bitmap_set_bit return value
10080         and cache varinfo.
10081         (scc_visit): Fix formatting and variable use.
10082         (do_sd_constraint): Use gcc_checking_assert.
10083         (do_ds_constraint): Likewise.
10084         (do_complex_constraint): Likewise.
10085         (condense_visit): Likewise.  Cleanup.
10086         (dump_pred_graph): New function.
10087         (perform_var_substitution): Dump the pred-graph before
10088         variable substitution.
10089         (find_equivalent_node): Use gcc_checking_assert.
10090         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
10091
10092 2013-03-18  Richard Biener  <rguenther@suse.de>
10093
10094         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
10095         Remove cond_expr_stmt_list argument and do not gimplify the
10096         built expression.
10097         (vect_loop_versioning): Adjust.
10098         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
10099         Cleanup to use less temporaries.
10100         (vect_create_data_ref_ptr): Cleanup.
10101
10102 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
10103
10104         PR tree-optimization/56635
10105         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
10106         require types_compatible_p types.
10107
10108 2013-03-18  Nick Clifton  <nickc@redhat.com>
10109
10110         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
10111         spurious backslash.
10112
10113         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
10114         Add missing line to comment describing function.
10115
10116 2013-03-18  Richard Biener  <rguenther@suse.de>
10117
10118         PR tree-optimization/56210
10119         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10120         Handle string / character search functions.
10121         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
10122
10123 2013-03-18  Richard Biener  <rguenther@suse.de>
10124
10125         PR middle-end/56483
10126         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
10127         and implement properly.
10128         * gimple.h (gimple_cond_single_var_p): Remove.
10129
10130 2013-03-18  Richard Biener  <rguenther@suse.de>
10131
10132         * tree-data-ref.h (find_data_references_in_loop): Declare.
10133         * tree-data-ref.c (get_references_in_stmt): Use a stack
10134         vector pre-allocated in the callers.
10135         (find_data_references_in_stmt): Adjust.
10136         (graphite_find_data_references_in_stmt): Likewise.
10137         (create_rdg_vertices): Likewise.
10138         (find_data_references_in_loop): Export.
10139         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
10140         Compute dependences here...
10141         (vect_analyze_data_refs): ...not here.  When we encounter
10142         a non-vectorizable data reference in basic-block vectorization
10143         truncate the data reference vector.  Do not bother to
10144         fixup data-dependence information for gather loads.
10145         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
10146         of data references, as reported.
10147
10148 2013-03-18  Richard Biener  <rguenther@suse.de>
10149
10150         PR tree-optimization/3713
10151         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
10152         has_constants and expr.
10153         (stmt_has_constants): Properly valueize SSA names when deciding
10154         whether the stmt has constants.
10155
10156 2013-03-18  Richard Biener  <rguenther@suse.de>
10157
10158         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
10159         whole function when there is nothing to do.
10160         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
10161         * tree-vectorizer.c (vectorize_loops): Update virtual and
10162         loop-closed SSA once.
10163         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
10164
10165 2013-03-18  Richard Biener  <rguenther@suse.de>
10166
10167         PR middle-end/56113
10168         * domwalk.c (bb_postorder): New global static.
10169         (cmp_bb_postorder): New function.
10170         (walk_dominator_tree): Replace scheme imposing an order for
10171         visiting dominator sons by one sorting them at the time they
10172         are pushed on the stack.
10173
10174 2013-03-18  Richard Biener  <rguenther@suse.de>
10175
10176         PR tree-optimization/39326
10177         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
10178         (struct mem_ref): Replace mem member with ao_ref typed member.
10179         (MEM_ANALYZABLE): Adjust.
10180         (memref_eq): Likewise.
10181         (mem_ref_alloc): Likewise.
10182         (gather_mem_refs_stmt): Likewise.
10183         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
10184         (execute_sm_if_changed_flag_set): Adjust.
10185         (execute_sm): Likewise.
10186         (ref_always_accessed_p): Likewise.
10187         (refs_independent_p): Likewise.
10188         (can_sm_ref_p): Likewise.
10189
10190 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
10191
10192         PR c/56566
10193         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
10194         return 1 even for !unsignedp.
10195
10196 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
10197
10198         * config/i386/i386.md (isa): Add x64 and nox64.
10199         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
10200         (*pushtf): Enable *roF alternative for x64 isa only.
10201         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
10202         mode attribute of integer alternatives to DImode for TARGET_64BIT.
10203         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
10204         (*movtf_internal): Merge from *movtf_internal_rex64 and
10205         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
10206         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
10207         nox64 isa attributes.
10208         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
10209         nox64 isa attributes.
10210         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
10211
10212 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
10213
10214         * config/alpha/alpha.c (TARGET_LRA_P): New define.
10215
10216 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
10217
10218         PR target/56640
10219         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
10220         class names.  Remove trailing comma after "ALL_REGS".
10221
10222 2013-03-16  Jan Hubicka  <jh@suse.cz>
10223
10224         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
10225         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
10226         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
10227         of cgraph_get_create_node.
10228         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10229
10230 2013-03-16  Jason Merrill  <jason@redhat.com>
10231
10232         PR debug/49090
10233         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
10234         with DW_AT_default_value.
10235
10236 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
10237
10238         * BASE-VER: Set to 4.9.0.
10239
10240 2013-03-14  Andi Kleen  <ak@linux.intel.com>
10241
10242         PR target/56619
10243         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
10244         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
10245         Document _x* TSX intrinsics.
10246
10247 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
10248             David Holsgrove  <david.holsgrove@xilinx.com>
10249
10250         * configure.ac: Add MicroBlaze TLS support detection.
10251         * configure: Regenerate.
10252         * config/microblaze/microblaze-protos.h
10253         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
10254         symbol_mentioned_p, label_mentioned_p): Add prototypes.
10255         * config/microblaze/microblaze.c (microblaze_address_type): Add
10256         ADDRESS_TLS and tls_reloc address types.
10257         (microblaze_address_info): Add tls_reloc.
10258         (TARGET_HAVE_TLS): Define.
10259         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
10260          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
10261          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
10262         load_tls_operand,  microblaze_call_tls_get_addr,
10263         microblaze_legitimize_tls_address): New functions.
10264         (microblaze_classify_unspec): Handle UNSPEC_TLS.
10265         (get_base_reg): Use microblaze_tls_symbol_p.
10266         (microblaze_classify_address): Handle TLS.
10267         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
10268         label_mentioned_p and microblaze_tls_referenced_p.
10269         (microblaze_legitimize_address): Handle TLS.
10270         (microblaze_address_insns): Handle ADDRESS_TLS.
10271         (pic_address_needs_scratch): Handle TLS.
10272         (print_operand_address): Handle TLS.
10273         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
10274         (microblaze_expand_move): Handle TLS.
10275         (microblaze_legitimate_constant_p): Check
10276         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
10277         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
10278         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
10279         (PIC_OFFSET_TABLE_REGNUM): Set.
10280         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
10281         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
10282         (addsi3, movsi_internal2, movdf_internal): Update constraints
10283         * config/microblaze/predicates.md (arith_plus_operand): Define
10284         (move_operand): Redefine as move_src_operand,
10285         check microblaze_tls_referenced_p.
10286
10287 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
10288
10289         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
10290         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
10291
10292 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
10293
10294         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
10295         CC mode for AND.
10296
10297 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
10298
10299         PR tree-optimization/53265
10300         * common.opt (Waggressive-loop-optimizations): New option.
10301         * tree-ssa-loop-niter.c: Include tree-pass.h.
10302         (do_warn_aggressive_loop_optimizations): New function.
10303         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
10304         if number_of_latch_executions returned constant.
10305         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
10306         early.  If number_of_latch_executions returned constant, set
10307         nb_iterations_upper_bound back to it.
10308         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
10309         field.
10310         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
10311         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
10312
10313         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
10314         (MULTILIB_OSDIRNAMES): Set.
10315         * genmultilib: If defaultosdirname doesn't start with :: , set
10316         defaultosdirname2 instead, clear it and emit two . multilib_raw
10317         entries instead of just one.
10318
10319 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
10320
10321         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
10322         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
10323         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
10324         (SUBTARGET_OVERRIDE_OPTIONS): New.
10325
10326 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
10327
10328         PR target/49880
10329         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
10330         (musermode): Convert to Var(TARGET_USERMODE).
10331         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
10332         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
10333         * config/sh/sh.c (sh_option_override): Use
10334         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
10335         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
10336         condition.
10337         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
10338         TARGET_SH4.
10339         (udivsi3_i4_single, divsi3_i4_single): Use
10340         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
10341
10342 2013-03-13  Dave Korn  <dave.korn.cygwin@....>
10343
10344         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
10345         default setting.
10346
10347 2013-03-13  Richard Biener  <rguenther@suse.de>
10348
10349         PR tree-optimization/56608
10350         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
10351         calls when vectorizing basic-blocks.
10352
10353 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
10354
10355         PR plugins/45078
10356         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
10357         tm_file.
10358
10359 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
10360
10361         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
10362
10363 2013-03-11  Jan Hubicka  <jh@suse.cz>
10364
10365         PR lto/56557
10366         * lto-streamer-out.c (output_symbol_p): Skip references from
10367         constructors of external variables.
10368
10369 2013-03-11  Jan Hubicka  <jh@suse.cz>
10370
10371         PR middle-end/56571
10372         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
10373         from pseudos.
10374         * emit-rtl.c (verify_rtx_sharing): Likewise.
10375         (copy_insn_1): Likewise.
10376         * rtl.c (copy_rtx): Likewise.
10377
10378 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
10379
10380         PR target/56591
10381         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
10382         output_operand_lossage message.
10383
10384 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
10385
10386         PR target/56470
10387         * arm.c (shift_op): Validate RTL pattern on the fly.
10388         (arm_print_operand, case 'S'): Don't use shift_operator to validate
10389         the RTL.
10390
10391 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10392
10393         PR target/56347
10394         * config/pa/pa.md (call_value): Check for calls to powf and direct to
10395         new call patterns that clobber %fr12.
10396         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
10397         split and postreload patterns.
10398         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
10399         registers %fr12 and %fr12R as call used.
10400
10401 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
10402
10403         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
10404         (canon_address, record_store, replace_read, check_mem_read_rtx,
10405         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
10406         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
10407         rest_of_handle_dse): Likewise.
10408
10409 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
10410
10411         PR middle-end/56524
10412         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
10413         Add base_optabs.
10414         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
10415         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
10416         (save_optabs_if_changed): Replace with...
10417         (init_tree_optimization_optabs): ...this.
10418         * optabs.c (save_optabs_if_changed): Rename to...
10419         (init_tree_optimization_optabs): ...this.  Take the optimization node
10420         as argument.  Do nothing if the base optabs are already correct.
10421         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
10422         to recompute optabs.
10423         * function.h (function): Remove optabs field.
10424         * function.c (invoke_set_current_function_hook): Call
10425         init_tree_optimization_optabs.  Use the result to initialize
10426         this_fn_optabs.
10427
10428 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
10429
10430         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
10431         if GTMA_HAS_NO_INSTRUMENTATION.
10432         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
10433         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
10434         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
10435         * gimple-pretty-print.c (dump_gimple_transaction): Handle
10436         GTMA_HAS_NO_INSTRUMENTATION.
10437
10438 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
10439
10440         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
10441         libasan_preinit.o.
10442
10443 2013-03-08  Marek Polacek  <polacek@redhat.com>
10444             Jakub Jelinek  <jakub@redhat.com>
10445
10446         PR tree-optimization/56478
10447         * predict.c (is_comparison_with_loop_invariant_p): Change the
10448         type of loop_step to tree.
10449         (predict_loops): Adjust.
10450         (predict_iv_comparison): Perform the computations on double_ints.
10451
10452 2013-03-08  Richard Biener  <rguenther@suse.de>
10453
10454         PR tree-optimization/56570
10455         * tree-cfg.c (verify_expr_location_1): Verify locations for
10456         DECL_DEBUG_EXPR.
10457         * tree-sra.c (create_access_replacement): Strip locations
10458         from DECL_DEBUG_EXPRs.
10459
10460 2013-03-08  Richard Biener  <rguenther@suse.de>
10461
10462         * tree-inline.c (expand_call_inline): Do not associate
10463         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
10464         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
10465
10466 2013-03-08  Richard Biener  <rguenther@suse.de>
10467
10468         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
10469         or block changes with -Og.  Fix for location / block encoding
10470         changes and PHI arguments with locations.
10471
10472 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
10473
10474         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
10475         for all counters.
10476         (struct output_info): Likewise.
10477         (register_overhead): Remove bad gcc_assert.
10478         (bitmap_find_bit): If there is only a single bitmap element, do not
10479         count a miss as a search.
10480         (print_statistics): Update for counter type changes.
10481         (dump_bitmap_statistics): Likewise.  Print headers such that they
10482         are properly lined up with the printed counters.
10483
10484 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
10485
10486         PR tree-optimization/56559
10487         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
10488         check that it has only a single use.
10489
10490 2013-03-07  Richard Biener  <rguenther@suse.de>
10491
10492         * doc/invoke.texi (fwhole-program): Discourage use in combination
10493         with -flto.
10494
10495 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
10496
10497         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
10498
10499         PR tree-optimization/56539
10500         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
10501         instead of GSI_CONTINUE_LINKING as last argument to
10502         force_gimple_operand_gsi.  Adjust function comment.
10503
10504         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
10505         aarch64-cores.def.
10506
10507         PR middle-end/56548
10508         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
10509         promoted mode, convert the result back to the original mode.
10510
10511 2013-03-06  Richard Biener  <rguenther@suse.de>
10512
10513         PR middle-end/56294
10514         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
10515         (insert_updated_phi_nodes_compare_uids): New function.
10516         (update_ssa): Sort symbols_to_rename after UID before
10517         traversing it to insert PHI nodes.
10518
10519 2013-03-06  Richard Biener  <rguenther@suse.de>
10520
10521         PR middle-end/50494
10522         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
10523         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
10524
10525         Revert
10526         2013-02-13  Richard Biener  <rguenther@suse.de>
10527
10528         PR lto/50494
10529         * varasm.c (output_constant_def_1): Get the decl representing
10530         the constant as argument.
10531         (output_constant_def): Wrap output_constant_def_1.
10532         (make_decl_rtl): Use output_constant_def_1 with the decl
10533         representing the constant.
10534         (build_constant_desc): Optionally re-use a decl already
10535         representing the constant.
10536         (tree_output_constant_def): Adjust.
10537
10538 2013-03-06  Joey Ye  <joey.ye@arm.com>
10539
10540         PR lto/50293
10541         * gcc.c (convert_white_space): New function.
10542         (main): Handles white space in function name.
10543
10544 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
10545
10546         PR target/56529
10547         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
10548         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
10549         to SH_DIV_CALL_TABLE for TARGET_SH2.
10550         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
10551         list.
10552         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
10553         call-table options.
10554
10555 2013-03-05  Sterling Augustine  <saugustine@google.com>
10556             Cary Coutant  <ccoutant@google.com>
10557
10558         PR debug/55364
10559         * dwarf2out.c (resolve_addr): Don't call
10560         remove_loc_list_addr_table_entries a second time for the same
10561         expression.
10562
10563 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
10564
10565         PR debug/56510
10566         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
10567         (avoid_complex_debug_insns): New function.
10568         (expand_debug_locations): Call it.
10569
10570         PR rtl-optimization/56484
10571         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
10572         lifetimes of hard registers on small register class machines.
10573
10574 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
10575
10576         * config/microblaze/microblaze-protos.h: Rename
10577         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
10578         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
10579         fast_interrupt.
10580         (microblaze_fast_interrupt_function_p): New function.
10581         (microblaze_is_interrupt_handler): Rename to
10582         microblaze_is_interrupt_variant and add fast_interrupt check.
10583         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
10584         (save_restore_insns): Likewise.
10585         (compute_frame_size): Likewise.
10586         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
10587         (microblaze_globalize_label): Likewise.
10588         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
10589         * config/microblaze/microblaze.md: Use wrapper
10590         microblaze_is_interrupt_variant.
10591
10592 2013-03-05  Kai Tietz  <ktietz@redhat.com>
10593
10594         * sdbout.c (sdbout_one_type): Switch to current function's section
10595         supporting cold/hot.
10596
10597 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
10598
10599         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
10600         -mxl-reorder.
10601
10602 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
10603
10604         PR middle-end/56461
10605         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
10606         if VALGRIND_GET_VBITS is defined, temporarily make object
10607         memory all defined, and restore previous valgrind addressability
10608         and definability afterwards.  Free this_object at the end.
10609
10610         PR middle-end/56461
10611         * lra.c (lra): Call lra_clear_live_ranges if live_p,
10612         right before calling lra_create_live_ranges, also call it
10613         when clearing live_p.  Only call lra_clear_live_ranges
10614         at the end if live_p.
10615
10616         PR middle-end/56461
10617         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
10618
10619 2013-03-05  Richard Biener  <rguenther@suse.de>
10620
10621         PR tree-optimization/56521
10622         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
10623         value-id.
10624
10625 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
10626
10627         PR c++/55135
10628         * except.h (remove_unreachable_eh_regions): New prototype.
10629         * except.c (remove_eh_handler_splicer): New function, split out
10630         of remove_eh_handler.
10631         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
10632         warning about running it on many EH regions one at a time.
10633         (remove_unreachable_eh_regions_worker): New function, walk the
10634         EH tree in depth-first order and remove non-marked regions.
10635         (remove_unreachable_eh_regions): New function.
10636         * tree-eh.c (mark_reachable_handlers): New function, split out
10637         from remove_unreachable_handlers.
10638         (remove_unreachable_handlers): Use mark_reachable_handlers and
10639         remove_unreachable_eh_regions.
10640         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
10641         and remove_unreachable_eh_regions.
10642
10643 2013-03-05  Richard Biener  <rguenther@suse.de>
10644
10645         PR middle-end/56525
10646         * loop-init.c (fix_loop_structure): Remove loops in two stages,
10647         not freeing them until the end.
10648
10649 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10650
10651         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
10652
10653 2013-03-05  Richard Biener  <rguenther@suse.de>
10654
10655         PR tree-optimization/56270
10656         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
10657         of loads after scheduling an SLP instance.
10658
10659 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
10660
10661         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
10662         tic6x.exp.
10663         (check_gcc_parallelize): Run guality.exp as a separate job from
10664         vect.exp with unsorted.exp and $(dg_target_exps) separately from
10665         struct-layout-1.exp with stackalign.exp.
10666
10667         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
10668
10669         PR middle-end/56461
10670         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
10671         load_index sbitmap even if some bit in it isn't set.
10672
10673         PR middle-end/56461
10674         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
10675         (discover_iteration_bound_by_body_walk): Change queues to
10676         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
10677         spelling in comment.  Call safe_push on queues[bound_index] directly.
10678         Release queues[queue_index] in every iteration unconditionally.
10679         Release bounds vector.
10680
10681         PR middle-end/56461
10682         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
10683         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
10684         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
10685         inner_phis vector.
10686
10687 2013-03-05  Richard Biener  <rguenther@suse.de>
10688
10689         PR lto/56515
10690         * tree-inline.c (remap_blocks_to_null): New function.
10691         (expand_call_inline): When expanding a call stmt without
10692         an associated block inline remap all callee blocks to NULL.
10693
10694 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
10695
10696         PR rtl-optimization/56494
10697         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
10698         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
10699         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
10700
10701         PR middle-end/56461
10702         * sel-sched-ir.c (free_sched_pools): Release
10703         succs_info_pool.stack[succs_info_pool.max_top] vectors too
10704         if succs_info_pool.max_top isn't -1.
10705
10706         PR bootstrap/56509
10707         * opts.c (opts_obstack, opts_concat): Moved to...
10708         * opts-common.c (opts_obstack, opts_concat): ... here.
10709
10710 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
10711
10712         PR middle-end/56461
10713         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
10714
10715 2013-03-04  Martin Jambor  <mjambor@suse.cz>
10716
10717         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
10718         all appropriate places.
10719
10720 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
10721
10722         PR tree-optimization/56424
10723         * ipa-split.c (split_function): Do not set the RSO flag if result is
10724         not by reference and its type is a register type.
10725
10726 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
10727
10728         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
10729         (microblaze_legitimate_pic_operand): Likewise
10730         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
10731         new function microblaze_legitimate_pic_operand
10732         * config/microblaze/microblaze-protos.h
10733         (microblaze_legitimate_pic_operand): Declare.
10734
10735 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10736
10737         * config/microblaze/predicates.md (call_insn_simple_operand):
10738         New predicate for supported rtx code types.
10739         * config/microblaze/microblaze.md (call_internal1): Use
10740         call_insn_simple_operand predicate.
10741
10742 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
10743
10744         PR middle-end/56461
10745         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
10746         partitions.ordered_remove.
10747
10748         PR middle-end/56461
10749         * tree-vect-stmts.c (vectorizable_conversion): Don't call
10750         vec_oprnds0.create (1) for modifier == NONE.
10751
10752         PR middle-end/56461
10753         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
10754         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
10755         vec_oprnds1 right before pushing anything to it for
10756         scalar_shift_arg.
10757
10758         PR middle-end/56461
10759         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
10760         set nbbs to 0 instead of having separate code path.
10761         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
10762         instead of false as last argument if returning NULL.
10763
10764 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
10765
10766         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
10767         the attribute is now called "target" instead of "option".
10768         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
10769         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
10770         attribute/pragma name for TARGET_OPTION_VALID_P and
10771         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
10772         * doc/tm.texi: Regenerated.
10773
10774 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
10775
10776         * config/microblaze/microblaze.c:
10777         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
10778         * config/microblaze/microblaze.h: Add -mxl-reorder to
10779         DRIVER_SELF_SPECS.
10780         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
10781         instructions emitted if TARGET_REORDER.
10782         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
10783         or 0 for -m/-mno case, but initialises as 2 to detect default use case
10784         separately.
10785
10786 2013-03-01  Xinliang David Li  <davidxl@google.com>
10787
10788         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
10789         walk length.
10790
10791 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
10792
10793         PR middle-end/56461
10794         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
10795         vector even when returning true.  Fix up function comment formatting.
10796
10797         PR middle-end/56461
10798         * ira-build.c (ira_loop_nodes_count): New variable.
10799         (create_loop_tree_nodes): Initialize it.
10800         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
10801
10802         PR middle-end/56461
10803         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
10804         method on dr_chain and result_chain.
10805         * tree-vect-stmts.c (vectorizable_store): Only call
10806         result_chain.create if j == 0.
10807
10808         PR middle-end/56461
10809         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
10810         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
10811         before overwriting it.
10812
10813 2013-03-01  Tobias Burnus  <burnus@net-b.de>
10814
10815         * doc/extended.texi (C Extensions): Change order in @menu
10816         to match @node.
10817         (Other MIPS Built-in Functions): Move last MIPS entry before
10818         "picoChip Built-in Functions".
10819         (SH Built-in Functions): Move after RX Built-in Functions.
10820         * doc/gcc.texi (Introduction): Change order in @menu
10821         to match @node.
10822         * doc/md.texi (Constraints): Ditto.
10823         * gty.texi (Type Information): Ditto.
10824         (User-provided marking routines for template types): Make
10825         subsection.
10826         * doc/invoke.texi (AArch64 Options): Move before
10827         "Adapteva Epiphany Options".
10828
10829 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
10830             Jakub Jelinek  <jakub@redhat.com>
10831
10832         PR sanitizer/56454
10833         * asan.c (gate_asan): Lookup no_sanitize_address instead of
10834         no_address_safety_analysis attribute.
10835         * doc/extend.texi (no_address_safety_attribute): Rename to
10836         no_sanitize_address attribute, mention no_address_safety_analysis
10837         attribute as deprecated alias.
10838
10839 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
10840
10841         PR middle-end/56461
10842         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
10843         type to vec<vec<tree> > *.
10844         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
10845         to be vec<tree> instead of vec<tree> *, set vec_defs
10846         to vNULL and call vec_defs.create (number_of_vects), adjust other
10847         uses of vec_defs.
10848         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
10849         vectorizable_condition): Adjust vect_get_slp_defs callers.
10850
10851 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
10852
10853         * config/aarch64/aarch64.c
10854         (aarch64_float_const_representable): Remove unused variable.
10855
10856 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
10857
10858         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
10859
10860 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
10861
10862         * config/aarch64/aarch64-builtins.c
10863         (aarch64_init_simd_builtins): Make static.
10864
10865 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
10866
10867         * config/aarch64/aarch64.c
10868         (aarch64_simd_make_constant): Make static.
10869
10870 2013-02-28  Martin Jambor  <mjambor@suse.cz>
10871
10872         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
10873         with no initialization to the RHS of debug statements.
10874
10875 2013-02-28  Martin Jambor  <mjambor@suse.cz>
10876
10877         PR tree-optimization/56294
10878         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
10879         Adjust dumping.
10880         (get_access_replacement): Do not call create_access_replacement.
10881         Assert a replacement exists.
10882         (get_repl_default_def_ssa_name): Create the replacement declaration
10883         itself.
10884
10885 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10886
10887         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
10888         final_end_function.
10889
10890 2013-02-28  Marek Polacek  <polacek@redhat.com>
10891
10892         PR rtl-optimization/56466
10893         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
10894         if we're changing a loop.
10895         (peel_loops_completely): Likewise.
10896
10897 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
10898
10899         PR c++/55813
10900         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
10901
10902 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
10903
10904         PR target/56445
10905         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
10906         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
10907         INTX_FTYPE_FX, FX_FTYPE_INTX.
10908         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
10909
10910 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
10911
10912         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
10913         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
10914         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
10915         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
10916         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
10917         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
10918         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
10919         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
10920         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
10921         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
10922         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
10923         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
10924         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
10925         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
10926         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
10927         (avrxmega6): Increase max flash segments from 5 to 6.
10928         * config/avr/t-multilib: Regenerate.
10929         * config/avr/avr-tables.opt: Regenerate.
10930         * doc/avr-mmcu.texi: Regenerate.
10931
10932 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
10933
10934         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
10935         (avr_device_to_arch): Rename to avr_device_to_ld.
10936         (avr_device_to_as): New prototype.
10937         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
10938         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
10939         * config/avr/driver-avr.c (avr_device_to_as): New.
10940         (avr_device_to_arch): Rename to avr_device_to_ld.
10941
10942 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
10943
10944         PR middle-end/56461
10945         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
10946         method on dr_chain and result_chain.
10947
10948         PR middle-end/56461
10949         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
10950         pointer_set_destroy on not_executed_last_iteration.
10951
10952         PR middle-end/56461
10953         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
10954
10955         PR middle-end/56461
10956         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
10957         FOR_EACH_DEFINED_FUNCTION when freeing state.
10958
10959         PR middle-end/56461
10960         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
10961         pool_free.
10962         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
10963         overwriting it.
10964
10965         PR middle-end/56461
10966         * ipa-cp.c (decide_whether_version_node): Call vec_free on
10967         known_aggs[i].items and release known_aggs vector.
10968
10969         PR middle-end/56461
10970         * ipa-reference.c (propagate): Free node_info even for alias nodes.
10971
10972 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10973
10974         * config/microblaze/microblaze.c (microblaze_emit_compare):
10975         Use xor for EQ/NE comparisions.
10976         * config/microblaze/microblaze.md (cstoresf4): Add constraints
10977         (cbranchsf4): Adjust operator to comparison_operator.
10978
10979 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
10980
10981         PR middle-end/56461
10982         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
10983         vector.
10984         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
10985         vec_safe_push, always update *slot.
10986         (redirect_edge_var_map_clear): Use vec_free.
10987         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
10988         (free_var_map_entry): Use vec_free.
10989         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
10990         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
10991
10992 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
10993
10994         PR middle-end/45472
10995         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
10996         when the may_trap_p bit of the exprs being merged differs.
10997         Reorder tests for speculativeness in the logical and operator.
10998
10999 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
11000
11001         * incpath.c (add_standard_paths): Use reconcat instead of concat
11002         where appropriate and avoid leaking memory.
11003
11004         * opts.h: Include obstack.h.
11005         (opts_concat): New prototype.
11006         (opts_obstack): New declaration.
11007         * opts.c (opts_concat): New function.
11008         (opts_obstack): New variable.
11009         (init_options_struct): Call gcc_init_obstack on opts_obstack.
11010         (finish_options): Use opts_concat instead of concat
11011         and XOBNEWVEC instead of XNEWVEC.
11012         * opts-common.c (generate_canonical_option, decode_cmdline_option,
11013         generate_option): Likewise.
11014         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
11015         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
11016
11017         PR target/56455
11018         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
11019         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
11020
11021 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
11022
11023         PR middle-end/56461
11024         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
11025
11026 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
11027
11028         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
11029         (arm_block_move_unaligned_straight): Likewise.
11030         (arm_adjust_block_mem): Likewise.
11031
11032 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
11033
11034         PR target/48901
11035         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
11036         temp, cond and label.
11037         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
11038
11039         PR target/52500
11040         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
11041         * config/c6x/c6x.h (dbx_register_map): Update declaration.
11042
11043         PR target/52501
11044         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
11045         of prologue/epilogue functions.
11046
11047         PR target/52550
11048         * config/tilegx/tilegx.c (tilegx_expand_prologue):
11049         Remove unused variable cfa_offset.
11050         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
11051
11052         PR target/54639
11053         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
11054         type promotion to unsigned.
11055
11056         PR target/54640
11057         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
11058         for HOST_WIDE_INT of 32 bit / same size as int.
11059         (arm_block_move_unaligned_straight): Likewise.
11060         (arm_adjust_block_mem): Likewise.
11061
11062         PR target/54662
11063         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
11064         ALL_CFLAGS.
11065
11066 2013-02-26  Marek Polacek  <polacek@redhat.com>
11067
11068         PR tree-optimization/56426
11069         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
11070
11071 2013-02-26  Richard Biener  <rguenther@suse.de>
11072
11073         PR target/56444
11074         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
11075         unused variable loops.
11076
11077 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
11078
11079         PR tree-optimization/56448
11080         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
11081         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
11082         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
11083         later operands of the references, or even first operand for
11084         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
11085
11086         PR tree-optimization/56443
11087         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
11088         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
11089         to type_for_mode langhook.
11090
11091 2013-02-25  Matt Turner  <mattst88@gmail.com>
11092
11093         * doc/invoke.texi: Document r4700.
11094
11095 2013-02-25  Richard Biener  <rguenther@suse.de>
11096
11097         PR tree-optimization/56175
11098         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
11099         split out from ...
11100         (simplify_bitwise_binary): ... here.  Also guard the conversion
11101         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
11102
11103 2013-02-25  Catherine Moore  <clm@codesourcery.com>
11104
11105         Revert:
11106         2013-02-24  Catherine Moore  <clm@codesourcery.com>
11107             Maciej W. Rozycki  <macro@codesourcery.com>
11108             Tom de Vries  <tom@codesourcery.com>
11109             Nathan Sidwell  <nathan@codesourcery.com>
11110             Iain Sandoe  <iain@codesourcery.com>
11111             Nathan Froyd  <froydnj@codesourcery.com>
11112             Chao-ying Fu  <fu@mips.com>
11113
11114         * doc/extend.texi: (micromips, nomicromips, nocompression):
11115         Document new function attributes.
11116         * doc/invoke.texi (minterlink-compressed, mmicromips,
11117         m14k, m14ke, m14kec): Document new options.
11118         (minterlink-mips16): Update documentation.
11119         * doc/md.texi (ZC, ZD): Document new constraints.
11120         * configure.ac (gcc_cv_as_micromips): Check if linker
11121         supports the .set micromips directive.
11122         * configure: Regenerate.
11123         * config.in: Regenerate.
11124         * config/mips/mips-tables.opt: Regenerate.
11125         * config/mips/micromips.md: New file.
11126         * constraints.md (ZC, AD): New constraints.
11127         * config/mips/predicates.md (movep_src_register): New predicate.
11128         (movep_src_operand): New predicate.
11129         (non_volatile_mem_operand): New predicate.
11130         * config/mips/mips.md (multimem): New type.
11131         (length): Differentiate between 17-bit and 18-bit branch offsets.
11132         (MOVEP1, MOVEP2): New mode iterator.
11133         (mov_<load>l): Use ZC constraint.
11134         (mov_<load>r): Likewise.
11135         (mov_<store>l): Likewise.
11136         (mov_<store>r): Likewise.
11137         (*branch_equality<mode>_inverted): Add microMIPS support.
11138         (*branch_equality<mode>): Likewise.
11139         (*jump_absolute): Likewise.
11140         (indirect_jump_<mode>): Likewise.
11141         (tablejump_<mode>): Likewise.
11142         (<optab>_internal): Likewise.
11143         (sibcall_internal): Likewise.
11144         (sibcall_value_internal): Likewise.
11145         (prefetch): Use constraint ZD.
11146         * config/mips/mips.opt (minterlink-compressed): New option.
11147         (minterlink-mips16): Now an alias for minterlink-compressed.
11148         (mmicromips): New option.
11149         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
11150         (compare_and_swap_12): Likewise.
11151         (sync_add<mode>): Likewise.
11152         (sync_<optab>_12): Likewise.
11153         (sync_old_<optab>_12): Likewise.
11154         (sync_new_<optab>_12): Likewise.
11155         (sync_nand_12): Likewise.
11156         (sync_old_nand_12): Likewise.
11157         (sync_new_nand_12): Likewise.
11158         (sync_sub<mode>): Likewise.
11159         (sync_old_add<mode>): Likewise.
11160         (sync_old_sub<mode>): Likewise.
11161         (sync_new_add<mode>): Likewise.
11162         (sync_new_sub<mode>): Likewise.
11163         (sync_<optab><mode>): Likewise.
11164         (sync_old_<optab><mode>): Likewise.
11165         (sync_new_<optab><mode>): Likewise.
11166         (sync_nand<mode>): Likewise.
11167         (sync_old_nand<mode>): Likewise.
11168         (sync_new_nand<mode>): Likewise.
11169         (sync_lock_test_and_set<mode>): Likewise.
11170         (test_and_set_12): Likewise.
11171         (atomic_compare_and_swap<mode>): Likewise.
11172         (atomic_exchange<mode>_llsc): Likewise.
11173         (atomic_fetch_add<mode>_llsc): Likewise.
11174         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
11175         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
11176         (umips_save_restore_pattern_p): Likewise.
11177         (umips_load_store_pair_p): Likewise.
11178         (umips_output_load_store_pair): Likewise.
11179         (umips_movep_target_p): Likewise.
11180         (umips_12bit_offset_address_p): Likewise.
11181         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
11182         (mips_base_mips16): Rename this...
11183         (mips_base_compression_flags): ...to this. Update all uses.
11184         (mips_attribute_table): Add micromips, nomicromips and nocompression.
11185         (mips_mips16_decl_p): Delete.
11186         (mips_nomips16_decl_p): Delete.
11187         (mips_get_compress_on_flags): New function.
11188         (mips_get_compress_off_flags): New function.
11189         (mips_get_compress_mode): New function.
11190         (mips_get_compress_on_name): New function.
11191         (mips_get_compress_off_name): New function.
11192         (mips_insert_attributes): Support multiple compression types.
11193         (mips_merge_decl_attributes): Likewise.
11194         (umips_12bit_offset_address_p): New function.
11195         (mips_start_function_definition): Emit .set micromips directive.
11196         (mips_call_may_need_jalx_p): New function.
11197         (mips_function_ok_for_sibcall): Add microMIPS support.
11198         (mips_print_operand_punctuation): Support short delay slots and
11199         compact jumps.
11200         (umips_swm_mask, umips_swm_encoding): New.
11201         (umips_build_save_restore): New function.
11202         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
11203         (was_mips16_p): Remove.
11204         (old_compression_mode): New.
11205         (mips_set_compression_mode): New function.
11206         (mips_set_current_function): Add microMIPS support.
11207         (mips_option_override): Likewise.
11208         (umips_save_restore_pattern_p): New function.
11209         (umips_output_save_restore): New function.
11210         (umips_load_store_pair_p_1): New function.
11211         (umips_load_store_pair_p): New function.
11212         (umips_output_load_store_pair_1): New function.
11213         (umips_output_load_store_pair): New function.
11214         (umips_movep_target_p) New function.
11215         (mips_prepare_pch_save): Add microMIPS support.
11216         * config/mips/mips.h (TARGET_COMPRESSION): New.
11217         (TARGET_CPU_CPP_BUILTINS): Update macro
11218         to use new compression flags and to support microMIPS.
11219         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
11220         (MIPS_ARCH_FLOAT_SPEC): Likewise.
11221         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
11222         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
11223         (ASM_SPEC): Support mmicromips and mno-micromips.
11224         (M16STORE_REG_P): New macro.
11225         (MIPS_CALL): Support TARGET_MICROMIPS.
11226         (MICROMIPS_J): New macro.
11227         (mips_base_mips16): Rename this...
11228         (mips_base_compression_flags): ...to this.
11229         (UMIPS_12BIT_OFFSET_P): New macro.
11230         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
11231         (MULTILIB_DIRNAMES): Likewise.
11232
11233 2013-02-25  Tom de Vries  <tom@codesourcery.com>
11234
11235         PR rtl-optimization/56131
11236         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
11237         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
11238         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
11239
11240 2013-02-25  Tobias Burnus  <burnus@net-b.de>
11241
11242         * doc/invoke.texi (-fsanitize=): Move from optimization
11243         to debugging options.
11244
11245 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
11246
11247         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
11248
11249 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
11250             Alexander Monakov  <amonakov@ispras.ru>
11251
11252         PR middle-end/56077
11253         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
11254         flush pending lists also on non-jumps.  Adjust comment.
11255
11256 2013-02-24  Catherine Moore  <clm@codesourcery.com>
11257             Maciej W. Rozycki  <macro@codesourcery.com>
11258             Tom de Vries  <tom@codesourcery.com>
11259             Nathan Sidwell  <nathan@codesourcery.com>
11260             Iain Sandoe  <iain@codesourcery.com>
11261             Nathan Froyd  <froydnj@codesourcery.com>
11262             Chao-ying Fu  <fu@mips.com>
11263
11264         * doc/extend.texi: (micromips, nomicromips, nocompression):
11265         Document new function attributes.
11266         * doc/invoke.texi (minterlink-compressed, mmicromips,
11267         m14k, m14ke, m14kec): Document new options.
11268         (minterlink-mips16): Update documentation.
11269         * doc/md.texi (ZC, ZD): Document new constraints.
11270         * configure.ac (gcc_cv_as_micromips): Check if linker
11271         supports the .set micromips directive.
11272         * configure: Regenerate.
11273         * config.in: Regenerate.
11274         * config/mips/mips-tables.opt: Regenerate.
11275         * config/mips/micromips.md: New file.
11276         * constraints.md (ZC, AD): New constraints.
11277         * config/mips/predicates.md (movep_src_register): New predicate.
11278         (movep_src_operand): New predicate.
11279         (non_volatile_mem_operand): New predicate.
11280         * config/mips/mips.md (multimem): New type.
11281         (length): Differentiate between 17-bit and 18-bit branch offsets.
11282         (MOVEP1, MOVEP2): New mode iterator.
11283         (mov_<load>l): Use ZC constraint.
11284         (mov_<load>r): Likewise.
11285         (mov_<store>l): Likewise.
11286         (mov_<store>r): Likewise.
11287         (*branch_equality<mode>_inverted): Add microMIPS support.
11288         (*branch_equality<mode>): Likewise.
11289         (*jump_absolute): Likewise.
11290         (indirect_jump_<mode>): Likewise.
11291         (tablejump_<mode>): Likewise.
11292         (<optab>_internal): Likewise.
11293         (sibcall_internal): Likewise.
11294         (sibcall_value_internal): Likewise.
11295         (prefetch): Use constraint ZD.
11296         * config/mips/mips.opt (minterlink-compressed): New option.
11297         (minterlink-mips16): Now an alias for minterlink-compressed.
11298         (mmicromips): New option.
11299         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
11300         (compare_and_swap_12): Likewise.
11301         (sync_add<mode>): Likewise.
11302         (sync_<optab>_12): Likewise.
11303         (sync_old_<optab>_12): Likewise.
11304         (sync_new_<optab>_12): Likewise.
11305         (sync_nand_12): Likewise.
11306         (sync_old_nand_12): Likewise.
11307         (sync_new_nand_12): Likewise.
11308         (sync_sub<mode>): Likewise.
11309         (sync_old_add<mode>): Likewise.
11310         (sync_old_sub<mode>): Likewise.
11311         (sync_new_add<mode>): Likewise.
11312         (sync_new_sub<mode>): Likewise.
11313         (sync_<optab><mode>): Likewise.
11314         (sync_old_<optab><mode>): Likewise.
11315         (sync_new_<optab><mode>): Likewise.
11316         (sync_nand<mode>): Likewise.
11317         (sync_old_nand<mode>): Likewise.
11318         (sync_new_nand<mode>): Likewise.
11319         (sync_lock_test_and_set<mode>): Likewise.
11320         (test_and_set_12): Likewise.
11321         (atomic_compare_and_swap<mode>): Likewise.
11322         (atomic_exchange<mode>_llsc): Likewise.
11323         (atomic_fetch_add<mode>_llsc): Likewise.
11324         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
11325         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
11326         (umips_save_restore_pattern_p): Likewise.
11327         (umips_load_store_pair_p): Likewise.
11328         (umips_output_load_store_pair): Likewise.
11329         (umips_movep_target_p): Likewise.
11330         (umips_12bit_offset_address_p): Likewise.
11331         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
11332         (mips_base_mips16): Rename this...
11333         (mips_base_compression_flags): ...to this. Update all uses.
11334         (mips_attribute_table): Add micromips, nomicromips and nocompression.
11335         (mips_mips16_decl_p): Delete.
11336         (mips_nomips16_decl_p): Delete.
11337         (mips_get_compress_on_flags): New function.
11338         (mips_get_compress_off_flags): New function.
11339         (mips_get_compress_mode): New function.
11340         (mips_get_compress_on_name): New function.
11341         (mips_get_compress_off_name): New function.
11342         (mips_insert_attributes): Support multiple compression types.
11343         (mips_merge_decl_attributes): Likewise.
11344         (umips_12bit_offset_address_p): New function.
11345         (mips_start_function_definition): Emit .set micromips directive.
11346         (mips_call_may_need_jalx_p): New function.
11347         (mips_function_ok_for_sibcall): Add microMIPS support.
11348         (mips_print_operand_punctuation): Support short delay slots and
11349         compact jumps.
11350         (umips_swm_mask, umips_swm_encoding): New.
11351         (umips_build_save_restore): New function.
11352         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
11353         (was_mips16_p): Remove.
11354         (old_compression_mode): New.
11355         (mips_set_compression_mode): New function.
11356         (mips_set_current_function): Add microMIPS support.
11357         (mips_option_override): Likewise.
11358         (umips_save_restore_pattern_p): New function.
11359         (umips_output_save_restore): New function.
11360         (umips_load_store_pair_p_1): New function.
11361         (umips_load_store_pair_p): New function.
11362         (umips_output_load_store_pair_1): New function.
11363         (umips_output_load_store_pair): New function.
11364         (umips_movep_target_p) New function.
11365         (mips_prepare_pch_save): Add microMIPS support.
11366         * config/mips/mips.h (TARGET_COMPRESSION): New.
11367         (TARGET_CPU_CPP_BUILTINS): Update macro
11368         to use new compression flags and to support microMIPS.
11369         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
11370         (MIPS_ARCH_FLOAT_SPEC): Likewise.
11371         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
11372         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
11373         (ASM_SPEC): Support mmicromips and mno-micromips.
11374         (M16STORE_REG_P): New macro.
11375         (MIPS_CALL): Support TARGET_MICROMIPS.
11376         (MICROMIPS_J): New macro.
11377         (mips_base_mips16): Rename this...
11378         (mips_base_compression_flags): ...to this.
11379         (UMIPS_12BIT_OFFSET_P): New macro.
11380         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
11381         (MULTILIB_DIRNAMES): Likewise.
11382
11383 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
11384
11385         PR target/52555
11386         * target-globals.c (save_target_globals): For init_reg_sets and
11387         target_reinit remporarily set this_fn_optabs to this_target_optabs.
11388
11389 2013-02-22  James Grennahlgh  <james.greenhalgh@arm.com>
11390
11391         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
11392         * config/aarch64/t-aarch64
11393         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
11394
11395 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
11396
11397         PR inline-asm/56148
11398         * lra-constraints.c (process_alt_operands): Reload operand
11399         conflicting with earlier clobber only if no more other conflicting
11400         operands.
11401
11402 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
11403
11404         PR sanitizer/56393
11405         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
11406         if not linking a shared library.
11407
11408 2013-02-22  Seth LaForge  <sethml@google.com>
11409
11410         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
11411
11412 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
11413
11414         * config/arm/arm.md (split for extendsidi): Update condition.
11415         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
11416         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
11417         (qhs_zextenddi_cstr): Likewise.
11418
11419 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
11420
11421         PR middle-end/56420
11422         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
11423         avoid signed wrapping.
11424         (expand_mult): Handle properly multiplication by
11425         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
11426         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
11427         in the compiler if coeff is HOST_WIDE_INT_MIN.
11428         (expand_divmod): Don't make ext_op1 static, change it's type to
11429         uhwi.  Avoid undefined behavior in -INTVAL (op1).
11430
11431         PR rtl-optimization/50339
11432         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
11433         field.
11434         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
11435         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
11436         into splitting_ashiftrt field.
11437         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
11438         ASHIFTRT.
11439         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
11440         choices.
11441
11442 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
11443
11444         PR middle-end/56108
11445         * trans-mem.c (execute_tm_mark): Do not expand transactions that
11446         are sure to go irrevocable.
11447
11448 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
11449
11450         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
11451         scalars are valid operands.
11452
11453 2013-02-21  Martin Jambor  <mjambor@suse.cz>
11454
11455         PR tree-optimization/56310
11456         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
11457         only matching indices and non-negative final offsets.
11458         (intersect_aggregates_with_edge): Pass src_idx to
11459         agg_replacements_to_vector.  Pass src_idx insstead of index to
11460         intersect_with_agg_replacements.
11461
11462 2013-02-21  Martin Jambor  <mjambor@suse.cz>
11463
11464         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
11465         instead of hard-wired defaults.
11466
11467 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
11468
11469         * doc/invoke.texi (MIPS Options): Update documentation of the
11470         floating-point multiply-accumulate instruction restrictions.
11471
11472 2013-02-21  Kostya Serebryany  <kcc@google.com>
11473
11474         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
11475         asan_shadow_offset on x86_64 linux.
11476
11477 2013-02-21  Richard Biener  <rguenther@suse.de>
11478
11479         PR tree-optimization/56415
11480         Revert
11481         2013-02-11  Richard Biener  <rguenther@suse.de>
11482
11483         PR tree-optimization/56273
11484         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
11485         first VRP run.
11486
11487 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
11488
11489         PR bootstrap/56258
11490         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
11491         instead of @itemx.
11492
11493         PR inline-asm/56405
11494         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
11495         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
11496
11497 2013-02-20  Jan Hubicka  <jh@suse.cz>
11498
11499         PR tree-optimization/56265
11500         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
11501         when target is referenced for first time.
11502
11503 2013-02-20  Richard Biener  <rguenther@suse.de>
11504
11505         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
11506         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
11507         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
11508         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
11509         not return anything.
11510         (rename_ssa_copies): Do not remove unused locals.
11511         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
11512         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
11513         * passes.c (execute_function_todo): Do not schedule unused locals
11514         removal if cleanup_tree_cfg did something.
11515         * tree-ssa-live.c (remove_unused_locals): Dump statistics
11516         about the number of removed locals.
11517
11518 2013-02-20  Richard Biener  <rguenther@suse.de>
11519
11520         PR tree-optimization/56398
11521         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
11522
11523 2013-02-20  Martin Jambor  <mjambor@suse.cz>
11524
11525         PR tree-optimization/55334
11526         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
11527         restricted pointers to arrays.
11528
11529 2013-02-20  Richard Biener  <rguenther@suse.de>
11530             Jakub Jelinek  <jakub@redhat.com>
11531
11532         PR tree-optimization/56396
11533         * tree-ssa-ccp.c (n_const_val): New static variable.
11534         (get_value): Return NULL for SSA names we don't have a lattice
11535         entry for.
11536         (ccp_initialize): Initialize n_const_val.
11537         * tree-ssa-copy.c (n_copy_of): New static variable.
11538         (init_copy_prop): Initialize n_copy_of.
11539         (get_value): Return NULL_TREE for SSA names we don't have a
11540         lattice entry for.
11541
11542 2013-02-20  Martin Jambor  <mjambor@suse.cz>
11543
11544         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
11545
11546 2013-02-20  Richard Biener  <rguenther@suse.de>
11547
11548         * genpreds.c (write_lookup_constraint): Do not compare first
11549         letter of the constraint again.
11550
11551 2013-02-20  Richard Biener  <rguenther@suse.de>
11552
11553         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
11554         and ceil_log2.
11555         (get_use_iv_cost): Terminate hashtable walk when coming across
11556         an empty entry.
11557
11558 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
11559
11560         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
11561         reassociation for avx2 targets.
11562
11563 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11564
11565         * config/microblaze/microblaze.c: microblaze_has_clz = 0
11566         Add version check for v8.10.a to enable microblaze_has_clz
11567         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
11568         version and TARGET_PATTERN_COMPARE check
11569         * config/microblaze/microblaze.md: New clzsi2 instruction
11570
11571 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11572
11573         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
11574         function before branching.
11575
11576 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
11577
11578         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
11579         DUMP_INSN_RTX_UID.
11580         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
11581
11582 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
11583
11584         PR middle-end/55889
11585         * sel-sched.c: Include ira.h.
11586         (implicit_clobber_conflict_p): New function.
11587         (moveup_expr): Use it.
11588         * Makefile.in (sel-sched.o): Depend on ira.h.
11589
11590 2013-02-19  Richard Biener  <rguenther@suse.de>
11591
11592         PR tree-optimization/56384
11593         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
11594         (vn_hash_type): Split out from ...
11595         (vn_hash_constant_with_type): ... here.
11596         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
11597         (vn_phi_eq): Compare types from vn_phi_s structure.
11598         (vn_phi_lookup): Populate vn_phi_s type.
11599         (vn_phi_insert): Likewise.
11600
11601 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
11602
11603         PR tree-optimization/56350
11604         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
11605         if haven't found reduction or nested cycle operand, rather than
11606         asserting we must find it.
11607
11608         PR tree-optimization/56381
11609         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
11610         to fold_build3.
11611
11612 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
11613             Jakub Jelinek  <jakub@redhat.com>
11614
11615         PR target/52555
11616         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
11617         (swap_optab_enable): Same.
11618         (init_all_optabs): Use argument instead of global.
11619         * tree.h (struct tree_optimization_option): New field target_optabs.
11620         * expr.h (init_all_optabs): Add argument to prototype.
11621         (TREE_OPTIMIZATION_OPTABS): New.
11622         (save_optabs_if_changed): Protoize.
11623         * optabs.h: Declare this_fn_optabs.
11624         * optabs.c (save_optabs_if_changed): New.
11625         Declare this_fn_optabs.
11626         (init_optabs): Add argument to init_all_optabs() call.
11627         * function.c (invoke_set_current_function_hook): Handle per
11628         function optabs.
11629         * function.h (struct function): New field optabs.
11630         * config/mips/mips.c (mips_set_mips16_mode): Handle when
11631         optimization_current_node has changed.
11632         * target-globals.h (save_target_globals_default_opts): Protoize.
11633         * target-globals.c (save_target_globals_default_opts): New.
11634
11635 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11636
11637         PR target/56347
11638         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
11639         registers %fr12 and %fr12R as call used.
11640
11641         PR target/56214
11642         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
11643         and HImode, require all displacements to be an integer multiple of
11644         their mode size.
11645         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
11646         only allow QImode and HImode when reload is in progress and strict is
11647         true.  Likewise for symbolic addresses.  Use base14_operand to check
11648         displacements in REG+BASE addresses.
11649
11650 2013-02-18  Richard Biener  <rguenther@suse.de>
11651
11652         PR tree-optimization/56366
11653         * tree-vect-loop.c (get_initial_def_for_induction): Properly
11654         handle sign-conversion of outer-loop initial induction value.
11655
11656 2013-02-18  Richard Biener  <rguenther@suse.de>
11657
11658         PR middle-end/56349
11659         * cfghooks.c (merge_blocks): If we merge a latch into another
11660         block adjust references to it.
11661         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
11662         (verify_loop_structure): Verify that a recorded latch is in fact
11663         a latch.
11664
11665 2013-02-18  Richard Biener  <rguenther@suse.de>
11666
11667         PR tree-optimization/56321
11668         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
11669         order SSA name release and virtual operand unlinking.
11670
11671 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11672
11673         * config/microblaze/microblaze.md (save_stack_block): Define.
11674         (restore_stack_block): Likewise.
11675
11676 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11677
11678         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
11679         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
11680         * config/microblaze/microblaze.c (microblaze_option_override):
11681         Bail out early for PIC modes when target does not support PIC.
11682
11683 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11684
11685         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
11686         Replace with a microblaze version.
11687         (microblaze_trampoline_init): Adapt for microblaze.
11688         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
11689         microblaze.
11690
11691 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
11692             Dodji Seketeli  <dodji@redhat.com>
11693
11694         PR asan/56330
11695         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
11696         (instrument_mem_region_access): Do not forget to always put
11697         instrumentation of the of 'base' and 'base + len' in a "if (len !=
11698         0) statement, even for cases where either 'base' or 'base + len'
11699         are not instrumented -- because they have been previously
11700         instrumented.  Simplify the logic by putting all the statements
11701         instrument 'base + len' inside a sequence, and then insert that
11702         sequence right before the current insertion point.  Then, to
11703         instrument 'base + len', just get an iterator on that statement.
11704         And do not forget to update the pointer to iterator the function
11705         received as argument.
11706
11707 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
11708
11709         PR rtl-optimization/56348
11710         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
11711
11712 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
11713
11714         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
11715         (clean_graph_dump_file): Pass base to start_graph_dump.
11716
11717 2013-02-14  Richard Henderson  <rth@redhat.com>
11718
11719         PR target/55941
11720         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
11721
11722 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
11723
11724         * collect2-aix.h: Define F_LOADONLY.
11725
11726 2013-02-14  Richard Biener  <rguenther@suse.de>
11727
11728         PR lto/50494
11729         * varasm.c (output_constant_def_1): Get the decl representing
11730         the constant as argument.
11731         (output_constant_def): Wrap output_constant_def_1.
11732         (make_decl_rtl): Use output_constant_def_1 with the decl
11733         representing the constant.
11734         (build_constant_desc): Optionally re-use a decl already
11735         representing the constant.
11736         (tree_output_constant_def): Adjust.
11737
11738 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
11739
11740         Fix an asan crash
11741         * asan.c (instrument_builtin_call):  Really put the length of the
11742         second source argument into src1_len.
11743
11744 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
11745
11746         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
11747         argument.  If it is false, don't create edge from then_bb to
11748         fallthru_bb.
11749         (insert_if_then_before_iter): Pass true to it.
11750         (build_check_stmt): Pass false to it.
11751         (transform_statements): Flush hash table only on extended basic
11752         block boundaries, rather than at the beginning of every bb.
11753         Don't flush hash table on nonfreeing_call_p calls.
11754         * tree-flow.h (nonfreeing_call_p): New prototype.
11755         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
11756
11757 2013-02-13  David S. Miller  <davem@davemloft.net>
11758
11759         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
11760
11761 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
11762
11763         PR target/56184
11764         * ira.c (max_regno_before_ira): Move from ...
11765         (ira): ... here.
11766         (fix_reg_equiv_init): Use max_regno_before_ira instead of
11767         vec_safe_length.
11768
11769 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
11770
11771         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
11772
11773 2013-02-13  Richard Biener  <rguenther@suse.de>
11774
11775         PR lto/56295
11776         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
11777         globals in MEM_REFs.
11778
11779 2013-02-13  Richard Biener  <rguenther@suse.de>
11780
11781         * loop-init.c (loop_optimizer_init): Clear loop state when
11782         re-initializing preserved loops.
11783         * loop-unswitch.c (unswitch_single_loop): Return whether
11784         we unswitched the loop.  Do not verify loop state here.
11785         (unswitch_loops): When we unswitched a loop discover new loops.
11786
11787 2013-02-13  Kostya Serebryany  <kcc@google.com>
11788
11789         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
11790         on x86_64 linux.
11791         * sanitizer.def: Rename __asan_init to __asan_init_v1.
11792
11793 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
11794
11795         Avoid instrumenting duplicated memory access in the same basic block
11796         * Makefile.in (asan.o): Add new dependency on hash-table.h
11797         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
11798         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
11799         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
11800         (free_mem_ref_resources, has_mem_ref_been_instrumented)
11801         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
11802         (get_mem_ref_of_assignment): New functions.
11803         (get_mem_refs_of_builtin_call): Extract from
11804         instrument_builtin_call and tweak a little bit to make it fit with
11805         the new signature.
11806         (instrument_builtin_call): Use the new
11807         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
11808         of is_gimple_builtin_call.
11809         (instrument_derefs, instrument_mem_region_access): Insert the
11810         instrumented memory reference into the hash table.
11811         (maybe_instrument_assignment): Renamed instrument_assignment into
11812         this, and change it to advance the iterator when instrumentation
11813         actually happened and return true in that case.  This makes it
11814         homogeneous with maybe_instrument_assignment, and thus give a
11815         chance to callers to be more 'regular'.
11816         (transform_statements): Clear the memory reference hash table
11817         whenever we enter a new BB, when we cross a function call, or when
11818         we are done transforming statements.  Use
11819         maybe_instrument_assignment instead of instrumentation.  No more
11820         need to special case maybe_instrument_assignment and advance the
11821         iterator after calling it; it's now handled just like
11822         maybe_instrument_call.  Update comment.
11823
11824 2013-02-13  Richard Biener  <rguenther@suse.de>
11825
11826         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
11827         Fix loop discovery code.
11828
11829 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
11830
11831         PR inline-asm/56148
11832         * lra-constraints.c (process_alt_operands): Match early clobber
11833         operand with itself.  Check conflicts with earlyclobber only if
11834         the operand is not reloaded.  Prefer to reload conflicting operand
11835         if earlyclobber and matching operands are the same.
11836
11837 2013-02-12  Richard Biener  <rguenther@suse.de>
11838
11839         PR lto/56297
11840         * lto-streamer-out.c (write_symbol): Do not output symbols
11841         for hard register variables.
11842
11843 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
11844
11845         PR target/54222
11846         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
11847         (umulsidi3_insn, mulsidi3_insn): New insns.
11848
11849 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
11850
11851         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
11852         (struct tune_params): Add vec_costs field.
11853         * config/arm/arm.c (arm_builtin_vectorization_cost)
11854         (arm_add_stmt_cost): New functions.
11855         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
11856         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
11857         (arm_default_vec_cost): New struct of type cpu_vec_costs.
11858         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
11859         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
11860         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
11861         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
11862
11863 2013-02-12  Richard Biener  <rguenther@suse.de>
11864
11865         PR lto/56295
11866         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
11867         decls again if possible.
11868
11869 2013-02-12  Richard Biener  <rguenther@suse.de>
11870
11871         PR middle-end/56288
11872         * tree-ssa.c (verify_ssa_name): Fix check, move
11873         SSA_NAME_IN_FREE_LIST check up.
11874
11875 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
11876             Steven Bosscher   <steven@gcc.gnu.org>
11877
11878         PR rtl-optimization/56151
11879         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
11880         equal to op0 or op1, and last_insn pattern is CODE operation
11881         with MEM dest and one of the operands matches that MEM.
11882
11883 2013-02-11  Sriraman Tallam  <tmsriramgoogle.com>
11884
11885         * doc/extend.texi: Document Function Multiversioning and "default"
11886         parameter string to target attribute.
11887         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
11888         target attribute parameter is "default".
11889         (ix86_compare_version_priority): Remove checks for target attribute.
11890         (ix86_mangle_function_version_assembler_name): Change error to sorry.
11891         Remove check for target attribute equal to NULL. Add assert.
11892         (ix86_generate_version_dispatcher_body): Change error to sorry.
11893
11894 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
11895             Jack Howarth  <howarth@bromo.med.uc.edu>
11896             Patrick Marlier  <patrick.marlier@gmail.com>
11897
11898         PR libitm/55693
11899         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
11900         define ENDFILE_SPEC as TM_DESTRUCTOR.
11901         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
11902
11903 2013-02-11  Alexander Potapenko  <glider@google.com>
11904             Jack Howarth  <howarth@bromo.med.uc.edu>
11905             Jakub Jelinek  <jakub@redhat.com>
11906
11907         PR sanitizer/55617
11908         * config/darwin.c (cdtor_record): Rename ctor_record.
11909         (sort_cdtor_records): Rename sort_ctor_records.
11910         (finalize_dtors): New routine to sort destructors by
11911         priority before use in assemble_integer.
11912         (machopic_asm_out_destructor): Use finalize_dtors if needed.
11913
11914 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
11915
11916         PR rtl-optimization/56275
11917         * simplify-rtx.c (avoid_constant_pool_reference): Check that
11918         offset is non-negative and less than cmode size before
11919         calling simplify_subreg.
11920
11921 2013-02-11  Richard Biener  <rguenther@suse.de>
11922
11923         PR tree-optimization/56264
11924         * cfgloop.h (fix_loop_structure): Adjust prototype.
11925         * loop-init.c (fix_loop_structure): Return the number of
11926         newly discovered loops.
11927         * tree-cfgcleanup.c (repair_loop_structures): When new loops
11928         are discovered, do a full loop-closed SSA rewrite.
11929
11930 2013-02-11  Richard Biener  <rguenther@suse.de>
11931
11932         PR tree-optimization/56273
11933         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
11934         first VRP run.
11935         (check_array_ref): Fix missing newline in dumps.
11936         (search_for_addr_array): Likewise.
11937
11938 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
11939
11940         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
11941
11942 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
11943
11944         PR target/56256
11945         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
11946
11947 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
11948
11949         PR rtl-optimization/56246
11950         * lra-constraints.c (simplify_operand_subreg): Try to reuse
11951         reload pseudo.
11952         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
11953         constraints are satisfied.
11954
11955 2013-02-08  Jeff Law  <law@redhat.com>
11956
11957         PR debug/53948
11958         * emit-rtl.c (reg_is_parm_p): New function.
11959         * regs.h (reg_is_parm_p): New prototype.
11960         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
11961         callee-clobbered registers.
11962
11963 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
11964
11965         PR target/56043
11966         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
11967         If there is no implicit builtin declaration, just return NULL.
11968
11969 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
11970
11971         * config/i386/sse.md (FMAMODEM): New mode iterator.
11972         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
11973         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
11974
11975 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
11976
11977         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
11978         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
11979         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
11980
11981 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11982
11983         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
11984         (microblaze*-*-elf): Likewise.
11985         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
11986         LINK_SPEC.
11987         * config/microblaze/microblaze-c.c: Add builtin defines for
11988         _LITTLE_ENDIAN and _BIG_ENDIAN.
11989         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
11990         add to TARGET_DEFAULT flags.
11991         Expand ASM_SPEC and LINK_SPEC.
11992         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
11993         * config/microblaze/microblaze.md: Update extendsidi2 and
11994         movdi_internal instructions to use low-order / high-order reg
11995         print_operands.
11996         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
11997         options and inversemask / mask of LITTLE_ENDIAN.
11998         * config/microblaze/t-microblaze: Expand multilib options to
11999         include mlittle-endian (le) and update exceptions patterns.
12000
12001 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
12002
12003         PR rtl-optimization/56195
12004         * lra-constraints.c (get_reload_reg): Don't reuse regs
12005         if they have smaller mode than requested, if they have
12006         wider mode than requested, try to return a SUBREG.
12007
12008         PR tree-optimization/56250
12009         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
12010         if type is unsigned and code isn't MULT_EXPR.
12011
12012 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
12013
12014         PR tree-optimization/56064
12015         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
12016         bits according to mode.
12017         * fixed-value.h (fixed_from_double_int)
12018         (const_fixed_from_double_int): Adjust comments.
12019
12020 2013-02-08  Richard Biener  <rguenther@suse.de>
12021
12022         PR lto/56231
12023         * lto-streamer.h (struct data_in): Remove current_file, current_line
12024         and current_col members.
12025         * lto-streamer-out.c (lto_output_location): Stream changed bits
12026         en-block for efficiency.
12027         * lto-streamer-in.c (clear_line_info): Remove.
12028         (lto_input_location): Cache current file, line and column
12029         globally via local statics.  Read changed bits en-block.
12030         (input_function): Do not call clear_line_info.
12031         (lto_read_body): Likewise.
12032         (lto_input_toplevel_asms): Likewise.
12033
12034 2013-02-08  Michael Matz  <matz@suse.de>
12035
12036         PR tree-optimization/52448
12037         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
12038         (nt_call_phase): New static.
12039         (add_or_mark_expr): Only mark accesses with newer phase than any
12040         call seen.
12041         (nonfreeing_call_p): New.
12042         (nt_init_block): Update nt_call_phase, mark blocks as visited.
12043         (nt_fini_block): Keep blocks marked as visited.
12044         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
12045
12046 2013-02-08  Richard Biener  <rguenther@suse.de>
12047
12048         * ira.c (ira): Free broken dominator information.
12049
12050 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
12051
12052         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
12053
12054 2013-02-08  Marek Polacek  <polacek@redhat.com>
12055
12056         * cfgloop.c (verify_loop_structure): Add more checking of headers.
12057
12058 2013-02-08  Richard Biener  <rguenther@suse.de>
12059
12060         PR middle-end/56181
12061         * cfgloop.h (flow_loops_find): Adjust.
12062         (bb_loop_header_p): Declare.
12063         * cfgloop.c (bb_loop_header_p): New function split out from ...
12064         (flow_loops_find): ... here.  Adjust function signature,
12065         support incremental loop structure update.
12066         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
12067         * cfgloopmanip.c (fix_loop_structure): Move ...
12068         * loop-init.c (fix_loop_structure): ... here.
12069         (apply_loop_flags): Split out from ...
12070         (loop_optimizer_init): ... here.
12071         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
12072         in incremental mode, only remove dead loops here.
12073
12074 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
12075
12076         PR target/54222
12077         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
12078         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
12079         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
12080         (*round<mode>3.libgcc): New insns for fixed-modes.
12081         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
12082         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
12083         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
12084         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
12085         implementations.  Define to __builtin_avr_absFX,
12086         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
12087         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
12088         __builtin_avr_countlsFX, respectively.
12089         * config/avr/avr-c.c (target.h): Include it.
12090         (enum avr_builtin_id): New enum.
12091         (avr_resolve_overloaded_builtin): New static function.
12092         (avr_register_target_pragmas): Use it to set
12093         targetm.resolve_overloaded_builtin.
12094         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
12095         tree nodes used by DEF_BUILTIN.
12096         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
12097         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
12098         <AVR_BUILTIN_xxBITS>: Same.
12099
12100 2013-02-08  Richard Biener  <rguenther@suse.de>
12101
12102         * cfgloop.c (verify_loop_structure): Properly handle
12103         a loop exiting to another loop header.
12104         * ira-int.h (ira_loops): Remove.
12105         * ira.c (ira_loops): Remove.
12106         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
12107         (do_reload): Use loop_optimizer_finalize.
12108         * ira-build.c (create_loop_tree_nodes): Use get_loops and
12109         number_of_loops to access the loop tree.
12110         (more_one_region_p): Likewise.
12111         (finish_loop_tree_nodes): Likewise.
12112         (rebuild_regno_allocno_maps): Likewise.
12113         (mark_loops_for_removal): Likewise.
12114         (mark_all_loops_for_removal): Likewise.
12115         (remove_unnecessary_regions): Likewise.
12116         (ira_build): Likewise.
12117         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
12118
12119 2013-02-08  Richard Biener  <rguenther@suse.de>
12120
12121         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
12122         * ipa-pure-const.c (analyze_function): Avoid calling
12123         mark_irreducible_loops twice.
12124         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
12125
12126 2013-02-07  David S. Miller  <davem@davemloft.net>
12127
12128         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
12129         on 'reg'.
12130         * var-tracking.c (vt_add_function_parameter): Test the presence of
12131         HAVE_window_save properly and do not remap argument registers when
12132         we have a leaf function.
12133
12134 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
12135
12136         PR bootstrap/56227
12137         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
12138         instead of "ll".
12139         * config/i386/i386.c (ix86_print_operand): Ditto.
12140
12141 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
12142
12143         * lra-constraints.c (process_alt_operands): Fix recently added comment.
12144
12145 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
12146
12147         PR rtl-optimization/56225
12148         * lra-constraints.c (process_alt_operands): Check that reload hard
12149         reg can hold value for strict_low_part.
12150
12151 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
12152
12153         PR debug/56154
12154         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
12155         dwarf2out_end_function.
12156         (in_first_function_p, maybe_at_text_label_p,
12157         first_loclabel_num_not_at_text_label): New variables.
12158         (dwarf2out_var_location): In the first function find out
12159         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
12160         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
12161         functions.
12162
12163 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
12164
12165         PR rtl-optimization/56178
12166         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
12167         SUBREG of a register.  Tidy up related block of code.
12168         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
12169         note if the source is a register or a SUBREG of a register.
12170
12171 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
12172
12173         PR target/56228
12174         * config/rs6000/rs6000.md (ptrm): New mode attr.
12175         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
12176         call_value_indirect_aix<pttrsize>,
12177         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
12178         m in constraints.
12179
12180 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
12181
12182         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
12183         if -bnortl. Convert to strcmp and strncmp.
12184
12185 2013-02-07  Alan Modra  <amodra@gmail.com>
12186
12187         PR target/54009
12188         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
12189         addresses won't wrap when offsetting.
12190         (rs6000_secondary_reload): Provide secondary reloads needed for
12191         wrapping LO_SUM addresses.
12192
12193 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
12194
12195         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
12196         MACH, just __MACH__.
12197
12198 2013-02-06  Richard Biener  <rguenther@suse.de>
12199
12200         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
12201         instead of calling fix_loop_structure.
12202
12203 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
12204
12205         PR middle-end/56217
12206         * omp-low.c (use_pointer_for_field): Return false if
12207         lower_send_shared_vars doesn't generate any copy-out code.
12208
12209 2013-02-06  Tom de Vries  <tom@codesourcery.com>
12210
12211         PR rtl-optimization/56131
12212         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
12213         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
12214         of the label is NULL.  Add comment.
12215
12216 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
12217
12218         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
12219
12220         PR sanitizer/55374
12221         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
12222         (STATIC_LIBTSAN_LIBS): Likewise.
12223         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
12224         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
12225         is defined, don't add anything else beyond that.
12226         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
12227         (LINK_COMMAND_SPEC): Use them.
12228
12229         PR tree-optimization/56205
12230         * tree-stdarg.c (check_all_va_list_escapes): Return true if
12231         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
12232         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
12233
12234 2013-02-05  Richard Biener  <rguenther@suse.de>
12235
12236         PR tree-optimization/53342
12237         PR tree-optimization/53185
12238         * tree-vectorizer.h (vect_check_strided_load): Remove.
12239         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
12240         not disallow peeling for vectorized strided loads.
12241         (vect_check_strided_load): Make static and simplify.
12242         (vect_analyze_data_refs): Adjust.
12243         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
12244         correctly when vectorizing strided loads.
12245
12246 2013-02-05  Richard Biener  <rguenther@suse.de>
12247
12248         * doc/install.texi: Refer to ISL, not PPL.
12249
12250 2013-02-05  Jan Hubicka  <jh@suse.cz>
12251
12252         PR tree-optimization/55789
12253         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
12254
12255 2013-02-05  Jan Hubicka  <jh@suse.cz>
12256
12257         PR tree-optimization/55789
12258         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
12259         the dead call anyway.
12260
12261 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
12262
12263         PR sanitizer/55374
12264         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
12265
12266 2013-02-04  Alexander Potapenko  <glider@google.com>
12267             Jack Howarth  <howarth@bromo.med.uc.edu>
12268             Jakub Jelinek  <jakub@redhat.com>
12269
12270         PR sanitizer/55617
12271         * config/darwin.c (sort_ctor_records): Stabilized qsort
12272         on constructor priority by using original position.
12273         (finalize_ctors): New routine to sort constructors by
12274         priority before use in assemble_integer.
12275         (machopic_asm_out_constructor): Use finalize_ctors if needed.
12276
12277 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
12278
12279         PR libstdc++/54314
12280         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
12281         about visibility on artificial decls.
12282         * config/sol2.c (solaris_assemble_visibility): Likewise.
12283
12284 2013-02-04  Kai Tietz  <ktietz@redhat.com>
12285
12286         PR target/56186
12287         * config/i386/i386.c (function_value_ms_64): Add additional valtype
12288         argument and improve checking of return-argument types for 16-byte
12289         modes.
12290         (ix86_function_value_1): Add additional valtype argument on call
12291         of function_value_64.
12292         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
12293         handling infunction_value_64 function.
12294
12295 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
12296
12297         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
12298
12299 2013-02-04  Richard Biener  <rguenther@suse.de>
12300
12301         PR tree-optimization/56188
12302         * tree-ssa-structalias.c (label_visit): Consider case with
12303         initially non-empty points-to set.
12304         (perform_var_substitution): Dump node mapping and clean up.
12305
12306 2013-02-04  Richard Guenther  <rguenther@suse.de>
12307
12308         PR lto/56168
12309         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
12310         node prevail as last resort.
12311         (lto_symtab_merge_decls): Remove guard on LTRANS here.
12312         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
12313
12314 2013-02-04  Richard Biener  <rguenther@suse.de>
12315
12316         PR tree-optimization/56113
12317         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
12318         Merge into ...
12319         (equiv_class_lookup_or_add): ... this.
12320         (label_visit): Adjust and fix error in previous patch.
12321         (perform_var_substitution): Adjust.
12322
12323 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
12324
12325         * config/sh/divtab.c: Fix formatting and comments throughout the file.
12326         * config/sh/sh4-300.md: Likewise.
12327         * config/sh/sh4a.md: Likewise.
12328         * config/sh/constraints.md: Likewise.
12329         * config/sh/sh.md: Likewise.
12330         * config/sh/netbsd-elf.h: Likewise.
12331         * config/sh/predicates.md: Likewise.
12332         * config/sh/sh-protos.h: Likewise.
12333         * config/sh/ushmedia.h: Likewise.
12334         * config/sh/linux.h: Likewise.
12335         * config/sh/sh.c: Likewise.
12336         * config/sh/superh.h: Likewise.
12337         * config/sh/elf.h: Likewise.
12338         * config/sh/sh4.md: Likewise.
12339         * config/sh/sh.h: Likewise.
12340
12341 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12342
12343         * config/pa/constraints.md: Adjust unused letters.  Change "T"
12344         constraint to match_test floating_point_store_memory_operand().
12345         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
12346         (base14_operand): New.
12347         (floating_point_store_memory_operand): New.
12348         (integer_store_memory_operand): Revise to use base14_operand and
12349         reg_plus_base_memory_operand.
12350         (move_dest_operand): Allow symbolic_memory_operands.
12351         (symbolic_memory_operand): Check for LO_SOM.
12352         (symbolic_operand): Change default case to break.
12353         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
12354         CONST_DOUBLE values to be reloaded by putting them into memory when
12355         the destination is a floating point register.
12356         (movdf): Remove code to handle CONST_DOUBLE.
12357         (movsf): Likewise.
12358         (reload_indf_r1): New.
12359         (reload_insf_r1): New.
12360         Consistently use "Q" and "T" constraints with integer and floating
12361         point move instructions, respectively.
12362         (movdi): Remove FAIL.
12363         Change predicate for source operand unamed DImode move from
12364         general_operand to move_src_operand.
12365         (umulsidi3): Change predicate for destination operand to
12366         register_operand.
12367         Likewise for similar unamed patterns.
12368         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
12369         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
12370         (hppa_legitimize_address): Simplify mask calculation.
12371         (pa_emit_move_sequence): Revised handling of secondary reloads from
12372         REG+D addresses for floating point loads and stores.  Directly handle
12373         loading CONST0_RTX (mode) to a floating point register.
12374         (pa_secondary_reload): Handle reloading DF and SFmode constant values
12375         to floating point registers.  Don't restrict secondary reloads to
12376         floating point registers to integer modes.  Revise some comments and
12377         cleanup some code.
12378         (TARGET_LEGITIMATE_ADDRESS_P): Define.
12379         (pa_legitimate_address_p): New.
12380         (pa_legitimize_reload_address): New.
12381         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
12382         (STRICT_REG_OK_FOR_BASE_P): New.
12383         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
12384         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
12385
12386 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
12387             Andrew Dixie  <andrewd@gentrack.com>
12388
12389         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
12390         flag set.
12391
12392 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
12393
12394         * expmed.c (extract_bit_field_1): Pass the full width of the
12395         structure to get_best_reg_extraction_insn.
12396
12397 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
12398
12399         PR target/54601
12400         * configure.ac (use_cxa_atexit): Add AIX.
12401         * configure: Regenerate.
12402
12403         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
12404
12405 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
12406
12407         PR debug/54793
12408         * final.c (need_profile_function): New variable.
12409         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
12410         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
12411         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
12412         notes, targetm.asm_out.function_prologue doesn't emit anything,
12413         HAVE_prologue and profiler should be emitted before prologue,
12414         set need_profile_function instead of emitting it.
12415         (final_scan_insn): If need_profile_function, emit
12416         profile_function on the first NOTE_INSN_BASIC_BLOCK or
12417         NOTE_INSN_FUNCTION_BEG note.
12418
12419 2013-02-01  Richard Henderson  <rth@redhat.com>
12420
12421         * config/rs6000/rs6000.md (smulditi3): New.
12422         (umulditi3): New.
12423
12424         * config/alpha/alpha.md (umulditi3): New.
12425
12426 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
12427
12428         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
12429         (ASM_OUTPUT_ALIGNED_LOCAL): New.
12430
12431 2013-02-01  Richard Biener  <rguenther@suse.de>
12432
12433         PR tree-optimization/56113
12434         * tree-ssa-structalias.c (label_visit): Reduce work for
12435         single-predecessor nodes.
12436
12437 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
12438
12439         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
12440         range isn't testing for zero.
12441
12442 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
12443
12444         PR middle-end/56113
12445         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
12446
12447 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
12448             Nick Clifton  <nickc@redhat.com>
12449
12450         * config/v850/constraints.md (Q): Define as a memory constraint.
12451         * config/v850/predicates.md (label_ref_operand): New predicate.
12452         (e3v5_shift_operand): New predicate.
12453         (ior_operator): New predicate.
12454         * config/v850/t-v850: Add e3v5 multilib.
12455         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
12456         (v850_gen_movdi): Prototype.
12457         * config/v850/v850.c: Add support for e3v5 architecture.
12458         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
12459         TARGET_V850E_UP.
12460         (construct_save_jarl): Add e3v5 long JARL support.
12461         (v850_adjust_insn_length): New function.  Adjust length of call
12462         insns when using e3v5 instructions.
12463         (v850_gen_movdi): New function: Generate instructions to move a
12464         DImode value.
12465         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
12466         (CPP_SPEC): Define __v850e3v5__ as appropriate.
12467         (TARGET_USE_FPU): Enable for e3v5.
12468         (CONST_OK_FOR_W): New macro.
12469         (ADJUST_INSN_LENGTH): Define.
12470         * config/v850/v850.md (UNSPEC_LOOP): Define.
12471         (attr cpu): Add v850e3v5.
12472         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
12473         (movdi): New pattern.
12474         (movdi_internal): New pattern.
12475         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
12476         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
12477         (cstoresf4): Likewise.
12478         (cstoredf4): Likewise.
12479         (insv): New pattern.
12480         (rotlso3_a): New pattern.
12481         (rotlsi3_b): New pattern
12482         (rotlsi3_v850e3v5): New pattern.
12483         (doloop_begin): New pattern.
12484         (fix_loop_counter): New pattern.
12485         (doloop_end): New pattern.
12486         (branch_normal): Add e3v5 long branch support.
12487         (branch_invert): Likewise.
12488         (branch_z_normal): Likewise.
12489         (branch_z_invert): Likewise.
12490         (branch_nz_normal): Likewise.
12491         (branch_nz_invert): Likewise.
12492         (call_internal_short): Add e3v5 register-indirect JARL support.
12493         (call_internal_long): Likewise.
12494         (call_value_internal_short): Likewise.
12495         (call_value_internal_long): Likewise.
12496         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
12497         (mloop): New option.
12498         * config.gcc: Add support for configuring v840e3v5 target.
12499         * doc/invoke.texi: Document new v850 specific command line options.
12500
12501 2013-01-31  Paul Koning  <ni1d@arrl.net>
12502
12503         PR debug/55059
12504         PR debug/54508
12505         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
12506         children if parent is a class.
12507         (prune_unused_types_prune): Don't add DW_AT_declaration.
12508
12509 2013-01-31  Richard Biener  <rguenther@suse.de>
12510
12511         PR tree-optimization/56157
12512         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
12513         match up operand with SLP child.
12514
12515 2013-01-31  Jason Merrill  <jason@redhat.com>
12516
12517         PR debug/54410
12518         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
12519         parameters the first time.
12520         (gen_scheduled_generic_parms_dies): Check completeness here.
12521
12522 2013-01-31  Richard Biener  <rguenther@suse.de>
12523
12524         PR middle-end/53073
12525         * common.opt (faggressive-loop-optimizations): New flag,
12526         enabled by default.
12527         * doc/invoke.texi (faggressive-loop-optimizations): Document.
12528         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
12529         infer_loop_bounds_from_undefined by it.
12530
12531 2013-01-31  Richard Biener  <rguenther@suse.de>
12532
12533         PR tree-optimization/56150
12534         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
12535         visit virtual operands.
12536         (find_uses_to_rename_bb): Likewise.
12537
12538 2013-01-31  Richard Biener  <rguenther@suse.de>
12539
12540         PR tree-optimization/56150
12541         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
12542         mixed store non-store stmts.
12543
12544 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
12545
12546         PR sanitizer/55374
12547         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
12548         LIBASAN_EARLY_SPEC is defined.
12549         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
12550         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
12551         before %o.
12552         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
12553
12554         PR c++/55742
12555         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
12556         invalid args instead of ICEing on it.
12557         (ix86_valid_target_attribute_tree): Return error_mark_node if
12558         ix86_valid_target_attribute_inner_p failed.
12559         (ix86_valid_target_attribute_p): Return false only if
12560         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
12561         target("default") attribute.
12562         (sorted_attr_string): Change argument from const char * to tree,
12563         merge in all target attribute arguments rather than just one.
12564         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
12565         instead of free.  Avoid using strcat.
12566         (ix86_mangle_function_version_assembler_name): Mangle
12567         target("default") as if no target attribute is present.  Adjust
12568         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
12569         instead of xmalloc and XDELETEVEC instead of free.
12570         (ix86_function_versions): Don't return true if one of the decls
12571         doesn't have target attribute.  If they don't and one of the decls
12572         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
12573         sorted_attr_string caller.  Use XDELETEVEC instead of free.
12574         (ix86_supports_function_versions): Remove.
12575         (make_name): Fix up formatting.
12576         (make_dispatcher_decl): Remove resolver_name and its initialization.
12577         Avoid leaking memory.
12578         (is_function_default_version): Return true if there is
12579         target("default") attribute rather than no target attribute at all.
12580         (make_resolver_func): Avoid leaking memory.
12581         (ix86_generate_version_dispatcher_body): Likewise.
12582         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
12583         * target.def (supports_function_versions): Remove.
12584         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
12585         * doc/tm.texi: Regenerated.
12586
12587 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
12588
12589         PR rtl-optimization/56144
12590         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
12591         for values with side effects.
12592
12593 2013-01-30  Richard Biener  <rguenther@suse.de>
12594
12595         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
12596         (sparseset_pop): Likewise.
12597         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
12598         to be able to use quick_push in the worker loop.
12599
12600 2013-01-30  Marek Polacek  <polacek@redhat.com>
12601
12602         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
12603
12604 2013-01-30  Richard Biener  <rguenther@suse.de>
12605
12606         PR lto/56147
12607         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
12608
12609 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
12610
12611         PR tree-optimization/56064
12612         * fixed-value.c (fixed_from_double_int): New function.
12613         * fixed-value.h (fixed_from_double_int): New prototype.
12614         (const_fixed_from_double_int): New static inline function.
12615         * fold-const.c (native_interpret_fixed): New static function.
12616         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
12617         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
12618         (native_encode_fixed): New static function.
12619         (native_encode_expr) <FIXED_CST>: Use it.
12620         (native_interpret_int): Move double_int worker code to...
12621         * double-int.c (double_int::from_buffer): ...this new static method.
12622         * double-int.h (double_int::from_buffer): Prototype it.
12623
12624 2013-01-30  Richard Biener  <rguenther@suse.de>
12625
12626         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
12627         New pointer-map and obstack.
12628         (init_alias_vars): Allocate pointer-map and obstack.
12629         (delete_points_to_sets): Free them.
12630         (find_what_var_points_to): Cache result.
12631         (find_what_p_points_to): Adjust for changed interface of
12632         find_what_var_points_to.
12633         (compute_points_to_sets): Likewise.
12634         (ipa_pta_execute): Likewise.
12635
12636 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12637
12638         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
12639         * configure: Regenerate.
12640         * config.in: Regenerate.
12641         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
12642         #nobits/#progbits if supported.
12643
12644 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
12645
12646         PR target/56121
12647         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
12648         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
12649         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
12650
12651 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
12652
12653         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
12654         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
12655
12656 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
12657
12658         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
12659         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
12660
12661 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
12662
12663         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
12664         declaration.
12665         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
12666         * config/arm/cortex-a7.md: New bypasses using
12667         arm_mac_accumulator_is_result.
12668
12669 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
12670
12671         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
12672         (cortex_a7_neon_mla): Likewise.
12673         (cortex_a7_fpfmad): New reservation.
12674         (cortex_a7_fpmacs): Use ffmas and update required units.
12675         (cortex_a7_fpmuld): Update required units and latency.
12676         (cortex_a7_fpmacd): Likewise.
12677         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
12678         (cortex_a7_neon). Likewise.
12679         (bypass) Update participating units.
12680
12681 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
12682
12683         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
12684         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
12685         from fmac to ffma.
12686         * config/arm/vfp11.md (vfp_farith): Use ffmas.
12687         (vfp_fmul): Use ffmad.
12688         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
12689         (cortex_r4_fmacd): Use ffmad.
12690         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
12691         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
12692         (cortex_a9_fmacd): Use ffmad.
12693         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
12694         (cortex_a8_vfp_macd): Use ffmad.
12695         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
12696         (cortex_a5_fpmacd): Use ffmad.
12697         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
12698         (cortex_a15_vfp_macd): Use ffmad.
12699         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
12700
12701 2013-01-29  Jason Merrill  <jason@redhat.com>
12702
12703         PR libstdc++/54314
12704         * varasm.c (default_assemble_visibility): Don't warn about
12705         visibility on artificial decls.
12706
12707 2013-01-29  Richard Biener  <rguenther@suse.de>
12708
12709         PR tree-optimization/56113
12710         * tree-ssa-structalias.c (equiv_class_lookup): Also return
12711         the bitmap leader.
12712         (label_visit): Free duplicate bitmaps and record the leader instead.
12713         (perform_var_substitution): Adjust.
12714
12715 2013-01-29  Richard Biener  <rguenther@suse.de>
12716
12717         PR tree-optimization/55270
12718         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
12719         the CFG, schedule loops for fixup.
12720
12721 2013-01-29  Nick Clifton  <nickc@redhat.com>
12722
12723         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
12724         SP_REG.
12725
12726 2013-01-28  Leif Ekblad  <leif@rdos.net>
12727
12728         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
12729         * config/i386/i386.h (TARGET_RDOS): New macro.
12730         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
12731         * config/i386/i386.c (ix86_option_override_internal): For 64bit
12732         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
12733         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
12734         DEFAULT_LARGE_SECTION_THRESHOLD.
12735         * config/i386/i386.md (R14_REG, R15_REG): New constants.
12736         * config/i386/rdos.h: New file.
12737         * config/i386/rdos64.h: New file.
12738
12739 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
12740
12741         PR other/54814
12742         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
12743         TEST_HARD_REG_BIT.
12744
12745 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
12746
12747         PR rtl-optimization/56117
12748         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
12749         call cselib_lookup_from_insn on the MEM before calling
12750         add_insn_mem_dependence.
12751
12752 2013-01-28  Richard Biener  <rguenther@suse.de>
12753
12754         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
12755         to a stmt that didn't have one.
12756         (copy_phis_for_bb): Likewise for PHI arguments.
12757         (copy_debug_stmt): Likewise for debug stmts.
12758
12759 2013-01-28  Richard Biener  <rguenther@suse.de>
12760
12761         PR tree-optimization/56034
12762         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
12763         (partition_builtin_p): Adjust.
12764         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
12765         it is the last partition.
12766         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
12767         up the vertex for the definition.
12768         (classify_partition): Classify whether a partition is a
12769         PKIND_REDUCTION, thus has uses outside of the loop.
12770         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
12771         Merge all PKIND_REDUCTION partitions into the last partition.
12772         (tree_loop_distribution): Seed partitions from reductions as well.
12773
12774 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
12775
12776         PR tree-optimization/56125
12777         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
12778         pow(x,c) into sqrt(x) * powi(x, n/2) or
12779         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
12780         optimizing for size.
12781         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
12782         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
12783         integer.
12784
12785         PR tree-optimization/56094
12786         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
12787         to UNKNOWN_LOCATION while gimplifying expr.
12788
12789 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
12790
12791         PR target/56114
12792         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
12793         operand 0 in movabs insn template for -masm=intel asm alternative.
12794         (*movabs<mode>_2): Ditto for operand 1.
12795
12796 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
12797
12798         PR target/54663
12799         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
12800         of microblaze-c.o
12801
12802 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
12803
12804         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
12805         tm_file.
12806
12807 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
12808
12809         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
12810         Undef to avoid warning.
12811
12812 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
12813
12814         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
12815         * configure: Regenerate.
12816
12817 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
12818
12819         PR tree-optimization/56098
12820         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
12821         for stmts with volatile ops.
12822         (cond_store_replacement): Don't optimize if assign has volatile ops.
12823         (cond_if_else_store_replacement_1): Don't optimize if either
12824         then_assign or else_assign have volatile ops.
12825         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
12826         volatile ops.
12827
12828 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
12829
12830         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
12831
12832 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
12833
12834         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
12835         missing ':' in asm example.
12836
12837 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
12838
12839         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
12840         entries into lane and laneq entries.
12841         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
12842         Remove AdvSIMD scalar modes.
12843         (aarch64_sq<r>dmulh_laneq<mode>): New.
12844         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
12845         modes.
12846         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
12847         builtin implementations to relfect changes in RTL in aarch64-simd.md.
12848         * config/aarch64/iterators.md (VCOND): New.
12849         (VCONQ): New.
12850
12851 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
12852
12853         PR target/54222
12854         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
12855         Add NULL LIBNAME argument to existing definitions.
12856         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
12857         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
12858         * config/avr/avr.c (DEF_BUILTIN): Same.
12859         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
12860         (avr_expand_builtin): Expand to a vanilla call if a libgcc
12861         implementation is available (DECL_ASSEMBLER_NAME is set).
12862         (avr_fold_absfx): New static function.
12863         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
12864         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
12865         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
12866         AVR_BUILTIN_ABSLLK.
12867         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
12868         (abshk, absk, abslk, absllk): Provide as static inline functions.
12869
12870 2013-01-25  Marek Polacek  <polacek@redhat.com>
12871
12872         PR tree-optimization/56035
12873         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
12874
12875 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
12876
12877         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
12878         (*movtf_internal_rex64): Add (!o,C) alternative
12879         (*movxf_internal_rex64): Ditto.
12880         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
12881
12882 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
12883
12884         * doc/invoke.texi: fix typo.
12885         * doc/objc.texi: fix typo.
12886
12887 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
12888
12889         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
12890         for the first two alternatives.
12891
12892 2013-01-24  Diego Novillo  <dnovillo@google.com>
12893
12894         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
12895         (ggc-zone.o): Remove.
12896         * configure.ac: Remove option --with-gc.
12897         * configure: Re-generate.
12898         * doc/install.texi: Remove documentation for --with-gc.
12899         * gengtype.c (write_enum_defn): Remove.  Update all users.
12900         (write_Types_process_field): Remove generation of gt_e_* argument.
12901         (output_type_enum): Remove.  Update all users.
12902         (write_enum_defn): Remove.  Update all users.
12903         (enum alloc_zone): Remove.  Update all users.
12904         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
12905         * ggc-common.c (ggc_splay_alloc): Remove first argument.
12906         Update all callers.
12907         (struct ptr_data): Remove field TYPE.  Update all users.
12908         (gt_pch_note_object): Remove argument TYPE.  Update all users.
12909         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
12910         Update all users.
12911         * ggc-none.c (ggc_alloc_typed_stat): Remove.
12912         (struct alloc_zone): Remove.
12913         (ggc_internal_alloc_zone_stat): Remove.
12914         (ggc_internal_cleared_alloc_zone_stat): Remove.
12915         * ggc-page.c (ggc_alloc_typed_stat): Remove.
12916         (ggc_pch_count_object): Remove last argument.  Update all users.
12917         (ggc_pch_alloc_object): Remove last argument.  Update all users.
12918         (struct alloc_zone): Remove.
12919         * ggc-zone.c: Remove.
12920         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
12921         (struct alloc_zone): Remove.
12922         (ggc_alloc_typed_stat): Remove.
12923         (ggc_alloc_typed): Remove.
12924         (ggc_splay_alloc): Remove first argument.
12925         (rtl_zone): Remove.  Update all users.
12926         (tree_zone): Remove.  Update all users.
12927         (tree_id_zone): Remove.  Update all users.
12928         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
12929         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
12930         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
12931         * tree-ssanames.c: Remove references to zone allocator in comments.
12932
12933 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
12934
12935         * config/avr/avr.c (avr_out_fract): Make register numbers that
12936         might be outside of source operand signed.
12937
12938 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
12939
12940         * config/i386/constraints.md (Yf): New constraint.
12941         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
12942         of f constraint to conditionaly disable x87 register preferences.
12943         (*movdf_internal): Ditto.
12944         (*movsf_internal): Ditto.
12945
12946 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
12947
12948         PR inline-asm/55934
12949         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
12950         that have operands with impossible constraints.
12951         Add a FIXME for a speed-up opportunity.
12952         * lra-constraints.c (process_alt_operands): Verify that a class
12953         selected from constraints on asms is valid for the operand mode.
12954         (curr_insn_transform): Remove incorrect comment.
12955
12956 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
12957
12958         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
12959         TOC operand is a valid symbol ref in the constant pool.
12960
12961 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
12962
12963         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
12964
12965 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
12966
12967         PR target/54222
12968         * config/avr/stdfix.h: New file.
12969         * t-avr (stdfix-gcc.h): New rule to build it.
12970         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
12971
12972 2013-01-23  Kostya Serebryany  <kcc@google.com>
12973
12974         * config/darwin.h: remove dependency on
12975         CoreFoundation (asan on Mac OS).
12976
12977 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
12978
12979         PR target/49069
12980         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
12981         instead of cmpdi_operand for first comparison operand.
12982         Don't assert that comparison operands aren't both constants.
12983
12984 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
12985
12986         * doc/install.texi (Downloading the Source): Update references to
12987         downloading separate components.
12988
12989 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
12990
12991         * doc/extend.texi (__int128): Improve grammar.
12992
12993 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
12994
12995         PR target/56028
12996         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
12997         alternative to (o,r).
12998         (*movdi_internal_rex64): Remove (!o,n) alternative.
12999         (DImode immediate->memory splitter): Remove.
13000         (DImode immediate->memory peephole2): Remove.
13001         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
13002         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
13003         alternative to (!o,*r).
13004         (*movtf_internal_sse): New pattern.
13005         (*movxf_internal_rex64): New pattern.
13006         (*movxf_internal): Disable for TARGET_64BIT.
13007         (*movdf_internal_rex64): Remove (!o,F) alternative.
13008
13009 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
13010
13011         PR middle-end/56074
13012         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
13013         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
13014         * tree-vect-loop-manip.c (find_loop_location): Also ignore
13015         stmt locations where LOCATION_LOCUS of the stmt location is
13016         UNKNOWN_LOCATION or BUILTINS_LOCATION.
13017
13018         PR target/55686
13019         * config/i386/i386.md (UNSPEC_STOS): New.
13020         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
13021         *strsetqi_1): Add UNSPEC_STOS.
13022
13023 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
13024
13025         PR c++/56067
13026         * doc/invoke.texi: Remove left over -Wsynth example.
13027
13028 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
13029
13030         PR tree-optimization/56051
13031         * fold-const.c (fold_binary_loc): Don't fold
13032         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
13033         a narrowing conversion, or widening conversion from signed
13034         to unsigned.
13035
13036 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
13037
13038         PR rtl-optimization/56023
13039         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
13040         dependent on debug instruction.
13041
13042 2013-01-21  Martin Jambor  <mjambor@suse.cz>
13043
13044         PR middle-end/56022
13045         * function.c (allocate_struct_function): Call
13046         invoke_set_current_function_hook earlier.
13047
13048 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
13049
13050         * reload1.c (init_reload): Only initialize reload_obstack
13051         during the first call.
13052
13053 2013-01-21  Marek Polacek  <polacek@redhat.com>
13054
13055         * cfgloop.c (verify_loop_structure): Fix up grammar.
13056
13057 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
13058
13059         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
13060         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
13061
13062 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13063
13064         PR target/56058
13065         * config/arm/marvell-pj4.md: Update copyright year.
13066         Fix up use of alu to alu_reg and simple_alu_imm.
13067
13068 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
13069
13070         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
13071
13072 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
13073
13074         PR target/55433
13075         * lra-constraints.c (curr_insn_transform): Don't reuse original
13076         insn for secondary memory move when memory mode should be different.
13077
13078 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13079
13080         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
13081         atomic_storedi_1): New patterns.
13082
13083 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
13084
13085         btver2 pipeline descriptions.
13086         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
13087         descriptions.
13088         * config/i386/i386.md (btver2_decode): New type attributes.
13089         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
13090         type attributes.
13091         * config/i386/btver2.md: New file describing btver2 pipelines.
13092
13093 2013-01-19  Andrew Pinski  <apinski@cavium.com>
13094
13095         PR tree-optimization/52631
13096         * tree-ssa-sccvn (visit_use): Before looking up the original
13097         statement, try looking up the simplified expression.
13098
13099 2013-01-19  Anthony Green  <green@moxielogic.com>
13100
13101         * config/moxie/moxie.c (moxie_expand_prologue): Set
13102         current_function_static_stack_size.
13103
13104 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
13105
13106         PR tree-optimization/56029
13107         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
13108         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
13109
13110 2013-01-18  Sharad Singhai  <singhai@google.com>
13111
13112         PR tree-optimization/55995
13113         * dumpfile.c (dump_loc): Print location only if available.
13114         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
13115
13116 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
13117
13118         PR target/55433
13119         * lra-constraints.c (curr_insn_transform): Reuse original insn for
13120         secondary memory move.
13121         (inherit_reload_reg): Use rclass instead of cl for
13122         check_secondary_memory_needed_p.
13123
13124 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
13125
13126         PR middle-end/56015
13127         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
13128         the case where writing real complex part of target modifies op1.
13129
13130 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
13131
13132         * config/aarch64/aarch64-simd.md
13133         (aarch64_vcond_internal<mode>): Handle unordered cases.
13134         * config/aarch64/iterators.md (v_cmp_result): New.
13135
13136 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
13137             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13138
13139         * config/arm/marvell-pj4.md: New file.
13140         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
13141         * config/arm/arm.md (generic_sched): Add marvell_pj4.
13142         (generic_vfp): Likewise.
13143         * config/arm/arm-cores.def: Add marvell-pj4.
13144         * config/arm/arm-tune.md: Regenerate.
13145         * config/arm/arm-tables.opt: Regenerate.
13146         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
13147         * doc/invoke.texi: Document marvell-pj4.
13148
13149 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
13150
13151         * config/aarch64/arm_neon.h: Map scalar types to standard types.
13152
13153 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
13154
13155         PR debug/54114
13156         PR debug/54402
13157         PR debug/49888
13158         * var-tracking.c (negative_power_of_two_p): New.
13159         (global_get_addr_cache, local_get_addr_cache): New.
13160         (get_addr_from_global_cache, get_addr_from_local_cache): New.
13161         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
13162         heading comment.
13163         (vt_stack_offset_p): Remove.
13164         (vt_canon_true_dep): Always canonicalize loc's address.
13165         (clobber_overlapping_mems): Make sure we have a MEM.
13166         (local_get_addr_clear_given_value): New.
13167         (val_reset): Clear local cached entries.
13168         (compute_bb_dataflow): Create and release the local cache.
13169         Disable duplicate MEMs clobbering.
13170         (emit_notes_in_bb): Clobber MEMs likewise.
13171         (vt_emit_notes): Create and release the local cache.
13172         (vt_initialize, vt_finalize): Create and release the global
13173         cache, respectively.
13174         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
13175
13176 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
13177
13178         PR libmudflap/53359
13179         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
13180         not found in the symtab.
13181
13182 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
13183
13184         PR debug/56006
13185         PR rtl-optimization/55547
13186         PR rtl-optimization/53827
13187         PR debug/53671
13188         PR debug/49888
13189         * alias.c (offset_overlap_p): New, factored out of...
13190         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
13191         the conservative special case for symbolic constants.  Don't
13192         adjust zero sizes on alignment.
13193
13194 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
13195
13196         PR rtl-optimization/52573
13197         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
13198         REG_UNUSED for the same register.
13199
13200 2013-01-17  Richard Biener  <rguenther@suse.de>
13201             Marek Polacek  <polacek@redhat.com>
13202
13203         PR rtl-optimization/55833
13204         * loop-unswitch.c (unswitch_loops): Move loop verification...
13205         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
13206         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
13207         Set it to true when we're removing a loop from hierarchy tree in
13208         an irreducible region.
13209         (fix_bb_placements): Adjust caller.
13210         (fix_loop_placements): Likewise.
13211
13212 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
13213
13214         * config/avr/builtins.def (DEF_BUILTIN): Factor out
13215         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
13216         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
13217         Remove ID.  Adjust comments.
13218         * config/avr/avr-c.c (avr_builtin_name): Remove.
13219         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
13220         * config/avr/avr.c (avr_tolower): New static function.
13221         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
13222         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
13223         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
13224         default expansion.
13225
13226 2013-01-17  Jan Hubicka  <jh@suse.cz>
13227
13228         PR tree-optimization/55273
13229         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
13230
13231 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
13232
13233         PR target/55981
13234         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
13235         store through atomic_store<mode>_1.
13236         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
13237
13238 2013-01-17  Martin Jambor  <mjambor@suse.cz>
13239
13240         PR tree-optimizations/55264
13241         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
13242         for virtual methods.
13243         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
13244         virtual methods before inlining is over.
13245         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
13246         virtual functions.
13247         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
13248         non-virtual.
13249
13250 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
13251
13252         PR rtl-optimization/56005
13253         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
13254         pending reads for prefetch.
13255
13256 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
13257
13258         * config/aarch64/aarch64.md
13259         (*cstoresi_neg_uxtw): New pattern.
13260         (*cmovsi_insn_uxtw): New pattern.
13261         (*<optab>si3_uxtw): New pattern.
13262         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
13263         (*<optab>si3_insn_uxtw): New pattern.
13264         (*bswapsi2_uxtw): New pattern.
13265
13266 2013-01-16  Richard Biener  <rguenther@suse.de>
13267
13268         * tree-inline.c (tree_function_versioning): Remove set but
13269         never used variable.
13270
13271 2013-01-16  Richard Biener  <rguenther@suse.de>
13272
13273         PR tree-optimization/55964
13274         * tree-flow.h (rename_variables_in_loop): Remove.
13275         (rename_variables_in_bb): Likewise.
13276         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
13277         (copy_loop_before): Adjust and delete update-ssa status.
13278         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
13279         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
13280         (rename_variables_in_loop): Remove.
13281         (slpeel_update_phis_for_duplicate_loop): Likewise.
13282         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
13283         use available cfg machinery instead of duplicating it.
13284         Update PHI nodes and perform poor-mans SSA update here.
13285         (slpeel_tree_peel_loop_to_edge): Adjust.
13286
13287 2013-01-16  Richard Biener  <rguenther@suse.de>
13288
13289         PR tree-optimization/54767
13290         PR tree-optimization/53465
13291         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
13292         (vrp_visit_phi_node): For PHI arguments coming via backedges
13293         drop all symbolical range information.
13294         (execute_vrp): Compute backedges.
13295
13296 2013-01-16  Richard Biener  <rguenther@suse.de>
13297
13298         * doc/install.texi: Update CLooG and ISL requirements to
13299         0.18.0 and 0.11.1.
13300
13301 2013-01-16  Christian Bruel  <christian.bruel@st.com>
13302
13303         PR target/55301
13304         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
13305         (broken_move): Handle UNSPECV_SP_SWITCH_B.
13306         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
13307
13308 2013-01-16  DJ Delorie  <dj@redhat.com>
13309
13310         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
13311         (UNSPECV_SP_SWITCH_E): New.
13312         (sp_switch_1): Change to an unspec.
13313         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
13314         replace $r15.
13315
13316 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
13317
13318         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
13319         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
13320         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
13321         (expand_mem_thread_fence): Ditto.
13322         (expand_mem_signal_fence): Ditto.
13323         (expand_atomic_load): Ditto.
13324         (expand_atomic_store): Ditto.
13325
13326 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
13327
13328         PR rtl-optimization/55547
13329         PR rtl-optimization/53827
13330         PR debug/53671
13331         PR debug/49888
13332         * alias.c (memrefs_conflict_p): Set sizes to negative after
13333         AND adjustments.
13334
13335 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
13336
13337         PR target/55940
13338         * function.c (thread_prologue_and_epilogue_insns): Always
13339         add crtl->drap_reg to set_up_by_prologue.set, even if
13340         stack_realign_drap is false.
13341
13342 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
13343
13344         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
13345         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
13346         *call): Fix indention.
13347
13348 2013-01-15  Tom de Vries  <tom@codesourcery.com>
13349
13350         PR target/55876
13351         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
13352         Update comment.
13353
13354 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
13355
13356         PR rtl-optimization/55153
13357         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
13358
13359 2013-01-15  Martin Jambor  <mjambor@suse.cz>
13360
13361         PR tree-optimization/55920
13362         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
13363         accesses as grp_to_be_debug_replaced.
13364
13365 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
13366
13367         PR tree-optimization/55920
13368         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
13369         there is non-useless type conversion needed from debug rhs to lhs,
13370         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
13371
13372 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
13373             Mikael Pettersson  <mikpe@it.uu.se>
13374
13375         PR target/43961
13376         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
13377         Thumb.
13378         (ASM_OUTPUT_CASE_LABEL): Remove.
13379         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
13380         * final.c (shorten_branches): Update alignment of labels before
13381         jump tables if CASE_VECTOR_SHORTEN_MODE.
13382
13383 2013-01-15  Richard Biener  <rguenther@suse.de>
13384
13385         PR bootstrap/55961
13386         * system.h: Do not include gmp.h for building host tools.
13387
13388 2013-01-15  Richard Biener  <rguenther@suse.de>
13389
13390         PR middle-end/55882
13391         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
13392         account for bitpos when computing alignment.
13393
13394 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
13395
13396         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
13397         (ix86_target_macros_internal): Likewise.
13398
13399         * config/i386/i386.c (m_CORE2I7): Removed.
13400         (m_CORE_HASWELL): New macro.
13401         (m_CORE_ALL): Likewise.
13402         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
13403         (initial_ix86_arch_features): Likewise.
13404         (processor_target_table): Initializations for Core avx2.
13405         (cpu_names): New names "core-avx2".
13406         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
13407         PROCESSOR_CORE_HASWELL.
13408         (ix86_issue_rate): New case.
13409         (ia32_multipass_dfa_lookahead): Likewise.
13410         (ix86_sched_init_global): Likewise.
13411
13412         * config/i386/i386.h (TARGET_HASWELL): New macro.
13413         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
13414         (processor_type): New PROCESSOR_HASWELL.
13415
13416 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
13417
13418         PR tree-optimization/55955
13419         * tree-vect-loop.c (vectorizable_reduction): Give up early on
13420         *SHIFT_EXPR and *ROTATE_EXPR codes.
13421
13422         PR tree-optimization/48766
13423         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
13424         -ftrapv disable -fwrapv.
13425
13426 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
13427
13428         PR target/55974
13429         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
13430         etc. to 1 and not to __flash.
13431         Use LL suffix for __INT24_MAX__ with -mint8.
13432         Use ULL suffix for __UINT24_MAX__ with -mint8.
13433
13434 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
13435
13436         * config/avr/avr-arch.h
13437         (struct base_arch_s): Use typedef avr_arch_t instead.
13438         (struct arch_info_s): Use typedef avr_arch_info_t instead.
13439         (struct mcu_type_s): Use typedef avr_mcu_t instead.
13440         * config/avr/avr.c: Same.
13441         * config/avr/avr-devices.c: Same.
13442         * config/avr/driver-avr.c: Same.
13443         * config/avr/gen-avr-mmcu-texi.c: Same.
13444         * config/avr/avr-mcus.def: Adjust comment.
13445
13446 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
13447
13448         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
13449         * config/aarch64/iterators.md (VALLDI): New.
13450
13451 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
13452             Andi Kleen  <ak@linux.intel.com>
13453
13454         PR target/55948
13455         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
13456         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
13457         memmodel flag.
13458
13459 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
13460
13461         * config/avr/avr-stdint.h: Remove trailing blanks.
13462         * config/avr/avr-log.h: Same.
13463         * config/avr/avr-arch.h: Same.
13464         * config/avr/avr-devices.c: Same.
13465         * config/avr/avr-dimode.md: Same.
13466         * config/avr/predicates.md: Same.
13467         * config/avr/avr-c.c: Same.  And fix typo.
13468
13469         * config/avr/avr-protos.h: Same.  And:
13470         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
13471         (init_cumulative_args): Rename to avr_init_cumulative_args.
13472         (expand_prologue): Rename to avr_expand_prologue.
13473         (expand_epilogue): Rename to avr_expand_epilogue.
13474         (adjust_insn_length): Rename to avr_adjust_insn_length.
13475         (notice_update_cc): Rename to avr_notice_update_cc.
13476         (final_prescan_insn): Rename to avr_final_prescan_insn.
13477         * config/avr/avr.c: Same.
13478         * config/avr/avr.h: Same.
13479         * config/avr/avr.md: Remove trailing blanks.
13480         (prologue): Use avr_expand_prologue.
13481         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
13482
13483 2013-01-14  Richard Biener  <rguenther@suse.de>
13484
13485         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
13486         verify_location, collect_subblocks): New functions.
13487         (verify_gimple_in_cfg): Verify that locations only reference
13488         BLOCKs in the functions BLOCK tree.
13489
13490 2013-01-14  Richard Biener  <rguenther@suse.de>
13491
13492         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
13493         PHI argument.
13494         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
13495         unshare reference.
13496         (insert_out_of_ssa_copy_on_edge): Likewise.
13497         (rewrite_close_phi_out_of_ssa): Likewise.
13498         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
13499         debug expressions.
13500         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
13501         propagated constants.
13502         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
13503         can not be shared.
13504
13505 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
13506
13507         * config/avr/avr-modes.def: Add GPL copyright notice.
13508
13509 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
13510
13511         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
13512         MEMMODEL_MASK to determine memory model.
13513         (atomic_store<mode>): Ditto from operands[2].
13514         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
13515
13516 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
13517
13518         PR fortran/55935
13519         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
13520         (fold_gimple_assign): Don't call unshare_expr here.
13521         (fold_ctor_reference): Call unshare_expr.
13522
13523 2013-01-13  Terry Guo  <terry.guo@arm.com>
13524
13525         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
13526         * doc/fragments.texi: Document MULTILIB_REUSE.
13527         * gcc.c (multilib_reuse): New internal spec.
13528         (set_multilib_dir): Also search multilib from multilib_reuse.
13529         * genmultilib (tmpmultilib3): Refactor code.
13530         (tmpmultilib4): Ditto.
13531         (multilib_reuse): New multilib argument.
13532
13533 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
13534
13535         * Makefile.in: Update copyright.
13536
13537 2013-01-12  Tom de Vries  <tom@codesourcery.com>
13538
13539         PR middle-end/55890
13540         * calls.c (expand_call): Check if arg_nr is valid.
13541
13542 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
13543
13544         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
13545         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
13546         documentation.  Add missing '__' in front of
13547         __builtin_ia32_packssdw256.
13548
13549 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13550
13551         PR target/55719
13552         * config/s390/s390.c (s390_preferred_reload_class): Do not return
13553         NO_REGS for larl operands.
13554         (s390_reload_larl_operand): Use s390_load_address instead of
13555         emit_move_insn.
13556
13557 2013-01-11  Richard Biener  <rguenther@suse.de>
13558
13559         * tree-cfg.c (verify_node_sharing_1): Split out from ...
13560         (verify_node_sharing): ... here.
13561         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
13562
13563 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
13564
13565         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
13566         Substitute TREECHECKING.
13567         * configure: Regenerate.
13568         * Makefile.in (TREECHECKING): New.
13569
13570 2013-01-11  Richard Guenther  <rguenther@suse.de>
13571
13572         PR tree-optimization/44061
13573         * tree-vrp.c (extract_range_basic): Compute zero as
13574         value-range for __builtin_constant_p of function parameters.
13575
13576 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
13577
13578         Update copyright years.
13579
13580 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
13581
13582         PR rtl-optimization/55672
13583         * lra-eliminations.c (mark_not_eliminable): Permit addition with
13584         const to be eliminable.
13585
13586 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
13587
13588         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
13589         * configure: Regenerate.
13590
13591 2013-01-10  Richard Biener  <rguenther@suse.de>
13592
13593         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
13594
13595 2013-01-10  Richard Biener  <rguenther@suse.de>
13596
13597         PR bootstrap/55792
13598         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
13599         locations for virtual PHI arguments.
13600         (rewrite_update_phi_arguments): Likewise.
13601
13602 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
13603
13604         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
13605         on to assembler.
13606
13607 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
13608
13609         PR tree-optimization/55921
13610         * tree-complex.c (expand_complex_asm): New function.
13611         (expand_complex_operations_1): Call it for GIMPLE_ASM.
13612
13613 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13614
13615         PR target/55718
13616         * config/s390/s390.c (s390_symref_operand_p)
13617         (s390_loadrelative_operand_p): Merge the two functions.
13618         (s390_check_qrst_address, print_operand_address): Add parameters
13619         to s390_loadrelative_operand_p invokation.
13620         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
13621         (s390_reload_larl_operand, s390_secondary_reload): Use
13622         s390_loadrelative_operand_p instead of s390_symref_operand_p.
13623         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
13624
13625 2013-01-09  Mike Stump  <mikestump@comcast.net>
13626
13627         * dse.c (record_store): Remove unnecessary assert.
13628
13629 2013-01-09  Jan Hubicka  <jh@suse.cz>
13630
13631         PR tree-optimization/55569
13632         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
13633         * cfgloop.h (scale_loop_profile): Likewise.
13634
13635 2013-01-09  Jan Hubicka  <jh@suse.cz>
13636
13637         PR lto/45375
13638         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
13639         functions.
13640         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
13641
13642 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
13643
13644         PR middle-end/55114
13645         * expr.h (maybe_emit_group_store): Declare.
13646         * expr.c (maybe_emit_group_store): New function.
13647         * builtins.c (expand_builtin_int_roundingfn): Call it.
13648         (expand_builtin_int_roundingfn_2): Likewise.
13649
13650 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
13651
13652         PR rtl-optimization/55829
13653         * lra-constraints.c (match_reload): Add code for absent output.
13654         (curr_insn_transform): Add code for reloads of matched inputs
13655         without output.
13656
13657 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
13658
13659         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
13660         attribute of movddup insn to DF.
13661         (*vec_interleave_lowv2df): Ditto.
13662         (vec_dupv2df): Ditto.
13663
13664 2013-01-09  Jan Hubicka  <jh@suse.cz>
13665
13666         PR tree-optimiation/55875
13667         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
13668         EVERY_ITERATION parameter.
13669         (number_of_iterations_exit): Check if exit is executed every iteration.
13670         (idx_infer_loop_bounds): Similarly here.
13671         (n_of_executions_at_most): Simplify
13672         to only test for cases where statement is dominated by the
13673         particular bound; handle correctly the "postdominance" test.
13674         (scev_probably_wraps_p): Use max loop iterations info
13675         as a global bound first.
13676
13677 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
13678             Nick Clifton  <nickc@redhat.com>
13679
13680         * config/v850/v850.md (cbranchsf4): New pattern.
13681         (cstoresf4): New pattern.
13682         (cbranchdf4): New pattern.
13683         (cstoredf4): New pattern.
13684         (movsicc): Disallow floating point comparisons.
13685         (cmpsf_le_insn): Fix order of operators.
13686         (cmpsf_lt_insn): Likewise.
13687         (cmpsf_eq_insn): Likewise.
13688         (cmpdf_le_insn): Likewise.
13689         (cmpdf_lt_insn): Likewise.
13690         (cmpdf_eq_insn): Likewise.
13691         (cmpsf_ge_insn): Use LE comparison.
13692         (cmpdf_ge_insn): Likewise.
13693         (cmpsf_gt_insn): Use LT comparison.
13694         (cmpdf_gt_insn): Likewise.
13695         (cmpsf_ne_insn): Delete pattern.
13696         (cmpdf_ne_insn): Delete pattern.
13697         * config/v850/v850.c (v850_gen_float_compare): Use
13698         gen_cmpdf_eq_insn for NE comparison.
13699         (v850_float_z_comparison_operator)
13700         (v850_float_nz_comparison_operator): Move from here ...
13701         * config/v850/predicates.md: ... to here.  Move GT and GE
13702         comparisons into v850_float_z_comparison_operator.
13703         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
13704         Delete prototype.
13705         (v850_float_nz_comparison_operator): Likewise.
13706
13707 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13708
13709         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
13710         with calls to gen_insvsi/gen_insvdi.
13711
13712 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
13713
13714         * config/i386/i386.c (initial_ix86_tune_features): Set up
13715         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
13716
13717 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
13718             Jakub Jelinek  <jakub@redhat.com>
13719
13720         PR tree-optimization/48189
13721         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
13722         If nitercst is 0, don't predict the exit edge.
13723
13724 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
13725
13726         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
13727         in asm_fprintf with reg_names.
13728         (aarch64_print_operand_address): Likewise.
13729         (aarch64_return_addr): Likewise.
13730         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
13731
13732 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13733
13734         * config/pa/pa.h (VAL_U6_BITS_P): Define.
13735         (INT_U6_BITS): Likewise.
13736         * config/pa/predicates.md (uint6_operand): New predicate.
13737         (shift5_operand, shift6_operand): Likewise.
13738         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
13739         arith32_operand.
13740         (lshrdi3): Use shift6_operand.
13741         (shrpsi4, shrpdi4): New insn patterns.
13742         (extzv): Delete expander.
13743         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
13744         predicates in unamed zero extract patterns.  Tighten common constraint.
13745         (extv): Delete expander.
13746         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
13747         predicates in unamed sign extract patterns.  Tighten common constraint.
13748         (insv): Delete expander.
13749         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
13750         predicates in unamed insert patterns.  Tighten common constraint.
13751         Change uint32_operand predicate to uint6_operand predicate in unamed
13752         DImode pattern to insert constant values of type 1...1xxxx.
13753
13754 2013-01-04  Jan Hubicka  <jh@suse.cz>
13755
13756         PR tree-optimization/55823
13757         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
13758         issue.
13759
13760 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
13761             Uros Bizjak  <ubizjak@gmail.com>
13762
13763         PR rtl-optimization/55845
13764         * df-problems.c (can_move_insns_across): Stop scanning at
13765         volatile_insn_p source instruction or give up if
13766         across_from .. across_to range contains any volatile_insn_p
13767         instructions.
13768
13769 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
13770
13771         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
13772         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
13773         Declare.
13774         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
13775         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
13776
13777 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
13778
13779         PR fortran/55341
13780         * asan.c (asan_clear_shadow): New function.
13781         (asan_emit_stack_protection): Use it.
13782
13783 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
13784
13785         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
13786         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
13787         with tab instead of space.
13788
13789 2013-01-08  Nick Clifton  <nickc@redhat.com>
13790
13791         * config/rl78/rl78.c (rl78_expand_prologue): Always select
13792         register bank 0 at the start of an interrupt handler.
13793         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
13794         MDBH registers.
13795
13796 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
13797
13798         * config/aarch64/aarch64-simd.md
13799         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
13800         (aarch64_simd_bsl): Likewise.
13801         (aarch64_vcond_internal<mode>): Likewise.
13802         (vcond<mode><mode>): Likewise.
13803         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
13804         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
13805
13806 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
13807
13808         * config/aarch64/aarch64-builtins.c
13809         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
13810
13811 2013-01-08  Martin Jambor  <mjambor@suse.cz>
13812
13813         PR debug/55579
13814         * tree-sra.c (analyze_access_subtree): Return true also after
13815         potentially creating a debug-only replacement.
13816
13817 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
13818
13819         PR middle-end/55890
13820         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
13821
13822         PR tree-optimization/54120
13823         * tree-vrp.c (range_fits_type_p): Don't allow
13824         src_precision < precision from signed vr to unsigned_p
13825         if vr->min or vr->max is negative.
13826         (simplify_float_conversion_using_ranges): Test can_float_p
13827         against CODE_FOR_nothing.
13828
13829 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
13830             Richard Biener  <rguenther@suse.de>
13831
13832         PR middle-end/55851
13833         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
13834         types instead of just INTEGER_TYPE types.
13835
13836 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
13837
13838         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
13839         TF_SIZE): Define.
13840
13841 2013-01-07  Steve Ellcey  <sellcey@mips.com>
13842
13843         PR target/42661
13844         * config/mips/mips.opt: Change mad to mmad to match documentation.
13845
13846 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
13847
13848         PR target/55897
13849         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
13850         .progmemx.data now.
13851
13852 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
13853
13854         PR target/55897
13855         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
13856         (avr_addrspace_t): Add .section_name field.
13857         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
13858         array size.
13859         (avr_addrspace): Same.  Initialize .section_name.  Remove last
13860         NULL entry.  Put __memx into .progmemx.data.
13861         (progmem_section_prefix): Remove.
13862         (avr_asm_init_sections): No need to initialize progmem_section.
13863         (avr_asm_named_section): Use avr_addrspace[].section_name to get
13864         section name prefix.
13865         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
13866         retrieve the progmem section.
13867         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
13868         boundary to run over avr_addrspace[].
13869         (avr_register_target_pragmas): Ditto.
13870
13871 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
13872
13873         * varasm.c (output_constant_def_contents): For asan_protect_global
13874         protected strings, adjust DECL_ALIGN if needed, before testing for
13875         anchored symbols.
13876         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
13877         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
13878         normal decls.
13879         (output_object_block): For asan protected decls, emit asan padding
13880         after their contents.
13881         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
13882         (asan_finish_file): Test it here instead.
13883
13884 2013-01-07  Nick Clifton  <nickc@redhat.com>
13885             Matthias Klose  <doko@debian.org>
13886             Doug Kwan  <dougkwan@google.com>
13887             H.J. Lu  <hongjiu.lu@intel.com>
13888
13889         PR driver/55470
13890         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
13891
13892         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
13893
13894         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
13895
13896         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
13897
13898         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
13899
13900 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
13901
13902         PR target/54461
13903         * doc/install.texi (Cross-Compiler-Specific Options): Document
13904         --with-avrlibc.
13905
13906 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
13907
13908         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
13909         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
13910         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
13911         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
13912         vqmovun_high_s64): Fix source operand number and update copyright.
13913
13914 2013-01-07  Richard Biener  <rguenther@suse.de>
13915
13916         PR middle-end/55890
13917         * gimple.h (gimple_call_builtin_p): New overload.
13918         * gimple.c (validate_call): New function.
13919         (gimple_call_builtin_p): Likewise.
13920         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
13921         Use gimple_call_builtin_p.
13922         (find_func_clobbers): Likewise.
13923         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
13924         (strlen_optimize_stmt): Likewise.
13925
13926 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
13927
13928         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
13929         (vld1q_dup_*): Likewise.
13930         (vld1_*): Likewise.
13931         (vld1q_*): Likewise.
13932         (vld1_lane_*): Likewise.
13933         (vld1q_lane_*): Likewise.
13934
13935 2013-01-07  Richard Biener  <rguenther@suse.de>
13936
13937         * lto-streamer.h (LTO_minor_version): Bump to 2.
13938
13939 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
13940
13941         * config/aarch64/aarch64-protos.h
13942         (aarch64_const_double_zero_rtx_p): Rename to...
13943         (aarch64_float_const_zero_rtx_p): ...this.
13944         (aarch64_float_const_representable_p): New.
13945         (aarch64_output_simd_mov_immediate): Likewise.
13946         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
13947         move immediate case.
13948         * config/aarch64/aarch64.c
13949         (aarch64_const_double_zero_rtx_p): Rename to...
13950         (aarch64_float_const_zero_rtx_p): ...this.
13951         (aarch64_print_operand): Allow printing of new constants.
13952         (aarch64_valid_floating_const): New.
13953         (aarch64_legitimate_constant_p): Check for valid floating-point
13954         constants.
13955         (aarch64_simd_valid_immediate): Likewise.
13956         (aarch64_vect_float_const_representable_p): New.
13957         (aarch64_float_const_representable_p): Likewise.
13958         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
13959         (aarch64_output_simd_mov_immediate): New.
13960         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
13961         (*movdf_aarch64): Likewise.
13962         * config/aarch64/constraints.md (Ufc): New.
13963         (Y): call aarch64_float_const_zero_rtx.
13964         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
13965
13966 2013-01-07  Richard Biener  <rguenther@suse.de>
13967
13968         PR tree-optimization/55888
13969         PR tree-optimization/55862
13970         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
13971         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
13972         not if it is contained therein.
13973
13974 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
13975
13976         * config/avr/t-avr: Typo.
13977
13978 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
13979
13980         PR55243
13981         * config/avr/t-avr: Don't automatically rebuild
13982         $(srcdir)/config/avr/t-multilib
13983         $(srcdir)/config/avr/avr-tables.opt
13984         $(srcdir)/doc/avr-mmcu.texi
13985         (avr-mcus): New phony target to build them on request.
13986         (s-avr-mlib, s-avr-mmcu-texi): Remove.
13987         * avr/avr-mcus.def: Adjust comments.
13988
13989 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
13990
13991         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
13992
13993 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
13994
13995         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
13996
13997 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
13998
13999         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
14000
14001 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
14002
14003         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
14004         to generate profiling.
14005         * config/rs6000/aix64.h (LIB_SPEC): Same.
14006
14007 2013-01-04  Andrew Pinski  <apinski@cavium.com>
14008
14009         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
14010         New function.
14011         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
14012
14013 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
14014
14015         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
14016         unconditionally.
14017         (ix86_expand_move): Ditto.
14018         (ix86_zero_extend_to_Pmode): Ditto.
14019         (ix86_expand_call): Ditto.
14020         (ix86_expand_special_args_builtin): Ditto.
14021         (ix86_expand_builtin): Ditto.
14022
14023 2013-01-04  Richard Biener  <rguenther@suse.de>
14024
14025         PR tree-optimization/55862
14026         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
14027         translating them through PHI nodes.
14028
14029 2013-01-04  Martin Jambor  <mjambor@suse.cz>
14030
14031         PR tree-optimization/55755
14032         * tree-sra.c (sra_modify_assign): Do not check that an access has no
14033         children when trying to avoid producing a VIEW_CONVERT_EXPR.
14034
14035 2013-01-04  Marek Polacek  <polacek@redhat.com>
14036
14037         PR middle-end/55859
14038         * opts.c (default_options_optimization): Clarify error message.
14039
14040 2013-01-04  Richard Biener  <rguenther@suse.de>
14041
14042         PR middle-end/55863
14043         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
14044         reassociation.
14045
14046 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14047
14048         PR target/53789
14049         * config/pa/pa.md (movsi): Revert previous change.
14050         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
14051         references.
14052
14053 2013-01-03  Richard Henderson  <rth@redhat.com>
14054
14055         * config/i386/i386.c (ix86_expand_move): Always assign to op1
14056         after eliminating TLS symbols.
14057
14058 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
14059
14060         PR bootstrap/50167
14061         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
14062         * graphite-poly.c (debug_gmp_value): Likewise.
14063
14064 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
14065
14066         PR target/55712
14067         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
14068         selected code model, define __code_mode_small__, __code_model_medium__,
14069         __code_model_large__, __code_model_32__ or __code_model_kernel__.
14070         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
14071         xchg temporary register with %k.  Declare temporary register as
14072         early clobbered.
14073         [__x86_64__]: For medium and large code models, preserve %rbx register.
14074
14075 2013-01-03  Richard Biener  <rguenther@suse.de>
14076
14077         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
14078         (dump_subscript): Adjust.
14079         (finalize_ddr_dependent): Do not dump redundant info.
14080         (analyze_siv_subscript): Adjust.
14081         (subscript_dependence_tester): Likewise.
14082         (compute_affine_dependence): Likewise.
14083
14084 2013-01-03  Richard Biener  <rguenther@suse.de>
14085
14086         Revert
14087         2013-01-03  Richard Biener  <rguenther@suse.de>
14088
14089         PR tree-optimization/55857
14090         * tree-vect-stmts.c (vectorizable_load): Do not setup
14091         re-alignment for invariant loads.
14092
14093         2013-01-02  Richard Biener  <rguenther@suse.de>
14094
14095         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
14096         invariant load do not generate a vector load from the scalar location.
14097
14098 2013-01-03  Richard Biener  <rguenther@suse.de>
14099
14100         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
14101         for not vectorizing.
14102         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
14103         not build INDIRECT_REFs, call get_name once only.
14104         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
14105         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
14106
14107 2013-01-03  Richard Biener  <rguenther@suse.de>
14108
14109         PR tree-optimization/55857
14110         * tree-vect-stmts.c (vectorizable_load): Do not setup
14111         re-alignment for invariant loads.
14112
14113 2013-01-03  Richard Biener  <rguenther@suse.de>
14114
14115         PR lto/55848
14116         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
14117         prefer a built-in decl.
14118
14119 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
14120
14121         * gcc.c (process_command): Update copyright notice dates.
14122         * gcov.c (print_version): Likewise.
14123         * gcov-dump.c (print_version): Likewise.
14124
14125         PR rtl-optimization/55838
14126         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
14127         iv0.step, iv1.step and step.
14128
14129 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
14130             Marc Glisse  <marc.glisse@inria.fr>
14131
14132         PR tree-optimization/55832
14133         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
14134         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
14135         integer_{one,zero}_node.
14136
14137 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
14138
14139         PR debug/54402
14140         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
14141         * var-tracking.c (reverse_op): Don't add reverse ops to
14142         VALUEs that have already
14143         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
14144
14145 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
14146
14147         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
14148
14149 2013-01-02  Teresa Johnson  <tejohnson@google.com>
14150
14151         * dumpfile.c (dump_loc): Print filename with location.
14152         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
14153         new location_t parameter to emit complete unroll message with
14154         new dump framework.
14155         (canonicalize_loop_induction_variables): Compute loops location
14156         and pass to try_unroll_loop_completely.
14157         * loop-unroll.c (report_unroll_peel): New function.
14158         (peel_loops_completely): Use new dump format with location
14159         for main dumpfile message, and invoke report_unroll_peel on success.
14160         (decide_unrolling_and_peeling): Ditto.
14161         (decide_peel_once_rolling): Remove old dumpfile message subsumed
14162         by report_unroll_peel.
14163         (decide_peel_completely): Ditto.
14164         (decide_unroll_constant_iterations): Ditto.
14165         (decide_unroll_runtime_iterations): Ditto.
14166         (decide_peel_simple): Ditto.
14167         (decide_unroll_stupid): Ditto.
14168         * cfgloop.c (get_loop_location): New function.
14169         * cfgloop.h (get_loop_location): Declare.
14170
14171 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
14172
14173         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
14174         NULL.
14175
14176 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14177
14178         PR middle-end/55198
14179         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
14180         BLKmode objects when EXPAND_MEMORY is specified.
14181
14182 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
14183
14184         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
14185         in loop predicate.
14186         (fold_builtin_cpu): Do not share cpu model decls across statements.
14187
14188 2013-01-02  Jason Merrill  <jason@redhat.com>
14189
14190         PR c++/55804
14191         * tree.c (build_array_type_1): Revert earlier change.
14192
14193 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
14194
14195         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
14196         "cortex-a57".
14197         * config/aarch64/aarch64-tune.md: Re-generate.
14198
14199 2013-01-02  Richard Biener  <rguenther@suse.de>
14200
14201         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
14202         invariant load do not generate a vector load from the scalar location.
14203
14204 2013-01-02  Richard Biener  <rguenther@suse.de>
14205
14206         PR bootstrap/55784
14207         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
14208         * configure: Regenerate.
14209
14210 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
14211
14212         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
14213         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
14214         (expand_builtin_int_roundingfn_2): Keep the original target around
14215         for the fallback case.
14216
14217 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
14218
14219         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
14220         to be clear for sign changes.
14221
14222 2013-01-01  Jan Hubicka  <jh@suse.cz>
14223
14224         * ipa-inline-analysis.c: Fix formatting.
14225
14226 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
14227
14228         PR tree-optimization/55831
14229         * tree-vect-loop.c (get_initial_def_for_induction): Use
14230         gsi_after_labels instead of gsi_start_bb.
14231 \f
14232 Copyright (C) 2013 Free Software Foundation, Inc.
14233
14234 Copying and distribution of this file, with or without modification,
14235 are permitted in any medium without royalty provided the copyright
14236 notice and this notice are preserved.