re PR c++/56892 (dllexport prevents inline inside dll)
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2013-07-08  Kai Tietz  <ktietz@redhat.com>
2
3         PR target/56892
4         * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
5         hook_bool_const_tree_true.
6
7 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8
9         * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
10         * config/s390/s390.h: Remove F*_REGNUM macro definitions.
11         * config/s390/s390.md: Define FPR*_REGNUM constants.
12         Fix FPR2_REGNUM constant (18 -> 17).
13         ("*trunc<BFP:mode><DFP_ALL:mode>2")
14         ("*trunc<DFP_ALL:mode><BFP:mode>2")
15         ("trunc<BFP:mode><DFP_ALL:mode>2")
16         ("trunc<DFP_ALL:mode><BFP:mode>2")
17         ("*extend<BFP:mode><DFP_ALL:mode>2")
18         ("*extend<DFP_ALL:mode><BFP:mode>2")
19         ("extend<BFP:mode><DFP_ALL:mode>2")
20         ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
21         FPR4_REGNUM.
22
23 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
24         * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
25
26 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
27         * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
28         unused variables l_length and l_node.
29
30 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31
32         * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
33         and cfun_fpr_bit_p to cfun_fpr_save_p.
34         (s390_frame_area, s390_register_info, s390_frame_info)
35         (s390_emit_prologue, s390_emit_epilogue)
36         (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
37         register numbers.
38         * config/s390/s390.h: Define *_REGNUM macros for floating point
39         register numbers.
40
41 2013-07-08  Eric Botcazou  <ebotcazou@adacore.com>
42
43         * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
44
45 2013-07-08  Po-Chun Chang  <pchang9@cs.wisc.edu>
46
47         PR rtl-optimization/57786
48         * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
49         and break out of the loop when it is set to false.
50
51 2013-07-08  Jakub Jelinek  <jakub@redhat.com>
52
53         PR target/57819
54         * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
55         Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
56         (const_int 63)) 0)).
57         * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
58         using simplify_gen_unary instead of gen_rtx_*_EXTEND.
59         * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
60
61         PR rtl-optimization/57829
62         * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
63         mask bits outside of mode are just sign-extension from mode to HWI.
64
65 2013-07-08  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
66
67         * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
68         * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
69         adjust_address instead of change_address to keep info about alignment.
70         (emit_strmov): Remove.
71         (emit_memmov): New function.
72         (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
73         (expand_movmem_epilogue): Likewise and return updated rtx for
74         destination.
75         (expand_constant_movmem_prologue): Likewise and return updated rtx for
76         destination and source.
77         (decide_alignment): Refactor, handle vector_loop.
78         (ix86_expand_movmem): Likewise.
79         (ix86_expand_setmem): Likewise.
80         * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
81
82 2013-07-07  Uros Bizjak  <ubizjak@gmail.com>
83
84         * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
85         signature_TM2_ebx, it interferes with signature_INTEL_ebx.
86
87 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
88
89         * config/i386/sse.md (sse_movlhps): Change alternative 3
90         of operand 2 to "m".
91
92 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
93
94         PR target/57807
95         * config/i386/sse.md (iptr): New mode attribute.
96         (sse2_movq128): Add pointer size overrides for Intel asm dialect.
97         (<sse>_vm<plusminus_insn><mode>3): Ditto.
98         (<sse>_vmmul<mode>3): Ditto.
99         (<sse>_vmdiv<mode>3): Ditto.
100         (sse_vmrcpv4sf2): Ditto.
101         (<sse>_vmsqrt<mode>2): Ditto.
102         (sse_vmrsqrtv4sf2): Ditto.
103         (<sse>_vm<code><mode>3): Ditto.
104         (avx_vmcmp<mode>3): Ditto.
105         (<sse>_vmmaskcmp<mode>3): Ditto.
106         (<sse>_comi): Ditto.
107         (<sse>_ucomi): Ditto.
108         (*xop_vmfrcz_<mode>): Ditto.
109         (*fmai_fmadd_<mode>): Ditto.
110         (*fmai_fmsub_<mode>): Ditto.
111         (*fmai_fnmadd_<mode>): Ditto.
112         (*fmai_fnmsub_<mode>): Ditto.
113         (*fma4i_vmfmadd_<mode>): Ditto.
114         (*fma4i_vmfmsub_<mode>): Ditto.
115         (*fma4i_vmfnmadd_<mode>): Ditto.
116         (*fma4i_vmfnmsub_<mode>): Ditto.
117         (*xop_vmfrcz_<mode>): Ditto.
118         (sse_cvtps2pi): Ditto.
119         (sse_cvttps2pi): Ditto.
120         (sse_cvtss2si): Ditto.
121         (sse_cvtss2si_2): Ditto.
122         (sse_cvtss2siq_2): Ditto.
123         (sse_cvttss2si): Ditto.
124         (sse_cvttss2siq): Ditto.
125         (sse_cvtsd2si): Ditto.
126         (sse_cvtsd2si_2): Ditto.
127         (sse_cvtsd2siq_2): Ditto.
128         (sse_cvttsd2si): Ditto.
129         (sse_cvttsd2siq): Ditto.
130         (sse_cvtsd2ss): Ditto.
131         (sse_cvtss2sd): Ditto.
132         (avx2_pbroadcast<mode>): Ditto.
133         (avx2_pbroadcast<mode>_1): Ditto.
134         (*avx_vperm_broadcast_v4sf): Ditto.
135
136         (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
137         (sse_movlhps): Ditto.
138         (sse_storehps): Ditto.
139         (sse_loadhps): Ditto.
140         (sse_storelps): Ditto.
141         (sse_loadlps): Ditto.
142         (*vec_concatv4sf): Ditto.
143         (*vec_interleave_highv2df): Ditto.
144         (*vec_interleave_lowv2df): Ditto.
145         (*vec_extractv2df_1_sse): Ditto.
146         (*vec_extractv2df_0_sse): Ditto.
147         (sse2_storelpd): Ditto.
148         (sse2_loadlpd): Ditto.
149         (sse2_movsd): Ditto.
150         (*vec_concatv4si): Ditto.
151         (vec_concatv2di): Ditto.
152
153         * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
154         for Intel asm dialect.
155         (mmx_punpcklwd): Ditto.
156         (mmx_punpckldq): Ditto.
157
158         * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
159         for intel assembler dialect.
160
161 2013-07-06  Jakub Jelinek  <jakub@redhat.com>
162
163         PR target/29776
164         * fold-const.c (tree_call_nonnegative_warnv_p): Return true
165         for BUILT_IN_C{LZ,LRSB}*.
166         * tree.h (CASE_INT_FN): Add FN##IMAX case.
167         * tree-vrp.c (extract_range_basic): Handle
168         BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*.  For
169         BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
170         fall thru to code calling set_value*.
171         * builtins.c (expand_builtin): Remove *IMAX cases.
172         (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
173         if width is bigger than 2*HWI.
174
175 2013-07-05  Vladimir Makarov  <vmakarov@redhat.com>
176
177         PR rtl-optimization/55342
178         * lra-int.h (lra_subreg_reload_pseudos): New.
179         * lra.c: Add undoing optional reloads to the block diagram.
180         (lra_subreg_reload_pseudos): New.
181         (lra_optional_reload_pseudos): Change comments.
182         (lra): Init and clear lra_subreg_reload_pseudos.  Clear
183         lra_optional_reload_pseudos after undo transformations.
184         * lra-assigns.c (pseudo_prefix_title): New.
185         (lra_setup_reg_renumber): Use it.
186         (spill_for): Ditto.  Check subreg reload pseudos too.
187         (assign_by_spills): Consider subreg reload pseudos too.
188         * lra-constraints.c (simplify_operand_subreg): Use
189         lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
190         (curr_insn_transform): Recognize and do optional reloads.
191         (undo_optional_reloads): New.
192         (lra_undo_inheritance): Call undo_optional_reloads.
193
194 2013-07-05  Thomas Quinot  <quinot@adacore.com>
195
196         * tree-complex.c (expand_complex_operations_1): Fix typo.
197
198 2013-07-04  Tejas Belagod  <tejas.belagod@arm.com>
199
200         * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
201         (tune_params): New member 'const vec_costs'.
202         * config/aarch64/aarch64.c (generic_vector_cost): New.
203         (generic_tunings): New member 'generic_vector_cost'.
204         (aarch64_builtin_vectorization_cost): New.
205         (aarch64_add_stmt_cost): New.
206         (TARGET_VECTORIZE_ADD_STMT_COST): New.
207         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
208
209 2013-07-03  Jakub Jelinek  <jakub@redhat.com>
210
211         PR target/57777
212         * config/i386/predicates.md (vsib_address_operand): Disallow
213         SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
214
215 2013-07-03  Hans-Peter Nilsson  <hp@bitrange.com>
216
217         PR middle-end/55030
218         * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
219         expand_builtin_setjmp_receiver.
220         (expand_label): Adjust, call expand_builtin_setjmp_receiver
221         with NULL for the label parameter.
222         * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
223         the frame-pointer.  Adjust comments.
224         [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
225         only if LABEL is non-NULL.
226
227 2013-07-03  Yufeng Zhang  <yufeng.zhang@arm.com>
228
229         * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
230         (ARM_ABI_AAPCS64): Ditto.
231         (arm_abi): Ditto.
232         (ARM_DEFAULT_ABI): Ditto.
233
234 2013-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
235
236         * config/aarch64/aarch64-builtins.c
237         (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
238         * config/aarch64/aarch64-simd-builtins.def (ld1): New.
239         (st1): Likewise.
240         * config/aarch64/aarch64-simd.md
241         (aarch64_ld1<VALL:mode>): New.
242         (aarch64_st1<VALL:mode>): Likewise.
243         * config/aarch64/arm_neon.h
244         (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
245
246 2013-07-02  Sriraman Tallam  <tmsriram@google.com>
247
248         * config/i386/i386.c (gate_insert_vzeroupper): Check if
249         target ISA is AVX.
250         (ix86_option_override_internal):Turn on all -mavx target flags by
251         default as they are dependent on AVX anyway.
252
253 2013-07-02  Cary Coutant  <ccoutant@google.com>
254
255         * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
256         deterministic hash.
257         (loc_checksum_ordered): Likewise.
258         (hash_loc_operands): Remove inline keyword.
259
260 2013-07-02  Jakub Jelinek  <jakub@redhat.com>
261
262         PR tree-optimization/57741
263         * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
264         non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
265         or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
266         Allow REAL_CST step_exprs if flag_associative_math.
267         (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
268
269 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
270
271         * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
272
273 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
274
275         * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
276
277 2013-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
278
279         * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
280         encoding.
281         (iorsi3_insn): Likewise.
282         (arm_xorsi3): Likewise.
283
284 2013-07-01  Sofiane Naci  <sofiane.naci@arm.com>
285
286         * arm.md (attribute "wtype"): Delete.  Move attribute values from here
287         to ...
288         (attribute "type"): ... here, and prefix with "wmmx_".
289         (attribute "core_cycles"): Update for attribute changes.
290         * iwmmxt.md (tbcstv8qi): Update for attribute changes.
291         (tbcstv4hi): Likewise.
292         (tbcstv2si): Likewise.
293         (iwmmxt_iordi3): Likewise.
294         (iwmmxt_xordi3): Likewise.
295         (iwmmxt_anddi3): Likewise.
296         (iwmmxt_nanddi3): Likewise.
297         (iwmmxt_arm_movdi): Likewise.
298         (iwmmxt_movsi_insn): Likewise.
299         (mov<mode>_internal): Likewise.
300         (and<mode>3_iwmmxt): Likewise.
301         (ior<mode>3_iwmmxt): Likewise.
302         (xor<mode>3_iwmmxt): Likewise.
303         (add<mode>3_iwmmxt): Likewise.
304         (ssaddv8qi3): Likewise.
305         (ssaddv4hi3): Likewise.
306         (ssaddv2si3): Likewise.
307         (usaddv8qi3): Likewise.
308         (usaddv4hi3): Likewise.
309         (usaddv2si3): Likewise.
310         (sub<mode>3_iwmmxt): Likewise.
311         (sssubv8qi3): Likewise.
312         (sssubv4hi3): Likewise.
313         (sssubv2si3): Likewise.
314         (ussubv8qi3): Likewise.
315         (ussubv4hi3): Likewise.
316         (ussubv2si3): Likewise.
317         (mulv4hi3_iwmmxt): Likewise.
318         (smulv4hi3_highpart): Likewise.
319         (umulv4hi3_highpart): Likewise.
320         (iwmmxt_wmacs): Likewise.
321         (iwmmxt_wmacsz): Likewise.
322         (iwmmxt_wmacu): Likewise.
323         (iwmmxt_wmacuz): Likewise.
324         (iwmmxt_clrdi): Likewise.
325         (iwmmxt_clrv8qi): Likewise.
326         (iwmmxt_clr4hi): Likewise.
327         (iwmmxt_clr2si): Likewise.
328         (iwmmxt_uavgrndv8qi3): Likewise.
329         (iwmmxt_uavgrndv4hi3): Likewise.
330         (iwmmxt_uavgv8qi3): Likewise.
331         (iwmmxt_uavgv4hi3): Likewise.
332         (iwmmxt_tinsrb): Likewise.
333         (iwmmxt_tinsrh): Likewise.
334         (iwmmxt_tinsrw): Likewise.
335         (iwmmxt_textrmub): Likewise.
336         (iwmmxt_textrmsb): Likewise.
337         (iwmmxt_textrmuh): Likewise.
338         (iwmmxt_textrmsh): Likewise.
339         (iwmmxt_textrmw): Likewise.
340         (iwmxxt_wshufh): Likewise.
341         (eqv8qi3): Likewise.
342         (eqv4hi3): Likewise.
343         (eqv2si3): Likewise.
344         (gtuv8qi3): Likewise.
345         (gtuv4hi3): Likewise.
346         (gtuv2si3): Likewise.
347         (gtv8qi3): Likewise.
348         (gtv4hi3): Likewise.
349         (gtv2si3): Likewise.
350         (smax<mode>3_iwmmxt): Likewise.
351         (umax<mode>3_iwmmxt): Likewise.
352         (smin<mode>3_iwmmxt): Likewise.
353         (umin<mode>3_iwmmxt): Likewise.
354         (iwmmxt_wpackhss): Likewise.
355         (iwmmxt_wpackwss): Likewise.
356         (iwmmxt_wpackdss): Likewise.
357         (iwmmxt_wpackhus): Likewise.
358         (iwmmxt_wpackwus): Likewise.
359         (iwmmxt_wpackdus): Likewise.
360         (iwmmxt_wunpckihb): Likewise.
361         (iwmmxt_wunpckihh): Likewise.
362         (iwmmxt_wunpckihw): Likewise.
363         (iwmmxt_wunpckilb): Likewise.
364         (iwmmxt_wunpckilh): Likewise.
365         (iwmmxt_wunpckilw): Likewise.
366         (iwmmxt_wunpckehub): Likewise.
367         (iwmmxt_wunpckehuh): Likewise.
368         (iwmmxt_wunpckehuw): Likewise.
369         (iwmmxt_wunpckehsb): Likewise.
370         (iwmmxt_wunpckehsh): Likewise.
371         (iwmmxt_wunpckehsw): Likewise.
372         (iwmmxt_wunpckelub): Likewise.
373         (iwmmxt_wunpckeluh): Likewise.
374         (iwmmxt_wunpckeluw): Likewise.
375         (iwmmxt_wunpckelsb): Likewise.
376         (iwmmxt_wunpckelsh): Likewise.
377         (iwmmxt_wunpckelsw): Likewise.
378         (ror<mode>3): Likewise.
379         (ashr<mode>3_iwmmxt): Likewise.
380         (lshr<mode>3_iwmmxt): Likewise.
381         (ashl<mode>3_iwmmxt): Likewise.
382         (ror<mode>3_di): Likewise.
383         (ashr<mode>3_di): Likewise.
384         (lshr<mode>3_di): Likewise.
385         (ashl<mode>3_di): Likewise.
386         (iwmmxt_wmadds): Likewise.
387         (iwmmxt_wmaddu): Likewise.
388         (iwmmxt_tmia): Likewise.
389         (iwmmxt_tmiaph): Likewise.
390         (iwmmxt_tmiabb): Likewise.
391         (iwmmxt_tmiatb): Likewise.
392         (iwmmxt_tmiabt): Likewise.
393         (iwmmxt_tmiatt): Likewise.
394         (iwmmxt_tmovmskb): Likewise.
395         (iwmmxt_tmovmskh): Likewise.
396         (iwmmxt_tmovmskw): Likewise.
397         (iwmmxt_waccb): Likewise.
398         (iwmmxt_wacch): Likewise.
399         (iwmmxt_waccw): Likewise.
400         (iwmmxt_waligni): Likewise.
401         (iwmmxt_walignr): Likewise.
402         (iwmmxt_walignr0): Likewise.
403         (iwmmxt_walignr1): Likewise.
404         (iwmmxt_walignr2): Likewise.
405         (iwmmxt_walignr3): Likewise.
406         (iwmmxt_wsadb): Likewise.
407         (iwmmxt_wsadh): Likewise.
408         (iwmmxt_wsadbz): Likewise.
409         (iwmmxt_wsadhz): Likewise.
410         * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
411         (iwmmxt_wabsdiffb): Likewise.
412         (iwmmxt_wabsdiffh): Likewise.
413         (iwmmxt_wabsdiffw): Likewise.
414         (iwmmxt_waddsubhx): Likewise
415         (iwmmxt_wsubaddhx): Likewise.
416         (addc<mode>3): Likewise.
417         (iwmmxt_avg4): Likewise.
418         (iwmmxt_avg4r): Likewise.
419         (iwmmxt_wmaddsx): Likewise.
420         (iwmmxt_wmaddux): Likewise.
421         (iwmmxt_wmaddsn): Likewise.
422         (iwmmxt_wmaddun): Likewise.
423         (iwmmxt_wmulwsm): Likewise.
424         (iwmmxt_wmulwum): Likewise.
425         (iwmmxt_wmulsmr): Likewise.
426         (iwmmxt_wmulumr): Likewise.
427         (iwmmxt_wmulwsmr): Likewise.
428         (iwmmxt_wmulwumr): Likewise.
429         (iwmmxt_wmulwl): Likewise.
430         (iwmmxt_wqmulm): Likewise.
431         (iwmmxt_wqmulwm): Likewise.
432         (iwmmxt_wqmulmr): Likewise.
433         (iwmmxt_wqmulwmr): Likewise.
434         (iwmmxt_waddbhusm): Likewise.
435         (iwmmxt_waddbhusl): Likewise.
436         (iwmmxt_wqmiabb): Likewise.
437         (iwmmxt_wqmiabt): Likewise.
438         (iwmmxt_wqmiatb): Likewise.
439         (iwmmxt_wqmiatt): Likewise.
440         (iwmmxt_wqmiabbn): Likewise.
441         (iwmmxt_wqmiabtn): Likewise.
442         (iwmmxt_wqmiatbn): Likewise.
443         (iwmmxt_wqmiattn): Likewise.
444         (iwmmxt_wmiabb): Likewise.
445         (iwmmxt_wmiabt): Likewise.
446         (iwmmxt_wmiatb): Likewise.
447         (iwmmxt_wmiatt): Likewise.
448         (iwmmxt_wmiabbn): Likewise.
449         (iwmmxt_wmiabtn): Likewise.
450         (iwmmxt_wmiatbn): Likewise.
451         (iwmmxt_wmiattn): Likewise.
452         (iwmmxt_wmiawbb): Likewise.
453         (iwmmxt_wmiawbt): Likewise.
454         (iwmmxt_wmiawtb): Likewise.
455         (iwmmxt_wmiawtt): Likewise.
456         (iwmmxt_wmiawbbn): Likewise.
457         (iwmmxt_wmiawbtn): Likewise.
458         (iwmmxt_wmiawtbn): Likewise.
459         (iwmmxt_wmiawttn): Likewise.
460         (iwmmxt_wmerge): Likewise.
461         (iwmmxt_tandc<mode>3): Likewise.
462         (iwmmxt_torc<mode>3): Likewise.
463         (iwmmxt_torvsc<mode>3): Likewise.
464         (iwmmxt_textrc<mode>3): Likewise.
465         * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
466         (wmmxt_pack): Likewise.
467         (wmmxt_mult_c1): Likewise.
468         (wmmxt_mult_c2): Likewise.
469         (wmmxt_alu_c1): Likewise.
470         (wmmxt_alu_c2): Likewise.
471         (wmmxt_alu_c3): Likewise.
472         (wmmxt_transfer_c1): Likewise.
473         (wmmxt_transfer_c2): Likewise.
474         (wmmxt_transfer_c3): Likewise.
475         (marvell_f_iwmmxt_wstr): Likewise.
476         (marvell_f_iwmmxt_wldr): Likewise.
477
478 2013-06-29  Yufeng Zhang  <yufeng.zhang@arm.com>
479
480         * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
481
482 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
483
484         Revert:
485         2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
486         * lra-constraints.c (need_for_split_p): Check call used hard regs
487         living through calls.
488
489         * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
490         call used regs for call insn.
491
492 2013-06-28  Jakub Jelinek  <jakub@redhat.com>
493
494         PR target/57736
495         * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
496         mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
497
498 2013-06-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
499
500         * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
501
502 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
503
504         * lra-constraints.c (need_for_split_p): Check call used hard regs
505         living through calls.
506
507 2013-06-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
508
509         PR target/57744
510         * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
511         to tie with any other modes.  Eliminate Altivec vector mode tests,
512         since these are a subset of ALTIVEC or VSX vector modes.  Simplify
513         code, to return 0 if testing MODE2 for a condition, if we've
514         already tested MODE1 for the same condition.
515
516 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
517
518         * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
519         layout.
520
521 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
522
523         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
524         Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
525
526 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
527
528         * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
529         Define.
530         (aarch64_symbolic_constant_p): Remove.
531         * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
532         static.  Fix line length and white space.
533         (aarch64_symbolic_constant_p): Remove.
534         * config/aarch64/predicates.md (aarch64_valid_symref):
535         Use aarch64_classify_symbol_expression.
536
537 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
538
539         * config/arm/constraints.md (Ts): New constraint.
540         * config/arm/arm.md (arm_movqi_insn): Add alternatives for
541         16-bit encodings.
542         (compare_scc): Use "Ts" constraint for operand 0.
543         (ior_scc_scc): Likewise.
544         (and_scc_scc): Likewise.
545         (and_scc_scc_nodom): Likewise.
546         (ior_scc_scc_cmp): Likewise for operand 7.
547         (and_scc_scc_cmp): Likewise.
548         * config/arm/thumb2.md (thumb2_movsi_insn):
549         Add alternatives for 16-bit encodings.
550         (thumb2_movhi_insn): Likewise.
551         (thumb2_movsicc_insn): Likewise.
552         (thumb2_and_scc): Take 'and' outside cond_exec.  Use "Ts" constraint.
553         (thumb2_negscc): Use "Ts" constraint.
554         Move mvn instruction outside cond_exec block.
555         * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
556         for 16-bit encodings.
557
558 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
559
560         * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
561         encoding.
562         (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
563         (mulsi3subsi): Likewise.
564         (mulsidi3adddi): Likewise.
565         (mulsidi3_v6): Likewise.
566         (umulsidi3_v6): Likewise.
567         (umulsidi3adddi_v6): Likewise.
568         (smulsi3_highpart_v6): Likewise.
569         (umulsi3_highpart_v6): Likewise.
570         (mulhisi3tb): Likewise.
571         (mulhisi3bt): Likewise.
572         (mulhisi3tt): Likewise.
573         (maddhisi4): Likewise.
574         (maddhisi4tb): Likewise.
575         (maddhisi4tt): Likewise.
576         (maddhidi4): Likewise.
577         (maddhidi4tb): Likewise.
578         (maddhidi4tt): Likewise.
579         (zeroextractsi_compare0_scratch): Likewise.
580         (insv_zero): Likewise.
581         (insv_t2): Likewise.
582         (anddi_notzesidi_di): Likewise.
583         (anddi_notsesidi_di): Likewise.
584         (andsi_notsi_si): Likewise.
585         (iordi_zesidi_di): Likewise.
586         (xordi_zesidi_di): Likewise.
587         (andsi_iorsi3_notsi): Likewise.
588         (smax_0): Likewise.
589         (smax_m1): Likewise.
590         (smin_0): Likewise.
591         (not_shiftsi): Likewise.
592         (unaligned_loadsi): Likewise.
593         (unaligned_loadhis): Likewise.
594         (unaligned_loadhiu): Likewise.
595         (unaligned_storesi): Likewise.
596         (unaligned_storehi): Likewise.
597         (extv_reg): Likewise.
598         (extzv_t2): Likewise.
599         (divsi3): Likewise.
600         (udivsi3): Likewise.
601         (arm_zero_extendhisi2addsi): Likewise.
602         (arm_zero_extendqisi2addsi): Likewise.
603         (compareqi_eq0): Likewise.
604         (arm_extendhisi2_v6): Likewise.
605         (arm_extendqisi2addsi): Likewise.
606         (arm_movt): Likewise.
607         (thumb2_ldrd): Likewise.
608         (thumb2_ldrd_base): Likewise.
609         (thumb2_ldrd_base_neg): Likewise.
610         (thumb2_strd): Likewise.
611         (thumb2_strd_base): Likewise.
612         (thumb2_strd_base_neg): Likewise.
613         (arm_negsi2): Add alternative for 16-bit encoding.
614         (arm_one_cmplsi2): Likewise.
615
616 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
617
618         * config/arm/predicates.md (arm_cond_move_operator): New predicate.
619         * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
620         (movdfcc): Likewise.
621         * config/arm/vfp.md (*thumb2_movsf_vfp):
622         Disable predication for arm_restrict_it.
623         (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
624         (*thumb2_movdfcc_vfp): Likewise.
625         (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
626         *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
627         *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
628         *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
629         *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
630         *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
631         *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
632         *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
633         *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
634         *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
635         *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
636         *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
637         Disable predication for arm_restrict_it.
638
639 2013-06-28  Kirill Yukhin  <kirill.yukhin@intel.com>
640
641         * config/i386/bmiintrin.h (_bextr_u32): New.
642         (_bextr_u64): Ditto.
643
644 2013-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
645
646         * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
647         (mips64r5900el-*-elf*): Include mips/n32-elf.h.
648         * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
649         (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
650         * config/mips/n32-elf.h: ...this new file.
651
652 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
653
654         PR target/57224
655         * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
656         IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
657
658 2013-06-27  Catherine Moore <clm@codesourcery.com>
659
660         * config/mips/mips-tables.opt: Regenerate.
661         * config/mips/mips-cpus.def: Add m14ke and m14kec.
662         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
663         * doc/invoke.texi: Add -m14kc.
664
665 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
666
667         PR target/57623
668         * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
669         constraints of operand 1 and 2.
670
671         PR target/57623
672         * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
673         to match RTL canonicalization.  Swap predicates and
674         constraints of operand 1 and 2.
675
676 2013-06-27  Vladimir Makarov  <vmakarov@redhat.com>
677
678         * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
679         Process OP_INOUT regs for splitting too.
680
681 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
682
683         * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
684         decl before the loop, initialize to NULL.
685         (vectorizable_load): Initialize ptr_incr to NULL.
686
687 2013-06-27  Martin Jambor  <mjambor@suse.cz>
688
689         PR lto/57208
690         * ipa-ref.h (ipa_maybe_record_reference): Declare.
691         * ipa-ref.c (ipa_maybe_record_reference): New function.
692         * cgraphclones.c (cgraph_create_virtual_clone): Use it.
693         * ipa-cp.c (create_specialized_node): Record potential references from
694         aggvals.
695         * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
696
697 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
698
699         * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
700         parameter 'mode' of type 'enum machine_mode mode'; change to pass
701         'mode' to force_reg.
702         (aarch64_add_offset): Update calls to aarch64_force_temporary.
703         (aarch64_expand_mov_immediate): Likewise.
704
705 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
706
707         * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
708         'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
709
710 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
711
712         * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
713         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
714         (struct machine_function): Add tbegin_p.
715         (s390_canonicalize_comparison): Fold CC mode compares to
716         conditional jump if possible.
717         (s390_emit_jump): Return the emitted jump.
718         (s390_branch_condition_mask, s390_branch_condition_mnemonic):
719         Handle CCRAWmode compares.
720         (s390_option_override): Default to -mhtm if available.
721         (s390_reg_clobbered_rtx): Handle floating point regs as well.
722         (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
723         FPRs instead of df_regs_ever_live_p.
724         (s390_optimize_nonescaping_tx): New function.
725         (s390_init_frame_layout): Extend clobbered_regs array to cover
726         FPRs as well.
727         (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
728         (s390_expand_tbegin): New function.
729         (enum s390_builtin): New enum definition.
730         (code_for_builtin): New array definition.
731         (s390_init_builtins): New function.
732         (s390_expand_builtin): New function.
733         (TARGET_INIT_BUILTINS): Define.
734         (TARGET_EXPAND_BUILTIN): Define.
735         * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
736         * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
737         (s390_alc_comparison): Likewise.
738         * config/s390/s390-modes.def: Add CCRAWmode.
739         * config/s390/s390.h (processor_flags): Add PF_TX.
740         (TARGET_CPU_HTM): Define macro.
741         (TARGET_HTM): Define macro.
742         (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
743         * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
744         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
745         (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
746         (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
747         (TBEGIN_MASK, TBEGINC_MASK): New constants.
748         ("*cc_to_int"): Move up.
749         ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
750         constants other than 0.
751         ("*ccraw_to_int"): New insn and splitter definition.
752         ("tbegin", "tbegin_nofloat", "tbegin_retry")
753         ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
754         ("tx_assist"): New expander.
755         ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
756         ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
757         * config/s390/s390.opt: Add -mhtm option.
758         * config/s390/s390-protos.h (s390_emit_jump): Add return type.
759         * config/s390/htmxlintrin.h: New file.
760         * config/s390/htmintrin.h: New file.
761         * config/s390/s390intrin.h: New file.
762         * doc/extend.texi: Document htm builtins.
763         * config.gcc: Add the new header files to extra_headers.
764
765 2013-06-26  Thomas Schwinge  <thomas@codesourcery.com>
766
767         * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
768         (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
769
770 2013-06-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
771             Pat Haugen <pthaugen@us.ibm.com>
772             Peter Bergner <bergner@vnet.ibm.com>
773
774         * config/rs6000/power8.md: New.
775         * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
776         setting for power8 entry.
777         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
778         * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
779         test for Power4/Power5 only.
780         (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
781         support.
782         (force_new_group): Adjust comment.
783         * config/rs6000/rs6000.md: Include power8.md.
784
785 2013-06-26  Greta Yorsh  <Greta.Yorsh@arm.com>
786
787         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
788         * config/arm/arm-protos.h (arm_max_conditional_execute): New
789         declaration.
790         (tune_params): Update comment.
791         * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
792         (arm_max_conditional_execute): New function.
793         (thumb2_final_prescan_insn): Use max_insn_skipped and
794         MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
795
796 2013-06-25  Jakub Jelinek  <jakub@redhat.com>
797
798         PR tree-optimization/57705
799         * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
800         SSA_NAME step, provided that it is not defined inside the loop.
801         (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
802         (get_initial_def_for_induction): Handle SSA_NAME IV step.
803
804 2013-06-25  Martin Jambor  <mjambor@suse.cz>
805
806         PR middle-end/57670
807         * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
808         * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
809         calls in the dump.
810         (ipa_note_param_call): Initialize member_ptr flag.
811         (ipa_analyze_indirect_call_uses): Set member_ptr flag.
812         (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
813         (ipa_write_indirect_edge_info): Stream member_ptr flag.
814         (ipa_read_indirect_edge_info): Likewise.
815
816 2013-06-25  Richard Biener  <rguenther@suse.de>
817
818         PR middle-end/56977
819         * passes.c (init_optimization_passes): Move pass_fold_builtins
820         and pass_dce earlier with -Og.
821
822 2013-06-25  Eric Botcazou  <ebotcazou@adacore.com>
823
824         * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
825         <BIT_FIELD_REF>: Remove trailing TAB.
826         * varasm.c (output_constructor_bitfield): Fix formatting glitch and
827         remove blank line.
828
829 2013-06-24  Martin Jambor  <mjambor@suse.cz>
830
831         PR tree-optimization/57358
832         * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
833         (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
834         (ipa_analyze_params_uses): Generate pessimistic info when true.
835
836 2013-06-24  Martin Jambor  <mjambor@suse.cz>
837
838         PR tree-optimization/57539
839         * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
840         global.inlined_to of the new node to it.  All callers changed.
841         * ipa-inline-transform.c (clone_inlined_nodes): New variable
842         inlining_into, pass it to cgraph_clone_node.
843         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
844         ipa_free_edge_args_substructures.
845         (ipa_edge_duplication_hook): Only add edges from inlined nodes to
846         rdesc linked list.  Do not assert rdesc edges have inlined caller.
847         Assert we have found an rdesc in the rdesc list.
848
849 2013-06-24  Richard Biener  <rguenther@suse.de>
850
851         * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
852         (pointer_set_lookup): Declare.
853         (class pointer_map): New template class implementing a
854         generic pointer to T map.
855         (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
856         pointer_map<T>::contains, pointer_map<T>::insert,
857         pointer_map<T>::traverse): New functions.
858         * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
859         (pointer_set_lookup): New function.
860         (pointer_set_contains): Use pointer_set_lookup.
861         (pointer_set_insert): Likewise.
862         (insert_aux): Remove.
863         (struct pointer_map_t): Embed a pointer_set_t.
864         (pointer_map_create): Adjust.
865         (pointer_map_destroy): Likewise.
866         (pointer_map_contains): Likewise.
867         (pointer_map_insert): Likewise.
868         (pointer_map_traverse): Likewise.
869         * tree-streamer.h (struct streamer_tree_cache_d): Use a
870         pointer_map<unsigned> instead of a pointer_map_t.
871         * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
872         (streamer_tree_cache_lookup): Likewise.
873         (streamer_tree_cache_create): Likewise.
874         (streamer_tree_cache_delete): Likewise.
875         * lto-streamer.h (struct lto_tree_ref_encoder): Use a
876         pointer_map<unsigned> instead of a pointer_map_t.
877         (lto_init_tree_ref_encoder): Adjust.
878         (lto_destroy_tree_ref_encoder): Likewise.
879         * lto-section-out.c (lto_output_decl_index): Likewise.
880         (lto_record_function_out_decl_state): Likewise.
881         * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
882
883 2013-06-24  Richard Biener  <rguenther@suse.de>
884
885         PR tree-optimization/57488
886         * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
887
888 2013-06-24  Alan Modra  <amodra@gmail.com>
889
890         * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
891         (gen_easy_altivec_constant): Likewise.
892         * config/rs6000/predicates.md (easy_vector_constant_add_self,
893         easy_vector_constant_msb): Likewise.
894
895 2013-06-23  Jakub Jelinek  <jakub@redhat.com>
896
897         PR target/57688
898         * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
899         add missing return true.
900
901 2013-06-23  Oleg Endo <olegendo@gcc.gnu.org>
902
903         PR target/52483
904         * config/sh/predicates.md (general_extend_operand): Invoke
905         general_movsrc_operand for memory operands.
906         (general_movsrc_operand): Allow reg+reg addressing, do not use
907         general_operand for memory operands.
908
909 2013-06-23  Sriraman Tallam  <tmsriram@google.com>
910
911         * config/i386/i386.c (ix86_pragma_target_parse):  Restore target
912         when current target options does not apply.
913         * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
914         * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
915         * config/i386/bmiintrin.h: Pass appropriate target
916         attributes to header.
917         * config/i386/mmintrin.h: Ditto.
918         * config/i386/nmmintrin.h: Ditto.
919         * config/i386/avx2intrin.h: Ditto.
920         * config/i386/fxsrintrin.h: Ditto.
921         * config/i386/tbmintrin.h: Ditto.
922         * config/i386/xsaveintrin.h: Ditto.
923         * config/i386/f16cintrin.h: Ditto.
924         * config/i386/xtestintrin.h: Ditto.
925         * config/i386/xsaveoptintrin.h: Ditto.
926         * config/i386/bmi2intrin.h: Ditto.
927         * config/i386/lzcntintrin.h: Ditto.
928         * config/i386/smmintrin.h: Ditto.
929         * config/i386/wmmintrin.h: Ditto.
930         * config/i386/x86intrin.h: Remove all header include guards.
931         * config/i386/prfchwintrin.h: Ditto.
932         * config/i386/pmmintrin.h: Ditto.
933         * config/i386/tmmintrin.h: Ditto.
934         * config/i386/xmmintrin.h: Ditto.
935         * config/i386/popcntintrin.h: Ditto.
936         * config/i386/rdseedintrin.h: Ditto.
937         * config/i386/ammintrin.h: Ditto.
938         * config/i386/emmintrin.h: Ditto.
939         * config/i386/immintrin.h: Remove all header include guards.
940         * config/i386/fma4intrin.h: Ditto.
941         * config/i386/lwpintrin.h: Ditto.
942         * config/i386/xopintrin.h: Ditto.
943         * config/i386/ia32intrin.h: Ditto.
944         * config/i386/avxintrin.h: Ditto.
945         * config/i386/rtmintrin.h: Ditto.
946         * config/i386/fmaintrin.h: Ditto.
947         * config/i386/mm3dnow.h: Ditto.
948
949 2013-06-22  Sriraman Tallam  <tmsriram@google.com>
950
951         * common/config/i386/i386-common.c: Handle LZCNT.
952
953 2013-06-22  Andi Kleen  <ak@linux.intel.com>
954
955         * doc/extend.texi: Use __atomic_store_n instead of
956         __atomic_store in HLE example.
957
958 2013-06-22  Oleg Endo <olegendo@gcc.gnu.org>
959
960         * config/sh/sh.c: Remove <cstdlib> workaround.
961
962 2013-06-21  Andi Kleen  <ak@linux.intel.com>
963
964         * doc/extend.texi: Dont use __atomic_clear in HLE example.  Fix typo.
965
966 2013-06-21  Andi Kleen  <ak@linux.intel.com>
967
968         * doc/extend.texi: Document that __atomic_clear and
969           __atomic_test_and_set should only be used with bool.
970
971 2013-06-20  Jan Hubicka  <jh@suse.cz>
972
973         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
974         types_same_for_odr.
975         * tree.c (decls_same_for_odr): New function.
976         (same_for_edr): New function.
977         (types_same_for_odr): New function.
978         (get_binfo_at_offset): Use it.
979         * tree.h (types_same_for_odr): Declare.
980
981 2013-06-20  Oleg Endo <olegendo@gcc.gnu.org>
982             Jason Merrill  <jason@redhat.com>
983
984         * system.h: Include <cstdlib> as well as <stdlib.h>.
985
986 2013-06-20  Uros Bizjak  <ubizjak@gmail.com>
987
988         PR target/57655
989         * config/i386/i386.c (construct_container): Report error if
990         long double is used with disabled x87 float returns.
991
992 2013-06-20  Jan Hubicka  <jh@suse.cz>
993
994         * lto-cgraph.c (input_symtab): Do not set cgraph state.
995
996 2013-06-20  Joern Rennecke <joern.rennecke@embecosm.com>
997
998         PR rtl-optimization/57425
999         PR rtl-optimization/57569
1000         * alias.c (write_dependence_p): Remove parameters mem_mode and
1001         canon_mem_addr.  Add parameters x_mode, x_addr and x_canonicalized.
1002         Changed all callers.
1003         (canon_anti_dependence): Get comments and semantics in sync.
1004         Add parameter mem_canonicalized.  Changed all callers.
1005         * rtl.h (canon_anti_dependence): Update prototype.
1006
1007 2013-06-20  Richard Biener  <rguenther@suse.de>
1008
1009         * data-streamer-in.c (streamer_read_uhwi): Optimize single
1010         byte case, inline streamer_read_uchar and defer section
1011         overrun check.
1012
1013 2013-06-20  Richard Biener  <rguenther@suse.de>
1014
1015         PR tree-optimization/57584
1016         * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
1017         SSA names into the expanded expression that take part in
1018         abnormal coalescing.
1019
1020 2013-06-19    <singhai@google.com>
1021
1022         * gcov.c (print_usage): Handle new option.
1023         (process_args): Ditto.
1024         (get_gcov_intermediate_filename): New function.
1025         (output_intermediate_file): New function.
1026         (output_gcov_file): New function
1027         (generate_results): Handle new option.
1028         (release_function): Relase demangled name.
1029         (read_graph_file): Handle demangled name.
1030         (output_lines): Ditto.
1031         * doc/gcov.texi: Document gcov intermediate format.
1032
1033 2013-06-19  Vladimir Makarov  <vmakarov@redhat.com>
1034
1035         PR bootstrap/57604
1036         * lra.c (emit_add3_insn, emit_add2_insn): New functions.
1037         (lra_emit_add): Use the functions.  Add comment about Y as an
1038         address segment.
1039
1040 2013-06-19  David Edelsohn  <dje.gcc@gmail.com>
1041
1042         PR driver/57652
1043         * collect2.c (collect_atexit): New.
1044         (collect_exit): Delete.
1045         (main): Register collect_atexit with atexit.
1046         (collect_wait): Change collect_exit to exit.
1047         (do_wait): Same.
1048         * collect2.h (collect_exit): Delete.
1049         * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
1050
1051 2013-06-19  Wei Mi  <wmi@google.com>
1052
1053         PR rtl-optimization/57518
1054         * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
1055         if regno is used in paradoxical subreg.
1056         (update_equiv_regs): Check pdx_subregs[regno] before
1057         set a reg to be equivalent with a mem.
1058
1059 2013-06-19  Matthias Klose  <doko@ubuntu.com>
1060
1061         PR driver/57651
1062         * file-find.h (find_a_file): Add a mode parameter.
1063         * file-find.c (find_a_file): Likewise.
1064         * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
1065         with X_OK for the executables.
1066         * collect2.c (main): Call find_a_file with X_OK.
1067
1068 2013-06-19  Steve Ellcey  <sellcey@mips.com>
1069
1070         PR target/56942
1071         * config/mips/mips.md (casesi_internal_mips16_<mode>):
1072         Use NEXT_INSN instead of next_real_insn.
1073
1074 2013-06-19  Jan Hubicka  <jh@suse.cz>
1075
1076         * cgraph.h (const_value_known_p): Replace by ...
1077         (ctor_for_folding): .. this one.
1078         * cgraphunit.c (process_function_and_variable_attributes): Use it.
1079         * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
1080         * expr.c (expand_expr_real_1): Likewise.
1081         (string_constant): Likewise.
1082         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
1083         * ipa.c (process_references): Likewise.
1084         (symtab_remove_unreachable_nodes): Likewise.
1085         * ipa-inline-analysis.c (param_change_prob): Likewise.
1086         * gimple-fold.c (canonicalize_constructor_val): Likewise.
1087         (get_base_constructor): Likwise.
1088         * varpool.c (varpool_remove_node): Likewise.
1089         (varpool_remove_initializer): LIkewise.
1090         (dump_varpool_node): LIkwise.
1091         (const_value_known_p): Rewrite to ...
1092         (ctor_for_folding): ... this one.
1093
1094 2013-06-19  Jakub Jelinek  <jakub@redhat.com>
1095
1096         PR driver/57651
1097         * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
1098         PERSONALITY in $PATH derived prefixes.
1099
1100 2013-06-19  Jeff Law  <law@redhat.com>
1101
1102         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
1103         in comment.
1104
1105         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
1106         (simplify_bitwise_binary): Use it to simpify certain binary ops on
1107         booleans.
1108
1109 2013-06-19  Sofiane Naci  <sofiane.naci@arm.com>
1110
1111         * config/arm/vfp.md: Move VFP instruction classification documentation
1112         to ...
1113         * config/arm/arm.md: ... here.  Update instruction classification
1114         documentation.
1115
1116 2013-06-19  Richard Earnshaw  <rearnsha@arm.com>
1117
1118         arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
1119         (peepholes for eq(reg, not-0)): Ensure condition register is dead after
1120         pattern.  Use more efficient sequences on ARMv5 and Thumb2.
1121
1122 2013-06-19  Steven Bosscher  <steven@gcc.gnu.org>
1123
1124         PR target/57609
1125         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
1126         with NEXT_INSN.  Use tablejump_p to check for jump table data
1127         insns.
1128
1129 2013-06-19  Paolo Carlini  <paolo.carlini@oracle.com>
1130
1131         PR c++/56544
1132         * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
1133         that now in C++ the value is correct per the C++ standards.
1134
1135 2013-06-19  Richard Biener  <rguenther@suse.de>
1136
1137         * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
1138         for global context.
1139
1140 2013-06-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1141
1142         Revert:
1143         2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1144
1145         PR target/57609
1146         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
1147         with next_active_insn.
1148
1149 2013-06-18  Sriraman Tallam  <tmsriram@google.com>
1150
1151         * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
1152         functions are inlined during failures to flag an error.
1153         * tree-inline.c (expand_call_inline): Allow the error to be flagged
1154         in early inline pass.
1155
1156 2013-06-18  H.J. Lu  <hongjiu.lu@intel.com>
1157
1158         * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
1159         in comments.
1160
1161 2013-06-18  Julian Brown  <julian@codesourcery.com>
1162
1163         * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
1164         Permit virtual register pre-reload if !strict.
1165         (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
1166         change.
1167         * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
1168         prototype.
1169         * config/arm/neon.md (movmisalign<mode>): Use
1170         neon_perm_struct_or_reg_operand instead of
1171         neon_struct_or_register_operand.
1172         (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
1173         neon_permissive_struct_operand instead of neon_struct_operand.
1174         * config/arm/constraints.md (Un, Um, Us): Adjust calls to
1175         neon_vector_mem_operand.
1176         * config/arm/predicates.md (neon_struct_operand): Adjust call to
1177         neon_vector_mem_operand.
1178         (neon_permissive_struct_operand): New.
1179         (neon_struct_or_register_operand): Rename to...
1180         (neon_perm_struct_or_reg_operand): This. Adjust call to
1181         neon_vector_mem_operand.
1182
1183 2013-06-18  Richard Biener  <rguenther@suse.de>
1184
1185         * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
1186         * lto-streamer.h: Include pointer-set.h.
1187         (struct lto_decl_slot): Remove.
1188         (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
1189         Remove next_index entry.
1190         (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
1191         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
1192         (lto_init_tree_ref_encoder): Adjust.
1193         (lto_destroy_tree_ref_encoder): Likewise.
1194         * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
1195         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
1196         (lto_output_decl_index): Adjust.
1197         (lto_new_out_decl_state): Likewise.
1198         (lto_record_function_out_decl_state): Likewise.
1199         * lto-streamer-out.c (copy_function): Likewise.
1200
1201 2013-06-18  Richard Biener  <rguenther@suse.de>
1202
1203         * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
1204         * cgraphunit.c: Include cfgloop.h.
1205         (init_lowered_empty_function): Initialize the loop tree.
1206         (assemble_thunk): Insert new BBs into loops.
1207
1208 2013-06-18  Richard Biener  <rguenther@suse.de>
1209
1210         * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
1211         * tree-streamer.c (streamer_tree_cache_create): Make maintaining
1212         the map from cache entry to cache index optional.
1213         (streamer_tree_cache_replace_tree): Adjust accordingly.
1214         (streamer_tree_cache_append): Likewise.
1215         (streamer_tree_cache_delete): Likewise.
1216         * lto-streamer-in.c (lto_data_in_create): Do not maintain the
1217         streamer cache map from cache entry to cache index.
1218         * lto-streamer-out.c (create_output_block): Adjust.
1219
1220 2013-06-18  Sofiane Naci  <sofiane.naci@arm.com>
1221
1222         * config/arm/arm.md (attribute "insn"): Move multiplication and
1223         division attributes to...
1224         (attribute "type"): ... here.  Remove mult.
1225         (attribute "mul32"): New attribute.
1226         (attribute "mul64"): Add umaal.
1227         (*arm_mulsi3): Update attributes.
1228         (*arm_mulsi3_v6): Likewise.
1229         (*thumb_mulsi3): Likewise.
1230         (*thumb_mulsi3_v6): Likewise.
1231         (*mulsi3_compare0): Likewise.
1232         (*mulsi3_compare0_v6): Likewise.
1233         (*mulsi_compare0_scratch): Likewise.
1234         (*mulsi_compare0_scratch_v6): Likewise.
1235         (*mulsi3addsi): Likewise.
1236         (*mulsi3addsi_v6): Likewise.
1237         (*mulsi3addsi_compare0): Likewise.
1238         (*mulsi3addsi_compare0_v6): Likewise.
1239         (*mulsi3addsi_compare0_scratch): Likewise.
1240         (*mulsi3addsi_compare0_scratch_v6): Likewise.
1241         (*mulsi3subsi): Likewise.
1242         (*mulsidi3adddi): Likewise.
1243         (*mulsi3addsi_v6): Likewise.
1244         (*mulsidi3adddi_v6): Likewise.
1245         (*mulsidi3_nov6): Likewise.
1246         (*mulsidi3_v6): Likewise.
1247         (*umulsidi3_nov6): Likewise.
1248         (*umulsidi3_v6): Likewise.
1249         (*umulsidi3adddi): Likewise.
1250         (*umulsidi3adddi_v6): Likewise.
1251         (*smulsi3_highpart_nov6): Likewise.
1252         (*smulsi3_highpart_v6): Likewise.
1253         (*umulsi3_highpart_nov6): Likewise.
1254         (*umulsi3_highpart_v6): Likewise.
1255         (mulhisi3): Likewise.
1256         (*mulhisi3tb): Likewise.
1257         (*mulhisi3bt): Likewise.
1258         (*mulhisi3tt): Likewise.
1259         (maddhisi4): Likewise.
1260         (*maddhisi4tb): Likewise.
1261         (*maddhisi4tt): Likewise.
1262         (maddhidi4): Likewise.
1263         (*maddhidi4tb): Likewise.
1264         (*maddhidi4tt): Likewise.
1265         (divsi3): Likewise.
1266         (udivsi3): Likewise.
1267         * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
1268         (thumb2_mulsi_short_compare0): Likewise.
1269         (thumb2_mulsi_short_compare0_scratch): Likewise.
1270         * config/arm/arm1020e.md (1020mult1): Update attribute change.
1271         (1020mult2): Likewise.
1272         (1020mult3): Likewise.
1273         (1020mult4): Likewise.
1274         (1020mult5): Likewise.
1275         (1020mult6): Likewise.
1276         * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
1277         change.
1278         (cortex_a15_mult64): Likewise.
1279         (cortex_a15_sdiv): Likewise.
1280         (cortex_a15_udiv): Likewise.
1281         * config/arm/arm1026ejs.md (mult1): Update attribute change.
1282         (mult2): Likewise.
1283         (mult3): Likewise.
1284         (mult4): Likewise.
1285         (mult5): Likewise.
1286         (mult6): Likewise.
1287         * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
1288         (pj4_ir_div): Likewise.
1289         * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
1290         (11_mult2): Likewise.
1291         (11_mult3): Likewise.
1292         (11_mult4): Likewise.
1293         (11_mult5): Likewise.
1294         (11_mult6): Likewise.
1295         (11_mult7): Likewise.
1296         * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
1297         (cortex_a8_mla): Likewise.
1298         (cortex_a8_mull): Likewise.
1299         (cortex_a8_smulwy): Likewise.
1300         (cortex_a8_smlald): Likewise.
1301         * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
1302         * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
1303         (cortex_r4_mul_3): Likewise.
1304         (cortex_r4_mla_4): Likewise.
1305         (cortex_r4_mla_3): Likewise.
1306         (cortex_r4_smlald): Likewise.
1307         (cortex_r4_mull): Likewise.
1308         (cortex_r4_sdiv): Likewise.
1309         (cortex_r4_udiv): Likewise.
1310         * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
1311         (cortex_a7_idiv): Likewise.
1312         * config/arm/arm926ejs.md (9_mult1): Update attribute change.
1313         (9_mult2): Likewise.
1314         (9_mult3): Likewise.
1315         (9_mult4): Likewise.
1316         (9_mult5): Likewise.
1317         (9_mult6): Likewise.
1318         * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
1319         (cortex_a53_sdiv): Likewise.
1320         (cortex_a53_udiv): Likewise.
1321         * config/arm/fa726te.md (726te_mult_op): Update attribute change.
1322         * config/arm/fmp626.md (mp626_mult1): Update attribute change.
1323         (mp626_mult2): Likewise.
1324         (mp626_mult3): Likewise.
1325         (mp626_mult4): Likewise.
1326         * config/arm/fa526.md (526_mult1): Update attribute change.
1327         (526_mult2): Likewise.
1328         * config/arm/arm-generic.md (mult): Update attribute change.
1329         (mult_ldsched_strongarm): Likewise.
1330         (mult_ldsched): Likewise.
1331         (multi_cycle): Likewise.
1332         * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
1333         * config/arm/fa606te.md (606te_mult1): Update attribute change.
1334         (606te_mult2): Likewise.
1335         (606te_mult3): Likewise.
1336         (606te_mult4): Likewise.
1337         * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
1338         (cortex_a9_mac16): Likewise.
1339         (cortex_a9_multiply): Likewise.
1340         (cortex_a9_mac): Likewise.
1341         (cortex_a9_multiply_long): Likewise.
1342         * config/arm/fa626te.md (626te_mult1): Update attribute change.
1343         (626te_mult2): Likewise.
1344         (626te_mult3): Likewise.
1345         (626te_mult4): Likewise.
1346
1347 2013-06-18  Richard Biener  <rguenther@suse.de>
1348
1349         PR lto/57334
1350         * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
1351
1352 2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1353
1354         PR target/57609
1355         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
1356         with next_active_insn.
1357
1358 2013-06-18  Alan Modra  <amodra@gmail.com>
1359
1360         * config/rs6000/rs6000.h (enum data_align): New.
1361         (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
1362         (DATA_ABI_ALIGNMENT): Define.
1363         (CONSTANT_ALIGNMENT): Correct comment.
1364         * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
1365         * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
1366
1367 2013-06-17  David Malcolm  <dmalcolm@redhat.com>
1368
1369         * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
1370         ATTRIBUTE_UNUSED marking.
1371
1372 2013-06-17  Sofiane Naci  <sofiane.naci@arm.com>
1373
1374         * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
1375         alternative and update.
1376         (aarch64_dup_lanedi): Delete.
1377         * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
1378         * config/aarch64/aarch64-simd-builtins.def: Update.
1379
1380 2013-06-17  Richard Biener  <rguenther@suse.de>
1381
1382         * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
1383         (lto_input_scc): Declare.
1384         (lto_input_tree_1): Likewise.
1385         (struct lto_stats_d): Add num_tree_bodies_output and
1386         num_pickle_refs_output.
1387         * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
1388         (lto_read_tree_1): Split out from ...
1389         (lto_read_tree): ... this.
1390         (lto_input_scc): New function.
1391         (lto_input_tree_1): Split out from ...
1392         (lto_input_tree): ... this.  Handle LTO_tree_scc.
1393         (lto_data_in_create): Create the streamer cache without hashes.
1394         * lto-streamer-out.c (create_output_block): Create the streamer
1395         cache with hashes when not doing WPA.
1396         (lto_write_tree_1): Split out from ...
1397         (lto_write_tree): ... this.
1398         (get_symbol_initial_value): New function.
1399         (lto_output_tree_1): Split out from ...
1400         (lto_output_tree): ... this.  Write trees as series of SCCs
1401         using a DFS walk via DFS_write_tree.
1402         (struct sccs, struct scc_entry): New types.
1403         (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
1404         (DFS_write_tree_body): New function.
1405         (DFS_write_tree): Likewise.
1406         (hash_tree): Likewise.
1407         (scc_entry_compare): Likewise.
1408         (hash_scc): Likewise.
1409         (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
1410         * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
1411         TREE_CHAIN as regular reference.
1412         (streamer_read_integer_cst): Remove.
1413         (streamer_get_pickled_tree): Adjust.
1414         * tree-streamer-out.c (streamer_write_chain): Disable streaming
1415         of DECL_EXTERNALs in BLOCK_VARS for now.
1416         (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
1417         reference.
1418         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
1419         Add hash value argument and record that if hashes are recorded
1420         in the cache.
1421         (streamer_tree_cache_insert_1): Adjust.
1422         (streamer_tree_cache_insert): Likewise.
1423         (streamer_tree_cache_insert_at): Rename to ...
1424         (streamer_tree_cache_replace_tree): ... this and adjust.
1425         (streamer_tree_cache_append): Adjust.
1426         (record_common_node): Likewise.
1427         (streamer_tree_cache_create): Add argument whether to
1428         record hash values together with trees.
1429         (streamer_tree_cache_delete): Adjust.
1430         * tree-streamer.h (struct streamer_tree_cache_d): Add
1431         vector of hashes.
1432         (streamer_read_integer_cst): Remove.
1433         (streamer_tree_cache_insert): Adjust.
1434         (streamer_tree_cache_append): Likewise.
1435         (streamer_tree_cache_insert_at): Rename to ...
1436         (streamer_tree_cache_replace_tree): ... this and adjust.
1437         (streamer_tree_cache_create): Add argument whether to record hashes.
1438         (streamer_tree_cache_get): Rename to ...
1439         (streamer_tree_cache_get_tree): ... this.
1440         (streamer_tree_cache_get_hash): New function.
1441         * tree.c (cache_integer_cst): New function.
1442         * tree.h (cache_integer_cst): Declare.
1443         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
1444         * lto-symtab.c (lto_varpool_replace_node): Only release
1445         DECL_INITIAL of non-prevailing decls.
1446         * varpool.c (varpool_remove_initializer): Do not release
1447         DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
1448
1449 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
1450
1451         * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
1452         (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
1453         * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
1454         (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
1455         (mul<mode>3_mul3): Handle TARGET_MIPS5900.
1456         (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
1457         (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
1458         (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
1459         instead of TARGET_64BIT.
1460         (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
1461         Require ISA_HAS_<D>DIV.
1462
1463 2013-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
1464
1465         * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
1466         (mips*-*-linux*): Move default with_llsc setting to where other
1467         defaults are set.
1468         (mips*-*-vxworks*): Move with_arch default from with_cpu block to
1469         with_arch block.
1470         (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
1471         Likewise.  Remove default with_tune setting.  Move default float
1472         setting to its own block.  Handle with_llsc in the same block as above.
1473
1474 2013-06-16  Joern Rennecke <joern.rennecke@embecosm.com>
1475
1476         PR rtl-optimization/57425
1477         PR rtl-optimization/57569
1478         * alias.c (write_dependence_p): Add new parameters mem_mode,
1479         canon_mem_addr and mem_canonicalized.  Change type of writep to bool.
1480         Changed all callers.
1481         (canon_anti_dependence): New function.
1482         * cse.c (check_dependence): Use canon_anti_dependence.
1483         * cselib.c (cselib_invalidate_mem): Likewise.
1484         * rtl.h (canon_anti_dependence): Declare.
1485
1486 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
1487
1488         * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
1489         * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
1490         ".set mips3" for 64-bit targets.
1491
1492 2013-06-15  Dehao Chen  <dehao@google.com>
1493
1494         * tree-flow.h (gimple_check_call_matching_types): Add new argument.
1495         * gimple-low.c (gimple_check_call_matching_types): Likewise.
1496         (gimple_check_call_args): Likewise.
1497         * value-prof.c (check_ic_target): Likewise.
1498         * ipa-inline.c (early_inliner): Likewise.
1499         * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
1500         * cgraph.c (cgraph_create_edge_1): Likewise.
1501         (cgraph_make_edge_direct): Likewise.
1502
1503 2013-06-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
1504
1505         PR target/57615
1506         * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
1507         rs6000_output_move_128bit to handle emitting quad memory
1508         operations.  Set attribute length to 8 bytes.
1509
1510 2013-06-14  Vidya Praveen <vidyapraveen@arm.com>
1511
1512         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
1513         New pattern.
1514         (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
1515         (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
1516         (aarch64_<su>mlsl<mode>): Likewise.
1517
1518 2013-06-14  Mike Stump  <mikestump@comcast.net>
1519
1520         * Makefile.in (TARGET_H): Add insn-codes.h.
1521
1522 2013-06-14  Alan Modra  <amodra@gmail.com>
1523
1524         PR middle-end/57134
1525         PR middle-end/57586
1526         * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
1527         EXPAND_MEMORY and EXPAND_WRITE to recursive call.  Don't use
1528         bitfield expansion when EXPAND_MEMORY.
1529         (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
1530
1531 2013-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
1532
1533         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1534         test for clearing quad memory on 32-bit later.
1535
1536 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
1537
1538         * fold-const.c (negate_expr_p): Handle VECTOR_CST.
1539         (fold_negate_expr): Likewise.
1540         (fold_real_zero_addition_p): Handle vectors.
1541         (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
1542
1543 2013-06-14  Alan Modra  <amodra@gmail.com>
1544
1545         * varasm.c (force_const_mem): Revert 2013-06-07 change.
1546
1547 2013-06-13  Jan Hubicka  <jh@suse.cz>
1548
1549         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
1550         Local comdats are not externally visible.
1551         * symtab.c (dump_symtab_base): Dump externally visible.
1552         (verify_symtab_base): Verify back links in the symtab hash.
1553
1554 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
1555
1556         * fold-const.c (operand_equal_p): Consider NOP_EXPR and
1557         CONVERT_EXPR as equal nodes.
1558
1559 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
1560
1561         * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
1562
1563 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
1564
1565         * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
1566         Generalize to complex and vector.
1567         * tree.c (build_all_ones_cst): New function.
1568         * tree.h (build_all_ones_cst): Declare it.
1569
1570 2013-06-13  Alan Modra  <amodra@gmail.com>
1571
1572         * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
1573         * config/rs6000/rs6000.md (signbittf2): New insn.
1574         (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
1575         (abstf2_internal, cmptf_internal2): Likewise.
1576         * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
1577
1578 2013-06-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
1579             Pat Haugen <pthaugen@us.ibm.com>
1580             Peter Bergner <bergner@vnet.ibm.com>
1581
1582         * config/rs6000/rs6000.c (emit_load_locked): Add support for
1583         power8 byte, half-word, and quad-word atomic instructions.
1584         (emit_store_conditional): Likewise.
1585         (rs6000_expand_atomic_compare_and_swap): Likewise.
1586         (rs6000_expand_atomic_op): Likewise.
1587
1588         * config/rs6000/sync.md (larx): Add new modes for power8.
1589         (stcx): Likewise.
1590         (AINT): New mode iterator to include TImode as well as normal
1591         integer modes on power8.
1592         (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
1593         that VSX registers are not considered.  Use AINT mode iterator
1594         instead of INT1 to allow inclusion of quad word atomic operations
1595         on power8.
1596         (load_locked<mode>): Likewise.
1597         (store_conditional<mode>): Likewise.
1598         (atomic_compare_and_swap<mode>): Likewise.
1599         (atomic_exchange<mode>): Likewise.
1600         (atomic_nand<mode>): Likewise.
1601         (atomic_fetch_<fetchop_name><mode>): Likewise.
1602         (atomic_nand_fetch<mode>): Likewise.
1603         (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
1604         each type.
1605         (ATOMIC): On power8, add QImode, HImode modes.
1606         (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
1607         modes that promote to SImode.
1608         (load_lockedti): Convert TImode arguments to PTImode, so that we
1609         get a guaranteed even/odd register pair.
1610         (load_lockedpti): Likewise.
1611         (store_conditionalti): Likewise.
1612         (store_conditionalpti): Likewise.
1613
1614         * config/rs6000/rs6000.md (QHI): New mode iterator for power8
1615         atomic load/store instructions.
1616         (HSI): Likewise.
1617
1618 2013-06-12  Richard Sandiford  <rdsandiford@googlemail.com>
1619
1620         * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
1621         loads.
1622         (insn_count): New attribute, with most cases extracted from...
1623         (length): ...here.  Redefine most cases in terms of insn_count.
1624         (single_insn): Delete.
1625         (can_delay): Use insn_count to check for single instructions.
1626         (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
1627         (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
1628         (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
1629         (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
1630         (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
1631         (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
1632         (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
1633         (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
1634         (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
1635         (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
1636         rather than "length".
1637         (tls_get_tp_<mode>): Likewise.  Remove redundant "no_delay" attribute.
1638         * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
1639         Use "insn_count" rather than "length".
1640         * config/mips/mips-dsp.md
1641         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
1642         (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
1643         length attributes.
1644
1645 2013-06-12  Marc Glisse  <marc.glisse@inria.fr>
1646
1647         PR tree-optimization/57361
1648         * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
1649
1650 2013-06-12  Sofiane Naci  <sofiane.naci@arm.com>
1651
1652         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
1653         to split.
1654         (aarch64_simd_combine<mode>): New instruction expansion.
1655         * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
1656         function prototype.
1657         * config/aarch64/aarch64.c (aarch64_split_combine): New function.
1658         * config/aarch64/iterators.md (Vdbl): Add entry for DF.
1659
1660 2013-06-12  Jan Hubicka  <jh@suse.cz>
1661
1662         * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
1663         decl has when in streaming stage.
1664         * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
1665         * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
1666
1667 2013-06-12  Roland Stigge <stigge@antcom.de>
1668
1669         PR target/57578
1670         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
1671
1672 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
1673
1674         PR tree-optimization/57537
1675         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
1676         vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
1677
1678 2013-06-12  Richard Biener  <rguenther@suse.de>
1679
1680         * data-streamer.h (streamer_write_char_stream): CSE
1681         obs->current_pointer.
1682         * data-streamer-out.c (streamer_write_uhwi_stream): Inline
1683         streamer_write_char_stream manually and optimize the resulting loop.
1684         (streamer_write_hwi_stream): Likewise.
1685
1686 2013-06-12  Jan Hubicka  <jh@suse.cz>
1687
1688         * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
1689         * cgraph.h (varpool_create_empty_node): Declare.
1690         * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
1691         duplicated nodes.
1692         * symtab.c (symtab_unregister_node): Be lax about missin entries
1693         in node hash.
1694         (symtab_get_node): Update comment.
1695         * varpool.c (varpool_create_empty_node): Break out from ...
1696         (varpool_node_for_decl): ... here.
1697         * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
1698
1699 2013-06-12  Eric Botcazou  <ebotcazou@adacore.com>
1700
1701         * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
1702         <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
1703         part.  Use straight-line flow at the end.
1704         <COMPONENT_REF>: Remove superfluous else.
1705         <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
1706
1707 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
1708
1709         PR target/56564
1710         * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
1711         target hook even for !TREE_PUBLIC decls.  If no resolution info
1712         is available, return false for common and external decls.
1713
1714 2013-06-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
1715
1716         * config/rl78/constraints.md (U): New constraint.
1717         * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
1718         valloc attribute.
1719
1720 2013-06-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
1721
1722         PR target/57589
1723         * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
1724         to allow returning address to AT_PLATFORM name.
1725
1726 2013-06-11  Jan Hubicka  <jh@suse.cz>
1727
1728         * cgraph.c (cgraph_create_function_alias): Set weakref flag.
1729         * cgraph.h (symtab_node_base): Add weakref flag.
1730         * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
1731         (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
1732         (output_weakrefs): Use weakref flag.
1733         * fold-const.c (simple_operand_p): Handle WEAK.
1734         * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
1735         * ipa.c (varpool_externally_visible_p): Drop weakref.
1736         (function_and_variable_visibility): Update comment; fix weakref
1737         sanity checks; do not clear DECL_WEAK on them.
1738         * lto-cgraph.c (lto_output_node): update.
1739         (lto_output_varpool_node): Update.
1740         (input_overwrite_node): Update.
1741         (input_node): Update.
1742         (input_varpool_node): Update.
1743         * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
1744         (lto_symtab_merge_symbols): Add sanity check.
1745         (lto_symtab_prevailing_decl): Do not special case weakrefs.
1746         * passes.c (rest_of_decl_compilation): Set static flag, too.
1747         * symtab.c (dump_symtab_base): Dump weakref.
1748         (verify_symtab_base): Sanity check weakrefs.
1749         (symtab_make_decl_local): Remove duplicated code.
1750         (symtab_alias_ultimate_target): Simplify.
1751         * varpool.c (varpool_create_variable_alias): Set weakref flag.
1752
1753 2013-06-11  DJ Delorie  <dj@redhat.com>
1754
1755         * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
1756         (rl78_unwind_word_mode): New.
1757
1758 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
1759
1760         * final.c (debug_prefix_maps): Make static.
1761
1762 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
1763
1764         * function.c (initial_trampoline): Remove stray copy.
1765
1766 2013-06-11  Sofiane Naci  <sofiane.naci@arm.com>
1767
1768         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
1769
1770 2013-06-11  Martin Jambor  <mjambor@suse.cz>
1771
1772         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
1773         within bounds at the beginning of the function.
1774
1775 2013-06-11  Alan Modra  <amodra@gmail.com>
1776
1777         * varasm.c (get_section): Don't die on !DECL_P decl.  Tidy error
1778         reporting.
1779         (get_named_section): Don't NULL !DECL_P decl.
1780
1781 2013-06-11  Igor Zamyatin  <igor.zamyatin@intel.com>
1782
1783         * doc/invoke.texi (core-avx2): Document.
1784         (slm): Likewise.
1785         (atom): Updated with MOVBE.
1786
1787 2013-06-11  Richard Biener  <rguenther@suse.de>
1788
1789         * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
1790
1791 2013-06-11  Anton Blanchard  <anton@samba.org>
1792
1793         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
1794         correct shift value in little-endian mode.
1795
1796 2013-06-11  Jakub Jelinek  <jakub@redhat.com>
1797
1798         PR target/56564
1799         * varasm.c (get_variable_align): Move #endif to the right place.
1800
1801 2013-06-10  Cary Coutant  <ccoutant@google.com>
1802
1803         * dwarf2out.c (hash_external_ref): Use die_symbol or signature
1804         for hash so that hash table traversal order is deterministic.
1805
1806 2013-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
1807             Pat Haugen <pthaugen@us.ibm.com>
1808             Peter Bergner <bergner@vnet.ibm.com>
1809
1810         * config/rs6000/vector.md (GPR move splitter): Do not split moves
1811         of vectors in GPRS if they are direct moves or quad word load or
1812         store moves.
1813
1814         * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
1815         declaration.
1816         (direct_move_p): Likewise.
1817         (quad_load_store_p): Likewise.
1818
1819         * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
1820         classes into bins based on the physical register type.
1821         (reg_class_to_reg_type): Likewise.
1822         (IS_STD_REG_TYPE): Likewise.
1823         (IS_FP_VECT_REG_TYPE): Likewise.
1824         (reload_fpr_gpr): Arrays to determine what insn to use if we can
1825         use direct move instructions.
1826         (reload_gpr_vsx): Likewise.
1827         (reload_vsx_gpr): Likewise.
1828         (rs6000_init_hard_regno_mode_ok): Precalculate the register type
1829         information that is a simplification of register classes.  Also
1830         precalculate direct move reload helpers.
1831         (direct_move_p): New function to return true if the operation can
1832         be done as a direct move instruciton.
1833         (quad_load_store_p): New function to return true if the operation
1834         is a quad memory operation.
1835         (rs6000_legitimize_address): If quad memory, only allow register
1836         indirect for TImode addresses.
1837         (rs6000_legitimate_address_p): Likewise.
1838         (enum reload_reg_type): Delete, replace with rs6000_reg_type.
1839         (rs6000_reload_register_type): Likewise.
1840         (register_to_reg_type): Return register type.
1841         (rs6000_secondary_reload_simple_move): New helper function for
1842         secondary reload and secondary memory needed to identify anything
1843         that is a simple move, and does not need reloading.
1844         (rs6000_secondary_reload_direct_move): New helper function for
1845         secondary reload to identify cases that can be done with several
1846         instructions via the direct move instructions.
1847         (rs6000_secondary_reload_move): New helper function for secondary
1848         reload to identify moves between register types that can be done.
1849         (rs6000_secondary_reload): Add support for quad memory operations
1850         and for direct move.
1851         (rs6000_secondary_memory_needed): Likewise.
1852         (rs6000_debug_secondary_memory_needed): Change argument names.
1853         (rs6000_output_move_128bit): New function to return the move to
1854         use for 128-bit moves, including knowing about the various
1855         limitations of quad memory operations.
1856
1857         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
1858         memory operations.  call rs6000_output_move_128bit for the actual
1859         instruciton(s) to generate.
1860         (vsx_movti_64bit): Likewise.
1861
1862         * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
1863         (UNSPEC_P8V_MTVSRWZ): Likewise.
1864         (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
1865         (UNSPEC_P8V_MTVSRD): Likewise.
1866         (UNSPEC_P8V_XXPERMDI): Likewise.
1867         (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
1868         (UNSPEC_FUSION_GPR): Likewise.
1869         (FMOVE128_GPR): New iterator for direct move.
1870         (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
1871         (f32_sv): Likewise.
1872         (f32_dm): Likewise.
1873         (zero_extend<mode>di2_internal1): Add support for power8 32-bit
1874         loads and direct move instructions.
1875         (zero_extendsidi2_lfiwzx): Likewise.
1876         (extendsidi2_lfiwax): Likewise.
1877         (extendsidi2_nocell): Likewise.
1878         (floatsi<mode>2_lfiwax): Likewise.
1879         (lfiwax): Likewise.
1880         (floatunssi<mode>2_lfiwzx): Likewise.
1881         (lfiwzx): Likewise.
1882         (fix_trunc<mode>_stfiwx): Likewise.
1883         (fixuns_trunc<mode>_stfiwx): Likewise.
1884         (mov<mode>_hardfloat, 32-bit floating point): Likewise.
1885         (mov<move>_hardfloat64, 64-bit floating point): Likewise.
1886         (parity<mode>2_cmpb): Set length/type attr.
1887         (unnamed shift right patterns, mov<mode>_internal2): Change type attr
1888         for 'mr.' to fast_compare.
1889         (bpermd_<mode>): Change type attr to popcnt.
1890         (p8_fmrgow_<mode>): New insns for power8 direct move support.
1891         (p8_mtvsrwz_1): Likewise.
1892         (p8_mtvsrwz_2): Likewise.
1893         (reload_fpr_from_gpr<mode>): Likewise.
1894         (p8_mtvsrd_1): Likewise.
1895         (p8_mtvsrd_2): Likewise.
1896         (p8_xxpermdi_<mode>): Likewise.
1897         (reload_vsx_from_gpr<mode>): Likewise.
1898         (reload_vsx_from_gprsf): Likewise.
1899         (p8_mfvsrd_3_<mode>): LIkewise.
1900         (reload_gpr_from_vsx<mode>): Likewise.
1901         (reload_gpr_from_vsxsf): Likewise.
1902         (p8_mfvsrd_4_disf): Likewise.
1903         (multi-word GPR splits): Do not split direct moves or quad memory
1904         operations.
1905
1906 2013-06-10  David Malcolm  <dmalcolm@redhat.com>
1907
1908         * tree-into-ssa.c (interesting_blocks): Make static.
1909
1910 2013-06-10  Jakub Jelinek  <jakub@redhat.com>
1911
1912         PR target/56564
1913         * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
1914         CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
1915         Use DATA_ABI_ALIGNMENT for that case instead if defined.
1916         (get_variable_align): New function.
1917         (get_variable_section, emit_bss, emit_common,
1918         assemble_variable_contents, place_block_symbol): Use
1919         get_variable_align instead of DECL_ALIGN.
1920         (assemble_noswitch_variable): Add align argument, use it
1921         instead of DECL_ALIGN.
1922         (assemble_variable): Adjust caller.  Use get_variable_align
1923         instead of DECL_ALIGN.
1924         * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
1925         caller.
1926         (DATA_ABI_ALIGNMENT): Define.
1927         * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
1928         * config/i386/i386.c (x86_data_alignment): Add opt argument.  If
1929         opt is false, only return the psABI mandated alignment increase.
1930         * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
1931         (DATA_ABI_ALIGNMENT): ... this.
1932         * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
1933         (DATA_ABI_ALIGNMENT): ... this.
1934         * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
1935         * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
1936         (DATA_ABI_ALIGNMENT): ... this.
1937         * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
1938         * doc/tm.texi: Regenerated.
1939
1940 2013-06-10  Uros Bizjak  <ubizjak@gmail.com>
1941
1942         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
1943         cmp_code to construct REG_EQUAL note.
1944
1945 2013-06-09  Jakub Jelinek  <jakub@redhat.com>
1946
1947         PR target/57568
1948         * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
1949         that operands[2] doesn't overlap with operands[0].
1950
1951 2013-06-09  David Edelsohn  <dje.gcc@gmail.com>
1952             Jan Hubicka  <jh@suse.cz>
1953
1954         * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
1955         hack to mark symbols as used.
1956
1957 2013-06-08  Vladimir Makarov  <vmakarov@redhat.com>
1958
1959         PR rtl-optimization/57559
1960         * lra-constraints.c (process_alt_operands): Don't discourage
1961         memory with known offset for offsetable memory constraint.
1962         * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
1963
1964 2013-06-08  Eric Botcazou  <ebotcazou@adacore.com>
1965
1966         * varasm.c (struct oc_local_state): Reorder fields.
1967         (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
1968         and adjust accordingly.
1969         (output_constructor): Reorder initialization code and adjust call to
1970         output_constructor_bitfield.
1971
1972 2013-06-07  Jan Hubicka  <jh@suse.cz>
1973
1974         * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
1975
1976 2013-06-07  David Malcolm  <dmalcolm@redhat.com>
1977
1978         * tree-object-size.c (unknown): Make const.
1979
1980 2013-06-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1981
1982         * config/s390/s390.md (cpu_facility): Add cpu_zarch.
1983         ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
1984         for last alternative in the cpu_facility attribute.
1985
1986 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1987
1988         PR target/56315
1989         * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
1990         (xordi3): Change operand 2 constraint to arm_xordi_operand.
1991         * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
1992         * config/arm/constraints.md (Dg): New constraint.
1993         * config/arm/neon.md (xordi3_neon): Remove.
1994         (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
1995         * config/arm/predicates.md (arm_xordi_operand): New predicate.
1996
1997 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1998
1999         * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
2000         Clean up alternatives.
2001
2002 2013-06-07  Alan Modra  <amodra@gmail.com>
2003
2004         * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
2005         va_list_gpr_size.
2006
2007 2013-06-07  Alan Modra  <amodra@gmail.com>
2008
2009         * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
2010
2011 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2012
2013         * config/arm/constraints.md (Df): New constraint.
2014         * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
2015         Correct length attribute for last two alternatives.
2016
2017 2013-06-07  Alan Modra  <amodra@gmail.com>
2018
2019         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
2020         override user -mfp-in-toc.
2021         (offsettable_ok_by_alignment): Consider just the current access
2022         rather than the whole object, unless BLKmode.  Handle
2023         CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
2024         (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
2025         for -mcmodel=medium.
2026         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
2027         override user -mfp-in-toc or -msum-in-toc.  Default to
2028         -mno-fp-in-toc for -mcmodel=medium.
2029
2030 2013-06-06  DJ Delorie  <dj@redhat.com>
2031
2032         * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
2033         TARGET_VALID_POINTER_MODE.
2034
2035 2013-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
2036             Pat Haugen <pthaugen@us.ibm.com>
2037             Peter Bergner <bergner@vnet.ibm.com>
2038
2039         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
2040         Document new power8 builtins.
2041
2042         * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
2043         condition code register, to allow 128-bit logical operations to be
2044         done in the VSX or GPR registers.
2045         (nor<mode>3): Use the canonical form for nor.
2046         (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
2047         vclz*, and vpopcnt* vector instructions.
2048         (nand<mode>3): Likewise.
2049         (orc<mode>3): Likewise.
2050         (clz<mode>2): LIkewise.
2051         (popcount<mode>2): Likewise.
2052
2053         * config/rs6000/predicates.md (int_reg_operand): Rework tests so
2054         that only the GPRs are recognized.
2055
2056         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2057         support for new power8 builtins.
2058
2059         * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
2060         builtin functions.
2061         (xscvdpspn): Likewise.
2062         (vclz): Likewise.
2063         (vclzb): Likewise.
2064         (vclzh): Likewise.
2065         (vclzw): Likewise.
2066         (vclzd): Likewise.
2067         (vpopcnt): Likewise.
2068         (vpopcntb): Likewise.
2069         (vpopcnth): Likewise.
2070         (vpopcntw): Likewise.
2071         (vpopcntd): Likewise.
2072         (vgbbd): Likewise.
2073         (vmrgew): Likewise.
2074         (vmrgow): Likewise.
2075         (eqv): Likewise.
2076         (eqv_v16qi3): Likewise.
2077         (eqv_v8hi3): Likewise.
2078         (eqv_v4si3): Likewise.
2079         (eqv_v2di3): Likewise.
2080         (eqv_v4sf3): Likewise.
2081         (eqv_v2df3): Likewise.
2082         (nand): Likewise.
2083         (nand_v16qi3): Likewise.
2084         (nand_v8hi3): Likewise.
2085         (nand_v4si3): Likewise.
2086         (nand_v2di3): Likewise.
2087         (nand_v4sf3): Likewise.
2088         (nand_v2df3): Likewise.
2089         (orc): Likewise.
2090         (orc_v16qi3): Likewise.
2091         (orc_v8hi3): Likewise.
2092         (orc_v4si3): Likewise.
2093         (orc_v2di3): Likewise.
2094         (orc_v4sf3): Likewise.
2095         (orc_v2df3): Likewise.
2096
2097         * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
2098         allow power8 quad mode in 64-bit.
2099         (rs6000_builtin_vectorized_function): Add support to vectorize
2100         ISA 2.07 count leading zeros, population count builtins.
2101         (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
2102         V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
2103         (builtin_function_type): Add vgbbd builtin function which takes an
2104         unsigned argument.
2105         (altivec_expand_vec_perm_const): Add support for new power8 merge
2106         instructions.
2107
2108         * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
2109         that does not include TImdoe for use with 32-bit.
2110         (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
2111         instructions.
2112         (UNSPEC_VSX_CVDPSPN): Likewise.
2113         (vsx_xscvdpspn): Likewise.
2114         (vsx_xscvspdpn): Likewise.
2115         (vsx_xscvdpspn_scalar): Likewise.
2116         (vsx_xscvspdpn_directmove): Likewise.
2117         (vsx_and<mode>3): Split logical operations into 32-bit and
2118         64-bit. Add support to do logical operations on TImode as well as
2119         VSX vector types.  Allow logical operations to be done in either
2120         VSX registers or in general purpose registers in 64-bit mode.  Add
2121         splitters if GPRs were used. For AND, add clobber of CCmode to
2122         allow use of ANDI on GPRs.  Rewrite nor to use the canonical RTL
2123         encoding.
2124         (vsx_and<mode>3_32bit): Likewise.
2125         (vsx_and<mode>3_64bit): Likewise.
2126         (vsx_ior<mode>3): Likewise.
2127         (vsx_ior<mode>3_32bit): Likewise.
2128         (vsx_ior<mode>3_64bit): Likewise.
2129         (vsx_xor<mode>3): Likewise.
2130         (vsx_xor<mode>3_32bit): Likewise.
2131         (vsx_xor<mode>3_64bit): Likewise.
2132         (vsx_one_cmpl<mode>2): Likewise.
2133         (vsx_one_cmpl<mode>2_32bit): Likewise.
2134         (vsx_one_cmpl<mode>2_64bit): Likewise.
2135         (vsx_nor<mode>3): Likewise.
2136         (vsx_nor<mode>3_32bit): Likewise.
2137         (vsx_nor<mode>3_64bit): Likewise.
2138         (vsx_andc<mode>3): Likewise.
2139         (vsx_andc<mode>3_32bit): Likewise.
2140         (vsx_andc<mode>3_64bit): Likewise.
2141         (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
2142         and xxlorc instructions.
2143         (vsx_eqv<mode>3_64bit): Likewise.
2144         (vsx_nand<mode>3_32bit): Likewise.
2145         (vsx_nand<mode>3_64bit): Likewise.
2146         (vsx_orc<mode>3_32bit): Likewise.
2147         (vsx_orc<mode>3_64bit): Likewise.
2148
2149         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
2150
2151         * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
2152         instruction.
2153         (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
2154         (p8_vmrgow): Likewise.
2155         (altivec_and<mode>3): Add clobber of CCmode to allow AND using
2156         GPRs to be split under VSX.
2157         (p8v_clz<mode>2): Add power8 count leading zero support.
2158         (p8v_popcount<mode>2): Add power8 population count support.
2159         (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
2160         support.
2161
2162         * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
2163         instruction.
2164
2165         * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
2166         builtin functions.
2167         (vec_nand): Likewise.
2168         (vec_vclz): Likewise.
2169         (vec_vclzb): Likewise.
2170         (vec_vclzd): Likewise.
2171         (vec_vclzh): Likewise.
2172         (vec_vclzw): Likewise.
2173         (vec_vgbbd): Likewise.
2174         (vec_vmrgew): Likewise.
2175         (vec_vmrgow): Likewise.
2176         (vec_vpopcnt): Likewise.
2177         (vec_vpopcntb): Likewise.
2178         (vec_vpopcntd): Likewise.
2179         (vec_vpopcnth): Likewise.
2180         (vec_vpopcntw): Likewise.
2181
2182 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
2183
2184         PR rtl-optimization/57468
2185         * config/i386/i386.c (inline_secondary_memory_needed): Ignore
2186         spilled pseudos.
2187
2188 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
2189
2190         PR rtl-optimization/57459
2191         * lra-constraints.c (update_ebb_live_info): Fix typo for operand
2192         type when setting live regs.
2193
2194 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
2195
2196         * config/s390/s390.opt (mlra): New option.
2197         * config/s390/s390.c (s390_decompose_address): Check displacement
2198         for all registers for LRA.
2199         (s390_secondary_reload): Don't used secondary reloads for LRA.
2200         (s390_lra_p): New function.
2201         (TARGET_LRA_P): Define.
2202         * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
2203         of attribute cpu_facility to zarch for the last alternative.
2204         (*cmpmem_short): Ditto.
2205
2206 2013-06-06  Eric Botcazou  <ebotcazou@adacore.com>
2207
2208         * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
2209         (arm_compute_static_chain_stack_bytes): Use it.  Tidy up.
2210         (arm_expand_prologue): Likewise.
2211
2212 2013-06-06  Teresa Johnson  <tejohnson@google.com>
2213
2214         PR c++/53743
2215         * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
2216         as this is now done by redirect_edge_and_branch_force.
2217         * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
2218         barriers, and fix interaction with splitting.
2219         * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
2220         * cfgcleanup.c (try_forward_edges): Fix early return value to properly
2221         reflect changes made in the routine.
2222         * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
2223         (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
2224         since this is called in cfglayout mode, and replace partition fixup
2225         with assert as that is now done by force_nonfallthru_and_redirect.
2226         (add_reg_crossing_jump_notes): Handle the fact that some jumps may
2227         already be marked with region crossing note.
2228         (insert_section_boundary_note): Make non-static, gate on flag
2229         has_bb_partition, rewrite to also check for multiple partitions.
2230         (rest_of_handle_reorder_blocks): Remove call to
2231         insert_section_boundary_note, now done later during free_cfg.
2232         (duplicate_computed_gotos): Don't duplicate partition crossing edge.
2233         * bb-reorder.h (insert_section_boundary_note): Declare.
2234         * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
2235         * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
2236         invoke insert_section_boundary_note.
2237         (try_redirect_by_replacing_jump): Remove unnecessary
2238         check for region crossing note.
2239         (fixup_partition_crossing): New function.
2240         (rtl_redirect_edge_and_branch): Fixup partition boundaries.
2241         (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
2242         in non-cfglayout mode.
2243         (force_nonfallthru_and_redirect): Fixup partition boundaries,
2244         remove old code that tried to do this. Emit barrier correctly
2245         when we are in cfglayout mode.
2246         (last_bb_in_partition): New function.
2247         (rtl_split_edge): Correctly fixup partition boundaries.
2248         (commit_one_edge_insertion): Remove old code that tried to
2249         fixup region crossing edge since this is now handled in
2250         split_block, and set up insertion point correctly since
2251         block may now end in a jump.
2252         (verify_hot_cold_block_grouping): Guard against checking when not in
2253         linearized RTL mode.
2254         (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
2255         notes.
2256         (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
2257         rtl_verify_flow_info, so not called in cfglayout mode.
2258         (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
2259         (fixup_reorder_chain): Remove old code that attempted to fixup region
2260         crossing note as this is now handled in force_nonfallthru_and_redirect.
2261         (duplicate_insn_chain): Don't duplicate switch section notes.
2262         (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
2263         note.
2264         * basic-block.h (emit_barrier_after_bb): Declare.
2265
2266 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2267
2268         * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
2269         sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
2270         arm_usatsihi): Adjust alternatives for arm_restrict_it.
2271
2272 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2273
2274         * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
2275         where appropriate.
2276         * config/arm/ldmstm.md: Regenerate.
2277
2278 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2279
2280         * config/arm/sync.md (atomic_loaddi_1):
2281         Disable predication for arm_restrict_it.
2282         (arm_load_exclusive<mode>): Likewise.
2283         (arm_load_exclusivesi): Likewise.
2284         (arm_load_exclusivedi): Likewise.
2285         (arm_load_acquire_exclusive<mode>): Likewise.
2286         (arm_load_acquire_exclusivesi): Likewise.
2287         (arm_load_acquire_exclusivedi): Likewise.
2288         (arm_store_exclusive<mode>): Likewise.
2289         (arm_store_exclusive<mode>): Likewise.
2290         (arm_store_release_exclusivedi): Likewise.
2291         (arm_store_release_exclusive<mode>): Likewise.
2292
2293 2013-06-06  Richard Biener  <rguenther@suse.de>
2294
2295         * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
2296         after LTO_null.
2297         (lto_tag_is_tree_code_p): Adjust.
2298         (lto_tag_is_gimple_code_p): Likewise.
2299         (lto_gimple_code_to_tag): Likewise.
2300         (lto_tag_to_gimple_code): Likewise.
2301         (lto_tree_code_to_tag): Likewise.
2302         (lto_tag_to_tree_code): Likewise.
2303         * data-streamer.h (streamer_write_hwi_in_range): Use
2304         uhwi streaming to stream the normalized range.
2305         (streamer_read_hwi_in_range): Likewise.
2306
2307 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2308
2309         * config/arm/arm.md (enabled_for_depr_it): New attribute.
2310         (predicable_short_it): Likewise.
2311         (predicated): Likewise.
2312         (enabled): Handle above.
2313         (define_cond_exec): Set predicated attribute to yes.
2314
2315 2013-06-05  Mike Stump  <mikestump@comcast.net>
2316
2317         * gdbinit.in (__FUNCTION__): Add.
2318
2319 2013-06-05  Uros Bizjak  <ubizjak@gmail.com>
2320
2321         * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
2322         GE, GT, GEU and GTU compares, modulo DImode compares with zero.
2323
2324 2013-06-05  Jan Hubicka  <jh@suse.cz>
2325
2326         * varasm.c (mark_decl_referenced): Revert the removal until targets
2327         are fixed.
2328
2329 2013-06-05  David Edelsohn  <dje.gcc@gmail.com>
2330
2331         * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
2332         instead of mark_decl_referenced.
2333
2334 2013-06-05  Jan Hubicka  <jh@suse.cz>
2335
2336         * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
2337         (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
2338         and symtab_used_from_object_file_p.
2339         (cgraph_make_node_local_1): Clear forced_by_abi.
2340         (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
2341         * cgraph.h (symtab_node_base): Add forced_by_abi.
2342         (decide_is_variable_needed): Remove.
2343         (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
2344         * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
2345         (decide_is_symbol_needed): ... this one; handle symbols in general;
2346         always analyze virtuals; honnor forced_by_abi.
2347         (cgraph_finalize_function): Update.
2348         (varpool_finalize_decl): Update.
2349         (symbol_defined_and_needed): Remove.
2350         (analyze_functions): Update.
2351         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
2352         output_refs, input_overwrite_node): Handle forced_by_abi.
2353         * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
2354         (address_taken_from_non_vtable_p): ... this one.
2355         (comdat_can_be_unshared_p_1): New function.
2356         (cgraph_comdat_can_be_unshared_p): Rename to ...
2357         (comdat_can_be_unshared_p): ... this one; handle symbols in general.
2358         (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
2359         (function_and_variable_visibility): Clear forced_by_abi as needed.
2360         * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
2361         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
2362         * symtab.c (dump_symtab_base): Dump forced_by_abi.
2363         * varpool.c (decide_is_variable_needed): Remove.
2364
2365 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2366
2367         * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
2368         (arm_option_override): Override arm_restrict_it where appropriate.
2369         (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
2370         * config/arm/arm.opt (mrestrict-it): New command-line option.
2371         * doc/invoke.texi: Document -mrestrict-it.
2372
2373 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
2374
2375         * tsan.c (tsan_atomic_table): Make const.
2376
2377 2013-06-05  Richard Biener  <rguenther@suse.de>
2378
2379         * tree-streamer.c (streamer_tree_cache_insert_1): Update the
2380         index associated with the tree we are supposed to replace.
2381         * tree-streamer-out.c (pack_ts_base_value_fields): Output
2382         TREE_ASM_WRITTEN as zero for everything but SSA names.
2383
2384 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
2385
2386         * tree-ssa-structalias.c (call_stmt_vars): Make static.
2387
2388 2013-06-04  Jan Hubicka  <jh@suse.cz>
2389
2390         * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
2391         (input_node, input_varpool_node): Handle correctly external same
2392         body aliases.
2393         * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
2394         nodes at ltrans stage.
2395
2396 2013-06-04  Jan Hubicka  <jh@suse.cz>
2397
2398         * ipa-inline.c (update_caller_keys): Fix availability test.
2399         (update_callee_keys): Likewise.
2400         * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
2401         to follow ELF standard.
2402
2403 2013-06-04  Jürgen Urban  <JuergenUrban@gmx.de>
2404
2405         * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
2406         (mips64r5900el-*-elf*): New configurations.
2407         * config/mips/mips-cpus.def (r5900): New processor.
2408         * config/mips/mips-tables.opt: Regenerate.
2409         * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
2410         (mips_issue_rate): Handle PROCESSOR_R5900.
2411         (mips_reorg_process_insns): Force reorder mode for the R5900.
2412         * config/mips/mips.h (TARGET_MIPS5900): Define.
2413         (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
2414         TARGET_MIPS5900.
2415         (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
2416         TARGET_MIPS5900.
2417         * config/mips/mips.md (processor): Add r5900.
2418         (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
2419
2420 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
2421
2422         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
2423         into function to generate MOVI instruction.
2424         * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
2425         (aarch64_preferred_simd_mode): Turn into wrapper.
2426         (aarch64_output_scalar_simd_mov_immediate): New function.
2427         * config/aarch64/aarch64-protos.h: Add prototype for above.
2428
2429 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
2430
2431         * config/aarch64/aarch64.c (simd_immediate_info): Remove
2432         element_char member.
2433         (sizetochar): Return signed char.
2434         (aarch64_simd_valid_immediate): Remove elchar and other
2435         unnecessary variables.
2436         (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
2437         Calculate element_char as required.
2438         * config/aarch64/aarch64-protos.h: Update and move prototype
2439         for aarch64_output_simd_mov_immediate.
2440         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
2441         Update arguments.
2442
2443 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
2444
2445         * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
2446         information completed by aarch64_simd_valid_immediate.
2447         (aarch64_legitimate_constant_p): Update arguments.
2448         (aarch64_simd_valid_immediate): Work with struct rather than many
2449         pointers.
2450         (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
2451         (aarch64_simd_make_constant): Update arguments.
2452         (aarch64_output_simd_mov_immediate): Work with struct rather than
2453         many pointers.  Output immediate directly rather than as operand.
2454         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
2455         Update prototype.
2456         * config/aarch64/constraints.md (Dn): Update arguments.
2457
2458 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
2459
2460         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
2461         longer static.
2462         (aarch64_simd_immediate_valid_for_move): Remove.
2463         (aarch64_simd_scalar_immediate_valid_for_move): Update call.
2464         (aarch64_simd_make_constant): Update call.
2465         (aarch64_output_simd_mov_immediate): Update call.
2466         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
2467         Add prototype.
2468         * config/aarch64/constraints.md (Dn): Update call.
2469
2470 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
2471
2472         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
2473         return type to bool for prototype.
2474         (aarch64_legitimate_constant_p): Check for true instead of not -1.
2475         (aarch64_simd_valid_immediate): Fix up each return to return a bool.
2476         (aarch64_simd_immediate_valid_for_move): Update retval for bool.
2477
2478 2013-06-04  Catherine Moore  <clm@codesourcery.com>
2479
2480         * config/mips/mips.opt (meva): New.
2481         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
2482         (ASM_SPEC): Handle -meva.
2483         * doc/invoke.texi (meva):  Document.
2484
2485 2013-06-04  Alan Modra  <amodra@gmail.com>
2486
2487         * config/rs6000/rs6000.c (output_toc): Correct little-endian float
2488         constant output.
2489
2490 2013-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2491
2492         * rtl.def: Add extra fourth optional field to define_cond_exec.
2493         * gensupport.c (process_one_cond_exec): Process attributes from
2494         define_cond_exec.
2495         * doc/md.texi: Document fourth field in define_cond_exec.
2496
2497 2013-06-04  Eric Botcazou  <ebotcazou@adacore.com>
2498
2499         * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
2500         out the processing order as in store_bit_field_1.
2501
2502 2013-06-04  Jan Hubicka  <jh@suse.cz>
2503
2504         PR middle-end/57500
2505         * cgraphunit.c (cgraph_process_same_body_aliases): Create
2506         non-VAR_DECL node if it does not exist yet.
2507
2508 2013-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
2509
2510         * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
2511         (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
2512         (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
2513         target_cpu_default setting.
2514
2515 2013-06-03  Teresa Johnson  <tejohnson@google.com>
2516
2517         * dumpfile.c (opt_info_switch_p): Change -fopt-info
2518         default to -fopt-info=optimized instead of all.
2519         * doc/invoke.texi: Ditto.
2520         * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
2521         success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
2522         (execute_vect_slp): Emit BB vectorization success under
2523         MSG_OPTIMIZED_LOCATIONS.
2524         * tree-vect-slp.c (vect_slp_transform_bb): Change
2525         MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
2526         * tree-vect-loop.c (vect_transform_loop): Ditto.
2527
2528 2013-06-03  Jason Merrill  <jason@redhat.com>
2529
2530         PR c++/57415
2531         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2532         Use TARGET_EXPR for C++.
2533
2534 2013-06-03  Jakub Jelinek  <jakub@redhat.com>
2535
2536         PR rtl-optimization/57268
2537         * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
2538         if DEBUG_INSN_P (insn).
2539
2540         Reapply
2541         2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
2542
2543         PR rtl-optimization/57268
2544         * sched-deps.c (sched_analyze_2): Flush dependence lists if
2545         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2546
2547 2013-06-03  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
2548
2549         * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
2550         (ix86_avoid_lea_for_addr): Likewise.
2551         (exact_dependency_1): Likewise.
2552         (ix86_adjust_cost): Likewise.
2553         (swap_top_of_ready_list): Fix formatting and !reload_completed check
2554         removed.
2555         (do_reorder_for_imul): Fix typo, formatting and
2556         !reload_completed check removed.
2557         (ix86_sched_reorder): Fix typo and formatting.
2558         (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
2559         list.
2560
2561 2013-06-03  Sofiane Naci  <sofiane.naci@arm.com>
2562
2563         * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
2564
2565 2013-06-03  Eric Botcazou  <ebotcazou@adacore.com>
2566
2567         * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
2568         <STRING_CST>: Likewise.
2569         <VECTOR_CST>: Likewise.
2570
2571 2013-06-01  Janus Weil  <janus@gcc.gnu.org>
2572             Mikael Morin  <mikael@gcc.gnu.org>
2573
2574         * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
2575         * config.in: Regenerated.
2576         * configure: Regenerated.
2577
2578 2013-06-01  Jan Hubicka  <jh@suse.cz>
2579
2580         PR middle-end/57366
2581         * cgraphunit.c (compile): When weakref is not supported,
2582         set up transparent aliases before final output pass.
2583         * varasm.c (assemble_alias): Do not try to do it here.
2584
2585 2013-06-01  Jan Hubicka  <jh@suse.cz>
2586
2587         PR middle-end/57467
2588         * passes.c (for_per_function): Skip unanalyzed functions.
2589
2590 2013-06-01  Jan Hubicka  <jh@suse.cz>
2591
2592         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
2593         (lto_symtab_merge_symbols_1): ... this one.
2594         (lto_symtab_merge_cgraph_nodes): Rename to ...
2595         (lto_symtab_merge_symbols): ... this one; simplify.
2596         * cgraph.c (same_body_aliases_done): Rename to ...
2597         (cpp_implicit_aliases_done): ... this one.
2598         (cgraph_create_function_alias): Update.
2599         (cgraph_same_body_alias): Update.
2600         (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
2601         (verify_edge_corresponds_to_fndecl): Simplify.
2602         * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
2603         (cgraph_node): Remove same_body_alias.
2604         (varpool_node): Remove alias_of and extra_name_alias.
2605         (same_body_aliases_done): Rename to ..
2606         (cpp_implicit_aliases_done): ... this one.
2607         (symtab_alias_ultimate_target): Add default parameter.
2608         (symtab_resolve_alias): New function.
2609         (fixup_same_cpp_alias_visibility): Declare.
2610         (cgraph_function_node): Add default parameter.
2611         (cgraph_node_asm_name): Likewise.
2612         (cgraph_function_or_thunk_node): Add default parameter; do
2613         not ICE when it is NULL.
2614         (varpool_variable_node): Likewise.
2615         * tree-emutls.c (create_emultls_var): Update.
2616         (ipa_lower_emutls): Update.
2617         * cgraphunit.c (cgraph_decide_is_function_needed): Update.
2618         (cgraph_reset_node): Reset alias info.
2619         (cgraph_finalize_function): Update.
2620         (fixup_same_cpp_alias_visibility): Move to symtab.c.
2621         (analyze_function): Simplify.
2622         (cgraph_process_same_body_aliases): Simplify.
2623         (analyze_functions): Fixup same body aliases.
2624         (handle_alias_pairs): Simplify.
2625         (assemble_thunk): Update.
2626         (assemble_thunks_and_aliases): Update.
2627         (output_weakrefs): Rewrite.
2628         * lto-cgraph.c (lto_output_node): Rewrite alias handling.
2629         (lto_output_varpool_node): Likewise.
2630         (compute_ltrans_boundary): Remve assert.
2631         (get_alias_symbol): New functoin.
2632         (input_node): Rewrite alias handling.
2633         (input_varpool_node): Likewise.
2634         * ipa-pure-const.c (propagate_pure_const): Fix formating.
2635         * ipa.c (process_references): Handle weakrefs correctly.
2636         (symtab_remove_unreachable_nodes): Likewise.
2637         * trans-mem.c (get_cg_data): Update.
2638         (ipa_tm_create_version_alias): Update.
2639         (ipa_tm_execute): Update.
2640         * symtab.c (dump_symtab_base): Dump aliases.
2641         (verify_symtab_base): Verify aliases.
2642         (symtab_node_availability): New function.
2643         (symtab_alias_ultimate_target): Simplify.
2644         (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
2645         handle all the fixup cases.
2646         (symtab_resolve_alias): New function.
2647         * passes.c (ipa_write_summaries): Handle weakrefs.
2648         * varpool.c (varpool_analyze_node): Simplify.
2649         (assemble_aliases): Update.
2650         (varpool_create_variable_alias): Simplify.
2651         (varpool_extra_name_alias): Simplify.
2652         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
2653         (lto_symtab_merge_symbols): ... this one.
2654
2655 2013-06-01  Dinar Temirbulatov  <dinar@kugelworks.com>
2656
2657         Revert
2658         PR rtl-optimization/57268
2659         * sched-deps.c (sched_analyze_2): Flush dependence lists if
2660         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2661
2662 2013-06-01  Tobias Burnus  <burnus@net-b.de>
2663
2664         Partially reverted:
2665         2013-05-31  Tobias Burnus  <burnus@net-b.de>
2666
2667         PR middle-end/57073
2668         * tree-ssa-math-opts.c (execute_cse_sincos): Move check
2669         further up.
2670
2671 2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
2672
2673         PR rtl-optimization/57268
2674         * sched-deps.c (sched_analyze_2): Flush dependence lists if
2675         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2676
2677 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
2678
2679         * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
2680         unordered comparison operators when -fno-trapping-math is in effect
2681         on the e500.
2682         * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
2683         and implement unordered comparison operators properly on the e500.
2684
2685 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
2686
2687         * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
2688         for constant scalar integers.
2689         (simplify_relational_operation_1): Likewise.
2690
2691 2013-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
2692
2693         * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
2694         * config/rs6000/rs6000.md (cpu): Reorder.  Split long line.
2695         Fix comment.
2696
2697 2013-05-31  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
2698             Igor Zamyatin  <igor.zamyatin@intel.com>
2699
2700         Silvermont (SLM) architecture performance tuning.
2701         * config/i386/i386.h (enum ix86_tune_indices): Add
2702         X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
2703         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
2704
2705         * config/i386/i386.c (initial_ix86_tune_features)
2706         <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
2707         (ix86_lea_outperforms): Handle Silvermont tuning.
2708         (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
2709         call.
2710         (ix86_use_lea_for_mov): Likewise.
2711         (ix86_avoid_lea_for_addr): Likewise.
2712         (ix86_lea_for_add_ok): Likewise.
2713         (exact_dependency_1): New function.
2714         (exact_store_load_dependency): Likewise.
2715         (ix86_adjust_cost): Handle Silvermont tuning.
2716         (do_reoder_for_imul): Likewise.
2717         (swap_top_of_ready_list): New function.
2718         (ix86_sched_reorder): Changed to handle Silvermont tuning.
2719
2720         * config/i386/i386.md (peepholes that split memory operand in fp
2721         converts): New.
2722
2723 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2724
2725         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2726         Remove un-necessary braces.
2727
2728 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2729
2730         * config/aarch64/aarch64.c (aarch64_classify_symbol):
2731         Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
2732
2733 2013-05-31  Tobias Burnus  <burnus@net-b.de>
2734
2735         PR middle-end/57073
2736         * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
2737
2738 2013-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2739
2740         PR target/56315
2741         * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
2742         * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
2743         * config/arm/neon.md (iordi3_neon): Remove.
2744         (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
2745         * config/arm/predicates.md (imm_for_neon_logic_operand):
2746         Move to earlier in the file.
2747         (neon_logic_op2): Likewise.
2748         (arm_iordi_operand_neon): New predicate.
2749
2750 2013-05-31  Richard Biener  <rguenther@suse.de>
2751
2752         PR tree-optimization/57478
2753         PR tree-optimization/57453
2754         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
2755         are life as well.
2756
2757 2013-05-31  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
2758
2759         * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
2760         (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
2761
2762 2013-05-30  Tobias Burnus  <burnus@net-b.de>
2763             Thomas Koenig  <tkoenig@gcc.gnu.org>
2764
2765         PR middle-end/57073
2766         * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
2767         powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
2768
2769 2013-05-30  Steven Bosscher  <steven@gcc.gnu.org>
2770
2771         * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
2772
2773 2013-05-30  Vladimir Makarov  <vmakarov@redhat.com>
2774
2775         * target.def (register_usage_leveling_p): New hook.
2776         * targhooks.c (default_register_usage_leveling_p): New.
2777         * targhooks.h (default_register_usage_leveling_p): New prototype.
2778         * lra-assigns.c (register_usage_leveling_p): Use the hook.
2779         * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
2780         * doc/tm.texi: Update.
2781         * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
2782
2783 2013-05-30  Ian Bolton  <ian.bolton@arm.com>
2784
2785         * config/aarch64/aarch64.md (insv<mode>): New define_expand.
2786         (*insv_reg<mode>): New define_insn.
2787
2788 2013-05-30  Joern Rennecke <joern.rennecke@embecosm.com>
2789
2790         PR rtl-optimization/57439
2791         * postreload.c (move2add_valid_value_p): Check that we have
2792         a zero subreg_regno_offset when accessing the register in
2793         the requested mode.
2794
2795 2013-05-30  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
2796             Igor Zamyatin  <igor.zamyatin@intel.com>
2797
2798         Silvermont (SLM) architecture pipeline model, tuning and
2799         insn selection.
2800         * config.gcc: Add slm config options and target.
2801
2802         * config/i386/slm.md: New.
2803
2804         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
2805
2806         * gcc/config/i386/i386-c.c (ix86_target_macros_internal):  New case
2807         PROCESSOR_SLM.
2808         (ix86_target_macros_internal): Likewise.
2809
2810         * gcc/config/i386/i386.c (slm_cost): New cost.
2811         (m_SLM): New macro flag.
2812         (initial_ix86_tune_features): Set m_SLM.
2813         (x86_accumulate_outgoing_args): Likewise.
2814         (x86_arch_always_fancy_math_387): Likewise.
2815         (processor_target_table): Add slm cost.
2816         (cpu_names): Add slm cpu name.
2817         (x86_option_override_internal): Set SLM ISA.
2818         (ix86_issue_rate): New case PROCESSOR_SLM.
2819         (ia32_multipass_dfa_lookahead): Likewise.
2820         (fold_builtin_cpu): Add slm.
2821
2822         * config/i386/i386.h (TARGET_SLM): New target macro.
2823         (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
2824         (processor_type): Add PROCESSOR_SLM.
2825
2826         * config/i386/i386.md (cpu): Add new value "slm".
2827         (slm.md): Include slm.md.
2828
2829 2013-05-30  Bernd Schmidt  <bernds@codesourcery.com>
2830             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
2831
2832         * config/arm/arm-protos.h: Add and update function protos.
2833         * config/arm/arm.c (use_simple_return_p): New added.
2834         (thumb2_expand_return): Check simple_return flag.
2835         * config/arm/arm.md: Add simple_return and conditional simple_return.
2836         * config/arm/iterators.md: Add iterator for return and simple_return.
2837
2838 2013-05-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
2839
2840         * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
2841         (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
2842         (arm_emit_vfp_multi_reg_pop): Likewise.
2843         (thumb2_emit_ldrd_pop): Likewise.
2844         (arm_expand_epilogue): Add misc REG_CFA notes.
2845         (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
2846
2847 2013-05-29  Lawrence Crowl  <crowl@google.com>
2848
2849         * config/arm/t-arm: Update for below.
2850
2851         * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
2852         Change type to hash_table.  Update dependent calls and types.
2853
2854         * config/i386/t-cygming: Update for below.
2855
2856         * config/i386/t-interix: Update for below.
2857
2858         * config/i386/winnt.c (i386_pe_section_type_flags::htab):
2859         Change type to hash_table.  Update dependent calls and types.
2860         (i386_find_on_wrapper_list::wrappers): Likewise.
2861
2862         * config/ia64/t-ia64: Update for below.
2863
2864         * config/ia64/ia64.c (bundle_state_table):
2865         Change type to hash_table.  Update dependent calls and types.
2866
2867         * config/mips/mips.c (mips_reorg_process_insns::htab):
2868         Change type to hash_table.  Update dependent calls and types.
2869
2870         * config/sol2.c (solaris_comdat_htab):
2871         Change type to hash_table.  Update dependent calls and types.
2872
2873         * config/t-sol2: Update for above.
2874
2875 2013-05-29  Teresa Johnson  <tejohnson@google.com>
2876
2877         * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
2878         functions are not yet marked as defined.
2879
2880 2013-05-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
2881             Pat Haugen <pthaugen@us.ibm.com>
2882             Peter Bergner <bergner@vnet.ibm.com>
2883
2884         * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
2885         instructions.
2886         (VEC_A): Likewise.
2887         (VEC_C): Likewise.
2888         (vrotl<mode>3): Likewise.
2889         (vashl<mode>3): Likewise.
2890         (vlshr<mode>3): Likewise.
2891         (vashr<mode>3): Likewise.
2892
2893         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2894         support for power8 V2DI builtins.
2895
2896         * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
2897         power8 V2DI builtins.
2898         (vupkhsw): Likewise.
2899         (vupklsw): Likewise.
2900         (vaddudm): Likewise.
2901         (vminsd): Likewise.
2902         (vmaxsd): Likewise.
2903         (vminud): Likewise.
2904         (vmaxud): Likewise.
2905         (vpkudum): Likewise.
2906         (vpksdss): Likewise.
2907         (vpkudus): Likewise.
2908         (vpksdus): Likewise.
2909         (vrld): Likewise.
2910         (vsld): Likewise.
2911         (vsrd): Likewise.
2912         (vsrad): Likewise.
2913         (vsubudm): Likewise.
2914         (vcmpequd): Likewise.
2915         (vcmpgtsd): Likewise.
2916         (vcmpgtud): Likewise.
2917         (vcmpequd_p): Likewise.
2918         (vcmpgtsd_p): Likewise.
2919         (vcmpgtud_p): Likewise.
2920         (vupkhsw): Likewise.
2921         (vupklsw): Likewise.
2922         (vaddudm): Likewise.
2923         (vmaxsd): Likewise.
2924         (vmaxud): Likewise.
2925         (vminsd): Likewise.
2926         (vminud): Likewise.
2927         (vpksdss): Likewise.
2928         (vpksdus): Likewise.
2929         (vpkudum): Likewise.
2930         (vpkudus): Likewise.
2931         (vrld): Likewise.
2932         (vsld): Likewise.
2933         (vsrad): Likewise.
2934         (vsrd): Likewise.
2935         (vsubudm): Likewise.
2936
2937         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
2938         support for power8 V2DI instructions.
2939
2940         * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
2941         power8 V2DI instructions.  Combine pack and unpack insns to use an
2942         iterator for each mode.  Check whether a particular mode supports
2943         Altivec instructions instead of just checking TARGET_ALTIVEC.
2944         (UNSPEC_VPKUWUM): Likewise.
2945         (UNSPEC_VPKSHSS): Likewise.
2946         (UNSPEC_VPKSWSS): Likewise.
2947         (UNSPEC_VPKUHUS): Likewise.
2948         (UNSPEC_VPKSHUS): Likewise.
2949         (UNSPEC_VPKUWUS): Likewise.
2950         (UNSPEC_VPKSWUS): Likewise.
2951         (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
2952         (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
2953         (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
2954         (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
2955         (UNSPEC_VUPKHSB): Likewise.
2956         (UNSPEC_VUNPACK_HI_SIGN): Likewise.
2957         (UNSPEC_VUNPACK_LO_SIGN): Likewise.
2958         (UNSPEC_VUPKHSH): Likewise.
2959         (UNSPEC_VUPKLSB): Likewise.
2960         (UNSPEC_VUPKLSH): Likewise.
2961         (VI2): Likewise.
2962         (VI_char): Likewise.
2963         (VI_scalar): Likewise.
2964         (VI_unit): Likewise.
2965         (VP): Likewise.
2966         (VP_small): Likewise.
2967         (VP_small_lc): Likewise.
2968         (VU_char): Likewise.
2969         (add<mode>3): Likewise.
2970         (altivec_vaddcuw): Likewise.
2971         (altivec_vaddu<VI_char>s): Likewise.
2972         (altivec_vadds<VI_char>s): Likewise.
2973         (sub<mode>3): Likewise.
2974         (altivec_vsubcuw): Likewise.
2975         (altivec_vsubu<VI_char>s): Likewise.
2976         (altivec_vsubs<VI_char>s): Likewise.
2977         (altivec_vavgs<VI_char>): Likewise.
2978         (altivec_vcmpbfp): Likewise.
2979         (altivec_eq<mode>): Likewise.
2980         (altivec_gt<mode>): Likewise.
2981         (altivec_gtu<mode>): Likewise.
2982         (umax<mode>3): Likewise.
2983         (smax<mode>3): Likewise.
2984         (umin<mode>3): Likewise.
2985         (smin<mode>3): Likewise.
2986         (altivec_vpkuhum): Likewise.
2987         (altivec_vpkuwum): Likewise.
2988         (altivec_vpkshss): Likewise.
2989         (altivec_vpkswss): Likewise.
2990         (altivec_vpkuhus): Likewise.
2991         (altivec_vpkshus): Likewise.
2992         (altivec_vpkuwus): Likewise.
2993         (altivec_vpkswus): Likewise.
2994         (altivec_vpks<VI_char>ss): Likewise.
2995         (altivec_vpks<VI_char>us): Likewise.
2996         (altivec_vpku<VI_char>us): Likewise.
2997         (altivec_vpku<VI_char>um): Likewise.
2998         (altivec_vrl<VI_char>): Likewise.
2999         (altivec_vsl<VI_char>): Likewise.
3000         (altivec_vsr<VI_char>): Likewise.
3001         (altivec_vsra<VI_char>): Likewise.
3002         (altivec_vsldoi_<mode>): Likewise.
3003         (altivec_vupkhsb): Likewise.
3004         (altivec_vupkhs<VU_char>): Likewise.
3005         (altivec_vupkls<VU_char>): Likewise.
3006         (altivec_vupkhsh): Likewise.
3007         (altivec_vupklsb): Likewise.
3008         (altivec_vupklsh): Likewise.
3009         (altivec_vcmpequ<VI_char>_p): Likewise.
3010         (altivec_vcmpgts<VI_char>_p): Likewise.
3011         (altivec_vcmpgtu<VI_char>_p): Likewise.
3012         (abs<mode>2): Likewise.
3013         (vec_unpacks_hi_v16qi): Likewise.
3014         (vec_unpacks_hi_v8hi): Likewise.
3015         (vec_unpacks_lo_v16qi): Likewise.
3016         (vec_unpacks_hi_<VP_small_lc>): Likewise.
3017         (vec_unpacks_lo_v8hi): Likewise.
3018         (vec_unpacks_lo_<VP_small_lc>): Likewise.
3019         (vec_pack_trunc_v8h): Likewise.
3020         (vec_pack_trunc_v4si): Likewise.
3021         (vec_pack_trunc_<mode>): Likewise.
3022
3023         * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
3024         V2DI builtins.
3025         (vec_vmaxsd): Likewise.
3026         (vec_vmaxud): Likewise.
3027         (vec_vminsd): Likewise.
3028         (vec_vminud): Likewise.
3029         (vec_vpksdss): Likewise.
3030         (vec_vpksdus): Likewise.
3031         (vec_vpkudum): Likewise.
3032         (vec_vpkudus): Likewise.
3033         (vec_vrld): Likewise.
3034         (vec_vsld): Likewise.
3035         (vec_vsrad): Likewise.
3036         (vec_vsrd): Likewise.
3037         (vec_vsubudm): Likewise.
3038         (vec_vupkhsw): Likewise.
3039         (vec_vupklsw): Likewise.
3040
3041 2013-05-29  Jan Hubicka  <jh@suse.cz>
3042
3043         * cgraph.h (symtab_node_base): Add definition, alias and analyzed
3044         flags; reorder rest of fields in more consistent way.
3045         (varpool_node): Remove analyzed, finalized and alias.
3046         (cgraph_ndoe): Likewise.
3047         (symtab_alias_ultimate_target): New function.
3048         (cgraph_function_node): Move offline.
3049         (cgraph_reset_node): Declare.
3050         (cgraph_comdat_can_be_unshared_p): Remove.
3051         (varpool_remove_initializer): Declare.
3052         (varpool_first_defined_variable, varpool_next_defined_variable
3053         cgraph_first_defined_function, cgraph_next_defined_function): Update.
3054         (cgraph_function_with_gimple_body_p): Update.
3055         (varpool_all_refs_explicit_p): Update.
3056         (symtab_alias_target): New function.
3057         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
3058         (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
3059         (cgraph_function_or_thunk_node): Simplify using
3060         symtab_alias_ultimate_target.
3061         (varpool_variable_node): Likewise.
3062         * cgraph.c (cgraph_create_function_alias): Update.
3063         (cgraph_add_thunk): Update.
3064         (cgraph_remove_node): Update.
3065         (dump_cgraph_node): Do not dump removed flags.
3066         (cgraph_function_body_availability): Update.
3067         (cgraph_propagate_frequency): Update.
3068         (verify_cgraph_node): Check sanity of local flag.
3069         (cgraph_function_node): Move here from cgraph.h; revamp for
3070         cgraph_function_or_thunk_node.
3071         * lto-symtab.c (lto_varpool_replace_node): Update.
3072         (lto_symtab_resolve_can_prevail_p): Update.
3073         (lto_symtab_merge_cgraph_nodes): Update.
3074         * ipa-cp.c (determine_versionability, initialize_node_lattices,
3075         propagate_constants_accross_call, devirtualization_time_bonus,
3076         ipcp_propagate_stage): Update.
3077         * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
3078         * ipa-inline-transform.c (clone_inlined_nodes,
3079         preserve_function_body_p): Update.
3080         * ipa-reference.c (propagate): Update.
3081         (write_node_summary_p): Update.
3082         * toplev.c (wrapup_global_declaration_2): Update.
3083         * cgraphunit.c (cgraph_analyze_function): Rename to ...
3084         (analyze_function) ... this one.
3085         (cgraph_process_new_functions): Update.
3086         (cgraph_reset_node): Export.
3087         (cgraph_finalize_function): Update.
3088         (cgraph_add_new_function): Update.
3089         (process_function_and_variable_attributes): Update.
3090         (varpool_finalize_decl): Update.
3091         (symbol_finalized): Remove.
3092         (symbol_finalized_and_needed): Rename to ...
3093         (symbol_defined_and_needed): ... update.
3094         (cgraph_analyze_functions): Update.
3095         (handle_alias_pairs): Update.
3096         (mark_functions_to_output): Update.
3097         (assemble_thunk): Update.
3098         (output_in_order): Update.
3099         (output_weakrefs): Update.
3100         (finalize_compilation_unit): Update.
3101         * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
3102         lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
3103         input_node, input_varpool_node): Update.
3104         * dbxout.c (dbxout_expand_expr): Update.
3105         * cgraphclones.c (cgraph_clone_node): Update.
3106         (cgraph_copy_node_for_versioning): Update.
3107         (cgraph_materialize_clone): Update.
3108         (cgraph_materialize_all_clones): Update.
3109         * ipa-pure-const.c (analyze_function, pure_const_write_summary,
3110         propagate_pure_const, propagate_nothrow): Update.
3111         * lto-streamer-out.c (lto_output, write_symbol): Update.
3112         * ipa-utils.c (ipa_reverse_postorder): Update.
3113         * ipa-inline.c (can_inline_edge_p): Update.
3114         (update_caller_keys, ipa_inline): Update.
3115         * dwarf2out.c (reference_to_unused,
3116         premark_types_used_by_global_vars_helper): Update.
3117         * tree-eh.c (tree_could_trap_p): Update.
3118         * ipa-split.c (consider_split, execute_split_functions): Update.
3119         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
3120         has_addr_references_p): Update; move ahead in file for better
3121         readability.
3122         (process_references): Simplify.
3123         (symtab_remove_unreachable_nodes): Update; cleanup way function/var
3124         bodies are removed.
3125         (cgraph_comdat_can_be_unshared_p): Make static.
3126         (cgraph_externally_visible_p): Update.
3127         (varpool_externally_visible_p): Update.
3128         (function_and_variable_visibility): Update.
3129         * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
3130         ipa_tm_mark_force_output_node): Update.
3131         * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
3132         estimate_edge_devirt_benefit, inline_generate_summary,
3133         inline_write_summary): Update.
3134         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
3135         * ipa-prop.c (ipa_compute_jump_functions): Update.
3136         (ipa_print_node_params, ipa_prop_read_section,
3137         ipa_update_after_lto_read, read_replacements_section): Update.
3138         * varasm.c (mark_decl_referenced): Update.
3139         (assemble_alias, dump_tm_clone_pairs): Update.
3140         * tree-inline.c (copy_bb): Update.
3141         (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
3142         Update.
3143         * symtab.c (dump_symtab_base): Print new flags.
3144         (verify_symtab_base): Verify new flags.
3145         (symtab_alias_ultimate_target): New function.
3146         * tree-ssa-structalias.c (get_constraint_for_ssa_var,
3147         create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
3148         Update.
3149         * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
3150         Update.
3151         * i386.c (ix86_get_function_versions_dispatcher,
3152         ix86_generate_version_dispatcher_body): Update.
3153         (fold_builtin_cpu): Use varpool_add_new_variable.
3154         * varpool.c (varpool_remove_initializer): Break out from ...
3155         (varpool_remove_node): ... this one.
3156         (dump_varpool_node, varpool_node_for_asm,
3157         cgraph_variable_initializer_availability, varpool_analyze_node,
3158         varpool_assemble_decl, varpool_remove_unreferenced_decls,
3159         varpool_finalize_named_section_flags, varpool_create_variable_alias):
3160         Update.
3161
3162 2013-05-29  Jan Hubicka  <jh@suse.cz>
3163
3164         * passes.c (init_optimization_passes): Move OMP expansion into lowering.
3165
3166 2013-05-29  Easwaran Raman  <eraman@google.com>
3167
3168         PR tree-optimization/57442
3169         * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
3170         when control exits the main loop.
3171
3172 2013-05-29  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
3173
3174         * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
3175         and RX600.
3176         * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
3177         * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
3178         * rx/t-rx: Add rx100 under multi library matches option for nofpu
3179         option.
3180
3181 2013-05-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3182
3183         PR tree-optimization/57441
3184         * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
3185         Don't limit size of incr_vec to number of candidates.
3186
3187 2013-05-29  Steve Ellcey  <sellcey@imgtec.com>
3188
3189         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
3190         and mips16 directories.
3191         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
3192         (MULTILIB_DIRNAMES): Ditto.
3193         (MULTILIB_EXCEPTIONS): Add new exceptions.
3194         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
3195         (MULTILIB_DIRNAMES): Ditto.
3196         (MULTILIB_EXCEPTIONS): Add new exceptions.
3197
3198 2012-05-29  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3199             Marcus Shawcroft  <marcus.shawcroft@arm.com>
3200
3201         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
3202         SYMBOL_TINY_ABSOLUTE.
3203         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
3204         SYMBOL_TINY_ABSOLUTE.
3205         (aarch64_expand_mov_immediate): Likewise.
3206         (aarch64_classify_symbol): Likewise.
3207         (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
3208         Permit SYMBOL_TINY_ABSOLUTE.
3209         * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
3210
3211 2013-05-29  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3212             Marcus Shawcroft  <marcus.shawcroft@arm.com>
3213
3214         * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
3215         Refactor if/switch.  Replace gcc_assert with if.
3216
3217 2013-05-29  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
3218
3219         * config/i386/i386.c (initial_ix86_tune_features): Enable
3220         FP Reassociation for AMD bdver1 and bdver2.
3221
3222 2013-05-29  Martin Jambor  <mjambor@suse.cz>
3223
3224         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
3225         and IMAGPART_EXPR do not occur within other handled_components.
3226
3227 2013-05-29  Richard Biener  <rguenther@suse.de>
3228
3229         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
3230         access on whether the use is in the BB we currently try to
3231         vectorize.
3232         (vect_bb_vectorization_profitable_p): Pass the BB we currently
3233         vectorize to vect_bb_slp_scalar_cost.
3234
3235 2013-05-29  Richard Biener  <rguenther@suse.de>
3236
3237         * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
3238         computing scalar cost offsetted by stmts that are kept live
3239         by scalar uses.
3240         (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
3241         for computation of scalar cost.
3242
3243 2013-05-28  Steve Ellcey  <sellcey@mips.com>
3244
3245         * config/mips/mips-cpus.def (mips32r2): Change processor type.
3246
3247 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
3248
3249         * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
3250         array notation built-in reduction functions.
3251         * doc/passes.texi (Passes): Added documentation about changes done
3252         for Cilk Plus.
3253         * doc/invoke.texi (C Dialect Options): Added documentation about
3254         the -fcilkplus flag.
3255         * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
3256         (BUILTINS_DEF): Depend on cilkplus.def.
3257         * builtins.def: Include cilkplus.def.  Define DEF_CILKPLUS_BUILTIN.
3258         * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
3259         * cilkplus.def: New file.
3260
3261 2013-05-28  Joern Rennecke <joern.rennecke@embecosm.com>
3262
3263         PR rtl-optimization/57439
3264         * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
3265
3266 2013-05-28  Easwaran Raman  <eraman@google.com>
3267
3268         PR tree-optimization/57337
3269         * tree-ssa-reassoc.c (appears_later_in_bb): New function.
3270         (find_insert_point): Correctly identify the insertion point
3271         when two statements with the same UID is compared.
3272
3273 2013-05-28  Richard Biener  <rguenther@suse.de>
3274
3275         PR tree-optimization/56787
3276         * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
3277         from the list of data references.
3278         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
3279         clobbers.
3280         (vect_analyze_loop_operations): Likewise.
3281         (vect_transform_loop): Remove clobbers.
3282
3283 2013-05-28  Martin Jambor  <mjambor@suse.cz>
3284
3285         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
3286         and REALPART_EXPRs have scalar type.
3287
3288 2013-05-28  Richard Biener  <rguenther@suse.de>
3289
3290         PR tree-optimization/57411
3291         * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
3292         virtual operands.
3293         * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
3294         virtual operand propagation.
3295
3296 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
3297
3298         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
3299         destination register for bmasksi_vis.
3300         (vector_init_bshuffle): Likewise.
3301         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
3302
3303 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
3304
3305         * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
3306         * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
3307         mode if the instruction isn't available in the original mode.
3308         * config/sparc/sparc.opt (mfix-ut699): New option.
3309         * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
3310         (divdf3): Turn into expander.
3311         (divdf3_nofix): New insn.
3312         (divdf3_fix): Likewise.
3313         (divsf3): Disable if -mfix-ut699.
3314         (sqrtdf2): Turn into expander.
3315         (sqrtdf2_nofix): New insn.
3316         (sqrtdf2_fix): Likewise.
3317         (sqrtsf2): Disable if -mfix-ut699.
3318
3319 2013-05-27  Richard Biener  <rguenther@suse.de>
3320
3321         PR middle-end/57412
3322         * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
3323         block for the new loop.
3324
3325 2013-05-27  Richard Biener  <rguenther@suse.de>
3326
3327         PR tree-optimization/57343
3328         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
3329         use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
3330         (number_of_iterations_cond): Do not build the folded tree.
3331
3332 2013-05-27  Richard Biener  <rguenther@suse.de>
3333
3334         Revert
3335         PR middle-end/57381
3336         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
3337         OEP_CONSTANT_ADDRESS_OF retained.
3338
3339         PR tree-optimization/57417
3340         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
3341         for unchanged base.
3342         (set_ssa_val_to): Compare addresses using
3343         get_addr_base_and_unit_offset.
3344
3345 2013-05-27  Joern Rennecke <joern.rennecke@embecosm.com>
3346
3347         PR rtl-optimization/56833
3348         * postreload.c (move2add_record_mode): New function.
3349         (move2add_record_sym_value, move2add_valid_value_p): Likewise.
3350         (move2add_use_add2_insn): Use move2add_record_sym_value.
3351         (move2add_use_add3_insn): Likewise.
3352         (reload_cse_move2add): Use move2add_valid_value_p and
3353         move2add_record_mode.  Invalidate call-clobbered and REG_INC
3354         affected regs by setting reg_mode to VOIDmode.
3355         (move2add_note_store): Don't pretend the inside of a SUBREG is
3356         the actual destination.  Invalidate single/leading registers by
3357         setting reg_mode to VOIDmode.
3358         Use move2add_record_sym_value, move2add_valid_value_p and
3359         move2add_record_mode.
3360
3361 2013-05-27  Richard Biener  <rguenther@suse.de>
3362
3363         PR tree-optimization/57396
3364         * tree-affine.c (double_int_constant_multiple_p): Properly
3365         return false for val == 0 and div != 0.
3366
3367 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
3368
3369         * config/mips/mips.h: Use #elif in preprocessor conditions.
3370
3371 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
3372
3373         PR target/53916
3374         * config/mips/constraints.md (kl): New constraint.
3375         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
3376         (divmod<mode>4_internal): Rename to divmod<mode>4.  Use "kl" as the
3377         constraint for operand 0.  Split after CSE for MIPS16.  Emit a move
3378         from LO for MIPS16.
3379         (udivmod<mode>4_internal): Likewise udivmod<mode>4.
3380
3381 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
3382
3383         PR target/55777
3384         * config/mips/mips.c (mips_can_inline_p): New function.
3385         (TARGET_CAN_INLINE_P): Define.
3386
3387 2013-05-25  Steven Bosscher  <steven@gcc.gnu.org>
3388
3389         * sched-int.h (ds_t, dw_t): Make unsigned int.
3390         Fix documentation that describes how all the ds_t bits are used.
3391         Reserve the last bit for delayed-branch scheduling.
3392         (BITS_PER_DEP_STATUS): Move to ds_t typedef.
3393         (BITS_PER_DEP_WEAK): Fix definition and documentation.
3394         (gen_dep_weak_1): Remove prototype.
3395         * sched-deps.c (get_dep_weak_1): Make static.
3396         * target.def (speculate_insn, needs_block_p, gen_spec_check,
3397         get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
3398         * doc/tm.texi: Regenerate.
3399         * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
3400
3401 2013-05-24  Steven Bosscher  <steven@gcc.gnu.org>
3402
3403         PR debug/56950
3404         * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
3405
3406 2013-05-24  Nathan Sidwell  <nathan@codesourcery.com>
3407             Sandra Loosemore  <sandra@codesourcery.com>
3408
3409         * config.gcc (powerpc-*): Allow native for with-cpu.
3410
3411 2013-05-24  Jeff Law  <law@redhat.com>
3412
3413         PR tree-optimization/57124
3414         * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
3415         conversion feeding a condition if the range has an overflow
3416         if -fstrict-overflow.  Add warnings for when we do make the
3417         transformation.
3418
3419 2013-05-24  Dehao Chen  <dehao@google.com>
3420
3421         * tree-cfg.c (locus_discrim_map): Fix the typo.
3422         (locus_discrim_hasher): Likewise.
3423         (locus_discrim_hasher::hash): Likewise.
3424         (locus_discrim_hasher::equal): Likewise.
3425
3426 2013-05-24  Martin Jambor  <mjambor@suse.cz>
3427
3428         PR tree-optimization/57294
3429         * cgraph.h (ipa_record_stmt_references): Declare.
3430         * cgraphbuild.c (ipa_record_stmt_references): New function.
3431         (build_cgraph_edges): Use ipa_record_stmt_references.
3432         (rebuild_cgraph_edges): Likewise.
3433         (cgraph_rebuild_references): Likewise.
3434         * ipa-prop.c (ipa_modify_call_arguments): Discard references
3435         associated with the old statement and build references from the
3436         newly built statements.
3437         * ipa-ref.c (ipa_remove_stmt_references): New function.
3438         * ipa-ref.h (ipa_remove_stmt_references): Declare.
3439
3440 2013-05-24  Vladimir Makarov  <vmakarov@redhat.com>
3441
3442         * lra-constraints.c (emit_spill_move): Use smaller mode for
3443         mem-mem moves.
3444         (check_and_process_move): Consider mem-reg moves for secondary
3445         too.
3446         (curr_insn_transform): Don't lose insns emitted before for
3447         secondary memory moves.
3448         (inherit_in_ebb): Mark defined reg.  Add usage only if it is not a
3449         reg set up in the current insn.
3450
3451 2013-05-24  Dehao Chen  <dehao@google.com>
3452
3453         * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
3454         hash function.
3455         (locus_descrim_hasher::equal): Likewise.
3456         (build_gimple_cfg): New discriminator assignment algorithm.
3457         (make_edges): Likewise.
3458         (next_discriminator_for_locus): Likewise.
3459         (same_line_p): Likewise.
3460         (assign_discriminators): Likewise.
3461         (make_cond_expr_edges): Likewise.
3462         (make_gimple_switch_edges): Likewise.
3463         (make_goto_expr_edges): Likewise.
3464         (make_gimple_asm_edges): Likewise.
3465
3466 2013-05-24  Ian Bolton  <ian.bolton@arm.com>
3467
3468         * config/aarch64/aarch64.c (aarch64_print_operand): Change the
3469         X format specifier to only display bottom 16 bits.
3470         * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
3471         immediate to match for operand 2, since it will be masked.
3472
3473 2013-05-24  Richard Biener  <rguenther@suse.de>
3474
3475         PR tree-optimization/57287
3476         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
3477         all SSA names that occur in abnormal PHIs.
3478
3479 2013-05-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3480
3481         PR tree-ssa/57385
3482         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
3483         that index is not negative.
3484
3485 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
3486
3487         PR rtl-optimization/55177
3488         * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
3489         (simplify_byte_swapping_operation): New.
3490         (simplify_binary_operation_1): Call it for AND, IOR and XOR.
3491         (simplify_relational_operation_1): Deal with BSWAP.
3492
3493 2013-05-23  Richard Henderson  <rth@redhat.com>
3494
3495         PR target/56742
3496         * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
3497         (ix86_reorg): Call it.
3498
3499 2013-05-23  Uros Bizjak  <ubizjak@gmail.com>
3500
3501         PR target/57379
3502         * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
3503         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
3504         REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
3505
3506 2013-05-23  Christian Bruel  <christian.bruel@st.com>
3507
3508         PR debug/57351
3509         * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
3510
3511 2013-05-23  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3512             Marcus Shawcroft  <marcus.shawcroft@arm.com>
3513
3514         * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
3515         * config/aarch64/constraints.md (Usa): Remove.
3516         * doc/md.texi (AArch64 Usa): Remove.
3517
3518 2013-05-23  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3519             Marcus Shawcroft  <marcus.shawcroft@arm.com>
3520
3521         * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
3522         * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
3523         * config/aarch64/predicates.md (aarch64_const_address): Remove.
3524         (aarch64_mov_operand): Use aarch64_mov_operand_p.
3525
3526 2013-05-23  Vidya Praveen <vidyapraveen@arm.com>
3527
3528         * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
3529         instruction (AdvSIMD).
3530         * config/aarch64/aarch64-builtins.c
3531         (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
3532         * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
3533
3534 2013-05-23  Martin Jambor  <mjambor@suse.cz>
3535
3536         PR middle-end/57347
3537         * tree.h (contains_bitfld_component_ref_p): Declare.
3538         * tree-sra.c (contains_bitfld_comp_ref_p): Move...
3539         * tree.c (contains_bitfld_component_ref_p): ...here.  Adjust its
3540         caller.
3541         * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
3542         not access a bit-field.  Assert all final offsets are byte-aligned.
3543
3544 2013-05-23  Richard Biener  <rguenther@suse.de>
3545
3546         PR tree-optimization/57380
3547         * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
3548         least one invariant or re-used load.
3549         * passes.c (init_optimization_passes): Move pass_phiprop before
3550         pass_forwprop.
3551
3552 2013-05-23  James Greenhalgh  <james.greenhalgh@arm.com>
3553
3554         * config/aarch64/aarch64-simd.md
3555         (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
3556
3557 2013-05-23  Richard Biener  <rguenther@suse.de>
3558
3559         PR middle-end/57381
3560         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
3561         OEP_CONSTANT_ADDRESS_OF retained.
3562
3563 2013-05-23  Jakub Jelinek  <jakub@redhat.com>
3564
3565         PR middle-end/57344
3566         * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
3567         don't lower unit.  Handle unit not being always BITS_PER_WORD.
3568
3569 2013-05-23  Richard Biener  <rguenther@suse.de>
3570
3571         PR rtl-optimization/57341
3572         * ira.c (validate_equiv_mem_from_store): Use anti_dependence
3573         instead of true_dependence.
3574
3575 2013-05-22  David Malcolm  <dmalcolm@redhat.com>
3576
3577         * bb-reorder.c (branch_threshold): Make const.
3578         (exec_threshold): Ditto.
3579
3580 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
3581             Pat Haugen <pthaugen@us.ibm.com>
3582             Peter Bergner <bergner@vnet.ibm.com>
3583
3584         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
3585         documentation for the power8 crypto builtins.
3586
3587         * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
3588
3589         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
3590         macros for defining power8 builtin functions.
3591         (BU_P8V_AV_2): Likewise.
3592         (BU_P8V_AV_P): Likewise.
3593         (BU_P8V_VSX_1): Likewise.
3594         (BU_P8V_OVERLOAD_1): Likewise.
3595         (BU_P8V_OVERLOAD_2): Likewise.
3596         (BU_CRYPTO_1): Likewise.
3597         (BU_CRYPTO_2): Likewise.
3598         (BU_CRYPTO_3): Likewise.
3599         (BU_CRYPTO_OVERLOAD_1): Likewise.
3600         (BU_CRYPTO_OVERLOAD_2): Likewise.
3601         (XSCVSPDP): Fix typo, point to the correct instruction.
3602         (VCIPHER): Add power8 crypto builtins.
3603         (VCIPHERLAST): Likewise.
3604         (VNCIPHER): Likewise.
3605         (VNCIPHERLAST): Likewise.
3606         (VPMSUMB): Likewise.
3607         (VPMSUMH): Likewise.
3608         (VPMSUMW): Likewise.
3609         (VPERMXOR_V2DI): Likewise.
3610         (VPERMXOR_V4SI: Likewise.
3611         (VPERMXOR_V8HI: Likewise.
3612         (VPERMXOR_V16QI: Likewise.
3613         (VSHASIGMAW): Likewise.
3614         (VSHASIGMAD): Likewise.
3615         (VPMSUM): Likewise.
3616         (VPERMXOR): Likewise.
3617         (VSHASIGMA): Likewise.
3618
3619         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
3620         __CRYPTO__ if the crypto instructions are available.
3621         (altivec_overloaded_builtins): Add support for overloaded power8
3622         builtins.
3623
3624         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
3625         support for power8 crypto builtins.
3626         (builtin_function_type): Likewise.
3627         (altivec_init_builtins): Add support for builtins that take vector
3628         long long (V2DI) arguments.
3629
3630         * config/rs6000/crypto.md: New file, define power8 crypto
3631         instructions.
3632
3633 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
3634             Pat Haugen <pthaugen@us.ibm.com>
3635             Peter Bergner <bergner@vnet.ibm.com>
3636
3637         * doc/invoke.texi (Option Summary): Add power8 options.
3638         (RS/6000 and PowerPC Options): Likewise.
3639
3640         * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
3641         constraints.md instead of rs6000.h.  Reorder w* constraints.  Add
3642         wm, wn, wr documentation.
3643
3644         * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
3645         registers if direct move instructions are enabled.
3646         (wn): New constraint for no registers.
3647         (wq): New constraint for quad word even GPR registers.
3648         (wr): New constraint if 64-bit instructions are enabled.
3649         (wv): New constraint if power8 vector instructions are enabled.
3650         (wQ): New constraint for quad word memory locations.
3651
3652         * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
3653         constraint for 0..15 for crypto instructions.
3654         (gpc_reg_operand): If VSX allow registers in VSX registers as well
3655         as GPR and floating point registers.
3656         (int_reg_operand): New predicate to match only GPR registers.
3657         (base_reg_operand): New predicate to match base registers.
3658         (quad_int_reg_operand): New predicate to match even GPR registers
3659         for quad memory operations.
3660         (vsx_reg_or_cint_operand): New predicate to allow vector logical
3661         operations in both GPR and VSX registers.
3662         (quad_memory_operand): New predicate for quad memory operations.
3663         (reg_or_indexed_operand): New predicate for direct move support.
3664
3665         * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
3666         Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
3667         (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
3668         (POWERPC_MASKS): Add power8 options.
3669         (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
3670         various options.
3671
3672         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
3673         Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
3674
3675         * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
3676         (-mpower8-fusion): New power8 options.
3677         (-mpower8-fusion-sign): Likewise.
3678         (-mpower8-vector): Likewise.
3679         (-mcrypto): Likewise.
3680         (-mdirect-move): Likewise.
3681         (-mquad-memory): Likewise.
3682
3683         * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
3684         power8.
3685         (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
3686         registers.
3687         (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
3688         (rs6000_debug_vector_unit): Add p8_vector.
3689         (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
3690         definitions.  Also print fusion state.
3691         (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
3692         (rs6000_builtin_mask_calculate): Add power8 builtin support.
3693         (rs6000_option_override_internal): Add support for power8.
3694         (rs6000_common_init_builtins): Add debugging for skipped builtins
3695         if -mdebug=builtin.
3696         (rs6000_adjust_cost): Add power8 support.
3697         (rs6000_issue_rate): Likewise.
3698         (insn_must_be_first_in_group): Likewise.
3699         (insn_must_be_last_in_group): Likewise.
3700         (force_new_group): Likewise.
3701         (rs6000_register_move_cost): Likewise.
3702         (rs6000_opt_masks): Likewise.
3703
3704         * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
3705         power8 capable assembler, default to power7 options.
3706         (TARGET_DIRECT_MOVE): Likewise.
3707         (TARGET_CRYPTO): Likewise.
3708         (TARGET_P8_VECTOR): Likewise.
3709         (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
3710         (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
3711         (VECTOR_MEM_P8_VECTOR_P): Likewise.
3712         (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
3713         (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
3714         (TARGET_XSCVDPSPN): Likewise.
3715         (TARGET_XSCVSPDPN): Likewsie.
3716         (TARGET_SYNC_HI_QI): Likewise.
3717         (TARGET_SYNC_TI): Likewise.
3718         (MASK_CRYPTO): Likewise.
3719         (MASK_DIRECT_MOVE): Likewise.
3720         (MASK_P8_FUSION): Likewise.
3721         (MASK_P8_VECTOR): Likewise.
3722         (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
3723         temporary used by some of the direct move instructions to get two FP
3724         temporary registers does not force creation of a stack frame.
3725         (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
3726         (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
3727         that any VSX registers are tieable, even if they are also an
3728         Altivec vector mode.
3729         (r6000_reg_class_enum): Add wm, wr, wv constraints.
3730         (RS6000_BTM_P8_VECTOR): Power8 builtin support.
3731         (RS6000_BTM_CRYPTO): Likewise.
3732         (RS6000_BTM_COMMON): Likewise.
3733
3734         * config/rs6000/rs6000.md (cpu attribute): Add power8.
3735         * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
3736         (enum rs6000_vector): Add power8 vector support.
3737
3738 2013-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3739
3740         PR target/19599
3741         PR target/57340
3742         * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
3743         (any_sibcall_could_use_r3): this and handle indirect calls.
3744         (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
3745
3746 2013-05-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3747
3748         * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
3749
3750 2013-05-22  Richard Biener  <rguenther@suse.de>
3751
3752         PR middle-end/57349
3753         * profile.c (branch_prob): Do not split blocks that are
3754         abnormally receiving from ECF_RETURNS_TWICE functions.
3755
3756 2013-05-22  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
3757
3758         * recog.c (offsettable_address_addr_space_p): Fix calculation of
3759         address mode.  Move pointer mode initialization to the same place.
3760
3761 2013-05-22  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3762
3763         * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
3764         while it has any effect.
3765
3766 2013-05-21  Easwaran Raman  <eraman@google.com>
3767
3768         PR tree-optimization/57322
3769         * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
3770         UID of the statement added to the BB to be 1.
3771
3772 2013-05-21  Jakub Jelinek  <jakub@redhat.com>
3773
3774         PR tree-optimization/57331
3775         * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
3776         of conversion from pointer type to integral type with integer.
3777
3778 2013-05-21  Martin Jambor  <mjambor@suse.cz>
3779
3780         PR lto/57289
3781         * ipa-prop.c (ipa_read_node_info): Process param_used and
3782         controlled_uses in the same order as when writing.
3783
3784 2013-05-21  Magnus Granberg  <baldrick@free.fr>
3785
3786         PR plugins/56754
3787         * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
3788
3789 2013-05-21  Richard Biener  <rguenther@suse.de>
3790
3791         PR tree-optimization/57318
3792         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
3793         estimate stmts with side-effects as likely eliminated.
3794
3795 2013-05-21  Richard Biener  <rguenther@suse.de>
3796
3797         PR tree-optimization/57330
3798         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
3799         preserve the call stmts fntype.
3800
3801 2013-05-21  Richard Biener  <rguenther@suse.de>
3802
3803         PR tree-optimization/57303
3804         * tree-ssa-sink.c (statement_sink_location): Improve killing
3805         stmt detection and properly handle self-assignments.
3806
3807 2013-05-21  Christian Bruel  <christian.bruel@st.com>
3808
3809         * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
3810         spanning registers. LEAF_REG_REMAP is supported only for contiguous
3811         registers. Set register size out of the PARALLEL loop.
3812
3813 2013-05-20  Oleg Endo  <olegendo@gcc.gnu.org>
3814
3815         PR target/56547
3816         * config/sh/sh.md (fmasf4): Remove empty constraints strings.
3817         (*fmasf4, *fmasf4_media): New insns.
3818
3819 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
3820
3821         * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
3822         * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
3823         (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
3824         (mips_idiv_insns): Update the comments to say that the returned
3825         instruction counts are in units of BASE_INSN_LENGTH.
3826         (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
3827         by BASE_INSN_LENGTH rather than 4.  Add the jump separately,
3828         using 2 rather than 4 as the length of indirect MIPS16 and
3829         microMIPS jumps.  Use NOP_INSN_LENGTH rather than 4 as the
3830         length of a NOP.  Don't divide MIPS16 lengths by 2.
3831         (mips16_split_long_branches): Assume a branch is long if the
3832         length is greater than 4 rather than 8.
3833         * config/mips/mips.md (length): Give MIPS16 lengths directly,
3834         rather than multiplying them by 2.  Multiply instruction counts
3835         by BASE_INSN_LENGTH rather than 4.
3836         (*jump_mips16, tls_get_tp_mips16_<mode>)
3837         (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
3838
3839 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
3840
3841         * config/mips/mips.md (extended_mips16): Remove branch case.
3842         (length): Remove duplicated extended_mips16 test.
3843
3844 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
3845
3846         * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
3847
3848 2013-05-18  Richard Sandiford  <rdsandiford@googlemail.com>
3849
3850         * recog.h (Recog_data): Rename to...
3851         (recog_data_d): ...this.
3852         (recog_data): Update accordingly.
3853         * recog.c (recog_data): Likewise.
3854         * reload.c (save_recog_data): Likewise.
3855         * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
3856         (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
3857
3858 2013-05-17  Julian Brown  <julian@codesourcery.com>
3859
3860         * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
3861         found in a REG_EQUAL note, invalidate it.
3862
3863 2013-05-17   Easwaran Raman  <eraman@google.com>
3864
3865         * tree-ssa-reassoc.c (find_insert_point): New function.
3866         (insert_stmt_after): Likewise.
3867         (get_def_stmt): Likewise.
3868         (ensure_ops_are_available): Likewise.
3869         (not_dominated_by): Likewise.
3870         (rewrite_expr_tree): Do not move statements beyond what is
3871         necessary. Remove call to swap_ops_for_binary_stmt...
3872         (reassociate_bb): ... and move it here.
3873         (build_and_add_sum): Assign UIDs for new statements.
3874         (linearize_expr): Likewise.
3875         (do_reassoc): Renumber gimple statement UIDs.
3876
3877 2013-05-17  Jan Hubicka  <jh@suse.cz>
3878
3879         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
3880         weakrefs.
3881         * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
3882         * cgraphunit.c (handle_alias_pairs): Store target of unresolved
3883         weakrefs.
3884         (output_weakrefs): Update.
3885
3886 2013-05-17  Po-Chun Chang  <pchang9@cs.wisc.edu>
3887             Martin Jambor  <mjambor@suse.cz>
3888
3889         PR middle-end/57276
3890         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
3891         value that corresponds to the given aggval is found in values vector.
3892
3893 2013-05-17  Uros Bizjak  <ubizjak@gmail.com>
3894
3895         * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
3896         sse, sse2, sse3, ssse3 and sse4a flags to options.
3897
3898 2013-05-17  David Malcolm  <dmalcolm@redhat.com>
3899
3900         * gengtype-state.c: (s_expr_writer): New class, to handle
3901         prettifying of output layout of s-expressions.
3902         (state_writer): New class, to write out gtype.state.
3903         (state_written_type_count): Move this variable into member data of
3904         state_writer.
3905         (s_expr_writer::s_expr_writer): New code: constructor for new class
3906         (state_writer::state_writer(): ditto
3907         (s_expr_writer::write_new_line): New function
3908         (s_expr_writer::write_any_indent): ditto
3909         (s_expr_writer::begin_s_expr): ditto
3910         (s_expr_writer::end_s_expr): ditto
3911         (write_state_fileloc): convert to method of state_writer...
3912         (state_writer:: write_state_fileloc): ...and use methods of
3913         s_expr_writer to write indentation into the gtype.state output file
3914         to visually represent the hierarchical structure of the list
3915         structures
3916         (write_state_fields): ditto, renaming to...
3917         (state_writer::write_state_fields)
3918         (write_state_a_string): ditto, renaming to...
3919         (state_writer::write_state_a_string)
3920         (write_state_string_option): ditto, renaming to...
3921         (state_writer::write_state_string_option)
3922         (write_state_type_option): ditto, renaming to...
3923         (state_writer::write_state_type_option)
3924         (write_state_nested_option): ditto, renaming to...
3925         (state_writer::write_state_nested_option)
3926         (write_state_option): ditto, renaming to...
3927         (state_writer::write_state_option)
3928         (write_state_options): ditto, renaming to...
3929         (state_writer::write_state_options)
3930         (write_state_lang_bitmap): ditto, renaming to...
3931         (state_writer::write_state_lang_bitmap)
3932         (write_state_version): ditto, renaming to...
3933         (state_writer::write_state_version)
3934         (write_state_scalar_type): ditto, renaming to...
3935         (state_writer::write_state_scalar_type)
3936         (write_state_string_type): ditto, renaming to...
3937         (state_writer::write_state_string_type)
3938         (write_state_undefined_type): ditto, renaming to...
3939         (state_writer::write_state_undefined_type)
3940         (write_state_struct_union_type): ditto, renaming to...
3941         (state_writer::write_state_struct_union_type)
3942         (write_state_struct_type): ditto, renaming to...
3943         (state_writer::write_state_struct_type)
3944         (write_state_user_struct_type): ditto, renaming to...
3945         (state_writer::write_state_user_struct_type)
3946         (write_state_lang_struct_type): ditto, renaming to...
3947         (state_writer::write_state_lang_struct_type)
3948         (write_state_param_struct_type): ditto, renaming to...
3949         (state_writer::write_state_param_struct_type)
3950         (write_state_pointer_type): ditto, renaming to...
3951         (state_writer::write_state_pointer_type)
3952         (write_state_array_type): ditto, renaming to...
3953         (state_writer::write_state_array_type)
3954         (write_state_gc_used): ditto, renaming to...
3955         (state_writer::write_state_gc_used)
3956         (write_state_common_type_content): ditto, renaming to...
3957         (state_writer::write_state_common_type_content)
3958         (write_state_type): ditto, renaming to...
3959         (state_writer::write_state_type)
3960         (write_state_pair_list): ditto, renaming to...
3961         (state_writer::write_state_pair_list)
3962         (write_state_pair): ditto, renaming to...
3963         (state_writer::write_state_pair)
3964         (write_state_typedefs): ditto, renaming to...
3965         (state_writer::write_state_typedefs)
3966         (write_state_structures): ditto, renaming to...
3967         (state_writer::write_state_structures)
3968         (write_state_param_structs): ditto, renaming to...
3969         (state_writer::write_state_param_structs)
3970         (write_state_variables): ditto, renaming to...
3971         (state_writer::write_state_variables)
3972         (write_state_srcdir): ditto, renaming to...
3973         (state_writer::write_state_srcdir)
3974         (write_state_files_list): ditto, renaming to...
3975         (state_writer::write_state_files_list)
3976         (write_state_languages): ditto, renaming to...
3977         (state_writer::write_state_languages)
3978         (write_state): create a state_writer instance and use it when
3979         writing out the state file
3980
3981 2013-05-17  Mike Stump  <mikestump@comcast.net>
3982
3983         PR rtl-optimization/57304
3984         * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
3985         accessing DF_REF_REAL_LOC.
3986
3987 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
3988
3989         PR rtl-optimization/57281
3990         PR rtl-optimization/57300
3991         * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
3992         (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
3993         what the other splitter did if the registers are dead.
3994
3995 2013-05-17  Richard Biener  <rguenther@suse.de>
3996
3997         * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
3998         MEM_REF offsets.
3999
4000 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
4001
4002         * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
4003         linking.
4004
4005 2013-05-17  Marek Polacek  <polacek@redhat.com>
4006
4007         * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
4008         length when doing non-zero store of storing '\0' to '\0'.
4009
4010 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
4011
4012         * tree-vect-patterns.c (vect_recog_rotate_pattern): For
4013         vect_external_def oprnd1 with loop_vinfo, try to emit
4014         optional cast, negation and and stmts on the loop preheader
4015         edge instead of into the pattern def seq.
4016
4017         PR tree-optimization/57051
4018         * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
4019         case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
4020
4021 2013-05-16  Nick Clifton  <nickc@redhat.com>
4022
4023         * config/rl78/rl78.c (rl78_attribute_table): Add naked.
4024         (rl78_is_naked_func): New function.
4025         (rl78_expand_prologue): Skip prologue generation for naked functions.
4026         (rl78_expand_epilogue): Skip epilogue generation for naked functions.
4027         * doc/extend.texi (naked): Add RL78 to the list of processors
4028         that supports this attribute.
4029
4030 2013-05-16  Jeff Law  <law@redhat.com>
4031
4032         * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
4033
4034 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
4035
4036         * config/i386/driver-i386.c (host_detect_local_cpu): Determine
4037         cache parameters using detect_caches_amd also for CYRIX,
4038         NSC and TM2 signatures.
4039
4040 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
4041             Dzianis Kahanovich  <mahatma@eu.by>
4042
4043         PR target/45359
4044         PR target/46396
4045         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
4046         VIA/Centaur processors and determine their cache parameters
4047         using detect_caches_amd.
4048
4049 2013-05-16  Teresa Johnson  <tejohnson@google.com>
4050
4051         * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
4052         (rtl_verify_edges): New function.
4053         (rtl_verify_bb_insns): Ditto.
4054         (rtl_verify_bb_pointers): Ditto.
4055         (rtl_verify_bb_insn_chain): Ditto.
4056         (rtl_verify_fallthru): Ditto.
4057         (rtl_verify_bb_layout): Ditto.
4058         (rtl_verify_flow_info_1): Outline checks into new functions.
4059         (rtl_verify_flow_info): Ditto.
4060
4061 2013-05-16  Steve Ellcey  <sellcey@imgtec.com>
4062
4063         * cfghooks.c (copy_bbs): Add update_dominance argument.
4064         * cfghooks.h (copy_bbs): Update prototype.
4065         * tree-cfg.c (gimple_duplicate_sese_region):
4066         Add update_dominance argument.
4067         * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
4068         * tree-ssa-loop-ch.c (copy_loop_headers): Update
4069         gimple_duplicate_sese_region call.
4070         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
4071         Update copy_bbs call.
4072         * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
4073         * trans-mem.c (ipa_uninstrument_transaction): Ditto.
4074
4075 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
4076
4077         * tree-vectorizer.h (NUM_PATTERNS): Increment.
4078         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
4079         vect_recog_rotate_pattern.
4080         (vect_recog_rotate_pattern): New function.
4081
4082 2013-05-16  Jason Merrill  <jason@redhat.com>
4083
4084         * Makefile.in (LLINKER): New variable.
4085         (mostlyclean): Remove link mutex.
4086         * configure.ac: Handle --enable-link-mutex.
4087         * lock-and-run.sh: New script.
4088
4089 2013-05-16  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4090
4091         PR target/19599
4092         * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
4093         for NULL decl.
4094
4095 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4096
4097         * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
4098
4099 2013-05-16  Greta Yorsh  <Greta.Yorsh@arm.com>
4100
4101         * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
4102         * config/arm/arm.c (next_consecutive_mem): New function.
4103         (gen_movmem_ldrd_strd): Likewise.
4104         * config/arm/arm.md (movmemqi): Update condition and code.
4105         (unaligned_loaddi, unaligned_storedi): New patterns.
4106
4107 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4108
4109         * config.gcc: Obsolete *-*-solaris2.9*.
4110         * doc/install.texi (Specific, *-*-solaris2*): Document it.
4111
4112 2013-05-16  Richard Biener  <rguenther@suse.de>
4113
4114         * passes.c (init_optimization_passes): Move pass_parallelize_loops
4115         earlier, after GRAPHITE transforms and IV canonicalization.
4116
4117 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
4118
4119         * omp-low.c (extract_omp_for_data): For collapsed loops,
4120         if at least one of the loops is known at compile time to
4121         iterate zero times, set count to 0.
4122         (expand_omp_regimplify_p): New function.
4123         (expand_omp_for_generic): For collapsed loops, if at least
4124         one of the loops isn't known to iterate at least once,
4125         add runtime check with setting count to 0.
4126         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
4127         For unsigned types if it isn't known at compile time that
4128         the loop will iterate at least once, add runtime check to bypass
4129         the whole loop if initial condition isn't true.
4130
4131 2013-05-16  Nathan Sidwell  <nathan@codesourcery.com>
4132
4133         * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
4134
4135 2013-05-16  Marc Glisse  <marc.glisse@inria.fr>
4136
4137         PR middle-end/57286
4138         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
4139         transformations to avoid an infinite loop.
4140
4141 2013-05-16  Marek Polacek  <polacek@redhat.com>
4142
4143         * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
4144
4145 2013-05-15  Leif Ekblad  <leif@rdos.net>
4146
4147         * config/i386/i386.c (ix86_decompose_address): Use
4148         DEFAULT_TLS_SEG_REG to access TLS segment register.
4149         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
4150         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
4151         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
4152
4153 2013-05-15  Richard Sandiford  <rdsandiford@googlemail.com>
4154
4155         PR target/57260
4156         * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
4157         sibling calls to functions that would normally be lazily bound,
4158         unless $gp is call-clobbered.
4159
4160 2013-05-15  Uros Bizjak  <ubizjak@gmail.com>
4161
4162         * config/i386/i386.c (ix86_option_override_internal): Update
4163         processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags.  Add
4164         PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
4165         non-SSE 3dNow! targets.  Enable TARGET_PRFCHW for TARGET_3DNOW targets.
4166         * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
4167         of TARGET_3DNOW.
4168         (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
4169
4170 2013-05-15  Andreas Schwab  <schwab@suse.de>
4171
4172         * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
4173         for rotlhi3+1 and rotlqi3+1, resp.  Fix reference to non-existing
4174         third operand.
4175
4176 2013-05-15  Teresa Johnson  <tejohnson@google.com>
4177
4178         * loop-unroll.c (report_unroll_peel): Check decision before
4179         emitting unroll/peel message.
4180
4181 2013-05-15  Teresa Johnson  <tejohnson@google.com>
4182
4183         * function.h (has_bb_partition): New rtl_data flag.
4184         (bb_reorder_complete): Ditto.
4185         * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
4186         instead of flag_reorder_blocks_and_partition.
4187         * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
4188         with some enhancements.
4189         (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
4190         * bb-reorder.c (connect_traces): Check for has_bb_partition
4191         instead of flag_reorder_blocks_and_partition.
4192         (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
4193         (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
4194         verify_hot_cold_block_grouping.
4195         (partition_hot_cold_basic_blocks): Set has_bb_partition.
4196
4197 2013-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4198
4199         PR target/19599
4200         * config/arm/predicates.md (call_insn_operand): New predicate.
4201         * config/arm/constraints.md ("Cs", "Ss"):  New constraints.
4202         * config/arm/arm.md (*call_insn, *call_value_insn): Match only
4203         if insn is not a tail call.
4204         (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
4205         registers.
4206         * config/arm/arm.h (enum reg_class): New caller save register class.
4207         (REG_CLASS_NAMES): Likewise.
4208         (REG_CLASS_CONTENTS): Likewise.
4209         * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
4210         without decls.
4211
4212 2013-05-15  Richard Biener  <rguenther@suse.de>
4213
4214         * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
4215         of MSG_OPTIMIZED_LOCATIONS.
4216         * tree-vect-slp.c (vect_make_slp_decision): Likewise.
4217         (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
4218         message.
4219         * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
4220         of MSG_OPTIMIZED_LOCATIONS.
4221         (execute_vect_slp): Likewise.
4222         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
4223         (vect_create_cond_for_alias_checks): Likewise.
4224         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
4225         (vect_recog_widen_mult_pattern): Likewise.
4226         (vect_recog_widen_sum_pattern): Likewise.
4227         (vect_recog_over_widening_pattern): Likewise.
4228         (vect_recog_widen_shift_pattern): Likewise.
4229         (vect_recog_vector_vector_shift_pattern): Likewise.
4230         (vect_recog_divmod_pattern): Likewise.
4231         (vect_recog_mixed_size_cond_pattern): Likewise.
4232         (vect_recog_bool_pattern): Likewise.
4233         (vect_pattern_recog_1): Likewise.
4234
4235 2013-05-15  Martin Jambor  <mjambor@suse.cz>
4236
4237         * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
4238         non-functions to builtin_unreachable.
4239         * ipa-inline-transform.c (inline_call): Do not assert estimates were
4240         correct when new direct edges were discovered.
4241
4242 2013-05-15  Martin Jambor  <mjambor@suse.cz>
4243
4244         * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
4245         header, print symbol order instead of node uid, print more information
4246         about indirect edge targets.
4247         (ipa_make_edge_direct_to_target): Print symbol order instead of node
4248         uids.
4249         (ipa_make_edge_direct_to_target): Likewise.
4250         (remove_described_reference): Likewise.
4251         (propagate_controlled_uses): Likewise.
4252         (ipa_print_node_params): Also print symbol order.
4253         (ipcp_transform_function): Print symbol order instead of node uids.
4254         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
4255         (cgraph_get_create_real_symbol_node): Likewise.
4256         * ipa-cp.c (print_lattice): Likewise.
4257         (print_all_lattices): Likewise.
4258         (determine_versionability): Likewise.
4259         (initialize_node_lattices): Likewise.
4260         (estimate_local_effects): Likewise.
4261         (update_profiling_info): Likewise.
4262         (create_specialized_node): Likewise.
4263         (perhaps_add_new_callers): Likewise.
4264         (decide_about_value): Likewise.
4265         (decide_whether_version_node): Likewise.
4266         (identify_dead_nodes): Likewise.
4267         * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
4268         (dump_inline_summary): Likewise.
4269         (estimate_node_size_and_time): Likewise.
4270         (inline_analyze_function): Likewise.
4271         * ipa-inline.c (report_inline_failed_reason): Likewise.
4272         (want_early_inline_function_p): Likewise.
4273         (edge_badness): Likewise.
4274         (update_edge_key): Likewise.
4275         (inline_small_functions): Likewise.  Add dumping of order to two other
4276         dumps.
4277         * ipa-pure-const.c (pure_const_read_summary): Print symbol order
4278         instead of node uids.
4279         (propagate_pure_const): Likewise.
4280         (propagate_pure_const): Likewise.
4281         * ipa-utils.c (dump_cgraph_node_set): Likewise.
4282         * lto-cgraph.c (input_node): Explicitly specify we dump uid.
4283         * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
4284         of node uids.
4285         * tree-pretty-print.c (dump_function_header): Likewise.
4286         * tree-sra.c (convert_callers_for_node): Dump in traditional format.
4287         Print symbol order instead of node uids.
4288
4289 2013-05-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4290
4291         * config/s390/s390.c (s390_register_move_cost): Don't impose the
4292         FPR<->GPR move cost penalty if ldgr/lgdr can be used.
4293
4294 2013-05-15  Richard Biener  <rguenther@suse.de>
4295
4296         PR tree-optimization/57275
4297         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
4298         return value for fail to do runtime alias checks for gather loads.
4299
4300 2013-05-15  Jan Hubicka  <jh@suse.cz>
4301
4302         PR lto/57038
4303         PR lto/47375
4304         * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
4305         weakrefs are not external.
4306         (lto_symtab_merge_decls): Fix thinko when dealing with
4307         non-lto_symtab decls.
4308         (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
4309         (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
4310         * varpool.c (dump_varpool_node): Dump more flags.
4311
4312 2013-05-15  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
4313
4314         * config/i386/i386.c (processor_alias_table): Add instruction
4315         FSGSBASE for AMD bdver3 architecture.
4316
4317 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
4318
4319         * tree.c (warn_deprecated_use): Print file:line using locus color.
4320         * diagnostic.c (diagnostic_report_current_module): Print file:line
4321         and file:line:column using locus color.
4322
4323 2013-05-14  Mike Stump  <mikestump@comcast.net>
4324
4325         * gdbinit.in: Add __null.
4326
4327 2013-05-14  Mike Stump  <mikestump@comcast.net>
4328
4329         * recog.h: Rename struct recog_data to Recog_data.
4330         * recog.c: Likewise.
4331         * reload.c (can_reload_into): Likewise.
4332         * config/picochip/picochip.c: Likewise.
4333
4334 2013-05-14  Mike Stump  <mikestump@comcast.net>
4335
4336         * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
4337
4338 2013-05-14  Steven Bosscher  <steven@gcc.gnu.org>
4339
4340         * resource.h (struct resources): Remove unch_memory member.
4341         (CLEAR_RESOURCE): Don't clear unch_memory.
4342         * resource.c (mark_referenced_resources): Don't set it.
4343         (mark_set_resources): Likewise.
4344         (mark_target_live_regs): Don't clear it.
4345         (init_resource_info): Likewise.
4346         * reorg.c (resource_conflicts_p): Don't compare it.
4347         (redundant_insn): Don't set it.
4348
4349         * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
4350         Remove prototypes.
4351         * emit-rtl.c (next_label): Remove unused function.
4352         (skip_consecutive_labels, link_cc0_insns): Move to ...
4353         * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
4354         only place where these functions are used, and make them static.
4355
4356 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
4357
4358         * fold-const.c (fold_negate_expr): Handle vectors.
4359         (fold_truth_not_expr): Make it static.
4360         (fold_invert_truthvalue): New static function.
4361         (invert_truthvalue_loc): Handle vectors. Do not call
4362         fold_truth_not_expr directly.
4363         (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
4364         <TRUTH_NOT_EXPR>: Do not cast to boolean.
4365         (fold_comparison): Handle vector constants.
4366         (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
4367         (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
4368         * tree.h (fold_truth_not_expr): Remove declaration.
4369
4370 2013-05-14  James Greenhalgh  <james.greenhalgh@arm.com>
4371
4372         * config/aarch64/aarch64-simd.md
4373         (aarch64_vcond_internal<mode>): Rename to...
4374         (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
4375         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
4376         float modes. Clarify all iterator modes.
4377         (vcond<mode><mode>): Use new name for vcond expanders.
4378         (vcond<v_cmp_result><mode>): Likewise.
4379         (vcondu<mode><mode>: Likewise.
4380         * config/aarch64/iterators.md (VDQF_COND): New.
4381
4382 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
4383
4384         PR bootstrap/57266
4385         * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
4386         variable for the shift amount. Check that we shift by non-negative
4387         amounts.
4388
4389 2013-05-14  Chung-Lin Tang  <cltang@codesourcery.com>
4390
4391         PR target/42017
4392         * config/arm/arm.h (EPILOGUE_USES): Only return true
4393         for LR_REGNUM after epilogue_completed.
4394
4395 2013-05-14  Joern Rennecke <joern.rennecke@embecosm.com>
4396
4397         * config/avr/avr.c (avr_encode_section_info): Bail out if the type
4398         is error_mark_node.
4399
4400 2013-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4401
4402         PR target/57261
4403         * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
4404         and Solaris 11+/x86 with gld.
4405         * configure: Regenerate.
4406
4407 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
4408
4409         * expmed.c (expand_shift_1): Canonicalize rotates by
4410         constant bitsize / 2 to bitsize - 1.
4411         * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
4412         case ROTATERT>: Likewise.
4413
4414         Revert:
4415         2013-05-10  Jakub Jelinek  <jakub@redhat.com>
4416
4417         * config/i386/i386.md (rotateinv): New code attr.
4418         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
4419         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
4420         roll $31, %eax, etc.
4421
4422 2013-05-14  Richard Biener  <rguenther@suse.de>
4423
4424         PR middle-end/57235
4425         * tree-eh.c (sink_clobbers): Give up for successors with
4426         multiple predecessors and no virtual uses.
4427
4428 2013-05-14  Eric Botcazou  <ebotcazou@adacore.com>
4429
4430         * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
4431         * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
4432
4433 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
4434
4435         PR middle-end/57251
4436         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
4437         the case when both op0 and op1 have VOIDmode.
4438
4439 2013-05-14  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
4440
4441         * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
4442         in multiply-accumulate mode.
4443
4444 2013-05-13  Guozhi Wei  <carrot@google.com>
4445
4446         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
4447
4448 2013-05-13  Kai Tietz  <ktietz@redhat.com>
4449
4450         PR target/56975
4451         * config/i386/cygming.h (TARGET_PECOFF): Define as true.
4452         * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
4453         (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
4454         * config/i386/i386.c (ix86_option_override_internal): Likewise.
4455         (ix86_expand_prologue): Likewise.
4456         (ix86_expand_split_stack_prologue): Likewise.
4457         (legitimate_pic_address_disp_p): Likewise.
4458         (legitimize_pic_address): Likewise.
4459         (legitimize_tls_address): Likewise.
4460         (legitimize_pe_coff_symbol): Likewise.
4461         (output_pic_addr_const): Likewise.
4462         (construct_plt_address): Likewise.
4463         (ix86_expand_call): Likewise.
4464         (x86_output_mi_thunk): Likewise.
4465         (x86_function_profiler): Likewise.
4466
4467 2013-05-13  Sofiane Naci  <sofiane.naci@arm.com>
4468
4469         * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
4470         similar switch cases.
4471         (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
4472         (aarch64_simd_mov_to_<mode>low): Delete.
4473         (aarch64_simd_mov_to_<mode>high): Delete.
4474         (move_lo_quad_<mode>): Add w<-r alternative.
4475         (aarch64_simd_move_hi_quad_<mode>): Likewise.
4476         (aarch64_simd_mov_from_*): Update type attribute.
4477         * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
4478         statement.
4479
4480 2013-05-13  Jan Hubicka  <jh@suse.cz>
4481
4482         * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
4483         * config/i386/i386.c (ix86_compute_frame_layout,
4484         ix86_expand_epilogue, emit_i387_cw_initialization,
4485         ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
4486         ix86_local_alignment): Fix use of size/speed predicates.
4487
4488 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
4489
4490         PR tree-optimization/45216
4491         PR tree-optimization/57157
4492         * tree-ssa-forwprop.c (simplify_rotate): Only recognize
4493         the (-Y) & (B - 1) variant if OP is |.
4494         * expmed.c (expand_shift_1): For rotations by const0_rtx just
4495         return shifted.  Use (-op1) & (prec - 1) as other_amount
4496         instead of prec - op1.
4497
4498 2013-05-13  Martin Jambor  <mjambor@suse.cz>
4499
4500         PR middle-end/42371
4501         * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
4502         (ipa_constant_data): New type.
4503         (ipa_jump_func): Use ipa_constant_data to hold information about
4504         constant jump functions.
4505         (ipa_get_jf_constant): Adjust to jump function type changes.
4506         (ipa_get_jf_constant_rdesc): New function.
4507         (ipa_param_descriptor): New field controlled_uses.
4508         (ipa_get_controlled_uses): New function.
4509         (ipa_set_controlled_uses): Likewise.
4510         * ipa-ref.h (ipa_find_reference): Declare.
4511         * ipa-prop.c (ipa_cst_ref_desc): New type.
4512         (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
4513         changes.
4514         (ipa_set_jf_constant): Likewise.  Also create reference descriptions.
4515         New parameter cs.  Adjust all callers.
4516         (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
4517         (remove_described_reference): New function.
4518         (jfunc_rdesc_usable): Likewise.
4519         (try_make_edge_direct_simple_call): Decrement controlled use count,
4520         attempt to remove reference if it hits zero.
4521         (combine_controlled_uses_counters): New function.
4522         (propagate_controlled_uses): Likewise.
4523         (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
4524         (ipa_edge_duplication_hook): Duplicate reference descriptions.
4525         (ipa_print_node_params): Print described use counter.
4526         (ipa_write_jump_function): Adjust to jump function type changes.
4527         (ipa_read_jump_function): New parameter CS, pass it to
4528         ipa_set_jf_constant.  Adjust caller.
4529         (ipa_write_node_info): Stream controlled use count
4530         (ipa_read_node_info): Likewise.
4531         * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
4532         asserting.
4533         * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
4534         count.  Remove cloning-added reference if it reaches zero.
4535         * ipa-ref.c (ipa_find_reference): New function.
4536
4537 2013-05-13  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
4538
4539         * config/i386/i386.c (processor_target_table): Modified default
4540         alignment values for AMD BD and BT architectures.
4541
4542 2013-05-13  Marc Glisse  <marc.glisse@inria.fr>
4543
4544         * tree-vect-generic.c (uniform_vector_p): Move ...
4545         * tree.c (uniform_vector_p): ... here.
4546         * tree.h (uniform_vector_p): Declare it.
4547         * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
4548         into a scalar.
4549
4550 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
4551
4552         PR tree-optimization/57230
4553         * tree-ssa-strlen.c (handle_char_store): Record length for
4554         array store from STRING_CST.
4555
4556         PR tree-optimization/57230
4557         * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
4558         check.
4559
4560 2013-05-12  Joern Rennecke  <joern.rennecke@embecosm.com>
4561
4562         * config/epiphany/epiphany.c (epiphany_init): Check size of
4563         NUM_MODES_FOR_MODE_SWITCHING.
4564         (epiphany_expand_prologue):
4565         Remove CONFIG_REGNUM initial value handling code.
4566         (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
4567         (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
4568         (emit_set_fp_mode, epiphany_mode_after): Likewise.
4569         (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
4570         Don't return 1 for FP_MODE_NONE.
4571         * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
4572         Add value for EPIPHANY_MSW_ENTITY_CONFIG.
4573         (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
4574         * config/epiphany/epiphany.md (save_config): New pattern.
4575
4576 2013-05-12  Uros Bizjak  <ubizjak@gmail.com>
4577
4578         * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
4579
4580 2013-05-10  Uros Bizjak  <ubizjak@gmail.com>
4581
4582         * config/i386/i386.md (memory): Handle sseishft1.
4583         * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
4584         (*vec_extractv2di_1): Ditto.
4585
4586 2013-05-10  Vladimir Makarov  <vmakarov@redhat.com>
4587
4588         * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
4589         saved registers.
4590
4591 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4592
4593         * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
4594         Add mthumb/march=armv7-a multilib.
4595         Add mthumb/march=armv7-r multilib.
4596         Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
4597
4598 2013-05-10  Ralf Corsépius  <ralf.corsepius@rtems.org>
4599
4600         * config/v850/t-rtems: Add more multilibs.
4601
4602 2013-05-10  Richard Biener  <rguenther@suse.de>
4603
4604         PR tree-optimization/57214
4605         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
4606         not propagate from SSA names that occur in abnormal PHI nodes.
4607
4608 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
4609
4610         * stor-layout.c (element_precision): New function.
4611         * machmode.h (element_precision): Declare it.
4612         * tree.c (build_minus_one_cst): New function.
4613         (element_precision): Likewise.
4614         * tree.h (build_minus_one_cst): Declare new function.
4615         (element_precision): Likewise.
4616         * fold-const.c (operand_equal_p): Use element_precision.
4617         (fold_binary_loc): Handle vector types.
4618         * convert.c (convert_to_integer): Use element_precision.
4619         * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
4620         separately.
4621
4622 2013-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
4623
4624         * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
4625         (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
4626         (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
4627         (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
4628         * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
4629         (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
4630         (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
4631         (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
4632         * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
4633         (Uuw8): New constraints.
4634         (Usb4): Move into alphabetical order.
4635         * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
4636         (sd8_operand, ub8_operand, uw8_operand): New predicates.
4637         * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
4638         previously unnamed patterns.
4639         (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
4640         (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
4641         (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
4642         (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
4643         of set_attr_alternative/if_then_else.  Use extended_mips16 instead
4644         of specific lengths.
4645
4646 2013-05-10  Jakub Jelinek  <jakub@redhat.com>
4647
4648         * config/i386/i386.md (rotateinv): New code attr.
4649         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
4650         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
4651         roll $31, %eax, etc.
4652
4653         PR tree-optimization/45216
4654         PR tree-optimization/57157
4655         * tree-ssa-forwprop.c (simplify_rotate): New function.
4656         (ssa_forward_propagate_and_combine): Call it.
4657
4658 2013-05-10  Richard Biener  <rguenther@suse.de>
4659
4660         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
4661         disable peeling when we version for aliasing.
4662         (vector_alignment_reachable_p): Honor explicit user alignment.
4663         (vect_supportable_dr_alignment): Likewise.
4664         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
4665         STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
4666         * tree-vect-loop.c (vect_transform_loop): First apply versioning,
4667         then peeling to arrange for the cost-model check to come first.
4668
4669 2013-05-10  Alan Modra  <amodra@gmail.com>
4670
4671         * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
4672         (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
4673         * configure: Regenerate.
4674
4675 2013-05-10  Alan Modra  <amodra@gmail.com>
4676
4677         PR target/55033
4678         * varasm.c (default_elf_select_section): Move !DECL_P check..
4679         (get_named_section): ..to here before calling get_section_name.
4680         Adjust assertion.
4681         (default_section_type_flags): Add DECL_P check.
4682         * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
4683         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
4684
4685 2013-05-09  Joern Rennecke  <joern.rennecke@embecosm.com>
4686
4687         * config/epiphany/epiphany.c (epiphany_expand_prologue):
4688         When using gen_stack_adjust_str with a register offset, add a
4689         REG_FRAME_RELATED_EXPR note.
4690
4691 2013-05-09  Uros Bizjak  <ubizjak@gmail.com>
4692
4693         * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
4694         (*vec_extractv4si_zext_mem): Ditto.
4695         (*vec_extractv2di): Add 0->x and x->x alternatives.
4696         * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
4697         * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
4698
4699 2013-05-09  Jason Merrill  <jason@redhat.com>
4700
4701         N3639 C++1y VLA support
4702         * gimplify.c (gimplify_vla_decl): Don't touch an existing
4703         DECL_VALUE_EXPR.
4704
4705         * tree.c (build_constructor_va): New.
4706         * tree.h: Declare it.
4707
4708 2013-05-09  Martin Jambor  <mjambor@suse.cz>
4709
4710         PR lto/57084
4711         * gimple-fold.c (canonicalize_constructor_val): Call
4712         cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
4713
4714 2013-05-09  Jan Hubicka  <jh@suse.cz>
4715             Richard Biener  <rguenther@suse.de>
4716
4717         PR lto/54095
4718         * symtab.c (symtab_make_decl_local): Do not add private names.
4719
4720 2013-05-09  Jan Hubicka  <jh@suse.cz>
4721
4722         PR lto/54095
4723         * symtab.c (insert_to_assembler_name_hash): Handle clones.
4724         (unlink_from_assembler_name_hash): Likewise.
4725         (symtab_prevail_in_asm_name_hash, symtab_register_node,
4726         symtab_unregister_node, symtab_initialize_asm_name_hash,
4727         change_decl_assembler_name): Update.
4728
4729 2013-05-09  Sofiane Naci  <sofiane.naci@arm.com>
4730
4731         * config/aarch64/aarch64.md: New movtf split.
4732         (*movtf_aarch64): Update.
4733         (aarch64_movdi_tilow): Handle TF modes and rename to
4734         aarch64_movdi_<mode>low.
4735         (aarch64_movdi_tihigh): Handle TF modes and rename to
4736         aarch64_movdi_<mode>high
4737         (aarch64_movtihigh_di): Handle TF modes and rename to
4738         aarch64_mov<mode>high_di
4739         (aarch64_movtilow_di): Handle TF modes and rename to
4740         aarch64_mov<mode>low_di
4741         (aarch64_movtilow_tilow): Remove spurious whitespace.
4742         * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
4743         splits.
4744         (aarch64_print_operand): Update.
4745
4746 2013-05-09  Alan Modra  <amodra@gmail.com>
4747
4748         * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
4749         powerpc64le.
4750         * configure: Regenerate.
4751
4752 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
4753
4754         * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
4755         splitter preparation statements.
4756         * config/i386/sse.md (*vec_extract* splitters): Ditto.
4757         (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
4758         adjust_address_nv.
4759
4760 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4761
4762         * gimple-ssa-strength-reduction.c (count_candidates): Change
4763         return value to int.
4764         (analyze_candidates_and_replace): Change type of length to int.
4765
4766 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
4767
4768         * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
4769         (*vec_extract<mode>): Use VI12_128 mode iterator.
4770         (*vec_extract<mode>_mem): Ditto.
4771         (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
4772         attribute.
4773
4774 2013-05-08  Diego Novillo  <dnovillo@google.com>
4775
4776         PR bootstrap/54659
4777
4778         Revert:
4779         2012-08-17  Diego Novillo  <dnovillo@google.com>
4780
4781         PR bootstrap/54281
4782         * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
4783         * config.in: Regenerate.
4784         * configure: Regenerate.
4785         * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4786
4787 2013-05-08  Jan Hubicka  <jh@suse.cz>
4788
4789         PR lto/54095
4790         * cgraph.c (cgraph_make_node_local_1): Se unique_name.
4791         * cgraph.h (symtab_node_base): Add unique_name.
4792         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
4793         input_overwrite_node, input_varpool_node): Stream unique_name.
4794         * cgraphclones.c (cgraph_create_virtual_clone,
4795         cgraph_function_versioning): Set unique_name.
4796         * ipa.c (function_and_variable_visibility): Set unique_name.
4797
4798 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4799
4800         * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
4801         (alloc_cand_and_find_basis): Restrict conditional candidate
4802         processing to CAND_MULTs.
4803
4804 2013-05-08  Jan Hubicka  <jh@suse.cz>
4805
4806         PR lto/54095
4807         lto-symtab.c (lto_symtab_symbol_p): New function.
4808         (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
4809         lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
4810         lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
4811         Skip static symbols.
4812
4813 2013-05-08  Paolo Carlini  <paolo.carlini@oracle.com>
4814
4815         PR tree-optimization/57200
4816         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
4817         Only call inform if the preceding warning_at returns true.
4818
4819 2013-05-07  Han Shen  <shenhan@google.com>
4820
4821         * cfgexpand.c (record_or_union_type_has_array_p): New function.
4822         (expand_used_vars): Add logic handling '-fstack-protector-strong'.
4823         * common.opt (fstack-protector-strong): New option.
4824         * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
4825         * doc/invoke.texi (Optimization Options): Document
4826         "-fstack-protector-strong".
4827         * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
4828
4829 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
4830
4831         * config/mips/mips.c (mips_machine_reorg2): Return 0.
4832
4833 2013-05-07  Vladimir Makarov  <vmakarov@redhat.com>
4834
4835         * ira.c (update_equiv_regs): Add insn having equiv memory even if
4836         it is not lhs of the insn.
4837         (setup_reg_equiv): Remove insn having equiv memory which it is not
4838         lhs of the insn.
4839         * lra-constraints.c (process_address): Try to improve generation
4840         code for address base + disp.
4841         (lra_constraints): Make correct the code for checking insn setting
4842         up backward equivalence.  Remove insn only if it is in the init
4843         insn list.
4844         * lra-eliminations.c (update_reg_eliminate): Change return value.
4845         (lra_eliminate): Use the result.
4846
4847 2013-05-07  Uros Bizjak  <ubizjak@gmail.com>
4848
4849         * config/i386/sse.md (ssescalarnummask): New mode attribute.
4850         (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
4851         (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
4852         *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
4853         register target operands.
4854         (*vec_extractv8hi_sse2): New pattern.
4855         (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
4856         (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
4857         (*vec_extract<mode>_mem): New insn and split pattern.
4858
4859 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
4860
4861         * config/arm/arm.c (arm_asan_shadow_offset): New function.
4862         (TARGET_ASAN_SHADOW_OFFSET): Define.
4863         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
4864         (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
4865
4866 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4867
4868         * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
4869         (incr_vec_index): Return -1 if increment not found.
4870         (create_add_on_incoming_edge): Assert if increment not found.
4871         (record_increment): Limit number of increments recorded.
4872         (all_phi_incrs_profitable): Return false if an increment not found.
4873         (replace_profitable_candidates): Don't process increments that were
4874         not recorded.
4875         (analyze_candidates_and_replace): Limit size of incr_vec.
4876
4877 2013-05-07  Richard Biener  <rguenther@suse.de>
4878
4879         * calls.c (special_function_p): setjmp-like functions are leaf.
4880         * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
4881         * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
4882
4883 2013-05-07  Sofiane Naci  <sofiane.naci@arm.com>
4884
4885         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
4886         (aarch64_simd_mov<mode>): New expander.
4887         (aarch64_simd_mov_to_<mode>low): New instruction pattern.
4888         (aarch64_simd_mov_to_<mode>high): Likewise.
4889         (aarch64_simd_mov_from_<mode>low): Likewise.
4890         (aarch64_simd_mov_from_<mode>high): Likewise.
4891         (aarch64_dup_lane<mode>): Update.
4892         (aarch64_dup_lanedi): New instruction pattern.
4893         * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
4894         * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
4895
4896 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4897
4898         * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
4899         (replace_mult_candidate): Remove unnecessary argument; remove
4900         unnecessary parameter from call to introduce_cast_before_cand.
4901         (replace_unconditional_candidate): Remove unnecessary parameter
4902         from call to replace_mult_candidate.
4903         (replace_conditional_candidate): Likewise.
4904         (insert_initializers): Use make_temp_ssa_name.
4905         (introduce_cast_before_cand): Remove unnecessary argument; use
4906         make_temp_ssa_name.
4907         (replace_one_candidate): Remove unnecessary argument; remove
4908         unnecessary parameter from calls to introduce_cast_before_cand.
4909         (replace_profitable_candidates): Remove unnecessary parameters
4910         from calls to replace_one_candidate.
4911
4912 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4913
4914         * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
4915         phi def as possibly hiding a basis for a CAND_ADD whose operands
4916         have been commuted in the analysis.
4917         (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
4918
4919 2013-05-07  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4920
4921         * config/aarch64/aarch64.md
4922         (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
4923         shift value between 0-4.
4924
4925 2013-05-07  Richard Biener  <rguenther@suse.de>
4926
4927         * double-int.h (rshift): New overload.
4928         * double-int.c (rshift): New function.
4929         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
4930         (create_reference_ops_from_ref): Remove.
4931         (vn_reference_insert): Use shared ops for constructing the
4932         reference and copy it.
4933
4934 2013-05-07  Richard Biener  <rguenther@suse.de>
4935
4936         PR middle-end/57190
4937         * tree-eh.c (sink_clobbers): Properly propagate
4938         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
4939
4940 2013-05-07  Jakub Jelinek  <jakub@redhat.com>
4941
4942         PR tree-optimization/57149
4943         * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
4944         (can_skip_redundant_opnd, compute_uninit_opnds_pos,
4945         collect_phi_def_edges, execute_late_warn_uninitialized): Use
4946         uninit_undefined_value_p instead of ssa_undefined_value_p.
4947
4948         PR debug/57184
4949         * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
4950         for modifier == EXPAND_INITIALIZER.
4951
4952 2013-05-07  Anton Blanchard  <anton@samba.org>
4953
4954         * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
4955         for powerpc64 little endian.
4956         * configure: Regenerate.
4957
4958 2013-05-06  Graham Stott  <grahams@btinternet.com>
4959
4960         * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
4961         mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
4962         wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
4963         shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
4964
4965 2013-05-06  Graham Stott  <grahams@btinternet.com>
4966
4967         * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
4968         codes which allow non-lvalues.
4969
4970 2013-05-06  Marc Glisse  <marc.glisse@inria.fr>
4971
4972         * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
4973         components are all 1s.
4974         (integer_minus_onep): New function.
4975         * tree.h (integer_minus_onep): Declare it.
4976         * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
4977         integer_minus_onep instead of integer_all_onesp.
4978
4979 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
4980
4981         PR target/52933
4982         * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
4983         variations of these patterns.
4984
4985 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
4986
4987         * config/i386/i386.md (isa): Add x64_sse4 member.
4988         (enabled): Handle x64_sse4.
4989         (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
4990         instruction for 64bit SSE4_1 targets.  Update insn attributes.
4991         (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
4992         instruction for SSE4_1 targets.  Update insn attributes.
4993         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
4994         with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
4995         (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
4996         const_1 selector.
4997         (*vec_extractv4si): Rename from *sse4_1_pextrd.
4998         (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
4999         (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
5000
5001 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
5002
5003         PR target/57108
5004         * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
5005
5006 2013-05-06  Maxim Kuznetsov  <maks.kuznetsov@gmail.com>
5007
5008         * final.c (do_assembler_dialects): Don't handle curly braces and
5009         vertical bar escaped by % as dialect delimiters.
5010         (output_asm_insn): Print curly braces and vertical bar if escaped
5011         by % and ASSEMBLER_DIALECT defined.
5012         * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
5013         * doc/tm.texi: Regenerated.
5014
5015 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
5016
5017         * config/mips/mips.c: Include tree-pass.h.
5018         (mips_reorg): Split in pre- and post-dbr_schedule parts.
5019         (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
5020         (pass_mips_machine_reorg2): New machine specific pass.
5021         (insert_pass_mips_machine_reorg2): New pass plugin definition.
5022         (mips_option_override): Register the new pass.
5023         * rtl.h (cleanup_barriers): Remove prototype.
5024         (dbr_schedule): Likewise.
5025         * jump.c (cleanup_barriers): Make static.
5026         * reorg.c (dbr_schedule): Likewise.
5027
5028 2013-05-06  Richard Biener  <rguenther@suse.de>
5029
5030         PR tree-optimization/57185
5031         * tree-parloops.c (add_field_for_reduction): Handle anonymous
5032         SSA names properly.
5033
5034 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
5035
5036         PR target/57106
5037         * config/i386/i386.c (add_parameter_dependencies): Add dependence
5038         between "first_arg" and "insn", not "last" and "insn".
5039
5040 2013-05-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5041
5042         * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
5043         (find_candidates_in_block): Re-enable slsr_process_phi.
5044         (create_phi_basis): Fix double counting of candidate adjustment.
5045
5046 2013-05-06  Richard Biener  <rguenther@suse.de>
5047
5048         PR middle-end/57147
5049         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
5050         the edge is also fallthru, preserve it and just clear the
5051         abnormal flag.
5052         * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
5053         also complex, preserve that and just clear the fallthru flag.
5054         * tree-inline.c (update_ssa_across_abnormal_edges): Also
5055         update virtual operands.
5056
5057 2013-05-06  Alan Modra  <amodra@gmail.com>
5058
5059         * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
5060         (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
5061         * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
5062         * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
5063         (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
5064         * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
5065
5066 2013-05-06  Alan Modra  <amodra@gmail.com>
5067
5068         * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
5069         (ASM_SPEC): ..here.  Emit DEFAULT_ASM_ENDIAN too.
5070         (DEFAULT_ASM_ENDIAN): Define.
5071         (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
5072         * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
5073         Update -K PIC clause from sysv4.h.
5074         (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
5075         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
5076
5077 2013-05-06  Alan Modra  <amodra@gmail.com>
5078
5079         * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
5080         twice for little-endian.
5081         (ashrdi3_no_power, ashrdi3): Support little-endian.
5082
5083 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
5084
5085         PR target/55303
5086         * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
5087         * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
5088         related expanders.
5089         * config/sh/iterators.md (SMIN_SMAX): New code iterator.
5090         * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
5091         clips_min_const_int, clips_max_const_int, clipu_max_const_int):
5092         New predicates.
5093
5094 2013-05-05  Steven Bosscher  <steven@gcc.gnu.org>
5095             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5096
5097         * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
5098         * config/pa/pa.opt: Make mbig-switch a no-op.
5099         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
5100         (CASE_VECTOR_MODE): Always return SImode.
5101         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
5102         for the !TARGET_BIG_SWITCH case.
5103         * config/pa/pa-linux.h: Likewise.
5104         * config/pa/pa-openbsd.h: Likewise.
5105         * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
5106         * config/pa/pa.md (short_jump): Remove define_insn.
5107         (casesi): Remove code for the !TARGET_BIG_SWITCH case.
5108         (casesi0): Remove define_insn.
5109         (type): Remove btable_branch.
5110         (pa_combine_type): Likewise.
5111         (in_nullified_branch_delay): Likewise.
5112         (in_call_delay): Likewise.
5113         (define_delay): Likewise.
5114         (define_insn_reservation "Z3"): Likewise.
5115         (define_insn_reservation "Z4"): Likewise.
5116         * config/pa/pa.c  (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
5117         (pa_adjust_insn_length): Remove adjustment for btable branches.
5118         * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
5119         and mno-big-switch
5120
5121 2013-05-05  Uros Bizjak  <ubizjak@gmail.com>
5122
5123         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
5124         from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
5125         Add m->r,x alternatives.
5126         (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
5127         splitters using SWI48x mode iterator.
5128         (*vec_extract_v2di_0_sse): Rename from *sse2_storeq.  Disable for
5129         TARGET_64BIT.  Add m->x alternative.
5130         (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
5131         Add o->x alternative.  Enable for TARGET_SSE.
5132         (sse_storeq): Remove expander.
5133         (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
5134         with memory input operand.
5135         (*vec_extractv2di_1 splitter): New.
5136         (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
5137         * config/i386/i386.md (ssevecmodelower): New mode attribute.
5138
5139 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
5140
5141         * config/rs6000/rs6000.c (INT_P): Reformat.  Delete obsolete comment.
5142         (INT_LOWPART): Delete.
5143         (extract_MB): Adjust.
5144         (extract_ME): Adjust.
5145         (print_operand): Adjust.
5146
5147 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
5148
5149         * config/rs6000/predicates.md (reg_or_add_cint_operand,
5150         reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
5151         (reg_or_logical_cint_operand, easy_fp_constant,
5152         logical_const_operand): Delete "CONST_DOUBLE" case.
5153         * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
5154         "HOST_BITS_PER_WIDE_INT == 64" test.
5155         (num_insns_constant): Ditto.  Delete CONST_DOUBLE DImode/VOIDmode case.
5156         (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
5157         (rs6000_emit_set_const): Delete CONST_DOUBLE case.
5158         (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
5159         test.
5160         (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
5161         CONST_DOUBLE DImode/VOIDmode case.
5162         (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
5163         (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
5164         CONST_DOUBLE VOIDmode case.
5165         (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
5166         (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
5167         * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
5168         Delete CONST_DOUBLE case.
5169         (splitters for mov FMOVE64 const_double): Delete
5170         "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
5171         "HOST_BITS_PER_WIDE_INT >= 64" test.
5172         (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
5173         case.
5174         (mov DI const_double): Delete.
5175
5176 2013-05-04  Jakub Jelinek  <jakub@redhat.com>
5177
5178         * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
5179         on op shows all bits zero in mode of a lowpart subreg, return zero.
5180
5181 2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
5182
5183         PR target/57150
5184         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
5185         to save TFmode registers and DImode to save TImode registers for
5186         caller save operations.
5187         (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
5188         mark being partially clobbered since they only use the first
5189         double word.
5190
5191         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
5192         and TDmode only use the upper 64-bits of each VSX register.
5193
5194 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5195
5196         * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
5197         (find_candidates_in_block): Disable slsr_process_phi.
5198
5199 2013-05-03  Guozhi Wei  <carrot@google.com>
5200
5201         * coverage.c (coverage_obj_init): Move the construction of gcov
5202         constructor to ...
5203         (build_init_ctor): ... here.
5204
5205 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5206
5207         * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
5208         (slsr_cand_d): Redefine def_phi.
5209         (stride_status, phi_adjust_status, count_phis_status): New enums.
5210         (find_phi_def): New.
5211         (find_basis_for_base_expr): New.
5212         (find_basis_for_candidate): Handle hidden bases.
5213         (alloc_cand_and_find_basis): Handle phi candidates.
5214         (slsr_process_phi): New.
5215         (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
5216         (create_mul_imm_cand): Likewise.
5217         (create_add_ssa_cand): Exclude phi base candidates.
5218         (create_add_imm_cand): Likewise.
5219         (slsr_process_cast): Likewise.
5220         (slsr_process_copy): Likewise.
5221         (find_candidates_in_block): Handle phi candidates.
5222         (dump_candidate): Likewise.
5223         (unconditional_cands): Delete.
5224         (unconditional_cands_with_known_stride_p): Delete.
5225         (phi_dependent_cand_p): New.
5226         (cand_increment): Handle phi-dependent candidates.
5227         (replace_dependent): Delete.
5228         (replace_mult_candidate): New.
5229         (replace_unconditional_candidate): New.
5230         (incr_vec_index): Move to avoid forward reference.
5231         (create_add_on_incoming_edge): New.
5232         (create_phi_basis): New.
5233         (replace_dependents): Delete.
5234         (replace_conditional_candidate): New.
5235         (phi_add_costs): New.
5236         (replace_uncond_cands_and_profitable_phis): New.
5237         (record_increment): Handle phi adjustments.
5238         (record_phi_increments): New.
5239         (record_increments): Handle phi adjustments.
5240         (phi_incr_cost): New.
5241         (lowest_cost_path): Handle phis.
5242         (total_savings): Likewise.
5243         (analyze_increments): Likewise.
5244         (ncd_with_phi): New.
5245         (ncd_of_cand_and_phis): New.
5246         (nearest_common_dominator_for_cands): Handle phi increments.
5247         (all_phi_incrs_profitable): New.
5248         (replace_profitable_candidates): Handle phi-dependent candidates.
5249         (analyze_candidates_and_replace): Likewise.
5250
5251 2013-05-03  Teresa Johnson  <tejohnson@google.com>
5252
5253         PR bootstrap/57154
5254         * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
5255         do not exceed REG_BR_PROB_BASE.
5256
5257 2013-05-03  Jeff Law  <law@redhat.com>
5258
5259         PR tree-optimization/57144
5260         * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
5261         operand of the condition will bit into the new type when eliminating
5262         a cast feeding a condition.
5263
5264 2013-05-03  Jakub Jelinek  <jakub@redhat.com>
5265
5266         PR rtl-optimization/57130
5267         * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
5268         of COMPARE as in_code to the recursive call if needed.
5269
5270 2013-05-03  Uros Bizjak  <ubizjak@gmail.com>
5271
5272         * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
5273         (enabled): Handle new members.
5274         * config/i386/sse.md (*vec_concatv2si): Merge from
5275         *vec_concatv2si_sse2 and vec_concatv2si_sse.
5276         (vec_concatv2di): Merge with *vec_concatv2di_rex64.
5277
5278 2013-05-03  Joern Rennecke <joern.rennecke@embecosm.com>
5279
5280         PR tree-optimization/57027
5281         * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
5282         for fnms opportunity, check we got the prerequisite kind
5283         of tree / gimple before using accessor functions.
5284
5285 2013-05-03  Richard Biener  <rguenther@suse.de>
5286
5287         * double-int.h (lshift): New overload without precision
5288         and arith argument.
5289         (operator *=, operator +=, operator -=): Move ...
5290         * double-int.c (operator *=, operator +=, operator -=): ... here
5291         and implement more efficiently.
5292         (mul_double_with_sign): Remove.
5293         (lshift_double): Adjust to take unsinged shift argument, push
5294         dispatching code to callers.
5295         (mul_double_wide_with_sign): Add early out for callers that
5296         are not interested in high parts or overflow.
5297         (lshift): New function.
5298         (lshift, rshift, alshift, arshift, llshift, lrshift): Add
5299         dispatch code here.
5300         (lrotate, rrotate): Use logical shifts.
5301         * expr.c (get_inner_reference): Use lshift.
5302         * fixed-value.c (do_fixed_divide): Likewise.
5303         * tree-dfa.c (get_ref_base_and_extent): Likewise.
5304         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
5305         (indirect_refs_may_alias_p): Likewise.
5306         (stmt_kills_ref_p_1): Likewise.
5307
5308 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
5309
5310         * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
5311
5312 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
5313
5314         * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
5315         scalar form of FABD instruction.
5316
5317 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
5318
5319         * lra-constraints.c (process_alt_operands): Add checking alt
5320         number to choose the best alternative.
5321
5322 2013-05-02  Richard Biener  <rguenther@suse.de>
5323
5324         * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
5325         bitmap and its handling.
5326         (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
5327
5328 2013-05-02  Richard Biener  <rguenther@suse.de>
5329
5330         PR middle-end/57140
5331         * tree-inline.c (copy_loops): Properly handle removed loops.
5332         (copy_cfg_body): Mark destination loops for fixup if source
5333         loops needed fixup.
5334
5335 2013-05-02  Greta Yorsh  <Greta.Yorsh@arm.com>
5336
5337         PR target/56732
5338         * config/arm/arm.c (arm_expand_epilogue): Check really_return before
5339         generating simple_return for naked functions.
5340
5341 2013-05-02  Martin Jambor  <mjambor@suse.cz>
5342
5343         PR middle-end/56988
5344         * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
5345         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
5346         flags match.
5347         (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
5348         ipa_agg_replacement_value structures.
5349         (known_aggs_to_agg_replacement_list): Likewise.
5350         * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
5351         (read_agg_replacement_chain): Likewise.
5352         (ipcp_transform_function): Also check that by_ref flags match.
5353
5354 2013-05-02  Richard Biener  <rguenther@suse.de>
5355
5356         * graphds.h (struct graph): Add obstack member.
5357         * graphds.c (new_graph): Initialize obstack and allocate
5358         vertices from it.
5359         (add_edge): Allocate edge from the obstack.
5360         (free_graph): Free the obstack instead of all edges and vertices.
5361
5362 2013-05-02  Teresa Johnson  <tejohnson@google.com>
5363
5364         * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
5365         divides.
5366         * cfg.c (update_bb_profile_for_threading): Ditto.
5367         * tree-inline.c (copy_bb): Ditto.
5368         (copy_edges_for_bb): Ditto.
5369         (initialize_cfun): Ditto.
5370         (copy_cfg_body): Ditto.
5371         (expand_call_inline): Ditto.
5372         * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
5373         (estimate_node_size_and_time): Ditto.
5374         (inline_merge_summary): Ditto.
5375         * cgraphclones.c (cgraph_clone_edge): Ditto.
5376         (cgraph_clone_node): Ditto.
5377         * sched-rgn.c (compute_dom_prob_ps): Ditto.
5378         (compute_trg_info): Ditto.
5379
5380 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
5381
5382         * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
5383         S reg when fp attribute set.
5384         (movdi_aarch64): Only allow to/from D reg when fp attribute set.
5385
5386 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
5387
5388         * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
5389         New pattern.
5390         (*and_one_cmplsi3_compare0_uxtw): Likewise.
5391         (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
5392         (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
5393
5394 2013-05-02  Richard Biener  <rguenther@suse.de>
5395
5396         * tree-scalar-evolution.c (scev_info_hasher): Remove.
5397         (struct instantiate_cache_entry): New type.
5398         (struct instantiate_cache_entry_hasher): New hashtable descriptor.
5399         (struct instantiate_cache_type): New type.
5400         (set_instantiated_value, get_instantiated_value): Remove.
5401         (get_instantiated_value_entry): New function.
5402         (instantiate_scev_name): Use the new cache and adjust.
5403         (instantiate_scev_poly): Adjust.
5404         (instantiate_scev_binary): Likewise.
5405         (instantiate_array_ref): Likewise.
5406         (instantiate_scev_convert): Likewise.
5407         (instantiate_scev_not): Likewise.
5408         (instantiate_scev_3): Likewise.
5409         (instantiate_scev_2): Likewise.
5410         (instantiate_scev_r): Likewise.
5411         (instantiate_scev): Likewise.
5412         (resolve_mixers): Likewise.
5413
5414 2013-05-01  Vladimir Makarov  <vmakarov@redhat.com>
5415
5416         PR target/57091
5417         * lra-constraints.c (best_small_class_operands_num): Remove.
5418         (process_alt_operands): Remove small_class_operands_num.  Take
5419         small classes operands into losers and only if the operand is not
5420         matched.  Modify debugging output.
5421         (curr_insn_transform): Remove best_small_class_operands_num.
5422         Print insn name.
5423
5424 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
5425
5426         * config/aarch64/aarch64-builtins.c
5427         (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
5428         * config/aarch64/aarch64-simd-builtins.def
5429         (reduc_splus_): Add new modes.
5430         (reduc_uplus_): New.
5431         * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
5432         (reduc_uplus_v4sf): Likewise.
5433         (reduc_splus_v4sf): Likewise.
5434         (aarch64_addv<mode>): Likewise.
5435         (reduc_uplus_<mode>): Likewise.
5436         (reduc_splus_<mode>): Likewise.
5437         (aarch64_addvv2di): Likewise.
5438         (reduc_uplus_v2di): Likewise.
5439         (reduc_splus_v2di): Likewise.
5440         (aarch64_addvv2si): Likewise.
5441         (reduc_uplus_v2si): Likewise.
5442         (reduc_splus_v2si): Likewise.
5443         (reduc_<sur>plus_<mode>): New.
5444         (reduc_<sur>plus_v2di): Likewise.
5445         (reduc_<sur>plus_v2si): Likewise.
5446         (reduc_<sur>plus_v4sf): Likewise.
5447         (aarch64_addpv4sf): Likewise.
5448         * config/aarch64/arm_neon.h
5449         (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
5450         * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
5451         add UNSPEC_SADDV, UNSPEC_UADDV.
5452         (SUADDV): New.
5453         (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
5454
5455 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
5456
5457         * config/aarch64/arm_neon.h
5458         (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
5459
5460 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
5461
5462         * config/aarch64/aarch64-builtins
5463         (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
5464
5465 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
5466
5467         * config/aarch64/aarch64-simd-builtins.def
5468         (reduc_smax_): New.
5469         (reduc_smin_): Likewise.
5470         (reduc_umax_): Likewise.
5471         (reduc_umin_): Likewise.
5472         (reduc_smax_nan_): Likewise.
5473         (reduc_smin_nan_): Likewise.
5474         (fmax): Remove.
5475         (fmin): Likewise.
5476         (smax): Update for V2SF, V4SF and V2DF modes.
5477         (smin): Likewise.
5478         (smax_nan): New.
5479         (smin_nan): Likewise.
5480         * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
5481         (<su><maxmin><mode>3): ...This, refactor.
5482         (s<maxmin><mode>3): New.
5483         (<maxmin_uns><mode>3): Likewise.
5484         (reduc_<maxmin_uns>_<mode>): Refactor.
5485         (reduc_<maxmin_uns>_v4sf): Likewise.
5486         (reduc_<maxmin_uns>_v2si): Likewise.
5487         (aarch64_<fmaxmin><mode>: Remove.
5488         * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
5489         new builtin names.
5490         (vmin<q>_f<32,64>): Likewise.
5491         * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
5492         (FMAXMIN): New.
5493         (su): Add mappings for smax, smin, umax, umin.
5494         (maxmin): New.
5495         (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
5496         (FMAXMIN): Rename as...
5497         (FMAXMIN_UNS): ...This.
5498         (maxminv): Remove.
5499         (fmaxminv): Likewise.
5500         (fmaxmin): Likewise.
5501         (maxmin_uns): New.
5502         (maxmin_uns_op): Likewise.
5503
5504 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
5505
5506         * config/aarch64/arm_neon.h
5507         (vac<ge, gt><sd>_f<32, 64>): Rename to...
5508         (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
5509         (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
5510
5511 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
5512
5513         * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
5514         * config/aarch64/iterators.md (FAC_COMPARISONS): New.
5515
5516 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
5517
5518         * config/aarch64/aarch64-simd.md
5519         (vcond<mode>_internal): Handle special cases for constant masks.
5520         (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
5521         (vcondu<mode><mode>): Likewise.
5522         (vcond<v_cmp_result><mode>): New.
5523
5524 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
5525
5526         * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
5527         (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
5528         * config/aarch64/aarch64-simd-builtins.def
5529         (cmeq): Update to BUILTIN_VALLDI.
5530         (cmgt): Likewise.
5531         (cmge): Likewise.
5532         (cmle): Likewise.
5533         (cmlt): Likewise.
5534         * config/aarch64/arm_neon.h
5535         (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
5536         to builtins or C as appropriate.
5537
5538 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
5539
5540         * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
5541         (cmgeu): ...This.
5542         (cmhi): Rename to...
5543         (cmgtu): ...This.
5544         * config/aarch64/aarch64-simd.md
5545         (simd_mode): Add SF.
5546         (aarch64_vcond_internal): Use new names for unsigned comparison insns.
5547         (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
5548         * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
5549         (cstore<mode>_neg): ...This.
5550         * config/aarch64/iterators.md
5551         (VALLF): new.
5552         (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
5553         (COMPARISONS): New.
5554         (UCOMPARISONS): Likewise.
5555         (optab): Add missing comparisons.
5556         (n_optab): New.
5557         (cmp_1): Likewise.
5558         (cmp_2): Likewise.
5559         (CMP): Likewise.
5560         (cmp): Remove.
5561         (VCMP_S): Likewise.
5562         (VCMP_U): Likewise.
5563         (V_cmp_result): Add DF, SF modes.
5564         (v_cmp_result): Likewise.
5565         (v): Likewise.
5566         (vmtype): Likewise.
5567         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
5568
5569 2013-05-01  Greta Yorsh  <Greta.Yorsh@arm.com>
5570
5571         * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
5572         define_insn to define_insn_and_split.
5573         (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
5574         (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
5575         (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
5576         (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
5577         (thumb2_negscc): Likewise.
5578
5579 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
5580
5581         * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
5582
5583 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
5584
5585         * config/arm/thumb2.md: Remove trailing whitespaces.
5586
5587 2013-04-30  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
5588
5589         * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
5590         Use gen_int_mode rather than GEN_INT.
5591
5592 2013-04-30  H.J. Lu  <hongjiu.lu@intel.com>
5593
5594         * value-prof.c (stream_in_histogram_value): Remove the strayed
5595         debug_gimple_stmt.
5596
5597 2013-04-30  Richard Biener  <rguenther@suse.de>
5598
5599         PR middle-end/57122
5600         * cfghooks.c (split_edge): Properly check for the loop latch edge.
5601
5602 2013-04-30  Richard Biener  <rguenther@suse.de>
5603
5604         PR middle-end/57107
5605         * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
5606
5607 2013-04-30  Andrey Belevantsev  <abel@ispras.ru>
5608
5609         PR rtl-optimization/56957
5610         PR rtl-optimization/57105
5611         * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
5612         variable.  Use just INSN_UID for determining whether an insn
5613         should be only disconnected from the insn stream.
5614         * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
5615
5616 2013-04-30  Jakub Jelinek  <jakub@redhat.com>
5617
5618         PR tree-optimization/57104
5619         * tsan.c (instrument_expr): Don't instrument accesses to
5620         DECL_HARD_REGISTER VAR_DECLs.
5621
5622 2013-04-30  Richard Biener  <rguenther@suse.de>
5623
5624         * function.h (loops_for_fn): New inline function.
5625         (set_loops_for_fn): Likewise.
5626         * cfgloop.h (place_new_loop): Add struct function parameter.
5627         (get_loop): Likewise.
5628         (get_loops): Likewise.
5629         (number_of_loops): Likewise.
5630         (fel_next): Adjust.
5631         (fel_init): Likewise.
5632         * cfg.c (get_loop_copy): Adjust.
5633         * cfgloop.c (flow_loops_dump): Likewise.
5634         (record_loop_exits): Likewise.
5635         (verify_loop_structure): Likewise.
5636         * cfgloopanal.c (mark_irreducible_loops): Likewise.
5637         (estimate_reg_pressure_cost): Likewise.
5638         (mark_loop_exit_edges): Likewise.
5639         * cfgloopmanip.c (place_new_loop): Likewise.
5640         (add_loop): Likewise.
5641         (duplicate_loop): Likewise.
5642         * graph.c (draw_cfg_nodes): Likewise.
5643         * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
5644         * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
5645         (extract_affine_chrec): Likewise.
5646         (build_scop_iteration_domain): Likewise.
5647         * graphite.c (graphite_initialize): Likewise.
5648         * ira-build.c (create_loop_tree_nodes): Likewise.
5649         (more_one_region_p): Likewise.
5650         (rebuild_regno_allocno_maps): Likewise.
5651         (mark_loops_for_removal): Likewise.
5652         (mark_all_loops_for_removal): Likewise.
5653         (remove_unnecessary_regions): Likewise.
5654         (ira_build): Likewise.
5655         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
5656         * loop-init.c (fix_loop_structure): Likewise.
5657         (gate_rtl_move_loop_invariants): Likewise.
5658         (gate_rtl_unswitch): Likewise.
5659         (gate_rtl_unroll_and_peel_loops): Likewise.
5660         (rtl_doloop): Likewise.
5661         * lto-streamer-in.c (input_cfg): Likewise.
5662         * lto-streamer-out.c (output_cfg): Likewise.
5663         * modulo-sched.c (sms_schedule): Likewise.
5664         * predict.c (tree_estimate_probability): Likewise.
5665         (tree_estimate_probability_driver): Likewise.
5666         (estimate_loops): Likewise.
5667         * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
5668         (move_sese_region_to_fn): Likewise.
5669         (debug_loop_num): Likewise.
5670         * tree-chrec.c (chrec_evaluate): Likewise.
5671         (hide_evolution_in_other_loops_than_loop): Likewise.
5672         (chrec_component_in_loop_num): Likewise.
5673         (reset_evolution_in_loop): Likewise.
5674         (evolution_function_is_invariant_rec_p): Likewise.
5675         * tree-if-conv.c (main_tree_if_conversion): Likewise.
5676         * tree-inline.c (copy_loops): Likewise.
5677         (copy_cfg_body): Likewise.
5678         (tree_function_versioning): Likewise.
5679         * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
5680         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
5681         Likewise.
5682         (add_to_evolution_1): Likewise.
5683         (scev_const_prop): Likewise.
5684         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
5685         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
5686         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
5687         (tree_ssa_lim_initialize): Likewise.
5688         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
5689         (verify_loop_closed_ssa): Likewise.
5690         * tree-ssa-loop.c  (tree_ssa_loop_init): Likewise.
5691         (tree_ssa_loop_im): Likewise.
5692         (tree_ssa_loop_unswitch): Likewise.
5693         (tree_vectorize): Likewise.
5694         (check_data_deps): Likewise.
5695         (tree_ssa_loop_ivcanon): Likewise.
5696         (tree_ssa_loop_bounds): Likewise.
5697         (tree_complete_unroll): Likewise.
5698         (tree_complete_unroll_inner): Likewise.
5699         (tree_parallelize_loops): Likewise.
5700         (tree_ssa_loop_prefetch): Likewise.
5701         (tree_ssa_loop_ivopts): Likewise.
5702         * tree-ssa.c (execute_update_addresses_taken): Liekwise.
5703         * tree-vectorizer.c (vectorize_loops): Likewise.
5704
5705 2013-04-29  Mike Frysinger  <vapier@gentoo.org>
5706
5707         * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
5708         (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
5709         * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
5710         with EABI_LINK_SPEC.
5711
5712 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
5713
5714         PR target/44578
5715         * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
5716         alternative.
5717
5718 2013-04-29  Vladimir Makarov  <vmakarov@redhat.com>
5719
5720         PR target/57097
5721         * lra-constraints.c (process_alt_operands): Discourage a bit more
5722         using memory for pseudos.  Print cost dump for alternatives.
5723         Modify cost values for conflicts with early clobbers.
5724         (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
5725
5726 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
5727
5728         PR target/57098
5729         * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
5730
5731 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
5732
5733         * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
5734         from/to S register.
5735         (movdi_aarch64): Support LDR/STR from/to D register.
5736
5737 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
5738
5739         * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
5740         or higher by default.
5741
5742 2013-04-29  Richard Biener  <rguenther@suse.de>
5743
5744         PR middle-end/57075
5745         * tree-inline.c (copy_edges_for_bb): Still split the bbs,
5746         even if not adding abnormal edges for calls that can make
5747         abnormal gotos.
5748
5749 2013-04-29  Richard Biener  <rguenther@suse.de>
5750
5751         PR middle-end/57103
5752         * tree-cfg.c (move_stmt_op): Fix condition under which to update
5753         TREE_BLOCK.
5754         (move_stmt_r): Remove redundant checking.
5755
5756 2013-04-29  Teresa Johnson  <tejohnson@google.com>
5757
5758         PR bootstrap/57077
5759         * basic-block.h (apply_scale): New function.
5760         (apply_probability): Use apply_scale.
5761         * gimple-streamer-in.c (input_bb): Ditto.
5762         * lto-streamer-in.c (input_cfg): Ditto.
5763         * lto-cgraph.c (merge_profile_summaries): Ditto.
5764         * tree-optimize.c (execute_fixup_cfg): Ditto.
5765         * tree-inline.c (copy_bb): Update comment to use apply_scale.
5766         (copy_edges_for_bb): Ditto.
5767         (copy_cfg_body): Ditto.
5768
5769 2013-04-29  Tom de Vries  <tom@codesourcery.com>
5770
5771         * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
5772         (replace_block_by): Don't set LOOPS_NEED_FIXUP.
5773         (tail_merge_optimize): Handle current_loops == NULL.
5774
5775 2013-04-26  Jeff Law  <law@redhat.com>
5776
5777         * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
5778         (simplify_cond_using_ranges): Generalize code to simplify
5779         COND_EXPRs where one argument is a constant and the other
5780         is an SSA_NAME created by an integral type conversion.
5781
5782 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5783
5784         * config/arm/arm.md (store_minmaxsi): Use only when
5785         optimize_insn_for_size_p.
5786
5787 2013-04-29  Christian Bruel  <christian.bruel@st.com>
5788
5789         PR target/57108
5790         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
5791
5792 2013-04-29  Richard Biener  <rguenther@suse.de>
5793
5794         PR middle-end/57089
5795         * omp-low.c (expand_omp_taskreg): If the parent function had a broken
5796         loop tree make sure to schedule a fixup for the child as well.
5797         (expand_omp_for_generic): Properly add loops.
5798         (expand_omp_for_static_nochunk): Likewise.
5799         (expand_omp_for_static_chunk): Likewise.
5800         (expand_omp_for): For the degenerate case fixup loops.
5801         (expand_omp_sections): Fix default bb placement in loops.
5802         (expand_omp_atomic_pipeline): Properly add loops.
5803
5804 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5805
5806         * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
5807
5808 2013-04-29  Tom de Vries  <tom@codesourcery.com>
5809
5810         * tree-ssa-tail-merge.c: Update header comment.
5811
5812 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5813
5814         * config/aarch64/arm_neon.h
5815         (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
5816         (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
5817         (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
5818         (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
5819         (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
5820         (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
5821         (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
5822         (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
5823
5824 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5825
5826         * config/aarch64/aarch64-simd.md
5827         (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
5828         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
5829         fix_trunc, fixuns_trunc.
5830         (ftrunc<VDQF:mode>2): New.
5831         * config/aarch64/iterators.md (optab): Add fix, fixuns.
5832         (fix_trunc_optab): New.
5833
5834 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5835
5836         * config/aarch64/aarch64-builtins.c
5837         (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
5838         iceilf, lround, iroundf.
5839
5840 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
5841
5842         PR target/54349
5843         * config/i386/i386.h (enum ix86_tune_indices)
5844         <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
5845         New, split from X86_TUNE_INTER_UNIT_MOVES.
5846         <X86_TUNE_INTER_UNIT_MOVES>: Remove.
5847         (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
5848         (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
5849         (TARGET_INTER_UNIT_MOVES): Remove.
5850         * config/i386/i386.c (initial_ix86_tune_features): Update.
5851         Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
5852         (ix86_expand_convert_uns_didf_sse): Use
5853         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
5854         (ix86_expand_vector_init_one_nonzero): Ditto.
5855         (ix86_expand_vector_init_interleave): Ditto.
5856         (inline_secondary_memory_needed): Return true for moves from SSE class
5857         registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
5858         to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
5859         * config/i386/constraints.md (Yi, Ym): Depend on
5860         TARGET_INTER_UNIT_MOVES_TO_VEC.
5861         (Yj, Yn): New constraints.
5862         * config/i386/i386.md (*movdi_internal): Change constraints of
5863         operand 1 from Yi to Yj and from Ym to Yn.
5864         (*movsi_internal): Ditto.
5865         (*movdf_internal): Ditto.
5866         (*movsf_internal): Ditto.
5867         (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
5868         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
5869         (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
5870         (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
5871         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
5872         * config/i386/sse.md (movdi_to_sse): Ditto.
5873         (sse2_stored): Change constraint of operand 1 from Yi to Yj.
5874         Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
5875         TARGET_INTER_UNIT_MOVES.
5876         (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
5877         (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
5878         instead of TARGET_INTER_UNIT_MOVES.
5879         * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
5880         operand 1 from Yi to Yj and from Ym to Yn.
5881
5882 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5883
5884         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
5885         (float_truncate_hi_): Likewise.
5886         (float_extend_lo_): Likewise.
5887         (float_truncate_lo_): Likewise.
5888         * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
5889         (aarch64_float_extend_lo_v2df): Likewise.
5890         (vec_unpacks_hi_v4sf): Likewise.
5891         (aarch64_float_truncate_lo_v2sf): Likewise.
5892         (aarch64_float_truncate_hi_v4sf): Likewise.
5893         (vec_pack_trunc_v2df): Likewise.
5894         (vec_pack_trunc_df): Likewise.
5895
5896 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5897
5898         * config/aarch64/aarch64-builtins.c
5899         (aarch64_fold_builtin): Fold float conversions.
5900         * config/aarch64/aarch64-simd-builtins.def
5901         (floatv2si, floatv4si, floatv2di): New.
5902         (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
5903         * config/aarch64/aarch64-simd.md
5904         (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
5905         * config/aarch64/iterators.md (FLOATUORS): New.
5906         (optab): Add float, floatuns.
5907         (su_optab): Likewise.
5908
5909 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5910
5911         * config/aarch64/aarch64-builtins.c
5912         (aarch64_builtin_vectorized_function): Use new names for
5913         fcvt builtins.
5914         * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
5915         (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
5916         (fcvtzu): Split as...
5917         (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
5918         (fcvtas): Split as...
5919         (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
5920         (fcvtau): Split as...
5921         (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
5922         (fcvtps): Split as...
5923         (lceilv2sf, lceilv4sf, lceilv2df): ...This.
5924         (fcvtpu): Split as...
5925         (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
5926         (fcvtms): Split as...
5927         (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
5928         (fcvtmu): Split as...
5929         (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
5930         (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
5931         (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
5932         (lfrintnusf, lfrintnudf): Likewise.
5933         * config/aarch64/aarch64-simd.md
5934         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
5935         define_insn.
5936         (aarch64_fcvt<frint_suffix><su><mode>): Remove.
5937         * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
5938         (fcvt_pattern): Likewise.
5939
5940 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5941
5942         * config/aarch64/aarch64-simd.md
5943         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
5944         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
5945
5946 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5947
5948         * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
5949         (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
5950         (vrnd<a,m,n,p>_f32): Implement using builtins.
5951         (vrnd<i,x><q>_f<32, 64>): New.
5952
5953 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
5954
5955         * config/aarch64/aarch64-builtins.c
5956         (aarch64_builtin_vectorized_function): Fold to standard pattern names.
5957         * config/aarch64/aarch64-simd-builtins.def (frintn): New.
5958         (frintz): Rename to...
5959         (btrunc): ...this.
5960         (frintp): Rename to...
5961         (ceil): ...this.
5962         (frintm): Rename to...
5963         (floor): ...this.
5964         (frinti): Rename to...
5965         (nearbyint): ...this.
5966         (frintx): Rename to...
5967         (rint): ...this.
5968         (frinta): Rename to...
5969         (round): ...this.
5970         * config/aarch64/aarch64-simd.md
5971         (aarch64_frint<frint_suffix><mode>): Delete.
5972         (<frint_pattern><mode>2): Convert to insn.
5973         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
5974         * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
5975         (frint_pattern): Likewise.
5976         (frint_suffix): Likewise.
5977
5978 2013-04-29  Richard Biener  <rguenther@suse.de>
5979
5980         PR tree-optimization/57081
5981         * loop-init.c: Include tree-flow.h.
5982         (loop_optimizer_finalize): Free number of iteration estimates.
5983         * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
5984
5985 2013-04-29  Jakub Jelinek  <jakub@redhat.com>
5986
5987         PR tree-optimization/57083
5988         * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
5989         non-singleton shift count range, zero extend low_bound for uns case.
5990
5991         * config/i386/predicates.md (general_vector_operand): New predicate.
5992         * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
5993         (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
5994         if they aren't nonimmediate operands.  If their original values
5995         satisfy const_vector_equal_evenodd_p, don't shift them.
5996         * config/i386/sse.md (mul<mode>3): Use general_vector_operand
5997         predicates.  For the SSE4.1 case force operands[{1,2}] into registers
5998         if not nonimmediate_operand.
5999         (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
6000         instead of register_operand.
6001         (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
6002
6003 2013-04-28  Eric Botcazou  <ebotcazou@adacore.com>
6004
6005         * stor-layout.c (finalize_size_functions): Allocate a structure and
6006         reset cfun before dumping the functions.
6007
6008 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
6009
6010         * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
6011
6012         PR target/56866
6013         * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
6014         use xop_pmacsdqh if uns_p.
6015         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
6016         the immediate rotate count.
6017
6018 2013-04-26  Vladimir Makarov  <vmakarov@redhat.com>
6019
6020         * rtl.h (struct rtx_def): Add comment for field jump.
6021         (LRA_SUBREG_P): New macro.
6022         * recog.c (register_operand): Check LRA_SUBREG_P.
6023         * lra.c (lra): Add note at the end of RTL code. Align non-empty
6024         stack frame.
6025         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
6026         (lra_final_code_change): Skip subreg change for operators.
6027         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
6028         if there are no operand changes.
6029         * lra-constraints.c (curr_insn_set): New.
6030         (match_reload): Set LRA_SUBREG_P.
6031         (emit_spill_move): Ditto.
6032         (check_and_process_move): Use curr_insn_set. Process only single
6033         set insns.  Don't initialize sec_mem_p and change_p.
6034         (simplify_operand_subreg): Use LRA_SUBREG_P.
6035         (reg_in_class_p): New function.
6036         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
6037         of #ifdef.  Add code to remove cycling.
6038         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
6039         non-null disp.  Reload inner instead of disp when base and index
6040         are null.  Try to put lo_sum into register.
6041         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
6042         (check_and_process_move): Move code for move cost check to
6043         simple_move_p.  Remove equiv_substitution.
6044         (simple_move_p): New function.
6045         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
6046         curr_insn_set.  Call check_and_process_move only for single set
6047         insns.  Use the new function.  Move call of check_and_process_move
6048         after operand equiv substitution and address process.
6049
6050 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
6051
6052         PR go/57045
6053         * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
6054         with nonlocal goto receivers or returns twice calls, ignore
6055         unininitialized values from abnormal edges to nl goto receiver
6056         or returns twice call.
6057
6058 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
6059
6060         PR tree-optimization/57051
6061         * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
6062         and VEC_RSHIFT_EXPR if shift count is a multiple of element
6063         bitsize.
6064
6065 2013-04-26  Richard Biener  <rguenther@suse.de>
6066
6067         * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
6068         (expand_omp_taskreg): Likewise.  Mark loops for fixup.
6069         * tree-cfg.c (move_block_to_fn): Remap loop fathers.
6070         (fixup_loop_arrays_after_move): New function.
6071         (move_sese_region_to_fn): Properly outline the loop tree parts
6072         of the SESE region.
6073
6074 2013-04-26  Uros Bizjak  <ubizjak@gmail.com>
6075
6076         * config/i386/i386.md (type, unit): Fix long lines.
6077
6078 2013-04-26  Richard Biener  <rguenther@suse.de>
6079
6080         * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
6081         (lto-streamer-out.o): Likewise.
6082         * cfgloop.c (init_loops_structure): Export, add struct function
6083         argument and adjust.
6084         (flow_loops_find): Adjust.
6085         * cfgloop.h (enum loop_estimation): Add EST_LAST.
6086         (init_loops_structure): Declare.
6087         * lto-streamer-in.c: Include cfgloop.h.
6088         (input_cfg): Input the loop tree.
6089         * lto-streamer-out.c: Include cfgloop.h.
6090         (output_cfg): Output the loop tree.
6091         (output_struct_function_base): Do not drop PROP_loops.
6092
6093 2013-03-26  Richard Biener  <rguenther@suse.de>
6094
6095         * tree-cfg.c (execute_build_cfg): Build the loop tree.
6096         (pass_build_cfg): Provide PROP_loops.
6097         (move_sese_region_to_fn): Remove loops that are outlined into fn
6098         for now.
6099         * tree-inline.c: Include cfgloop.h.
6100         (initialize_cfun): Do not drop PROP_loops.
6101         (copy_loops): New function.
6102         (copy_cfg_body): Copy loop structure.
6103         (tree_function_versioning): Initialize destination loop tree.
6104         * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
6105         (pass_parallelize_loops): Do IL verification.
6106         * loop-init.c (loop_optimizer_init): Fixup loops if required.
6107         * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
6108         the CFG make sure we fixup loops as well.
6109         * tree-ssa-tail-merge.c: Include cfgloop.h.
6110         (replace_block_by): When merging loop latches mark loops for fixup.
6111         * lto-streamer-out.c (output_struct_function_base): Drop
6112         PROP_loops for now.
6113         * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
6114         (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
6115         * ipa-split.c: Include cfgloop.h.
6116         (split_function): Add the new return block to the loop tree root.
6117         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
6118         whether we have removed the forwarder block.
6119         (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
6120         * cfgloop.h (place_new_loop): Declare.
6121         * cfgloopmanip.c (place_new_loop): Export.
6122         * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
6123         (tree-switch-conversion.o): Likewise.
6124         (tree-complex.o): Likewise.
6125         (tree-inline.o): Likewise.
6126         (tree-ssa-tailmerge.o): Likewise.
6127         (ipa-split.o): Likewise.
6128         (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
6129         (tree-ssa-copy.o): Likewise.
6130         * tree-switch-conversion.c: Include cfgloop.h
6131         (process_switch): If we emit a bit-test cascade, schedule loops
6132         for fixup.
6133         * tree-complex.c: Include cfgloop.h.
6134         (expand_complex_div_wide): Properly add new basic-blocks to loops.
6135         * asan.c: Include cfgloop.h.
6136         (create_cond_insert_point): Properly add new basic-blocks to
6137         loops, schedule loop fixup.
6138         * cfgloop.c (verify_loop_structure): Check that looks are not
6139         marked for fixup.
6140         * omp-low.c (expand_parallel_call): Properly add new basic-blocks
6141         to loops.
6142         (expand_omp_for_generic): Likewise.
6143         (expand_omp_sections): Likewise.
6144         (expand_omp_atomic_pipeline): Schedule loops for fixup.
6145         * tree-ssa-copy.c: Include tree-scalar-evolution.h.
6146         (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
6147         is initialized, not when loops are present.
6148         * tree-parloops.c (parallelize_loops): Remove checking here.
6149         * passes.c (init_optimization_passes): Schedule a copy-propagation
6150         pass before complete unrolling of inner loops.
6151
6152 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
6153
6154         * Makefile.in (toplev.o): Depend on diagnostic-color.h.
6155         * diagnostic-color.c (should_colorize): Remove _WIN32 version.
6156         (colorize_init): Add argument to _WIN32 version.
6157         * toplev.c: Include diagnostic-color.h.
6158         (process_options): Default to -fdiagnostics-color=auto if
6159         GCC_COLORS env var is in the environment.
6160         * common.opt (fdiagnostics-color=): Add Var and Init.
6161         * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
6162         env var is in the environment, the default is auto rather than never.
6163
6164         * diagnostic.h (file_name_as_prefix): Add context argument.
6165         * diagnostic.c (file_name_as_prefix): Likewise.  Colorize
6166         the string as locus.
6167         * langhooks.c (lhd_print_error_function): Adjust caller.
6168
6169 2013-04-25  Lawrence Crowl  <crowl@google.com>
6170
6171         * var-tracking.c (shared_hash_def::htab):
6172         Change type to hash_table.  Update dependent calls and types.
6173
6174 2013-04-25  Lawrence Crowl  <crowl@google.com>
6175
6176         * Makefile.in: Update as needed below.
6177
6178         * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
6179         Move declaration to after the type's method definitons.
6180
6181         * attribs.c (htab_t scoped_attributes::attribute_hash):
6182         Change type to hash_table.  Update dependent calls and types.
6183
6184         * bitmap.c (htab_t bitmap_desc_hash):
6185         Change type to hash_table.  Update dependent calls and types.
6186
6187         * cselib.c (htab_t cselib_hash_table):
6188         Change type to hash_table.  Update dependent calls and types.
6189
6190         * data-streamer.h (struct string_slot): Move to lto-streamer.h.
6191         (hash_string_slot_node): Move implementation into lto-streamer.h
6192         struct string_slot_hasher.
6193         (eq_string_slot_node): Likewise.
6194
6195         * data-streamer-out.c: Update output_block::string_hash_table
6196         dependent calls and types.
6197
6198         * dwarf2cfi.c (htab_t trace_index):
6199         Change type to hash_table.  Update dependent calls and types.
6200
6201         * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
6202         Change type to hash_table.  Update dependent calls and types.
6203         (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
6204         (htab_t optimize_external_refs::map): Likewise.
6205         (htab_t output_comp_unit::extern_map): Likewise.
6206         (htab_t output_comdat_type_unit::extern_map): Likewise.
6207         (htab_t output_macinfo::macinfo_htab): Likewise.
6208         (htab_t optimize_location_lists::htab): Likewise.
6209         (htab_t dwarf2out_finish::comdat_type_table): Likewise.
6210
6211         * except.c (htab_t ehspec_hash_type):
6212         Change type to hash_table.  Update dependent calls and types.
6213         (assign_filter_values::ttypes): Likewise.
6214         (assign_filter_values::ehspec): Likewise.
6215         (sjlj_assign_call_site_values::ar_hash): Likewise.
6216         (convert_to_eh_region_ranges::ar_hash): Likewise.
6217
6218         * gcse.c (htab_t pre_ldst_table):
6219         Change type to hash_table.  Update dependent calls and types.
6220
6221         * ggc-common.c (htab_t saving_htab):
6222         Change type to hash_table.  Update dependent calls and types.
6223         (htab_t loc_hash): Likewise.
6224         (htab_t ptr_hash): Likewise.
6225         (call_count): Rename ggc_call_count.
6226         (call_alloc): Rename ggc_call_alloc.
6227         (loc_descriptor): Rename make_loc_descriptor.
6228         (add_statistics): Rename ggc_add_statistics.
6229
6230         * ggc-common.c (saving_htab):
6231         Change type to hash_table.  Update dependent calls and types.
6232
6233         * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
6234         (push_gimplify_context): Likewise.
6235         (pop_gimplify_context): Likewise.
6236         (struct gimple_temp_hash_elt): Added.
6237         (struct gimplify_hasher): Likewise.
6238         (struct gimplify_ctx.temp_htab):
6239         Change type to hash_table.  Update dependent calls and types.
6240
6241         * gimple-fold.c: Include gimplify-ctx.h.
6242
6243         * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
6244         Change type to hash_table.  Update dependent calls and types.
6245         (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
6246         avoid potential global name collision.
6247
6248         * gimplify.c: Include gimplify-ctx.h.
6249         (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
6250         (htab_t gimplify_ctx::temp_htab):
6251         Update dependent calls and types for new type hash_table.
6252         (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
6253         (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
6254
6255         * gimplify-ctx.h: New.
6256         (struct gimple_temp_hash_elt): Move from gimplify.c.
6257         (class gimplify_hasher): New.
6258         (struct gimplify_ctx): Move from gimple.h.
6259         (htab_t gimplify_ctx::temp_htab):
6260         Change type to hash_table.  Update dependent calls and types.
6261
6262         * graphite-clast-to-gimple.c: Include graphite-htab.h.
6263         (htab_t ivs_params::newivs_index):
6264         Change type to hash_table.  Update dependent calls and types.
6265         (htab_t ivs_params::params_index): Likewise.
6266         (htab_t print_generated_program::params_index): Likewise.
6267         (htab_t gloog::newivs_index): Likewise.
6268         (htab_t gloog::params_index): Likewise.
6269
6270         * graphite.c: Include graphite-htab.h.
6271         4htab_t graphite_transform_loops::bb_pbb_mapping):
6272         Change type to hash_table.  Update dependent calls and types.
6273
6274         * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
6275         (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
6276         (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
6277
6278         * graphite-dependences.c: Include graphite-htab.h.
6279         (loop_is_parallel_p): Change hash table type of parameter.
6280
6281         * graphite-htab.h: New.
6282         (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
6283         (extern find_pbb_via_hash): Move from graphite-poly.h.
6284         (extern loop_is_parallel_p): Move from graphite-poly.h.
6285         (extern get_loop_body_pbbs): Move from graphite-poly.h.
6286
6287         * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
6288         (extern loop_is_parallel_p): Move to graphite-htab.h.
6289         (extern get_loop_body_pbbs): Move to graphite-htab.h.
6290
6291         * haifa-sched.c (htab_t delay_htab):
6292         Change type to hash_table.  Update dependent calls and types.
6293         (htab_t delay_htab_i2): Likewise.
6294
6295         * ira-color.c (htab_t allocno_hard_regs_htab):
6296         Change type to hash_table.  Update dependent calls and types.
6297
6298         * ira-costs.c (htab_t cost_classes_htab):
6299         Change type to hash_table.  Update dependent calls and types.
6300
6301         * loop-invariant.c (htab_t merge_identical_invariants::eq):
6302         Change type to hash_table.  Update dependent calls and types.
6303
6304         * loop-iv.c (htab_t bivs):
6305         Change type to hash_table.  Update dependent calls and types.
6306
6307         * loop-unroll.c (htab_t opt_info::insns_to_split):
6308         Change type to hash_table.  Update dependent calls and types.
6309         (htab_t opt_info::insns_with_var_to_expand): Likewise.
6310
6311         * lto-streamer.h (struct string_slot): Move from data-streamer.h
6312         (struct string_slot_hasher): New.
6313         (htab_t output_block::string_hash_table):
6314         Change type to hash_table.  Update dependent calls and types.
6315
6316         * lto-streamer-in.c (freeing_string_slot_hasher): New.
6317         (htab_t file_name_hash_table):
6318         Change type to hash_table.  Update dependent calls and types.
6319
6320         * lto-streamer-out.c: Update output_block::string_hash_table dependent
6321         calls and types.
6322
6323         * lto-streamer.c (htab_t tree_htab):
6324         Change type to hash_table.  Update dependent calls and types.
6325
6326         * omp-low.c: Include gimplify-ctx.h.
6327
6328         * passes.c (htab_t name_to_pass_map):
6329         Change type to hash_table.  Update dependent calls and types.
6330         (pass_traverse): Rename to passes_pass_traverse.
6331
6332         * plugin.c (htab_t event_tab):
6333         Change type to hash_table.  Update dependent calls and types.
6334
6335         * postreload-gcse.c (htab_t expr_table):
6336         Change type to hash_table.  Update dependent calls and types.
6337         (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
6338
6339         * sese.c (debug_rename_map_1): Make extern.
6340         (htab_t copy_bb_and_scalar_dependences::rename_map):
6341         Change type to hash_table.  Update dependent calls and types.
6342
6343         * sese.h (extern debug_rename_map): Move to .c file.
6344
6345         * store-motion.c (htab_t store_motion_mems_table):
6346         Change type to hash_table.  Update dependent calls and types.
6347
6348         * trans-mem.c (htab_t tm_new_mem_hash):
6349         Change type to hash_table.  Update dependent calls and types.
6350
6351         * tree-browser.c (htab_t TB_up_ht):
6352         Change type to hash_table.  Update dependent calls and types.
6353
6354         * tree-cfg.c (htab_t discriminator_per_locus):
6355         Change type to hash_table.  Update dependent calls and types.
6356
6357         * tree-complex.c: Include tree-hasher.h
6358         (htab_t complex_variable_components):
6359         Change type to hash_table.  Update dependent calls and types.
6360
6361         * tree-eh.c (htab_t finally_tree):
6362         Change type to hash_table.  Update dependent calls and types.
6363
6364         * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
6365         struct int_tree_hasher.
6366         (extern int_tree_map_eq): Likewise.
6367         (uid_decl_map_hash): Removed.
6368         (extern decl_tree_map_eq): Likewise.
6369
6370         * tree-hasher.h: New.
6371         (struct int_tree_hasher): New.
6372         (typedef int_tree_htab_type): New.
6373
6374         * tree-inline.c: Include gimplify-ctx.h.
6375
6376         * tree-mudflap.c: Include gimplify-ctx.h.
6377
6378         * tree-parloops.c: Include tree-hasher.h.
6379         (htab_t eliminate_local_variables_stmt::decl_address):
6380         Change type to hash_table.  Update dependent calls and types.
6381         (htab_t separate_decls_in_region::decl_copies): Likewise.
6382
6383         * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
6384         Change type to hash_table.  Update dependent calls and types.
6385
6386         * tree-sra.c (candidates):
6387         Change type to hash_table.  Update dependent calls and types.
6388
6389         * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
6390         in tree-flow.h.
6391         (int_tree_map_hash): Likewise.
6392
6393         * tree-ssa-dom.c (htab_t avail_exprs):
6394         Change type to hash_table.  Update dependent calls and types.
6395
6396         * tree-ssa-live.c (var_map_base_init::tree_to_index):
6397         Change type to hash_table.  Update dependent calls and types.
6398
6399         * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
6400         Change type to hash_table.  Update dependent calls and types.
6401
6402         * tree-ssa-phiopt.c (seen_ssa_names):
6403         Change type to hash_table.  Update dependent calls and types.
6404
6405         * tree-ssa-strlen.c (decl_to_stridxlist_htab):
6406         Change type to hash_table.  Update dependent calls and types.
6407
6408         * tree-ssa-uncprop.c (equiv):
6409         Change type to hash_table.  Update dependent calls and types.
6410
6411 2013-04-25  Jakub Jelinek  <jakub@redhat.com>
6412
6413         PR rtl-optimization/57003
6414         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
6415         call note_stores with kill_clobbered_value callback again after
6416         killing regs_invalidated_by_call.
6417
6418 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
6419
6420         * config/aarch64/aarch64-simd.md
6421         (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
6422         (aarch64_simd_bsl<mode>): Likewise.
6423         * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
6424
6425 2013-04-25  Marek Polacek  <polacek@redhat.com>
6426
6427         PR tree-optimization/57066
6428         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
6429
6430 2013-04-25  James Greenhalgh  <jame.greenhalgh@arm.com>
6431
6432         * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
6433
6434 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
6435
6436         * config/aarch64/aarch64-builtins.c
6437         (aarch64_fold_builtin): New.
6438         * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
6439         * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
6440         * config/aarch64/aarch64-simd-builtins.def (abs): New.
6441         * config/aarch64/arm_neon.h
6442         (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
6443
6444 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
6445             Tejas Belagod  <tejas.belagod@arm.com>
6446
6447         * config/aarch64/aarch64-builtins.c
6448         (aarch64_gimple_fold_builtin): New.
6449         * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
6450         * config/aarch64/aarch64-simd-builtins.def (addv): New.
6451         * config/aarch64/aarch64-simd.md (addpv4sf): New.
6452         (addvv4sf): Update.
6453         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
6454
6455 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6456
6457         * config/aarch64/aarch64.md
6458         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
6459
6460 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6461
6462         * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
6463         (*ngcsi_uxtw): New pattern.
6464
6465 2013-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6466             Julian Brown  <julian@codesourcery.com>
6467
6468         * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
6469         (TB_DREG): Add T_V4HF.
6470         (v4hf_UP): New macro.
6471         (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
6472         (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
6473         Handle initialisation of V4HF. Adjust initialisation of reinterpret
6474         built-ins.
6475         (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
6476         (arm_vector_mode_supported_p): Handle V4HF.
6477         (arm_mangle_map): Handle V4HFmode.
6478         * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
6479         * config/arm/arm_neon_builtins.def: Add entries for
6480         vcvtv4hfv4sf, vcvtv4sfv4hf.
6481         * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
6482         (neon_vcvtv4hfv4sf): Likewise.
6483         * config/arm/neon-gen.ml: Handle half-precision floating point
6484         features.
6485         * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
6486         * config/arm/arm_neon.h: Regenerate.
6487         * config/arm/neon.ml (type elts): Add F16.
6488         (type vectype): Add T_float16x4, T_floatHF.
6489         (type vecmode): Add V4HF.
6490         (type features): Add Requires_FP_bit feature.
6491         (elt_width): Handle F16.
6492         (elt_class): Likewise.
6493         (elt_of_class_width): Likewise.
6494         (mode_of_elt): Refactor.
6495         (type_for_elt): Handle F16, fix error messages.
6496         (vectype_size): Handle T_float16x4.
6497         (vcvt_sh): New function.
6498         (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
6499         (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
6500         (string_of_mode): Handle V4HF.
6501         * doc/arm-neon-intrinsics.texi: Regenerate.
6502
6503 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
6504
6505         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
6506         format specifier in 'X' case.
6507
6508 2013-04-25  Alan Modra  <amodra@gmail.com>
6509
6510         PR target/57052
6511         * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
6512         rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
6513         (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
6514         Repeat for many other rotate/shift and mask patterns using subregs.
6515         Name lshiftrt insns.
6516         (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
6517         on WORDS_BIG_ENDIAN.
6518
6519 2013-04-25  Alan Modra  <amodra@gmail.com>
6520
6521         * config.gcc: Support little-endian powerpc-linux targets.
6522         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
6523         (LINK_OS_LINUX_SPEC): Define.
6524         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
6525         Preserve MASK_LITTLE_ENDIAN.
6526         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
6527         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
6528         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
6529         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
6530         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
6531         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
6532         Correct fp word order for little-endian.  Don't shift toc entries
6533         smaller than a word for little-endian.
6534         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
6535         (bswapdi2 splits): Correct low-part subreg for little-endian.
6536         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
6537         low/high where such is correct only for be.
6538         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
6539         little-endian for -mcall-aixdesc.
6540
6541 2013-04-25  Alan Modra  <amodra@gmail.com>
6542
6543         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
6544         replace_equiv_address_nv.
6545
6546 2013-04-25  Alan Modra  <amodra@gmail.com>
6547
6548         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
6549
6550 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
6551
6552         Revert:
6553         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
6554         * rtl.h (struct rtx_def): ...
6555
6556 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
6557
6558         PR rtl-optimizations/57046
6559         * lra-constraints (split_reg): Set up lra_risky_transformations_p
6560         for multi-reg splits.
6561
6562 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
6563
6564         * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
6565
6566 2013-04-24  Sterling Augustine  <saugustine@google.com>
6567
6568         * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
6569         (comp_dir_string, debug_str_dwo_section): New.
6570         (DEBUG_STR_DWO_SECTION): Rename to ...
6571         (DEBUG_DWO_STR_SECTION): ... this.
6572         (DEBUG_NORM_STR_SECTION): Delete.
6573         (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
6574         (DEBUG_STR_DWO_SECTION_FLAGS): New.
6575         (find_AT_string): Move most logic to ...
6576         (find_AT_string_in_table): ... here.  New.
6577         (add_top_level_skeleton_die_attrs): Call comp_dir_string and
6578         add_skeleton_AT_string.  Delete logic.
6579         (output_skeleton_debug_sections): Remove call to
6580         add_top_level_skeleton_die_attrs.
6581         (add_comp_dir_attribute): Move logic to comp_dir_string.
6582         (dwarf2out_init): Initialize debug_str_dwo_section.
6583         (output_indirect_string): Call find_string_form.
6584         (output_indirect_strings): Rewrite.
6585         (prune_unused_types): Empty skeleton_debug_str_hash.
6586         Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
6587         (dwarf2out_finish):  Call output_indirect_strings.
6588
6589 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
6590
6591         * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
6592
6593 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
6594
6595         * rtl.h (struct rtx_def): Add comment for field jump.
6596         (LRA_SUBREG_P): New macro.
6597         * recog.c (register_operand): Check LRA_SUBREG_P.
6598         * lra.c (lra): Add note at the end of RTL code. Align non-empty
6599         stack frame.
6600         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
6601         (lra_final_code_change): Skip subreg change for operators.
6602         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
6603         if there are no operand changes.
6604         * lra-constraints.c (curr_insn_set): New.
6605         (match_reload): Set LRA_SUBREG_P.
6606         (emit_spill_move): Ditto.
6607         (check_and_process_move): Use curr_insn_set. Process only single
6608         set insns.  Don't initialize sec_mem_p and change_p.
6609         (simplify_operand_subreg): Use LRA_SUBREG_P.
6610         (reg_in_class_p): New function.
6611         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
6612         of #ifdef.  Add code to remove cycling.
6613         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
6614         non-null disp.  Reload inner instead of disp when base and index
6615         are null.  Try to put lo_sum into register.
6616         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
6617         (check_and_process_move): Move code for move cost check to
6618         simple_move_p.  Remove equiv_substitution.
6619         (simple_move_p): New function.
6620         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
6621         curr_insn_set.  Call check_and_process_move only for single set
6622         insns.  Use the new function.  Move call of check_and_process_move
6623         after operand equiv substitution and address process.
6624
6625 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
6626
6627         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
6628         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
6629         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
6630
6631 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
6632
6633         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
6634
6635 2013-04-24  Marek Polacek  <polacek@redhat.com>
6636
6637         * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
6638         * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
6639         (select_loops_exit_conditions): Likewise.
6640         (number_of_iterations_for_all_loops): Likewise.
6641         (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
6642         (scev_analysis): Likewise.
6643
6644 2013-04-02  Catherine Moore  <clm@codesourcery.com>
6645             Chao-ying Fu <fu@mips.com>
6646
6647         * config/mips/micromips.md (jraddiusp): New pattern.
6648         * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
6649         instruction if possible.
6650
6651 2013-04-24  Alan Modra  <amodra@gmail.com>
6652
6653         * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
6654
6655 2013-04-24  Julian Brown  <julian@codesourcery.com>
6656             Chung-Lin Tang  <cltang@codesourcery.com>
6657
6658         * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
6659         dependency behavior in enumeration type DIE generation. Add TODO note
6660         to comments about future DW_FORM_sdata/udata re-work of related code.
6661
6662 2013-04-23  Lawrence Crowl  <crowl@google.com>
6663
6664         * Makefile.in: Update as needed below.
6665
6666         * hash-table.h (class hash_table):
6667         Correct many methods with parameter types compare_type to the correct
6668         value_type.  (Correct code was unlikely to notice the change.)
6669         (hash_table::elements_with_deleted) New.
6670         (class hashtable::iterator): New.
6671         (hashtable::begin()): New.
6672         (hashtable::end()): New.
6673         (FOR_EACH_HASH_TABLE_ELEMENT): New.
6674
6675         * statistics.c (statistics_hashes):
6676         Change type to hash_table.  Update dependent calls and types.
6677
6678         * tree-into-ssa.c (var_infos):
6679         Change type to hash_table.  Update dependent calls and types.
6680
6681         * tree-ssa-coalesce.c (struct coalesce_list_d.list):
6682         Change type to hash_table.  Update dependent calls and types.
6683
6684         * tree-ssa-loop-im.c (struct mem_ref.refs):
6685         Change type to hash_table.  Update dependent calls and types.
6686
6687         * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
6688         Change type to hash_table.  Update dependent calls and types.
6689
6690         * tree-ssa-sccvn.c (vn_tables_s::nary):
6691         Change type to hash_table.  Update dependent calls and types.
6692         (vn_tables_s::phis): Likewise.
6693         (vn_tables_s::references): Likewise.
6694
6695         * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
6696         (vn_reference_eq): Update parameter and return types.
6697
6698         * tree-ssa-structalias.c (pointer_equiv_class_table):
6699         Change type to hash_table.  Update dependent calls and types.
6700         (location_equiv_class_table): Likewise.
6701
6702         * tree-vect-data-refs.c: Consequential changes for making
6703         peeling a hash_table.
6704
6705         * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
6706         (destroy_loop_vec_info): Dependent hash_table update.
6707
6708         * tree-vectorizer.h (peeling_htab):
6709         Change type to hash_table.  Update dependent calls and types.
6710
6711 2013-04-23  Shiva Chen  <shiva0217@gmail.com>
6712
6713         * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
6714         to check the register content is equal or not.
6715         * lra-constraints.c (match_reload): Use lra_assign_reg_val
6716         to assign register content record.
6717         * lra-eliminations.c (update_reg_eliminate): Use
6718         lra_update_reg_val_offset to update register content offset.
6719         * lra-int.h (struct lra_reg): Add offset member.
6720         (lra_reg_val_equal_p): New static inline function.
6721         (lra_update_reg_val_offset): New static inline function.
6722         (lra_assign_reg_val): New static inline function.
6723         * lra.c (lra_create_new_reg): Use lra_assign_reg_val
6724         to assign register content record.
6725         (initialize_lra_reg_info_element): Initial offset to zero.
6726
6727 2013-04-23  Catherine Moore  <clm@codesourcery.com>
6728
6729         * config/mips/mips.md (*movhi_internal, *movqi_internal): New
6730         operands.  Record compression.
6731
6732 2013-04-23  Xinliang David Li  <davidxl@google.com>
6733
6734         * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
6735
6736 2013-04-23  Richard Biener  <rguenther@suse.de>
6737
6738         PR middle-end/57036
6739         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
6740         parameter, only add abnormal goto edges from the copied body
6741         if the call could perform abnormal gotos.
6742         (copy_cfg_body): Adjust.
6743
6744 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
6745
6746         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
6747
6748 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
6749
6750         * coretypes.h (gimple_stmt_iterator): Add struct to make
6751         compatible with C.
6752
6753 2013-04-23  Richard Biener  <rguenther@suse.de>
6754
6755         PR tree-optimization/57026
6756         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
6757         from SSA names occuring in abnormal PHI nodes.
6758
6759 2013-04-22  Andi Kleen  <ak@linux.intel.com>
6760
6761         * lto/lto.c (print_lto_report_1): Fix LTO report names.
6762
6763 2013-04-22  Andi Kleen  <ak@linux.intel.com>
6764
6765         * lto/lto.c (print_lto_report_1): Declare early.
6766         (read_cgraph_and_symbols): Call print_lto_report_1 early.
6767
6768 2013-04-22  Andi Kleen  <ak@linux.intel.com>
6769
6770         * common.opt (-flto-report-wpa): Add.
6771         * doc/invoke.texi (-flto-report-wpa): Add.
6772         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
6773         (lto_main): dito.
6774
6775 2013-04-22  Xinliang David Li  <davidxl@google.com>
6776
6777         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
6778         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
6779         * Makefile.in: New dependency
6780
6781             David Daney <ddaney.cavm@gmail.com>
6782
6783         * configure.ac (gcc_cv_as_micromips_support):  Use the
6784         --fatal-warnings option.
6785         * configure: Regenerate.
6786
6787 2013-04-22  Marek Polacek  <polacek@redhat.com>
6788
6789         PR sanitizer/56990
6790         * tsan.c (instrument_expr): Don't instrument expression
6791         in case its size is zero.
6792
6793 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
6794
6795         PR target/57032
6796         Revert:
6797         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
6798
6799         * config/alpha/alpha.c (TARGET_LRA_P): New define.
6800
6801 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
6802
6803         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
6804         (gimple_stmt_iterator): New typedef.
6805         * gimple.h (gimple_stmt_iterator): Rename to...
6806         (gimple_stmt_iterator_d): ... This.
6807         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
6808         trees be valid for GIMPLE and GENERIC.
6809         (TARGET_GIMPLE_FOLD_BUILTIN): New.
6810         * gimple-fold.c (gimple_fold_call): Call target hook
6811         gimple_fold_builtin.
6812         * hooks.c (hook_bool_gsiptr_false): New.
6813         * hooks.h (hook_bool_gsiptr_false): New.
6814         * target.def (fold_stmt): New.
6815         * doc/tm.texi: Regenerate.
6816
6817 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
6818
6819         PR target/57018
6820         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
6821         a set sp if no stack realignment.
6822
6823 2013-04-22  Nick Clifton  <nickc@redhat.com>
6824
6825         * config.gcc (tilegx-linux): Extend extra_objs rather than
6826         overwriting it.
6827         (tilepro-linux): Likewise.
6828
6829 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
6830
6831         * config/aarch64/aarch64-builtins.c
6832         (CF): Remove.
6833         (CF0, CF1, CF2, CF3, CF4, CF10): New.
6834         (VAR<1-12>): Add MAP parameter.
6835         (BUILTIN_*): Likewise.
6836         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
6837         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
6838         (aarch64_ushl_n<mode>): Likewise.
6839         (aarch64_sshr_n<mode>): Likewise.
6840         (aarch64_ushr_n<mode>): Likewise.
6841         (aarch64_<maxmin><mode>): Likewise.
6842         (aarch64_sqrt<mode>): Likewise.
6843         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
6844         (vshr<q>_n_*): Likewise.
6845
6846 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
6847
6848         * config/aarch64/aarch64-builtins.c
6849         (aarch64_simd_builtin_type_mode): Handle SF types.
6850         (sf_UP): Define.
6851         (BUILTIN_GPF): Define.
6852         (aarch64_init_simd_builtins): Handle SF types.
6853         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
6854         (frecps): Likewise.
6855         (frecpx): Likewise.
6856         * config/aarch64/aarch64-simd.md
6857         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
6858         (aarch64_frecpe<mode>): New.
6859         (aarch64_frecps<mode>): Likewise.
6860         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
6861         (v8type): Add frecp<esx>.
6862         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
6863         (aarch64_frecps<mode>): Likewise.
6864         * config/aarch64/iterators.md (FRECP): New.
6865         (frecp_suffix): Likewise.
6866         * config/aarch64/arm_neon.h
6867         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
6868
6869 2013-04-22  Christian Bruel  <christian.bruel@st.com>
6870
6871         PR target/56995
6872         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
6873         (REG_CLASS_NAMES): Idem.
6874         (REG_CLASS_CONTENTS): Idem.
6875         (REGCLASS_HAS_FP_REG): Idem.
6876         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
6877         (sh_conditional_register_usage): Idem.
6878
6879 2013-04-21  Jeff Law  <law@redhat.com>
6880
6881         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
6882         (ssa_forward_propagate_and_combine): Use it.
6883
6884 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
6885
6886         * lra.c: Update the flow chart diagram.
6887
6888 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
6889
6890         PR rtl-optimization/56847
6891         * lra-constraints.c (process_alt_operands): Discourage alternative
6892         with non-matche doffsettable memory constraint fro memory with
6893         known offset.
6894
6895 2013-04-19  Richard Biener  <rguenther@suse.de>
6896
6897         PR tree-optimization/56982
6898         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
6899         function.
6900         * gimplify.c (gimplify_call_expr): Notice special calls.
6901         (gimplify_modify_expr): Likewise.
6902         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
6903         abnormal control flow receivers.
6904         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
6905         in the same way as cfun->has_nonlocal_labels.
6906         (gimple_purge_dead_abnormal_call_edges): Likewise.
6907         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
6908         receivers start a basic-block.
6909
6910 2013-04-19  Richard Biener  <rguenther@suse.de>
6911
6912         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
6913         member ...
6914         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
6915         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
6916         (SLP_TREE_LOAD_PERMUTATION): Add.
6917         (vect_transform_slp_perm_load): Adjust prototype.
6918         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
6919         (vect_free_slp_instance): Likewise.
6920         (vect_create_new_slp_node): Likewise.
6921         (vect_supported_slp_permutation_p): Remove.
6922         (vect_slp_rearrange_stmts): Adjust.
6923         (vect_supported_load_permutation_p): Likewise.  Inline
6924         vect_supported_slp_permutation_p here.
6925         (vect_analyze_slp_instance): Compute load permutations per
6926         slp node instead of per instance.
6927         (vect_get_slp_defs): Adjust.
6928         (vect_transform_slp_perm_load): Likewise.
6929         (vect_schedule_slp_instance): Remove redundant code.
6930         (vect_schedule_slp): Remove hack for PR56270, add it ...
6931         * tree-vect-stmts.c (vectorizable_load): ... here, do not
6932         CSE loads for SLP.  Adjust.
6933
6934 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
6935
6936         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
6937         spelling in two comments.
6938
6939 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
6940
6941         PR target/56797
6942         * config/arm/arm.c (load_multiple_sequence): Require SP
6943         as base register for loads if SP is in the register list.
6944
6945 2013-04-19  Martin Jambor  <mjambor@suse.cz>
6946
6947         PR tree-optimization/56718
6948         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
6949         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
6950         and made public.  Adjusted all callers.
6951         (ipa_intraprocedural_devirtualization): New function.
6952         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
6953         (ipa_intraprocedural_devirtualization): Likewise.
6954         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
6955
6956 2013-04-19  Richard Biener  <rguenther@suse.de>
6957
6958         PR tree-optimization/57000
6959         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
6960
6961 2013-04-19  Terry Guo  <terry.guo@arm.com>
6962
6963         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
6964         Replace with ...
6965         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
6966         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
6967         (cortex_m4_fmacs): Use new reservations.
6968         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
6969
6970 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
6971
6972         PR rtl-optimization/56999
6973         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
6974         related code.
6975         (lra_coalesce): Remove split_origin_bitmap and related code.
6976         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
6977         ranges if necessary.
6978
6979 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
6980
6981         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
6982         New array.
6983         (ix86_expand_call): Remove clobbered_registers array and use
6984         x86_64_ms_sysv_extra_clobbered_registers instead.
6985         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
6986         Declare here.
6987         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
6988         predicate.
6989         * config/i386/i386.md (*call_rex64_ms_sysv): Use
6990         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
6991         (*call_value_rex64_ms_sysv): Ditto.
6992
6993 2013-04-18  Cary Coutant  <ccoutant@google.com>
6994
6995         * dwarf2out.c (output_pubnames): Check die_perennial_p of
6996         parent instead of die_mark.
6997
6998 2013-04-18  Diego Novillo  <dnovillo@google.com>
6999
7000         * gimple.c (create_gimple_tmp): New.
7001         (get_expr_type): New.
7002         (build_assign): New.
7003         (build_type_cast): New.
7004         * gimple.h (enum ssa_mode): Define.
7005         (gimple_seq_set_location): New.
7006         * asan.c (build_check_stmt): Change some gimple_build_* calls
7007         to use build_assign and build_type_cast.
7008
7009 2013-04-18  Richard Biener  <rguenther@suse.de>
7010
7011         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
7012         handle negative step.  Remove redundant checks.
7013         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
7014         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
7015         for negative step and grouped loads fail to vectorize.
7016
7017 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
7018
7019         * emit-rtl.c (reset_insn_used_flags): New function.
7020         (reset_all_used_flags): Use it.
7021         (verify_insn_sharing): New function.
7022         (verify_rtl_sharing): Fix verification for SEQUENCEs.
7023
7024 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
7025
7026         PR tree-optimization/56984
7027         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
7028         and (x >> M) >= N don't register any assertion if N << M is the
7029         minimum value.
7030
7031 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
7032
7033         * lower-subreg.c (resolve_simple_move): If called self-recursive,
7034         do not delete_insn insns that have not yet been emitted, only
7035         unlink them with remove_insn.
7036         * df-scan.c (df_insn_delete): Revert r197492.
7037
7038 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
7039
7040         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
7041         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
7042
7043 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
7044
7045         * config/arm/arm.md (movsicc_insn): Convert define_insn into
7046         define_insn_and_split.
7047         (and_scc,ior_scc,negscc): Likewise.
7048         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
7049
7050 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
7051
7052         * config/arm/arm.c (use_return_insn): Return 0 for targets that
7053         can benefit from using a sequence of LDRD instructions in epilogue
7054         instead of a single LDM instruction.
7055
7056 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7057
7058         PR 45688
7059         * doc/extend.texi: Fix typo.
7060
7061 2013-04-17  Richard Biener  <rguenther@suse.de>
7062
7063         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
7064         (vect_build_slp_tree): ... here.
7065         (vect_build_slp_tree_1): Compute which stmts of the SLP group
7066         match.  Remove special-casing of mismatched complex loads.
7067         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
7068         re-try the match with swapped commutative operands.
7069         (vect_supported_load_permutation_p): Remove special-casing of
7070         mismatched complex loads.
7071         (vect_analyze_slp_instance): Adjust.
7072
7073 2013-04-17  Richard Biener  <rguenther@suse.de>
7074
7075         PR rtl-optimization/56921
7076         * cfgloop.h (struct loop): Add simple_loop_desc member.
7077         (struct niter_desc): Mark with GTY(()).
7078         (simple_loop_desc): Do not use aux field but simple_loop_desc.
7079         * loop-iv.c (get_simple_loop_desc): Likewise.
7080         (free_simple_loop_desc): Likewise.
7081
7082         Revert
7083         2013-04-16  Richard Biener  <rguenther@suse.de>
7084
7085         PR rtl-optimization/56921
7086         * loop-init.c (pass_rtl_move_loop_invariants): Add
7087         TODO_do_not_ggc_collect to todo_flags_finish.
7088         (pass_rtl_unswitch): Same.
7089         (pass_rtl_unroll_and_peel_loops): Same.
7090         (pass_rtl_doloop): Same.
7091
7092 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
7093
7094         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
7095         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
7096         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
7097         references.
7098         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
7099         * tree-streamer.c (record_common_node): Adjust reference in comment.
7100
7101 2013-04-17  Terry Guo  <terry.guo@arm.com>
7102
7103         * config/arm/cortex-m4.md: Add a new bypass.
7104
7105 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7106
7107         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
7108         New pattern.
7109         (*subs_<optab><mode>_multp2): New pattern.
7110         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
7111         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
7112
7113 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7114
7115         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
7116         (*subs_mul_imm_<mode>): New pattern.
7117
7118 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
7119
7120         PR target/56948
7121         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
7122         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
7123         (vsx_movti_32bit): Change j->wa to O->wa.
7124
7125 2013-04-16  Richard Biener  <rguenther@suse.de>
7126
7127         PR rtl-optimization/56921
7128         * loop-init.c (pass_rtl_move_loop_invariants): Add
7129         TODO_do_not_ggc_collect to todo_flags_finish.
7130         (pass_rtl_unswitch): Same.
7131         (pass_rtl_unroll_and_peel_loops): Same.
7132         (pass_rtl_doloop): Same.
7133
7134 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
7135
7136         * config/arm/arm.c (emit_multi_reg_push): New declaration
7137         for an existing function.
7138         (arm_emit_strd_push): New function.
7139         (arm_expand_prologue): Used here.
7140         (arm_emit_ldrd_pop): New function.
7141         (arm_expand_epilogue): Used here.
7142         (arm_get_frame_offsets): Update condition.
7143         (arm_emit_multi_reg_pop): Add a special case for load of a single
7144         register with writeback.
7145
7146 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
7147
7148         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
7149         description.
7150
7151 2013-04-16  Richard Biener  <rguenther@suse.de>
7152
7153         PR tree-optimization/56756
7154         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
7155         (first_mem_ref_loc): New.
7156         (execute_sm): Place the load temporarily before a previous
7157         access instead of in the latch edge to ensure its SSA dependencies
7158         are defined at points dominating the load.
7159
7160 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
7161
7162         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
7163         correct fix by moving header and footer insn to the footer of
7164         the merged basic block.  Clear BB_END of the merged-away block.
7165
7166         PR middle-end/43631
7167         * emit-rtl.c (make_note_raw): New function.
7168         (link_insn_into_chain): New static inline function.
7169         (add_insn): Use it.
7170         (add_insn_before, add_insn_after): Factor insn chain linking code...
7171         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
7172         using link_insn_into_chain.
7173         (note_outside_basic_block_p): New helper function for emit_note_after
7174         and emit_note_before.
7175         (emit_note_after): Use nobb variant of add_insn_after if the note
7176         should not be contained in a basic block.
7177         (emit_note_before): Use nobb variant of add_insn_before if the note
7178         should not be contained in a basic block.
7179         (emit_note_copy): Use make_note_raw.
7180         (emit_note): Likewise.
7181         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
7182         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
7183         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
7184         the moved barrier the tail of the basic block it follows.
7185         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
7186
7187 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
7188
7189         PR tree-optimization/56962
7190         * gimple-ssa-strength-reduction.c (record_increment): Only set
7191         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
7192         either rhs1 or rhs2 is equal to c->base_expr.
7193
7194 2013-04-15  Richard Biener  <rguenther@suse.de>
7195
7196         PR tree-optimization/56933
7197         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
7198         member.
7199         (GROUP_READ_WRITE_DEPENDENCE): Remove.
7200         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
7201         * tree-vect-data-refs.c (vect_analyze_group_access): Move
7202         dependence check ...
7203         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
7204         ... here.
7205         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
7206         GROUP_READ_WRITE_DEPENDENCE.
7207
7208 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7209
7210         * emit-rtl.c (reset_all_used_flags): New function.
7211         (verify_rtl_sharing): Call reset_all_used_flags before and after
7212         performing the checks.
7213
7214 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7215
7216         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
7217         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
7218         * config/arm/constraints.md (De): New constraint.
7219         * config/arm/neon.md (anddi3_neon): Delete.
7220         (neon_vand<mode>): Expand to standard anddi3 pattern.
7221         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
7222         Move earlier in the file.
7223         (neon_inv_logic_op2): Likewise.
7224         (arm_anddi_operand_neon): New predicate.
7225
7226 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7227
7228         * configure.ac (gcc_cv_ld_as_needed): Set
7229         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
7230         Use -z ignore, -z record on *-*-solaris2*.
7231         (HAVE_LD_AS_NEEDED): Update comment.
7232         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
7233         * configure: Regenerate.
7234         * config.in: Regenerate.
7235         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
7236         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
7237         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
7238         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
7239         equivalents.  Fix markup.
7240         * doc/tm.texi: Regenerate.
7241
7242 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
7243
7244         * config/i386/i386.opt: New option mstack-protector-guard=.
7245         * config/i386/i386-opts.h: Add enum stack_protector_guard.
7246         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
7247         TARGET_SSP_TLS_GUARD.
7248         * config/i386/i386.c (ix86_option_override_internal): Set
7249         ix86_stack_protector_guard.
7250         * config/i386/i386.md (stack_protect_set): Enable for
7251         TARGET_SSP_TLS_GUARD only.
7252         (stack_protect_set_<mode>): Ditto.
7253         (stack_protect_test): Ditto.
7254         (stack_protect_test_<mode>): Ditto.
7255         * doc/invoke.texi (i386 Option): Document.
7256
7257 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
7258
7259         PR target/56890
7260         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
7261         (S_MODES): Set H_MODE bit.
7262         (SF_MODES): Set only S_MODE and SF_MODE bits.
7263         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
7264         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
7265         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
7266         <MODE_FLOAT>: Likewise.
7267
7268 2013-04-15  Joey Ye  <joey.ye@arm.com>
7269
7270         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
7271
7272 2013-04-15  Joey Ye  <joey.ye@arm.com>
7273
7274         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
7275         for real far jump.
7276         (thumb_far_jump_used_p): Count instruction size and set
7277         far_jump_used.
7278
7279 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
7280
7281         * reorg.c (fill_simple_delay_slots): Reindent block of code.
7282         * resource.c (mark_target_live_regs): Reformat conditional block.
7283
7284 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
7285
7286         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
7287         notes, they are emitted only just before final.
7288         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
7289
7290 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
7291
7292         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
7293         * cfgrtl.c (delete_insn): Call it here instead.
7294         * lra-spills.c (lra_final_code_change): Use delete_insn.
7295         * haifa-sched.c (sched_remove_insn): Likewise.
7296         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
7297         returning to the nop pool.
7298         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
7299         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
7300
7301 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
7302
7303         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
7304         * doc/tm.texi: Regenerated.
7305
7306 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
7307
7308         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
7309         QImode checks.
7310
7311 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
7312
7313         * df-core.c (df_find_def): Compare register numbers.
7314         (df_find_use): Likewise.
7315
7316 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
7317
7318         PR target/56903
7319         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
7320         lra_in_progress for return.
7321
7322 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
7323
7324         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
7325         define_insn into define_insn_and_split and emit movsicc patterns.
7326
7327 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
7328
7329         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
7330
7331 2013-04-12  Richard Biener  <rguenther@suse.de>
7332
7333         * tree-pass.h (TODO_do_not_ggc_collect): New.
7334         * passes.c (execute_one_ipa_transform_pass): Honor
7335         TODO_do_not_ggc_collect.
7336         (execute_one_pass): Likewise.
7337
7338         Revert
7339         2013-04-10  Richard Biener  <rguenther@suse.de>
7340
7341         * passes.c (init_optimization_passes): Remove reload pass.
7342         * ira.c (do_reload): Merge into ...
7343         (ira): ... this.
7344         (rest_of_handle_reload): Remove.
7345         (pass_reload): Likewise.
7346         * config/i386/i386.c (ix86_option_override): Refer to ira instead
7347         of reload for vzeroupper pass placement.
7348
7349 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
7350
7351         PR tree-optimization/56918
7352         PR tree-optimization/56920
7353         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
7354         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
7355         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
7356         use wide_mul_with_sign method.
7357
7358 2013-04-12  Richard Biener  <rguenther@suse.de>
7359
7360         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
7361         not be considered a gimple constant.
7362
7363 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
7364
7365         * fold-const.c (const_binop): Handle vector shifts by a scalar.
7366         (fold_binary_loc): Call const_binop also for mixed vector-scalar
7367         operations.
7368
7369 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7370             Jakub Jelinek  <jakub@redhat.com>
7371
7372         * opts.c: Include diagnostic-color.h.
7373         (common_handle_option): Handle OPT_fdiagnostics_color_.
7374         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
7375         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
7376         (diagnostic-color.o): New.
7377         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
7378         (diagnostic_color_rule): New enum.
7379         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
7380         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
7381         the location string.
7382         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
7383         either NULL, or color kind.
7384         * diagnostic-color.c: New file.
7385         * diagnostic-color.h: New file.
7386         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
7387         arguments.
7388         * doc/invoke.texi (-fdiagnostics-color): Document.
7389         * pretty-print.h (pp_show_color): Define.
7390         (struct pretty_print_info): Add show_color field.
7391         * diagnostic.c: Include diagnostic-color.h.
7392         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
7393         macros.  Colorize error:, warning: etc. strings and also the location
7394         string.
7395         (diagnostic_show_locus): Colorize the caret line.
7396         * pretty-print.c: Include diagnostic-color.h.
7397         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
7398         inside of %< %> quotes or quoted through q format modifier.
7399
7400 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7401
7402         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
7403
7404 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7405
7406         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
7407         code in CC_NZ mode.
7408         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
7409         pattern.
7410
7411 2013-04-11  Marek Polacek  <polacek@redhat.com>
7412
7413         PR tree-optimization/48184
7414         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
7415
7416 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
7417
7418         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
7419         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
7420         (skip_simple_arithmetic): Tidy up.
7421         * tree.h (skip_simple_constant_arithmetic): Declare.
7422
7423 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7424
7425         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
7426
7427 2013-04-11  Richard Biener  <rguenther@suse.de>
7428
7429         * tree-vect-loop.c (get_initial_def_for_induction): Properly
7430         generate vector constants.
7431
7432 2013-04-11  Richard Biener  <rguenther@suse.de>
7433
7434         PR tree-optimization/56878
7435         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
7436         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
7437         New function.
7438         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7439         Prefer to align the DR with the most invariant base address.
7440
7441 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
7442
7443         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
7444         comment.
7445
7446 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
7447
7448         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
7449         floating-point vector comparisons against 0.
7450
7451 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
7452
7453         PR tree-optimization/56899
7454         * fold-const.c (extract_muldiv_1): Apply distributive law
7455         only if TYPE_OVERFLOW_WRAPS (ctype).
7456
7457 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
7458
7459         PR target/56124
7460         * ira-costs.c (scan_one_insn): Check whether the source rtx of
7461         loading has side effect.
7462
7463 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
7464
7465         * config/sparc/sparc.c: Include tree-pass.h.
7466         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
7467         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
7468         head of file.  Change return type.  Split off gate function.
7469         (sparc_gate_work_around_errata): New function.
7470         (pass_work_around_errata): New pass definition.
7471         (insert_pass_work_around_errata) New pass insert definition to
7472         insert pass_work_around_errata just after delayed-branch scheduling.
7473         (sparc_option_override): Insert the pass.
7474         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
7475
7476 2013-04-10  David S. Miller  <davem@davemloft.net>
7477
7478         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
7479         or -mcpu=hypersparc.
7480
7481         * target.def (cstore_mode): New hook.
7482         * target.h: Include insn-codes.h
7483         * targhooks.c: Likewise.
7484         (default_cstore_mode): New function.
7485         * targhooks.h: Declare it.
7486         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
7487         * doc/tm.texi: Rebuild.
7488         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
7489         target hook, rather than inspecting the insn_data.
7490         * config/sparc/sparc.c (sparc_cstore_mode): New function.
7491         (TARGET_CSTORE_MODE): Redefine.
7492         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
7493         result patterns.
7494         * config/sparc/predicates.md (cstore_result_operand): New special
7495         predicate.
7496         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
7497         Use it for operand 0.
7498         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
7499         (*snesi_special): Likewise.
7500         (*snesi_zero): Likewise.
7501         (*seqsi_zero): Likewise.
7502         (*sltu_insn): Likewise.
7503         (*sgeu_insn): Likewise.
7504         (*seqdi_special): Make operand 0 and comparison operation be of
7505         DImode.
7506         (*snedi_special): Likewise.
7507         (*snedi_special_vis3): Likewise.
7508         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
7509         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
7510         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
7511         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
7512         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
7513         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
7514         (*sltu_extend_sp64): Likewise.
7515         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
7516         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
7517         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
7518         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
7519         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
7520
7521 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
7522
7523         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
7524         (aarch64_start_file): Use the new function.
7525
7526 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
7527             Jason Merrill  <jason@redhat.com>
7528
7529         * common.opt: Add -gdwarf.
7530         * opts.c (common_handle_option): Handle it.
7531         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
7532
7533 2013-04-10  Richard Biener  <rguenther@suse.de>
7534
7535         * passes.c (execute_todo): Do not call ggc_collect conditional here.
7536         (execute_one_ipa_transform_pass): But unconditionally here.
7537         (execute_one_pass): And here.
7538         (init_optimization_passes): Remove reload pass.
7539         * tree-pass.h (TODO_ggc_collect): Remove.
7540         (pass_reload): Likewise.
7541         * ira.c (do_reload): Merge into ...
7542         (ira): ... this.
7543         (rest_of_handle_reload): Remove.
7544         (pass_reload): Likewise.
7545         * config/i386/i386.c (ix86_option_override): Refer to ira instead
7546         of reload for vzeroupper pass placement.
7547         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
7548         and todo_flags_finish of all passes.
7549
7550 2013-04-10  Richard Biener  <rguenther@suse.de>
7551
7552         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
7553         first_const_oprnd field, rename first_def_type to first_op_type.
7554         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
7555         (vect_get_and_check_slp_defs): Always use the type of the
7556         operand.  Allow mixed vect_external_def, vect_constant_def types.
7557         (vect_get_constant_vectors): Handle mixed vect_external_def,
7558         vect_constant_def types.
7559
7560 2013-04-10  Joern Rennecke <joern.rennecke@embecosm.com>
7561
7562         PR tree-optimization/55524
7563         * tree-ssa-math-opts.c
7564         (convert_mult_to_fma): Don't use an fms construct
7565         when we don't have an fms operation, but fnma, and it looks
7566         likely that we'll be able to use the latter.
7567
7568 2013-04-10  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
7569
7570         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
7571         function.
7572         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
7573         inline fail caused by overwritable functions.
7574
7575 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
7576
7577         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
7578         unnecessary bits in the constant power of two case.
7579
7580 2013-04-10  Richard Biener  <rguenther@suse.de>
7581
7582         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
7583         broken code swapping operands.
7584         (vect_build_slp_tree): Do not compute load permutations here.
7585         (vect_analyze_slp_instance): Compute load permutations here,
7586         after building the SLP tree.
7587
7588 2013-04-09  Christian Bruel  <christian.bruel@st.com>
7589
7590         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
7591         of next/prev_real_insn.
7592
7593 2013-04-09  Jan Hubicka  <jh@suse.cz>
7594
7595         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
7596         Drop aliased parameter.
7597         (function_and_variable_visibility): Do not handle alias pairs.
7598         * cgraph.c (varpool_externally_visible_p): Update prototype.
7599         * varpool.c (varpool_add_new_variable): Update.
7600
7601 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7602
7603         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
7604
7605 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
7606
7607         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
7608
7609         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
7610
7611 2013-04-09  Marek Polacek  <polacek@redhat.com>
7612
7613         PR tree-optimization/48762
7614         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
7615
7616 2013-04-09  Richard Biener  <rguenther@suse.de>
7617
7618         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
7619         dealing with cost.
7620         (vect_build_slp_tree): Likewise.
7621         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
7622         calculating the cost of a SLP instance.
7623         (vect_analyze_slp_instance): Use it from here, after building
7624         the SLP tree.
7625
7626 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
7627
7628         PR middle-end/56883
7629         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
7630         expand_omp_for_static_chunk): Use simple_p = true in
7631         force_gimple_operand_gsi calls when assigning to addressable decls.
7632
7633 2013-04-09  Jeff Law  <law@redhat.com>
7634
7635         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
7636         when the boolean was created by converting a wider object which
7637         had a boolean range.
7638
7639 2013-04-09  Richard Biener  <rguenther@suse.de>
7640
7641         * tree-vectorizer.h (slp_void_p): Remove.
7642         (slp_tree): Typedef before _slp_tree declaration.
7643         (struct _slp_tree): Use a vector of slp_tree as children.
7644         (vect_get_place_in_interleaving_chain): Remove.
7645         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
7646         Move ...
7647         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
7648         and make static.
7649         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
7650         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
7651         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
7652         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
7653         Use slp_node instead of slp_void_p and adjust.
7654
7655 2013-04-09  Richard Biener  <rguenther@suse.de>
7656
7657         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
7658         work that is not necessary.
7659
7660 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
7661
7662         PR tree-optimization/56854
7663         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
7664         forward into clobber stmts if it would change MEM_REF lhs into
7665         non-MEM_REF.
7666
7667 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
7668
7669         * tree.c (type_hash_lookup, type_hash_add): Make static.
7670         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
7671
7672 2013-04-09  Richard Biener  <rguenther@suse.de>
7673
7674         * tree.h (unsave_expr_now): Remove.
7675         * tree-inline.c (mark_local_for_remap_r): Remove.
7676         (unsave_expr_1): Likewise.
7677         (unsave_r): Likewise.
7678         (unsave_expr_now): Likewise.
7679         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
7680         (propagate_tree_value): Likewise.
7681
7682 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
7683
7684         * doc/rtl.texi (sequence): Rewrite documentation to match the
7685         current use of SEQUENCE rtl objects.
7686         * rtl.def (SEQUENCE): Likewise.
7687
7688         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
7689         Update documentation.
7690         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
7691         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
7692
7693         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
7694
7695 2013-04-08  Teresa Johnson  <tejohnson@google.com>
7696
7697         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
7698         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
7699         methods.
7700         (estimate_edge_size_and_time): Add comment to suggest using rounding
7701         methods.
7702         (estimate_node_size_and_time): Ditto.
7703         (remap_edge_change_prob): Use helper rounding divide methods.
7704         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
7705         (gimple_mod_pow2_value_transform): Ditto.
7706         (gimple_mod_subtract_transform): Ditto.
7707         (gimple_ic_transform): Ditto.
7708         (gimple_stringops_transform): Ditto.
7709         * stmt.c (conditional_probability): Ditto.
7710         (emit_case_dispatch_table): Ditto.
7711         * lto-cgraph.c (merge_profile_summaries): Ditto.
7712         * tree-optimize.c (execute_fixup_cfg): Ditto.
7713         * cfgcleanup.c (try_forward_edges): Ditto.
7714         * cfgloopmanip.c (scale_loop_profile): Ditto.
7715         (loopify): Ditto.
7716         (duplicate_loop_to_header_edge): Ditto.
7717         (lv_adjust_loop_entry_edge): Ditto.
7718         * tree-vect-loop.c (vect_transform_loop): Ditto.
7719         * profile.c (compute_branch_probabilities): Ditto.
7720         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
7721         * lto-streamer-in.c (input_cfg): Ditto.
7722         * gimple-streamer-in.c (input_bb): Ditto.
7723         * ipa-cp.c (update_profiling_info): Ditto.
7724         (update_specialized_profile): Ditto.
7725         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
7726         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
7727         rounding methods.
7728         * sched-rgn.c (compute_dom_prob_ps): Ditto.
7729         (compute_trg_info): Ditto.
7730         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
7731         (purge_dead_edges): Ditto.
7732         * loop-unswitch.c (unswitch_loop): Ditto.
7733         * cgraphclones.c (cgraph_clone_edge): Ditto.
7734         (cgraph_clone_node): Ditto.
7735         * tree-inline.c (copy_bb): Ditto.
7736         (copy_edges_for_bb): Ditto.
7737         (initialize_cfun): Ditto.
7738         (copy_cfg_body): Ditto.
7739         (expand_call_inline): Ditto.
7740
7741 2013-04-08  Kai Tietz  <ktietz@redhat.com>
7742
7743         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
7744         TARGET_CYGWIN64 by TARGET_64BIT.
7745
7746 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
7747
7748         * config/epiphany/epiphany.md (GPR_1): New constant.
7749         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
7750         * config/epiphany/epiphany.c (gen_compare_reg):
7751         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
7752         is already in place.
7753         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
7754         Don't require being called during rtl expansion; If y operlaps r0,
7755         return 0.
7756         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
7757         (epiphany_expand_epilogue): Likewise.
7758
7759         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
7760         Don't use CC_FPmode for ORDERED / UNORDERED.
7761         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
7762
7763         * config/epiphany/constraints.md (CnL): New constraint.
7764         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
7765         * config/epiphany/predicates.md (add_operand): Allow 1024.
7766
7767         * config/epiphany/epiphany.md (logical_op): New code iterator.
7768         (op_mnc): New code attribute.
7769         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
7770         (mov_f+1, mov_f+2): New peephole2 patterns.
7771
7772         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
7773         (cstoresi4): Also allow re-use of zero result when doing a NE
7774         comparison to a non-zero operand.
7775         Use (clobber (scratch)) for first insn if the gpr output is not needed.
7776
7777         * config/epiphany/epiphany.md (<insn_opname>v2si3):
7778         Use gen_addsi3_i / gen_subsi3_i.
7779
7780 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
7781
7782         PR c++/34949
7783         PR c++/50243
7784         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
7785         contain anything but clobbers, at most one __builtin_stack_restore,
7786         optionally debug stmts and final resx, and if it has at least one
7787         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
7788         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
7789         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
7790         which isn't defaut definition, remove them.
7791         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
7792         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
7793         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
7794         with MEM_REF LHS with SSA_NAME address.
7795
7796 2013-04-08  Jeff Law  <law@redhat.com>
7797
7798         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
7799
7800 2013-04-08  Richard Biener  <rguenther@suse.de>
7801
7802         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
7803         extra newline.
7804         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
7805         determined vector type.
7806         (vect_analyze_data_refs): Likewise.
7807         (vect_get_new_vect_var): Adjust.
7808         (vect_create_destination_var): Preserve SSA name versions.
7809         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
7810         not dump anything here.
7811
7812 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
7813
7814         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
7815         Add member lr_slot_known.
7816         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
7817         if necessary.
7818         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
7819         Remove code that sets lr_slot_offset according to what a previous
7820         version of epiphany_emit_save_restore used to do.
7821         (epiphany_emit_save_restore): When doing an lr save or restore,
7822         set/verify lr_slot_known and lr_slot_offset.
7823
7824 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
7825
7826         PR target/54338
7827         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
7828         in ALL_REGS.
7829
7830 2013-04-08  Richard Biener  <rguenther@suse.de>
7831
7832         * alias.c (find_base_term): Fix thinko in previous change.
7833
7834 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
7835
7836         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
7837         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
7838         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
7839         if possible to compute val.
7840         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
7841         For QImode integers don't require anything about precision.  Use
7842         const_with_all_bytes_same to find out if the constant doesn't have
7843         repeated bytes in it.
7844
7845 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7846
7847         * config/s390/s390.c (s390_expand_insv): Only accept insertions
7848         within mode size.
7849
7850 2013-04-08  Marek Polacek  <polacek@redhat.com>
7851
7852         PR rtl-optimization/48182
7853         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
7854         value to 1.
7855
7856 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7857
7858         PR target/55487
7859         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
7860         nuses, make sure we have a label.
7861
7862 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7863
7864         PR target/56843
7865         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
7866         (rs6000_emit_swdiv_low_precision): Remove.
7867         (rs6000_emit_swdiv): Rewrite to handle between one and four
7868         iterations of Newton-Raphson generally; modify required number of
7869         iterations for some cases.
7870         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
7871
7872 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
7873
7874         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
7875         set-but-unused variable.
7876
7877         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
7878         basic blocks of released function bodies garbage-collectable.
7879
7880         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
7881         (struct rtl_opt_pass): Add TODO_df_finish.
7882
7883         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
7884
7885 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7886
7887         * config/arm/constraints.md (q): New constraint.
7888         * config/arm/ldrdstrd.md: New file.
7889         * config/arm/arm.md (ldrdstrd.md) New include.
7890         (arm_movdi): Use "q" instead of "r" constraint
7891         for double-word memory access.
7892         (movdf_soft_insn): Likewise.
7893         * config/arm/vfp.md (movdi_vfp): Likewise.
7894         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
7895         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
7896         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
7897         (mem_ok_for_ldrd_strd): Likewise.
7898         (output_move_double): Update assertion.
7899
7900 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7901
7902         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
7903
7904 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7905
7906         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
7907         define_insn_and_split.
7908         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
7909
7910 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7911
7912         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
7913         define_insn_and_split.
7914         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
7915         (shiftsi3_compare): New pattern.
7916         (rrx): New pattern.
7917         * config/arm/unspecs.md (UNSPEC_RRX): New.
7918
7919 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7920
7921         * config/arm/arm.md (negdi_extendsidi): New pattern.
7922         (negdi_zero_extendsidi): Likewise.
7923
7924 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7925
7926         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
7927         define_insn_and_split.
7928         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
7929         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
7930
7931 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7932
7933         * config/arm/arm.md (arm_subdi3): Convert define_insn into
7934         define_insn_and_split.
7935         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
7936         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
7937
7938 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7939
7940         * config/arm/arm.md (subsi3_carryin): New pattern.
7941         (subsi3_carryin_const): Likewise.
7942         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
7943         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
7944
7945 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7946
7947         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
7948
7949 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
7950
7951         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
7952         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
7953
7954 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7955
7956         * config/arm/arm.c (arm_expand_builtin): Change fcode
7957         type to unsigned int.
7958
7959 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7960
7961         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
7962
7963 2013-04-04  Ian Lance Taylor  <iant@google.com>
7964
7965         * doc/standards.texi (Standards): The Go frontend supports the Go 1
7966         language standard.
7967
7968 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
7969
7970         PR middle-end/56729
7971         * df-scan.c (df_insn_delete): Disable failing assert.
7972
7973 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7974
7975         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
7976         New function prototype.
7977         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
7978         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
7979         (arm_builtin_vectorized_function): New function.
7980
7981 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7982
7983         * config/arm/arm_neon_builtins.def: New file.
7984         * config/arm/arm.c (neon_builtin_data): Move contents to
7985         arm_neon_builtins.def.
7986         (enum arm_builtins): Include neon builtin definitions.
7987         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
7988         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
7989
7990 2013-04-04  Marek Polacek  <polacek@redhat.com>
7991
7992         PR tree-optimization/48186
7993         * predict.c (maybe_hot_frequency_p): Return false if
7994         HOT_BB_FREQUENCY_FRACTION is 0.
7995         (cgraph_maybe_hot_edge_p): Likewise.
7996
7997 2013-04-04  Richard Biener  <rguenther@suse.de>
7998
7999         PR tree-optimization/56826
8000         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
8001         more accurately.
8002
8003 2013-04-04  Richard Biener  <rguenther@suse.de>
8004
8005         PR tree-optimization/56213
8006         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
8007         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
8008
8009 2013-04-04  Richard Biener  <rguenther@suse.de>
8010
8011         PR tree-optimization/56837
8012         * tree-loop-distribution.c (classify_partition): For non-zero
8013         values require that the value has the same precision as its
8014         mode to be useful as memset value.
8015
8016 2013-04-03  Nick Clifton  <nickc@redhat.com>
8017
8018         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
8019         (fmssf4): Use fmsf.s on E3V5 architectures.
8020         (fnmasf4): Use fnmaf.s on E3V5 architectures.
8021         (fnmssf4): Use fnmsf.s on E3V5 architectures.
8022
8023 2013-04-03  Jeff Law  <law@redhat.com>
8024
8025         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
8026         (lra-eliminations.o): Likewise.
8027
8028 2013-04-03  Teresa Johnson  <tejohnson@google.com>
8029
8030         * gcov-io.c (compute_working_sets): Moved most of body of old
8031         compute_working_sets here from profile.c.
8032         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
8033         (gcov_working_set_t): Moved typedef here from basic-block.h
8034         (compute_working_set): Declare.
8035         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
8036         (get_working_sets): Renamed from compute_working_set,
8037         replace most of body with call to new compute_working_sets.
8038         (get_exec_counts): Replace call to compute_working_sets
8039         to get_working_sets.
8040         * profile.h (get_working_sets): Renamed from compute_working_set.
8041         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
8042         to get_working_sets.
8043         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
8044         * gcov-dump.c (dump_working_sets): New function.
8045
8046 2013-04-03  Kenneth Zadeck <zadeck@naturalbridge.com>
8047
8048         * hwint.c (sext_hwi, zext_hwi): New functions.
8049         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
8050         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
8051         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
8052         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
8053         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
8054         (sext_hwi, zext_hwi): New functions.
8055
8056 2013-04-03  Jeff Law  <law@redhat.com>
8057
8058         PR tree-optimization/56799
8059         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
8060         back test for widening conversion erroneously dropped in prior change.
8061
8062 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8063
8064         PR target/56809
8065         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
8066         instead of next_real_insn.
8067
8068 2013-04-03  Marek Polacek  <polacek@redhat.com>
8069
8070         PR sanitizer/55702
8071         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
8072
8073 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8074
8075         PR target/56809
8076         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
8077         next_real_insn.
8078         (thumb1_output_casesi): Likewise.
8079         (thumb2_output_casesi): Likewise.
8080
8081 2013-04-03  Richard Biener  <rguenther@suse.de>
8082
8083         PR tree-optimization/56817
8084         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
8085         Split out ...
8086         (tree_unroll_loops_completely_1): ... new function to manually
8087         walk the loop tree, properly defering outer loops of unrolled
8088         loops to later iterations.
8089
8090 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
8091
8092         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
8093         (vectorizable_load): Likewise.
8094         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
8095         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
8096
8097 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
8098
8099         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
8100         BIT_FIELD_REF.
8101
8102 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8103
8104         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
8105
8106 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
8107
8108         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
8109
8110 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
8111
8112         PR tree-optimization/56790
8113         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
8114         folding.
8115
8116 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
8117
8118         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
8119         Handle VEC_MERGE.
8120         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
8121         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
8122         equal arguments.
8123
8124 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
8125
8126         PR c/19449
8127         * tree.h (force_folding_builtin_constant_p): New decl.
8128         * builtins.c (force_folding_builtin_constant_p): New variable.
8129         (fold_builtin_constant_p): Fold immediately also if
8130         force_folding_builtin_constant_p.
8131
8132 2013-04-03  Richard Biener  <rguenther@suse.de>
8133
8134         PR tree-optimization/56812
8135         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
8136         DRs of the same interleaving chain are independent.
8137
8138 2013-04-02  Jason Merrill  <jason@redhat.com>
8139
8140         * gdbinit.in (pbb): Use debug fn.
8141
8142 2013-04-02  Lawrence Crowl  <crowl@google.com>
8143
8144         * sese.h (struct ivtype_map_elt_s): Remove unused.
8145         (extern debug_ivtype_map): Remove unused.
8146         (extern eq_ivtype_map_elts): Remove unused.
8147         * sese.c (debug_ivtype_map): Removed unused.
8148         (debug_ivtype_map_1): Removed unused.
8149         (debug_ivtype_elt): Remove unused.
8150         (eq_ivtype_map_elts): Remove unused.
8151
8152
8153 2013-04-02  Kai Tietz  <ktietz@redhat.com>
8154
8155         PR target/52790
8156         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
8157         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
8158         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
8159         function.
8160         (legitimize_pe_coff_symbol): Likewise.
8161         (is_imported_p): New helper-function.
8162         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
8163         for Windows x64 targets.
8164         (ix86_expand_prologue): Optimize for pe-coff targets.
8165         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
8166         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
8167         medium/large code-model.
8168         (legitimize_pic_address): Likewise.
8169         (legitimize_tls_address): Likewise.
8170         (ix86_expand_call): Likewise.
8171         (x86_output_mi_thunk): Likewise.
8172         (get_dllimport_decl): Add new beimport argument.
8173         (construct_plt_address): Don't assert for x64 pe-coff targets.
8174         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
8175         targets.
8176         (SYMBOL_FLAG_STUBVAR): New macro.
8177         (SYMBOL_REF_STUBVAR_P): Likewise.
8178         * config/i386/winnt.c (stub_list): New structure.
8179         (stub_head): New local variable.
8180         (i386_pe_record_stub): New function.
8181         (i386_pe_file_end): Emit refptr-stubs.
8182
8183 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
8184
8185         PR rtl-optimization/56745
8186         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
8187         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
8188
8189         PR c++/34949
8190         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
8191         and both of them are MEM_REFs, just compare first argument for
8192         equality and attempt to deal even with differing offsets.
8193
8194         PR c++/34949
8195         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
8196         of gimple_clobber_p to be MEM_REF.
8197         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
8198         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
8199         after gimplification.
8200         * asan.c (get_mem_ref_of_assignment): Don't instrument
8201         gimple_clobber_p stmts.
8202         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
8203         gimple_clobber_p stmt if they have MEM_REF lhs and
8204         are dead because of another gimple_clobber_p stmt.
8205         * tree-ssa-live.c (clear_unused_block_pointer): Treat
8206         gimple_clobber_p stmts like debug stmts.
8207         (remove_unused_locals): Remove clobbers with MEM_REF lhs
8208         that refer to unused VAR_DECLs or uninitialized values.
8209         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
8210         gimple_clobber_p stmts if they refer to removed parameters.
8211         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
8212         formatting.
8213
8214 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
8215
8216         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
8217         using SWI48 mode attribute.
8218
8219 2013-04-02  Wei Mi  <wmi@google.com>
8220
8221         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
8222         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
8223         *<rotate_insn><mode>3_mask in i386.md.
8224
8225 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8226
8227         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
8228
8229 2013-04-02  Richard Biener  <rguenther@suse.de>
8230
8231         PR tree-optimization/56778
8232         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
8233         Runtime alias tests are not supported for gather loads.
8234         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
8235         stmts referenced from SSA operands before updating SSA form.
8236
8237 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
8238             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8239
8240         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
8241         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
8242         * config/arm/cortex-a53.md: New file.
8243         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
8244         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
8245         * config/arm/arm.c (arm_issue_rate): Likewise.
8246         * config/arm/arm-tune.md: Regenerate
8247         * config/arm/arm-tables.opt: Regenerate.
8248         * config/arm/arm-cores.def: Add cortex-a53.
8249
8250 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
8251
8252         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
8253         non-static link.
8254
8255 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
8256
8257         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
8258         scalar load/store operations using B/H registers.
8259         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
8260
8261 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
8262
8263         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
8264         scalar move.
8265         * config/aarch64/aarch64.c
8266         (aarch64_simd_scalar_immediate_valid_for_move): New.
8267         * config/aarch64/aarch64-protos.h
8268         (aarch64_simd_scalar_immediate_valid_for_move): New.
8269         * config/aarch64/constraints.md (Dh, Dq): New.
8270         * config/aarch64/iterators.md (hq): New.
8271
8272 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
8273
8274         * reorg.c (get_branch_condition): Deal with conditional returns.
8275         (fill_simple_delay_slots): Remove dead code dealing with jumps.
8276
8277 2013-04-01  Wei Mi  <wmi@google.com>
8278
8279         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
8280         Truncate operand 2 using %b asm operand modifier.
8281         (*<shift_insn><mode>3_mask): Ditto.
8282         (*<rotate_insn><mode>3_mask): Ditto.
8283
8284 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
8285
8286         PR middle-end/56798
8287         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
8288
8289 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
8290
8291         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
8292         of next_real_insn.
8293         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
8294
8295 2013-03-30  Lawrence Crowl  <crowl@google.com>
8296
8297         * dse.c (clear_alias_sets): Remove never set.
8298         (disqualified_clear_alias_sets): Remove never set.
8299         (clear_alias_mode_pool): Remove never set.
8300         (dse_step0): Remove condition that is never true.
8301         (canon_address): Remove condition that is never true.
8302         (dse_step7): Remove condition that is never true.
8303         (rest_of_handle_dse): Remove condition that is never true.
8304         (rest_of_handle_dse::did_global): Remove never read from above.
8305         (dse_step2_spill): Remove never called from above.
8306         (dse_step5_spill): Remove never called from above.
8307
8308 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
8309
8310         * doc/md.texi (Standard Names) <casesi>: Update documentation for
8311         JUMP_TABLE_DATA changes.
8312         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
8313         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
8314         (Insns) <jump_table_data>: New entry.
8315         * doc/tm.texi: Regenerate.
8316
8317         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
8318
8319         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
8320         for table jump at the end of a basic block using tablejump_p.
8321         * targhooks.c (default_invalid_within_doloop): Likewise.
8322         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
8323         target hook implementation that is identical to the default hook.
8324         (rs6000_invalid_within_doloop): Remove.
8325
8326         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
8327         unused variable from tablejump_p call.
8328
8329         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
8330         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
8331         (INSN_DELETED_P): Likewise.
8332         (emit_jump_table_data): New prototype.
8333         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
8334         after 4th as unused.
8335         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
8336         * sched-vis.c (print_insn): Likewise.
8337         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
8338         insn for compatibility with back ends that use next_active_insn to
8339         identify jump table data.
8340         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
8341         (remove_insn): Likewise.
8342         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
8343         to be emitted.
8344         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
8345         (emit_jump_table_data): New function.
8346
8347         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
8348         basic block, a JUMP_TABLE_DATA never is.
8349         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
8350         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
8351         off from code handling real insns.
8352         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
8353         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
8354         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
8355         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
8356         is not a NONDEBUG_INSN_P.
8357         * ira-costs.c (scan_one_insn): Likewise.
8358         * jump.c (mark_all_labels): Likewise.
8359         (mark_jump_label_1): Likewise.
8360         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
8361         * lra.c (get_insn_freq): Expect all insns reaching here to be in
8362         a basic block.
8363         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
8364         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
8365         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
8366         JUMP_TABLE_DATA_P insns.
8367         (calculate_elim_costs_all_insns): Likewise.
8368         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
8369         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
8370         (delete_output_reload): Code style fixups.
8371         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
8372         insn flags on this non-insn.
8373         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
8374         as scheduling barriers, for pre-change compatibility.
8375         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
8376         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
8377
8378         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
8379         redundant JUMP_TABLE_DATA_P test.
8380         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
8381         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
8382         (frv_for_each_packet): Likewise.
8383         * config/i386/i386.c (min_insn_size): Likewise.
8384         (ix86_avoid_jump_mispredicts): Likewise.
8385         * config/m32r/m32r.c (m32r_is_insn): Likewise.
8386         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
8387         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
8388         (mips16_insn_length): Robustify.
8389         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
8390         (mips16_split_long_branches): Likewise.
8391         * config/pa/pa.c (pa_combine_instructions): Likewise.
8392         * config/rs6000/rs6000.c (get_next_active_insn): Treat
8393         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
8394         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
8395         as contributing to pool range lengths.
8396         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
8397         Remove redundant JUMP_TABLE_DATA_P test.
8398         (sh_loop_align): Likewise.
8399         (split_branches): Likewise.
8400         (sh_insn_length_adjustment): Likewise.
8401         * config/spu/spu.c (get_branch_target): Likewise.
8402
8403 2013-03-29  Jan Hubicka  <jh@suse.cz>
8404
8405         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
8406         gcov streaming; stream hot bb threshold to ltrans.
8407         * predict.c (get_hot_bb_threshold): Break out from ....
8408         (maybe_hot_count_p): ... here.
8409         (set_hot_bb_threshold): New function.
8410         * lto-section-in.c (lto_section_name): Add profile.
8411         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
8412         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
8413         and data-streamer.h
8414         (histogram_entry): New structure.
8415         (histogram, histogram_pool): New global vars.
8416         (histogram_hash): New structure.
8417         (histogram_hash::hash): New method.
8418         (histogram_hash::equal): Likewise.
8419         (account_time_size): New function.
8420         (cmp_counts): New function.
8421         (dump_histogram): New function.
8422         (ipa_profile_generate_summary): New function.
8423         (ipa_profile_write_summary): New function.
8424         (ipa_profile_read_summary): New function.
8425         (ipa_profile): Decide on threshold.
8426         (pass_ipa_profile): Add ipa_profile_write_summary and
8427         ipa_profile_read_summary.
8428         * Makefile.in (ipa.o): Update dependencies.
8429         * lto-streamer.h (LTO_section_ipa_profile): New section.
8430
8431 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8432
8433         * tree.h (VAR_P): New.
8434
8435 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
8436
8437         PR lto/56777
8438         * doc/invoke.texi ([-fwhole-program]): Fix typo.
8439
8440 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
8441
8442         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
8443         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
8444         (control_flow_insn_p): Likewise.
8445         * cfgrtl.c (duplicate_insn_chain): Likewise.
8446         * final.c (get_attr_length_1): Likewise.
8447         (shorten_branches): Likewise.
8448         (final_scan_insn): Likewise.
8449         * function.c (instantiate_virtual_regs): Likewise.
8450         * gcse.c (insert_insn_end_basic_block): Likewise.
8451         * ira-costs.c (scan_one_insn): Likewise.
8452         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
8453         * lra.c (check_rtl): Likewise.
8454         * reload1.c (elimination_costs_in_insn): Likewise.
8455         * reorg.c (follow_jumps): Likewise.
8456
8457         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
8458         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
8459         (thumb_far_jump_used_p): Likewise.
8460         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
8461         (workaround_speculation): Likewise.
8462         (add_sched_insns_for_speculation): Likewise.
8463         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
8464         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
8465         (frv_for_each_packet): Likewise.
8466         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
8467         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
8468         (final_emit_insn_group_barriers): Likewise.
8469         * config/m32r/m32r.c (m32r_is_insn): Likewise.
8470         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
8471         (mips16_insn_length): Likewise.
8472         * config/pa/pa.c (pa_reorg): Likewise.
8473         (pa_combine_instructions): Likewise.
8474         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
8475         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
8476         (sh_reorg): Likewise.
8477         (split_branches): Likewise.
8478         * config/spu/spu.c (get_branch_target): Likewise.
8479
8480         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
8481         JUMP_TABLE_DATA_P.
8482
8483 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
8484
8485         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
8486         Fix declaration name.
8487
8488 2013-03-28  Lawrence Crowl  <crowl@google.com>
8489
8490         * graphds.h (struct graph.indicies): Remove unused.
8491         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
8492         (SCOP_ORIGINAL_PDDRS): Remove unused.
8493         * sese.h (extern insert_loop_close_phis): Removed unused.
8494         (extern insert_guard_phis): Removed unused.
8495         (extern ivtype_map_elt_info): Removed unused.
8496         (new_ivtype_map_elt): Removed unused.
8497         * sese.c (ivtype_map_elt_info): Removed unused.
8498
8499 2013-03-28  Lawrence Crowl  <crowl@google.com>
8500
8501         * Makefile.in: Add several missing include dependences.
8502         (DUMPFILE_H): New.
8503         (test-dump.o): New.  This object is not added to any executable,
8504         but is present for ad-hoc testing.
8505         * bitmap.c
8506         (debug (const bitmap_head_def &)): New.
8507         (debug (const bitmap_head_def *)): New.
8508         * bitmap.h
8509         (extern debug (const bitmap_head_def &)): New.
8510         (extern debug (const bitmap_head_def *)): New.
8511         * cfg.c
8512         (debug (edge_def &)): New.
8513         (debug (edge_def *)): New.
8514         * cfghooks.c
8515         (debug (basic_block_def &)): New.
8516         (debug (basic_block_def *)): New.
8517         * dumpfile.h
8518         (dump_node (const_tree, int, FILE *)): Correct source file.
8519         * dwarf2out.c
8520         (debug (die_struct &)): New.
8521         (debug (die_struct *)): New.
8522         * dwarf2out.h
8523         (extern debug (die_struct &)): New.
8524         (extern debug (die_struct *)): New.
8525         * gimple-pretty-print.c
8526         (debug (gimple_statement_d &)): New.
8527         (debug (gimple_statement_d *)): New.
8528         * gimple-pretty-print.h
8529         (extern debug (gimple_statement_d &)): New.
8530         (extern debug (gimple_statement_d *)): New.
8531         * ira-build.c
8532         (debug (ira_allocno_copy &)): New.
8533         (debug (ira_allocno_copy *)): New.
8534         (debug (ira_allocno &)): New.
8535         (debug (ira_allocno *)): New.
8536         * ira-int.h
8537         (extern debug (ira_allocno_copy &)): New.
8538         (extern debug (ira_allocno_copy *)): New.
8539         (extern debug (ira_allocno &)): New.
8540         (extern debug (ira_allocno *)): New.
8541         * ira-lives.c
8542         (debug (live_range &)): New.
8543         (debug (live_range *)): New.
8544         * lra-int.h
8545         (debug (lra_live_range &)): New.
8546         (debug (lra_live_range *)): New.
8547         * lra-lives.c
8548         (debug (lra_live_range &)): New.
8549         (debug (lra_live_range *)): New.
8550         * omega.c
8551         (debug (omega_pb_d &)): New.
8552         (debug (omega_pb_d *)): New.
8553         * omega.h
8554         (extern debug (omega_pb_d &)): New.
8555         (extern debug (omega_pb_d *)): New.
8556         * print-rtl.c
8557         (debug (const rtx_def &)): New.
8558         (debug (const rtx_def *)): New.
8559         * print-tree.c
8560         (debug_tree (tree): Move within file.
8561         (debug_raw (const tree_node &)): New.
8562         (debug_raw (const tree_node *)): New.
8563         (dump_tree_via_hooks (const tree_node *, int)): New.
8564         (debug (const tree_node &)): New.
8565         (debug (const tree_node *)): New.
8566         (debug_verbose (const tree_node &)): New.
8567         (debug_verbose (const tree_node *)): New.
8568         (debug_head (const tree_node &)): New.
8569         (debug_head (const tree_node *)): New.
8570         (debug_body (const tree_node &)): New.
8571         (debug_body (const tree_node *)): New.
8572         (debug_vec_tree (tree): Move and reimplement in terms of dump.
8573         (debug (vec<tree, va_gc> &)): New.
8574         (debug (vec<tree, va_gc> *)): New.
8575         * rtl.h
8576         (extern debug (const rtx_def &)): New.
8577         (extern debug (const rtx_def *)): New.
8578         * sbitmap.c
8579         (debug_raw (simple_bitmap_def &)): New.
8580         (debug_raw (simple_bitmap_def *)): New.
8581         (debug (simple_bitmap_def &)): New.
8582         (debug (simple_bitmap_def *)): New.
8583         * sbitmap.h
8584         (extern debug (simple_bitmap_def &)): New.
8585         (extern debug (simple_bitmap_def *)): New.
8586         (extern debug_raw (simple_bitmap_def &)): New.
8587         (extern debug_raw (simple_bitmap_def *)): New.
8588         * sel-sched-dump.c
8589         (debug (vinsn_def &)): New.
8590         (debug (vinsn_def *)): New.
8591         (debug_verbose (vinsn_def &)): New.
8592         (debug_verbose (vinsn_def *)): New.
8593         (debug (expr_def &)): New.
8594         (debug (expr_def *)): New.
8595         (debug_verbose (expr_def &)): New.
8596         (debug_verbose (expr_def *)): New.
8597         (debug (vec<rtx> &)): New.
8598         (debug (vec<rtx> *)): New.
8599         * sel-sched-dump.h
8600         (extern debug (vinsn_def &)): New.
8601         (extern debug (vinsn_def *)): New.
8602         (extern debug_verbose (vinsn_def &)): New.
8603         (extern debug_verbose (vinsn_def *)): New.
8604         (extern debug (expr_def &)): New.
8605         (extern debug (expr_def *)): New.
8606         (extern debug_verbose (expr_def &)): New.
8607         (extern debug_verbose (expr_def *)): New.
8608         (extern debug (vec<rtx> &)): New.
8609         (extern debug (vec<rtx> *)): New.
8610         * sel-sched-ir.h
8611         (_list_iter_cond_expr): Make inline instead of static.
8612         * sreal.c
8613         (debug (sreal &)): New.
8614         (debug (sreal *)): New.
8615         * sreal.h
8616         (extern debug (sreal &)): New.
8617         (extern debug (sreal *)): New.
8618         * tree.h
8619         (extern debug_raw (const tree_node &)): New.
8620         (extern debug_raw (const tree_node *)): New.
8621         (extern debug (const tree_node &)): New.
8622         (extern debug (const tree_node *)): New.
8623         (extern debug_verbose (const tree_node &)): New.
8624         (extern debug_verbose (const tree_node *)): New.
8625         (extern debug_head (const tree_node &)): New.
8626         (extern debug_head (const tree_node *)): New.
8627         (extern debug_body (const tree_node &)): New.
8628         (extern debug_body (const tree_node *)): New.
8629         (extern debug (vec<tree, va_gc> &)): New.
8630         (extern debug (vec<tree, va_gc> *)): New.
8631         * tree-cfg.c
8632         (debug (struct loop &)): New.
8633         (debug (struct loop *)): New.
8634         (debug_verbose (struct loop &)): New.
8635         (debug_verbose (struct loop *)): New.
8636         * tree-dump.c: Add header dependence.
8637         * tree-flow.h
8638         (extern debug (struct loop &)): New.
8639         (extern debug (struct loop *)): New.
8640         (extern debug_verbose (struct loop &)): New.
8641         (extern debug_verbose (struct loop *)): New.
8642         * tree-data-ref.c
8643         (debug (data_reference &)): New.
8644         (debug (data_reference *)): New.
8645         (debug (vec<data_reference_p> &)): New.
8646         (debug (vec<data_reference_p> *)): New.
8647         (debug (vec<ddr_p> &)): New.
8648         (debug (vec<ddr_p> *)): New.
8649         * tree-data-ref.h
8650         (extern debug (data_reference &)): New.
8651         (extern debug (data_reference *)): New.
8652         (extern debug (vec<data_reference_p> &)): New.
8653         (extern debug (vec<data_reference_p> *)): New.
8654         (extern debug (vec<ddr_p> &)): New.
8655         (extern debug (vec<ddr_p> *)): New.
8656         * tree-ssa-alias.c
8657         (debug (pt_solution &)): New.
8658         (debug (pt_solution *)): New.
8659         * tree-ssa-alias.h
8660         (extern debug (pt_solution &)): New.
8661         (extern debug (pt_solution *)): New.
8662         * tree-ssa-alias.c
8663         (debug (_var_map &)): New.
8664         (debug (_var_map *)): New.
8665         (debug (tree_live_info_d &)): New.
8666         (debug (tree_live_info_d *)): New.
8667         * tree-ssa-alias.h
8668         (extern debug (_var_map &)): New.
8669         (extern debug (_var_map *)): New.
8670         (extern debug (tree_live_info_d &)): New.
8671         (extern debug (tree_live_info_d *)): New.
8672
8673 2013-03-28  Jan Hubicka  <jh@suse.cz>
8674
8675         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
8676
8677 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
8678
8679         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
8680         record only when desired or required.
8681
8682 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
8683
8684         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
8685         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
8686
8687 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8688
8689         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
8690         (*andsi3_compare0_uxtw): New pattern.
8691         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
8692         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
8693
8694 2013-03-28  Jan Hubicka  <jh@suse.cz>
8695
8696         * data-streamer-in.c (streamer_read_gcov_count): New function.
8697         * gimple-streamer-out.c: Include value-prof.h.
8698         (output_gimple_stmt): Output histogram.
8699         (output_bb): Use streamer_write_gcov_count.
8700         * value-prof.c: Include data-streamer.h
8701         (dump_histogram_value): Add HIST_TYPE_MAX.
8702         (stream_out_histogram_value): New function.
8703         (stream_in_histogram_value): New function.
8704         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
8705         (stream_out_histogram_value, stream_in_histogram_value): Declare.
8706         * data-streamer-out.c (streamer_write_gcov_count): New function.
8707         (streamer_write_gcov_count_stream): New function.
8708         * lto-cgraph.c (lto_output_edge): Update counter streaming.
8709         (lto_output_node): Likewise.
8710         (input_node, input_edge): Likewise.
8711         * lto-streamer-out.c (output_cfg): Update streaming.
8712         * lto-streamer-in.c (input_cfg): Likewise.
8713         * data-streamer.h (streamer_write_gcov_count,
8714         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
8715         * gimple-streamer-in.c: Include value-prof.h
8716         (input_gimple_stmt): Input histograms.
8717         (input_bb): Update profile streaming.
8718
8719 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
8720
8721         * genmodes.c (emit_max_int): New function.
8722         (emit_insn_modes_h): Added call to emit_max_function.
8723         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
8724         Added doc.
8725         * machmode.def: Fixed comment.
8726
8727 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
8728
8729         * combine.c (try_combine): Removed useless assert.
8730         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
8731
8732 2013-03-28  Marek Polacek  <polacek@redhat.com>
8733             Richard Biener  <rguenther@suse.de>
8734
8735         PR tree-optimization/56695
8736         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
8737         build signed result of a vector comparison.
8738         * tree-cfg.c (verify_gimple_comparison): Check that a result
8739         of a vector comparison has signed type.
8740
8741 2013-03-28  Richard Biener  <rguenther@suse.de>
8742
8743         PR tree-optimization/37021
8744         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
8745         do not restrict gaps between groups.
8746         * tree-vect-stmts.c (vectorizable_load): Properly account for
8747         a gap between groups.
8748
8749 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
8750
8751         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
8752         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
8753         is not enabled.
8754
8755 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
8756
8757         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
8758         * doc/extend.texi (Named Address Spaces): Ditto.
8759         (Variable Attributes): Ditto.
8760
8761 2013-03-27  Kai Tietz  <ktietz@redhat.com>
8762
8763         * config.build: Add support for cygwin x64 target.
8764         * config.gcc: Likewise.
8765         * config.host: Likewise.
8766         * configure.ac: Likewise
8767         * configure: Regenerated.
8768
8769 2013-03-27 Kai Tietz  <ktietz@redhat.com>
8770
8771         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
8772         * config/i386/t-cygwin-w64: New file.
8773         * config/i386/cygwin-w64.h: New file.
8774         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
8775         and add support for x64-cygwin target.
8776         (CPP_SPEC): Likewise.
8777         (CXX_WRAP_SPEC_LIST): Undefine before define.
8778         (LIBGCJ_SONAME): Use 15 as version.
8779
8780 2013-03-27  Richard Biener  <rguenther@suse.de>
8781
8782         PR tree-optimization/56716
8783         * tree-ssa-structalias.c (perform_var_substitution): Adjust
8784         dumping for ref nodes.
8785
8786 2013-03-27  Martin Jambor  <mjambor@suse.cz>
8787
8788         PR tree-optimization/55334
8789         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
8790         restricted pointers to arrays.
8791
8792 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8793
8794         * Makefile.in (.SUFFIXES): Add .cc.
8795         (.c.o): Apply same recipe for implicit rule .cc.o.
8796
8797 2013-03-27  Richard Biener  <rguenther@suse.de>
8798
8799         PR tree-optimization/37021
8800         * tree-vect-data-refs.c (vect_check_strided_load): Allow
8801         REALPART/IMAGPART_EXPRs around the supported refs.
8802         * tree-ssa-structalias.c (find_func_aliases): Assume that
8803         floating-point values are not used to transfer pointers.
8804
8805 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8806
8807         * target.def (TARGET_HAS_IFUNC_P): New target hook.
8808         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
8809         * doc/tm.texi: Regenerate.
8810         * targhooks.h (default_has_ifunc_p): New.
8811         * targhooks.c (default_has_ifunc_p): Ditto.
8812         * config/linux-protos.h: New file.
8813         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
8814         this hook for linux which disables support of indirect functions in
8815         android.
8816         * config/linux-android.c: New file.
8817         * config/t-linux-android.c: Ditto.
8818         * config.gcc: Added new object file linux-android.o.
8819         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
8820         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
8821         * varasm.c (do_assemble_alias): Likewise.
8822         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
8823         doesn't support indirect functions.
8824         * configure: Regenerate.
8825
8826 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
8827
8828         PR target/56102
8829         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
8830         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
8831         mult-word mode.
8832
8833 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8834
8835         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
8836
8837 2013-03-27  Terry Guo  <terry.guo@arm.com>
8838
8839         * config/arm/arm-cores.def: Added core cortex-r7.
8840         * config/arm/arm-tune.md: Regenerated.
8841         * config/arm/arm-tables.opt: Regenerated.
8842         * doc/invoke.texi: Added entry for core cortex-r7.
8843
8844 2013-03-27  Walter Lee  <walt@tilera.com>
8845
8846         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
8847         double-decrement of next_scratch_regno.
8848
8849 2013-03-27  Walter Lee  <walt@tilera.com>
8850
8851         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
8852         input operands.
8853         (insn_v1mulus): Ditto.
8854         (insn_v2muls): Ditto.
8855
8856 2013-03-27  Walter Lee  <walt@tilera.com>
8857
8858         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
8859         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
8860
8861 2013-03-27  Walter Lee  <walt@tilera.com>
8862
8863         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
8864         (*sibcall_value): Ditto.
8865
8866 2013-03-27  Walter Lee  <walt@tilera.com>
8867
8868         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
8869         (insn_mnz_v8qi): ... this ...
8870         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
8871         vector equivalent.
8872         (insn_v<n>mnz): Replaced by ...
8873         (insn_v1mnz): ... this ...
8874         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
8875         equivalent.
8876         (insn_mz_<mode>): Replaced by ...
8877         (insn_mz_v8qi): ... this ...
8878         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
8879         vector equivalent.
8880         (insn_v<n>mz): Replaced by ...
8881         (insn_v1mz): ... this ...
8882         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
8883         equivalent.
8884
8885 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
8886
8887         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
8888
8889 2013-03-26  Roland McGrath  <mcgrathr@google.com>
8890
8891         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
8892         than fprintf with a non-constant, non-format string.
8893
8894 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
8895
8896         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
8897         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
8898         operand 0 predicate.
8899         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
8900         attribute.  Use general_x64nomem_operand as operand 1 predicate.
8901         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
8902         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
8903         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
8904         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
8905         (mov<mode>_insv_1): Remove expander.  Merge insn with
8906         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
8907         Use general_x64nomem_operand as operand 1 predicate.
8908         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
8909         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
8910         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
8911         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
8912         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
8913         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
8914         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
8915         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
8916         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
8917         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
8918         (general_x64nomem_operand): Ditto.
8919
8920 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
8921
8922         * config/rtems.opt: Add -pthread option.
8923
8924 2013-03-26  Richard Biener  <rguenther@suse.de>
8925
8926         * alias.c (find_base_term): Avoid redundant and not used recursion.
8927         (base_alias_check): Get the initial base term from the caller.
8928         (true_dependence_1): Compute and pass base terms to base_alias_check.
8929         (write_dependence_p): Likewise.
8930         (may_alias_p): Likewise.
8931
8932 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
8933
8934         * config/aarch64/aarch64.c (aarch64_classify_address): Support
8935         PC-relative load in SI modes and above only.
8936
8937 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
8938
8939         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
8940         * config/arm/iwmmxt.md (WCGR0): Update.
8941         (WCGR1, WCGR2, WCGR3): Likewise.
8942
8943 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
8944
8945         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
8946         Use x64 and nox64 isa attributes.
8947
8948 2013-03-26  Richard Biener  <rguenther@suse.de>
8949
8950         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
8951         alignment computations and rely on get_object_alignment_1
8952         for the !TYPE_P case.
8953         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
8954
8955 2013-03-26  Walter Lee  <walt@tilera.com>
8956
8957         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
8958         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
8959
8960 2013-03-25  Jeff Law  <law@redhat.com>
8961
8962         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
8963         check for INTEGRAL_TYPE_P that was missing due to checking in
8964         wrong version of prior patch.
8965
8966 2013-03-25  Walter Lee  <walt@tilera.com>
8967
8968         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
8969         TILEGX_INSN_SHUFFLEBYTES1.
8970         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
8971         shufflebytes1.
8972         (tilegx_builtins): Ditto.
8973         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
8974
8975 2013-03-25  Walter Lee  <walt@tilera.com>
8976
8977         * config/tilegx/tilegx.md (floatsisf2): New pattern.
8978         (floatunssisf2): New pattern.
8979         (floatsidf2): New pattern.
8980         (floatunssidf2): New pattern.
8981
8982 2013-03-25  Walter Lee  <walt@tilera.com>
8983
8984         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
8985         tests for constraint J, K, N, P.
8986
8987 2013-03-25  Walter Lee  <walt@tilera.com>
8988
8989         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
8990         Use indirect/pcrel encoding.
8991         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
8992         Ditto.
8993
8994 2013-03-25  Steve Ellcey  <sellcey@mips.com>
8995
8996         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
8997         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
8998         * config/mips/mips.c (mips_option_override): Set IMADD default.
8999         * config/mips/mips.h (PTF_AVOID_IMADD): New.
9000         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
9001         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
9002         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
9003         * doc/invoke.texi (-mimadd/-mno-imadd): New.
9004
9005 2013-03-25  Jeff Law  <law@redhat.com>
9006
9007         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
9008         slightly to avoid creating and folding useless trees.  Simplify
9009         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
9010
9011 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
9012
9013         * config/i386/i386.md (*zero_extendsidi2): Merge with
9014         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
9015         * config/i386/predicates.md (x86_64_zext_operand): Rename from
9016         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
9017         targets.  Clarify comment.
9018
9019 2013-03-25  Martin Jambor  <mjambor@suse.cz>
9020
9021         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
9022         pass-through jump functions differently.
9023         (ipa_read_jump_function): Likewise.  Also use setter functions to set
9024         up jump functions.
9025
9026 2013-03-25  Martin Jambor  <mjambor@suse.cz>
9027
9028         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
9029         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
9030         process it.
9031         (ipa_get_indirect_edge_target): New function.
9032         (devirtualization_time_bonus): New parameter known_aggs, pass it to
9033         ipa_get_indirect_edge_target.  Update all callers.
9034         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
9035         ipa_get_indirect_edge_target_1 instead of calling
9036         ipa_get_indirect_edge_target.
9037         (create_specialized_node): Pass aggvlas to
9038         ipcp_discover_new_direct_edges.
9039
9040 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9041
9042         * config/arm/arm.md (f_sels, f_seld): New types.
9043         (*cmov<mode>): New pattern.
9044         * config/arm/predicates.md (arm_vsel_comparison_operator): New
9045         predicate.
9046
9047 2013-03-25  Kai Tietz  <ktietz@redhat.com>
9048
9049         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
9050         POSIX-printf for mingw-hosted  builds.
9051
9052 2013-03-25  Richard Biener  <rguenther@suse.de>
9053
9054         PR middle-end/56694
9055         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
9056         must-not-throw stmt location.
9057
9058 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9059
9060         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
9061         Emit load-acquire versions when acq is true.
9062         (arm_emit_store_exclusive): Add rel parameter.
9063         Emit store-release versions when rel is true.
9064         (arm_split_compare_and_swap): Use acquire-release instructions
9065         instead.
9066         of barriers when appropriate.
9067         (arm_split_atomic_op): Likewise.
9068         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
9069         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
9070         (VUNSPEC_SLX): Likewise.
9071         (VUNSPEC_LDA): Likewise.
9072         (VUNSPEC_STL): Likewise.
9073         * config/arm/sync.md (atomic_load<mode>): New pattern.
9074         (atomic_store<mode>): Likewise.
9075         (arm_load_acquire_exclusive<mode>): Likewise.
9076         (arm_load_acquire_exclusivesi): Likewise.
9077         (arm_load_acquire_exclusivedi): Likewise.
9078         (arm_store_release_exclusive<mode>): Likewise.
9079
9080 2013-03-25  Catherine Moore  <clm@codesourcery.com>
9081
9082         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
9083         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
9084         * config/mip/predicates.md (lwsp_swsp_operand,
9085         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
9086         sb16_operand, db4_operand, db7_operand, ib3_operand,
9087         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
9088         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
9089         andi16_operand): New predicates.
9090         * config/mips/mips.md (compression): New attribute.
9091         (enabled): New attribute.
9092         (length): Consider compression in computing length.
9093         (shift_compression): New code attribute.
9094         (*add<mode>3): New operands. Record compression.
9095         (sub<mode>3): Likewise.
9096         (one_cmpl<mode>2): Likewise.
9097         (*and<mode>3): Likewise.
9098         (*ior<mode>3): Likewise.
9099         (unnamed pattern for xor): Likewise.
9100         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
9101         (*<optab><mode>3): Likewise.
9102         (*mov<mode>_internal: Likewise.
9103         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
9104         (mips_unsigned_immediate_p): New.
9105         (umips_lwsp_swsp_address_p): New.
9106         (m16_based_address_p): New.
9107         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
9108         (mips_unsigned_immediate_p): New prototype.
9109         (lwsp_swsp_address_p): New prototype.
9110         (m16_based_address_p): New prototype.
9111         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
9112         (mips_signed_immediate_p): New function.
9113         (m16_based_address_p): New function.
9114         (lwsp_swsp_address_p): New function.
9115         (mips_print_operand_punctuation): Recognize short delay slot insns
9116         for microMIPS.add<mode>3"
9117
9118 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9119
9120         PR target/56720
9121         * config/arm/iterators.md (v_cmp_result): New mode attribute.
9122         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
9123
9124 2013-03-25  Richard Biener  <rguenther@suse.de>
9125
9126         PR tree-optimization/56689
9127         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
9128         any edge.
9129
9130 2013-03-25  Richard Biener  <rguenther@suse.de>
9131
9132         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
9133         of bitmap.
9134         (memory_references): Likewise.
9135         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
9136         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
9137         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
9138         (gather_mem_refs_in_loops): Fold into ...
9139         (analyze_memory_references): ... this.  Move initialization
9140         to tree_ssa_lim_initialize.
9141         (fill_always_executed_in): Rename to ...
9142         (fill_always_executed_in_1): ... this.
9143         (fill_always_executed_in): Move contains_call computation to
9144         this new function from ...
9145         (tree_ssa_lim_initialize): ... here.
9146         (tree_ssa_lim): Call fill_always_executed_in.
9147
9148 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
9149
9150         * postreload.c (reload_combine): Fix code detecting returns.
9151
9152 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
9153
9154         * function.c (emit_use_return_register_into_block): On cc0 targets,
9155         do not emit the sequence between cc0 setter and user.
9156
9157 2013-03-25  Kai Tietz  <ktietz@redhat.com>
9158
9159         * config/i386/predicates.md (local_symbolic_operand): Interpret
9160         dll-imported symbols as none-local.
9161
9162 2013-03-25  Richard Biener  <rguenther@suse.de>
9163
9164         * tree-ssa-loop-im.c (struct depend): Remove.
9165         (struct lim_aux_data): Make depends a vec of gimples.
9166         (free_lim_aux_data): Adjust.
9167         (add_dependency): Likewise.
9168         (set_level): Likewise.
9169
9170 2013-03-25  Richard Biener  <rguenther@suse.de>
9171
9172         PR middle-end/56434
9173         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
9174         the pointer returned by calls with ECF_MALLOC set.
9175
9176 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
9177
9178         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
9179
9180 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
9181
9182         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
9183         using MMXMODE mode iterator.
9184         (*move<mode>_internal): Merge with *movv2sf_internal and
9185         *movv2sf_internal_rex64 using MMXMODE mode iterator.
9186
9187 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
9188
9189         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
9190         (record_last_mem_set_info): Likewise.
9191
9192         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
9193         of XNEWVEC followed by memset.
9194         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
9195
9196 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
9197
9198         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
9199         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
9200         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
9201         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
9202         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
9203         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
9204         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
9205         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
9206         BARRIER_P instead of GET_CODE.
9207
9208 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
9209
9210         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
9211         inaccuracy in the probing code.
9212
9213         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
9214         (ctrapdi4): Likewise.
9215
9216 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
9217
9218         * calls.c (expand_call): Add missing guard to code handling return
9219         of non-BLKmode structures in MSB.
9220         * function.c (expand_function_end): Likewise.
9221
9222 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
9223
9224         * combine.c (try_combine): Adjust comment.  Do not add the set of
9225         insn #0 if the destination indirectly is set or dies in insn #2.
9226         Tidy up code to distribute a new note.
9227
9228 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
9229
9230         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
9231         also for alternatives 16 and 17.
9232
9233 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
9234
9235         * config/i386/sse.md (*mov<mode>_internal): Merge with
9236         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
9237         Emit insn template depending on type attribute.  Use
9238         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
9239         movd instead of movq mnemonic for interunit moves.  Rewrite mode
9240         attribute calculation.  Remove unit attribute calculation.
9241         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
9242         Set prefix_data16 attribute for DImode ssemov types.
9243         Use Ym instead of y for SSE-MMX conversion alternatives.
9244         Reorder operand constraints.
9245
9246 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
9247
9248         * df.h (df_insn_delete): Adjust prototype.
9249         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
9250         and let it decide whether mark the basic block dirty.
9251         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
9252         * df-scan.c (df_insn_info_delete): New helper function, split
9253         off from df_insn_delete.
9254         (df_scan_free_bb_info): Use it.
9255         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
9256         Likewise.
9257         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
9258         that the insn is actually an insn and it has a non-NULL basic block.
9259         Do not mark basic block dirty if only deleting a DEBUG_INSN.
9260
9261 2013-03-22  Richard Biener  <rguenther@suse.de>
9262
9263         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
9264         dep_ref members.
9265         (mem_ref_alloc): Do not allocate them.
9266         (refs_independent_p): Do not query or maintain a cache.
9267
9268 2013-03-22  Richard Biener  <rguenther@suse.de>
9269
9270         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
9271         (gather_mem_refs_in_loops): Do not compute it.
9272         (analyze_memory_references): Do not allocate it.
9273         (tree_ssa_lim_finalize): Do not free it.
9274         (for_all_locs_in_loop): Do not query all_refs_in_loop.
9275
9276 2013-03-22  Richard Biener  <rguenther@suse.de>
9277
9278         * is-a.h (as_a): Use gcc_checking_assert.
9279
9280 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
9281
9282         * config/aarch64/aarch64.c (aarch64_print_operand): New
9283         format specifier for printing a constant in hex.
9284         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
9285         format specifier for printing second operand.
9286
9287 2013-03-22  Richard Biener  <rguenther@suse.de>
9288
9289         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
9290         bitmaps.
9291         (gather_mem_refs_in_loops): Perform store accumulation here.
9292         (create_vop_ref_mapping_loop): Remove.
9293         (create_vop_ref_mapping): Likewise.
9294         (analyze_memory_references): Initialize refs_stored_in_loop.
9295         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
9296         (record_indep_loop): Remove.
9297         (record_dep_loop): New function.
9298         (ref_indep_loop_p_1): Adjust to only walk over references
9299         in the loop, not its subloops.
9300         (ref_indep_loop_p): Rename to ...
9301         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
9302         maintaining a more fine-grained cache.
9303         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
9304         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
9305
9306 2013-03-22  Richard Biener  <rguenther@suse.de>
9307
9308         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
9309         (struct mem_ref): Make accesses_in_loop a vec of a vec of
9310         aggregate mem_ref_loc.
9311         (free_mem_ref_locs): Inline into ...
9312         (memref_free): ... this and adjust.
9313         (mem_ref_alloc): Adjust.
9314         (mem_ref_locs_alloc): Remove.
9315         (record_mem_ref_loc): Adjust.
9316         (get_all_locs_in_loop): Rewrite into ...
9317         (for_all_locs_in_loop): ... this iterator.
9318         (rewrite_mem_ref_loc): New functor.
9319         (rewrite_mem_refs): Use for_all_locs_in_loop.
9320         (sm_set_flag_if_changed): New functor.
9321         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
9322         (ref_always_accessed): New functor.
9323         (ref_always_accessed_p): Use for_all_locs_in_loop.
9324
9325 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
9326
9327         * tree-pass.h (PROP_gimple_lvec): New.
9328         * passes.c (dump_properties): Handle PROP_gimple_lvec.
9329         (init_optimization_passes): Move pass_lower_vector.
9330         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
9331         PROP_gimple_lvec.
9332         (pass_lower_vector): Provide PROP_gimple_lvec.
9333         (pass_lower_vector_ssa): Likewise.
9334         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
9335
9336 2013-03-21  Mark Wielaard  <mjw@redhat.com>
9337
9338         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
9339
9340 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
9341
9342         * config/i386/i386.md (*movdi_internal): Disparage slightly
9343         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
9344         conversion alternatives.
9345
9346 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
9347
9348         PR middle-end/48087
9349         * diagnostic.def (DK_WERROR): New kind.
9350         * diagnostic.h (werrorcount): Define.
9351         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
9352         promoted to DK_ERROR, increment DK_WERROR counter instead of
9353         DK_ERROR counter.
9354         * toplev.c (toplev_main): Call print_ignored_options even if
9355         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
9356         even if just werrorcount is non-zero.
9357
9358         PR debug/55608
9359         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
9360         on failure.
9361         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
9362         (string_cst_pool_decl): New function.
9363         (optimize_one_addr_into_implicit_ptr): New function.
9364         (resolve_addr_in_expr): Optimize DWARF location expression
9365         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
9366         which doesn't live in memory, but has DW_AT_location or
9367         DW_AT_const_value, or refers to a string literal, into
9368         DW_OP_GNU_implicit_pointer.
9369         (optimize_location_into_implicit_ptr): New function.
9370         (resolve_addr): If removing DW_AT_location of a variable because
9371         it was DW_OP_addr of address of the variable, but the variable doesn't
9372         live in memory, try to emit const value attribute for the initializer.
9373
9374 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
9375
9376         * tree.h (VECTOR_TYPE_P): New macro.
9377         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
9378         TYPE_MODE): Use it.
9379         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
9380         VEC_COND_EXPR cannot be lvalues.
9381         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
9382
9383 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
9384
9385         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
9386         Restrict the transformation to equal modes.
9387
9388 2013-03-21  Richard Biener  <rguenther@suse.de>
9389
9390         PR tree-optimization/39326
9391         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
9392         (MEM_ANALYZABLE): Adjust.
9393         (record_mem_ref_loc): Move bitmap ops ...
9394         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
9395         unanalyzable refs, do not record locations for it.
9396         (analyze_memory_references): Allocate ref zero as shared
9397         unanalyzable ref.
9398         (refs_independent_p): Do not test for unanalyzed mems here.
9399         (ref_indep_loop_p_1): Special-case disambiguation against
9400         the unanalyzed ref.
9401         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
9402
9403 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
9404
9405         * config/arm/arm-protos.h (tune_params): Add
9406         prefer_neon_for_64bits field.
9407         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
9408         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
9409         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
9410         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
9411         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
9412         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
9413         (arm_option_override): Handle -mneon-for-64bits new option.
9414         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
9415         (prefer_neon_for_64bits): Declare new variable.
9416         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
9417         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
9418         (arch_enabled): Handle new arch types. Remove support for onlya8
9419         and nota8.
9420         (one_cmpldi2): Use new arch names.
9421         (zero_extend<mode>di2, extend<mode>di2): Ditto.
9422         * config/arm/arm.opt (mneon-for-64bits): Add option.
9423         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
9424         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
9425         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
9426         of onlya8.
9427         * doc/invoke.texi (-mneon-for-64bits): Document.
9428
9429 2013-03-21  Richard Biener  <rguenther@suse.de>
9430
9431         PR tree-optimization/39326
9432         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
9433         (sort_bbs_in_loop_postorder_cmp): New function.
9434         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
9435
9436 2013-03-21  Richard Biener  <rguenther@suse.de>
9437
9438         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
9439         (vect_insert_into_interleaving_chain): Likewise.
9440         (vect_drs_dependent_in_basic_block): Inline ...
9441         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
9442         split out from ...
9443         (vect_analyze_data_ref_dependence): ... here.  Simplify.
9444         (vect_check_interleaving): Simplify.
9445         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
9446         (vect_slp_analyze_data_ref_dependences): ... this new function.
9447         (dr_group_sort_cmp): New function.
9448         (vect_analyze_data_ref_accesses): Compute data-reference groups
9449         here instead of in vect_analyze_data_ref_dependence.  Use
9450         a more efficient algorithm.
9451         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
9452         vect_slp_analyze_data_ref_dependences.  Call
9453         vect_analyze_data_ref_accesses earlier.
9454         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
9455         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
9456         (vect_slp_analyze_data_ref_dependences): New prototype.
9457
9458 2013-03-21  Richard Biener  <rguenther@suse.de>
9459
9460         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
9461         ref is stored in the loop.
9462         (find_refs_for_sm): Walk only over all stores.
9463         (store_motion_loop): Allocate from lim_bitmap_obstack.
9464         (store_motion): Likewise.
9465
9466 2013-03-21  Richard Biener  <rguenther@suse.de>
9467
9468         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
9469         Update virtual SSA form.
9470
9471 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9472
9473         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
9474         * configure: Regenerate.
9475         * config.in: Regenerate.
9476         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
9477         if !HAVE_LD_EH_FRAME_CIEV3.
9478
9479 2013-03-21  Richard Biener  <rguenther@suse.de>
9480
9481         * tree-cfg.c (verify_expr_no_block): New function.
9482         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
9483         nor DECL_VALUE_EXPR have locations with associated blocks.
9484         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
9485         (clear_unused_block_pointer): Remove code dealing with
9486         blocks in DECL_DEBUG_EXPR locations.
9487
9488 2013-03-21  Richard Biener  <rguenther@suse.de>
9489
9490         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
9491         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
9492         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
9493         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
9494         instead of DECL_DEBUG_EXPR_IS_FROM.
9495         * gimplify.c (gimplify_modify_expr): Likewise.
9496         * tree-cfg.c (verify_expr_location_1): Likewise.
9497         * tree-complex.c (create_one_component_var): Likewise.
9498         * tree-sra.c (create_access_replacement): Likewise.
9499         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
9500         (clear_unused_block_pointer): Likewise.
9501         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
9502         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
9503         * var-tracking.c (var_debug_decl): Likewise.
9504         (track_expr_p): Likewise.
9505         * tree-inline.c (add_local_variables): Likewise.  Set
9506         DECL_HAS_DEBUG_EXPR_P after copying it.
9507         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
9508         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
9509
9510 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
9511
9512         PR bootstrap/56656
9513         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
9514         * configure: Regenerate.
9515         * config.in: Regenerate.
9516         * config/i386/i386.md (*movdf_internal): Use
9517         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
9518         movd instead of movq mnemonic for interunit moves.
9519         (*movdi_internal): Ditto.
9520
9521 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
9522
9523         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
9524         (abd<mode>_3): New pattern.
9525         (aba<mode>_3): New pattern.
9526         (fabd<mode>_3): New pattern.
9527
9528 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
9529
9530         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
9531         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
9532         occurrence of REGISTER_PREFIX as its empty string.
9533
9534 2013-03-20  Jeff Law  <law@redhat.com>
9535
9536         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
9537         addititional equivalences for equality comparisons between an SSA_NAME
9538         and a constant where the SSA_NAME was set from a widening conversion.
9539
9540 2013-03-20  Walter Lee  <walt@tilera.com>
9541
9542         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
9543
9544 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
9545
9546         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
9547         depending on type attribute.
9548         (*movti_internal): Ditto.
9549         (*movtf_internal): Ditto.
9550         (*movxf_internal): Ditto.
9551         (*movdf_internal): Ditto.
9552         (*movsf_internal): Ditto.
9553
9554 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
9555
9556         * config/i386/i386.md (*movti_internal): Set prefix attribute to
9557         maybe_vex for sselog1 and ssemov types.
9558         (*movdi_internal): Reorder operand constraints.
9559         (*movsi_internal): Ditto.  Set prefix attribute to
9560         maybe_vex for sselog1 and ssemov types.
9561         (*movtf_internal): Set prefix attribute to maybe_vex
9562         for sselog1 and ssemov types.
9563         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
9564         DImode ssemov types.  Reorder operand constraints.
9565         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
9566         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
9567         attribute for SImode ssemov types.  Reorder operand constraints.
9568
9569 2013-03-20  Martin Jambor  <mjambor@suse.cz>
9570
9571         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
9572         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
9573
9574 2013-03-20  Pat Haugen <pthaugen@us.ibm.com>
9575
9576         * config/rs6000/predicates.md (indexed_address, update_address_mem
9577         update_indexed_address_mem): New predicates.
9578         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
9579         attribute for load/store instructions.
9580         * config/rs6000/dfp.md (movsd_store): Likewise.
9581         (movsd_load): Likewise.
9582         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
9583         (unnamed HI->DI extend define_insn): Likewise.
9584         (unnamed SI->DI extend define_insn): Likewise.
9585         (unnamed QI->SI extend define_insn): Likewise.
9586         (unnamed QI->HI extend define_insn): Likewise.
9587         (unnamed HI->SI extend define_insn): Likewise.
9588         (unnamed HI->SI extend define_insn): Likewise.
9589         (extendsfdf2_fpr): Likewise.
9590         (movsi_internal1): Likewise.
9591         (movsi_internal1_single): Likewise.
9592         (movhi_internal): Likewise.
9593         (movqi_internal): Likewise.
9594         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
9595         attribute for load/store instructions.
9596         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
9597         instructions.
9598         (mov<mode>_softfloat): Likewise.
9599         (mov<mode>_hardfloat32): Likewise.
9600         (mov<mode>_hardfloat64): Likewise.
9601         (mov<mode>_softfloat64): Likewise.
9602         (movdi_internal32): Likewise.
9603         (movdi_internal64): Likewise.
9604         (probe_stack_<mode>): Likewise.
9605
9606 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
9607
9608         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
9609         floating point, and decimal floating point to reload iterator.
9610
9611         * config/rs6000/constraints.md (wl constraint): New constraints to
9612         return FLOAT_REGS if certain options are used to reduce the number
9613         of separate patterns that exist in the file.
9614         (wx constraint): Likewise.
9615         (wz constraint): Likewise.
9616
9617         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
9618         -mdebug=reg, print wg, wl, wx, and wz constraints.
9619         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
9620         Initialize the reload functions for 64-bit binary/decimal floating
9621         point types.
9622         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
9623         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
9624         create the buffer on the stack to overcome not having a 32-bit
9625         load and store.
9626         (rs6000_emit_move): Likewise.
9627         (rs6000_secondary_memory_needed_rtx): Likewise.
9628         (rs6000_alloc_sdmode_stack_slot): Likewise.
9629         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
9630         via xxlxor, just like DFmode 0.0.
9631
9632         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
9633         define as 1 if we are running on a power7 or newer.
9634         (enum r6000_reg_class_enum): Add new constraints.
9635
9636         * config/rs6000/dfp.md (movsd): Delete, combine with binary
9637         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
9638         with other moves by using conditional constraits (wg).  Use LFIWZX
9639         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
9640         (movsd splitter): Likewise.
9641         (movsd_hardfloat): Likewise.
9642         (movsd_softfloat): Likewise.
9643
9644         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
9645         binary and decimal floating point moves.
9646         (fmove_ok): New attributes to combine binary and decimal floating
9647         point moves, and to combine power6x (mfpgpr) moves along normal
9648         floating moves.
9649         (real_value_to_target): Likewise.
9650         (f32_lr): Likewise.
9651         (f32_lm): Likewise.
9652         (f32_li): Likewise.
9653         (f32_sr): Likewise.
9654         (f32_sm): Likewise.
9655         (f32_si): Likewise.
9656         (movsf): Combine binary and decimal floating point moves.  Combine
9657         power6x (mfpgpr) moves with other moves by using conditional
9658         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
9659         (mov<mode> for SFmode/SDmode); Likewise.
9660         (SFmode/SDmode splitters): Likewise.
9661         (movsf_hardfloat): Likewise.
9662         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
9663         (movsf_softfloat): Likewise.
9664         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
9665
9666         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
9667         wx and wz constraints.
9668
9669         * config/rs6000/constraints.md (wg constraint): New constraint to
9670         return FLOAT_REGS if -mmfpgpr (power6x) was used.
9671
9672         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
9673         constraint.
9674
9675         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
9676         -mdebug=reg, print wg, wl, wx, and wz constraints.
9677         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
9678         Initialize the reload functions for 64-bit binary/decimal floating
9679         point types.
9680         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
9681         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
9682         create the buffer on the stack to overcome not having a 32-bit
9683         load and store.
9684         (rs6000_emit_move): Likewise.
9685         (rs6000_secondary_memory_needed_rtx): Likewise.
9686         (rs6000_alloc_sdmode_stack_slot): Likewise.
9687         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
9688         via xxlxor, just like DFmode 0.0.
9689
9690         * config/rs6000/dfp.md (movdd): Delete, combine with binary
9691         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
9692         with other moves by using conditional constraits (wg).  Use LFIWZX
9693         and STFIWX for loading SDmode on power7.
9694         (movdd splitters): Likewise.
9695         (movdd_hardfloat32): Likewise.
9696         (movdd_softfloat32): Likewise.
9697         (movdd_hardfloat64_mfpgpr): Likewise.
9698         (movdd_hardfloat64): Likewise.
9699         (movdd_softfloat64): Likewise.
9700
9701         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
9702         64-bit binary and decimal floating point moves.
9703         (FMOVE64X): Likewise.
9704         (movdf): Combine 64-bit binary and decimal floating point moves.
9705         Combine power6x (mfpgpr) moves with other moves by using
9706         conditional constraits (wg).
9707         (mov<mode> for DFmode/DDmode): Likewise.
9708         (DFmode/DDmode splitters): Likewise.
9709         (movdf_hardfloat32): Likewise.
9710         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
9711         (movdf_softfloat32): Likewise.
9712         (movdf_hardfloat64_mfpgpr): Likewise.
9713         (movdf_hardfloat64): Likewise.
9714         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
9715         (movdf_softfloat64): Likewise.
9716         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
9717         (reload_<mode>_load): Move to later in the file so they aren't in
9718         the middle of the floating point move insns.
9719         (reload_<mode>_store): Likewise.
9720
9721         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
9722         constraint.
9723
9724         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
9725         constraint if -mdebug=reg.
9726         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
9727         Enable using dd reload support if needed.
9728
9729         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
9730         binary and decimal floating point moves in rs6000.md.
9731         (movtd_internal): Likewise.
9732
9733         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
9734         decimal floating point moves.
9735         (movtf): Likewise.
9736         (movtf_internal): Likewise.
9737         (mov<mode>_internal, TDmode/TFmode): Likewise.
9738         (movtf_softfloat): Likewise.
9739         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
9740
9741         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
9742         movdi_internal64, using wg constraint for move direct operations.
9743         (movdi_internal64): Likewise.
9744
9745         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
9746         MODES_TIEABLE_P for selected modes.  Print the numerical value of
9747         the various virtual registers. Use GPR/FPR first/last values,
9748         instead of hard coding the register numbers.  Print which modes
9749         have reload functions registered.
9750         (rs6000_option_override_internal): If -mdebug=reg, trace the options
9751         settings before/after setting cpu, target and subtarget settings.
9752         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
9753         and for secondary reload failures in rs6000_secondary_reload_inner.
9754         (rs6000_secondary_reload_fail): Likewise.
9755         (rs6000_secondary_reload_inner): Likewise.
9756
9757         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
9758         macros for first/last GPR and FPR registers.
9759         (LAST_GPR_REGNO): Likewise.
9760         (FIRST_FPR_REGNO): Likewise.
9761         (LAST_FPR_REGNO): Likewise.
9762
9763         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
9764         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
9765         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
9766         (vcond<mode><mode>): Likewise.
9767         (vcondu<mode><mode>): Likewise.
9768         (vector_gtu<mode>): Likewise.
9769         (vector_gte<mode>): Likewise.
9770         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
9771         to prevent the compiler from converting DImode operations to TImode.
9772         (ior<mode>3): Likewise.
9773         (and<mode>3): Likewise.
9774         (one_cmpl<mode>2): Likewise.
9775         (nor<mode>3): Likewise.
9776         (andc<mode>3): Likewise.
9777
9778         * config/rs6000/constraints.md (wt constraint): New constraint
9779         that returns VSX_REGS if TImode is allowed in VSX registers.
9780
9781         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
9782         constant under VSX.
9783
9784         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
9785         similar to TImode, but it is restricted to being in the GPRs.
9786
9787         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
9788         TImode to occupy a single VSX register.
9789
9790         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
9791         -mvsx-timode for power7/power8.
9792         (power7 cpu): Likewise.
9793         (power8 cpu): Likewise.
9794
9795         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
9796         sure that TFmode/TDmode take up two registers if they are ever
9797         allowed in the upper VSX registers.
9798         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
9799         registers.
9800         (rs6000_init_hard_regno_mode_ok): Likewise.
9801         (rs6000_debug_reg_global): Add debugging for PTImode and wt
9802         constraint.  Print if LRA is turned on.
9803         (rs6000_option_override_internal): Give an error if -mvsx-timode
9804         and VSX is not enabled.
9805         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
9806         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
9807         to reg+offset addressing.  Use PTImode when checking offset
9808         addresses for validity.
9809         (reg_offset_addressing_ok_p): Likewise.
9810         (rs6000_legitimate_offset_address_p): Likewise.
9811         (rs6000_legitimize_address): Likewise.
9812         (rs6000_legitimize_reload_address): Likewise.
9813         (rs6000_legitimate_address_p): Likewise.
9814         (rs6000_eliminate_indexed_memrefs): Likewise.
9815         (rs6000_emit_move): Likewise.
9816         (rs6000_secondary_reload): Likewise.
9817         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
9818         reloads to fpr registers to continue to use reg+offset addressing,
9819         but 64-bit reloads to altivec registers need reg+reg addressing.
9820         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
9821         it.  Treat LO_SUM like a PLUS operation.
9822         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
9823         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
9824         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
9825         registers to share a register with a smaller sized type, since VSX
9826         puts scalars in the upper 64-bits.
9827         (print_operand): Add support for PTImode.
9828         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
9829         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
9830         registers, but don't have arithmetic support.
9831         (rs6000_memory_move_cost): Add test for VSX.
9832         (rs6000_opt_masks): Add -mvsx-timode.
9833
9834         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
9835         for TImode.
9836         (VSs): Likewise.
9837         (VSr): Use wt constraint for TImode.
9838         (VSv): Drop TImode support.
9839         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
9840         (vsx_movti_64bit): Likewise.
9841         (vsx_movti_32bit): Likewise.
9842         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
9843         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
9844         one '?' on the appropriate output constraint.  Do not allow TImode
9845         logical operations on 32-bit systems.
9846         (vsx_ior<mode>3): Likewise.
9847         (vsx_xor<mode>3): Likewise.
9848         (vsx_one_cmpl<mode>2): Likewise.
9849         (vsx_nor<mode>3): Likewise.
9850         (vsx_andc<mode>3): Likewise.
9851         (vsx_concat_<mode>): Likewise.
9852         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
9853
9854         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
9855         OPTION_MASK_VSX_TIMODE.
9856         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
9857         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
9858
9859         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
9860         (TI2 iterator): New iterator for TImode, PTImode.
9861         (wd mode attribute): Add values for vector types.
9862         (movti_string): Replace TI move operations with operations for TImode
9863         and PTImode.  Add support for TImode being allowed in VSX registers.
9864         (mov<mode>_string, TImode/PTImode): Likewise.
9865         (movti_ppc64): Likewise.
9866         (mov<mode>_ppc64, TImode/PTImode): Likewise.
9867         (TI mode splitters): Likewise.
9868
9869         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
9870         constraint.
9871
9872 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
9873
9874         PR tree-optimization/56355
9875         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
9876         Also handle integers with undefined overflow.
9877
9878 2013-03-20  Catherine Moore  <clm@codesourcery.com>
9879             Maciej W. Rozycki  <macro@codesourcery.com>
9880             Tom de Vries  <tom@codesourcery.com>
9881             Nathan Sidwell <nathan@codesourcery.com>
9882             Iain Sandoe  <iain@codesourcery.com>
9883             Nathan Froyd  <froydnj@codesourcery.com>
9884             Chao-ying Fu <fu@mips.com>
9885
9886         * doc/extend.texi: (micromips, nomicromips, nocompression):
9887         Document new function attributes.
9888         * doc/invoke.texi (minterlink-compressed, mmicromips,
9889         m14k, m14ke, m14kec): Document new options.
9890         (minterlink-mips16): Update documentation.
9891         * doc/md.texi (ZC, ZD): Document new constraints.
9892         * configure.ac (gcc_cv_as_micromips): Check if linker
9893         supports the .set micromips directive.
9894         * configure: Regenerate.
9895         * config.in: Regenerate.
9896         * config/mips/mips-tables.opt: Regenerate.
9897         * config/mips/micromips.md: New file.
9898         * constraints.md (ZC, ZD): New constraints.
9899         * config/mips/predicates.md (movep_src_register): New predicate.
9900         (movep_src_operand): New predicate.
9901         (non_volatile_mem_operand): New predicate.
9902         * config/mips/mips.md (multimem): New type.
9903         (length): Differentiate between 17-bit and 18-bit branch offsets.
9904         (MOVEP1, MOVEP2): New mode iterator.
9905         (mov_<load>l): Use ZC constraint.
9906         (mov_<load>r): Likewise.
9907         (mov_<store>l): Likewise.
9908         (mov_<store>r): Likewise.
9909         (*branch_equality<mode>_inverted): Add microMIPS support.
9910         (*branch_equality<mode>): Likewise.
9911         (*jump_absolute): Likewise.
9912         (indirect_jump_<mode>): Likewise.
9913         (tablejump_<mode>): Likewise.
9914         (<optab>_internal): Likewise.
9915         (sibcall_internal): Likewise.
9916         (sibcall_value_internal): Likewise.
9917         (prefetch): Use constraint ZD.
9918         * config/mips/mips.opt (minterlink-compressed): New option.
9919         (minterlink-mips16): Now an alias for minterlink-compressed.
9920         (mmicromips): New option.
9921         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
9922         (compare_and_swap_12): Likewise.
9923         (sync_add<mode>): Likewise.
9924         (sync_<optab>_12): Likewise.
9925         (sync_old_<optab>_12): Likewise.
9926         (sync_new_<optab>_12): Likewise.
9927         (sync_nand_12): Likewise.
9928         (sync_old_nand_12): Likewise.
9929         (sync_new_nand_12): Likewise.
9930         (sync_sub<mode>): Likewise.
9931         (sync_old_add<mode>): Likewise.
9932         (sync_old_sub<mode>): Likewise.
9933         (sync_new_add<mode>): Likewise.
9934         (sync_new_sub<mode>): Likewise.
9935         (sync_<optab><mode>): Likewise.
9936         (sync_old_<optab><mode>): Likewise.
9937         (sync_new_<optab><mode>): Likewise.
9938         (sync_nand<mode>): Likewise.
9939         (sync_old_nand<mode>): Likewise.
9940         (sync_new_nand<mode>): Likewise.
9941         (sync_lock_test_and_set<mode>): Likewise.
9942         (test_and_set_12): Likewise.
9943         (atomic_compare_and_swap<mode>): Likewise.
9944         (atomic_exchange<mode>_llsc): Likewise.
9945         (atomic_fetch_add<mode>_llsc): Likewise.
9946         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
9947         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
9948         (umips_save_restore_pattern_p): Likewise.
9949         (umips_load_store_pair_p): Likewise.
9950         (umips_output_load_store_pair): Likewise.
9951         (umips_movep_target_p): Likewise.
9952         (umips_12bit_offset_address_p): Likewise.
9953         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
9954         (mips_base_mips16): Rename this...
9955         (mips_base_compression_flags): ...to this. Update all uses.
9956         (mips_attribute_table): Add micromips, nomicromips and nocompression.
9957         (mips_mips16_decl_p): Delete.
9958         (mips_nomips16_decl_p): Delete.
9959         (mips_get_compress_on_flags): New function.
9960         (mips_get_compress_off_flags): New function.
9961         (mips_get_compress_mode): New function.
9962         (mips_get_compress_on_name): New function.
9963         (mips_get_compress_off_name): New function.
9964         (mips_insert_attributes): Support multiple compression types.
9965         (mips_merge_decl_attributes): Likewise.
9966         (umips_12bit_offset_address_p): New function.
9967         (mips_start_function_definition): Emit .set micromips directive.
9968         (mips_call_may_need_jalx_p): New function.
9969         (mips_function_ok_for_sibcall): Add microMIPS support.
9970         (mips_print_operand_punctuation): Support short delay slots and
9971         compact jumps.
9972         (umips_swm_mask, umips_swm_encoding): New.
9973         (umips_build_save_restore): New function.
9974         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
9975         (was_mips16_p): Remove.
9976         (old_compression_mode): New.
9977         (mips_set_compression_mode): New function.
9978         (mips_set_current_function): Add microMIPS support.
9979         (mips_option_override): Likewise.
9980         (umips_save_restore_pattern_p): New function.
9981         (umips_output_save_restore): New function.
9982         (umips_load_store_pair_p_1): New function.
9983         (umips_load_store_pair_p): New function.
9984         (umips_output_load_store_pair_1): New function.
9985         (umips_output_load_store_pair): New function.
9986         (umips_movep_target_p) New function.
9987         (mips_prepare_pch_save): Add microMIPS support.
9988         * config/mips/mips.h (TARGET_COMPRESSION): New.
9989         (TARGET_CPU_CPP_BUILTINS): Update macro
9990         to use new compression flags and to support microMIPS.
9991         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
9992         (MIPS_ARCH_FLOAT_SPEC): Likewise.
9993         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
9994         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
9995         (ASM_SPEC): Support mmicromips and mno-micromips.
9996         (M16STORE_REG_P): New macro.
9997         (MIPS_CALL): Support TARGET_MICROMIPS.
9998         (MICROMIPS_J): New macro.
9999         (mips_base_mips16): Rename this...
10000         (mips_base_compression_flags): ...to this.
10001         (UMIPS_12BIT_OFFSET_P): New macro.
10002         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
10003         (MULTILIB_DIRNAMES): Likewise.
10004 2013-03-20  Richard Biener  <rguenther@suse.de>
10005
10006         PR tree-optimization/56661
10007         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
10008         the result does not have to be distinct.
10009
10010 2013-03-20  Richard Biener  <rguenther@suse.de>
10011
10012         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
10013         remap_gimple_op_r.
10014
10015 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10016             Steven Bosscher <steven@gcc.gnu.org>
10017
10018         PR rtl-optimization/56605
10019         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
10020
10021 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
10022
10023         PR bootstrap/56656
10024         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
10025         that require movd instead of movq.
10026
10027 2013-03-20  Richard Biener  <rguenther@suse.de>
10028
10029         * tree-ssa-structalias.c (struct variable_info): Add pointer
10030         to the first field of an aggregate with sub-vars.  Make
10031         this and the pointer to the next subfield its ID.
10032         (vi_next): New function.
10033         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
10034         storedanything_id, integer_id): Increment by one.
10035         (new_var_info, get_call_vi, lookup_call_clobber_vi,
10036         get_call_clobber_vi): Adjust.
10037         (solution_set_expand): Simplify and speedup.
10038         (solution_set_add): Inline into ...
10039         (set_union_with_increment): ... this.  Adjust accordingly.
10040         (do_sd_constraint): Likewise.
10041         (do_ds_constraint): Likewise.
10042         (do_complex_constraint): Simplify.
10043         (build_pred_graph): Adjust.
10044         (solve_graph): Likewise.  Simplify and speedup.
10045         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
10046         get_constraint_for_component_ref, get_constraint_for_1,
10047         first_vi_for_offset, first_or_preceding_vi_for_offset,
10048         create_function_info_for, create_variable_info_for_1,
10049         create_variable_info_for, intra_create_variable_infos): Adjust.
10050         (init_base_vars): Push NULL for ID zero.
10051         (compute_points_to_sets): Adjust.
10052
10053 2013-03-20  Richard Biener  <rguenther@suse.de>
10054
10055         * cfgloop.c (verify_loop_structure): Streamline and avoid
10056         ICEing on corrupt loop tree.
10057         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
10058         loop tree.
10059
10060 2013-03-20  Richard Biener  <rguenther@suse.de>
10061
10062         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
10063         check whether an SSA update is needed.
10064
10065 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
10066
10067         * config/mips/constraints.md (T): Rename to...
10068         (Yf): ...this.
10069         (U): Rename to...
10070         (Yd): ...this.
10071         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
10072         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
10073
10074 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
10075
10076         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
10077         (*subsi3_carryin_uxtw): Likewise.
10078
10079 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
10080
10081         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
10082         (*rorsi3_insn_uxtw): Likewise.
10083
10084 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
10085
10086         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
10087         (*extrsi5_insn_uxtw): Likewise.
10088
10089 2013-03-19  Richard Biener  <rguenther@suse.de>
10090
10091         PR tree-optimization/56273
10092         * passes.c (init_optimization_passes): Move second VRP after DOM.
10093
10094 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
10095
10096         * config/i386/i386.md (*movti_internal): Merge from
10097         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
10098         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
10099         nox64 isa attributes.
10100
10101 2013-03-18  Richard Biener  <rguenther@suse.de>
10102
10103         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
10104         (unite): Likewise.
10105         (merge_node_constraints): Likewise.
10106         (build_succ_graph): Likewise.
10107         (valid_graph_edge): Inline into single caller.
10108         (unify_nodes): Likewise.  Use bitmap_set_bit return value
10109         and cache varinfo.
10110         (scc_visit): Fix formatting and variable use.
10111         (do_sd_constraint): Use gcc_checking_assert.
10112         (do_ds_constraint): Likewise.
10113         (do_complex_constraint): Likewise.
10114         (condense_visit): Likewise.  Cleanup.
10115         (dump_pred_graph): New function.
10116         (perform_var_substitution): Dump the pred-graph before
10117         variable substitution.
10118         (find_equivalent_node): Use gcc_checking_assert.
10119         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
10120
10121 2013-03-18  Richard Biener  <rguenther@suse.de>
10122
10123         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
10124         Remove cond_expr_stmt_list argument and do not gimplify the
10125         built expression.
10126         (vect_loop_versioning): Adjust.
10127         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
10128         Cleanup to use less temporaries.
10129         (vect_create_data_ref_ptr): Cleanup.
10130
10131 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
10132
10133         PR tree-optimization/56635
10134         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
10135         require types_compatible_p types.
10136
10137 2013-03-18  Nick Clifton  <nickc@redhat.com>
10138
10139         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
10140         spurious backslash.
10141
10142         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
10143         Add missing line to comment describing function.
10144
10145 2013-03-18  Richard Biener  <rguenther@suse.de>
10146
10147         PR tree-optimization/56210
10148         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10149         Handle string / character search functions.
10150         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
10151
10152 2013-03-18  Richard Biener  <rguenther@suse.de>
10153
10154         PR middle-end/56483
10155         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
10156         and implement properly.
10157         * gimple.h (gimple_cond_single_var_p): Remove.
10158
10159 2013-03-18  Richard Biener  <rguenther@suse.de>
10160
10161         * tree-data-ref.h (find_data_references_in_loop): Declare.
10162         * tree-data-ref.c (get_references_in_stmt): Use a stack
10163         vector pre-allocated in the callers.
10164         (find_data_references_in_stmt): Adjust.
10165         (graphite_find_data_references_in_stmt): Likewise.
10166         (create_rdg_vertices): Likewise.
10167         (find_data_references_in_loop): Export.
10168         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
10169         Compute dependences here...
10170         (vect_analyze_data_refs): ...not here.  When we encounter
10171         a non-vectorizable data reference in basic-block vectorization
10172         truncate the data reference vector.  Do not bother to
10173         fixup data-dependence information for gather loads.
10174         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
10175         of data references, as reported.
10176
10177 2013-03-18  Richard Biener  <rguenther@suse.de>
10178
10179         PR tree-optimization/3713
10180         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
10181         has_constants and expr.
10182         (stmt_has_constants): Properly valueize SSA names when deciding
10183         whether the stmt has constants.
10184
10185 2013-03-18  Richard Biener  <rguenther@suse.de>
10186
10187         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
10188         whole function when there is nothing to do.
10189         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
10190         * tree-vectorizer.c (vectorize_loops): Update virtual and
10191         loop-closed SSA once.
10192         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
10193
10194 2013-03-18  Richard Biener  <rguenther@suse.de>
10195
10196         PR middle-end/56113
10197         * domwalk.c (bb_postorder): New global static.
10198         (cmp_bb_postorder): New function.
10199         (walk_dominator_tree): Replace scheme imposing an order for
10200         visiting dominator sons by one sorting them at the time they
10201         are pushed on the stack.
10202
10203 2013-03-18  Richard Biener  <rguenther@suse.de>
10204
10205         PR tree-optimization/39326
10206         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
10207         (struct mem_ref): Replace mem member with ao_ref typed member.
10208         (MEM_ANALYZABLE): Adjust.
10209         (memref_eq): Likewise.
10210         (mem_ref_alloc): Likewise.
10211         (gather_mem_refs_stmt): Likewise.
10212         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
10213         (execute_sm_if_changed_flag_set): Adjust.
10214         (execute_sm): Likewise.
10215         (ref_always_accessed_p): Likewise.
10216         (refs_independent_p): Likewise.
10217         (can_sm_ref_p): Likewise.
10218
10219 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
10220
10221         PR c/56566
10222         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
10223         return 1 even for !unsignedp.
10224
10225 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
10226
10227         * config/i386/i386.md (isa): Add x64 and nox64.
10228         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
10229         (*pushtf): Enable *roF alternative for x64 isa only.
10230         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
10231         mode attribute of integer alternatives to DImode for TARGET_64BIT.
10232         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
10233         (*movtf_internal): Merge from *movtf_internal_rex64 and
10234         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
10235         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
10236         nox64 isa attributes.
10237         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
10238         nox64 isa attributes.
10239         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
10240
10241 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
10242
10243         * config/alpha/alpha.c (TARGET_LRA_P): New define.
10244
10245 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
10246
10247         PR target/56640
10248         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
10249         class names.  Remove trailing comma after "ALL_REGS".
10250
10251 2013-03-16  Jan Hubicka  <jh@suse.cz>
10252
10253         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
10254         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
10255         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
10256         of cgraph_get_create_node.
10257         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10258
10259 2013-03-16  Jason Merrill  <jason@redhat.com>
10260
10261         PR debug/49090
10262         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
10263         with DW_AT_default_value.
10264
10265 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
10266
10267         * BASE-VER: Set to 4.9.0.
10268
10269 2013-03-14  Andi Kleen  <ak@linux.intel.com>
10270
10271         PR target/56619
10272         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
10273         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
10274         Document _x* TSX intrinsics.
10275
10276 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
10277             David Holsgrove  <david.holsgrove@xilinx.com>
10278
10279         * configure.ac: Add MicroBlaze TLS support detection.
10280         * configure: Regenerate.
10281         * config/microblaze/microblaze-protos.h
10282         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
10283         symbol_mentioned_p, label_mentioned_p): Add prototypes.
10284         * config/microblaze/microblaze.c (microblaze_address_type): Add
10285         ADDRESS_TLS and tls_reloc address types.
10286         (microblaze_address_info): Add tls_reloc.
10287         (TARGET_HAVE_TLS): Define.
10288         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
10289          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
10290          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
10291         load_tls_operand,  microblaze_call_tls_get_addr,
10292         microblaze_legitimize_tls_address): New functions.
10293         (microblaze_classify_unspec): Handle UNSPEC_TLS.
10294         (get_base_reg): Use microblaze_tls_symbol_p.
10295         (microblaze_classify_address): Handle TLS.
10296         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
10297         label_mentioned_p and microblaze_tls_referenced_p.
10298         (microblaze_legitimize_address): Handle TLS.
10299         (microblaze_address_insns): Handle ADDRESS_TLS.
10300         (pic_address_needs_scratch): Handle TLS.
10301         (print_operand_address): Handle TLS.
10302         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
10303         (microblaze_expand_move): Handle TLS.
10304         (microblaze_legitimate_constant_p): Check
10305         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
10306         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
10307         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
10308         (PIC_OFFSET_TABLE_REGNUM): Set.
10309         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
10310         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
10311         (addsi3, movsi_internal2, movdf_internal): Update constraints
10312         * config/microblaze/predicates.md (arith_plus_operand): Define
10313         (move_operand): Redefine as move_src_operand,
10314         check microblaze_tls_referenced_p.
10315
10316 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
10317
10318         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
10319         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
10320
10321 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
10322
10323         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
10324         CC mode for AND.
10325
10326 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
10327
10328         PR tree-optimization/53265
10329         * common.opt (Waggressive-loop-optimizations): New option.
10330         * tree-ssa-loop-niter.c: Include tree-pass.h.
10331         (do_warn_aggressive_loop_optimizations): New function.
10332         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
10333         if number_of_latch_executions returned constant.
10334         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
10335         early.  If number_of_latch_executions returned constant, set
10336         nb_iterations_upper_bound back to it.
10337         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
10338         field.
10339         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
10340         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
10341
10342         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
10343         (MULTILIB_OSDIRNAMES): Set.
10344         * genmultilib: If defaultosdirname doesn't start with :: , set
10345         defaultosdirname2 instead, clear it and emit two . multilib_raw
10346         entries instead of just one.
10347
10348 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
10349
10350         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
10351         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
10352         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
10353         (SUBTARGET_OVERRIDE_OPTIONS): New.
10354
10355 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
10356
10357         PR target/49880
10358         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
10359         (musermode): Convert to Var(TARGET_USERMODE).
10360         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
10361         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
10362         * config/sh/sh.c (sh_option_override): Use
10363         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
10364         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
10365         condition.
10366         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
10367         TARGET_SH4.
10368         (udivsi3_i4_single, divsi3_i4_single): Use
10369         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
10370
10371 2013-03-13  Dave Korn  <dave.korn.cygwin@....>
10372
10373         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
10374         default setting.
10375
10376 2013-03-13  Richard Biener  <rguenther@suse.de>
10377
10378         PR tree-optimization/56608
10379         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
10380         calls when vectorizing basic-blocks.
10381
10382 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
10383
10384         PR plugins/45078
10385         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
10386         tm_file.
10387
10388 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
10389
10390         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
10391
10392 2013-03-11  Jan Hubicka  <jh@suse.cz>
10393
10394         PR lto/56557
10395         * lto-streamer-out.c (output_symbol_p): Skip references from
10396         constructors of external variables.
10397
10398 2013-03-11  Jan Hubicka  <jh@suse.cz>
10399
10400         PR middle-end/56571
10401         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
10402         from pseudos.
10403         * emit-rtl.c (verify_rtx_sharing): Likewise.
10404         (copy_insn_1): Likewise.
10405         * rtl.c (copy_rtx): Likewise.
10406
10407 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
10408
10409         PR target/56591
10410         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
10411         output_operand_lossage message.
10412
10413 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
10414
10415         PR target/56470
10416         * arm.c (shift_op): Validate RTL pattern on the fly.
10417         (arm_print_operand, case 'S'): Don't use shift_operator to validate
10418         the RTL.
10419
10420 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10421
10422         PR target/56347
10423         * config/pa/pa.md (call_value): Check for calls to powf and direct to
10424         new call patterns that clobber %fr12.
10425         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
10426         split and postreload patterns.
10427         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
10428         registers %fr12 and %fr12R as call used.
10429
10430 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
10431
10432         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
10433         (canon_address, record_store, replace_read, check_mem_read_rtx,
10434         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
10435         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
10436         rest_of_handle_dse): Likewise.
10437
10438 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
10439
10440         PR middle-end/56524
10441         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
10442         Add base_optabs.
10443         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
10444         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
10445         (save_optabs_if_changed): Replace with...
10446         (init_tree_optimization_optabs): ...this.
10447         * optabs.c (save_optabs_if_changed): Rename to...
10448         (init_tree_optimization_optabs): ...this.  Take the optimization node
10449         as argument.  Do nothing if the base optabs are already correct.
10450         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
10451         to recompute optabs.
10452         * function.h (function): Remove optabs field.
10453         * function.c (invoke_set_current_function_hook): Call
10454         init_tree_optimization_optabs.  Use the result to initialize
10455         this_fn_optabs.
10456
10457 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
10458
10459         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
10460         if GTMA_HAS_NO_INSTRUMENTATION.
10461         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
10462         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
10463         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
10464         * gimple-pretty-print.c (dump_gimple_transaction): Handle
10465         GTMA_HAS_NO_INSTRUMENTATION.
10466
10467 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
10468
10469         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
10470         libasan_preinit.o.
10471
10472 2013-03-08  Marek Polacek  <polacek@redhat.com>
10473             Jakub Jelinek  <jakub@redhat.com>
10474
10475         PR tree-optimization/56478
10476         * predict.c (is_comparison_with_loop_invariant_p): Change the
10477         type of loop_step to tree.
10478         (predict_loops): Adjust.
10479         (predict_iv_comparison): Perform the computations on double_ints.
10480
10481 2013-03-08  Richard Biener  <rguenther@suse.de>
10482
10483         PR tree-optimization/56570
10484         * tree-cfg.c (verify_expr_location_1): Verify locations for
10485         DECL_DEBUG_EXPR.
10486         * tree-sra.c (create_access_replacement): Strip locations
10487         from DECL_DEBUG_EXPRs.
10488
10489 2013-03-08  Richard Biener  <rguenther@suse.de>
10490
10491         * tree-inline.c (expand_call_inline): Do not associate
10492         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
10493         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
10494
10495 2013-03-08  Richard Biener  <rguenther@suse.de>
10496
10497         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
10498         or block changes with -Og.  Fix for location / block encoding
10499         changes and PHI arguments with locations.
10500
10501 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
10502
10503         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
10504         for all counters.
10505         (struct output_info): Likewise.
10506         (register_overhead): Remove bad gcc_assert.
10507         (bitmap_find_bit): If there is only a single bitmap element, do not
10508         count a miss as a search.
10509         (print_statistics): Update for counter type changes.
10510         (dump_bitmap_statistics): Likewise.  Print headers such that they
10511         are properly lined up with the printed counters.
10512
10513 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
10514
10515         PR tree-optimization/56559
10516         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
10517         check that it has only a single use.
10518
10519 2013-03-07  Richard Biener  <rguenther@suse.de>
10520
10521         * doc/invoke.texi (fwhole-program): Discourage use in combination
10522         with -flto.
10523
10524 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
10525
10526         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
10527
10528         PR tree-optimization/56539
10529         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
10530         instead of GSI_CONTINUE_LINKING as last argument to
10531         force_gimple_operand_gsi.  Adjust function comment.
10532
10533         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
10534         aarch64-cores.def.
10535
10536         PR middle-end/56548
10537         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
10538         promoted mode, convert the result back to the original mode.
10539
10540 2013-03-06  Richard Biener  <rguenther@suse.de>
10541
10542         PR middle-end/56294
10543         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
10544         (insert_updated_phi_nodes_compare_uids): New function.
10545         (update_ssa): Sort symbols_to_rename after UID before
10546         traversing it to insert PHI nodes.
10547
10548 2013-03-06  Richard Biener  <rguenther@suse.de>
10549
10550         PR middle-end/50494
10551         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
10552         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
10553
10554         Revert
10555         2013-02-13  Richard Biener  <rguenther@suse.de>
10556
10557         PR lto/50494
10558         * varasm.c (output_constant_def_1): Get the decl representing
10559         the constant as argument.
10560         (output_constant_def): Wrap output_constant_def_1.
10561         (make_decl_rtl): Use output_constant_def_1 with the decl
10562         representing the constant.
10563         (build_constant_desc): Optionally re-use a decl already
10564         representing the constant.
10565         (tree_output_constant_def): Adjust.
10566
10567 2013-03-06  Joey Ye  <joey.ye@arm.com>
10568
10569         PR lto/50293
10570         * gcc.c (convert_white_space): New function.
10571         (main): Handles white space in function name.
10572
10573 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
10574
10575         PR target/56529
10576         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
10577         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
10578         to SH_DIV_CALL_TABLE for TARGET_SH2.
10579         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
10580         list.
10581         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
10582         call-table options.
10583
10584 2013-03-05  Sterling Augustine  <saugustine@google.com>
10585             Cary Coutant  <ccoutant@google.com>
10586
10587         PR debug/55364
10588         * dwarf2out.c (resolve_addr): Don't call
10589         remove_loc_list_addr_table_entries a second time for the same
10590         expression.
10591
10592 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
10593
10594         PR debug/56510
10595         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
10596         (avoid_complex_debug_insns): New function.
10597         (expand_debug_locations): Call it.
10598
10599         PR rtl-optimization/56484
10600         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
10601         lifetimes of hard registers on small register class machines.
10602
10603 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
10604
10605         * config/microblaze/microblaze-protos.h: Rename
10606         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
10607         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
10608         fast_interrupt.
10609         (microblaze_fast_interrupt_function_p): New function.
10610         (microblaze_is_interrupt_handler): Rename to
10611         microblaze_is_interrupt_variant and add fast_interrupt check.
10612         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
10613         (save_restore_insns): Likewise.
10614         (compute_frame_size): Likewise.
10615         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
10616         (microblaze_globalize_label): Likewise.
10617         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
10618         * config/microblaze/microblaze.md: Use wrapper
10619         microblaze_is_interrupt_variant.
10620
10621 2013-03-05  Kai Tietz  <ktietz@redhat.com>
10622
10623         * sdbout.c (sdbout_one_type): Switch to current function's section
10624         supporting cold/hot.
10625
10626 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
10627
10628         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
10629         -mxl-reorder.
10630
10631 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
10632
10633         PR middle-end/56461
10634         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
10635         if VALGRIND_GET_VBITS is defined, temporarily make object
10636         memory all defined, and restore previous valgrind addressability
10637         and definability afterwards.  Free this_object at the end.
10638
10639         PR middle-end/56461
10640         * lra.c (lra): Call lra_clear_live_ranges if live_p,
10641         right before calling lra_create_live_ranges, also call it
10642         when clearing live_p.  Only call lra_clear_live_ranges
10643         at the end if live_p.
10644
10645         PR middle-end/56461
10646         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
10647
10648 2013-03-05  Richard Biener  <rguenther@suse.de>
10649
10650         PR tree-optimization/56521
10651         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
10652         value-id.
10653
10654 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
10655
10656         PR c++/55135
10657         * except.h (remove_unreachable_eh_regions): New prototype.
10658         * except.c (remove_eh_handler_splicer): New function, split out
10659         of remove_eh_handler.
10660         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
10661         warning about running it on many EH regions one at a time.
10662         (remove_unreachable_eh_regions_worker): New function, walk the
10663         EH tree in depth-first order and remove non-marked regions.
10664         (remove_unreachable_eh_regions): New function.
10665         * tree-eh.c (mark_reachable_handlers): New function, split out
10666         from remove_unreachable_handlers.
10667         (remove_unreachable_handlers): Use mark_reachable_handlers and
10668         remove_unreachable_eh_regions.
10669         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
10670         and remove_unreachable_eh_regions.
10671
10672 2013-03-05  Richard Biener  <rguenther@suse.de>
10673
10674         PR middle-end/56525
10675         * loop-init.c (fix_loop_structure): Remove loops in two stages,
10676         not freeing them until the end.
10677
10678 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10679
10680         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
10681
10682 2013-03-05  Richard Biener  <rguenther@suse.de>
10683
10684         PR tree-optimization/56270
10685         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
10686         of loads after scheduling an SLP instance.
10687
10688 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
10689
10690         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
10691         tic6x.exp.
10692         (check_gcc_parallelize): Run guality.exp as a separate job from
10693         vect.exp with unsorted.exp and $(dg_target_exps) separately from
10694         struct-layout-1.exp with stackalign.exp.
10695
10696         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
10697
10698         PR middle-end/56461
10699         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
10700         load_index sbitmap even if some bit in it isn't set.
10701
10702         PR middle-end/56461
10703         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
10704         (discover_iteration_bound_by_body_walk): Change queues to
10705         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
10706         spelling in comment.  Call safe_push on queues[bound_index] directly.
10707         Release queues[queue_index] in every iteration unconditionally.
10708         Release bounds vector.
10709
10710         PR middle-end/56461
10711         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
10712         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
10713         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
10714         inner_phis vector.
10715
10716 2013-03-05  Richard Biener  <rguenther@suse.de>
10717
10718         PR lto/56515
10719         * tree-inline.c (remap_blocks_to_null): New function.
10720         (expand_call_inline): When expanding a call stmt without
10721         an associated block inline remap all callee blocks to NULL.
10722
10723 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
10724
10725         PR rtl-optimization/56494
10726         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
10727         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
10728         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
10729
10730         PR middle-end/56461
10731         * sel-sched-ir.c (free_sched_pools): Release
10732         succs_info_pool.stack[succs_info_pool.max_top] vectors too
10733         if succs_info_pool.max_top isn't -1.
10734
10735         PR bootstrap/56509
10736         * opts.c (opts_obstack, opts_concat): Moved to...
10737         * opts-common.c (opts_obstack, opts_concat): ... here.
10738
10739 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
10740
10741         PR middle-end/56461
10742         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
10743
10744 2013-03-04  Martin Jambor  <mjambor@suse.cz>
10745
10746         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
10747         all appropriate places.
10748
10749 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
10750
10751         PR tree-optimization/56424
10752         * ipa-split.c (split_function): Do not set the RSO flag if result is
10753         not by reference and its type is a register type.
10754
10755 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
10756
10757         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
10758         (microblaze_legitimate_pic_operand): Likewise
10759         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
10760         new function microblaze_legitimate_pic_operand
10761         * config/microblaze/microblaze-protos.h
10762         (microblaze_legitimate_pic_operand): Declare.
10763
10764 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
10765
10766         * config/microblaze/predicates.md (call_insn_simple_operand):
10767         New predicate for supported rtx code types.
10768         * config/microblaze/microblaze.md (call_internal1): Use
10769         call_insn_simple_operand predicate.
10770
10771 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
10772
10773         PR middle-end/56461
10774         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
10775         partitions.ordered_remove.
10776
10777         PR middle-end/56461
10778         * tree-vect-stmts.c (vectorizable_conversion): Don't call
10779         vec_oprnds0.create (1) for modifier == NONE.
10780
10781         PR middle-end/56461
10782         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
10783         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
10784         vec_oprnds1 right before pushing anything to it for
10785         scalar_shift_arg.
10786
10787         PR middle-end/56461
10788         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
10789         set nbbs to 0 instead of having separate code path.
10790         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
10791         instead of false as last argument if returning NULL.
10792
10793 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
10794
10795         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
10796         the attribute is now called "target" instead of "option".
10797         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
10798         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
10799         attribute/pragma name for TARGET_OPTION_VALID_P and
10800         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
10801         * doc/tm.texi: Regenerated.
10802
10803 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
10804
10805         * config/microblaze/microblaze.c:
10806         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
10807         * config/microblaze/microblaze.h: Add -mxl-reorder to
10808         DRIVER_SELF_SPECS.
10809         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
10810         instructions emitted if TARGET_REORDER.
10811         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
10812         or 0 for -m/-mno case, but initialises as 2 to detect default use case
10813         separately.
10814
10815 2013-03-01  Xinliang David Li  <davidxl@google.com>
10816
10817         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
10818         walk length.
10819
10820 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
10821
10822         PR middle-end/56461
10823         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
10824         vector even when returning true.  Fix up function comment formatting.
10825
10826         PR middle-end/56461
10827         * ira-build.c (ira_loop_nodes_count): New variable.
10828         (create_loop_tree_nodes): Initialize it.
10829         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
10830
10831         PR middle-end/56461
10832         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
10833         method on dr_chain and result_chain.
10834         * tree-vect-stmts.c (vectorizable_store): Only call
10835         result_chain.create if j == 0.
10836
10837         PR middle-end/56461
10838         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
10839         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
10840         before overwriting it.
10841
10842 2013-03-01  Tobias Burnus  <burnus@net-b.de>
10843
10844         * doc/extended.texi (C Extensions): Change order in @menu
10845         to match @node.
10846         (Other MIPS Built-in Functions): Move last MIPS entry before
10847         "picoChip Built-in Functions".
10848         (SH Built-in Functions): Move after RX Built-in Functions.
10849         * doc/gcc.texi (Introduction): Change order in @menu
10850         to match @node.
10851         * doc/md.texi (Constraints): Ditto.
10852         * gty.texi (Type Information): Ditto.
10853         (User-provided marking routines for template types): Make
10854         subsection.
10855         * doc/invoke.texi (AArch64 Options): Move before
10856         "Adapteva Epiphany Options".
10857
10858 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
10859             Jakub Jelinek  <jakub@redhat.com>
10860
10861         PR sanitizer/56454
10862         * asan.c (gate_asan): Lookup no_sanitize_address instead of
10863         no_address_safety_analysis attribute.
10864         * doc/extend.texi (no_address_safety_attribute): Rename to
10865         no_sanitize_address attribute, mention no_address_safety_analysis
10866         attribute as deprecated alias.
10867
10868 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
10869
10870         PR middle-end/56461
10871         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
10872         type to vec<vec<tree> > *.
10873         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
10874         to be vec<tree> instead of vec<tree> *, set vec_defs
10875         to vNULL and call vec_defs.create (number_of_vects), adjust other
10876         uses of vec_defs.
10877         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
10878         vectorizable_condition): Adjust vect_get_slp_defs callers.
10879
10880 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
10881
10882         * config/aarch64/aarch64.c
10883         (aarch64_float_const_representable): Remove unused variable.
10884
10885 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
10886
10887         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
10888
10889 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
10890
10891         * config/aarch64/aarch64-builtins.c
10892         (aarch64_init_simd_builtins): Make static.
10893
10894 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
10895
10896         * config/aarch64/aarch64.c
10897         (aarch64_simd_make_constant): Make static.
10898
10899 2013-02-28  Martin Jambor  <mjambor@suse.cz>
10900
10901         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
10902         with no initialization to the RHS of debug statements.
10903
10904 2013-02-28  Martin Jambor  <mjambor@suse.cz>
10905
10906         PR tree-optimization/56294
10907         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
10908         Adjust dumping.
10909         (get_access_replacement): Do not call create_access_replacement.
10910         Assert a replacement exists.
10911         (get_repl_default_def_ssa_name): Create the replacement declaration
10912         itself.
10913
10914 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10915
10916         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
10917         final_end_function.
10918
10919 2013-02-28  Marek Polacek  <polacek@redhat.com>
10920
10921         PR rtl-optimization/56466
10922         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
10923         if we're changing a loop.
10924         (peel_loops_completely): Likewise.
10925
10926 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
10927
10928         PR c++/55813
10929         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
10930
10931 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
10932
10933         PR target/56445
10934         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
10935         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
10936         INTX_FTYPE_FX, FX_FTYPE_INTX.
10937         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
10938
10939 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
10940
10941         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
10942         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
10943         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
10944         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
10945         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
10946         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
10947         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
10948         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
10949         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
10950         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
10951         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
10952         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
10953         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
10954         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
10955         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
10956         (avrxmega6): Increase max flash segments from 5 to 6.
10957         * config/avr/t-multilib: Regenerate.
10958         * config/avr/avr-tables.opt: Regenerate.
10959         * doc/avr-mmcu.texi: Regenerate.
10960
10961 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
10962
10963         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
10964         (avr_device_to_arch): Rename to avr_device_to_ld.
10965         (avr_device_to_as): New prototype.
10966         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
10967         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
10968         * config/avr/driver-avr.c (avr_device_to_as): New.
10969         (avr_device_to_arch): Rename to avr_device_to_ld.
10970
10971 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
10972
10973         PR middle-end/56461
10974         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
10975         method on dr_chain and result_chain.
10976
10977         PR middle-end/56461
10978         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
10979         pointer_set_destroy on not_executed_last_iteration.
10980
10981         PR middle-end/56461
10982         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
10983
10984         PR middle-end/56461
10985         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
10986         FOR_EACH_DEFINED_FUNCTION when freeing state.
10987
10988         PR middle-end/56461
10989         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
10990         pool_free.
10991         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
10992         overwriting it.
10993
10994         PR middle-end/56461
10995         * ipa-cp.c (decide_whether_version_node): Call vec_free on
10996         known_aggs[i].items and release known_aggs vector.
10997
10998         PR middle-end/56461
10999         * ipa-reference.c (propagate): Free node_info even for alias nodes.
11000
11001 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11002
11003         * config/microblaze/microblaze.c (microblaze_emit_compare):
11004         Use xor for EQ/NE comparisions.
11005         * config/microblaze/microblaze.md (cstoresf4): Add constraints
11006         (cbranchsf4): Adjust operator to comparison_operator.
11007
11008 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
11009
11010         PR middle-end/56461
11011         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
11012         vector.
11013         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
11014         vec_safe_push, always update *slot.
11015         (redirect_edge_var_map_clear): Use vec_free.
11016         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
11017         (free_var_map_entry): Use vec_free.
11018         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
11019         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
11020
11021 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
11022
11023         PR middle-end/45472
11024         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
11025         when the may_trap_p bit of the exprs being merged differs.
11026         Reorder tests for speculativeness in the logical and operator.
11027
11028 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
11029
11030         * incpath.c (add_standard_paths): Use reconcat instead of concat
11031         where appropriate and avoid leaking memory.
11032
11033         * opts.h: Include obstack.h.
11034         (opts_concat): New prototype.
11035         (opts_obstack): New declaration.
11036         * opts.c (opts_concat): New function.
11037         (opts_obstack): New variable.
11038         (init_options_struct): Call gcc_init_obstack on opts_obstack.
11039         (finish_options): Use opts_concat instead of concat
11040         and XOBNEWVEC instead of XNEWVEC.
11041         * opts-common.c (generate_canonical_option, decode_cmdline_option,
11042         generate_option): Likewise.
11043         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
11044         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
11045
11046         PR target/56455
11047         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
11048         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
11049
11050 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
11051
11052         PR middle-end/56461
11053         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
11054
11055 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
11056
11057         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
11058         (arm_block_move_unaligned_straight): Likewise.
11059         (arm_adjust_block_mem): Likewise.
11060
11061 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
11062
11063         PR target/48901
11064         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
11065         temp, cond and label.
11066         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
11067
11068         PR target/52500
11069         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
11070         * config/c6x/c6x.h (dbx_register_map): Update declaration.
11071
11072         PR target/52501
11073         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
11074         of prologue/epilogue functions.
11075
11076         PR target/52550
11077         * config/tilegx/tilegx.c (tilegx_expand_prologue):
11078         Remove unused variable cfa_offset.
11079         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
11080
11081         PR target/54639
11082         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
11083         type promotion to unsigned.
11084
11085         PR target/54640
11086         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
11087         for HOST_WIDE_INT of 32 bit / same size as int.
11088         (arm_block_move_unaligned_straight): Likewise.
11089         (arm_adjust_block_mem): Likewise.
11090
11091         PR target/54662
11092         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
11093         ALL_CFLAGS.
11094
11095 2013-02-26  Marek Polacek  <polacek@redhat.com>
11096
11097         PR tree-optimization/56426
11098         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
11099
11100 2013-02-26  Richard Biener  <rguenther@suse.de>
11101
11102         PR target/56444
11103         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
11104         unused variable loops.
11105
11106 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
11107
11108         PR tree-optimization/56448
11109         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
11110         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
11111         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
11112         later operands of the references, or even first operand for
11113         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
11114
11115         PR tree-optimization/56443
11116         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
11117         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
11118         to type_for_mode langhook.
11119
11120 2013-02-25  Matt Turner  <mattst88@gmail.com>
11121
11122         * doc/invoke.texi: Document r4700.
11123
11124 2013-02-25  Richard Biener  <rguenther@suse.de>
11125
11126         PR tree-optimization/56175
11127         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
11128         split out from ...
11129         (simplify_bitwise_binary): ... here.  Also guard the conversion
11130         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
11131
11132 2013-02-25  Catherine Moore  <clm@codesourcery.com>
11133
11134         Revert:
11135         2013-02-24  Catherine Moore  <clm@codesourcery.com>
11136             Maciej W. Rozycki  <macro@codesourcery.com>
11137             Tom de Vries  <tom@codesourcery.com>
11138             Nathan Sidwell  <nathan@codesourcery.com>
11139             Iain Sandoe  <iain@codesourcery.com>
11140             Nathan Froyd  <froydnj@codesourcery.com>
11141             Chao-ying Fu  <fu@mips.com>
11142
11143         * doc/extend.texi: (micromips, nomicromips, nocompression):
11144         Document new function attributes.
11145         * doc/invoke.texi (minterlink-compressed, mmicromips,
11146         m14k, m14ke, m14kec): Document new options.
11147         (minterlink-mips16): Update documentation.
11148         * doc/md.texi (ZC, ZD): Document new constraints.
11149         * configure.ac (gcc_cv_as_micromips): Check if linker
11150         supports the .set micromips directive.
11151         * configure: Regenerate.
11152         * config.in: Regenerate.
11153         * config/mips/mips-tables.opt: Regenerate.
11154         * config/mips/micromips.md: New file.
11155         * constraints.md (ZC, AD): New constraints.
11156         * config/mips/predicates.md (movep_src_register): New predicate.
11157         (movep_src_operand): New predicate.
11158         (non_volatile_mem_operand): New predicate.
11159         * config/mips/mips.md (multimem): New type.
11160         (length): Differentiate between 17-bit and 18-bit branch offsets.
11161         (MOVEP1, MOVEP2): New mode iterator.
11162         (mov_<load>l): Use ZC constraint.
11163         (mov_<load>r): Likewise.
11164         (mov_<store>l): Likewise.
11165         (mov_<store>r): Likewise.
11166         (*branch_equality<mode>_inverted): Add microMIPS support.
11167         (*branch_equality<mode>): Likewise.
11168         (*jump_absolute): Likewise.
11169         (indirect_jump_<mode>): Likewise.
11170         (tablejump_<mode>): Likewise.
11171         (<optab>_internal): Likewise.
11172         (sibcall_internal): Likewise.
11173         (sibcall_value_internal): Likewise.
11174         (prefetch): Use constraint ZD.
11175         * config/mips/mips.opt (minterlink-compressed): New option.
11176         (minterlink-mips16): Now an alias for minterlink-compressed.
11177         (mmicromips): New option.
11178         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
11179         (compare_and_swap_12): Likewise.
11180         (sync_add<mode>): Likewise.
11181         (sync_<optab>_12): Likewise.
11182         (sync_old_<optab>_12): Likewise.
11183         (sync_new_<optab>_12): Likewise.
11184         (sync_nand_12): Likewise.
11185         (sync_old_nand_12): Likewise.
11186         (sync_new_nand_12): Likewise.
11187         (sync_sub<mode>): Likewise.
11188         (sync_old_add<mode>): Likewise.
11189         (sync_old_sub<mode>): Likewise.
11190         (sync_new_add<mode>): Likewise.
11191         (sync_new_sub<mode>): Likewise.
11192         (sync_<optab><mode>): Likewise.
11193         (sync_old_<optab><mode>): Likewise.
11194         (sync_new_<optab><mode>): Likewise.
11195         (sync_nand<mode>): Likewise.
11196         (sync_old_nand<mode>): Likewise.
11197         (sync_new_nand<mode>): Likewise.
11198         (sync_lock_test_and_set<mode>): Likewise.
11199         (test_and_set_12): Likewise.
11200         (atomic_compare_and_swap<mode>): Likewise.
11201         (atomic_exchange<mode>_llsc): Likewise.
11202         (atomic_fetch_add<mode>_llsc): Likewise.
11203         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
11204         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
11205         (umips_save_restore_pattern_p): Likewise.
11206         (umips_load_store_pair_p): Likewise.
11207         (umips_output_load_store_pair): Likewise.
11208         (umips_movep_target_p): Likewise.
11209         (umips_12bit_offset_address_p): Likewise.
11210         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
11211         (mips_base_mips16): Rename this...
11212         (mips_base_compression_flags): ...to this. Update all uses.
11213         (mips_attribute_table): Add micromips, nomicromips and nocompression.
11214         (mips_mips16_decl_p): Delete.
11215         (mips_nomips16_decl_p): Delete.
11216         (mips_get_compress_on_flags): New function.
11217         (mips_get_compress_off_flags): New function.
11218         (mips_get_compress_mode): New function.
11219         (mips_get_compress_on_name): New function.
11220         (mips_get_compress_off_name): New function.
11221         (mips_insert_attributes): Support multiple compression types.
11222         (mips_merge_decl_attributes): Likewise.
11223         (umips_12bit_offset_address_p): New function.
11224         (mips_start_function_definition): Emit .set micromips directive.
11225         (mips_call_may_need_jalx_p): New function.
11226         (mips_function_ok_for_sibcall): Add microMIPS support.
11227         (mips_print_operand_punctuation): Support short delay slots and
11228         compact jumps.
11229         (umips_swm_mask, umips_swm_encoding): New.
11230         (umips_build_save_restore): New function.
11231         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
11232         (was_mips16_p): Remove.
11233         (old_compression_mode): New.
11234         (mips_set_compression_mode): New function.
11235         (mips_set_current_function): Add microMIPS support.
11236         (mips_option_override): Likewise.
11237         (umips_save_restore_pattern_p): New function.
11238         (umips_output_save_restore): New function.
11239         (umips_load_store_pair_p_1): New function.
11240         (umips_load_store_pair_p): New function.
11241         (umips_output_load_store_pair_1): New function.
11242         (umips_output_load_store_pair): New function.
11243         (umips_movep_target_p) New function.
11244         (mips_prepare_pch_save): Add microMIPS support.
11245         * config/mips/mips.h (TARGET_COMPRESSION): New.
11246         (TARGET_CPU_CPP_BUILTINS): Update macro
11247         to use new compression flags and to support microMIPS.
11248         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
11249         (MIPS_ARCH_FLOAT_SPEC): Likewise.
11250         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
11251         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
11252         (ASM_SPEC): Support mmicromips and mno-micromips.
11253         (M16STORE_REG_P): New macro.
11254         (MIPS_CALL): Support TARGET_MICROMIPS.
11255         (MICROMIPS_J): New macro.
11256         (mips_base_mips16): Rename this...
11257         (mips_base_compression_flags): ...to this.
11258         (UMIPS_12BIT_OFFSET_P): New macro.
11259         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
11260         (MULTILIB_DIRNAMES): Likewise.
11261
11262 2013-02-25  Tom de Vries  <tom@codesourcery.com>
11263
11264         PR rtl-optimization/56131
11265         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
11266         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
11267         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
11268
11269 2013-02-25  Tobias Burnus  <burnus@net-b.de>
11270
11271         * doc/invoke.texi (-fsanitize=): Move from optimization
11272         to debugging options.
11273
11274 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
11275
11276         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
11277
11278 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
11279             Alexander Monakov  <amonakov@ispras.ru>
11280
11281         PR middle-end/56077
11282         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
11283         flush pending lists also on non-jumps.  Adjust comment.
11284
11285 2013-02-24  Catherine Moore  <clm@codesourcery.com>
11286             Maciej W. Rozycki  <macro@codesourcery.com>
11287             Tom de Vries  <tom@codesourcery.com>
11288             Nathan Sidwell  <nathan@codesourcery.com>
11289             Iain Sandoe  <iain@codesourcery.com>
11290             Nathan Froyd  <froydnj@codesourcery.com>
11291             Chao-ying Fu  <fu@mips.com>
11292
11293         * doc/extend.texi: (micromips, nomicromips, nocompression):
11294         Document new function attributes.
11295         * doc/invoke.texi (minterlink-compressed, mmicromips,
11296         m14k, m14ke, m14kec): Document new options.
11297         (minterlink-mips16): Update documentation.
11298         * doc/md.texi (ZC, ZD): Document new constraints.
11299         * configure.ac (gcc_cv_as_micromips): Check if linker
11300         supports the .set micromips directive.
11301         * configure: Regenerate.
11302         * config.in: Regenerate.
11303         * config/mips/mips-tables.opt: Regenerate.
11304         * config/mips/micromips.md: New file.
11305         * constraints.md (ZC, AD): New constraints.
11306         * config/mips/predicates.md (movep_src_register): New predicate.
11307         (movep_src_operand): New predicate.
11308         (non_volatile_mem_operand): New predicate.
11309         * config/mips/mips.md (multimem): New type.
11310         (length): Differentiate between 17-bit and 18-bit branch offsets.
11311         (MOVEP1, MOVEP2): New mode iterator.
11312         (mov_<load>l): Use ZC constraint.
11313         (mov_<load>r): Likewise.
11314         (mov_<store>l): Likewise.
11315         (mov_<store>r): Likewise.
11316         (*branch_equality<mode>_inverted): Add microMIPS support.
11317         (*branch_equality<mode>): Likewise.
11318         (*jump_absolute): Likewise.
11319         (indirect_jump_<mode>): Likewise.
11320         (tablejump_<mode>): Likewise.
11321         (<optab>_internal): Likewise.
11322         (sibcall_internal): Likewise.
11323         (sibcall_value_internal): Likewise.
11324         (prefetch): Use constraint ZD.
11325         * config/mips/mips.opt (minterlink-compressed): New option.
11326         (minterlink-mips16): Now an alias for minterlink-compressed.
11327         (mmicromips): New option.
11328         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
11329         (compare_and_swap_12): Likewise.
11330         (sync_add<mode>): Likewise.
11331         (sync_<optab>_12): Likewise.
11332         (sync_old_<optab>_12): Likewise.
11333         (sync_new_<optab>_12): Likewise.
11334         (sync_nand_12): Likewise.
11335         (sync_old_nand_12): Likewise.
11336         (sync_new_nand_12): Likewise.
11337         (sync_sub<mode>): Likewise.
11338         (sync_old_add<mode>): Likewise.
11339         (sync_old_sub<mode>): Likewise.
11340         (sync_new_add<mode>): Likewise.
11341         (sync_new_sub<mode>): Likewise.
11342         (sync_<optab><mode>): Likewise.
11343         (sync_old_<optab><mode>): Likewise.
11344         (sync_new_<optab><mode>): Likewise.
11345         (sync_nand<mode>): Likewise.
11346         (sync_old_nand<mode>): Likewise.
11347         (sync_new_nand<mode>): Likewise.
11348         (sync_lock_test_and_set<mode>): Likewise.
11349         (test_and_set_12): Likewise.
11350         (atomic_compare_and_swap<mode>): Likewise.
11351         (atomic_exchange<mode>_llsc): Likewise.
11352         (atomic_fetch_add<mode>_llsc): Likewise.
11353         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
11354         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
11355         (umips_save_restore_pattern_p): Likewise.
11356         (umips_load_store_pair_p): Likewise.
11357         (umips_output_load_store_pair): Likewise.
11358         (umips_movep_target_p): Likewise.
11359         (umips_12bit_offset_address_p): Likewise.
11360         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
11361         (mips_base_mips16): Rename this...
11362         (mips_base_compression_flags): ...to this. Update all uses.
11363         (mips_attribute_table): Add micromips, nomicromips and nocompression.
11364         (mips_mips16_decl_p): Delete.
11365         (mips_nomips16_decl_p): Delete.
11366         (mips_get_compress_on_flags): New function.
11367         (mips_get_compress_off_flags): New function.
11368         (mips_get_compress_mode): New function.
11369         (mips_get_compress_on_name): New function.
11370         (mips_get_compress_off_name): New function.
11371         (mips_insert_attributes): Support multiple compression types.
11372         (mips_merge_decl_attributes): Likewise.
11373         (umips_12bit_offset_address_p): New function.
11374         (mips_start_function_definition): Emit .set micromips directive.
11375         (mips_call_may_need_jalx_p): New function.
11376         (mips_function_ok_for_sibcall): Add microMIPS support.
11377         (mips_print_operand_punctuation): Support short delay slots and
11378         compact jumps.
11379         (umips_swm_mask, umips_swm_encoding): New.
11380         (umips_build_save_restore): New function.
11381         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
11382         (was_mips16_p): Remove.
11383         (old_compression_mode): New.
11384         (mips_set_compression_mode): New function.
11385         (mips_set_current_function): Add microMIPS support.
11386         (mips_option_override): Likewise.
11387         (umips_save_restore_pattern_p): New function.
11388         (umips_output_save_restore): New function.
11389         (umips_load_store_pair_p_1): New function.
11390         (umips_load_store_pair_p): New function.
11391         (umips_output_load_store_pair_1): New function.
11392         (umips_output_load_store_pair): New function.
11393         (umips_movep_target_p) New function.
11394         (mips_prepare_pch_save): Add microMIPS support.
11395         * config/mips/mips.h (TARGET_COMPRESSION): New.
11396         (TARGET_CPU_CPP_BUILTINS): Update macro
11397         to use new compression flags and to support microMIPS.
11398         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
11399         (MIPS_ARCH_FLOAT_SPEC): Likewise.
11400         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
11401         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
11402         (ASM_SPEC): Support mmicromips and mno-micromips.
11403         (M16STORE_REG_P): New macro.
11404         (MIPS_CALL): Support TARGET_MICROMIPS.
11405         (MICROMIPS_J): New macro.
11406         (mips_base_mips16): Rename this...
11407         (mips_base_compression_flags): ...to this.
11408         (UMIPS_12BIT_OFFSET_P): New macro.
11409         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
11410         (MULTILIB_DIRNAMES): Likewise.
11411
11412 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
11413
11414         PR target/52555
11415         * target-globals.c (save_target_globals): For init_reg_sets and
11416         target_reinit remporarily set this_fn_optabs to this_target_optabs.
11417
11418 2013-02-22  James Grennahlgh  <james.greenhalgh@arm.com>
11419
11420         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
11421         * config/aarch64/t-aarch64
11422         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
11423
11424 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
11425
11426         PR inline-asm/56148
11427         * lra-constraints.c (process_alt_operands): Reload operand
11428         conflicting with earlier clobber only if no more other conflicting
11429         operands.
11430
11431 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
11432
11433         PR sanitizer/56393
11434         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
11435         if not linking a shared library.
11436
11437 2013-02-22  Seth LaForge  <sethml@google.com>
11438
11439         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
11440
11441 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
11442
11443         * config/arm/arm.md (split for extendsidi): Update condition.
11444         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
11445         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
11446         (qhs_zextenddi_cstr): Likewise.
11447
11448 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
11449
11450         PR middle-end/56420
11451         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
11452         avoid signed wrapping.
11453         (expand_mult): Handle properly multiplication by
11454         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
11455         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
11456         in the compiler if coeff is HOST_WIDE_INT_MIN.
11457         (expand_divmod): Don't make ext_op1 static, change it's type to
11458         uhwi.  Avoid undefined behavior in -INTVAL (op1).
11459
11460         PR rtl-optimization/50339
11461         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
11462         field.
11463         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
11464         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
11465         into splitting_ashiftrt field.
11466         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
11467         ASHIFTRT.
11468         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
11469         choices.
11470
11471 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
11472
11473         PR middle-end/56108
11474         * trans-mem.c (execute_tm_mark): Do not expand transactions that
11475         are sure to go irrevocable.
11476
11477 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
11478
11479         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
11480         scalars are valid operands.
11481
11482 2013-02-21  Martin Jambor  <mjambor@suse.cz>
11483
11484         PR tree-optimization/56310
11485         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
11486         only matching indices and non-negative final offsets.
11487         (intersect_aggregates_with_edge): Pass src_idx to
11488         agg_replacements_to_vector.  Pass src_idx insstead of index to
11489         intersect_with_agg_replacements.
11490
11491 2013-02-21  Martin Jambor  <mjambor@suse.cz>
11492
11493         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
11494         instead of hard-wired defaults.
11495
11496 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
11497
11498         * doc/invoke.texi (MIPS Options): Update documentation of the
11499         floating-point multiply-accumulate instruction restrictions.
11500
11501 2013-02-21  Kostya Serebryany  <kcc@google.com>
11502
11503         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
11504         asan_shadow_offset on x86_64 linux.
11505
11506 2013-02-21  Richard Biener  <rguenther@suse.de>
11507
11508         PR tree-optimization/56415
11509         Revert
11510         2013-02-11  Richard Biener  <rguenther@suse.de>
11511
11512         PR tree-optimization/56273
11513         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
11514         first VRP run.
11515
11516 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
11517
11518         PR bootstrap/56258
11519         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
11520         instead of @itemx.
11521
11522         PR inline-asm/56405
11523         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
11524         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
11525
11526 2013-02-20  Jan Hubicka  <jh@suse.cz>
11527
11528         PR tree-optimization/56265
11529         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
11530         when target is referenced for first time.
11531
11532 2013-02-20  Richard Biener  <rguenther@suse.de>
11533
11534         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
11535         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
11536         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
11537         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
11538         not return anything.
11539         (rename_ssa_copies): Do not remove unused locals.
11540         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
11541         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
11542         * passes.c (execute_function_todo): Do not schedule unused locals
11543         removal if cleanup_tree_cfg did something.
11544         * tree-ssa-live.c (remove_unused_locals): Dump statistics
11545         about the number of removed locals.
11546
11547 2013-02-20  Richard Biener  <rguenther@suse.de>
11548
11549         PR tree-optimization/56398
11550         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
11551
11552 2013-02-20  Martin Jambor  <mjambor@suse.cz>
11553
11554         PR tree-optimization/55334
11555         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
11556         restricted pointers to arrays.
11557
11558 2013-02-20  Richard Biener  <rguenther@suse.de>
11559             Jakub Jelinek  <jakub@redhat.com>
11560
11561         PR tree-optimization/56396
11562         * tree-ssa-ccp.c (n_const_val): New static variable.
11563         (get_value): Return NULL for SSA names we don't have a lattice
11564         entry for.
11565         (ccp_initialize): Initialize n_const_val.
11566         * tree-ssa-copy.c (n_copy_of): New static variable.
11567         (init_copy_prop): Initialize n_copy_of.
11568         (get_value): Return NULL_TREE for SSA names we don't have a
11569         lattice entry for.
11570
11571 2013-02-20  Martin Jambor  <mjambor@suse.cz>
11572
11573         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
11574
11575 2013-02-20  Richard Biener  <rguenther@suse.de>
11576
11577         * genpreds.c (write_lookup_constraint): Do not compare first
11578         letter of the constraint again.
11579
11580 2013-02-20  Richard Biener  <rguenther@suse.de>
11581
11582         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
11583         and ceil_log2.
11584         (get_use_iv_cost): Terminate hashtable walk when coming across
11585         an empty entry.
11586
11587 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
11588
11589         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
11590         reassociation for avx2 targets.
11591
11592 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11593
11594         * config/microblaze/microblaze.c: microblaze_has_clz = 0
11595         Add version check for v8.10.a to enable microblaze_has_clz
11596         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
11597         version and TARGET_PATTERN_COMPARE check
11598         * config/microblaze/microblaze.md: New clzsi2 instruction
11599
11600 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11601
11602         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
11603         function before branching.
11604
11605 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
11606
11607         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
11608         DUMP_INSN_RTX_UID.
11609         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
11610
11611 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
11612
11613         PR middle-end/55889
11614         * sel-sched.c: Include ira.h.
11615         (implicit_clobber_conflict_p): New function.
11616         (moveup_expr): Use it.
11617         * Makefile.in (sel-sched.o): Depend on ira.h.
11618
11619 2013-02-19  Richard Biener  <rguenther@suse.de>
11620
11621         PR tree-optimization/56384
11622         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
11623         (vn_hash_type): Split out from ...
11624         (vn_hash_constant_with_type): ... here.
11625         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
11626         (vn_phi_eq): Compare types from vn_phi_s structure.
11627         (vn_phi_lookup): Populate vn_phi_s type.
11628         (vn_phi_insert): Likewise.
11629
11630 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
11631
11632         PR tree-optimization/56350
11633         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
11634         if haven't found reduction or nested cycle operand, rather than
11635         asserting we must find it.
11636
11637         PR tree-optimization/56381
11638         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
11639         to fold_build3.
11640
11641 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
11642             Jakub Jelinek  <jakub@redhat.com>
11643
11644         PR target/52555
11645         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
11646         (swap_optab_enable): Same.
11647         (init_all_optabs): Use argument instead of global.
11648         * tree.h (struct tree_optimization_option): New field target_optabs.
11649         * expr.h (init_all_optabs): Add argument to prototype.
11650         (TREE_OPTIMIZATION_OPTABS): New.
11651         (save_optabs_if_changed): Protoize.
11652         * optabs.h: Declare this_fn_optabs.
11653         * optabs.c (save_optabs_if_changed): New.
11654         Declare this_fn_optabs.
11655         (init_optabs): Add argument to init_all_optabs() call.
11656         * function.c (invoke_set_current_function_hook): Handle per
11657         function optabs.
11658         * function.h (struct function): New field optabs.
11659         * config/mips/mips.c (mips_set_mips16_mode): Handle when
11660         optimization_current_node has changed.
11661         * target-globals.h (save_target_globals_default_opts): Protoize.
11662         * target-globals.c (save_target_globals_default_opts): New.
11663
11664 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11665
11666         PR target/56347
11667         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
11668         registers %fr12 and %fr12R as call used.
11669
11670         PR target/56214
11671         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
11672         and HImode, require all displacements to be an integer multiple of
11673         their mode size.
11674         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
11675         only allow QImode and HImode when reload is in progress and strict is
11676         true.  Likewise for symbolic addresses.  Use base14_operand to check
11677         displacements in REG+BASE addresses.
11678
11679 2013-02-18  Richard Biener  <rguenther@suse.de>
11680
11681         PR tree-optimization/56366
11682         * tree-vect-loop.c (get_initial_def_for_induction): Properly
11683         handle sign-conversion of outer-loop initial induction value.
11684
11685 2013-02-18  Richard Biener  <rguenther@suse.de>
11686
11687         PR middle-end/56349
11688         * cfghooks.c (merge_blocks): If we merge a latch into another
11689         block adjust references to it.
11690         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
11691         (verify_loop_structure): Verify that a recorded latch is in fact
11692         a latch.
11693
11694 2013-02-18  Richard Biener  <rguenther@suse.de>
11695
11696         PR tree-optimization/56321
11697         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
11698         order SSA name release and virtual operand unlinking.
11699
11700 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11701
11702         * config/microblaze/microblaze.md (save_stack_block): Define.
11703         (restore_stack_block): Likewise.
11704
11705 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11706
11707         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
11708         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
11709         * config/microblaze/microblaze.c (microblaze_option_override):
11710         Bail out early for PIC modes when target does not support PIC.
11711
11712 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
11713
11714         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
11715         Replace with a microblaze version.
11716         (microblaze_trampoline_init): Adapt for microblaze.
11717         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
11718         microblaze.
11719
11720 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
11721             Dodji Seketeli  <dodji@redhat.com>
11722
11723         PR asan/56330
11724         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
11725         (instrument_mem_region_access): Do not forget to always put
11726         instrumentation of the of 'base' and 'base + len' in a "if (len !=
11727         0) statement, even for cases where either 'base' or 'base + len'
11728         are not instrumented -- because they have been previously
11729         instrumented.  Simplify the logic by putting all the statements
11730         instrument 'base + len' inside a sequence, and then insert that
11731         sequence right before the current insertion point.  Then, to
11732         instrument 'base + len', just get an iterator on that statement.
11733         And do not forget to update the pointer to iterator the function
11734         received as argument.
11735
11736 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
11737
11738         PR rtl-optimization/56348
11739         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
11740
11741 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
11742
11743         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
11744         (clean_graph_dump_file): Pass base to start_graph_dump.
11745
11746 2013-02-14  Richard Henderson  <rth@redhat.com>
11747
11748         PR target/55941
11749         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
11750
11751 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
11752
11753         * collect2-aix.h: Define F_LOADONLY.
11754
11755 2013-02-14  Richard Biener  <rguenther@suse.de>
11756
11757         PR lto/50494
11758         * varasm.c (output_constant_def_1): Get the decl representing
11759         the constant as argument.
11760         (output_constant_def): Wrap output_constant_def_1.
11761         (make_decl_rtl): Use output_constant_def_1 with the decl
11762         representing the constant.
11763         (build_constant_desc): Optionally re-use a decl already
11764         representing the constant.
11765         (tree_output_constant_def): Adjust.
11766
11767 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
11768
11769         Fix an asan crash
11770         * asan.c (instrument_builtin_call):  Really put the length of the
11771         second source argument into src1_len.
11772
11773 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
11774
11775         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
11776         argument.  If it is false, don't create edge from then_bb to
11777         fallthru_bb.
11778         (insert_if_then_before_iter): Pass true to it.
11779         (build_check_stmt): Pass false to it.
11780         (transform_statements): Flush hash table only on extended basic
11781         block boundaries, rather than at the beginning of every bb.
11782         Don't flush hash table on nonfreeing_call_p calls.
11783         * tree-flow.h (nonfreeing_call_p): New prototype.
11784         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
11785
11786 2013-02-13  David S. Miller  <davem@davemloft.net>
11787
11788         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
11789
11790 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
11791
11792         PR target/56184
11793         * ira.c (max_regno_before_ira): Move from ...
11794         (ira): ... here.
11795         (fix_reg_equiv_init): Use max_regno_before_ira instead of
11796         vec_safe_length.
11797
11798 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
11799
11800         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
11801
11802 2013-02-13  Richard Biener  <rguenther@suse.de>
11803
11804         PR lto/56295
11805         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
11806         globals in MEM_REFs.
11807
11808 2013-02-13  Richard Biener  <rguenther@suse.de>
11809
11810         * loop-init.c (loop_optimizer_init): Clear loop state when
11811         re-initializing preserved loops.
11812         * loop-unswitch.c (unswitch_single_loop): Return whether
11813         we unswitched the loop.  Do not verify loop state here.
11814         (unswitch_loops): When we unswitched a loop discover new loops.
11815
11816 2013-02-13  Kostya Serebryany  <kcc@google.com>
11817
11818         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
11819         on x86_64 linux.
11820         * sanitizer.def: Rename __asan_init to __asan_init_v1.
11821
11822 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
11823
11824         Avoid instrumenting duplicated memory access in the same basic block
11825         * Makefile.in (asan.o): Add new dependency on hash-table.h
11826         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
11827         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
11828         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
11829         (free_mem_ref_resources, has_mem_ref_been_instrumented)
11830         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
11831         (get_mem_ref_of_assignment): New functions.
11832         (get_mem_refs_of_builtin_call): Extract from
11833         instrument_builtin_call and tweak a little bit to make it fit with
11834         the new signature.
11835         (instrument_builtin_call): Use the new
11836         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
11837         of is_gimple_builtin_call.
11838         (instrument_derefs, instrument_mem_region_access): Insert the
11839         instrumented memory reference into the hash table.
11840         (maybe_instrument_assignment): Renamed instrument_assignment into
11841         this, and change it to advance the iterator when instrumentation
11842         actually happened and return true in that case.  This makes it
11843         homogeneous with maybe_instrument_assignment, and thus give a
11844         chance to callers to be more 'regular'.
11845         (transform_statements): Clear the memory reference hash table
11846         whenever we enter a new BB, when we cross a function call, or when
11847         we are done transforming statements.  Use
11848         maybe_instrument_assignment instead of instrumentation.  No more
11849         need to special case maybe_instrument_assignment and advance the
11850         iterator after calling it; it's now handled just like
11851         maybe_instrument_call.  Update comment.
11852
11853 2013-02-13  Richard Biener  <rguenther@suse.de>
11854
11855         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
11856         Fix loop discovery code.
11857
11858 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
11859
11860         PR inline-asm/56148
11861         * lra-constraints.c (process_alt_operands): Match early clobber
11862         operand with itself.  Check conflicts with earlyclobber only if
11863         the operand is not reloaded.  Prefer to reload conflicting operand
11864         if earlyclobber and matching operands are the same.
11865
11866 2013-02-12  Richard Biener  <rguenther@suse.de>
11867
11868         PR lto/56297
11869         * lto-streamer-out.c (write_symbol): Do not output symbols
11870         for hard register variables.
11871
11872 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
11873
11874         PR target/54222
11875         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
11876         (umulsidi3_insn, mulsidi3_insn): New insns.
11877
11878 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
11879
11880         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
11881         (struct tune_params): Add vec_costs field.
11882         * config/arm/arm.c (arm_builtin_vectorization_cost)
11883         (arm_add_stmt_cost): New functions.
11884         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
11885         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
11886         (arm_default_vec_cost): New struct of type cpu_vec_costs.
11887         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
11888         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
11889         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
11890         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
11891
11892 2013-02-12  Richard Biener  <rguenther@suse.de>
11893
11894         PR lto/56295
11895         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
11896         decls again if possible.
11897
11898 2013-02-12  Richard Biener  <rguenther@suse.de>
11899
11900         PR middle-end/56288
11901         * tree-ssa.c (verify_ssa_name): Fix check, move
11902         SSA_NAME_IN_FREE_LIST check up.
11903
11904 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
11905             Steven Bosscher   <steven@gcc.gnu.org>
11906
11907         PR rtl-optimization/56151
11908         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
11909         equal to op0 or op1, and last_insn pattern is CODE operation
11910         with MEM dest and one of the operands matches that MEM.
11911
11912 2013-02-11  Sriraman Tallam  <tmsriramgoogle.com>
11913
11914         * doc/extend.texi: Document Function Multiversioning and "default"
11915         parameter string to target attribute.
11916         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
11917         target attribute parameter is "default".
11918         (ix86_compare_version_priority): Remove checks for target attribute.
11919         (ix86_mangle_function_version_assembler_name): Change error to sorry.
11920         Remove check for target attribute equal to NULL. Add assert.
11921         (ix86_generate_version_dispatcher_body): Change error to sorry.
11922
11923 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
11924             Jack Howarth  <howarth@bromo.med.uc.edu>
11925             Patrick Marlier  <patrick.marlier@gmail.com>
11926
11927         PR libitm/55693
11928         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
11929         define ENDFILE_SPEC as TM_DESTRUCTOR.
11930         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
11931
11932 2013-02-11  Alexander Potapenko  <glider@google.com>
11933             Jack Howarth  <howarth@bromo.med.uc.edu>
11934             Jakub Jelinek  <jakub@redhat.com>
11935
11936         PR sanitizer/55617
11937         * config/darwin.c (cdtor_record): Rename ctor_record.
11938         (sort_cdtor_records): Rename sort_ctor_records.
11939         (finalize_dtors): New routine to sort destructors by
11940         priority before use in assemble_integer.
11941         (machopic_asm_out_destructor): Use finalize_dtors if needed.
11942
11943 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
11944
11945         PR rtl-optimization/56275
11946         * simplify-rtx.c (avoid_constant_pool_reference): Check that
11947         offset is non-negative and less than cmode size before
11948         calling simplify_subreg.
11949
11950 2013-02-11  Richard Biener  <rguenther@suse.de>
11951
11952         PR tree-optimization/56264
11953         * cfgloop.h (fix_loop_structure): Adjust prototype.
11954         * loop-init.c (fix_loop_structure): Return the number of
11955         newly discovered loops.
11956         * tree-cfgcleanup.c (repair_loop_structures): When new loops
11957         are discovered, do a full loop-closed SSA rewrite.
11958
11959 2013-02-11  Richard Biener  <rguenther@suse.de>
11960
11961         PR tree-optimization/56273
11962         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
11963         first VRP run.
11964         (check_array_ref): Fix missing newline in dumps.
11965         (search_for_addr_array): Likewise.
11966
11967 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
11968
11969         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
11970
11971 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
11972
11973         PR target/56256
11974         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
11975
11976 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
11977
11978         PR rtl-optimization/56246
11979         * lra-constraints.c (simplify_operand_subreg): Try to reuse
11980         reload pseudo.
11981         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
11982         constraints are satisfied.
11983
11984 2013-02-08  Jeff Law  <law@redhat.com>
11985
11986         PR debug/53948
11987         * emit-rtl.c (reg_is_parm_p): New function.
11988         * regs.h (reg_is_parm_p): New prototype.
11989         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
11990         callee-clobbered registers.
11991
11992 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
11993
11994         PR target/56043
11995         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
11996         If there is no implicit builtin declaration, just return NULL.
11997
11998 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
11999
12000         * config/i386/sse.md (FMAMODEM): New mode iterator.
12001         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
12002         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
12003
12004 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
12005
12006         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
12007         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
12008         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
12009
12010 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
12011
12012         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
12013         (microblaze*-*-elf): Likewise.
12014         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
12015         LINK_SPEC.
12016         * config/microblaze/microblaze-c.c: Add builtin defines for
12017         _LITTLE_ENDIAN and _BIG_ENDIAN.
12018         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
12019         add to TARGET_DEFAULT flags.
12020         Expand ASM_SPEC and LINK_SPEC.
12021         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
12022         * config/microblaze/microblaze.md: Update extendsidi2 and
12023         movdi_internal instructions to use low-order / high-order reg
12024         print_operands.
12025         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
12026         options and inversemask / mask of LITTLE_ENDIAN.
12027         * config/microblaze/t-microblaze: Expand multilib options to
12028         include mlittle-endian (le) and update exceptions patterns.
12029
12030 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
12031
12032         PR rtl-optimization/56195
12033         * lra-constraints.c (get_reload_reg): Don't reuse regs
12034         if they have smaller mode than requested, if they have
12035         wider mode than requested, try to return a SUBREG.
12036
12037         PR tree-optimization/56250
12038         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
12039         if type is unsigned and code isn't MULT_EXPR.
12040
12041 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
12042
12043         PR tree-optimization/56064
12044         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
12045         bits according to mode.
12046         * fixed-value.h (fixed_from_double_int)
12047         (const_fixed_from_double_int): Adjust comments.
12048
12049 2013-02-08  Richard Biener  <rguenther@suse.de>
12050
12051         PR lto/56231
12052         * lto-streamer.h (struct data_in): Remove current_file, current_line
12053         and current_col members.
12054         * lto-streamer-out.c (lto_output_location): Stream changed bits
12055         en-block for efficiency.
12056         * lto-streamer-in.c (clear_line_info): Remove.
12057         (lto_input_location): Cache current file, line and column
12058         globally via local statics.  Read changed bits en-block.
12059         (input_function): Do not call clear_line_info.
12060         (lto_read_body): Likewise.
12061         (lto_input_toplevel_asms): Likewise.
12062
12063 2013-02-08  Michael Matz  <matz@suse.de>
12064
12065         PR tree-optimization/52448
12066         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
12067         (nt_call_phase): New static.
12068         (add_or_mark_expr): Only mark accesses with newer phase than any
12069         call seen.
12070         (nonfreeing_call_p): New.
12071         (nt_init_block): Update nt_call_phase, mark blocks as visited.
12072         (nt_fini_block): Keep blocks marked as visited.
12073         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
12074
12075 2013-02-08  Richard Biener  <rguenther@suse.de>
12076
12077         * ira.c (ira): Free broken dominator information.
12078
12079 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
12080
12081         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
12082
12083 2013-02-08  Marek Polacek  <polacek@redhat.com>
12084
12085         * cfgloop.c (verify_loop_structure): Add more checking of headers.
12086
12087 2013-02-08  Richard Biener  <rguenther@suse.de>
12088
12089         PR middle-end/56181
12090         * cfgloop.h (flow_loops_find): Adjust.
12091         (bb_loop_header_p): Declare.
12092         * cfgloop.c (bb_loop_header_p): New function split out from ...
12093         (flow_loops_find): ... here.  Adjust function signature,
12094         support incremental loop structure update.
12095         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
12096         * cfgloopmanip.c (fix_loop_structure): Move ...
12097         * loop-init.c (fix_loop_structure): ... here.
12098         (apply_loop_flags): Split out from ...
12099         (loop_optimizer_init): ... here.
12100         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
12101         in incremental mode, only remove dead loops here.
12102
12103 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
12104
12105         PR target/54222
12106         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
12107         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
12108         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
12109         (*round<mode>3.libgcc): New insns for fixed-modes.
12110         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
12111         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
12112         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
12113         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
12114         implementations.  Define to __builtin_avr_absFX,
12115         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
12116         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
12117         __builtin_avr_countlsFX, respectively.
12118         * config/avr/avr-c.c (target.h): Include it.
12119         (enum avr_builtin_id): New enum.
12120         (avr_resolve_overloaded_builtin): New static function.
12121         (avr_register_target_pragmas): Use it to set
12122         targetm.resolve_overloaded_builtin.
12123         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
12124         tree nodes used by DEF_BUILTIN.
12125         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
12126         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
12127         <AVR_BUILTIN_xxBITS>: Same.
12128
12129 2013-02-08  Richard Biener  <rguenther@suse.de>
12130
12131         * cfgloop.c (verify_loop_structure): Properly handle
12132         a loop exiting to another loop header.
12133         * ira-int.h (ira_loops): Remove.
12134         * ira.c (ira_loops): Remove.
12135         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
12136         (do_reload): Use loop_optimizer_finalize.
12137         * ira-build.c (create_loop_tree_nodes): Use get_loops and
12138         number_of_loops to access the loop tree.
12139         (more_one_region_p): Likewise.
12140         (finish_loop_tree_nodes): Likewise.
12141         (rebuild_regno_allocno_maps): Likewise.
12142         (mark_loops_for_removal): Likewise.
12143         (mark_all_loops_for_removal): Likewise.
12144         (remove_unnecessary_regions): Likewise.
12145         (ira_build): Likewise.
12146         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
12147
12148 2013-02-08  Richard Biener  <rguenther@suse.de>
12149
12150         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
12151         * ipa-pure-const.c (analyze_function): Avoid calling
12152         mark_irreducible_loops twice.
12153         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
12154
12155 2013-02-07  David S. Miller  <davem@davemloft.net>
12156
12157         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
12158         on 'reg'.
12159         * var-tracking.c (vt_add_function_parameter): Test the presence of
12160         HAVE_window_save properly and do not remap argument registers when
12161         we have a leaf function.
12162
12163 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
12164
12165         PR bootstrap/56227
12166         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
12167         instead of "ll".
12168         * config/i386/i386.c (ix86_print_operand): Ditto.
12169
12170 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
12171
12172         * lra-constraints.c (process_alt_operands): Fix recently added comment.
12173
12174 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
12175
12176         PR rtl-optimization/56225
12177         * lra-constraints.c (process_alt_operands): Check that reload hard
12178         reg can hold value for strict_low_part.
12179
12180 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
12181
12182         PR debug/56154
12183         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
12184         dwarf2out_end_function.
12185         (in_first_function_p, maybe_at_text_label_p,
12186         first_loclabel_num_not_at_text_label): New variables.
12187         (dwarf2out_var_location): In the first function find out
12188         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
12189         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
12190         functions.
12191
12192 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
12193
12194         PR rtl-optimization/56178
12195         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
12196         SUBREG of a register.  Tidy up related block of code.
12197         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
12198         note if the source is a register or a SUBREG of a register.
12199
12200 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
12201
12202         PR target/56228
12203         * config/rs6000/rs6000.md (ptrm): New mode attr.
12204         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
12205         call_value_indirect_aix<pttrsize>,
12206         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
12207         m in constraints.
12208
12209 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
12210
12211         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
12212         if -bnortl. Convert to strcmp and strncmp.
12213
12214 2013-02-07  Alan Modra  <amodra@gmail.com>
12215
12216         PR target/54009
12217         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
12218         addresses won't wrap when offsetting.
12219         (rs6000_secondary_reload): Provide secondary reloads needed for
12220         wrapping LO_SUM addresses.
12221
12222 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
12223
12224         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
12225         MACH, just __MACH__.
12226
12227 2013-02-06  Richard Biener  <rguenther@suse.de>
12228
12229         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
12230         instead of calling fix_loop_structure.
12231
12232 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
12233
12234         PR middle-end/56217
12235         * omp-low.c (use_pointer_for_field): Return false if
12236         lower_send_shared_vars doesn't generate any copy-out code.
12237
12238 2013-02-06  Tom de Vries  <tom@codesourcery.com>
12239
12240         PR rtl-optimization/56131
12241         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
12242         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
12243         of the label is NULL.  Add comment.
12244
12245 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
12246
12247         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
12248
12249         PR sanitizer/55374
12250         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
12251         (STATIC_LIBTSAN_LIBS): Likewise.
12252         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
12253         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
12254         is defined, don't add anything else beyond that.
12255         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
12256         (LINK_COMMAND_SPEC): Use them.
12257
12258         PR tree-optimization/56205
12259         * tree-stdarg.c (check_all_va_list_escapes): Return true if
12260         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
12261         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
12262
12263 2013-02-05  Richard Biener  <rguenther@suse.de>
12264
12265         PR tree-optimization/53342
12266         PR tree-optimization/53185
12267         * tree-vectorizer.h (vect_check_strided_load): Remove.
12268         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
12269         not disallow peeling for vectorized strided loads.
12270         (vect_check_strided_load): Make static and simplify.
12271         (vect_analyze_data_refs): Adjust.
12272         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
12273         correctly when vectorizing strided loads.
12274
12275 2013-02-05  Richard Biener  <rguenther@suse.de>
12276
12277         * doc/install.texi: Refer to ISL, not PPL.
12278
12279 2013-02-05  Jan Hubicka  <jh@suse.cz>
12280
12281         PR tree-optimization/55789
12282         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
12283
12284 2013-02-05  Jan Hubicka  <jh@suse.cz>
12285
12286         PR tree-optimization/55789
12287         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
12288         the dead call anyway.
12289
12290 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
12291
12292         PR sanitizer/55374
12293         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
12294
12295 2013-02-04  Alexander Potapenko  <glider@google.com>
12296             Jack Howarth  <howarth@bromo.med.uc.edu>
12297             Jakub Jelinek  <jakub@redhat.com>
12298
12299         PR sanitizer/55617
12300         * config/darwin.c (sort_ctor_records): Stabilized qsort
12301         on constructor priority by using original position.
12302         (finalize_ctors): New routine to sort constructors by
12303         priority before use in assemble_integer.
12304         (machopic_asm_out_constructor): Use finalize_ctors if needed.
12305
12306 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
12307
12308         PR libstdc++/54314
12309         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
12310         about visibility on artificial decls.
12311         * config/sol2.c (solaris_assemble_visibility): Likewise.
12312
12313 2013-02-04  Kai Tietz  <ktietz@redhat.com>
12314
12315         PR target/56186
12316         * config/i386/i386.c (function_value_ms_64): Add additional valtype
12317         argument and improve checking of return-argument types for 16-byte
12318         modes.
12319         (ix86_function_value_1): Add additional valtype argument on call
12320         of function_value_64.
12321         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
12322         handling infunction_value_64 function.
12323
12324 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
12325
12326         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
12327
12328 2013-02-04  Richard Biener  <rguenther@suse.de>
12329
12330         PR tree-optimization/56188
12331         * tree-ssa-structalias.c (label_visit): Consider case with
12332         initially non-empty points-to set.
12333         (perform_var_substitution): Dump node mapping and clean up.
12334
12335 2013-02-04  Richard Guenther  <rguenther@suse.de>
12336
12337         PR lto/56168
12338         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
12339         node prevail as last resort.
12340         (lto_symtab_merge_decls): Remove guard on LTRANS here.
12341         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
12342
12343 2013-02-04  Richard Biener  <rguenther@suse.de>
12344
12345         PR tree-optimization/56113
12346         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
12347         Merge into ...
12348         (equiv_class_lookup_or_add): ... this.
12349         (label_visit): Adjust and fix error in previous patch.
12350         (perform_var_substitution): Adjust.
12351
12352 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
12353
12354         * config/sh/divtab.c: Fix formatting and comments throughout the file.
12355         * config/sh/sh4-300.md: Likewise.
12356         * config/sh/sh4a.md: Likewise.
12357         * config/sh/constraints.md: Likewise.
12358         * config/sh/sh.md: Likewise.
12359         * config/sh/netbsd-elf.h: Likewise.
12360         * config/sh/predicates.md: Likewise.
12361         * config/sh/sh-protos.h: Likewise.
12362         * config/sh/ushmedia.h: Likewise.
12363         * config/sh/linux.h: Likewise.
12364         * config/sh/sh.c: Likewise.
12365         * config/sh/superh.h: Likewise.
12366         * config/sh/elf.h: Likewise.
12367         * config/sh/sh4.md: Likewise.
12368         * config/sh/sh.h: Likewise.
12369
12370 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12371
12372         * config/pa/constraints.md: Adjust unused letters.  Change "T"
12373         constraint to match_test floating_point_store_memory_operand().
12374         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
12375         (base14_operand): New.
12376         (floating_point_store_memory_operand): New.
12377         (integer_store_memory_operand): Revise to use base14_operand and
12378         reg_plus_base_memory_operand.
12379         (move_dest_operand): Allow symbolic_memory_operands.
12380         (symbolic_memory_operand): Check for LO_SOM.
12381         (symbolic_operand): Change default case to break.
12382         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
12383         CONST_DOUBLE values to be reloaded by putting them into memory when
12384         the destination is a floating point register.
12385         (movdf): Remove code to handle CONST_DOUBLE.
12386         (movsf): Likewise.
12387         (reload_indf_r1): New.
12388         (reload_insf_r1): New.
12389         Consistently use "Q" and "T" constraints with integer and floating
12390         point move instructions, respectively.
12391         (movdi): Remove FAIL.
12392         Change predicate for source operand unamed DImode move from
12393         general_operand to move_src_operand.
12394         (umulsidi3): Change predicate for destination operand to
12395         register_operand.
12396         Likewise for similar unamed patterns.
12397         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
12398         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
12399         (hppa_legitimize_address): Simplify mask calculation.
12400         (pa_emit_move_sequence): Revised handling of secondary reloads from
12401         REG+D addresses for floating point loads and stores.  Directly handle
12402         loading CONST0_RTX (mode) to a floating point register.
12403         (pa_secondary_reload): Handle reloading DF and SFmode constant values
12404         to floating point registers.  Don't restrict secondary reloads to
12405         floating point registers to integer modes.  Revise some comments and
12406         cleanup some code.
12407         (TARGET_LEGITIMATE_ADDRESS_P): Define.
12408         (pa_legitimate_address_p): New.
12409         (pa_legitimize_reload_address): New.
12410         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
12411         (STRICT_REG_OK_FOR_BASE_P): New.
12412         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
12413         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
12414
12415 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
12416             Andrew Dixie  <andrewd@gentrack.com>
12417
12418         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
12419         flag set.
12420
12421 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
12422
12423         * expmed.c (extract_bit_field_1): Pass the full width of the
12424         structure to get_best_reg_extraction_insn.
12425
12426 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
12427
12428         PR target/54601
12429         * configure.ac (use_cxa_atexit): Add AIX.
12430         * configure: Regenerate.
12431
12432         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
12433
12434 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
12435
12436         PR debug/54793
12437         * final.c (need_profile_function): New variable.
12438         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
12439         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
12440         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
12441         notes, targetm.asm_out.function_prologue doesn't emit anything,
12442         HAVE_prologue and profiler should be emitted before prologue,
12443         set need_profile_function instead of emitting it.
12444         (final_scan_insn): If need_profile_function, emit
12445         profile_function on the first NOTE_INSN_BASIC_BLOCK or
12446         NOTE_INSN_FUNCTION_BEG note.
12447
12448 2013-02-01  Richard Henderson  <rth@redhat.com>
12449
12450         * config/rs6000/rs6000.md (smulditi3): New.
12451         (umulditi3): New.
12452
12453         * config/alpha/alpha.md (umulditi3): New.
12454
12455 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
12456
12457         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
12458         (ASM_OUTPUT_ALIGNED_LOCAL): New.
12459
12460 2013-02-01  Richard Biener  <rguenther@suse.de>
12461
12462         PR tree-optimization/56113
12463         * tree-ssa-structalias.c (label_visit): Reduce work for
12464         single-predecessor nodes.
12465
12466 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
12467
12468         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
12469         range isn't testing for zero.
12470
12471 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
12472
12473         PR middle-end/56113
12474         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
12475
12476 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
12477             Nick Clifton  <nickc@redhat.com>
12478
12479         * config/v850/constraints.md (Q): Define as a memory constraint.
12480         * config/v850/predicates.md (label_ref_operand): New predicate.
12481         (e3v5_shift_operand): New predicate.
12482         (ior_operator): New predicate.
12483         * config/v850/t-v850: Add e3v5 multilib.
12484         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
12485         (v850_gen_movdi): Prototype.
12486         * config/v850/v850.c: Add support for e3v5 architecture.
12487         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
12488         TARGET_V850E_UP.
12489         (construct_save_jarl): Add e3v5 long JARL support.
12490         (v850_adjust_insn_length): New function.  Adjust length of call
12491         insns when using e3v5 instructions.
12492         (v850_gen_movdi): New function: Generate instructions to move a
12493         DImode value.
12494         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
12495         (CPP_SPEC): Define __v850e3v5__ as appropriate.
12496         (TARGET_USE_FPU): Enable for e3v5.
12497         (CONST_OK_FOR_W): New macro.
12498         (ADJUST_INSN_LENGTH): Define.
12499         * config/v850/v850.md (UNSPEC_LOOP): Define.
12500         (attr cpu): Add v850e3v5.
12501         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
12502         (movdi): New pattern.
12503         (movdi_internal): New pattern.
12504         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
12505         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
12506         (cstoresf4): Likewise.
12507         (cstoredf4): Likewise.
12508         (insv): New pattern.
12509         (rotlso3_a): New pattern.
12510         (rotlsi3_b): New pattern
12511         (rotlsi3_v850e3v5): New pattern.
12512         (doloop_begin): New pattern.
12513         (fix_loop_counter): New pattern.
12514         (doloop_end): New pattern.
12515         (branch_normal): Add e3v5 long branch support.
12516         (branch_invert): Likewise.
12517         (branch_z_normal): Likewise.
12518         (branch_z_invert): Likewise.
12519         (branch_nz_normal): Likewise.
12520         (branch_nz_invert): Likewise.
12521         (call_internal_short): Add e3v5 register-indirect JARL support.
12522         (call_internal_long): Likewise.
12523         (call_value_internal_short): Likewise.
12524         (call_value_internal_long): Likewise.
12525         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
12526         (mloop): New option.
12527         * config.gcc: Add support for configuring v840e3v5 target.
12528         * doc/invoke.texi: Document new v850 specific command line options.
12529
12530 2013-01-31  Paul Koning  <ni1d@arrl.net>
12531
12532         PR debug/55059
12533         PR debug/54508
12534         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
12535         children if parent is a class.
12536         (prune_unused_types_prune): Don't add DW_AT_declaration.
12537
12538 2013-01-31  Richard Biener  <rguenther@suse.de>
12539
12540         PR tree-optimization/56157
12541         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
12542         match up operand with SLP child.
12543
12544 2013-01-31  Jason Merrill  <jason@redhat.com>
12545
12546         PR debug/54410
12547         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
12548         parameters the first time.
12549         (gen_scheduled_generic_parms_dies): Check completeness here.
12550
12551 2013-01-31  Richard Biener  <rguenther@suse.de>
12552
12553         PR middle-end/53073
12554         * common.opt (faggressive-loop-optimizations): New flag,
12555         enabled by default.
12556         * doc/invoke.texi (faggressive-loop-optimizations): Document.
12557         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
12558         infer_loop_bounds_from_undefined by it.
12559
12560 2013-01-31  Richard Biener  <rguenther@suse.de>
12561
12562         PR tree-optimization/56150
12563         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
12564         visit virtual operands.
12565         (find_uses_to_rename_bb): Likewise.
12566
12567 2013-01-31  Richard Biener  <rguenther@suse.de>
12568
12569         PR tree-optimization/56150
12570         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
12571         mixed store non-store stmts.
12572
12573 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
12574
12575         PR sanitizer/55374
12576         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
12577         LIBASAN_EARLY_SPEC is defined.
12578         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
12579         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
12580         before %o.
12581         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
12582
12583         PR c++/55742
12584         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
12585         invalid args instead of ICEing on it.
12586         (ix86_valid_target_attribute_tree): Return error_mark_node if
12587         ix86_valid_target_attribute_inner_p failed.
12588         (ix86_valid_target_attribute_p): Return false only if
12589         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
12590         target("default") attribute.
12591         (sorted_attr_string): Change argument from const char * to tree,
12592         merge in all target attribute arguments rather than just one.
12593         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
12594         instead of free.  Avoid using strcat.
12595         (ix86_mangle_function_version_assembler_name): Mangle
12596         target("default") as if no target attribute is present.  Adjust
12597         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
12598         instead of xmalloc and XDELETEVEC instead of free.
12599         (ix86_function_versions): Don't return true if one of the decls
12600         doesn't have target attribute.  If they don't and one of the decls
12601         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
12602         sorted_attr_string caller.  Use XDELETEVEC instead of free.
12603         (ix86_supports_function_versions): Remove.
12604         (make_name): Fix up formatting.
12605         (make_dispatcher_decl): Remove resolver_name and its initialization.
12606         Avoid leaking memory.
12607         (is_function_default_version): Return true if there is
12608         target("default") attribute rather than no target attribute at all.
12609         (make_resolver_func): Avoid leaking memory.
12610         (ix86_generate_version_dispatcher_body): Likewise.
12611         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
12612         * target.def (supports_function_versions): Remove.
12613         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
12614         * doc/tm.texi: Regenerated.
12615
12616 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
12617
12618         PR rtl-optimization/56144
12619         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
12620         for values with side effects.
12621
12622 2013-01-30  Richard Biener  <rguenther@suse.de>
12623
12624         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
12625         (sparseset_pop): Likewise.
12626         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
12627         to be able to use quick_push in the worker loop.
12628
12629 2013-01-30  Marek Polacek  <polacek@redhat.com>
12630
12631         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
12632
12633 2013-01-30  Richard Biener  <rguenther@suse.de>
12634
12635         PR lto/56147
12636         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
12637
12638 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
12639
12640         PR tree-optimization/56064
12641         * fixed-value.c (fixed_from_double_int): New function.
12642         * fixed-value.h (fixed_from_double_int): New prototype.
12643         (const_fixed_from_double_int): New static inline function.
12644         * fold-const.c (native_interpret_fixed): New static function.
12645         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
12646         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
12647         (native_encode_fixed): New static function.
12648         (native_encode_expr) <FIXED_CST>: Use it.
12649         (native_interpret_int): Move double_int worker code to...
12650         * double-int.c (double_int::from_buffer): ...this new static method.
12651         * double-int.h (double_int::from_buffer): Prototype it.
12652
12653 2013-01-30  Richard Biener  <rguenther@suse.de>
12654
12655         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
12656         New pointer-map and obstack.
12657         (init_alias_vars): Allocate pointer-map and obstack.
12658         (delete_points_to_sets): Free them.
12659         (find_what_var_points_to): Cache result.
12660         (find_what_p_points_to): Adjust for changed interface of
12661         find_what_var_points_to.
12662         (compute_points_to_sets): Likewise.
12663         (ipa_pta_execute): Likewise.
12664
12665 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12666
12667         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
12668         * configure: Regenerate.
12669         * config.in: Regenerate.
12670         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
12671         #nobits/#progbits if supported.
12672
12673 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
12674
12675         PR target/56121
12676         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
12677         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
12678         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
12679
12680 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
12681
12682         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
12683         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
12684
12685 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
12686
12687         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
12688         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
12689
12690 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
12691
12692         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
12693         declaration.
12694         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
12695         * config/arm/cortex-a7.md: New bypasses using
12696         arm_mac_accumulator_is_result.
12697
12698 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
12699
12700         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
12701         (cortex_a7_neon_mla): Likewise.
12702         (cortex_a7_fpfmad): New reservation.
12703         (cortex_a7_fpmacs): Use ffmas and update required units.
12704         (cortex_a7_fpmuld): Update required units and latency.
12705         (cortex_a7_fpmacd): Likewise.
12706         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
12707         (cortex_a7_neon). Likewise.
12708         (bypass) Update participating units.
12709
12710 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
12711
12712         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
12713         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
12714         from fmac to ffma.
12715         * config/arm/vfp11.md (vfp_farith): Use ffmas.
12716         (vfp_fmul): Use ffmad.
12717         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
12718         (cortex_r4_fmacd): Use ffmad.
12719         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
12720         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
12721         (cortex_a9_fmacd): Use ffmad.
12722         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
12723         (cortex_a8_vfp_macd): Use ffmad.
12724         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
12725         (cortex_a5_fpmacd): Use ffmad.
12726         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
12727         (cortex_a15_vfp_macd): Use ffmad.
12728         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
12729
12730 2013-01-29  Jason Merrill  <jason@redhat.com>
12731
12732         PR libstdc++/54314
12733         * varasm.c (default_assemble_visibility): Don't warn about
12734         visibility on artificial decls.
12735
12736 2013-01-29  Richard Biener  <rguenther@suse.de>
12737
12738         PR tree-optimization/56113
12739         * tree-ssa-structalias.c (equiv_class_lookup): Also return
12740         the bitmap leader.
12741         (label_visit): Free duplicate bitmaps and record the leader instead.
12742         (perform_var_substitution): Adjust.
12743
12744 2013-01-29  Richard Biener  <rguenther@suse.de>
12745
12746         PR tree-optimization/55270
12747         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
12748         the CFG, schedule loops for fixup.
12749
12750 2013-01-29  Nick Clifton  <nickc@redhat.com>
12751
12752         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
12753         SP_REG.
12754
12755 2013-01-28  Leif Ekblad  <leif@rdos.net>
12756
12757         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
12758         * config/i386/i386.h (TARGET_RDOS): New macro.
12759         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
12760         * config/i386/i386.c (ix86_option_override_internal): For 64bit
12761         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
12762         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
12763         DEFAULT_LARGE_SECTION_THRESHOLD.
12764         * config/i386/i386.md (R14_REG, R15_REG): New constants.
12765         * config/i386/rdos.h: New file.
12766         * config/i386/rdos64.h: New file.
12767
12768 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
12769
12770         PR other/54814
12771         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
12772         TEST_HARD_REG_BIT.
12773
12774 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
12775
12776         PR rtl-optimization/56117
12777         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
12778         call cselib_lookup_from_insn on the MEM before calling
12779         add_insn_mem_dependence.
12780
12781 2013-01-28  Richard Biener  <rguenther@suse.de>
12782
12783         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
12784         to a stmt that didn't have one.
12785         (copy_phis_for_bb): Likewise for PHI arguments.
12786         (copy_debug_stmt): Likewise for debug stmts.
12787
12788 2013-01-28  Richard Biener  <rguenther@suse.de>
12789
12790         PR tree-optimization/56034
12791         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
12792         (partition_builtin_p): Adjust.
12793         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
12794         it is the last partition.
12795         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
12796         up the vertex for the definition.
12797         (classify_partition): Classify whether a partition is a
12798         PKIND_REDUCTION, thus has uses outside of the loop.
12799         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
12800         Merge all PKIND_REDUCTION partitions into the last partition.
12801         (tree_loop_distribution): Seed partitions from reductions as well.
12802
12803 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
12804
12805         PR tree-optimization/56125
12806         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
12807         pow(x,c) into sqrt(x) * powi(x, n/2) or
12808         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
12809         optimizing for size.
12810         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
12811         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
12812         integer.
12813
12814         PR tree-optimization/56094
12815         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
12816         to UNKNOWN_LOCATION while gimplifying expr.
12817
12818 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
12819
12820         PR target/56114
12821         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
12822         operand 0 in movabs insn template for -masm=intel asm alternative.
12823         (*movabs<mode>_2): Ditto for operand 1.
12824
12825 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
12826
12827         PR target/54663
12828         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
12829         of microblaze-c.o
12830
12831 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
12832
12833         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
12834         tm_file.
12835
12836 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
12837
12838         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
12839         Undef to avoid warning.
12840
12841 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
12842
12843         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
12844         * configure: Regenerate.
12845
12846 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
12847
12848         PR tree-optimization/56098
12849         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
12850         for stmts with volatile ops.
12851         (cond_store_replacement): Don't optimize if assign has volatile ops.
12852         (cond_if_else_store_replacement_1): Don't optimize if either
12853         then_assign or else_assign have volatile ops.
12854         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
12855         volatile ops.
12856
12857 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
12858
12859         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
12860
12861 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
12862
12863         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
12864         missing ':' in asm example.
12865
12866 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
12867
12868         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
12869         entries into lane and laneq entries.
12870         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
12871         Remove AdvSIMD scalar modes.
12872         (aarch64_sq<r>dmulh_laneq<mode>): New.
12873         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
12874         modes.
12875         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
12876         builtin implementations to relfect changes in RTL in aarch64-simd.md.
12877         * config/aarch64/iterators.md (VCOND): New.
12878         (VCONQ): New.
12879
12880 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
12881
12882         PR target/54222
12883         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
12884         Add NULL LIBNAME argument to existing definitions.
12885         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
12886         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
12887         * config/avr/avr.c (DEF_BUILTIN): Same.
12888         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
12889         (avr_expand_builtin): Expand to a vanilla call if a libgcc
12890         implementation is available (DECL_ASSEMBLER_NAME is set).
12891         (avr_fold_absfx): New static function.
12892         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
12893         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
12894         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
12895         AVR_BUILTIN_ABSLLK.
12896         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
12897         (abshk, absk, abslk, absllk): Provide as static inline functions.
12898
12899 2013-01-25  Marek Polacek  <polacek@redhat.com>
12900
12901         PR tree-optimization/56035
12902         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
12903
12904 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
12905
12906         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
12907         (*movtf_internal_rex64): Add (!o,C) alternative
12908         (*movxf_internal_rex64): Ditto.
12909         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
12910
12911 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
12912
12913         * doc/invoke.texi: fix typo.
12914         * doc/objc.texi: fix typo.
12915
12916 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
12917
12918         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
12919         for the first two alternatives.
12920
12921 2013-01-24  Diego Novillo  <dnovillo@google.com>
12922
12923         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
12924         (ggc-zone.o): Remove.
12925         * configure.ac: Remove option --with-gc.
12926         * configure: Re-generate.
12927         * doc/install.texi: Remove documentation for --with-gc.
12928         * gengtype.c (write_enum_defn): Remove.  Update all users.
12929         (write_Types_process_field): Remove generation of gt_e_* argument.
12930         (output_type_enum): Remove.  Update all users.
12931         (write_enum_defn): Remove.  Update all users.
12932         (enum alloc_zone): Remove.  Update all users.
12933         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
12934         * ggc-common.c (ggc_splay_alloc): Remove first argument.
12935         Update all callers.
12936         (struct ptr_data): Remove field TYPE.  Update all users.
12937         (gt_pch_note_object): Remove argument TYPE.  Update all users.
12938         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
12939         Update all users.
12940         * ggc-none.c (ggc_alloc_typed_stat): Remove.
12941         (struct alloc_zone): Remove.
12942         (ggc_internal_alloc_zone_stat): Remove.
12943         (ggc_internal_cleared_alloc_zone_stat): Remove.
12944         * ggc-page.c (ggc_alloc_typed_stat): Remove.
12945         (ggc_pch_count_object): Remove last argument.  Update all users.
12946         (ggc_pch_alloc_object): Remove last argument.  Update all users.
12947         (struct alloc_zone): Remove.
12948         * ggc-zone.c: Remove.
12949         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
12950         (struct alloc_zone): Remove.
12951         (ggc_alloc_typed_stat): Remove.
12952         (ggc_alloc_typed): Remove.
12953         (ggc_splay_alloc): Remove first argument.
12954         (rtl_zone): Remove.  Update all users.
12955         (tree_zone): Remove.  Update all users.
12956         (tree_id_zone): Remove.  Update all users.
12957         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
12958         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
12959         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
12960         * tree-ssanames.c: Remove references to zone allocator in comments.
12961
12962 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
12963
12964         * config/avr/avr.c (avr_out_fract): Make register numbers that
12965         might be outside of source operand signed.
12966
12967 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
12968
12969         * config/i386/constraints.md (Yf): New constraint.
12970         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
12971         of f constraint to conditionaly disable x87 register preferences.
12972         (*movdf_internal): Ditto.
12973         (*movsf_internal): Ditto.
12974
12975 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
12976
12977         PR inline-asm/55934
12978         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
12979         that have operands with impossible constraints.
12980         Add a FIXME for a speed-up opportunity.
12981         * lra-constraints.c (process_alt_operands): Verify that a class
12982         selected from constraints on asms is valid for the operand mode.
12983         (curr_insn_transform): Remove incorrect comment.
12984
12985 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
12986
12987         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
12988         TOC operand is a valid symbol ref in the constant pool.
12989
12990 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
12991
12992         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
12993
12994 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
12995
12996         PR target/54222
12997         * config/avr/stdfix.h: New file.
12998         * t-avr (stdfix-gcc.h): New rule to build it.
12999         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
13000
13001 2013-01-23  Kostya Serebryany  <kcc@google.com>
13002
13003         * config/darwin.h: remove dependency on
13004         CoreFoundation (asan on Mac OS).
13005
13006 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
13007
13008         PR target/49069
13009         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
13010         instead of cmpdi_operand for first comparison operand.
13011         Don't assert that comparison operands aren't both constants.
13012
13013 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
13014
13015         * doc/install.texi (Downloading the Source): Update references to
13016         downloading separate components.
13017
13018 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
13019
13020         * doc/extend.texi (__int128): Improve grammar.
13021
13022 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
13023
13024         PR target/56028
13025         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
13026         alternative to (o,r).
13027         (*movdi_internal_rex64): Remove (!o,n) alternative.
13028         (DImode immediate->memory splitter): Remove.
13029         (DImode immediate->memory peephole2): Remove.
13030         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
13031         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
13032         alternative to (!o,*r).
13033         (*movtf_internal_sse): New pattern.
13034         (*movxf_internal_rex64): New pattern.
13035         (*movxf_internal): Disable for TARGET_64BIT.
13036         (*movdf_internal_rex64): Remove (!o,F) alternative.
13037
13038 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
13039
13040         PR middle-end/56074
13041         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
13042         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
13043         * tree-vect-loop-manip.c (find_loop_location): Also ignore
13044         stmt locations where LOCATION_LOCUS of the stmt location is
13045         UNKNOWN_LOCATION or BUILTINS_LOCATION.
13046
13047         PR target/55686
13048         * config/i386/i386.md (UNSPEC_STOS): New.
13049         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
13050         *strsetqi_1): Add UNSPEC_STOS.
13051
13052 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
13053
13054         PR c++/56067
13055         * doc/invoke.texi: Remove left over -Wsynth example.
13056
13057 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
13058
13059         PR tree-optimization/56051
13060         * fold-const.c (fold_binary_loc): Don't fold
13061         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
13062         a narrowing conversion, or widening conversion from signed
13063         to unsigned.
13064
13065 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
13066
13067         PR rtl-optimization/56023
13068         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
13069         dependent on debug instruction.
13070
13071 2013-01-21  Martin Jambor  <mjambor@suse.cz>
13072
13073         PR middle-end/56022
13074         * function.c (allocate_struct_function): Call
13075         invoke_set_current_function_hook earlier.
13076
13077 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
13078
13079         * reload1.c (init_reload): Only initialize reload_obstack
13080         during the first call.
13081
13082 2013-01-21  Marek Polacek  <polacek@redhat.com>
13083
13084         * cfgloop.c (verify_loop_structure): Fix up grammar.
13085
13086 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
13087
13088         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
13089         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
13090
13091 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13092
13093         PR target/56058
13094         * config/arm/marvell-pj4.md: Update copyright year.
13095         Fix up use of alu to alu_reg and simple_alu_imm.
13096
13097 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
13098
13099         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
13100
13101 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
13102
13103         PR target/55433
13104         * lra-constraints.c (curr_insn_transform): Don't reuse original
13105         insn for secondary memory move when memory mode should be different.
13106
13107 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13108
13109         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
13110         atomic_storedi_1): New patterns.
13111
13112 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
13113
13114         btver2 pipeline descriptions.
13115         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
13116         descriptions.
13117         * config/i386/i386.md (btver2_decode): New type attributes.
13118         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
13119         type attributes.
13120         * config/i386/btver2.md: New file describing btver2 pipelines.
13121
13122 2013-01-19  Andrew Pinski  <apinski@cavium.com>
13123
13124         PR tree-optimization/52631
13125         * tree-ssa-sccvn (visit_use): Before looking up the original
13126         statement, try looking up the simplified expression.
13127
13128 2013-01-19  Anthony Green  <green@moxielogic.com>
13129
13130         * config/moxie/moxie.c (moxie_expand_prologue): Set
13131         current_function_static_stack_size.
13132
13133 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
13134
13135         PR tree-optimization/56029
13136         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
13137         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
13138
13139 2013-01-18  Sharad Singhai  <singhai@google.com>
13140
13141         PR tree-optimization/55995
13142         * dumpfile.c (dump_loc): Print location only if available.
13143         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
13144
13145 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
13146
13147         PR target/55433
13148         * lra-constraints.c (curr_insn_transform): Reuse original insn for
13149         secondary memory move.
13150         (inherit_reload_reg): Use rclass instead of cl for
13151         check_secondary_memory_needed_p.
13152
13153 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
13154
13155         PR middle-end/56015
13156         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
13157         the case where writing real complex part of target modifies op1.
13158
13159 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
13160
13161         * config/aarch64/aarch64-simd.md
13162         (aarch64_vcond_internal<mode>): Handle unordered cases.
13163         * config/aarch64/iterators.md (v_cmp_result): New.
13164
13165 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
13166             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13167
13168         * config/arm/marvell-pj4.md: New file.
13169         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
13170         * config/arm/arm.md (generic_sched): Add marvell_pj4.
13171         (generic_vfp): Likewise.
13172         * config/arm/arm-cores.def: Add marvell-pj4.
13173         * config/arm/arm-tune.md: Regenerate.
13174         * config/arm/arm-tables.opt: Regenerate.
13175         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
13176         * doc/invoke.texi: Document marvell-pj4.
13177
13178 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
13179
13180         * config/aarch64/arm_neon.h: Map scalar types to standard types.
13181
13182 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
13183
13184         PR debug/54114
13185         PR debug/54402
13186         PR debug/49888
13187         * var-tracking.c (negative_power_of_two_p): New.
13188         (global_get_addr_cache, local_get_addr_cache): New.
13189         (get_addr_from_global_cache, get_addr_from_local_cache): New.
13190         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
13191         heading comment.
13192         (vt_stack_offset_p): Remove.
13193         (vt_canon_true_dep): Always canonicalize loc's address.
13194         (clobber_overlapping_mems): Make sure we have a MEM.
13195         (local_get_addr_clear_given_value): New.
13196         (val_reset): Clear local cached entries.
13197         (compute_bb_dataflow): Create and release the local cache.
13198         Disable duplicate MEMs clobbering.
13199         (emit_notes_in_bb): Clobber MEMs likewise.
13200         (vt_emit_notes): Create and release the local cache.
13201         (vt_initialize, vt_finalize): Create and release the global
13202         cache, respectively.
13203         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
13204
13205 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
13206
13207         PR libmudflap/53359
13208         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
13209         not found in the symtab.
13210
13211 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
13212
13213         PR debug/56006
13214         PR rtl-optimization/55547
13215         PR rtl-optimization/53827
13216         PR debug/53671
13217         PR debug/49888
13218         * alias.c (offset_overlap_p): New, factored out of...
13219         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
13220         the conservative special case for symbolic constants.  Don't
13221         adjust zero sizes on alignment.
13222
13223 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
13224
13225         PR rtl-optimization/52573
13226         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
13227         REG_UNUSED for the same register.
13228
13229 2013-01-17  Richard Biener  <rguenther@suse.de>
13230             Marek Polacek  <polacek@redhat.com>
13231
13232         PR rtl-optimization/55833
13233         * loop-unswitch.c (unswitch_loops): Move loop verification...
13234         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
13235         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
13236         Set it to true when we're removing a loop from hierarchy tree in
13237         an irreducible region.
13238         (fix_bb_placements): Adjust caller.
13239         (fix_loop_placements): Likewise.
13240
13241 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
13242
13243         * config/avr/builtins.def (DEF_BUILTIN): Factor out
13244         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
13245         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
13246         Remove ID.  Adjust comments.
13247         * config/avr/avr-c.c (avr_builtin_name): Remove.
13248         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
13249         * config/avr/avr.c (avr_tolower): New static function.
13250         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
13251         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
13252         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
13253         default expansion.
13254
13255 2013-01-17  Jan Hubicka  <jh@suse.cz>
13256
13257         PR tree-optimization/55273
13258         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
13259
13260 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
13261
13262         PR target/55981
13263         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
13264         store through atomic_store<mode>_1.
13265         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
13266
13267 2013-01-17  Martin Jambor  <mjambor@suse.cz>
13268
13269         PR tree-optimizations/55264
13270         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
13271         for virtual methods.
13272         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
13273         virtual methods before inlining is over.
13274         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
13275         virtual functions.
13276         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
13277         non-virtual.
13278
13279 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
13280
13281         PR rtl-optimization/56005
13282         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
13283         pending reads for prefetch.
13284
13285 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
13286
13287         * config/aarch64/aarch64.md
13288         (*cstoresi_neg_uxtw): New pattern.
13289         (*cmovsi_insn_uxtw): New pattern.
13290         (*<optab>si3_uxtw): New pattern.
13291         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
13292         (*<optab>si3_insn_uxtw): New pattern.
13293         (*bswapsi2_uxtw): New pattern.
13294
13295 2013-01-16  Richard Biener  <rguenther@suse.de>
13296
13297         * tree-inline.c (tree_function_versioning): Remove set but
13298         never used variable.
13299
13300 2013-01-16  Richard Biener  <rguenther@suse.de>
13301
13302         PR tree-optimization/55964
13303         * tree-flow.h (rename_variables_in_loop): Remove.
13304         (rename_variables_in_bb): Likewise.
13305         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
13306         (copy_loop_before): Adjust and delete update-ssa status.
13307         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
13308         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
13309         (rename_variables_in_loop): Remove.
13310         (slpeel_update_phis_for_duplicate_loop): Likewise.
13311         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
13312         use available cfg machinery instead of duplicating it.
13313         Update PHI nodes and perform poor-mans SSA update here.
13314         (slpeel_tree_peel_loop_to_edge): Adjust.
13315
13316 2013-01-16  Richard Biener  <rguenther@suse.de>
13317
13318         PR tree-optimization/54767
13319         PR tree-optimization/53465
13320         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
13321         (vrp_visit_phi_node): For PHI arguments coming via backedges
13322         drop all symbolical range information.
13323         (execute_vrp): Compute backedges.
13324
13325 2013-01-16  Richard Biener  <rguenther@suse.de>
13326
13327         * doc/install.texi: Update CLooG and ISL requirements to
13328         0.18.0 and 0.11.1.
13329
13330 2013-01-16  Christian Bruel  <christian.bruel@st.com>
13331
13332         PR target/55301
13333         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
13334         (broken_move): Handle UNSPECV_SP_SWITCH_B.
13335         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
13336
13337 2013-01-16  DJ Delorie  <dj@redhat.com>
13338
13339         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
13340         (UNSPECV_SP_SWITCH_E): New.
13341         (sp_switch_1): Change to an unspec.
13342         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
13343         replace $r15.
13344
13345 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
13346
13347         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
13348         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
13349         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
13350         (expand_mem_thread_fence): Ditto.
13351         (expand_mem_signal_fence): Ditto.
13352         (expand_atomic_load): Ditto.
13353         (expand_atomic_store): Ditto.
13354
13355 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
13356
13357         PR rtl-optimization/55547
13358         PR rtl-optimization/53827
13359         PR debug/53671
13360         PR debug/49888
13361         * alias.c (memrefs_conflict_p): Set sizes to negative after
13362         AND adjustments.
13363
13364 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
13365
13366         PR target/55940
13367         * function.c (thread_prologue_and_epilogue_insns): Always
13368         add crtl->drap_reg to set_up_by_prologue.set, even if
13369         stack_realign_drap is false.
13370
13371 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
13372
13373         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
13374         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
13375         *call): Fix indention.
13376
13377 2013-01-15  Tom de Vries  <tom@codesourcery.com>
13378
13379         PR target/55876
13380         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
13381         Update comment.
13382
13383 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
13384
13385         PR rtl-optimization/55153
13386         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
13387
13388 2013-01-15  Martin Jambor  <mjambor@suse.cz>
13389
13390         PR tree-optimization/55920
13391         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
13392         accesses as grp_to_be_debug_replaced.
13393
13394 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
13395
13396         PR tree-optimization/55920
13397         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
13398         there is non-useless type conversion needed from debug rhs to lhs,
13399         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
13400
13401 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
13402             Mikael Pettersson  <mikpe@it.uu.se>
13403
13404         PR target/43961
13405         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
13406         Thumb.
13407         (ASM_OUTPUT_CASE_LABEL): Remove.
13408         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
13409         * final.c (shorten_branches): Update alignment of labels before
13410         jump tables if CASE_VECTOR_SHORTEN_MODE.
13411
13412 2013-01-15  Richard Biener  <rguenther@suse.de>
13413
13414         PR bootstrap/55961
13415         * system.h: Do not include gmp.h for building host tools.
13416
13417 2013-01-15  Richard Biener  <rguenther@suse.de>
13418
13419         PR middle-end/55882
13420         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
13421         account for bitpos when computing alignment.
13422
13423 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
13424
13425         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
13426         (ix86_target_macros_internal): Likewise.
13427
13428         * config/i386/i386.c (m_CORE2I7): Removed.
13429         (m_CORE_HASWELL): New macro.
13430         (m_CORE_ALL): Likewise.
13431         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
13432         (initial_ix86_arch_features): Likewise.
13433         (processor_target_table): Initializations for Core avx2.
13434         (cpu_names): New names "core-avx2".
13435         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
13436         PROCESSOR_CORE_HASWELL.
13437         (ix86_issue_rate): New case.
13438         (ia32_multipass_dfa_lookahead): Likewise.
13439         (ix86_sched_init_global): Likewise.
13440
13441         * config/i386/i386.h (TARGET_HASWELL): New macro.
13442         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
13443         (processor_type): New PROCESSOR_HASWELL.
13444
13445 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
13446
13447         PR tree-optimization/55955
13448         * tree-vect-loop.c (vectorizable_reduction): Give up early on
13449         *SHIFT_EXPR and *ROTATE_EXPR codes.
13450
13451         PR tree-optimization/48766
13452         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
13453         -ftrapv disable -fwrapv.
13454
13455 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
13456
13457         PR target/55974
13458         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
13459         etc. to 1 and not to __flash.
13460         Use LL suffix for __INT24_MAX__ with -mint8.
13461         Use ULL suffix for __UINT24_MAX__ with -mint8.
13462
13463 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
13464
13465         * config/avr/avr-arch.h
13466         (struct base_arch_s): Use typedef avr_arch_t instead.
13467         (struct arch_info_s): Use typedef avr_arch_info_t instead.
13468         (struct mcu_type_s): Use typedef avr_mcu_t instead.
13469         * config/avr/avr.c: Same.
13470         * config/avr/avr-devices.c: Same.
13471         * config/avr/driver-avr.c: Same.
13472         * config/avr/gen-avr-mmcu-texi.c: Same.
13473         * config/avr/avr-mcus.def: Adjust comment.
13474
13475 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
13476
13477         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
13478         * config/aarch64/iterators.md (VALLDI): New.
13479
13480 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
13481             Andi Kleen  <ak@linux.intel.com>
13482
13483         PR target/55948
13484         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
13485         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
13486         memmodel flag.
13487
13488 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
13489
13490         * config/avr/avr-stdint.h: Remove trailing blanks.
13491         * config/avr/avr-log.h: Same.
13492         * config/avr/avr-arch.h: Same.
13493         * config/avr/avr-devices.c: Same.
13494         * config/avr/avr-dimode.md: Same.
13495         * config/avr/predicates.md: Same.
13496         * config/avr/avr-c.c: Same.  And fix typo.
13497
13498         * config/avr/avr-protos.h: Same.  And:
13499         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
13500         (init_cumulative_args): Rename to avr_init_cumulative_args.
13501         (expand_prologue): Rename to avr_expand_prologue.
13502         (expand_epilogue): Rename to avr_expand_epilogue.
13503         (adjust_insn_length): Rename to avr_adjust_insn_length.
13504         (notice_update_cc): Rename to avr_notice_update_cc.
13505         (final_prescan_insn): Rename to avr_final_prescan_insn.
13506         * config/avr/avr.c: Same.
13507         * config/avr/avr.h: Same.
13508         * config/avr/avr.md: Remove trailing blanks.
13509         (prologue): Use avr_expand_prologue.
13510         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
13511
13512 2013-01-14  Richard Biener  <rguenther@suse.de>
13513
13514         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
13515         verify_location, collect_subblocks): New functions.
13516         (verify_gimple_in_cfg): Verify that locations only reference
13517         BLOCKs in the functions BLOCK tree.
13518
13519 2013-01-14  Richard Biener  <rguenther@suse.de>
13520
13521         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
13522         PHI argument.
13523         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
13524         unshare reference.
13525         (insert_out_of_ssa_copy_on_edge): Likewise.
13526         (rewrite_close_phi_out_of_ssa): Likewise.
13527         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
13528         debug expressions.
13529         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
13530         propagated constants.
13531         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
13532         can not be shared.
13533
13534 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
13535
13536         * config/avr/avr-modes.def: Add GPL copyright notice.
13537
13538 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
13539
13540         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
13541         MEMMODEL_MASK to determine memory model.
13542         (atomic_store<mode>): Ditto from operands[2].
13543         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
13544
13545 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
13546
13547         PR fortran/55935
13548         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
13549         (fold_gimple_assign): Don't call unshare_expr here.
13550         (fold_ctor_reference): Call unshare_expr.
13551
13552 2013-01-13  Terry Guo  <terry.guo@arm.com>
13553
13554         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
13555         * doc/fragments.texi: Document MULTILIB_REUSE.
13556         * gcc.c (multilib_reuse): New internal spec.
13557         (set_multilib_dir): Also search multilib from multilib_reuse.
13558         * genmultilib (tmpmultilib3): Refactor code.
13559         (tmpmultilib4): Ditto.
13560         (multilib_reuse): New multilib argument.
13561
13562 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
13563
13564         * Makefile.in: Update copyright.
13565
13566 2013-01-12  Tom de Vries  <tom@codesourcery.com>
13567
13568         PR middle-end/55890
13569         * calls.c (expand_call): Check if arg_nr is valid.
13570
13571 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
13572
13573         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
13574         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
13575         documentation.  Add missing '__' in front of
13576         __builtin_ia32_packssdw256.
13577
13578 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13579
13580         PR target/55719
13581         * config/s390/s390.c (s390_preferred_reload_class): Do not return
13582         NO_REGS for larl operands.
13583         (s390_reload_larl_operand): Use s390_load_address instead of
13584         emit_move_insn.
13585
13586 2013-01-11  Richard Biener  <rguenther@suse.de>
13587
13588         * tree-cfg.c (verify_node_sharing_1): Split out from ...
13589         (verify_node_sharing): ... here.
13590         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
13591
13592 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
13593
13594         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
13595         Substitute TREECHECKING.
13596         * configure: Regenerate.
13597         * Makefile.in (TREECHECKING): New.
13598
13599 2013-01-11  Richard Guenther  <rguenther@suse.de>
13600
13601         PR tree-optimization/44061
13602         * tree-vrp.c (extract_range_basic): Compute zero as
13603         value-range for __builtin_constant_p of function parameters.
13604
13605 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
13606
13607         Update copyright years.
13608
13609 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
13610
13611         PR rtl-optimization/55672
13612         * lra-eliminations.c (mark_not_eliminable): Permit addition with
13613         const to be eliminable.
13614
13615 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
13616
13617         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
13618         * configure: Regenerate.
13619
13620 2013-01-10  Richard Biener  <rguenther@suse.de>
13621
13622         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
13623
13624 2013-01-10  Richard Biener  <rguenther@suse.de>
13625
13626         PR bootstrap/55792
13627         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
13628         locations for virtual PHI arguments.
13629         (rewrite_update_phi_arguments): Likewise.
13630
13631 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
13632
13633         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
13634         on to assembler.
13635
13636 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
13637
13638         PR tree-optimization/55921
13639         * tree-complex.c (expand_complex_asm): New function.
13640         (expand_complex_operations_1): Call it for GIMPLE_ASM.
13641
13642 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13643
13644         PR target/55718
13645         * config/s390/s390.c (s390_symref_operand_p)
13646         (s390_loadrelative_operand_p): Merge the two functions.
13647         (s390_check_qrst_address, print_operand_address): Add parameters
13648         to s390_loadrelative_operand_p invokation.
13649         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
13650         (s390_reload_larl_operand, s390_secondary_reload): Use
13651         s390_loadrelative_operand_p instead of s390_symref_operand_p.
13652         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
13653
13654 2013-01-09  Mike Stump  <mikestump@comcast.net>
13655
13656         * dse.c (record_store): Remove unnecessary assert.
13657
13658 2013-01-09  Jan Hubicka  <jh@suse.cz>
13659
13660         PR tree-optimization/55569
13661         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
13662         * cfgloop.h (scale_loop_profile): Likewise.
13663
13664 2013-01-09  Jan Hubicka  <jh@suse.cz>
13665
13666         PR lto/45375
13667         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
13668         functions.
13669         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
13670
13671 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
13672
13673         PR middle-end/55114
13674         * expr.h (maybe_emit_group_store): Declare.
13675         * expr.c (maybe_emit_group_store): New function.
13676         * builtins.c (expand_builtin_int_roundingfn): Call it.
13677         (expand_builtin_int_roundingfn_2): Likewise.
13678
13679 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
13680
13681         PR rtl-optimization/55829
13682         * lra-constraints.c (match_reload): Add code for absent output.
13683         (curr_insn_transform): Add code for reloads of matched inputs
13684         without output.
13685
13686 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
13687
13688         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
13689         attribute of movddup insn to DF.
13690         (*vec_interleave_lowv2df): Ditto.
13691         (vec_dupv2df): Ditto.
13692
13693 2013-01-09  Jan Hubicka  <jh@suse.cz>
13694
13695         PR tree-optimiation/55875
13696         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
13697         EVERY_ITERATION parameter.
13698         (number_of_iterations_exit): Check if exit is executed every iteration.
13699         (idx_infer_loop_bounds): Similarly here.
13700         (n_of_executions_at_most): Simplify
13701         to only test for cases where statement is dominated by the
13702         particular bound; handle correctly the "postdominance" test.
13703         (scev_probably_wraps_p): Use max loop iterations info
13704         as a global bound first.
13705
13706 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
13707             Nick Clifton  <nickc@redhat.com>
13708
13709         * config/v850/v850.md (cbranchsf4): New pattern.
13710         (cstoresf4): New pattern.
13711         (cbranchdf4): New pattern.
13712         (cstoredf4): New pattern.
13713         (movsicc): Disallow floating point comparisons.
13714         (cmpsf_le_insn): Fix order of operators.
13715         (cmpsf_lt_insn): Likewise.
13716         (cmpsf_eq_insn): Likewise.
13717         (cmpdf_le_insn): Likewise.
13718         (cmpdf_lt_insn): Likewise.
13719         (cmpdf_eq_insn): Likewise.
13720         (cmpsf_ge_insn): Use LE comparison.
13721         (cmpdf_ge_insn): Likewise.
13722         (cmpsf_gt_insn): Use LT comparison.
13723         (cmpdf_gt_insn): Likewise.
13724         (cmpsf_ne_insn): Delete pattern.
13725         (cmpdf_ne_insn): Delete pattern.
13726         * config/v850/v850.c (v850_gen_float_compare): Use
13727         gen_cmpdf_eq_insn for NE comparison.
13728         (v850_float_z_comparison_operator)
13729         (v850_float_nz_comparison_operator): Move from here ...
13730         * config/v850/predicates.md: ... to here.  Move GT and GE
13731         comparisons into v850_float_z_comparison_operator.
13732         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
13733         Delete prototype.
13734         (v850_float_nz_comparison_operator): Likewise.
13735
13736 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13737
13738         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
13739         with calls to gen_insvsi/gen_insvdi.
13740
13741 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
13742
13743         * config/i386/i386.c (initial_ix86_tune_features): Set up
13744         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
13745
13746 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
13747             Jakub Jelinek  <jakub@redhat.com>
13748
13749         PR tree-optimization/48189
13750         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
13751         If nitercst is 0, don't predict the exit edge.
13752
13753 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
13754
13755         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
13756         in asm_fprintf with reg_names.
13757         (aarch64_print_operand_address): Likewise.
13758         (aarch64_return_addr): Likewise.
13759         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
13760
13761 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13762
13763         * config/pa/pa.h (VAL_U6_BITS_P): Define.
13764         (INT_U6_BITS): Likewise.
13765         * config/pa/predicates.md (uint6_operand): New predicate.
13766         (shift5_operand, shift6_operand): Likewise.
13767         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
13768         arith32_operand.
13769         (lshrdi3): Use shift6_operand.
13770         (shrpsi4, shrpdi4): New insn patterns.
13771         (extzv): Delete expander.
13772         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
13773         predicates in unamed zero extract patterns.  Tighten common constraint.
13774         (extv): Delete expander.
13775         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
13776         predicates in unamed sign extract patterns.  Tighten common constraint.
13777         (insv): Delete expander.
13778         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
13779         predicates in unamed insert patterns.  Tighten common constraint.
13780         Change uint32_operand predicate to uint6_operand predicate in unamed
13781         DImode pattern to insert constant values of type 1...1xxxx.
13782
13783 2013-01-04  Jan Hubicka  <jh@suse.cz>
13784
13785         PR tree-optimization/55823
13786         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
13787         issue.
13788
13789 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
13790             Uros Bizjak  <ubizjak@gmail.com>
13791
13792         PR rtl-optimization/55845
13793         * df-problems.c (can_move_insns_across): Stop scanning at
13794         volatile_insn_p source instruction or give up if
13795         across_from .. across_to range contains any volatile_insn_p
13796         instructions.
13797
13798 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
13799
13800         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
13801         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
13802         Declare.
13803         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
13804         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
13805
13806 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
13807
13808         PR fortran/55341
13809         * asan.c (asan_clear_shadow): New function.
13810         (asan_emit_stack_protection): Use it.
13811
13812 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
13813
13814         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
13815         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
13816         with tab instead of space.
13817
13818 2013-01-08  Nick Clifton  <nickc@redhat.com>
13819
13820         * config/rl78/rl78.c (rl78_expand_prologue): Always select
13821         register bank 0 at the start of an interrupt handler.
13822         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
13823         MDBH registers.
13824
13825 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
13826
13827         * config/aarch64/aarch64-simd.md
13828         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
13829         (aarch64_simd_bsl): Likewise.
13830         (aarch64_vcond_internal<mode>): Likewise.
13831         (vcond<mode><mode>): Likewise.
13832         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
13833         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
13834
13835 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
13836
13837         * config/aarch64/aarch64-builtins.c
13838         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
13839
13840 2013-01-08  Martin Jambor  <mjambor@suse.cz>
13841
13842         PR debug/55579
13843         * tree-sra.c (analyze_access_subtree): Return true also after
13844         potentially creating a debug-only replacement.
13845
13846 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
13847
13848         PR middle-end/55890
13849         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
13850
13851         PR tree-optimization/54120
13852         * tree-vrp.c (range_fits_type_p): Don't allow
13853         src_precision < precision from signed vr to unsigned_p
13854         if vr->min or vr->max is negative.
13855         (simplify_float_conversion_using_ranges): Test can_float_p
13856         against CODE_FOR_nothing.
13857
13858 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
13859             Richard Biener  <rguenther@suse.de>
13860
13861         PR middle-end/55851
13862         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
13863         types instead of just INTEGER_TYPE types.
13864
13865 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
13866
13867         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
13868         TF_SIZE): Define.
13869
13870 2013-01-07  Steve Ellcey  <sellcey@mips.com>
13871
13872         PR target/42661
13873         * config/mips/mips.opt: Change mad to mmad to match documentation.
13874
13875 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
13876
13877         PR target/55897
13878         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
13879         .progmemx.data now.
13880
13881 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
13882
13883         PR target/55897
13884         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
13885         (avr_addrspace_t): Add .section_name field.
13886         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
13887         array size.
13888         (avr_addrspace): Same.  Initialize .section_name.  Remove last
13889         NULL entry.  Put __memx into .progmemx.data.
13890         (progmem_section_prefix): Remove.
13891         (avr_asm_init_sections): No need to initialize progmem_section.
13892         (avr_asm_named_section): Use avr_addrspace[].section_name to get
13893         section name prefix.
13894         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
13895         retrieve the progmem section.
13896         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
13897         boundary to run over avr_addrspace[].
13898         (avr_register_target_pragmas): Ditto.
13899
13900 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
13901
13902         * varasm.c (output_constant_def_contents): For asan_protect_global
13903         protected strings, adjust DECL_ALIGN if needed, before testing for
13904         anchored symbols.
13905         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
13906         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
13907         normal decls.
13908         (output_object_block): For asan protected decls, emit asan padding
13909         after their contents.
13910         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
13911         (asan_finish_file): Test it here instead.
13912
13913 2013-01-07  Nick Clifton  <nickc@redhat.com>
13914             Matthias Klose  <doko@debian.org>
13915             Doug Kwan  <dougkwan@google.com>
13916             H.J. Lu  <hongjiu.lu@intel.com>
13917
13918         PR driver/55470
13919         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
13920
13921         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
13922
13923         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
13924
13925         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
13926
13927         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
13928
13929 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
13930
13931         PR target/54461
13932         * doc/install.texi (Cross-Compiler-Specific Options): Document
13933         --with-avrlibc.
13934
13935 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
13936
13937         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
13938         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
13939         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
13940         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
13941         vqmovun_high_s64): Fix source operand number and update copyright.
13942
13943 2013-01-07  Richard Biener  <rguenther@suse.de>
13944
13945         PR middle-end/55890
13946         * gimple.h (gimple_call_builtin_p): New overload.
13947         * gimple.c (validate_call): New function.
13948         (gimple_call_builtin_p): Likewise.
13949         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
13950         Use gimple_call_builtin_p.
13951         (find_func_clobbers): Likewise.
13952         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
13953         (strlen_optimize_stmt): Likewise.
13954
13955 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
13956
13957         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
13958         (vld1q_dup_*): Likewise.
13959         (vld1_*): Likewise.
13960         (vld1q_*): Likewise.
13961         (vld1_lane_*): Likewise.
13962         (vld1q_lane_*): Likewise.
13963
13964 2013-01-07  Richard Biener  <rguenther@suse.de>
13965
13966         * lto-streamer.h (LTO_minor_version): Bump to 2.
13967
13968 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
13969
13970         * config/aarch64/aarch64-protos.h
13971         (aarch64_const_double_zero_rtx_p): Rename to...
13972         (aarch64_float_const_zero_rtx_p): ...this.
13973         (aarch64_float_const_representable_p): New.
13974         (aarch64_output_simd_mov_immediate): Likewise.
13975         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
13976         move immediate case.
13977         * config/aarch64/aarch64.c
13978         (aarch64_const_double_zero_rtx_p): Rename to...
13979         (aarch64_float_const_zero_rtx_p): ...this.
13980         (aarch64_print_operand): Allow printing of new constants.
13981         (aarch64_valid_floating_const): New.
13982         (aarch64_legitimate_constant_p): Check for valid floating-point
13983         constants.
13984         (aarch64_simd_valid_immediate): Likewise.
13985         (aarch64_vect_float_const_representable_p): New.
13986         (aarch64_float_const_representable_p): Likewise.
13987         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
13988         (aarch64_output_simd_mov_immediate): New.
13989         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
13990         (*movdf_aarch64): Likewise.
13991         * config/aarch64/constraints.md (Ufc): New.
13992         (Y): call aarch64_float_const_zero_rtx.
13993         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
13994
13995 2013-01-07  Richard Biener  <rguenther@suse.de>
13996
13997         PR tree-optimization/55888
13998         PR tree-optimization/55862
13999         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
14000         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
14001         not if it is contained therein.
14002
14003 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
14004
14005         * config/avr/t-avr: Typo.
14006
14007 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
14008
14009         PR55243
14010         * config/avr/t-avr: Don't automatically rebuild
14011         $(srcdir)/config/avr/t-multilib
14012         $(srcdir)/config/avr/avr-tables.opt
14013         $(srcdir)/doc/avr-mmcu.texi
14014         (avr-mcus): New phony target to build them on request.
14015         (s-avr-mlib, s-avr-mmcu-texi): Remove.
14016         * avr/avr-mcus.def: Adjust comments.
14017
14018 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
14019
14020         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
14021
14022 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
14023
14024         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
14025
14026 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
14027
14028         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
14029
14030 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
14031
14032         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
14033         to generate profiling.
14034         * config/rs6000/aix64.h (LIB_SPEC): Same.
14035
14036 2013-01-04  Andrew Pinski  <apinski@cavium.com>
14037
14038         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
14039         New function.
14040         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
14041
14042 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
14043
14044         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
14045         unconditionally.
14046         (ix86_expand_move): Ditto.
14047         (ix86_zero_extend_to_Pmode): Ditto.
14048         (ix86_expand_call): Ditto.
14049         (ix86_expand_special_args_builtin): Ditto.
14050         (ix86_expand_builtin): Ditto.
14051
14052 2013-01-04  Richard Biener  <rguenther@suse.de>
14053
14054         PR tree-optimization/55862
14055         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
14056         translating them through PHI nodes.
14057
14058 2013-01-04  Martin Jambor  <mjambor@suse.cz>
14059
14060         PR tree-optimization/55755
14061         * tree-sra.c (sra_modify_assign): Do not check that an access has no
14062         children when trying to avoid producing a VIEW_CONVERT_EXPR.
14063
14064 2013-01-04  Marek Polacek  <polacek@redhat.com>
14065
14066         PR middle-end/55859
14067         * opts.c (default_options_optimization): Clarify error message.
14068
14069 2013-01-04  Richard Biener  <rguenther@suse.de>
14070
14071         PR middle-end/55863
14072         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
14073         reassociation.
14074
14075 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14076
14077         PR target/53789
14078         * config/pa/pa.md (movsi): Revert previous change.
14079         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
14080         references.
14081
14082 2013-01-03  Richard Henderson  <rth@redhat.com>
14083
14084         * config/i386/i386.c (ix86_expand_move): Always assign to op1
14085         after eliminating TLS symbols.
14086
14087 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
14088
14089         PR bootstrap/50167
14090         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
14091         * graphite-poly.c (debug_gmp_value): Likewise.
14092
14093 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
14094
14095         PR target/55712
14096         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
14097         selected code model, define __code_mode_small__, __code_model_medium__,
14098         __code_model_large__, __code_model_32__ or __code_model_kernel__.
14099         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
14100         xchg temporary register with %k.  Declare temporary register as
14101         early clobbered.
14102         [__x86_64__]: For medium and large code models, preserve %rbx register.
14103
14104 2013-01-03  Richard Biener  <rguenther@suse.de>
14105
14106         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
14107         (dump_subscript): Adjust.
14108         (finalize_ddr_dependent): Do not dump redundant info.
14109         (analyze_siv_subscript): Adjust.
14110         (subscript_dependence_tester): Likewise.
14111         (compute_affine_dependence): Likewise.
14112
14113 2013-01-03  Richard Biener  <rguenther@suse.de>
14114
14115         Revert
14116         2013-01-03  Richard Biener  <rguenther@suse.de>
14117
14118         PR tree-optimization/55857
14119         * tree-vect-stmts.c (vectorizable_load): Do not setup
14120         re-alignment for invariant loads.
14121
14122         2013-01-02  Richard Biener  <rguenther@suse.de>
14123
14124         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
14125         invariant load do not generate a vector load from the scalar location.
14126
14127 2013-01-03  Richard Biener  <rguenther@suse.de>
14128
14129         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
14130         for not vectorizing.
14131         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
14132         not build INDIRECT_REFs, call get_name once only.
14133         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
14134         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
14135
14136 2013-01-03  Richard Biener  <rguenther@suse.de>
14137
14138         PR tree-optimization/55857
14139         * tree-vect-stmts.c (vectorizable_load): Do not setup
14140         re-alignment for invariant loads.
14141
14142 2013-01-03  Richard Biener  <rguenther@suse.de>
14143
14144         PR lto/55848
14145         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
14146         prefer a built-in decl.
14147
14148 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
14149
14150         * gcc.c (process_command): Update copyright notice dates.
14151         * gcov.c (print_version): Likewise.
14152         * gcov-dump.c (print_version): Likewise.
14153
14154         PR rtl-optimization/55838
14155         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
14156         iv0.step, iv1.step and step.
14157
14158 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
14159             Marc Glisse  <marc.glisse@inria.fr>
14160
14161         PR tree-optimization/55832
14162         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
14163         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
14164         integer_{one,zero}_node.
14165
14166 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
14167
14168         PR debug/54402
14169         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
14170         * var-tracking.c (reverse_op): Don't add reverse ops to
14171         VALUEs that have already
14172         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
14173
14174 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
14175
14176         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
14177
14178 2013-01-02  Teresa Johnson  <tejohnson@google.com>
14179
14180         * dumpfile.c (dump_loc): Print filename with location.
14181         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
14182         new location_t parameter to emit complete unroll message with
14183         new dump framework.
14184         (canonicalize_loop_induction_variables): Compute loops location
14185         and pass to try_unroll_loop_completely.
14186         * loop-unroll.c (report_unroll_peel): New function.
14187         (peel_loops_completely): Use new dump format with location
14188         for main dumpfile message, and invoke report_unroll_peel on success.
14189         (decide_unrolling_and_peeling): Ditto.
14190         (decide_peel_once_rolling): Remove old dumpfile message subsumed
14191         by report_unroll_peel.
14192         (decide_peel_completely): Ditto.
14193         (decide_unroll_constant_iterations): Ditto.
14194         (decide_unroll_runtime_iterations): Ditto.
14195         (decide_peel_simple): Ditto.
14196         (decide_unroll_stupid): Ditto.
14197         * cfgloop.c (get_loop_location): New function.
14198         * cfgloop.h (get_loop_location): Declare.
14199
14200 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
14201
14202         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
14203         NULL.
14204
14205 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14206
14207         PR middle-end/55198
14208         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
14209         BLKmode objects when EXPAND_MEMORY is specified.
14210
14211 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
14212
14213         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
14214         in loop predicate.
14215         (fold_builtin_cpu): Do not share cpu model decls across statements.
14216
14217 2013-01-02  Jason Merrill  <jason@redhat.com>
14218
14219         PR c++/55804
14220         * tree.c (build_array_type_1): Revert earlier change.
14221
14222 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
14223
14224         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
14225         "cortex-a57".
14226         * config/aarch64/aarch64-tune.md: Re-generate.
14227
14228 2013-01-02  Richard Biener  <rguenther@suse.de>
14229
14230         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
14231         invariant load do not generate a vector load from the scalar location.
14232
14233 2013-01-02  Richard Biener  <rguenther@suse.de>
14234
14235         PR bootstrap/55784
14236         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
14237         * configure: Regenerate.
14238
14239 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
14240
14241         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
14242         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
14243         (expand_builtin_int_roundingfn_2): Keep the original target around
14244         for the fallback case.
14245
14246 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
14247
14248         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
14249         to be clear for sign changes.
14250
14251 2013-01-01  Jan Hubicka  <jh@suse.cz>
14252
14253         * ipa-inline-analysis.c: Fix formatting.
14254
14255 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
14256
14257         PR tree-optimization/55831
14258         * tree-vect-loop.c (get_initial_def_for_induction): Use
14259         gsi_after_labels instead of gsi_start_bb.
14260 \f
14261 Copyright (C) 2013 Free Software Foundation, Inc.
14262
14263 Copying and distribution of this file, with or without modification,
14264 are permitted in any medium without royalty provided the copyright
14265 notice and this notice are preserved.