1 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
3 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
5 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
7 PR rtl-optimization/57786
8 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
9 and break out of the loop when it is set to false.
11 2013-07-08 Jakub Jelinek <jakub@redhat.com>
14 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
15 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
17 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
18 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
19 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
21 PR rtl-optimization/57829
22 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
23 mask bits outside of mode are just sign-extension from mode to HWI.
25 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
27 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
28 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
29 adjust_address instead of change_address to keep info about alignment.
30 (emit_strmov): Remove.
31 (emit_memmov): New function.
32 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
33 (expand_movmem_epilogue): Likewise and return updated rtx for
35 (expand_constant_movmem_prologue): Likewise and return updated rtx for
36 destination and source.
37 (decide_alignment): Refactor, handle vector_loop.
38 (ix86_expand_movmem): Likewise.
39 (ix86_expand_setmem): Likewise.
40 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
42 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
44 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
45 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
47 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
49 * config/i386/sse.md (sse_movlhps): Change alternative 3
52 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
55 * config/i386/sse.md (iptr): New mode attribute.
56 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
57 (<sse>_vm<plusminus_insn><mode>3): Ditto.
58 (<sse>_vmmul<mode>3): Ditto.
59 (<sse>_vmdiv<mode>3): Ditto.
60 (sse_vmrcpv4sf2): Ditto.
61 (<sse>_vmsqrt<mode>2): Ditto.
62 (sse_vmrsqrtv4sf2): Ditto.
63 (<sse>_vm<code><mode>3): Ditto.
64 (avx_vmcmp<mode>3): Ditto.
65 (<sse>_vmmaskcmp<mode>3): Ditto.
68 (*xop_vmfrcz_<mode>): Ditto.
69 (*fmai_fmadd_<mode>): Ditto.
70 (*fmai_fmsub_<mode>): Ditto.
71 (*fmai_fnmadd_<mode>): Ditto.
72 (*fmai_fnmsub_<mode>): Ditto.
73 (*fma4i_vmfmadd_<mode>): Ditto.
74 (*fma4i_vmfmsub_<mode>): Ditto.
75 (*fma4i_vmfnmadd_<mode>): Ditto.
76 (*fma4i_vmfnmsub_<mode>): Ditto.
77 (*xop_vmfrcz_<mode>): Ditto.
78 (sse_cvtps2pi): Ditto.
79 (sse_cvttps2pi): Ditto.
80 (sse_cvtss2si): Ditto.
81 (sse_cvtss2si_2): Ditto.
82 (sse_cvtss2siq_2): Ditto.
83 (sse_cvttss2si): Ditto.
84 (sse_cvttss2siq): Ditto.
85 (sse_cvtsd2si): Ditto.
86 (sse_cvtsd2si_2): Ditto.
87 (sse_cvtsd2siq_2): Ditto.
88 (sse_cvttsd2si): Ditto.
89 (sse_cvttsd2siq): Ditto.
90 (sse_cvtsd2ss): Ditto.
91 (sse_cvtss2sd): Ditto.
92 (avx2_pbroadcast<mode>): Ditto.
93 (avx2_pbroadcast<mode>_1): Ditto.
94 (*avx_vperm_broadcast_v4sf): Ditto.
96 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
98 (sse_storehps): Ditto.
100 (sse_storelps): Ditto.
101 (sse_loadlps): Ditto.
102 (*vec_concatv4sf): Ditto.
103 (*vec_interleave_highv2df): Ditto.
104 (*vec_interleave_lowv2df): Ditto.
105 (*vec_extractv2df_1_sse): Ditto.
106 (*vec_extractv2df_0_sse): Ditto.
107 (sse2_storelpd): Ditto.
108 (sse2_loadlpd): Ditto.
110 (*vec_concatv4si): Ditto.
111 (vec_concatv2di): Ditto.
113 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
114 for Intel asm dialect.
115 (mmx_punpcklwd): Ditto.
116 (mmx_punpckldq): Ditto.
118 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
119 for intel assembler dialect.
121 2013-07-06 Jakub Jelinek <jakub@redhat.com>
124 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
125 for BUILT_IN_C{LZ,LRSB}*.
126 * tree.h (CASE_INT_FN): Add FN##IMAX case.
127 * tree-vrp.c (extract_range_basic): Handle
128 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
129 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
130 fall thru to code calling set_value*.
131 * builtins.c (expand_builtin): Remove *IMAX cases.
132 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
133 if width is bigger than 2*HWI.
135 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
137 PR rtl-optimization/55342
138 * lra-int.h (lra_subreg_reload_pseudos): New.
139 * lra.c: Add undoing optional reloads to the block diagram.
140 (lra_subreg_reload_pseudos): New.
141 (lra_optional_reload_pseudos): Change comments.
142 (lra): Init and clear lra_subreg_reload_pseudos. Clear
143 lra_optional_reload_pseudos after undo transformations.
144 * lra-assigns.c (pseudo_prefix_title): New.
145 (lra_setup_reg_renumber): Use it.
146 (spill_for): Ditto. Check subreg reload pseudos too.
147 (assign_by_spills): Consider subreg reload pseudos too.
148 * lra-constraints.c (simplify_operand_subreg): Use
149 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
150 (curr_insn_transform): Recognize and do optional reloads.
151 (undo_optional_reloads): New.
152 (lra_undo_inheritance): Call undo_optional_reloads.
154 2013-07-05 Thomas Quinot <quinot@adacore.com>
156 * tree-complex.c (expand_complex_operations_1): Fix typo.
158 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
160 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
161 (tune_params): New member 'const vec_costs'.
162 * config/aarch64/aarch64.c (generic_vector_cost): New.
163 (generic_tunings): New member 'generic_vector_cost'.
164 (aarch64_builtin_vectorization_cost): New.
165 (aarch64_add_stmt_cost): New.
166 (TARGET_VECTORIZE_ADD_STMT_COST): New.
167 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
169 2013-07-03 Jakub Jelinek <jakub@redhat.com>
172 * config/i386/predicates.md (vsib_address_operand): Disallow
173 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
175 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
178 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
179 expand_builtin_setjmp_receiver.
180 (expand_label): Adjust, call expand_builtin_setjmp_receiver
181 with NULL for the label parameter.
182 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
183 the frame-pointer. Adjust comments.
184 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
185 only if LABEL is non-NULL.
187 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
189 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
190 (ARM_ABI_AAPCS64): Ditto.
192 (ARM_DEFAULT_ABI): Ditto.
194 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
196 * config/aarch64/aarch64-builtins.c
197 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
198 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
200 * config/aarch64/aarch64-simd.md
201 (aarch64_ld1<VALL:mode>): New.
202 (aarch64_st1<VALL:mode>): Likewise.
203 * config/aarch64/arm_neon.h
204 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
206 2013-07-02 Sriraman Tallam <tmsriram@google.com>
208 * config/i386/i386.c (gate_insert_vzeroupper): Check if
210 (ix86_option_override_internal):Turn on all -mavx target flags by
211 default as they are dependent on AVX anyway.
213 2013-07-02 Cary Coutant <ccoutant@google.com>
215 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
217 (loc_checksum_ordered): Likewise.
218 (hash_loc_operands): Remove inline keyword.
220 2013-07-02 Jakub Jelinek <jakub@redhat.com>
222 PR tree-optimization/57741
223 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
224 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
225 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
226 Allow REAL_CST step_exprs if flag_associative_math.
227 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
229 2013-07-02 Ian Bolton <ian.bolton@arm.com>
231 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
233 2013-07-02 Ian Bolton <ian.bolton@arm.com>
235 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
237 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
239 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
241 (iorsi3_insn): Likewise.
242 (arm_xorsi3): Likewise.
244 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
246 * arm.md (attribute "wtype"): Delete. Move attribute values from here
248 (attribute "type"): ... here, and prefix with "wmmx_".
249 (attribute "core_cycles"): Update for attribute changes.
250 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
251 (tbcstv4hi): Likewise.
252 (tbcstv2si): Likewise.
253 (iwmmxt_iordi3): Likewise.
254 (iwmmxt_xordi3): Likewise.
255 (iwmmxt_anddi3): Likewise.
256 (iwmmxt_nanddi3): Likewise.
257 (iwmmxt_arm_movdi): Likewise.
258 (iwmmxt_movsi_insn): Likewise.
259 (mov<mode>_internal): Likewise.
260 (and<mode>3_iwmmxt): Likewise.
261 (ior<mode>3_iwmmxt): Likewise.
262 (xor<mode>3_iwmmxt): Likewise.
263 (add<mode>3_iwmmxt): Likewise.
264 (ssaddv8qi3): Likewise.
265 (ssaddv4hi3): Likewise.
266 (ssaddv2si3): Likewise.
267 (usaddv8qi3): Likewise.
268 (usaddv4hi3): Likewise.
269 (usaddv2si3): Likewise.
270 (sub<mode>3_iwmmxt): Likewise.
271 (sssubv8qi3): Likewise.
272 (sssubv4hi3): Likewise.
273 (sssubv2si3): Likewise.
274 (ussubv8qi3): Likewise.
275 (ussubv4hi3): Likewise.
276 (ussubv2si3): Likewise.
277 (mulv4hi3_iwmmxt): Likewise.
278 (smulv4hi3_highpart): Likewise.
279 (umulv4hi3_highpart): Likewise.
280 (iwmmxt_wmacs): Likewise.
281 (iwmmxt_wmacsz): Likewise.
282 (iwmmxt_wmacu): Likewise.
283 (iwmmxt_wmacuz): Likewise.
284 (iwmmxt_clrdi): Likewise.
285 (iwmmxt_clrv8qi): Likewise.
286 (iwmmxt_clr4hi): Likewise.
287 (iwmmxt_clr2si): Likewise.
288 (iwmmxt_uavgrndv8qi3): Likewise.
289 (iwmmxt_uavgrndv4hi3): Likewise.
290 (iwmmxt_uavgv8qi3): Likewise.
291 (iwmmxt_uavgv4hi3): Likewise.
292 (iwmmxt_tinsrb): Likewise.
293 (iwmmxt_tinsrh): Likewise.
294 (iwmmxt_tinsrw): Likewise.
295 (iwmmxt_textrmub): Likewise.
296 (iwmmxt_textrmsb): Likewise.
297 (iwmmxt_textrmuh): Likewise.
298 (iwmmxt_textrmsh): Likewise.
299 (iwmmxt_textrmw): Likewise.
300 (iwmxxt_wshufh): Likewise.
304 (gtuv8qi3): Likewise.
305 (gtuv4hi3): Likewise.
306 (gtuv2si3): Likewise.
310 (smax<mode>3_iwmmxt): Likewise.
311 (umax<mode>3_iwmmxt): Likewise.
312 (smin<mode>3_iwmmxt): Likewise.
313 (umin<mode>3_iwmmxt): Likewise.
314 (iwmmxt_wpackhss): Likewise.
315 (iwmmxt_wpackwss): Likewise.
316 (iwmmxt_wpackdss): Likewise.
317 (iwmmxt_wpackhus): Likewise.
318 (iwmmxt_wpackwus): Likewise.
319 (iwmmxt_wpackdus): Likewise.
320 (iwmmxt_wunpckihb): Likewise.
321 (iwmmxt_wunpckihh): Likewise.
322 (iwmmxt_wunpckihw): Likewise.
323 (iwmmxt_wunpckilb): Likewise.
324 (iwmmxt_wunpckilh): Likewise.
325 (iwmmxt_wunpckilw): Likewise.
326 (iwmmxt_wunpckehub): Likewise.
327 (iwmmxt_wunpckehuh): Likewise.
328 (iwmmxt_wunpckehuw): Likewise.
329 (iwmmxt_wunpckehsb): Likewise.
330 (iwmmxt_wunpckehsh): Likewise.
331 (iwmmxt_wunpckehsw): Likewise.
332 (iwmmxt_wunpckelub): Likewise.
333 (iwmmxt_wunpckeluh): Likewise.
334 (iwmmxt_wunpckeluw): Likewise.
335 (iwmmxt_wunpckelsb): Likewise.
336 (iwmmxt_wunpckelsh): Likewise.
337 (iwmmxt_wunpckelsw): Likewise.
338 (ror<mode>3): Likewise.
339 (ashr<mode>3_iwmmxt): Likewise.
340 (lshr<mode>3_iwmmxt): Likewise.
341 (ashl<mode>3_iwmmxt): Likewise.
342 (ror<mode>3_di): Likewise.
343 (ashr<mode>3_di): Likewise.
344 (lshr<mode>3_di): Likewise.
345 (ashl<mode>3_di): Likewise.
346 (iwmmxt_wmadds): Likewise.
347 (iwmmxt_wmaddu): Likewise.
348 (iwmmxt_tmia): Likewise.
349 (iwmmxt_tmiaph): Likewise.
350 (iwmmxt_tmiabb): Likewise.
351 (iwmmxt_tmiatb): Likewise.
352 (iwmmxt_tmiabt): Likewise.
353 (iwmmxt_tmiatt): Likewise.
354 (iwmmxt_tmovmskb): Likewise.
355 (iwmmxt_tmovmskh): Likewise.
356 (iwmmxt_tmovmskw): Likewise.
357 (iwmmxt_waccb): Likewise.
358 (iwmmxt_wacch): Likewise.
359 (iwmmxt_waccw): Likewise.
360 (iwmmxt_waligni): Likewise.
361 (iwmmxt_walignr): Likewise.
362 (iwmmxt_walignr0): Likewise.
363 (iwmmxt_walignr1): Likewise.
364 (iwmmxt_walignr2): Likewise.
365 (iwmmxt_walignr3): Likewise.
366 (iwmmxt_wsadb): Likewise.
367 (iwmmxt_wsadh): Likewise.
368 (iwmmxt_wsadbz): Likewise.
369 (iwmmxt_wsadhz): Likewise.
370 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
371 (iwmmxt_wabsdiffb): Likewise.
372 (iwmmxt_wabsdiffh): Likewise.
373 (iwmmxt_wabsdiffw): Likewise.
374 (iwmmxt_waddsubhx): Likewise
375 (iwmmxt_wsubaddhx): Likewise.
376 (addc<mode>3): Likewise.
377 (iwmmxt_avg4): Likewise.
378 (iwmmxt_avg4r): Likewise.
379 (iwmmxt_wmaddsx): Likewise.
380 (iwmmxt_wmaddux): Likewise.
381 (iwmmxt_wmaddsn): Likewise.
382 (iwmmxt_wmaddun): Likewise.
383 (iwmmxt_wmulwsm): Likewise.
384 (iwmmxt_wmulwum): Likewise.
385 (iwmmxt_wmulsmr): Likewise.
386 (iwmmxt_wmulumr): Likewise.
387 (iwmmxt_wmulwsmr): Likewise.
388 (iwmmxt_wmulwumr): Likewise.
389 (iwmmxt_wmulwl): Likewise.
390 (iwmmxt_wqmulm): Likewise.
391 (iwmmxt_wqmulwm): Likewise.
392 (iwmmxt_wqmulmr): Likewise.
393 (iwmmxt_wqmulwmr): Likewise.
394 (iwmmxt_waddbhusm): Likewise.
395 (iwmmxt_waddbhusl): Likewise.
396 (iwmmxt_wqmiabb): Likewise.
397 (iwmmxt_wqmiabt): Likewise.
398 (iwmmxt_wqmiatb): Likewise.
399 (iwmmxt_wqmiatt): Likewise.
400 (iwmmxt_wqmiabbn): Likewise.
401 (iwmmxt_wqmiabtn): Likewise.
402 (iwmmxt_wqmiatbn): Likewise.
403 (iwmmxt_wqmiattn): Likewise.
404 (iwmmxt_wmiabb): Likewise.
405 (iwmmxt_wmiabt): Likewise.
406 (iwmmxt_wmiatb): Likewise.
407 (iwmmxt_wmiatt): Likewise.
408 (iwmmxt_wmiabbn): Likewise.
409 (iwmmxt_wmiabtn): Likewise.
410 (iwmmxt_wmiatbn): Likewise.
411 (iwmmxt_wmiattn): Likewise.
412 (iwmmxt_wmiawbb): Likewise.
413 (iwmmxt_wmiawbt): Likewise.
414 (iwmmxt_wmiawtb): Likewise.
415 (iwmmxt_wmiawtt): Likewise.
416 (iwmmxt_wmiawbbn): Likewise.
417 (iwmmxt_wmiawbtn): Likewise.
418 (iwmmxt_wmiawtbn): Likewise.
419 (iwmmxt_wmiawttn): Likewise.
420 (iwmmxt_wmerge): Likewise.
421 (iwmmxt_tandc<mode>3): Likewise.
422 (iwmmxt_torc<mode>3): Likewise.
423 (iwmmxt_torvsc<mode>3): Likewise.
424 (iwmmxt_textrc<mode>3): Likewise.
425 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
426 (wmmxt_pack): Likewise.
427 (wmmxt_mult_c1): Likewise.
428 (wmmxt_mult_c2): Likewise.
429 (wmmxt_alu_c1): Likewise.
430 (wmmxt_alu_c2): Likewise.
431 (wmmxt_alu_c3): Likewise.
432 (wmmxt_transfer_c1): Likewise.
433 (wmmxt_transfer_c2): Likewise.
434 (wmmxt_transfer_c3): Likewise.
435 (marvell_f_iwmmxt_wstr): Likewise.
436 (marvell_f_iwmmxt_wldr): Likewise.
438 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
440 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
442 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
445 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
446 * lra-constraints.c (need_for_split_p): Check call used hard regs
447 living through calls.
449 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
450 call used regs for call insn.
452 2013-06-28 Jakub Jelinek <jakub@redhat.com>
455 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
456 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
458 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
460 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
462 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
464 * lra-constraints.c (need_for_split_p): Check call used hard regs
465 living through calls.
467 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
470 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
471 to tie with any other modes. Eliminate Altivec vector mode tests,
472 since these are a subset of ALTIVEC or VSX vector modes. Simplify
473 code, to return 0 if testing MODE2 for a condition, if we've
474 already tested MODE1 for the same condition.
476 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
478 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
481 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
483 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
484 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
486 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
488 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
490 (aarch64_symbolic_constant_p): Remove.
491 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
492 static. Fix line length and white space.
493 (aarch64_symbolic_constant_p): Remove.
494 * config/aarch64/predicates.md (aarch64_valid_symref):
495 Use aarch64_classify_symbol_expression.
497 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
499 * config/arm/constraints.md (Ts): New constraint.
500 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
502 (compare_scc): Use "Ts" constraint for operand 0.
503 (ior_scc_scc): Likewise.
504 (and_scc_scc): Likewise.
505 (and_scc_scc_nodom): Likewise.
506 (ior_scc_scc_cmp): Likewise for operand 7.
507 (and_scc_scc_cmp): Likewise.
508 * config/arm/thumb2.md (thumb2_movsi_insn):
509 Add alternatives for 16-bit encodings.
510 (thumb2_movhi_insn): Likewise.
511 (thumb2_movsicc_insn): Likewise.
512 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
513 (thumb2_negscc): Use "Ts" constraint.
514 Move mvn instruction outside cond_exec block.
515 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
516 for 16-bit encodings.
518 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
520 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
522 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
523 (mulsi3subsi): Likewise.
524 (mulsidi3adddi): Likewise.
525 (mulsidi3_v6): Likewise.
526 (umulsidi3_v6): Likewise.
527 (umulsidi3adddi_v6): Likewise.
528 (smulsi3_highpart_v6): Likewise.
529 (umulsi3_highpart_v6): Likewise.
530 (mulhisi3tb): Likewise.
531 (mulhisi3bt): Likewise.
532 (mulhisi3tt): Likewise.
533 (maddhisi4): Likewise.
534 (maddhisi4tb): Likewise.
535 (maddhisi4tt): Likewise.
536 (maddhidi4): Likewise.
537 (maddhidi4tb): Likewise.
538 (maddhidi4tt): Likewise.
539 (zeroextractsi_compare0_scratch): Likewise.
540 (insv_zero): Likewise.
542 (anddi_notzesidi_di): Likewise.
543 (anddi_notsesidi_di): Likewise.
544 (andsi_notsi_si): Likewise.
545 (iordi_zesidi_di): Likewise.
546 (xordi_zesidi_di): Likewise.
547 (andsi_iorsi3_notsi): Likewise.
551 (not_shiftsi): Likewise.
552 (unaligned_loadsi): Likewise.
553 (unaligned_loadhis): Likewise.
554 (unaligned_loadhiu): Likewise.
555 (unaligned_storesi): Likewise.
556 (unaligned_storehi): Likewise.
557 (extv_reg): Likewise.
558 (extzv_t2): Likewise.
561 (arm_zero_extendhisi2addsi): Likewise.
562 (arm_zero_extendqisi2addsi): Likewise.
563 (compareqi_eq0): Likewise.
564 (arm_extendhisi2_v6): Likewise.
565 (arm_extendqisi2addsi): Likewise.
566 (arm_movt): Likewise.
567 (thumb2_ldrd): Likewise.
568 (thumb2_ldrd_base): Likewise.
569 (thumb2_ldrd_base_neg): Likewise.
570 (thumb2_strd): Likewise.
571 (thumb2_strd_base): Likewise.
572 (thumb2_strd_base_neg): Likewise.
573 (arm_negsi2): Add alternative for 16-bit encoding.
574 (arm_one_cmplsi2): Likewise.
576 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
578 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
579 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
581 * config/arm/vfp.md (*thumb2_movsf_vfp):
582 Disable predication for arm_restrict_it.
583 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
584 (*thumb2_movdfcc_vfp): Likewise.
585 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
586 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
587 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
588 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
589 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
590 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
591 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
592 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
593 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
594 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
595 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
596 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
597 Disable predication for arm_restrict_it.
599 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
601 * config/i386/bmiintrin.h (_bextr_u32): New.
604 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
606 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
607 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
608 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
609 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
610 * config/mips/n32-elf.h: ...this new file.
612 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
615 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
616 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
618 2013-06-27 Catherine Moore <clm@codesourcery.com>
620 * config/mips/mips-tables.opt: Regenerate.
621 * config/mips/mips-cpus.def: Add m14ke and m14kec.
622 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
623 * doc/invoke.texi: Add -m14kc.
625 2013-06-27 Jakub Jelinek <jakub@redhat.com>
628 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
629 constraints of operand 1 and 2.
632 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
633 to match RTL canonicalization. Swap predicates and
634 constraints of operand 1 and 2.
636 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
638 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
639 Process OP_INOUT regs for splitting too.
641 2013-06-27 Jakub Jelinek <jakub@redhat.com>
643 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
644 decl before the loop, initialize to NULL.
645 (vectorizable_load): Initialize ptr_incr to NULL.
647 2013-06-27 Martin Jambor <mjambor@suse.cz>
650 * ipa-ref.h (ipa_maybe_record_reference): Declare.
651 * ipa-ref.c (ipa_maybe_record_reference): New function.
652 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
653 * ipa-cp.c (create_specialized_node): Record potential references from
655 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
657 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
659 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
660 parameter 'mode' of type 'enum machine_mode mode'; change to pass
662 (aarch64_add_offset): Update calls to aarch64_force_temporary.
663 (aarch64_expand_mov_immediate): Likewise.
665 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
667 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
668 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
670 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
672 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
673 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
674 (struct machine_function): Add tbegin_p.
675 (s390_canonicalize_comparison): Fold CC mode compares to
676 conditional jump if possible.
677 (s390_emit_jump): Return the emitted jump.
678 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
679 Handle CCRAWmode compares.
680 (s390_option_override): Default to -mhtm if available.
681 (s390_reg_clobbered_rtx): Handle floating point regs as well.
682 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
683 FPRs instead of df_regs_ever_live_p.
684 (s390_optimize_nonescaping_tx): New function.
685 (s390_init_frame_layout): Extend clobbered_regs array to cover
687 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
688 (s390_expand_tbegin): New function.
689 (enum s390_builtin): New enum definition.
690 (code_for_builtin): New array definition.
691 (s390_init_builtins): New function.
692 (s390_expand_builtin): New function.
693 (TARGET_INIT_BUILTINS): Define.
694 (TARGET_EXPAND_BUILTIN): Define.
695 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
696 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
697 (s390_alc_comparison): Likewise.
698 * config/s390/s390-modes.def: Add CCRAWmode.
699 * config/s390/s390.h (processor_flags): Add PF_TX.
700 (TARGET_CPU_HTM): Define macro.
701 (TARGET_HTM): Define macro.
702 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
703 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
704 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
705 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
706 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
707 (TBEGIN_MASK, TBEGINC_MASK): New constants.
708 ("*cc_to_int"): Move up.
709 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
710 constants other than 0.
711 ("*ccraw_to_int"): New insn and splitter definition.
712 ("tbegin", "tbegin_nofloat", "tbegin_retry")
713 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
714 ("tx_assist"): New expander.
715 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
716 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
717 * config/s390/s390.opt: Add -mhtm option.
718 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
719 * config/s390/htmxlintrin.h: New file.
720 * config/s390/htmintrin.h: New file.
721 * config/s390/s390intrin.h: New file.
722 * doc/extend.texi: Document htm builtins.
723 * config.gcc: Add the new header files to extra_headers.
725 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
727 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
728 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
730 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
731 Pat Haugen <pthaugen@us.ibm.com>
732 Peter Bergner <bergner@vnet.ibm.com>
734 * config/rs6000/power8.md: New.
735 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
736 setting for power8 entry.
737 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
738 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
739 test for Power4/Power5 only.
740 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
742 (force_new_group): Adjust comment.
743 * config/rs6000/rs6000.md: Include power8.md.
745 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
747 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
748 * config/arm/arm-protos.h (arm_max_conditional_execute): New
750 (tune_params): Update comment.
751 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
752 (arm_max_conditional_execute): New function.
753 (thumb2_final_prescan_insn): Use max_insn_skipped and
754 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
756 2013-06-25 Jakub Jelinek <jakub@redhat.com>
758 PR tree-optimization/57705
759 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
760 SSA_NAME step, provided that it is not defined inside the loop.
761 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
762 (get_initial_def_for_induction): Handle SSA_NAME IV step.
764 2013-06-25 Martin Jambor <mjambor@suse.cz>
767 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
768 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
770 (ipa_note_param_call): Initialize member_ptr flag.
771 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
772 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
773 (ipa_write_indirect_edge_info): Stream member_ptr flag.
774 (ipa_read_indirect_edge_info): Likewise.
776 2013-06-25 Richard Biener <rguenther@suse.de>
779 * passes.c (init_optimization_passes): Move pass_fold_builtins
780 and pass_dce earlier with -Og.
782 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
784 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
785 <BIT_FIELD_REF>: Remove trailing TAB.
786 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
789 2013-06-24 Martin Jambor <mjambor@suse.cz>
791 PR tree-optimization/57358
792 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
793 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
794 (ipa_analyze_params_uses): Generate pessimistic info when true.
796 2013-06-24 Martin Jambor <mjambor@suse.cz>
798 PR tree-optimization/57539
799 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
800 global.inlined_to of the new node to it. All callers changed.
801 * ipa-inline-transform.c (clone_inlined_nodes): New variable
802 inlining_into, pass it to cgraph_clone_node.
803 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
804 ipa_free_edge_args_substructures.
805 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
806 rdesc linked list. Do not assert rdesc edges have inlined caller.
807 Assert we have found an rdesc in the rdesc list.
809 2013-06-24 Richard Biener <rguenther@suse.de>
811 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
812 (pointer_set_lookup): Declare.
813 (class pointer_map): New template class implementing a
814 generic pointer to T map.
815 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
816 pointer_map<T>::contains, pointer_map<T>::insert,
817 pointer_map<T>::traverse): New functions.
818 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
819 (pointer_set_lookup): New function.
820 (pointer_set_contains): Use pointer_set_lookup.
821 (pointer_set_insert): Likewise.
822 (insert_aux): Remove.
823 (struct pointer_map_t): Embed a pointer_set_t.
824 (pointer_map_create): Adjust.
825 (pointer_map_destroy): Likewise.
826 (pointer_map_contains): Likewise.
827 (pointer_map_insert): Likewise.
828 (pointer_map_traverse): Likewise.
829 * tree-streamer.h (struct streamer_tree_cache_d): Use a
830 pointer_map<unsigned> instead of a pointer_map_t.
831 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
832 (streamer_tree_cache_lookup): Likewise.
833 (streamer_tree_cache_create): Likewise.
834 (streamer_tree_cache_delete): Likewise.
835 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
836 pointer_map<unsigned> instead of a pointer_map_t.
837 (lto_init_tree_ref_encoder): Adjust.
838 (lto_destroy_tree_ref_encoder): Likewise.
839 * lto-section-out.c (lto_output_decl_index): Likewise.
840 (lto_record_function_out_decl_state): Likewise.
841 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
843 2013-06-24 Richard Biener <rguenther@suse.de>
845 PR tree-optimization/57488
846 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
848 2013-06-24 Alan Modra <amodra@gmail.com>
850 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
851 (gen_easy_altivec_constant): Likewise.
852 * config/rs6000/predicates.md (easy_vector_constant_add_self,
853 easy_vector_constant_msb): Likewise.
855 2013-06-23 Jakub Jelinek <jakub@redhat.com>
858 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
859 add missing return true.
861 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
864 * config/sh/predicates.md (general_extend_operand): Invoke
865 general_movsrc_operand for memory operands.
866 (general_movsrc_operand): Allow reg+reg addressing, do not use
867 general_operand for memory operands.
869 2013-06-23 Sriraman Tallam <tmsriram@google.com>
871 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
872 when current target options does not apply.
873 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
874 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
875 * config/i386/bmiintrin.h: Pass appropriate target
876 attributes to header.
877 * config/i386/mmintrin.h: Ditto.
878 * config/i386/nmmintrin.h: Ditto.
879 * config/i386/avx2intrin.h: Ditto.
880 * config/i386/fxsrintrin.h: Ditto.
881 * config/i386/tbmintrin.h: Ditto.
882 * config/i386/xsaveintrin.h: Ditto.
883 * config/i386/f16cintrin.h: Ditto.
884 * config/i386/xtestintrin.h: Ditto.
885 * config/i386/xsaveoptintrin.h: Ditto.
886 * config/i386/bmi2intrin.h: Ditto.
887 * config/i386/lzcntintrin.h: Ditto.
888 * config/i386/smmintrin.h: Ditto.
889 * config/i386/wmmintrin.h: Ditto.
890 * config/i386/x86intrin.h: Remove all header include guards.
891 * config/i386/prfchwintrin.h: Ditto.
892 * config/i386/pmmintrin.h: Ditto.
893 * config/i386/tmmintrin.h: Ditto.
894 * config/i386/xmmintrin.h: Ditto.
895 * config/i386/popcntintrin.h: Ditto.
896 * config/i386/rdseedintrin.h: Ditto.
897 * config/i386/ammintrin.h: Ditto.
898 * config/i386/emmintrin.h: Ditto.
899 * config/i386/immintrin.h: Remove all header include guards.
900 * config/i386/fma4intrin.h: Ditto.
901 * config/i386/lwpintrin.h: Ditto.
902 * config/i386/xopintrin.h: Ditto.
903 * config/i386/ia32intrin.h: Ditto.
904 * config/i386/avxintrin.h: Ditto.
905 * config/i386/rtmintrin.h: Ditto.
906 * config/i386/fmaintrin.h: Ditto.
907 * config/i386/mm3dnow.h: Ditto.
909 2013-06-22 Sriraman Tallam <tmsriram@google.com>
911 * common/config/i386/i386-common.c: Handle LZCNT.
913 2013-06-22 Andi Kleen <ak@linux.intel.com>
915 * doc/extend.texi: Use __atomic_store_n instead of
916 __atomic_store in HLE example.
918 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
920 * config/sh/sh.c: Remove <cstdlib> workaround.
922 2013-06-21 Andi Kleen <ak@linux.intel.com>
924 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
926 2013-06-21 Andi Kleen <ak@linux.intel.com>
928 * doc/extend.texi: Document that __atomic_clear and
929 __atomic_test_and_set should only be used with bool.
931 2013-06-20 Jan Hubicka <jh@suse.cz>
933 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
935 * tree.c (decls_same_for_odr): New function.
936 (same_for_edr): New function.
937 (types_same_for_odr): New function.
938 (get_binfo_at_offset): Use it.
939 * tree.h (types_same_for_odr): Declare.
941 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
942 Jason Merrill <jason@redhat.com>
944 * system.h: Include <cstdlib> as well as <stdlib.h>.
946 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
949 * config/i386/i386.c (construct_container): Report error if
950 long double is used with disabled x87 float returns.
952 2013-06-20 Jan Hubicka <jh@suse.cz>
954 * lto-cgraph.c (input_symtab): Do not set cgraph state.
956 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
958 PR rtl-optimization/57425
959 PR rtl-optimization/57569
960 * alias.c (write_dependence_p): Remove parameters mem_mode and
961 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
963 (canon_anti_dependence): Get comments and semantics in sync.
964 Add parameter mem_canonicalized. Changed all callers.
965 * rtl.h (canon_anti_dependence): Update prototype.
967 2013-06-20 Richard Biener <rguenther@suse.de>
969 * data-streamer-in.c (streamer_read_uhwi): Optimize single
970 byte case, inline streamer_read_uchar and defer section
973 2013-06-20 Richard Biener <rguenther@suse.de>
975 PR tree-optimization/57584
976 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
977 SSA names into the expanded expression that take part in
980 2013-06-19 <singhai@google.com>
982 * gcov.c (print_usage): Handle new option.
983 (process_args): Ditto.
984 (get_gcov_intermediate_filename): New function.
985 (output_intermediate_file): New function.
986 (output_gcov_file): New function
987 (generate_results): Handle new option.
988 (release_function): Relase demangled name.
989 (read_graph_file): Handle demangled name.
990 (output_lines): Ditto.
991 * doc/gcov.texi: Document gcov intermediate format.
993 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
996 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
997 (lra_emit_add): Use the functions. Add comment about Y as an
1000 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
1003 * collect2.c (collect_atexit): New.
1004 (collect_exit): Delete.
1005 (main): Register collect_atexit with atexit.
1006 (collect_wait): Change collect_exit to exit.
1008 * collect2.h (collect_exit): Delete.
1009 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
1011 2013-06-19 Wei Mi <wmi@google.com>
1013 PR rtl-optimization/57518
1014 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
1015 if regno is used in paradoxical subreg.
1016 (update_equiv_regs): Check pdx_subregs[regno] before
1017 set a reg to be equivalent with a mem.
1019 2013-06-19 Matthias Klose <doko@ubuntu.com>
1022 * file-find.h (find_a_file): Add a mode parameter.
1023 * file-find.c (find_a_file): Likewise.
1024 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
1025 with X_OK for the executables.
1026 * collect2.c (main): Call find_a_file with X_OK.
1028 2013-06-19 Steve Ellcey <sellcey@mips.com>
1031 * config/mips/mips.md (casesi_internal_mips16_<mode>):
1032 Use NEXT_INSN instead of next_real_insn.
1034 2013-06-19 Jan Hubicka <jh@suse.cz>
1036 * cgraph.h (const_value_known_p): Replace by ...
1037 (ctor_for_folding): .. this one.
1038 * cgraphunit.c (process_function_and_variable_attributes): Use it.
1039 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
1040 * expr.c (expand_expr_real_1): Likewise.
1041 (string_constant): Likewise.
1042 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
1043 * ipa.c (process_references): Likewise.
1044 (symtab_remove_unreachable_nodes): Likewise.
1045 * ipa-inline-analysis.c (param_change_prob): Likewise.
1046 * gimple-fold.c (canonicalize_constructor_val): Likewise.
1047 (get_base_constructor): Likwise.
1048 * varpool.c (varpool_remove_node): Likewise.
1049 (varpool_remove_initializer): LIkewise.
1050 (dump_varpool_node): LIkwise.
1051 (const_value_known_p): Rewrite to ...
1052 (ctor_for_folding): ... this one.
1054 2013-06-19 Jakub Jelinek <jakub@redhat.com>
1057 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
1058 PERSONALITY in $PATH derived prefixes.
1060 2013-06-19 Jeff Law <law@redhat.com>
1062 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
1065 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
1066 (simplify_bitwise_binary): Use it to simpify certain binary ops on
1069 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
1071 * config/arm/vfp.md: Move VFP instruction classification documentation
1073 * config/arm/arm.md: ... here. Update instruction classification
1076 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
1078 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
1079 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
1080 pattern. Use more efficient sequences on ARMv5 and Thumb2.
1082 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
1085 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
1086 with NEXT_INSN. Use tablejump_p to check for jump table data
1089 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
1092 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
1093 that now in C++ the value is correct per the C++ standards.
1095 2013-06-19 Richard Biener <rguenther@suse.de>
1097 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
1100 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1103 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1106 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
1107 with next_active_insn.
1109 2013-06-18 Sriraman Tallam <tmsriram@google.com>
1111 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
1112 functions are inlined during failures to flag an error.
1113 * tree-inline.c (expand_call_inline): Allow the error to be flagged
1114 in early inline pass.
1116 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
1118 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
1121 2013-06-18 Julian Brown <julian@codesourcery.com>
1123 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
1124 Permit virtual register pre-reload if !strict.
1125 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
1127 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
1129 * config/arm/neon.md (movmisalign<mode>): Use
1130 neon_perm_struct_or_reg_operand instead of
1131 neon_struct_or_register_operand.
1132 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
1133 neon_permissive_struct_operand instead of neon_struct_operand.
1134 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
1135 neon_vector_mem_operand.
1136 * config/arm/predicates.md (neon_struct_operand): Adjust call to
1137 neon_vector_mem_operand.
1138 (neon_permissive_struct_operand): New.
1139 (neon_struct_or_register_operand): Rename to...
1140 (neon_perm_struct_or_reg_operand): This. Adjust call to
1141 neon_vector_mem_operand.
1143 2013-06-18 Richard Biener <rguenther@suse.de>
1145 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
1146 * lto-streamer.h: Include pointer-set.h.
1147 (struct lto_decl_slot): Remove.
1148 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
1149 Remove next_index entry.
1150 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
1151 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
1152 (lto_init_tree_ref_encoder): Adjust.
1153 (lto_destroy_tree_ref_encoder): Likewise.
1154 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
1155 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
1156 (lto_output_decl_index): Adjust.
1157 (lto_new_out_decl_state): Likewise.
1158 (lto_record_function_out_decl_state): Likewise.
1159 * lto-streamer-out.c (copy_function): Likewise.
1161 2013-06-18 Richard Biener <rguenther@suse.de>
1163 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
1164 * cgraphunit.c: Include cfgloop.h.
1165 (init_lowered_empty_function): Initialize the loop tree.
1166 (assemble_thunk): Insert new BBs into loops.
1168 2013-06-18 Richard Biener <rguenther@suse.de>
1170 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
1171 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
1172 the map from cache entry to cache index optional.
1173 (streamer_tree_cache_replace_tree): Adjust accordingly.
1174 (streamer_tree_cache_append): Likewise.
1175 (streamer_tree_cache_delete): Likewise.
1176 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
1177 streamer cache map from cache entry to cache index.
1178 * lto-streamer-out.c (create_output_block): Adjust.
1180 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
1182 * config/arm/arm.md (attribute "insn"): Move multiplication and
1183 division attributes to...
1184 (attribute "type"): ... here. Remove mult.
1185 (attribute "mul32"): New attribute.
1186 (attribute "mul64"): Add umaal.
1187 (*arm_mulsi3): Update attributes.
1188 (*arm_mulsi3_v6): Likewise.
1189 (*thumb_mulsi3): Likewise.
1190 (*thumb_mulsi3_v6): Likewise.
1191 (*mulsi3_compare0): Likewise.
1192 (*mulsi3_compare0_v6): Likewise.
1193 (*mulsi_compare0_scratch): Likewise.
1194 (*mulsi_compare0_scratch_v6): Likewise.
1195 (*mulsi3addsi): Likewise.
1196 (*mulsi3addsi_v6): Likewise.
1197 (*mulsi3addsi_compare0): Likewise.
1198 (*mulsi3addsi_compare0_v6): Likewise.
1199 (*mulsi3addsi_compare0_scratch): Likewise.
1200 (*mulsi3addsi_compare0_scratch_v6): Likewise.
1201 (*mulsi3subsi): Likewise.
1202 (*mulsidi3adddi): Likewise.
1203 (*mulsi3addsi_v6): Likewise.
1204 (*mulsidi3adddi_v6): Likewise.
1205 (*mulsidi3_nov6): Likewise.
1206 (*mulsidi3_v6): Likewise.
1207 (*umulsidi3_nov6): Likewise.
1208 (*umulsidi3_v6): Likewise.
1209 (*umulsidi3adddi): Likewise.
1210 (*umulsidi3adddi_v6): Likewise.
1211 (*smulsi3_highpart_nov6): Likewise.
1212 (*smulsi3_highpart_v6): Likewise.
1213 (*umulsi3_highpart_nov6): Likewise.
1214 (*umulsi3_highpart_v6): Likewise.
1215 (mulhisi3): Likewise.
1216 (*mulhisi3tb): Likewise.
1217 (*mulhisi3bt): Likewise.
1218 (*mulhisi3tt): Likewise.
1219 (maddhisi4): Likewise.
1220 (*maddhisi4tb): Likewise.
1221 (*maddhisi4tt): Likewise.
1222 (maddhidi4): Likewise.
1223 (*maddhidi4tb): Likewise.
1224 (*maddhidi4tt): Likewise.
1226 (udivsi3): Likewise.
1227 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
1228 (thumb2_mulsi_short_compare0): Likewise.
1229 (thumb2_mulsi_short_compare0_scratch): Likewise.
1230 * config/arm/arm1020e.md (1020mult1): Update attribute change.
1231 (1020mult2): Likewise.
1232 (1020mult3): Likewise.
1233 (1020mult4): Likewise.
1234 (1020mult5): Likewise.
1235 (1020mult6): Likewise.
1236 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
1238 (cortex_a15_mult64): Likewise.
1239 (cortex_a15_sdiv): Likewise.
1240 (cortex_a15_udiv): Likewise.
1241 * config/arm/arm1026ejs.md (mult1): Update attribute change.
1247 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
1248 (pj4_ir_div): Likewise.
1249 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
1250 (11_mult2): Likewise.
1251 (11_mult3): Likewise.
1252 (11_mult4): Likewise.
1253 (11_mult5): Likewise.
1254 (11_mult6): Likewise.
1255 (11_mult7): Likewise.
1256 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
1257 (cortex_a8_mla): Likewise.
1258 (cortex_a8_mull): Likewise.
1259 (cortex_a8_smulwy): Likewise.
1260 (cortex_a8_smlald): Likewise.
1261 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
1262 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
1263 (cortex_r4_mul_3): Likewise.
1264 (cortex_r4_mla_4): Likewise.
1265 (cortex_r4_mla_3): Likewise.
1266 (cortex_r4_smlald): Likewise.
1267 (cortex_r4_mull): Likewise.
1268 (cortex_r4_sdiv): Likewise.
1269 (cortex_r4_udiv): Likewise.
1270 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
1271 (cortex_a7_idiv): Likewise.
1272 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
1273 (9_mult2): Likewise.
1274 (9_mult3): Likewise.
1275 (9_mult4): Likewise.
1276 (9_mult5): Likewise.
1277 (9_mult6): Likewise.
1278 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
1279 (cortex_a53_sdiv): Likewise.
1280 (cortex_a53_udiv): Likewise.
1281 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
1282 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
1283 (mp626_mult2): Likewise.
1284 (mp626_mult3): Likewise.
1285 (mp626_mult4): Likewise.
1286 * config/arm/fa526.md (526_mult1): Update attribute change.
1287 (526_mult2): Likewise.
1288 * config/arm/arm-generic.md (mult): Update attribute change.
1289 (mult_ldsched_strongarm): Likewise.
1290 (mult_ldsched): Likewise.
1291 (multi_cycle): Likewise.
1292 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
1293 * config/arm/fa606te.md (606te_mult1): Update attribute change.
1294 (606te_mult2): Likewise.
1295 (606te_mult3): Likewise.
1296 (606te_mult4): Likewise.
1297 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
1298 (cortex_a9_mac16): Likewise.
1299 (cortex_a9_multiply): Likewise.
1300 (cortex_a9_mac): Likewise.
1301 (cortex_a9_multiply_long): Likewise.
1302 * config/arm/fa626te.md (626te_mult1): Update attribute change.
1303 (626te_mult2): Likewise.
1304 (626te_mult3): Likewise.
1305 (626te_mult4): Likewise.
1307 2013-06-18 Richard Biener <rguenther@suse.de>
1310 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
1312 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1315 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
1316 with next_active_insn.
1318 2013-06-18 Alan Modra <amodra@gmail.com>
1320 * config/rs6000/rs6000.h (enum data_align): New.
1321 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
1322 (DATA_ABI_ALIGNMENT): Define.
1323 (CONSTANT_ALIGNMENT): Correct comment.
1324 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
1325 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
1327 2013-06-17 David Malcolm <dmalcolm@redhat.com>
1329 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
1330 ATTRIBUTE_UNUSED marking.
1332 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
1334 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
1335 alternative and update.
1336 (aarch64_dup_lanedi): Delete.
1337 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
1338 * config/aarch64/aarch64-simd-builtins.def: Update.
1340 2013-06-17 Richard Biener <rguenther@suse.de>
1342 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
1343 (lto_input_scc): Declare.
1344 (lto_input_tree_1): Likewise.
1345 (struct lto_stats_d): Add num_tree_bodies_output and
1346 num_pickle_refs_output.
1347 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
1348 (lto_read_tree_1): Split out from ...
1349 (lto_read_tree): ... this.
1350 (lto_input_scc): New function.
1351 (lto_input_tree_1): Split out from ...
1352 (lto_input_tree): ... this. Handle LTO_tree_scc.
1353 (lto_data_in_create): Create the streamer cache without hashes.
1354 * lto-streamer-out.c (create_output_block): Create the streamer
1355 cache with hashes when not doing WPA.
1356 (lto_write_tree_1): Split out from ...
1357 (lto_write_tree): ... this.
1358 (get_symbol_initial_value): New function.
1359 (lto_output_tree_1): Split out from ...
1360 (lto_output_tree): ... this. Write trees as series of SCCs
1361 using a DFS walk via DFS_write_tree.
1362 (struct sccs, struct scc_entry): New types.
1363 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
1364 (DFS_write_tree_body): New function.
1365 (DFS_write_tree): Likewise.
1366 (hash_tree): Likewise.
1367 (scc_entry_compare): Likewise.
1368 (hash_scc): Likewise.
1369 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
1370 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
1371 TREE_CHAIN as regular reference.
1372 (streamer_read_integer_cst): Remove.
1373 (streamer_get_pickled_tree): Adjust.
1374 * tree-streamer-out.c (streamer_write_chain): Disable streaming
1375 of DECL_EXTERNALs in BLOCK_VARS for now.
1376 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
1378 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
1379 Add hash value argument and record that if hashes are recorded
1381 (streamer_tree_cache_insert_1): Adjust.
1382 (streamer_tree_cache_insert): Likewise.
1383 (streamer_tree_cache_insert_at): Rename to ...
1384 (streamer_tree_cache_replace_tree): ... this and adjust.
1385 (streamer_tree_cache_append): Adjust.
1386 (record_common_node): Likewise.
1387 (streamer_tree_cache_create): Add argument whether to
1388 record hash values together with trees.
1389 (streamer_tree_cache_delete): Adjust.
1390 * tree-streamer.h (struct streamer_tree_cache_d): Add
1392 (streamer_read_integer_cst): Remove.
1393 (streamer_tree_cache_insert): Adjust.
1394 (streamer_tree_cache_append): Likewise.
1395 (streamer_tree_cache_insert_at): Rename to ...
1396 (streamer_tree_cache_replace_tree): ... this and adjust.
1397 (streamer_tree_cache_create): Add argument whether to record hashes.
1398 (streamer_tree_cache_get): Rename to ...
1399 (streamer_tree_cache_get_tree): ... this.
1400 (streamer_tree_cache_get_hash): New function.
1401 * tree.c (cache_integer_cst): New function.
1402 * tree.h (cache_integer_cst): Declare.
1403 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
1404 * lto-symtab.c (lto_varpool_replace_node): Only release
1405 DECL_INITIAL of non-prevailing decls.
1406 * varpool.c (varpool_remove_initializer): Do not release
1407 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
1409 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
1411 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
1412 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
1413 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
1414 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
1415 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
1416 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
1417 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
1418 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
1419 instead of TARGET_64BIT.
1420 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
1421 Require ISA_HAS_<D>DIV.
1423 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
1425 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
1426 (mips*-*-linux*): Move default with_llsc setting to where other
1428 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
1430 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
1431 Likewise. Remove default with_tune setting. Move default float
1432 setting to its own block. Handle with_llsc in the same block as above.
1434 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
1436 PR rtl-optimization/57425
1437 PR rtl-optimization/57569
1438 * alias.c (write_dependence_p): Add new parameters mem_mode,
1439 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
1440 Changed all callers.
1441 (canon_anti_dependence): New function.
1442 * cse.c (check_dependence): Use canon_anti_dependence.
1443 * cselib.c (cselib_invalidate_mem): Likewise.
1444 * rtl.h (canon_anti_dependence): Declare.
1446 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
1448 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
1449 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
1450 ".set mips3" for 64-bit targets.
1452 2013-06-15 Dehao Chen <dehao@google.com>
1454 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
1455 * gimple-low.c (gimple_check_call_matching_types): Likewise.
1456 (gimple_check_call_args): Likewise.
1457 * value-prof.c (check_ic_target): Likewise.
1458 * ipa-inline.c (early_inliner): Likewise.
1459 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
1460 * cgraph.c (cgraph_create_edge_1): Likewise.
1461 (cgraph_make_edge_direct): Likewise.
1463 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1466 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
1467 rs6000_output_move_128bit to handle emitting quad memory
1468 operations. Set attribute length to 8 bytes.
1470 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
1472 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
1474 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
1475 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
1476 (aarch64_<su>mlsl<mode>): Likewise.
1478 2013-06-14 Mike Stump <mikestump@comcast.net>
1480 * Makefile.in (TARGET_H): Add insn-codes.h.
1482 2013-06-14 Alan Modra <amodra@gmail.com>
1486 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
1487 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
1488 bitfield expansion when EXPAND_MEMORY.
1489 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
1491 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
1493 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1494 test for clearing quad memory on 32-bit later.
1496 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
1498 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
1499 (fold_negate_expr): Likewise.
1500 (fold_real_zero_addition_p): Handle vectors.
1501 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
1503 2013-06-14 Alan Modra <amodra@gmail.com>
1505 * varasm.c (force_const_mem): Revert 2013-06-07 change.
1507 2013-06-13 Jan Hubicka <jh@suse.cz>
1509 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
1510 Local comdats are not externally visible.
1511 * symtab.c (dump_symtab_base): Dump externally visible.
1512 (verify_symtab_base): Verify back links in the symtab hash.
1514 2013-06-13 Bin Cheng <bin.cheng@arm.com>
1516 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
1517 CONVERT_EXPR as equal nodes.
1519 2013-06-13 Bin Cheng <bin.cheng@arm.com>
1521 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
1523 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
1525 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
1526 Generalize to complex and vector.
1527 * tree.c (build_all_ones_cst): New function.
1528 * tree.h (build_all_ones_cst): Declare it.
1530 2013-06-13 Alan Modra <amodra@gmail.com>
1532 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
1533 * config/rs6000/rs6000.md (signbittf2): New insn.
1534 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
1535 (abstf2_internal, cmptf_internal2): Likewise.
1536 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
1538 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
1539 Pat Haugen <pthaugen@us.ibm.com>
1540 Peter Bergner <bergner@vnet.ibm.com>
1542 * config/rs6000/rs6000.c (emit_load_locked): Add support for
1543 power8 byte, half-word, and quad-word atomic instructions.
1544 (emit_store_conditional): Likewise.
1545 (rs6000_expand_atomic_compare_and_swap): Likewise.
1546 (rs6000_expand_atomic_op): Likewise.
1548 * config/rs6000/sync.md (larx): Add new modes for power8.
1550 (AINT): New mode iterator to include TImode as well as normal
1551 integer modes on power8.
1552 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
1553 that VSX registers are not considered. Use AINT mode iterator
1554 instead of INT1 to allow inclusion of quad word atomic operations
1556 (load_locked<mode>): Likewise.
1557 (store_conditional<mode>): Likewise.
1558 (atomic_compare_and_swap<mode>): Likewise.
1559 (atomic_exchange<mode>): Likewise.
1560 (atomic_nand<mode>): Likewise.
1561 (atomic_fetch_<fetchop_name><mode>): Likewise.
1562 (atomic_nand_fetch<mode>): Likewise.
1563 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
1565 (ATOMIC): On power8, add QImode, HImode modes.
1566 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
1567 modes that promote to SImode.
1568 (load_lockedti): Convert TImode arguments to PTImode, so that we
1569 get a guaranteed even/odd register pair.
1570 (load_lockedpti): Likewise.
1571 (store_conditionalti): Likewise.
1572 (store_conditionalpti): Likewise.
1574 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
1575 atomic load/store instructions.
1578 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
1580 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
1582 (insn_count): New attribute, with most cases extracted from...
1583 (length): ...here. Redefine most cases in terms of insn_count.
1584 (single_insn): Delete.
1585 (can_delay): Use insn_count to check for single instructions.
1586 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
1587 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
1588 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
1589 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
1590 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
1591 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
1592 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
1593 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
1594 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
1595 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
1596 rather than "length".
1597 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
1598 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
1599 Use "insn_count" rather than "length".
1600 * config/mips/mips-dsp.md
1601 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
1602 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
1605 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
1607 PR tree-optimization/57361
1608 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
1610 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
1612 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
1614 (aarch64_simd_combine<mode>): New instruction expansion.
1615 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
1617 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
1618 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
1620 2013-06-12 Jan Hubicka <jh@suse.cz>
1622 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
1623 decl has when in streaming stage.
1624 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
1625 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
1627 2013-06-12 Roland Stigge <stigge@antcom.de>
1630 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
1632 2013-06-12 Jakub Jelinek <jakub@redhat.com>
1634 PR tree-optimization/57537
1635 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
1636 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
1638 2013-06-12 Richard Biener <rguenther@suse.de>
1640 * data-streamer.h (streamer_write_char_stream): CSE
1641 obs->current_pointer.
1642 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
1643 streamer_write_char_stream manually and optimize the resulting loop.
1644 (streamer_write_hwi_stream): Likewise.
1646 2013-06-12 Jan Hubicka <jh@suse.cz>
1648 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
1649 * cgraph.h (varpool_create_empty_node): Declare.
1650 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
1652 * symtab.c (symtab_unregister_node): Be lax about missin entries
1654 (symtab_get_node): Update comment.
1655 * varpool.c (varpool_create_empty_node): Break out from ...
1656 (varpool_node_for_decl): ... here.
1657 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
1659 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
1661 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
1662 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
1663 part. Use straight-line flow at the end.
1664 <COMPONENT_REF>: Remove superfluous else.
1665 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
1667 2013-06-12 Jakub Jelinek <jakub@redhat.com>
1670 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
1671 target hook even for !TREE_PUBLIC decls. If no resolution info
1672 is available, return false for common and external decls.
1674 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1676 * config/rl78/constraints.md (U): New constraint.
1677 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
1680 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1683 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
1684 to allow returning address to AT_PLATFORM name.
1686 2013-06-11 Jan Hubicka <jh@suse.cz>
1688 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
1689 * cgraph.h (symtab_node_base): Add weakref flag.
1690 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
1691 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
1692 (output_weakrefs): Use weakref flag.
1693 * fold-const.c (simple_operand_p): Handle WEAK.
1694 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
1695 * ipa.c (varpool_externally_visible_p): Drop weakref.
1696 (function_and_variable_visibility): Update comment; fix weakref
1697 sanity checks; do not clear DECL_WEAK on them.
1698 * lto-cgraph.c (lto_output_node): update.
1699 (lto_output_varpool_node): Update.
1700 (input_overwrite_node): Update.
1701 (input_node): Update.
1702 (input_varpool_node): Update.
1703 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
1704 (lto_symtab_merge_symbols): Add sanity check.
1705 (lto_symtab_prevailing_decl): Do not special case weakrefs.
1706 * passes.c (rest_of_decl_compilation): Set static flag, too.
1707 * symtab.c (dump_symtab_base): Dump weakref.
1708 (verify_symtab_base): Sanity check weakrefs.
1709 (symtab_make_decl_local): Remove duplicated code.
1710 (symtab_alias_ultimate_target): Simplify.
1711 * varpool.c (varpool_create_variable_alias): Set weakref flag.
1713 2013-06-11 DJ Delorie <dj@redhat.com>
1715 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
1716 (rl78_unwind_word_mode): New.
1718 2013-06-11 David Malcolm <dmalcolm@redhat.com>
1720 * final.c (debug_prefix_maps): Make static.
1722 2013-06-11 David Malcolm <dmalcolm@redhat.com>
1724 * function.c (initial_trampoline): Remove stray copy.
1726 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
1728 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
1730 2013-06-11 Martin Jambor <mjambor@suse.cz>
1732 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
1733 within bounds at the beginning of the function.
1735 2013-06-11 Alan Modra <amodra@gmail.com>
1737 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
1739 (get_named_section): Don't NULL !DECL_P decl.
1741 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
1743 * doc/invoke.texi (core-avx2): Document.
1745 (atom): Updated with MOVBE.
1747 2013-06-11 Richard Biener <rguenther@suse.de>
1749 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
1751 2013-06-11 Anton Blanchard <anton@samba.org>
1753 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
1754 correct shift value in little-endian mode.
1756 2013-06-11 Jakub Jelinek <jakub@redhat.com>
1759 * varasm.c (get_variable_align): Move #endif to the right place.
1761 2013-06-10 Cary Coutant <ccoutant@google.com>
1763 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
1764 for hash so that hash table traversal order is deterministic.
1766 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
1767 Pat Haugen <pthaugen@us.ibm.com>
1768 Peter Bergner <bergner@vnet.ibm.com>
1770 * config/rs6000/vector.md (GPR move splitter): Do not split moves
1771 of vectors in GPRS if they are direct moves or quad word load or
1774 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
1776 (direct_move_p): Likewise.
1777 (quad_load_store_p): Likewise.
1779 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
1780 classes into bins based on the physical register type.
1781 (reg_class_to_reg_type): Likewise.
1782 (IS_STD_REG_TYPE): Likewise.
1783 (IS_FP_VECT_REG_TYPE): Likewise.
1784 (reload_fpr_gpr): Arrays to determine what insn to use if we can
1785 use direct move instructions.
1786 (reload_gpr_vsx): Likewise.
1787 (reload_vsx_gpr): Likewise.
1788 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
1789 information that is a simplification of register classes. Also
1790 precalculate direct move reload helpers.
1791 (direct_move_p): New function to return true if the operation can
1792 be done as a direct move instruciton.
1793 (quad_load_store_p): New function to return true if the operation
1794 is a quad memory operation.
1795 (rs6000_legitimize_address): If quad memory, only allow register
1796 indirect for TImode addresses.
1797 (rs6000_legitimate_address_p): Likewise.
1798 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
1799 (rs6000_reload_register_type): Likewise.
1800 (register_to_reg_type): Return register type.
1801 (rs6000_secondary_reload_simple_move): New helper function for
1802 secondary reload and secondary memory needed to identify anything
1803 that is a simple move, and does not need reloading.
1804 (rs6000_secondary_reload_direct_move): New helper function for
1805 secondary reload to identify cases that can be done with several
1806 instructions via the direct move instructions.
1807 (rs6000_secondary_reload_move): New helper function for secondary
1808 reload to identify moves between register types that can be done.
1809 (rs6000_secondary_reload): Add support for quad memory operations
1810 and for direct move.
1811 (rs6000_secondary_memory_needed): Likewise.
1812 (rs6000_debug_secondary_memory_needed): Change argument names.
1813 (rs6000_output_move_128bit): New function to return the move to
1814 use for 128-bit moves, including knowing about the various
1815 limitations of quad memory operations.
1817 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
1818 memory operations. call rs6000_output_move_128bit for the actual
1819 instruciton(s) to generate.
1820 (vsx_movti_64bit): Likewise.
1822 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
1823 (UNSPEC_P8V_MTVSRWZ): Likewise.
1824 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
1825 (UNSPEC_P8V_MTVSRD): Likewise.
1826 (UNSPEC_P8V_XXPERMDI): Likewise.
1827 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
1828 (UNSPEC_FUSION_GPR): Likewise.
1829 (FMOVE128_GPR): New iterator for direct move.
1830 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
1833 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
1834 loads and direct move instructions.
1835 (zero_extendsidi2_lfiwzx): Likewise.
1836 (extendsidi2_lfiwax): Likewise.
1837 (extendsidi2_nocell): Likewise.
1838 (floatsi<mode>2_lfiwax): Likewise.
1840 (floatunssi<mode>2_lfiwzx): Likewise.
1842 (fix_trunc<mode>_stfiwx): Likewise.
1843 (fixuns_trunc<mode>_stfiwx): Likewise.
1844 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
1845 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
1846 (parity<mode>2_cmpb): Set length/type attr.
1847 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
1848 for 'mr.' to fast_compare.
1849 (bpermd_<mode>): Change type attr to popcnt.
1850 (p8_fmrgow_<mode>): New insns for power8 direct move support.
1851 (p8_mtvsrwz_1): Likewise.
1852 (p8_mtvsrwz_2): Likewise.
1853 (reload_fpr_from_gpr<mode>): Likewise.
1854 (p8_mtvsrd_1): Likewise.
1855 (p8_mtvsrd_2): Likewise.
1856 (p8_xxpermdi_<mode>): Likewise.
1857 (reload_vsx_from_gpr<mode>): Likewise.
1858 (reload_vsx_from_gprsf): Likewise.
1859 (p8_mfvsrd_3_<mode>): LIkewise.
1860 (reload_gpr_from_vsx<mode>): Likewise.
1861 (reload_gpr_from_vsxsf): Likewise.
1862 (p8_mfvsrd_4_disf): Likewise.
1863 (multi-word GPR splits): Do not split direct moves or quad memory
1866 2013-06-10 David Malcolm <dmalcolm@redhat.com>
1868 * tree-into-ssa.c (interesting_blocks): Make static.
1870 2013-06-10 Jakub Jelinek <jakub@redhat.com>
1873 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
1874 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
1875 Use DATA_ABI_ALIGNMENT for that case instead if defined.
1876 (get_variable_align): New function.
1877 (get_variable_section, emit_bss, emit_common,
1878 assemble_variable_contents, place_block_symbol): Use
1879 get_variable_align instead of DECL_ALIGN.
1880 (assemble_noswitch_variable): Add align argument, use it
1881 instead of DECL_ALIGN.
1882 (assemble_variable): Adjust caller. Use get_variable_align
1883 instead of DECL_ALIGN.
1884 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
1886 (DATA_ABI_ALIGNMENT): Define.
1887 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
1888 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
1889 opt is false, only return the psABI mandated alignment increase.
1890 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
1891 (DATA_ABI_ALIGNMENT): ... this.
1892 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
1893 (DATA_ABI_ALIGNMENT): ... this.
1894 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
1895 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
1896 (DATA_ABI_ALIGNMENT): ... this.
1897 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
1898 * doc/tm.texi: Regenerated.
1900 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
1902 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
1903 cmp_code to construct REG_EQUAL note.
1905 2013-06-09 Jakub Jelinek <jakub@redhat.com>
1908 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
1909 that operands[2] doesn't overlap with operands[0].
1911 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
1912 Jan Hubicka <jh@suse.cz>
1914 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
1915 hack to mark symbols as used.
1917 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
1919 PR rtl-optimization/57559
1920 * lra-constraints.c (process_alt_operands): Don't discourage
1921 memory with known offset for offsetable memory constraint.
1922 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
1924 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
1926 * varasm.c (struct oc_local_state): Reorder fields.
1927 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
1928 and adjust accordingly.
1929 (output_constructor): Reorder initialization code and adjust call to
1930 output_constructor_bitfield.
1932 2013-06-07 Jan Hubicka <jh@suse.cz>
1934 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
1936 2013-06-07 David Malcolm <dmalcolm@redhat.com>
1938 * tree-object-size.c (unknown): Make const.
1940 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1942 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
1943 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
1944 for last alternative in the cpu_facility attribute.
1946 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1949 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
1950 (xordi3): Change operand 2 constraint to arm_xordi_operand.
1951 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
1952 * config/arm/constraints.md (Dg): New constraint.
1953 * config/arm/neon.md (xordi3_neon): Remove.
1954 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
1955 * config/arm/predicates.md (arm_xordi_operand): New predicate.
1957 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1959 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
1960 Clean up alternatives.
1962 2013-06-07 Alan Modra <amodra@gmail.com>
1964 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
1967 2013-06-07 Alan Modra <amodra@gmail.com>
1969 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
1971 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1973 * config/arm/constraints.md (Df): New constraint.
1974 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
1975 Correct length attribute for last two alternatives.
1977 2013-06-07 Alan Modra <amodra@gmail.com>
1979 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
1980 override user -mfp-in-toc.
1981 (offsettable_ok_by_alignment): Consider just the current access
1982 rather than the whole object, unless BLKmode. Handle
1983 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
1984 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
1985 for -mcmodel=medium.
1986 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
1987 override user -mfp-in-toc or -msum-in-toc. Default to
1988 -mno-fp-in-toc for -mcmodel=medium.
1990 2013-06-06 DJ Delorie <dj@redhat.com>
1992 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
1993 TARGET_VALID_POINTER_MODE.
1995 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
1996 Pat Haugen <pthaugen@us.ibm.com>
1997 Peter Bergner <bergner@vnet.ibm.com>
1999 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
2000 Document new power8 builtins.
2002 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
2003 condition code register, to allow 128-bit logical operations to be
2004 done in the VSX or GPR registers.
2005 (nor<mode>3): Use the canonical form for nor.
2006 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
2007 vclz*, and vpopcnt* vector instructions.
2008 (nand<mode>3): Likewise.
2009 (orc<mode>3): Likewise.
2010 (clz<mode>2): LIkewise.
2011 (popcount<mode>2): Likewise.
2013 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
2014 that only the GPRs are recognized.
2016 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2017 support for new power8 builtins.
2019 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
2021 (xscvdpspn): Likewise.
2027 (vpopcnt): Likewise.
2028 (vpopcntb): Likewise.
2029 (vpopcnth): Likewise.
2030 (vpopcntw): Likewise.
2031 (vpopcntd): Likewise.
2036 (eqv_v16qi3): Likewise.
2037 (eqv_v8hi3): Likewise.
2038 (eqv_v4si3): Likewise.
2039 (eqv_v2di3): Likewise.
2040 (eqv_v4sf3): Likewise.
2041 (eqv_v2df3): Likewise.
2043 (nand_v16qi3): Likewise.
2044 (nand_v8hi3): Likewise.
2045 (nand_v4si3): Likewise.
2046 (nand_v2di3): Likewise.
2047 (nand_v4sf3): Likewise.
2048 (nand_v2df3): Likewise.
2050 (orc_v16qi3): Likewise.
2051 (orc_v8hi3): Likewise.
2052 (orc_v4si3): Likewise.
2053 (orc_v2di3): Likewise.
2054 (orc_v4sf3): Likewise.
2055 (orc_v2df3): Likewise.
2057 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
2058 allow power8 quad mode in 64-bit.
2059 (rs6000_builtin_vectorized_function): Add support to vectorize
2060 ISA 2.07 count leading zeros, population count builtins.
2061 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
2062 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
2063 (builtin_function_type): Add vgbbd builtin function which takes an
2065 (altivec_expand_vec_perm_const): Add support for new power8 merge
2068 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
2069 that does not include TImdoe for use with 32-bit.
2070 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
2072 (UNSPEC_VSX_CVDPSPN): Likewise.
2073 (vsx_xscvdpspn): Likewise.
2074 (vsx_xscvspdpn): Likewise.
2075 (vsx_xscvdpspn_scalar): Likewise.
2076 (vsx_xscvspdpn_directmove): Likewise.
2077 (vsx_and<mode>3): Split logical operations into 32-bit and
2078 64-bit. Add support to do logical operations on TImode as well as
2079 VSX vector types. Allow logical operations to be done in either
2080 VSX registers or in general purpose registers in 64-bit mode. Add
2081 splitters if GPRs were used. For AND, add clobber of CCmode to
2082 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
2084 (vsx_and<mode>3_32bit): Likewise.
2085 (vsx_and<mode>3_64bit): Likewise.
2086 (vsx_ior<mode>3): Likewise.
2087 (vsx_ior<mode>3_32bit): Likewise.
2088 (vsx_ior<mode>3_64bit): Likewise.
2089 (vsx_xor<mode>3): Likewise.
2090 (vsx_xor<mode>3_32bit): Likewise.
2091 (vsx_xor<mode>3_64bit): Likewise.
2092 (vsx_one_cmpl<mode>2): Likewise.
2093 (vsx_one_cmpl<mode>2_32bit): Likewise.
2094 (vsx_one_cmpl<mode>2_64bit): Likewise.
2095 (vsx_nor<mode>3): Likewise.
2096 (vsx_nor<mode>3_32bit): Likewise.
2097 (vsx_nor<mode>3_64bit): Likewise.
2098 (vsx_andc<mode>3): Likewise.
2099 (vsx_andc<mode>3_32bit): Likewise.
2100 (vsx_andc<mode>3_64bit): Likewise.
2101 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
2102 and xxlorc instructions.
2103 (vsx_eqv<mode>3_64bit): Likewise.
2104 (vsx_nand<mode>3_32bit): Likewise.
2105 (vsx_nand<mode>3_64bit): Likewise.
2106 (vsx_orc<mode>3_32bit): Likewise.
2107 (vsx_orc<mode>3_64bit): Likewise.
2109 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
2111 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
2113 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
2114 (p8_vmrgow): Likewise.
2115 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
2116 GPRs to be split under VSX.
2117 (p8v_clz<mode>2): Add power8 count leading zero support.
2118 (p8v_popcount<mode>2): Add power8 population count support.
2119 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
2122 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
2125 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
2127 (vec_nand): Likewise.
2128 (vec_vclz): Likewise.
2129 (vec_vclzb): Likewise.
2130 (vec_vclzd): Likewise.
2131 (vec_vclzh): Likewise.
2132 (vec_vclzw): Likewise.
2133 (vec_vgbbd): Likewise.
2134 (vec_vmrgew): Likewise.
2135 (vec_vmrgow): Likewise.
2136 (vec_vpopcnt): Likewise.
2137 (vec_vpopcntb): Likewise.
2138 (vec_vpopcntd): Likewise.
2139 (vec_vpopcnth): Likewise.
2140 (vec_vpopcntw): Likewise.
2142 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
2144 PR rtl-optimization/57468
2145 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
2148 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
2150 PR rtl-optimization/57459
2151 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
2152 type when setting live regs.
2154 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
2156 * config/s390/s390.opt (mlra): New option.
2157 * config/s390/s390.c (s390_decompose_address): Check displacement
2158 for all registers for LRA.
2159 (s390_secondary_reload): Don't used secondary reloads for LRA.
2160 (s390_lra_p): New function.
2161 (TARGET_LRA_P): Define.
2162 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
2163 of attribute cpu_facility to zarch for the last alternative.
2164 (*cmpmem_short): Ditto.
2166 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
2168 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
2169 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
2170 (arm_expand_prologue): Likewise.
2172 2013-06-06 Teresa Johnson <tejohnson@google.com>
2175 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
2176 as this is now done by redirect_edge_and_branch_force.
2177 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
2178 barriers, and fix interaction with splitting.
2179 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
2180 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
2181 reflect changes made in the routine.
2182 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
2183 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
2184 since this is called in cfglayout mode, and replace partition fixup
2185 with assert as that is now done by force_nonfallthru_and_redirect.
2186 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
2187 already be marked with region crossing note.
2188 (insert_section_boundary_note): Make non-static, gate on flag
2189 has_bb_partition, rewrite to also check for multiple partitions.
2190 (rest_of_handle_reorder_blocks): Remove call to
2191 insert_section_boundary_note, now done later during free_cfg.
2192 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
2193 * bb-reorder.h (insert_section_boundary_note): Declare.
2194 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
2195 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
2196 invoke insert_section_boundary_note.
2197 (try_redirect_by_replacing_jump): Remove unnecessary
2198 check for region crossing note.
2199 (fixup_partition_crossing): New function.
2200 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
2201 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
2202 in non-cfglayout mode.
2203 (force_nonfallthru_and_redirect): Fixup partition boundaries,
2204 remove old code that tried to do this. Emit barrier correctly
2205 when we are in cfglayout mode.
2206 (last_bb_in_partition): New function.
2207 (rtl_split_edge): Correctly fixup partition boundaries.
2208 (commit_one_edge_insertion): Remove old code that tried to
2209 fixup region crossing edge since this is now handled in
2210 split_block, and set up insertion point correctly since
2211 block may now end in a jump.
2212 (verify_hot_cold_block_grouping): Guard against checking when not in
2213 linearized RTL mode.
2214 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
2216 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
2217 rtl_verify_flow_info, so not called in cfglayout mode.
2218 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
2219 (fixup_reorder_chain): Remove old code that attempted to fixup region
2220 crossing note as this is now handled in force_nonfallthru_and_redirect.
2221 (duplicate_insn_chain): Don't duplicate switch section notes.
2222 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
2224 * basic-block.h (emit_barrier_after_bb): Declare.
2226 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2228 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
2229 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
2230 arm_usatsihi): Adjust alternatives for arm_restrict_it.
2232 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2234 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
2236 * config/arm/ldmstm.md: Regenerate.
2238 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2240 * config/arm/sync.md (atomic_loaddi_1):
2241 Disable predication for arm_restrict_it.
2242 (arm_load_exclusive<mode>): Likewise.
2243 (arm_load_exclusivesi): Likewise.
2244 (arm_load_exclusivedi): Likewise.
2245 (arm_load_acquire_exclusive<mode>): Likewise.
2246 (arm_load_acquire_exclusivesi): Likewise.
2247 (arm_load_acquire_exclusivedi): Likewise.
2248 (arm_store_exclusive<mode>): Likewise.
2249 (arm_store_exclusive<mode>): Likewise.
2250 (arm_store_release_exclusivedi): Likewise.
2251 (arm_store_release_exclusive<mode>): Likewise.
2253 2013-06-06 Richard Biener <rguenther@suse.de>
2255 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
2257 (lto_tag_is_tree_code_p): Adjust.
2258 (lto_tag_is_gimple_code_p): Likewise.
2259 (lto_gimple_code_to_tag): Likewise.
2260 (lto_tag_to_gimple_code): Likewise.
2261 (lto_tree_code_to_tag): Likewise.
2262 (lto_tag_to_tree_code): Likewise.
2263 * data-streamer.h (streamer_write_hwi_in_range): Use
2264 uhwi streaming to stream the normalized range.
2265 (streamer_read_hwi_in_range): Likewise.
2267 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2269 * config/arm/arm.md (enabled_for_depr_it): New attribute.
2270 (predicable_short_it): Likewise.
2271 (predicated): Likewise.
2272 (enabled): Handle above.
2273 (define_cond_exec): Set predicated attribute to yes.
2275 2013-06-05 Mike Stump <mikestump@comcast.net>
2277 * gdbinit.in (__FUNCTION__): Add.
2279 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
2281 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
2282 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
2284 2013-06-05 Jan Hubicka <jh@suse.cz>
2286 * varasm.c (mark_decl_referenced): Revert the removal until targets
2289 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
2291 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
2292 instead of mark_decl_referenced.
2294 2013-06-05 Jan Hubicka <jh@suse.cz>
2296 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
2297 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
2298 and symtab_used_from_object_file_p.
2299 (cgraph_make_node_local_1): Clear forced_by_abi.
2300 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
2301 * cgraph.h (symtab_node_base): Add forced_by_abi.
2302 (decide_is_variable_needed): Remove.
2303 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
2304 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
2305 (decide_is_symbol_needed): ... this one; handle symbols in general;
2306 always analyze virtuals; honnor forced_by_abi.
2307 (cgraph_finalize_function): Update.
2308 (varpool_finalize_decl): Update.
2309 (symbol_defined_and_needed): Remove.
2310 (analyze_functions): Update.
2311 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
2312 output_refs, input_overwrite_node): Handle forced_by_abi.
2313 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
2314 (address_taken_from_non_vtable_p): ... this one.
2315 (comdat_can_be_unshared_p_1): New function.
2316 (cgraph_comdat_can_be_unshared_p): Rename to ...
2317 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
2318 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
2319 (function_and_variable_visibility): Clear forced_by_abi as needed.
2320 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
2321 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
2322 * symtab.c (dump_symtab_base): Dump forced_by_abi.
2323 * varpool.c (decide_is_variable_needed): Remove.
2325 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2327 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
2328 (arm_option_override): Override arm_restrict_it where appropriate.
2329 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
2330 * config/arm/arm.opt (mrestrict-it): New command-line option.
2331 * doc/invoke.texi: Document -mrestrict-it.
2333 2013-06-05 David Malcolm <dmalcolm@redhat.com>
2335 * tsan.c (tsan_atomic_table): Make const.
2337 2013-06-05 Richard Biener <rguenther@suse.de>
2339 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
2340 index associated with the tree we are supposed to replace.
2341 * tree-streamer-out.c (pack_ts_base_value_fields): Output
2342 TREE_ASM_WRITTEN as zero for everything but SSA names.
2344 2013-06-05 David Malcolm <dmalcolm@redhat.com>
2346 * tree-ssa-structalias.c (call_stmt_vars): Make static.
2348 2013-06-04 Jan Hubicka <jh@suse.cz>
2350 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
2351 (input_node, input_varpool_node): Handle correctly external same
2353 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
2354 nodes at ltrans stage.
2356 2013-06-04 Jan Hubicka <jh@suse.cz>
2358 * ipa-inline.c (update_caller_keys): Fix availability test.
2359 (update_callee_keys): Likewise.
2360 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
2361 to follow ELF standard.
2363 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
2365 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
2366 (mips64r5900el-*-elf*): New configurations.
2367 * config/mips/mips-cpus.def (r5900): New processor.
2368 * config/mips/mips-tables.opt: Regenerate.
2369 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
2370 (mips_issue_rate): Handle PROCESSOR_R5900.
2371 (mips_reorg_process_insns): Force reorder mode for the R5900.
2372 * config/mips/mips.h (TARGET_MIPS5900): Define.
2373 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
2375 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
2377 * config/mips/mips.md (processor): Add r5900.
2378 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
2380 2013-06-04 Ian Bolton <ian.bolton@arm.com>
2382 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
2383 into function to generate MOVI instruction.
2384 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
2385 (aarch64_preferred_simd_mode): Turn into wrapper.
2386 (aarch64_output_scalar_simd_mov_immediate): New function.
2387 * config/aarch64/aarch64-protos.h: Add prototype for above.
2389 2013-06-04 Ian Bolton <ian.bolton@arm.com>
2391 * config/aarch64/aarch64.c (simd_immediate_info): Remove
2392 element_char member.
2393 (sizetochar): Return signed char.
2394 (aarch64_simd_valid_immediate): Remove elchar and other
2395 unnecessary variables.
2396 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
2397 Calculate element_char as required.
2398 * config/aarch64/aarch64-protos.h: Update and move prototype
2399 for aarch64_output_simd_mov_immediate.
2400 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
2403 2013-06-04 Ian Bolton <ian.bolton@arm.com>
2405 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
2406 information completed by aarch64_simd_valid_immediate.
2407 (aarch64_legitimate_constant_p): Update arguments.
2408 (aarch64_simd_valid_immediate): Work with struct rather than many
2410 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
2411 (aarch64_simd_make_constant): Update arguments.
2412 (aarch64_output_simd_mov_immediate): Work with struct rather than
2413 many pointers. Output immediate directly rather than as operand.
2414 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
2416 * config/aarch64/constraints.md (Dn): Update arguments.
2418 2013-06-04 Ian Bolton <ian.bolton@arm.com>
2420 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
2422 (aarch64_simd_immediate_valid_for_move): Remove.
2423 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
2424 (aarch64_simd_make_constant): Update call.
2425 (aarch64_output_simd_mov_immediate): Update call.
2426 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
2428 * config/aarch64/constraints.md (Dn): Update call.
2430 2013-06-04 Ian Bolton <ian.bolton@arm.com>
2432 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
2433 return type to bool for prototype.
2434 (aarch64_legitimate_constant_p): Check for true instead of not -1.
2435 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
2436 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
2438 2013-06-04 Catherine Moore <clm@codesourcery.com>
2440 * config/mips/mips.opt (meva): New.
2441 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
2442 (ASM_SPEC): Handle -meva.
2443 * doc/invoke.texi (meva): Document.
2445 2013-06-04 Alan Modra <amodra@gmail.com>
2447 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
2450 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2452 * rtl.def: Add extra fourth optional field to define_cond_exec.
2453 * gensupport.c (process_one_cond_exec): Process attributes from
2455 * doc/md.texi: Document fourth field in define_cond_exec.
2457 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
2459 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
2460 out the processing order as in store_bit_field_1.
2462 2013-06-04 Jan Hubicka <jh@suse.cz>
2465 * cgraphunit.c (cgraph_process_same_body_aliases): Create
2466 non-VAR_DECL node if it does not exist yet.
2468 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
2470 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
2471 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
2472 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
2473 target_cpu_default setting.
2475 2013-06-03 Teresa Johnson <tejohnson@google.com>
2477 * dumpfile.c (opt_info_switch_p): Change -fopt-info
2478 default to -fopt-info=optimized instead of all.
2479 * doc/invoke.texi: Ditto.
2480 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
2481 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
2482 (execute_vect_slp): Emit BB vectorization success under
2483 MSG_OPTIMIZED_LOCATIONS.
2484 * tree-vect-slp.c (vect_slp_transform_bb): Change
2485 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
2486 * tree-vect-loop.c (vect_transform_loop): Ditto.
2488 2013-06-03 Jason Merrill <jason@redhat.com>
2491 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2492 Use TARGET_EXPR for C++.
2494 2013-06-03 Jakub Jelinek <jakub@redhat.com>
2496 PR rtl-optimization/57268
2497 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
2498 if DEBUG_INSN_P (insn).
2501 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
2503 PR rtl-optimization/57268
2504 * sched-deps.c (sched_analyze_2): Flush dependence lists if
2505 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2507 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
2509 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
2510 (ix86_avoid_lea_for_addr): Likewise.
2511 (exact_dependency_1): Likewise.
2512 (ix86_adjust_cost): Likewise.
2513 (swap_top_of_ready_list): Fix formatting and !reload_completed check
2515 (do_reorder_for_imul): Fix typo, formatting and
2516 !reload_completed check removed.
2517 (ix86_sched_reorder): Fix typo and formatting.
2518 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
2521 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
2523 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
2525 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
2527 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
2528 <STRING_CST>: Likewise.
2529 <VECTOR_CST>: Likewise.
2531 2013-06-01 Janus Weil <janus@gcc.gnu.org>
2532 Mikael Morin <mikael@gcc.gnu.org>
2534 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
2535 * config.in: Regenerated.
2536 * configure: Regenerated.
2538 2013-06-01 Jan Hubicka <jh@suse.cz>
2541 * cgraphunit.c (compile): When weakref is not supported,
2542 set up transparent aliases before final output pass.
2543 * varasm.c (assemble_alias): Do not try to do it here.
2545 2013-06-01 Jan Hubicka <jh@suse.cz>
2548 * passes.c (for_per_function): Skip unanalyzed functions.
2550 2013-06-01 Jan Hubicka <jh@suse.cz>
2552 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
2553 (lto_symtab_merge_symbols_1): ... this one.
2554 (lto_symtab_merge_cgraph_nodes): Rename to ...
2555 (lto_symtab_merge_symbols): ... this one; simplify.
2556 * cgraph.c (same_body_aliases_done): Rename to ...
2557 (cpp_implicit_aliases_done): ... this one.
2558 (cgraph_create_function_alias): Update.
2559 (cgraph_same_body_alias): Update.
2560 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
2561 (verify_edge_corresponds_to_fndecl): Simplify.
2562 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
2563 (cgraph_node): Remove same_body_alias.
2564 (varpool_node): Remove alias_of and extra_name_alias.
2565 (same_body_aliases_done): Rename to ..
2566 (cpp_implicit_aliases_done): ... this one.
2567 (symtab_alias_ultimate_target): Add default parameter.
2568 (symtab_resolve_alias): New function.
2569 (fixup_same_cpp_alias_visibility): Declare.
2570 (cgraph_function_node): Add default parameter.
2571 (cgraph_node_asm_name): Likewise.
2572 (cgraph_function_or_thunk_node): Add default parameter; do
2573 not ICE when it is NULL.
2574 (varpool_variable_node): Likewise.
2575 * tree-emutls.c (create_emultls_var): Update.
2576 (ipa_lower_emutls): Update.
2577 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
2578 (cgraph_reset_node): Reset alias info.
2579 (cgraph_finalize_function): Update.
2580 (fixup_same_cpp_alias_visibility): Move to symtab.c.
2581 (analyze_function): Simplify.
2582 (cgraph_process_same_body_aliases): Simplify.
2583 (analyze_functions): Fixup same body aliases.
2584 (handle_alias_pairs): Simplify.
2585 (assemble_thunk): Update.
2586 (assemble_thunks_and_aliases): Update.
2587 (output_weakrefs): Rewrite.
2588 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
2589 (lto_output_varpool_node): Likewise.
2590 (compute_ltrans_boundary): Remve assert.
2591 (get_alias_symbol): New functoin.
2592 (input_node): Rewrite alias handling.
2593 (input_varpool_node): Likewise.
2594 * ipa-pure-const.c (propagate_pure_const): Fix formating.
2595 * ipa.c (process_references): Handle weakrefs correctly.
2596 (symtab_remove_unreachable_nodes): Likewise.
2597 * trans-mem.c (get_cg_data): Update.
2598 (ipa_tm_create_version_alias): Update.
2599 (ipa_tm_execute): Update.
2600 * symtab.c (dump_symtab_base): Dump aliases.
2601 (verify_symtab_base): Verify aliases.
2602 (symtab_node_availability): New function.
2603 (symtab_alias_ultimate_target): Simplify.
2604 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
2605 handle all the fixup cases.
2606 (symtab_resolve_alias): New function.
2607 * passes.c (ipa_write_summaries): Handle weakrefs.
2608 * varpool.c (varpool_analyze_node): Simplify.
2609 (assemble_aliases): Update.
2610 (varpool_create_variable_alias): Simplify.
2611 (varpool_extra_name_alias): Simplify.
2612 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
2613 (lto_symtab_merge_symbols): ... this one.
2615 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
2618 PR rtl-optimization/57268
2619 * sched-deps.c (sched_analyze_2): Flush dependence lists if
2620 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2622 2013-06-01 Tobias Burnus <burnus@net-b.de>
2625 2013-05-31 Tobias Burnus <burnus@net-b.de>
2628 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
2631 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
2633 PR rtl-optimization/57268
2634 * sched-deps.c (sched_analyze_2): Flush dependence lists if
2635 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2637 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
2639 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
2640 unordered comparison operators when -fno-trapping-math is in effect
2642 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
2643 and implement unordered comparison operators properly on the e500.
2645 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
2647 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
2648 for constant scalar integers.
2649 (simplify_relational_operation_1): Likewise.
2651 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
2653 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
2654 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
2657 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
2658 Igor Zamyatin <igor.zamyatin@intel.com>
2660 Silvermont (SLM) architecture performance tuning.
2661 * config/i386/i386.h (enum ix86_tune_indices): Add
2662 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
2663 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
2665 * config/i386/i386.c (initial_ix86_tune_features)
2666 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
2667 (ix86_lea_outperforms): Handle Silvermont tuning.
2668 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
2670 (ix86_use_lea_for_mov): Likewise.
2671 (ix86_avoid_lea_for_addr): Likewise.
2672 (ix86_lea_for_add_ok): Likewise.
2673 (exact_dependency_1): New function.
2674 (exact_store_load_dependency): Likewise.
2675 (ix86_adjust_cost): Handle Silvermont tuning.
2676 (do_reoder_for_imul): Likewise.
2677 (swap_top_of_ready_list): New function.
2678 (ix86_sched_reorder): Changed to handle Silvermont tuning.
2680 * config/i386/i386.md (peepholes that split memory operand in fp
2683 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
2685 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2686 Remove un-necessary braces.
2688 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
2690 * config/aarch64/aarch64.c (aarch64_classify_symbol):
2691 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
2693 2013-05-31 Tobias Burnus <burnus@net-b.de>
2696 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
2698 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2701 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
2702 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
2703 * config/arm/neon.md (iordi3_neon): Remove.
2704 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
2705 * config/arm/predicates.md (imm_for_neon_logic_operand):
2706 Move to earlier in the file.
2707 (neon_logic_op2): Likewise.
2708 (arm_iordi_operand_neon): New predicate.
2710 2013-05-31 Richard Biener <rguenther@suse.de>
2712 PR tree-optimization/57478
2713 PR tree-optimization/57453
2714 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
2717 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
2719 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
2720 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
2722 2013-05-30 Tobias Burnus <burnus@net-b.de>
2723 Thomas Koenig <tkoenig@gcc.gnu.org>
2726 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
2727 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
2729 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
2731 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
2733 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
2735 * target.def (register_usage_leveling_p): New hook.
2736 * targhooks.c (default_register_usage_leveling_p): New.
2737 * targhooks.h (default_register_usage_leveling_p): New prototype.
2738 * lra-assigns.c (register_usage_leveling_p): Use the hook.
2739 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
2740 * doc/tm.texi: Update.
2741 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
2743 2013-05-30 Ian Bolton <ian.bolton@arm.com>
2745 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
2746 (*insv_reg<mode>): New define_insn.
2748 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
2750 PR rtl-optimization/57439
2751 * postreload.c (move2add_valid_value_p): Check that we have
2752 a zero subreg_regno_offset when accessing the register in
2755 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
2756 Igor Zamyatin <igor.zamyatin@intel.com>
2758 Silvermont (SLM) architecture pipeline model, tuning and
2760 * config.gcc: Add slm config options and target.
2762 * config/i386/slm.md: New.
2764 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
2766 * gcc/config/i386/i386-c.c (ix86_target_macros_internal): New case
2768 (ix86_target_macros_internal): Likewise.
2770 * gcc/config/i386/i386.c (slm_cost): New cost.
2771 (m_SLM): New macro flag.
2772 (initial_ix86_tune_features): Set m_SLM.
2773 (x86_accumulate_outgoing_args): Likewise.
2774 (x86_arch_always_fancy_math_387): Likewise.
2775 (processor_target_table): Add slm cost.
2776 (cpu_names): Add slm cpu name.
2777 (x86_option_override_internal): Set SLM ISA.
2778 (ix86_issue_rate): New case PROCESSOR_SLM.
2779 (ia32_multipass_dfa_lookahead): Likewise.
2780 (fold_builtin_cpu): Add slm.
2782 * config/i386/i386.h (TARGET_SLM): New target macro.
2783 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
2784 (processor_type): Add PROCESSOR_SLM.
2786 * config/i386/i386.md (cpu): Add new value "slm".
2787 (slm.md): Include slm.md.
2789 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
2790 Zhenqiang Chen <zhenqiang.chen@linaro.org>
2792 * config/arm/arm-protos.h: Add and update function protos.
2793 * config/arm/arm.c (use_simple_return_p): New added.
2794 (thumb2_expand_return): Check simple_return flag.
2795 * config/arm/arm.md: Add simple_return and conditional simple_return.
2796 * config/arm/iterators.md: Add iterator for return and simple_return.
2798 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
2800 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
2801 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
2802 (arm_emit_vfp_multi_reg_pop): Likewise.
2803 (thumb2_emit_ldrd_pop): Likewise.
2804 (arm_expand_epilogue): Add misc REG_CFA notes.
2805 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
2807 2013-05-29 Lawrence Crowl <crowl@google.com>
2809 * config/arm/t-arm: Update for below.
2811 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
2812 Change type to hash_table. Update dependent calls and types.
2814 * config/i386/t-cygming: Update for below.
2816 * config/i386/t-interix: Update for below.
2818 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
2819 Change type to hash_table. Update dependent calls and types.
2820 (i386_find_on_wrapper_list::wrappers): Likewise.
2822 * config/ia64/t-ia64: Update for below.
2824 * config/ia64/ia64.c (bundle_state_table):
2825 Change type to hash_table. Update dependent calls and types.
2827 * config/mips/mips.c (mips_reorg_process_insns::htab):
2828 Change type to hash_table. Update dependent calls and types.
2830 * config/sol2.c (solaris_comdat_htab):
2831 Change type to hash_table. Update dependent calls and types.
2833 * config/t-sol2: Update for above.
2835 2013-05-29 Teresa Johnson <tejohnson@google.com>
2837 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
2838 functions are not yet marked as defined.
2840 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
2841 Pat Haugen <pthaugen@us.ibm.com>
2842 Peter Bergner <bergner@vnet.ibm.com>
2844 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
2848 (vrotl<mode>3): Likewise.
2849 (vashl<mode>3): Likewise.
2850 (vlshr<mode>3): Likewise.
2851 (vashr<mode>3): Likewise.
2853 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2854 support for power8 V2DI builtins.
2856 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
2857 power8 V2DI builtins.
2858 (vupkhsw): Likewise.
2859 (vupklsw): Likewise.
2860 (vaddudm): Likewise.
2865 (vpkudum): Likewise.
2866 (vpksdss): Likewise.
2867 (vpkudus): Likewise.
2868 (vpksdus): Likewise.
2873 (vsubudm): Likewise.
2874 (vcmpequd): Likewise.
2875 (vcmpgtsd): Likewise.
2876 (vcmpgtud): Likewise.
2877 (vcmpequd_p): Likewise.
2878 (vcmpgtsd_p): Likewise.
2879 (vcmpgtud_p): Likewise.
2880 (vupkhsw): Likewise.
2881 (vupklsw): Likewise.
2882 (vaddudm): Likewise.
2887 (vpksdss): Likewise.
2888 (vpksdus): Likewise.
2889 (vpkudum): Likewise.
2890 (vpkudus): Likewise.
2895 (vsubudm): Likewise.
2897 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
2898 support for power8 V2DI instructions.
2900 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
2901 power8 V2DI instructions. Combine pack and unpack insns to use an
2902 iterator for each mode. Check whether a particular mode supports
2903 Altivec instructions instead of just checking TARGET_ALTIVEC.
2904 (UNSPEC_VPKUWUM): Likewise.
2905 (UNSPEC_VPKSHSS): Likewise.
2906 (UNSPEC_VPKSWSS): Likewise.
2907 (UNSPEC_VPKUHUS): Likewise.
2908 (UNSPEC_VPKSHUS): Likewise.
2909 (UNSPEC_VPKUWUS): Likewise.
2910 (UNSPEC_VPKSWUS): Likewise.
2911 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
2912 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
2913 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
2914 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
2915 (UNSPEC_VUPKHSB): Likewise.
2916 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
2917 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
2918 (UNSPEC_VUPKHSH): Likewise.
2919 (UNSPEC_VUPKLSB): Likewise.
2920 (UNSPEC_VUPKLSH): Likewise.
2922 (VI_char): Likewise.
2923 (VI_scalar): Likewise.
2924 (VI_unit): Likewise.
2926 (VP_small): Likewise.
2927 (VP_small_lc): Likewise.
2928 (VU_char): Likewise.
2929 (add<mode>3): Likewise.
2930 (altivec_vaddcuw): Likewise.
2931 (altivec_vaddu<VI_char>s): Likewise.
2932 (altivec_vadds<VI_char>s): Likewise.
2933 (sub<mode>3): Likewise.
2934 (altivec_vsubcuw): Likewise.
2935 (altivec_vsubu<VI_char>s): Likewise.
2936 (altivec_vsubs<VI_char>s): Likewise.
2937 (altivec_vavgs<VI_char>): Likewise.
2938 (altivec_vcmpbfp): Likewise.
2939 (altivec_eq<mode>): Likewise.
2940 (altivec_gt<mode>): Likewise.
2941 (altivec_gtu<mode>): Likewise.
2942 (umax<mode>3): Likewise.
2943 (smax<mode>3): Likewise.
2944 (umin<mode>3): Likewise.
2945 (smin<mode>3): Likewise.
2946 (altivec_vpkuhum): Likewise.
2947 (altivec_vpkuwum): Likewise.
2948 (altivec_vpkshss): Likewise.
2949 (altivec_vpkswss): Likewise.
2950 (altivec_vpkuhus): Likewise.
2951 (altivec_vpkshus): Likewise.
2952 (altivec_vpkuwus): Likewise.
2953 (altivec_vpkswus): Likewise.
2954 (altivec_vpks<VI_char>ss): Likewise.
2955 (altivec_vpks<VI_char>us): Likewise.
2956 (altivec_vpku<VI_char>us): Likewise.
2957 (altivec_vpku<VI_char>um): Likewise.
2958 (altivec_vrl<VI_char>): Likewise.
2959 (altivec_vsl<VI_char>): Likewise.
2960 (altivec_vsr<VI_char>): Likewise.
2961 (altivec_vsra<VI_char>): Likewise.
2962 (altivec_vsldoi_<mode>): Likewise.
2963 (altivec_vupkhsb): Likewise.
2964 (altivec_vupkhs<VU_char>): Likewise.
2965 (altivec_vupkls<VU_char>): Likewise.
2966 (altivec_vupkhsh): Likewise.
2967 (altivec_vupklsb): Likewise.
2968 (altivec_vupklsh): Likewise.
2969 (altivec_vcmpequ<VI_char>_p): Likewise.
2970 (altivec_vcmpgts<VI_char>_p): Likewise.
2971 (altivec_vcmpgtu<VI_char>_p): Likewise.
2972 (abs<mode>2): Likewise.
2973 (vec_unpacks_hi_v16qi): Likewise.
2974 (vec_unpacks_hi_v8hi): Likewise.
2975 (vec_unpacks_lo_v16qi): Likewise.
2976 (vec_unpacks_hi_<VP_small_lc>): Likewise.
2977 (vec_unpacks_lo_v8hi): Likewise.
2978 (vec_unpacks_lo_<VP_small_lc>): Likewise.
2979 (vec_pack_trunc_v8h): Likewise.
2980 (vec_pack_trunc_v4si): Likewise.
2981 (vec_pack_trunc_<mode>): Likewise.
2983 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
2985 (vec_vmaxsd): Likewise.
2986 (vec_vmaxud): Likewise.
2987 (vec_vminsd): Likewise.
2988 (vec_vminud): Likewise.
2989 (vec_vpksdss): Likewise.
2990 (vec_vpksdus): Likewise.
2991 (vec_vpkudum): Likewise.
2992 (vec_vpkudus): Likewise.
2993 (vec_vrld): Likewise.
2994 (vec_vsld): Likewise.
2995 (vec_vsrad): Likewise.
2996 (vec_vsrd): Likewise.
2997 (vec_vsubudm): Likewise.
2998 (vec_vupkhsw): Likewise.
2999 (vec_vupklsw): Likewise.
3001 2013-05-29 Jan Hubicka <jh@suse.cz>
3003 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
3004 flags; reorder rest of fields in more consistent way.
3005 (varpool_node): Remove analyzed, finalized and alias.
3006 (cgraph_ndoe): Likewise.
3007 (symtab_alias_ultimate_target): New function.
3008 (cgraph_function_node): Move offline.
3009 (cgraph_reset_node): Declare.
3010 (cgraph_comdat_can_be_unshared_p): Remove.
3011 (varpool_remove_initializer): Declare.
3012 (varpool_first_defined_variable, varpool_next_defined_variable
3013 cgraph_first_defined_function, cgraph_next_defined_function): Update.
3014 (cgraph_function_with_gimple_body_p): Update.
3015 (varpool_all_refs_explicit_p): Update.
3016 (symtab_alias_target): New function.
3017 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
3018 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
3019 (cgraph_function_or_thunk_node): Simplify using
3020 symtab_alias_ultimate_target.
3021 (varpool_variable_node): Likewise.
3022 * cgraph.c (cgraph_create_function_alias): Update.
3023 (cgraph_add_thunk): Update.
3024 (cgraph_remove_node): Update.
3025 (dump_cgraph_node): Do not dump removed flags.
3026 (cgraph_function_body_availability): Update.
3027 (cgraph_propagate_frequency): Update.
3028 (verify_cgraph_node): Check sanity of local flag.
3029 (cgraph_function_node): Move here from cgraph.h; revamp for
3030 cgraph_function_or_thunk_node.
3031 * lto-symtab.c (lto_varpool_replace_node): Update.
3032 (lto_symtab_resolve_can_prevail_p): Update.
3033 (lto_symtab_merge_cgraph_nodes): Update.
3034 * ipa-cp.c (determine_versionability, initialize_node_lattices,
3035 propagate_constants_accross_call, devirtualization_time_bonus,
3036 ipcp_propagate_stage): Update.
3037 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
3038 * ipa-inline-transform.c (clone_inlined_nodes,
3039 preserve_function_body_p): Update.
3040 * ipa-reference.c (propagate): Update.
3041 (write_node_summary_p): Update.
3042 * toplev.c (wrapup_global_declaration_2): Update.
3043 * cgraphunit.c (cgraph_analyze_function): Rename to ...
3044 (analyze_function) ... this one.
3045 (cgraph_process_new_functions): Update.
3046 (cgraph_reset_node): Export.
3047 (cgraph_finalize_function): Update.
3048 (cgraph_add_new_function): Update.
3049 (process_function_and_variable_attributes): Update.
3050 (varpool_finalize_decl): Update.
3051 (symbol_finalized): Remove.
3052 (symbol_finalized_and_needed): Rename to ...
3053 (symbol_defined_and_needed): ... update.
3054 (cgraph_analyze_functions): Update.
3055 (handle_alias_pairs): Update.
3056 (mark_functions_to_output): Update.
3057 (assemble_thunk): Update.
3058 (output_in_order): Update.
3059 (output_weakrefs): Update.
3060 (finalize_compilation_unit): Update.
3061 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
3062 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
3063 input_node, input_varpool_node): Update.
3064 * dbxout.c (dbxout_expand_expr): Update.
3065 * cgraphclones.c (cgraph_clone_node): Update.
3066 (cgraph_copy_node_for_versioning): Update.
3067 (cgraph_materialize_clone): Update.
3068 (cgraph_materialize_all_clones): Update.
3069 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
3070 propagate_pure_const, propagate_nothrow): Update.
3071 * lto-streamer-out.c (lto_output, write_symbol): Update.
3072 * ipa-utils.c (ipa_reverse_postorder): Update.
3073 * ipa-inline.c (can_inline_edge_p): Update.
3074 (update_caller_keys, ipa_inline): Update.
3075 * dwarf2out.c (reference_to_unused,
3076 premark_types_used_by_global_vars_helper): Update.
3077 * tree-eh.c (tree_could_trap_p): Update.
3078 * ipa-split.c (consider_split, execute_split_functions): Update.
3079 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
3080 has_addr_references_p): Update; move ahead in file for better
3082 (process_references): Simplify.
3083 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
3085 (cgraph_comdat_can_be_unshared_p): Make static.
3086 (cgraph_externally_visible_p): Update.
3087 (varpool_externally_visible_p): Update.
3088 (function_and_variable_visibility): Update.
3089 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
3090 ipa_tm_mark_force_output_node): Update.
3091 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
3092 estimate_edge_devirt_benefit, inline_generate_summary,
3093 inline_write_summary): Update.
3094 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
3095 * ipa-prop.c (ipa_compute_jump_functions): Update.
3096 (ipa_print_node_params, ipa_prop_read_section,
3097 ipa_update_after_lto_read, read_replacements_section): Update.
3098 * varasm.c (mark_decl_referenced): Update.
3099 (assemble_alias, dump_tm_clone_pairs): Update.
3100 * tree-inline.c (copy_bb): Update.
3101 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
3103 * symtab.c (dump_symtab_base): Print new flags.
3104 (verify_symtab_base): Verify new flags.
3105 (symtab_alias_ultimate_target): New function.
3106 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
3107 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
3109 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
3111 * i386.c (ix86_get_function_versions_dispatcher,
3112 ix86_generate_version_dispatcher_body): Update.
3113 (fold_builtin_cpu): Use varpool_add_new_variable.
3114 * varpool.c (varpool_remove_initializer): Break out from ...
3115 (varpool_remove_node): ... this one.
3116 (dump_varpool_node, varpool_node_for_asm,
3117 cgraph_variable_initializer_availability, varpool_analyze_node,
3118 varpool_assemble_decl, varpool_remove_unreferenced_decls,
3119 varpool_finalize_named_section_flags, varpool_create_variable_alias):
3122 2013-05-29 Jan Hubicka <jh@suse.cz>
3124 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
3126 2013-05-29 Easwaran Raman <eraman@google.com>
3128 PR tree-optimization/57442
3129 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
3130 when control exits the main loop.
3132 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
3134 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
3136 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
3137 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
3138 * rx/t-rx: Add rx100 under multi library matches option for nofpu
3141 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3143 PR tree-optimization/57441
3144 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
3145 Don't limit size of incr_vec to number of candidates.
3147 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
3149 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
3150 and mips16 directories.
3151 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
3152 (MULTILIB_DIRNAMES): Ditto.
3153 (MULTILIB_EXCEPTIONS): Add new exceptions.
3154 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
3155 (MULTILIB_DIRNAMES): Ditto.
3156 (MULTILIB_EXCEPTIONS): Add new exceptions.
3158 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3159 Marcus Shawcroft <marcus.shawcroft@arm.com>
3161 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
3162 SYMBOL_TINY_ABSOLUTE.
3163 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
3164 SYMBOL_TINY_ABSOLUTE.
3165 (aarch64_expand_mov_immediate): Likewise.
3166 (aarch64_classify_symbol): Likewise.
3167 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
3168 Permit SYMBOL_TINY_ABSOLUTE.
3169 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
3171 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3172 Marcus Shawcroft <marcus.shawcroft@arm.com>
3174 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
3175 Refactor if/switch. Replace gcc_assert with if.
3177 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3179 * config/i386/i386.c (initial_ix86_tune_features): Enable
3180 FP Reassociation for AMD bdver1 and bdver2.
3182 2013-05-29 Martin Jambor <mjambor@suse.cz>
3184 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
3185 and IMAGPART_EXPR do not occur within other handled_components.
3187 2013-05-29 Richard Biener <rguenther@suse.de>
3189 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
3190 access on whether the use is in the BB we currently try to
3192 (vect_bb_vectorization_profitable_p): Pass the BB we currently
3193 vectorize to vect_bb_slp_scalar_cost.
3195 2013-05-29 Richard Biener <rguenther@suse.de>
3197 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
3198 computing scalar cost offsetted by stmts that are kept live
3200 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
3201 for computation of scalar cost.
3203 2013-05-28 Steve Ellcey <sellcey@mips.com>
3205 * config/mips/mips-cpus.def (mips32r2): Change processor type.
3207 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
3209 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
3210 array notation built-in reduction functions.
3211 * doc/passes.texi (Passes): Added documentation about changes done
3213 * doc/invoke.texi (C Dialect Options): Added documentation about
3214 the -fcilkplus flag.
3215 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
3216 (BUILTINS_DEF): Depend on cilkplus.def.
3217 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
3218 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
3219 * cilkplus.def: New file.
3221 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
3223 PR rtl-optimization/57439
3224 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
3226 2013-05-28 Easwaran Raman <eraman@google.com>
3228 PR tree-optimization/57337
3229 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
3230 (find_insert_point): Correctly identify the insertion point
3231 when two statements with the same UID is compared.
3233 2013-05-28 Richard Biener <rguenther@suse.de>
3235 PR tree-optimization/56787
3236 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
3237 from the list of data references.
3238 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
3240 (vect_analyze_loop_operations): Likewise.
3241 (vect_transform_loop): Remove clobbers.
3243 2013-05-28 Martin Jambor <mjambor@suse.cz>
3245 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
3246 and REALPART_EXPRs have scalar type.
3248 2013-05-28 Richard Biener <rguenther@suse.de>
3250 PR tree-optimization/57411
3251 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
3253 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
3254 virtual operand propagation.
3256 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
3258 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
3259 destination register for bmasksi_vis.
3260 (vector_init_bshuffle): Likewise.
3261 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
3263 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
3265 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
3266 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
3267 mode if the instruction isn't available in the original mode.
3268 * config/sparc/sparc.opt (mfix-ut699): New option.
3269 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
3270 (divdf3): Turn into expander.
3271 (divdf3_nofix): New insn.
3272 (divdf3_fix): Likewise.
3273 (divsf3): Disable if -mfix-ut699.
3274 (sqrtdf2): Turn into expander.
3275 (sqrtdf2_nofix): New insn.
3276 (sqrtdf2_fix): Likewise.
3277 (sqrtsf2): Disable if -mfix-ut699.
3279 2013-05-27 Richard Biener <rguenther@suse.de>
3282 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
3283 block for the new loop.
3285 2013-05-27 Richard Biener <rguenther@suse.de>
3287 PR tree-optimization/57343
3288 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
3289 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
3290 (number_of_iterations_cond): Do not build the folded tree.
3292 2013-05-27 Richard Biener <rguenther@suse.de>
3296 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
3297 OEP_CONSTANT_ADDRESS_OF retained.
3299 PR tree-optimization/57417
3300 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
3302 (set_ssa_val_to): Compare addresses using
3303 get_addr_base_and_unit_offset.
3305 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
3307 PR rtl-optimization/56833
3308 * postreload.c (move2add_record_mode): New function.
3309 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
3310 (move2add_use_add2_insn): Use move2add_record_sym_value.
3311 (move2add_use_add3_insn): Likewise.
3312 (reload_cse_move2add): Use move2add_valid_value_p and
3313 move2add_record_mode. Invalidate call-clobbered and REG_INC
3314 affected regs by setting reg_mode to VOIDmode.
3315 (move2add_note_store): Don't pretend the inside of a SUBREG is
3316 the actual destination. Invalidate single/leading registers by
3317 setting reg_mode to VOIDmode.
3318 Use move2add_record_sym_value, move2add_valid_value_p and
3319 move2add_record_mode.
3321 2013-05-27 Richard Biener <rguenther@suse.de>
3323 PR tree-optimization/57396
3324 * tree-affine.c (double_int_constant_multiple_p): Properly
3325 return false for val == 0 and div != 0.
3327 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
3329 * config/mips/mips.h: Use #elif in preprocessor conditions.
3331 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
3334 * config/mips/constraints.md (kl): New constraint.
3335 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
3336 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
3337 constraint for operand 0. Split after CSE for MIPS16. Emit a move
3339 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
3341 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
3344 * config/mips/mips.c (mips_can_inline_p): New function.
3345 (TARGET_CAN_INLINE_P): Define.
3347 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
3349 * sched-int.h (ds_t, dw_t): Make unsigned int.
3350 Fix documentation that describes how all the ds_t bits are used.
3351 Reserve the last bit for delayed-branch scheduling.
3352 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
3353 (BITS_PER_DEP_WEAK): Fix definition and documentation.
3354 (gen_dep_weak_1): Remove prototype.
3355 * sched-deps.c (get_dep_weak_1): Make static.
3356 * target.def (speculate_insn, needs_block_p, gen_spec_check,
3357 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
3358 * doc/tm.texi: Regenerate.
3359 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
3361 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
3364 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
3366 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
3367 Sandra Loosemore <sandra@codesourcery.com>
3369 * config.gcc (powerpc-*): Allow native for with-cpu.
3371 2013-05-24 Jeff Law <law@redhat.com>
3373 PR tree-optimization/57124
3374 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
3375 conversion feeding a condition if the range has an overflow
3376 if -fstrict-overflow. Add warnings for when we do make the
3379 2013-05-24 Dehao Chen <dehao@google.com>
3381 * tree-cfg.c (locus_discrim_map): Fix the typo.
3382 (locus_discrim_hasher): Likewise.
3383 (locus_discrim_hasher::hash): Likewise.
3384 (locus_discrim_hasher::equal): Likewise.
3386 2013-05-24 Martin Jambor <mjambor@suse.cz>
3388 PR tree-optimization/57294
3389 * cgraph.h (ipa_record_stmt_references): Declare.
3390 * cgraphbuild.c (ipa_record_stmt_references): New function.
3391 (build_cgraph_edges): Use ipa_record_stmt_references.
3392 (rebuild_cgraph_edges): Likewise.
3393 (cgraph_rebuild_references): Likewise.
3394 * ipa-prop.c (ipa_modify_call_arguments): Discard references
3395 associated with the old statement and build references from the
3396 newly built statements.
3397 * ipa-ref.c (ipa_remove_stmt_references): New function.
3398 * ipa-ref.h (ipa_remove_stmt_references): Declare.
3400 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
3402 * lra-constraints.c (emit_spill_move): Use smaller mode for
3404 (check_and_process_move): Consider mem-reg moves for secondary
3406 (curr_insn_transform): Don't lose insns emitted before for
3407 secondary memory moves.
3408 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
3409 reg set up in the current insn.
3411 2013-05-24 Dehao Chen <dehao@google.com>
3413 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
3415 (locus_descrim_hasher::equal): Likewise.
3416 (build_gimple_cfg): New discriminator assignment algorithm.
3417 (make_edges): Likewise.
3418 (next_discriminator_for_locus): Likewise.
3419 (same_line_p): Likewise.
3420 (assign_discriminators): Likewise.
3421 (make_cond_expr_edges): Likewise.
3422 (make_gimple_switch_edges): Likewise.
3423 (make_goto_expr_edges): Likewise.
3424 (make_gimple_asm_edges): Likewise.
3426 2013-05-24 Ian Bolton <ian.bolton@arm.com>
3428 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
3429 X format specifier to only display bottom 16 bits.
3430 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
3431 immediate to match for operand 2, since it will be masked.
3433 2013-05-24 Richard Biener <rguenther@suse.de>
3435 PR tree-optimization/57287
3436 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
3437 all SSA names that occur in abnormal PHIs.
3439 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3442 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
3443 that index is not negative.
3445 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
3447 PR rtl-optimization/55177
3448 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
3449 (simplify_byte_swapping_operation): New.
3450 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
3451 (simplify_relational_operation_1): Deal with BSWAP.
3453 2013-05-23 Richard Henderson <rth@redhat.com>
3456 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
3457 (ix86_reorg): Call it.
3459 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
3462 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
3463 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
3464 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
3466 2013-05-23 Christian Bruel <christian.bruel@st.com>
3469 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
3471 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3472 Marcus Shawcroft <marcus.shawcroft@arm.com>
3474 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
3475 * config/aarch64/constraints.md (Usa): Remove.
3476 * doc/md.texi (AArch64 Usa): Remove.
3478 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3479 Marcus Shawcroft <marcus.shawcroft@arm.com>
3481 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
3482 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
3483 * config/aarch64/predicates.md (aarch64_const_address): Remove.
3484 (aarch64_mov_operand): Use aarch64_mov_operand_p.
3486 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
3488 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
3489 instruction (AdvSIMD).
3490 * config/aarch64/aarch64-builtins.c
3491 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
3492 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
3494 2013-05-23 Martin Jambor <mjambor@suse.cz>
3497 * tree.h (contains_bitfld_component_ref_p): Declare.
3498 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
3499 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
3501 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
3502 not access a bit-field. Assert all final offsets are byte-aligned.
3504 2013-05-23 Richard Biener <rguenther@suse.de>
3506 PR tree-optimization/57380
3507 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
3508 least one invariant or re-used load.
3509 * passes.c (init_optimization_passes): Move pass_phiprop before
3512 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
3514 * config/aarch64/aarch64-simd.md
3515 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
3517 2013-05-23 Richard Biener <rguenther@suse.de>
3520 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
3521 OEP_CONSTANT_ADDRESS_OF retained.
3523 2013-05-23 Jakub Jelinek <jakub@redhat.com>
3526 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
3527 don't lower unit. Handle unit not being always BITS_PER_WORD.
3529 2013-05-23 Richard Biener <rguenther@suse.de>
3531 PR rtl-optimization/57341
3532 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
3533 instead of true_dependence.
3535 2013-05-22 David Malcolm <dmalcolm@redhat.com>
3537 * bb-reorder.c (branch_threshold): Make const.
3538 (exec_threshold): Ditto.
3540 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
3541 Pat Haugen <pthaugen@us.ibm.com>
3542 Peter Bergner <bergner@vnet.ibm.com>
3544 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
3545 documentation for the power8 crypto builtins.
3547 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
3549 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
3550 macros for defining power8 builtin functions.
3551 (BU_P8V_AV_2): Likewise.
3552 (BU_P8V_AV_P): Likewise.
3553 (BU_P8V_VSX_1): Likewise.
3554 (BU_P8V_OVERLOAD_1): Likewise.
3555 (BU_P8V_OVERLOAD_2): Likewise.
3556 (BU_CRYPTO_1): Likewise.
3557 (BU_CRYPTO_2): Likewise.
3558 (BU_CRYPTO_3): Likewise.
3559 (BU_CRYPTO_OVERLOAD_1): Likewise.
3560 (BU_CRYPTO_OVERLOAD_2): Likewise.
3561 (XSCVSPDP): Fix typo, point to the correct instruction.
3562 (VCIPHER): Add power8 crypto builtins.
3563 (VCIPHERLAST): Likewise.
3564 (VNCIPHER): Likewise.
3565 (VNCIPHERLAST): Likewise.
3566 (VPMSUMB): Likewise.
3567 (VPMSUMH): Likewise.
3568 (VPMSUMW): Likewise.
3569 (VPERMXOR_V2DI): Likewise.
3570 (VPERMXOR_V4SI: Likewise.
3571 (VPERMXOR_V8HI: Likewise.
3572 (VPERMXOR_V16QI: Likewise.
3573 (VSHASIGMAW): Likewise.
3574 (VSHASIGMAD): Likewise.
3576 (VPERMXOR): Likewise.
3577 (VSHASIGMA): Likewise.
3579 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
3580 __CRYPTO__ if the crypto instructions are available.
3581 (altivec_overloaded_builtins): Add support for overloaded power8
3584 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
3585 support for power8 crypto builtins.
3586 (builtin_function_type): Likewise.
3587 (altivec_init_builtins): Add support for builtins that take vector
3588 long long (V2DI) arguments.
3590 * config/rs6000/crypto.md: New file, define power8 crypto
3593 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
3594 Pat Haugen <pthaugen@us.ibm.com>
3595 Peter Bergner <bergner@vnet.ibm.com>
3597 * doc/invoke.texi (Option Summary): Add power8 options.
3598 (RS/6000 and PowerPC Options): Likewise.
3600 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
3601 constraints.md instead of rs6000.h. Reorder w* constraints. Add
3602 wm, wn, wr documentation.
3604 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
3605 registers if direct move instructions are enabled.
3606 (wn): New constraint for no registers.
3607 (wq): New constraint for quad word even GPR registers.
3608 (wr): New constraint if 64-bit instructions are enabled.
3609 (wv): New constraint if power8 vector instructions are enabled.
3610 (wQ): New constraint for quad word memory locations.
3612 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
3613 constraint for 0..15 for crypto instructions.
3614 (gpc_reg_operand): If VSX allow registers in VSX registers as well
3615 as GPR and floating point registers.
3616 (int_reg_operand): New predicate to match only GPR registers.
3617 (base_reg_operand): New predicate to match base registers.
3618 (quad_int_reg_operand): New predicate to match even GPR registers
3619 for quad memory operations.
3620 (vsx_reg_or_cint_operand): New predicate to allow vector logical
3621 operations in both GPR and VSX registers.
3622 (quad_memory_operand): New predicate for quad memory operations.
3623 (reg_or_indexed_operand): New predicate for direct move support.
3625 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
3626 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
3627 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
3628 (POWERPC_MASKS): Add power8 options.
3629 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
3632 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
3633 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
3635 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
3636 (-mpower8-fusion): New power8 options.
3637 (-mpower8-fusion-sign): Likewise.
3638 (-mpower8-vector): Likewise.
3639 (-mcrypto): Likewise.
3640 (-mdirect-move): Likewise.
3641 (-mquad-memory): Likewise.
3643 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
3645 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
3647 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
3648 (rs6000_debug_vector_unit): Add p8_vector.
3649 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
3650 definitions. Also print fusion state.
3651 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
3652 (rs6000_builtin_mask_calculate): Add power8 builtin support.
3653 (rs6000_option_override_internal): Add support for power8.
3654 (rs6000_common_init_builtins): Add debugging for skipped builtins
3656 (rs6000_adjust_cost): Add power8 support.
3657 (rs6000_issue_rate): Likewise.
3658 (insn_must_be_first_in_group): Likewise.
3659 (insn_must_be_last_in_group): Likewise.
3660 (force_new_group): Likewise.
3661 (rs6000_register_move_cost): Likewise.
3662 (rs6000_opt_masks): Likewise.
3664 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
3665 power8 capable assembler, default to power7 options.
3666 (TARGET_DIRECT_MOVE): Likewise.
3667 (TARGET_CRYPTO): Likewise.
3668 (TARGET_P8_VECTOR): Likewise.
3669 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
3670 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
3671 (VECTOR_MEM_P8_VECTOR_P): Likewise.
3672 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
3673 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
3674 (TARGET_XSCVDPSPN): Likewise.
3675 (TARGET_XSCVSPDPN): Likewsie.
3676 (TARGET_SYNC_HI_QI): Likewise.
3677 (TARGET_SYNC_TI): Likewise.
3678 (MASK_CRYPTO): Likewise.
3679 (MASK_DIRECT_MOVE): Likewise.
3680 (MASK_P8_FUSION): Likewise.
3681 (MASK_P8_VECTOR): Likewise.
3682 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
3683 temporary used by some of the direct move instructions to get two FP
3684 temporary registers does not force creation of a stack frame.
3685 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
3686 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
3687 that any VSX registers are tieable, even if they are also an
3688 Altivec vector mode.
3689 (r6000_reg_class_enum): Add wm, wr, wv constraints.
3690 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
3691 (RS6000_BTM_CRYPTO): Likewise.
3692 (RS6000_BTM_COMMON): Likewise.
3694 * config/rs6000/rs6000.md (cpu attribute): Add power8.
3695 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
3696 (enum rs6000_vector): Add power8 vector support.
3698 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3702 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
3703 (any_sibcall_could_use_r3): this and handle indirect calls.
3704 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
3706 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3708 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
3710 2013-05-22 Richard Biener <rguenther@suse.de>
3713 * profile.c (branch_prob): Do not split blocks that are
3714 abnormally receiving from ECF_RETURNS_TWICE functions.
3716 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3718 * recog.c (offsettable_address_addr_space_p): Fix calculation of
3719 address mode. Move pointer mode initialization to the same place.
3721 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3723 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
3724 while it has any effect.
3726 2013-05-21 Easwaran Raman <eraman@google.com>
3728 PR tree-optimization/57322
3729 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
3730 UID of the statement added to the BB to be 1.
3732 2013-05-21 Jakub Jelinek <jakub@redhat.com>
3734 PR tree-optimization/57331
3735 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
3736 of conversion from pointer type to integral type with integer.
3738 2013-05-21 Martin Jambor <mjambor@suse.cz>
3741 * ipa-prop.c (ipa_read_node_info): Process param_used and
3742 controlled_uses in the same order as when writing.
3744 2013-05-21 Magnus Granberg <baldrick@free.fr>
3747 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
3749 2013-05-21 Richard Biener <rguenther@suse.de>
3751 PR tree-optimization/57318
3752 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
3753 estimate stmts with side-effects as likely eliminated.
3755 2013-05-21 Richard Biener <rguenther@suse.de>
3757 PR tree-optimization/57330
3758 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
3759 preserve the call stmts fntype.
3761 2013-05-21 Richard Biener <rguenther@suse.de>
3763 PR tree-optimization/57303
3764 * tree-ssa-sink.c (statement_sink_location): Improve killing
3765 stmt detection and properly handle self-assignments.
3767 2013-05-21 Christian Bruel <christian.bruel@st.com>
3769 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
3770 spanning registers. LEAF_REG_REMAP is supported only for contiguous
3771 registers. Set register size out of the PARALLEL loop.
3773 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
3776 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
3777 (*fmasf4, *fmasf4_media): New insns.
3779 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
3781 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
3782 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
3783 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
3784 (mips_idiv_insns): Update the comments to say that the returned
3785 instruction counts are in units of BASE_INSN_LENGTH.
3786 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
3787 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
3788 using 2 rather than 4 as the length of indirect MIPS16 and
3789 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
3790 length of a NOP. Don't divide MIPS16 lengths by 2.
3791 (mips16_split_long_branches): Assume a branch is long if the
3792 length is greater than 4 rather than 8.
3793 * config/mips/mips.md (length): Give MIPS16 lengths directly,
3794 rather than multiplying them by 2. Multiply instruction counts
3795 by BASE_INSN_LENGTH rather than 4.
3796 (*jump_mips16, tls_get_tp_mips16_<mode>)
3797 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
3799 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
3801 * config/mips/mips.md (extended_mips16): Remove branch case.
3802 (length): Remove duplicated extended_mips16 test.
3804 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
3806 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
3808 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
3810 * recog.h (Recog_data): Rename to...
3811 (recog_data_d): ...this.
3812 (recog_data): Update accordingly.
3813 * recog.c (recog_data): Likewise.
3814 * reload.c (save_recog_data): Likewise.
3815 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
3816 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
3818 2013-05-17 Julian Brown <julian@codesourcery.com>
3820 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
3821 found in a REG_EQUAL note, invalidate it.
3823 2013-05-17 Easwaran Raman <eraman@google.com>
3825 * tree-ssa-reassoc.c (find_insert_point): New function.
3826 (insert_stmt_after): Likewise.
3827 (get_def_stmt): Likewise.
3828 (ensure_ops_are_available): Likewise.
3829 (not_dominated_by): Likewise.
3830 (rewrite_expr_tree): Do not move statements beyond what is
3831 necessary. Remove call to swap_ops_for_binary_stmt...
3832 (reassociate_bb): ... and move it here.
3833 (build_and_add_sum): Assign UIDs for new statements.
3834 (linearize_expr): Likewise.
3835 (do_reassoc): Renumber gimple statement UIDs.
3837 2013-05-17 Jan Hubicka <jh@suse.cz>
3839 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
3841 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
3842 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
3844 (output_weakrefs): Update.
3846 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
3847 Martin Jambor <mjambor@suse.cz>
3850 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
3851 value that corresponds to the given aggval is found in values vector.
3853 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
3855 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
3856 sse, sse2, sse3, ssse3 and sse4a flags to options.
3858 2013-05-17 David Malcolm <dmalcolm@redhat.com>
3860 * gengtype-state.c: (s_expr_writer): New class, to handle
3861 prettifying of output layout of s-expressions.
3862 (state_writer): New class, to write out gtype.state.
3863 (state_written_type_count): Move this variable into member data of
3865 (s_expr_writer::s_expr_writer): New code: constructor for new class
3866 (state_writer::state_writer(): ditto
3867 (s_expr_writer::write_new_line): New function
3868 (s_expr_writer::write_any_indent): ditto
3869 (s_expr_writer::begin_s_expr): ditto
3870 (s_expr_writer::end_s_expr): ditto
3871 (write_state_fileloc): convert to method of state_writer...
3872 (state_writer:: write_state_fileloc): ...and use methods of
3873 s_expr_writer to write indentation into the gtype.state output file
3874 to visually represent the hierarchical structure of the list
3876 (write_state_fields): ditto, renaming to...
3877 (state_writer::write_state_fields)
3878 (write_state_a_string): ditto, renaming to...
3879 (state_writer::write_state_a_string)
3880 (write_state_string_option): ditto, renaming to...
3881 (state_writer::write_state_string_option)
3882 (write_state_type_option): ditto, renaming to...
3883 (state_writer::write_state_type_option)
3884 (write_state_nested_option): ditto, renaming to...
3885 (state_writer::write_state_nested_option)
3886 (write_state_option): ditto, renaming to...
3887 (state_writer::write_state_option)
3888 (write_state_options): ditto, renaming to...
3889 (state_writer::write_state_options)
3890 (write_state_lang_bitmap): ditto, renaming to...
3891 (state_writer::write_state_lang_bitmap)
3892 (write_state_version): ditto, renaming to...
3893 (state_writer::write_state_version)
3894 (write_state_scalar_type): ditto, renaming to...
3895 (state_writer::write_state_scalar_type)
3896 (write_state_string_type): ditto, renaming to...
3897 (state_writer::write_state_string_type)
3898 (write_state_undefined_type): ditto, renaming to...
3899 (state_writer::write_state_undefined_type)
3900 (write_state_struct_union_type): ditto, renaming to...
3901 (state_writer::write_state_struct_union_type)
3902 (write_state_struct_type): ditto, renaming to...
3903 (state_writer::write_state_struct_type)
3904 (write_state_user_struct_type): ditto, renaming to...
3905 (state_writer::write_state_user_struct_type)
3906 (write_state_lang_struct_type): ditto, renaming to...
3907 (state_writer::write_state_lang_struct_type)
3908 (write_state_param_struct_type): ditto, renaming to...
3909 (state_writer::write_state_param_struct_type)
3910 (write_state_pointer_type): ditto, renaming to...
3911 (state_writer::write_state_pointer_type)
3912 (write_state_array_type): ditto, renaming to...
3913 (state_writer::write_state_array_type)
3914 (write_state_gc_used): ditto, renaming to...
3915 (state_writer::write_state_gc_used)
3916 (write_state_common_type_content): ditto, renaming to...
3917 (state_writer::write_state_common_type_content)
3918 (write_state_type): ditto, renaming to...
3919 (state_writer::write_state_type)
3920 (write_state_pair_list): ditto, renaming to...
3921 (state_writer::write_state_pair_list)
3922 (write_state_pair): ditto, renaming to...
3923 (state_writer::write_state_pair)
3924 (write_state_typedefs): ditto, renaming to...
3925 (state_writer::write_state_typedefs)
3926 (write_state_structures): ditto, renaming to...
3927 (state_writer::write_state_structures)
3928 (write_state_param_structs): ditto, renaming to...
3929 (state_writer::write_state_param_structs)
3930 (write_state_variables): ditto, renaming to...
3931 (state_writer::write_state_variables)
3932 (write_state_srcdir): ditto, renaming to...
3933 (state_writer::write_state_srcdir)
3934 (write_state_files_list): ditto, renaming to...
3935 (state_writer::write_state_files_list)
3936 (write_state_languages): ditto, renaming to...
3937 (state_writer::write_state_languages)
3938 (write_state): create a state_writer instance and use it when
3939 writing out the state file
3941 2013-05-17 Mike Stump <mikestump@comcast.net>
3943 PR rtl-optimization/57304
3944 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
3945 accessing DF_REF_REAL_LOC.
3947 2013-05-17 Jakub Jelinek <jakub@redhat.com>
3949 PR rtl-optimization/57281
3950 PR rtl-optimization/57300
3951 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
3952 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
3953 what the other splitter did if the registers are dead.
3955 2013-05-17 Richard Biener <rguenther@suse.de>
3957 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
3960 2013-05-17 Jakub Jelinek <jakub@redhat.com>
3962 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
3965 2013-05-17 Marek Polacek <polacek@redhat.com>
3967 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
3968 length when doing non-zero store of storing '\0' to '\0'.
3970 2013-05-17 Jakub Jelinek <jakub@redhat.com>
3972 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
3973 vect_external_def oprnd1 with loop_vinfo, try to emit
3974 optional cast, negation and and stmts on the loop preheader
3975 edge instead of into the pattern def seq.
3977 PR tree-optimization/57051
3978 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
3979 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
3981 2013-05-16 Nick Clifton <nickc@redhat.com>
3983 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
3984 (rl78_is_naked_func): New function.
3985 (rl78_expand_prologue): Skip prologue generation for naked functions.
3986 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
3987 * doc/extend.texi (naked): Add RL78 to the list of processors
3988 that supports this attribute.
3990 2013-05-16 Jeff Law <law@redhat.com>
3992 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
3994 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
3996 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
3997 cache parameters using detect_caches_amd also for CYRIX,
3998 NSC and TM2 signatures.
4000 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
4001 Dzianis Kahanovich <mahatma@eu.by>
4005 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
4006 VIA/Centaur processors and determine their cache parameters
4007 using detect_caches_amd.
4009 2013-05-16 Teresa Johnson <tejohnson@google.com>
4011 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
4012 (rtl_verify_edges): New function.
4013 (rtl_verify_bb_insns): Ditto.
4014 (rtl_verify_bb_pointers): Ditto.
4015 (rtl_verify_bb_insn_chain): Ditto.
4016 (rtl_verify_fallthru): Ditto.
4017 (rtl_verify_bb_layout): Ditto.
4018 (rtl_verify_flow_info_1): Outline checks into new functions.
4019 (rtl_verify_flow_info): Ditto.
4021 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
4023 * cfghooks.c (copy_bbs): Add update_dominance argument.
4024 * cfghooks.h (copy_bbs): Update prototype.
4025 * tree-cfg.c (gimple_duplicate_sese_region):
4026 Add update_dominance argument.
4027 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
4028 * tree-ssa-loop-ch.c (copy_loop_headers): Update
4029 gimple_duplicate_sese_region call.
4030 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
4031 Update copy_bbs call.
4032 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
4033 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
4035 2013-05-16 Jakub Jelinek <jakub@redhat.com>
4037 * tree-vectorizer.h (NUM_PATTERNS): Increment.
4038 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
4039 vect_recog_rotate_pattern.
4040 (vect_recog_rotate_pattern): New function.
4042 2013-05-16 Jason Merrill <jason@redhat.com>
4044 * Makefile.in (LLINKER): New variable.
4045 (mostlyclean): Remove link mutex.
4046 * configure.ac: Handle --enable-link-mutex.
4047 * lock-and-run.sh: New script.
4049 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4052 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
4055 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4057 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
4059 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
4061 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
4062 * config/arm/arm.c (next_consecutive_mem): New function.
4063 (gen_movmem_ldrd_strd): Likewise.
4064 * config/arm/arm.md (movmemqi): Update condition and code.
4065 (unaligned_loaddi, unaligned_storedi): New patterns.
4067 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4069 * config.gcc: Obsolete *-*-solaris2.9*.
4070 * doc/install.texi (Specific, *-*-solaris2*): Document it.
4072 2013-05-16 Richard Biener <rguenther@suse.de>
4074 * passes.c (init_optimization_passes): Move pass_parallelize_loops
4075 earlier, after GRAPHITE transforms and IV canonicalization.
4077 2013-05-16 Jakub Jelinek <jakub@redhat.com>
4079 * omp-low.c (extract_omp_for_data): For collapsed loops,
4080 if at least one of the loops is known at compile time to
4081 iterate zero times, set count to 0.
4082 (expand_omp_regimplify_p): New function.
4083 (expand_omp_for_generic): For collapsed loops, if at least
4084 one of the loops isn't known to iterate at least once,
4085 add runtime check with setting count to 0.
4086 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
4087 For unsigned types if it isn't known at compile time that
4088 the loop will iterate at least once, add runtime check to bypass
4089 the whole loop if initial condition isn't true.
4091 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
4093 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
4095 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
4098 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
4099 transformations to avoid an infinite loop.
4101 2013-05-16 Marek Polacek <polacek@redhat.com>
4103 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
4105 2013-05-15 Leif Ekblad <leif@rdos.net>
4107 * config/i386/i386.c (ix86_decompose_address): Use
4108 DEFAULT_TLS_SEG_REG to access TLS segment register.
4109 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
4110 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
4111 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
4113 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
4116 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
4117 sibling calls to functions that would normally be lazily bound,
4118 unless $gp is call-clobbered.
4120 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
4122 * config/i386/i386.c (ix86_option_override_internal): Update
4123 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
4124 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
4125 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
4126 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
4128 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
4130 2013-05-15 Andreas Schwab <schwab@suse.de>
4132 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
4133 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
4136 2013-05-15 Teresa Johnson <tejohnson@google.com>
4138 * loop-unroll.c (report_unroll_peel): Check decision before
4139 emitting unroll/peel message.
4141 2013-05-15 Teresa Johnson <tejohnson@google.com>
4143 * function.h (has_bb_partition): New rtl_data flag.
4144 (bb_reorder_complete): Ditto.
4145 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
4146 instead of flag_reorder_blocks_and_partition.
4147 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
4148 with some enhancements.
4149 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
4150 * bb-reorder.c (connect_traces): Check for has_bb_partition
4151 instead of flag_reorder_blocks_and_partition.
4152 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
4153 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
4154 verify_hot_cold_block_grouping.
4155 (partition_hot_cold_basic_blocks): Set has_bb_partition.
4157 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4160 * config/arm/predicates.md (call_insn_operand): New predicate.
4161 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
4162 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
4163 if insn is not a tail call.
4164 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
4166 * config/arm/arm.h (enum reg_class): New caller save register class.
4167 (REG_CLASS_NAMES): Likewise.
4168 (REG_CLASS_CONTENTS): Likewise.
4169 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
4172 2013-05-15 Richard Biener <rguenther@suse.de>
4174 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
4175 of MSG_OPTIMIZED_LOCATIONS.
4176 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
4177 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
4179 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
4180 of MSG_OPTIMIZED_LOCATIONS.
4181 (execute_vect_slp): Likewise.
4182 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
4183 (vect_create_cond_for_alias_checks): Likewise.
4184 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
4185 (vect_recog_widen_mult_pattern): Likewise.
4186 (vect_recog_widen_sum_pattern): Likewise.
4187 (vect_recog_over_widening_pattern): Likewise.
4188 (vect_recog_widen_shift_pattern): Likewise.
4189 (vect_recog_vector_vector_shift_pattern): Likewise.
4190 (vect_recog_divmod_pattern): Likewise.
4191 (vect_recog_mixed_size_cond_pattern): Likewise.
4192 (vect_recog_bool_pattern): Likewise.
4193 (vect_pattern_recog_1): Likewise.
4195 2013-05-15 Martin Jambor <mjambor@suse.cz>
4197 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
4198 non-functions to builtin_unreachable.
4199 * ipa-inline-transform.c (inline_call): Do not assert estimates were
4200 correct when new direct edges were discovered.
4202 2013-05-15 Martin Jambor <mjambor@suse.cz>
4204 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
4205 header, print symbol order instead of node uid, print more information
4206 about indirect edge targets.
4207 (ipa_make_edge_direct_to_target): Print symbol order instead of node
4209 (ipa_make_edge_direct_to_target): Likewise.
4210 (remove_described_reference): Likewise.
4211 (propagate_controlled_uses): Likewise.
4212 (ipa_print_node_params): Also print symbol order.
4213 (ipcp_transform_function): Print symbol order instead of node uids.
4214 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
4215 (cgraph_get_create_real_symbol_node): Likewise.
4216 * ipa-cp.c (print_lattice): Likewise.
4217 (print_all_lattices): Likewise.
4218 (determine_versionability): Likewise.
4219 (initialize_node_lattices): Likewise.
4220 (estimate_local_effects): Likewise.
4221 (update_profiling_info): Likewise.
4222 (create_specialized_node): Likewise.
4223 (perhaps_add_new_callers): Likewise.
4224 (decide_about_value): Likewise.
4225 (decide_whether_version_node): Likewise.
4226 (identify_dead_nodes): Likewise.
4227 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
4228 (dump_inline_summary): Likewise.
4229 (estimate_node_size_and_time): Likewise.
4230 (inline_analyze_function): Likewise.
4231 * ipa-inline.c (report_inline_failed_reason): Likewise.
4232 (want_early_inline_function_p): Likewise.
4233 (edge_badness): Likewise.
4234 (update_edge_key): Likewise.
4235 (inline_small_functions): Likewise. Add dumping of order to two other
4237 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
4238 instead of node uids.
4239 (propagate_pure_const): Likewise.
4240 (propagate_pure_const): Likewise.
4241 * ipa-utils.c (dump_cgraph_node_set): Likewise.
4242 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
4243 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
4245 * tree-pretty-print.c (dump_function_header): Likewise.
4246 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
4247 Print symbol order instead of node uids.
4249 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4251 * config/s390/s390.c (s390_register_move_cost): Don't impose the
4252 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
4254 2013-05-15 Richard Biener <rguenther@suse.de>
4256 PR tree-optimization/57275
4257 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
4258 return value for fail to do runtime alias checks for gather loads.
4260 2013-05-15 Jan Hubicka <jh@suse.cz>
4264 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
4265 weakrefs are not external.
4266 (lto_symtab_merge_decls): Fix thinko when dealing with
4267 non-lto_symtab decls.
4268 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
4269 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
4270 * varpool.c (dump_varpool_node): Dump more flags.
4272 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4274 * config/i386/i386.c (processor_alias_table): Add instruction
4275 FSGSBASE for AMD bdver3 architecture.
4277 2013-05-14 Jakub Jelinek <jakub@redhat.com>
4279 * tree.c (warn_deprecated_use): Print file:line using locus color.
4280 * diagnostic.c (diagnostic_report_current_module): Print file:line
4281 and file:line:column using locus color.
4283 2013-05-14 Mike Stump <mikestump@comcast.net>
4285 * gdbinit.in: Add __null.
4287 2013-05-14 Mike Stump <mikestump@comcast.net>
4289 * recog.h: Rename struct recog_data to Recog_data.
4290 * recog.c: Likewise.
4291 * reload.c (can_reload_into): Likewise.
4292 * config/picochip/picochip.c: Likewise.
4294 2013-05-14 Mike Stump <mikestump@comcast.net>
4296 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
4298 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
4300 * resource.h (struct resources): Remove unch_memory member.
4301 (CLEAR_RESOURCE): Don't clear unch_memory.
4302 * resource.c (mark_referenced_resources): Don't set it.
4303 (mark_set_resources): Likewise.
4304 (mark_target_live_regs): Don't clear it.
4305 (init_resource_info): Likewise.
4306 * reorg.c (resource_conflicts_p): Don't compare it.
4307 (redundant_insn): Don't set it.
4309 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
4311 * emit-rtl.c (next_label): Remove unused function.
4312 (skip_consecutive_labels, link_cc0_insns): Move to ...
4313 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
4314 only place where these functions are used, and make them static.
4316 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
4318 * fold-const.c (fold_negate_expr): Handle vectors.
4319 (fold_truth_not_expr): Make it static.
4320 (fold_invert_truthvalue): New static function.
4321 (invert_truthvalue_loc): Handle vectors. Do not call
4322 fold_truth_not_expr directly.
4323 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
4324 <TRUTH_NOT_EXPR>: Do not cast to boolean.
4325 (fold_comparison): Handle vector constants.
4326 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
4327 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
4328 * tree.h (fold_truth_not_expr): Remove declaration.
4330 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
4332 * config/aarch64/aarch64-simd.md
4333 (aarch64_vcond_internal<mode>): Rename to...
4334 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
4335 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
4336 float modes. Clarify all iterator modes.
4337 (vcond<mode><mode>): Use new name for vcond expanders.
4338 (vcond<v_cmp_result><mode>): Likewise.
4339 (vcondu<mode><mode>: Likewise.
4340 * config/aarch64/iterators.md (VDQF_COND): New.
4342 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
4345 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
4346 variable for the shift amount. Check that we shift by non-negative
4349 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
4352 * config/arm/arm.h (EPILOGUE_USES): Only return true
4353 for LR_REGNUM after epilogue_completed.
4355 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
4357 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
4360 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4363 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
4364 and Solaris 11+/x86 with gld.
4365 * configure: Regenerate.
4367 2013-05-14 Jakub Jelinek <jakub@redhat.com>
4369 * expmed.c (expand_shift_1): Canonicalize rotates by
4370 constant bitsize / 2 to bitsize - 1.
4371 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
4372 case ROTATERT>: Likewise.
4375 2013-05-10 Jakub Jelinek <jakub@redhat.com>
4377 * config/i386/i386.md (rotateinv): New code attr.
4378 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
4379 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
4380 roll $31, %eax, etc.
4382 2013-05-14 Richard Biener <rguenther@suse.de>
4385 * tree-eh.c (sink_clobbers): Give up for successors with
4386 multiple predecessors and no virtual uses.
4388 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
4390 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
4391 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
4393 2013-05-14 Jakub Jelinek <jakub@redhat.com>
4396 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
4397 the case when both op0 and op1 have VOIDmode.
4399 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
4401 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
4402 in multiply-accumulate mode.
4404 2013-05-13 Guozhi Wei <carrot@google.com>
4406 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
4408 2013-05-13 Kai Tietz <ktietz@redhat.com>
4411 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
4412 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
4413 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
4414 * config/i386/i386.c (ix86_option_override_internal): Likewise.
4415 (ix86_expand_prologue): Likewise.
4416 (ix86_expand_split_stack_prologue): Likewise.
4417 (legitimate_pic_address_disp_p): Likewise.
4418 (legitimize_pic_address): Likewise.
4419 (legitimize_tls_address): Likewise.
4420 (legitimize_pe_coff_symbol): Likewise.
4421 (output_pic_addr_const): Likewise.
4422 (construct_plt_address): Likewise.
4423 (ix86_expand_call): Likewise.
4424 (x86_output_mi_thunk): Likewise.
4425 (x86_function_profiler): Likewise.
4427 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
4429 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
4430 similar switch cases.
4431 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
4432 (aarch64_simd_mov_to_<mode>low): Delete.
4433 (aarch64_simd_mov_to_<mode>high): Delete.
4434 (move_lo_quad_<mode>): Add w<-r alternative.
4435 (aarch64_simd_move_hi_quad_<mode>): Likewise.
4436 (aarch64_simd_mov_from_*): Update type attribute.
4437 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
4440 2013-05-13 Jan Hubicka <jh@suse.cz>
4442 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
4443 * config/i386/i386.c (ix86_compute_frame_layout,
4444 ix86_expand_epilogue, emit_i387_cw_initialization,
4445 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
4446 ix86_local_alignment): Fix use of size/speed predicates.
4448 2013-05-13 Jakub Jelinek <jakub@redhat.com>
4450 PR tree-optimization/45216
4451 PR tree-optimization/57157
4452 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
4453 the (-Y) & (B - 1) variant if OP is |.
4454 * expmed.c (expand_shift_1): For rotations by const0_rtx just
4455 return shifted. Use (-op1) & (prec - 1) as other_amount
4456 instead of prec - op1.
4458 2013-05-13 Martin Jambor <mjambor@suse.cz>
4461 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
4462 (ipa_constant_data): New type.
4463 (ipa_jump_func): Use ipa_constant_data to hold information about
4464 constant jump functions.
4465 (ipa_get_jf_constant): Adjust to jump function type changes.
4466 (ipa_get_jf_constant_rdesc): New function.
4467 (ipa_param_descriptor): New field controlled_uses.
4468 (ipa_get_controlled_uses): New function.
4469 (ipa_set_controlled_uses): Likewise.
4470 * ipa-ref.h (ipa_find_reference): Declare.
4471 * ipa-prop.c (ipa_cst_ref_desc): New type.
4472 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
4474 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
4475 New parameter cs. Adjust all callers.
4476 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
4477 (remove_described_reference): New function.
4478 (jfunc_rdesc_usable): Likewise.
4479 (try_make_edge_direct_simple_call): Decrement controlled use count,
4480 attempt to remove reference if it hits zero.
4481 (combine_controlled_uses_counters): New function.
4482 (propagate_controlled_uses): Likewise.
4483 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
4484 (ipa_edge_duplication_hook): Duplicate reference descriptions.
4485 (ipa_print_node_params): Print described use counter.
4486 (ipa_write_jump_function): Adjust to jump function type changes.
4487 (ipa_read_jump_function): New parameter CS, pass it to
4488 ipa_set_jf_constant. Adjust caller.
4489 (ipa_write_node_info): Stream controlled use count
4490 (ipa_read_node_info): Likewise.
4491 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
4493 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
4494 count. Remove cloning-added reference if it reaches zero.
4495 * ipa-ref.c (ipa_find_reference): New function.
4497 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4499 * config/i386/i386.c (processor_target_table): Modified default
4500 alignment values for AMD BD and BT architectures.
4502 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
4504 * tree-vect-generic.c (uniform_vector_p): Move ...
4505 * tree.c (uniform_vector_p): ... here.
4506 * tree.h (uniform_vector_p): Declare it.
4507 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
4510 2013-05-13 Jakub Jelinek <jakub@redhat.com>
4512 PR tree-optimization/57230
4513 * tree-ssa-strlen.c (handle_char_store): Record length for
4514 array store from STRING_CST.
4516 PR tree-optimization/57230
4517 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
4520 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
4522 * config/epiphany/epiphany.c (epiphany_init): Check size of
4523 NUM_MODES_FOR_MODE_SWITCHING.
4524 (epiphany_expand_prologue):
4525 Remove CONFIG_REGNUM initial value handling code.
4526 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
4527 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
4528 (emit_set_fp_mode, epiphany_mode_after): Likewise.
4529 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
4530 Don't return 1 for FP_MODE_NONE.
4531 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
4532 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
4533 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
4534 * config/epiphany/epiphany.md (save_config): New pattern.
4536 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
4538 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
4540 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
4542 * config/i386/i386.md (memory): Handle sseishft1.
4543 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
4544 (*vec_extractv2di_1): Ditto.
4546 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
4548 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
4551 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
4553 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
4554 Add mthumb/march=armv7-a multilib.
4555 Add mthumb/march=armv7-r multilib.
4556 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
4558 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
4560 * config/v850/t-rtems: Add more multilibs.
4562 2013-05-10 Richard Biener <rguenther@suse.de>
4564 PR tree-optimization/57214
4565 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
4566 not propagate from SSA names that occur in abnormal PHI nodes.
4568 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
4570 * stor-layout.c (element_precision): New function.
4571 * machmode.h (element_precision): Declare it.
4572 * tree.c (build_minus_one_cst): New function.
4573 (element_precision): Likewise.
4574 * tree.h (build_minus_one_cst): Declare new function.
4575 (element_precision): Likewise.
4576 * fold-const.c (operand_equal_p): Use element_precision.
4577 (fold_binary_loc): Handle vector types.
4578 * convert.c (convert_to_integer): Use element_precision.
4579 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
4582 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
4584 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
4585 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
4586 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
4587 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
4588 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
4589 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
4590 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
4591 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
4592 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
4593 (Uuw8): New constraints.
4594 (Usb4): Move into alphabetical order.
4595 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
4596 (sd8_operand, ub8_operand, uw8_operand): New predicates.
4597 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
4598 previously unnamed patterns.
4599 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
4600 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
4601 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
4602 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
4603 of set_attr_alternative/if_then_else. Use extended_mips16 instead
4604 of specific lengths.
4606 2013-05-10 Jakub Jelinek <jakub@redhat.com>
4608 * config/i386/i386.md (rotateinv): New code attr.
4609 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
4610 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
4611 roll $31, %eax, etc.
4613 PR tree-optimization/45216
4614 PR tree-optimization/57157
4615 * tree-ssa-forwprop.c (simplify_rotate): New function.
4616 (ssa_forward_propagate_and_combine): Call it.
4618 2013-05-10 Richard Biener <rguenther@suse.de>
4620 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
4621 disable peeling when we version for aliasing.
4622 (vector_alignment_reachable_p): Honor explicit user alignment.
4623 (vect_supportable_dr_alignment): Likewise.
4624 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
4625 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
4626 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
4627 then peeling to arrange for the cost-model check to come first.
4629 2013-05-10 Alan Modra <amodra@gmail.com>
4631 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
4632 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
4633 * configure: Regenerate.
4635 2013-05-10 Alan Modra <amodra@gmail.com>
4638 * varasm.c (default_elf_select_section): Move !DECL_P check..
4639 (get_named_section): ..to here before calling get_section_name.
4641 (default_section_type_flags): Add DECL_P check.
4642 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
4643 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
4645 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
4647 * config/epiphany/epiphany.c (epiphany_expand_prologue):
4648 When using gen_stack_adjust_str with a register offset, add a
4649 REG_FRAME_RELATED_EXPR note.
4651 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
4653 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
4654 (*vec_extractv4si_zext_mem): Ditto.
4655 (*vec_extractv2di): Add 0->x and x->x alternatives.
4656 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
4657 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
4659 2013-05-09 Jason Merrill <jason@redhat.com>
4661 N3639 C++1y VLA support
4662 * gimplify.c (gimplify_vla_decl): Don't touch an existing
4665 * tree.c (build_constructor_va): New.
4666 * tree.h: Declare it.
4668 2013-05-09 Martin Jambor <mjambor@suse.cz>
4671 * gimple-fold.c (canonicalize_constructor_val): Call
4672 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
4674 2013-05-09 Jan Hubicka <jh@suse.cz>
4675 Richard Biener <rguenther@suse.de>
4678 * symtab.c (symtab_make_decl_local): Do not add private names.
4680 2013-05-09 Jan Hubicka <jh@suse.cz>
4683 * symtab.c (insert_to_assembler_name_hash): Handle clones.
4684 (unlink_from_assembler_name_hash): Likewise.
4685 (symtab_prevail_in_asm_name_hash, symtab_register_node,
4686 symtab_unregister_node, symtab_initialize_asm_name_hash,
4687 change_decl_assembler_name): Update.
4689 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
4691 * config/aarch64/aarch64.md: New movtf split.
4692 (*movtf_aarch64): Update.
4693 (aarch64_movdi_tilow): Handle TF modes and rename to
4694 aarch64_movdi_<mode>low.
4695 (aarch64_movdi_tihigh): Handle TF modes and rename to
4696 aarch64_movdi_<mode>high
4697 (aarch64_movtihigh_di): Handle TF modes and rename to
4698 aarch64_mov<mode>high_di
4699 (aarch64_movtilow_di): Handle TF modes and rename to
4700 aarch64_mov<mode>low_di
4701 (aarch64_movtilow_tilow): Remove spurious whitespace.
4702 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
4704 (aarch64_print_operand): Update.
4706 2013-05-09 Alan Modra <amodra@gmail.com>
4708 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
4710 * configure: Regenerate.
4712 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
4714 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
4715 splitter preparation statements.
4716 * config/i386/sse.md (*vec_extract* splitters): Ditto.
4717 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
4720 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4722 * gimple-ssa-strength-reduction.c (count_candidates): Change
4723 return value to int.
4724 (analyze_candidates_and_replace): Change type of length to int.
4726 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
4728 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
4729 (*vec_extract<mode>): Use VI12_128 mode iterator.
4730 (*vec_extract<mode>_mem): Ditto.
4731 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
4734 2013-05-08 Diego Novillo <dnovillo@google.com>
4739 2012-08-17 Diego Novillo <dnovillo@google.com>
4742 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
4743 * config.in: Regenerate.
4744 * configure: Regenerate.
4745 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4747 2013-05-08 Jan Hubicka <jh@suse.cz>
4750 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
4751 * cgraph.h (symtab_node_base): Add unique_name.
4752 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
4753 input_overwrite_node, input_varpool_node): Stream unique_name.
4754 * cgraphclones.c (cgraph_create_virtual_clone,
4755 cgraph_function_versioning): Set unique_name.
4756 * ipa.c (function_and_variable_visibility): Set unique_name.
4758 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4760 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
4761 (alloc_cand_and_find_basis): Restrict conditional candidate
4762 processing to CAND_MULTs.
4764 2013-05-08 Jan Hubicka <jh@suse.cz>
4767 lto-symtab.c (lto_symtab_symbol_p): New function.
4768 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
4769 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
4770 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
4771 Skip static symbols.
4773 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
4775 PR tree-optimization/57200
4776 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
4777 Only call inform if the preceding warning_at returns true.
4779 2013-05-07 Han Shen <shenhan@google.com>
4781 * cfgexpand.c (record_or_union_type_has_array_p): New function.
4782 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
4783 * common.opt (fstack-protector-strong): New option.
4784 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
4785 * doc/invoke.texi (Optimization Options): Document
4786 "-fstack-protector-strong".
4787 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
4789 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
4791 * config/mips/mips.c (mips_machine_reorg2): Return 0.
4793 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
4795 * ira.c (update_equiv_regs): Add insn having equiv memory even if
4796 it is not lhs of the insn.
4797 (setup_reg_equiv): Remove insn having equiv memory which it is not
4799 * lra-constraints.c (process_address): Try to improve generation
4800 code for address base + disp.
4801 (lra_constraints): Make correct the code for checking insn setting
4802 up backward equivalence. Remove insn only if it is in the init
4804 * lra-eliminations.c (update_reg_eliminate): Change return value.
4805 (lra_eliminate): Use the result.
4807 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
4809 * config/i386/sse.md (ssescalarnummask): New mode attribute.
4810 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
4811 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
4812 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
4813 register target operands.
4814 (*vec_extractv8hi_sse2): New pattern.
4815 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
4816 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
4817 (*vec_extract<mode>_mem): New insn and split pattern.
4819 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
4821 * config/arm/arm.c (arm_asan_shadow_offset): New function.
4822 (TARGET_ASAN_SHADOW_OFFSET): Define.
4823 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
4824 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
4826 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4828 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
4829 (incr_vec_index): Return -1 if increment not found.
4830 (create_add_on_incoming_edge): Assert if increment not found.
4831 (record_increment): Limit number of increments recorded.
4832 (all_phi_incrs_profitable): Return false if an increment not found.
4833 (replace_profitable_candidates): Don't process increments that were
4835 (analyze_candidates_and_replace): Limit size of incr_vec.
4837 2013-05-07 Richard Biener <rguenther@suse.de>
4839 * calls.c (special_function_p): setjmp-like functions are leaf.
4840 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
4841 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
4843 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
4845 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
4846 (aarch64_simd_mov<mode>): New expander.
4847 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
4848 (aarch64_simd_mov_to_<mode>high): Likewise.
4849 (aarch64_simd_mov_from_<mode>low): Likewise.
4850 (aarch64_simd_mov_from_<mode>high): Likewise.
4851 (aarch64_dup_lane<mode>): Update.
4852 (aarch64_dup_lanedi): New instruction pattern.
4853 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
4854 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
4856 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4858 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
4859 (replace_mult_candidate): Remove unnecessary argument; remove
4860 unnecessary parameter from call to introduce_cast_before_cand.
4861 (replace_unconditional_candidate): Remove unnecessary parameter
4862 from call to replace_mult_candidate.
4863 (replace_conditional_candidate): Likewise.
4864 (insert_initializers): Use make_temp_ssa_name.
4865 (introduce_cast_before_cand): Remove unnecessary argument; use
4867 (replace_one_candidate): Remove unnecessary argument; remove
4868 unnecessary parameter from calls to introduce_cast_before_cand.
4869 (replace_profitable_candidates): Remove unnecessary parameters
4870 from calls to replace_one_candidate.
4872 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4874 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
4875 phi def as possibly hiding a basis for a CAND_ADD whose operands
4876 have been commuted in the analysis.
4877 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
4879 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4881 * config/aarch64/aarch64.md
4882 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
4883 shift value between 0-4.
4885 2013-05-07 Richard Biener <rguenther@suse.de>
4887 * double-int.h (rshift): New overload.
4888 * double-int.c (rshift): New function.
4889 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
4890 (create_reference_ops_from_ref): Remove.
4891 (vn_reference_insert): Use shared ops for constructing the
4892 reference and copy it.
4894 2013-05-07 Richard Biener <rguenther@suse.de>
4897 * tree-eh.c (sink_clobbers): Properly propagate
4898 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
4900 2013-05-07 Jakub Jelinek <jakub@redhat.com>
4902 PR tree-optimization/57149
4903 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
4904 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
4905 collect_phi_def_edges, execute_late_warn_uninitialized): Use
4906 uninit_undefined_value_p instead of ssa_undefined_value_p.
4909 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
4910 for modifier == EXPAND_INITIALIZER.
4912 2013-05-07 Anton Blanchard <anton@samba.org>
4914 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
4915 for powerpc64 little endian.
4916 * configure: Regenerate.
4918 2013-05-06 Graham Stott <grahams@btinternet.com>
4920 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
4921 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
4922 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
4923 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
4925 2013-05-06 Graham Stott <grahams@btinternet.com>
4927 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
4928 codes which allow non-lvalues.
4930 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
4932 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
4933 components are all 1s.
4934 (integer_minus_onep): New function.
4935 * tree.h (integer_minus_onep): Declare it.
4936 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
4937 integer_minus_onep instead of integer_all_onesp.
4939 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
4942 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
4943 variations of these patterns.
4945 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
4947 * config/i386/i386.md (isa): Add x64_sse4 member.
4948 (enabled): Handle x64_sse4.
4949 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
4950 instruction for 64bit SSE4_1 targets. Update insn attributes.
4951 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
4952 instruction for SSE4_1 targets. Update insn attributes.
4953 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
4954 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
4955 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
4957 (*vec_extractv4si): Rename from *sse4_1_pextrd.
4958 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
4959 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
4961 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
4964 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
4966 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
4968 * final.c (do_assembler_dialects): Don't handle curly braces and
4969 vertical bar escaped by % as dialect delimiters.
4970 (output_asm_insn): Print curly braces and vertical bar if escaped
4971 by % and ASSEMBLER_DIALECT defined.
4972 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
4973 * doc/tm.texi: Regenerated.
4975 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
4977 * config/mips/mips.c: Include tree-pass.h.
4978 (mips_reorg): Split in pre- and post-dbr_schedule parts.
4979 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
4980 (pass_mips_machine_reorg2): New machine specific pass.
4981 (insert_pass_mips_machine_reorg2): New pass plugin definition.
4982 (mips_option_override): Register the new pass.
4983 * rtl.h (cleanup_barriers): Remove prototype.
4984 (dbr_schedule): Likewise.
4985 * jump.c (cleanup_barriers): Make static.
4986 * reorg.c (dbr_schedule): Likewise.
4988 2013-05-06 Richard Biener <rguenther@suse.de>
4990 PR tree-optimization/57185
4991 * tree-parloops.c (add_field_for_reduction): Handle anonymous
4994 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
4997 * config/i386/i386.c (add_parameter_dependencies): Add dependence
4998 between "first_arg" and "insn", not "last" and "insn".
5000 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5002 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
5003 (find_candidates_in_block): Re-enable slsr_process_phi.
5004 (create_phi_basis): Fix double counting of candidate adjustment.
5006 2013-05-06 Richard Biener <rguenther@suse.de>
5009 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
5010 the edge is also fallthru, preserve it and just clear the
5012 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
5013 also complex, preserve that and just clear the fallthru flag.
5014 * tree-inline.c (update_ssa_across_abnormal_edges): Also
5015 update virtual operands.
5017 2013-05-06 Alan Modra <amodra@gmail.com>
5019 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
5020 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
5021 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
5022 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
5023 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
5024 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
5026 2013-05-06 Alan Modra <amodra@gmail.com>
5028 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
5029 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
5030 (DEFAULT_ASM_ENDIAN): Define.
5031 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
5032 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
5033 Update -K PIC clause from sysv4.h.
5034 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
5035 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
5037 2013-05-06 Alan Modra <amodra@gmail.com>
5039 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
5040 twice for little-endian.
5041 (ashrdi3_no_power, ashrdi3): Support little-endian.
5043 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
5046 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
5047 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
5049 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
5050 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
5051 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
5054 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
5055 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5057 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
5058 * config/pa/pa.opt: Make mbig-switch a no-op.
5059 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
5060 (CASE_VECTOR_MODE): Always return SImode.
5061 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
5062 for the !TARGET_BIG_SWITCH case.
5063 * config/pa/pa-linux.h: Likewise.
5064 * config/pa/pa-openbsd.h: Likewise.
5065 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
5066 * config/pa/pa.md (short_jump): Remove define_insn.
5067 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
5068 (casesi0): Remove define_insn.
5069 (type): Remove btable_branch.
5070 (pa_combine_type): Likewise.
5071 (in_nullified_branch_delay): Likewise.
5072 (in_call_delay): Likewise.
5073 (define_delay): Likewise.
5074 (define_insn_reservation "Z3"): Likewise.
5075 (define_insn_reservation "Z4"): Likewise.
5076 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
5077 (pa_adjust_insn_length): Remove adjustment for btable branches.
5078 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
5081 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
5083 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
5084 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
5085 Add m->r,x alternatives.
5086 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
5087 splitters using SWI48x mode iterator.
5088 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
5089 TARGET_64BIT. Add m->x alternative.
5090 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
5091 Add o->x alternative. Enable for TARGET_SSE.
5092 (sse_storeq): Remove expander.
5093 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
5094 with memory input operand.
5095 (*vec_extractv2di_1 splitter): New.
5096 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
5097 * config/i386/i386.md (ssevecmodelower): New mode attribute.
5099 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
5101 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
5102 (INT_LOWPART): Delete.
5103 (extract_MB): Adjust.
5104 (extract_ME): Adjust.
5105 (print_operand): Adjust.
5107 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
5109 * config/rs6000/predicates.md (reg_or_add_cint_operand,
5110 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
5111 (reg_or_logical_cint_operand, easy_fp_constant,
5112 logical_const_operand): Delete "CONST_DOUBLE" case.
5113 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
5114 "HOST_BITS_PER_WIDE_INT == 64" test.
5115 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
5116 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
5117 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
5118 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
5120 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
5121 CONST_DOUBLE DImode/VOIDmode case.
5122 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
5123 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
5124 CONST_DOUBLE VOIDmode case.
5125 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
5126 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
5127 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
5128 Delete CONST_DOUBLE case.
5129 (splitters for mov FMOVE64 const_double): Delete
5130 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
5131 "HOST_BITS_PER_WIDE_INT >= 64" test.
5132 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
5134 (mov DI const_double): Delete.
5136 2013-05-04 Jakub Jelinek <jakub@redhat.com>
5138 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
5139 on op shows all bits zero in mode of a lowpart subreg, return zero.
5141 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
5144 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
5145 to save TFmode registers and DImode to save TImode registers for
5146 caller save operations.
5147 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
5148 mark being partially clobbered since they only use the first
5151 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
5152 and TDmode only use the upper 64-bits of each VSX register.
5154 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5156 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
5157 (find_candidates_in_block): Disable slsr_process_phi.
5159 2013-05-03 Guozhi Wei <carrot@google.com>
5161 * coverage.c (coverage_obj_init): Move the construction of gcov
5163 (build_init_ctor): ... here.
5165 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5167 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
5168 (slsr_cand_d): Redefine def_phi.
5169 (stride_status, phi_adjust_status, count_phis_status): New enums.
5170 (find_phi_def): New.
5171 (find_basis_for_base_expr): New.
5172 (find_basis_for_candidate): Handle hidden bases.
5173 (alloc_cand_and_find_basis): Handle phi candidates.
5174 (slsr_process_phi): New.
5175 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
5176 (create_mul_imm_cand): Likewise.
5177 (create_add_ssa_cand): Exclude phi base candidates.
5178 (create_add_imm_cand): Likewise.
5179 (slsr_process_cast): Likewise.
5180 (slsr_process_copy): Likewise.
5181 (find_candidates_in_block): Handle phi candidates.
5182 (dump_candidate): Likewise.
5183 (unconditional_cands): Delete.
5184 (unconditional_cands_with_known_stride_p): Delete.
5185 (phi_dependent_cand_p): New.
5186 (cand_increment): Handle phi-dependent candidates.
5187 (replace_dependent): Delete.
5188 (replace_mult_candidate): New.
5189 (replace_unconditional_candidate): New.
5190 (incr_vec_index): Move to avoid forward reference.
5191 (create_add_on_incoming_edge): New.
5192 (create_phi_basis): New.
5193 (replace_dependents): Delete.
5194 (replace_conditional_candidate): New.
5195 (phi_add_costs): New.
5196 (replace_uncond_cands_and_profitable_phis): New.
5197 (record_increment): Handle phi adjustments.
5198 (record_phi_increments): New.
5199 (record_increments): Handle phi adjustments.
5200 (phi_incr_cost): New.
5201 (lowest_cost_path): Handle phis.
5202 (total_savings): Likewise.
5203 (analyze_increments): Likewise.
5204 (ncd_with_phi): New.
5205 (ncd_of_cand_and_phis): New.
5206 (nearest_common_dominator_for_cands): Handle phi increments.
5207 (all_phi_incrs_profitable): New.
5208 (replace_profitable_candidates): Handle phi-dependent candidates.
5209 (analyze_candidates_and_replace): Likewise.
5211 2013-05-03 Teresa Johnson <tejohnson@google.com>
5214 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
5215 do not exceed REG_BR_PROB_BASE.
5217 2013-05-03 Jeff Law <law@redhat.com>
5219 PR tree-optimization/57144
5220 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
5221 operand of the condition will bit into the new type when eliminating
5222 a cast feeding a condition.
5224 2013-05-03 Jakub Jelinek <jakub@redhat.com>
5226 PR rtl-optimization/57130
5227 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
5228 of COMPARE as in_code to the recursive call if needed.
5230 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
5232 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
5233 (enabled): Handle new members.
5234 * config/i386/sse.md (*vec_concatv2si): Merge from
5235 *vec_concatv2si_sse2 and vec_concatv2si_sse.
5236 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
5238 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
5240 PR tree-optimization/57027
5241 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
5242 for fnms opportunity, check we got the prerequisite kind
5243 of tree / gimple before using accessor functions.
5245 2013-05-03 Richard Biener <rguenther@suse.de>
5247 * double-int.h (lshift): New overload without precision
5249 (operator *=, operator +=, operator -=): Move ...
5250 * double-int.c (operator *=, operator +=, operator -=): ... here
5251 and implement more efficiently.
5252 (mul_double_with_sign): Remove.
5253 (lshift_double): Adjust to take unsinged shift argument, push
5254 dispatching code to callers.
5255 (mul_double_wide_with_sign): Add early out for callers that
5256 are not interested in high parts or overflow.
5257 (lshift): New function.
5258 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
5260 (lrotate, rrotate): Use logical shifts.
5261 * expr.c (get_inner_reference): Use lshift.
5262 * fixed-value.c (do_fixed_divide): Likewise.
5263 * tree-dfa.c (get_ref_base_and_extent): Likewise.
5264 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
5265 (indirect_refs_may_alias_p): Likewise.
5266 (stmt_kills_ref_p_1): Likewise.
5268 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
5270 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
5272 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
5274 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
5275 scalar form of FABD instruction.
5277 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
5279 * lra-constraints.c (process_alt_operands): Add checking alt
5280 number to choose the best alternative.
5282 2013-05-02 Richard Biener <rguenther@suse.de>
5284 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
5285 bitmap and its handling.
5286 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
5288 2013-05-02 Richard Biener <rguenther@suse.de>
5291 * tree-inline.c (copy_loops): Properly handle removed loops.
5292 (copy_cfg_body): Mark destination loops for fixup if source
5295 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
5298 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
5299 generating simple_return for naked functions.
5301 2013-05-02 Martin Jambor <mjambor@suse.cz>
5304 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
5305 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
5307 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
5308 ipa_agg_replacement_value structures.
5309 (known_aggs_to_agg_replacement_list): Likewise.
5310 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
5311 (read_agg_replacement_chain): Likewise.
5312 (ipcp_transform_function): Also check that by_ref flags match.
5314 2013-05-02 Richard Biener <rguenther@suse.de>
5316 * graphds.h (struct graph): Add obstack member.
5317 * graphds.c (new_graph): Initialize obstack and allocate
5319 (add_edge): Allocate edge from the obstack.
5320 (free_graph): Free the obstack instead of all edges and vertices.
5322 2013-05-02 Teresa Johnson <tejohnson@google.com>
5324 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
5326 * cfg.c (update_bb_profile_for_threading): Ditto.
5327 * tree-inline.c (copy_bb): Ditto.
5328 (copy_edges_for_bb): Ditto.
5329 (initialize_cfun): Ditto.
5330 (copy_cfg_body): Ditto.
5331 (expand_call_inline): Ditto.
5332 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
5333 (estimate_node_size_and_time): Ditto.
5334 (inline_merge_summary): Ditto.
5335 * cgraphclones.c (cgraph_clone_edge): Ditto.
5336 (cgraph_clone_node): Ditto.
5337 * sched-rgn.c (compute_dom_prob_ps): Ditto.
5338 (compute_trg_info): Ditto.
5340 2013-05-02 Ian Bolton <ian.bolton@arm.com>
5342 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
5343 S reg when fp attribute set.
5344 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
5346 2013-05-02 Ian Bolton <ian.bolton@arm.com>
5348 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
5350 (*and_one_cmplsi3_compare0_uxtw): Likewise.
5351 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
5352 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
5354 2013-05-02 Richard Biener <rguenther@suse.de>
5356 * tree-scalar-evolution.c (scev_info_hasher): Remove.
5357 (struct instantiate_cache_entry): New type.
5358 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
5359 (struct instantiate_cache_type): New type.
5360 (set_instantiated_value, get_instantiated_value): Remove.
5361 (get_instantiated_value_entry): New function.
5362 (instantiate_scev_name): Use the new cache and adjust.
5363 (instantiate_scev_poly): Adjust.
5364 (instantiate_scev_binary): Likewise.
5365 (instantiate_array_ref): Likewise.
5366 (instantiate_scev_convert): Likewise.
5367 (instantiate_scev_not): Likewise.
5368 (instantiate_scev_3): Likewise.
5369 (instantiate_scev_2): Likewise.
5370 (instantiate_scev_r): Likewise.
5371 (instantiate_scev): Likewise.
5372 (resolve_mixers): Likewise.
5374 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
5377 * lra-constraints.c (best_small_class_operands_num): Remove.
5378 (process_alt_operands): Remove small_class_operands_num. Take
5379 small classes operands into losers and only if the operand is not
5380 matched. Modify debugging output.
5381 (curr_insn_transform): Remove best_small_class_operands_num.
5384 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5386 * config/aarch64/aarch64-builtins.c
5387 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
5388 * config/aarch64/aarch64-simd-builtins.def
5389 (reduc_splus_): Add new modes.
5390 (reduc_uplus_): New.
5391 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
5392 (reduc_uplus_v4sf): Likewise.
5393 (reduc_splus_v4sf): Likewise.
5394 (aarch64_addv<mode>): Likewise.
5395 (reduc_uplus_<mode>): Likewise.
5396 (reduc_splus_<mode>): Likewise.
5397 (aarch64_addvv2di): Likewise.
5398 (reduc_uplus_v2di): Likewise.
5399 (reduc_splus_v2di): Likewise.
5400 (aarch64_addvv2si): Likewise.
5401 (reduc_uplus_v2si): Likewise.
5402 (reduc_splus_v2si): Likewise.
5403 (reduc_<sur>plus_<mode>): New.
5404 (reduc_<sur>plus_v2di): Likewise.
5405 (reduc_<sur>plus_v2si): Likewise.
5406 (reduc_<sur>plus_v4sf): Likewise.
5407 (aarch64_addpv4sf): Likewise.
5408 * config/aarch64/arm_neon.h
5409 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
5410 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
5411 add UNSPEC_SADDV, UNSPEC_UADDV.
5413 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
5415 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5417 * config/aarch64/arm_neon.h
5418 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
5420 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5422 * config/aarch64/aarch64-builtins
5423 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
5425 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5427 * config/aarch64/aarch64-simd-builtins.def
5429 (reduc_smin_): Likewise.
5430 (reduc_umax_): Likewise.
5431 (reduc_umin_): Likewise.
5432 (reduc_smax_nan_): Likewise.
5433 (reduc_smin_nan_): Likewise.
5436 (smax): Update for V2SF, V4SF and V2DF modes.
5439 (smin_nan): Likewise.
5440 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
5441 (<su><maxmin><mode>3): ...This, refactor.
5442 (s<maxmin><mode>3): New.
5443 (<maxmin_uns><mode>3): Likewise.
5444 (reduc_<maxmin_uns>_<mode>): Refactor.
5445 (reduc_<maxmin_uns>_v4sf): Likewise.
5446 (reduc_<maxmin_uns>_v2si): Likewise.
5447 (aarch64_<fmaxmin><mode>: Remove.
5448 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
5450 (vmin<q>_f<32,64>): Likewise.
5451 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
5453 (su): Add mappings for smax, smin, umax, umin.
5455 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
5456 (FMAXMIN): Rename as...
5457 (FMAXMIN_UNS): ...This.
5459 (fmaxminv): Likewise.
5460 (fmaxmin): Likewise.
5462 (maxmin_uns_op): Likewise.
5464 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5466 * config/aarch64/arm_neon.h
5467 (vac<ge, gt><sd>_f<32, 64>): Rename to...
5468 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
5469 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
5471 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5473 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
5474 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
5476 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5478 * config/aarch64/aarch64-simd.md
5479 (vcond<mode>_internal): Handle special cases for constant masks.
5480 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
5481 (vcondu<mode><mode>): Likewise.
5482 (vcond<v_cmp_result><mode>): New.
5484 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5486 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
5487 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
5488 * config/aarch64/aarch64-simd-builtins.def
5489 (cmeq): Update to BUILTIN_VALLDI.
5494 * config/aarch64/arm_neon.h
5495 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
5496 to builtins or C as appropriate.
5498 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5500 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
5502 (cmhi): Rename to...
5504 * config/aarch64/aarch64-simd.md
5505 (simd_mode): Add SF.
5506 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
5507 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
5508 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
5509 (cstore<mode>_neg): ...This.
5510 * config/aarch64/iterators.md
5512 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
5514 (UCOMPARISONS): Likewise.
5515 (optab): Add missing comparisons.
5523 (V_cmp_result): Add DF, SF modes.
5524 (v_cmp_result): Likewise.
5527 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
5529 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
5531 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
5532 define_insn to define_insn_and_split.
5533 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
5534 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
5535 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
5536 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
5537 (thumb2_negscc): Likewise.
5539 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
5541 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
5543 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
5545 * config/arm/thumb2.md: Remove trailing whitespaces.
5547 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
5549 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
5550 Use gen_int_mode rather than GEN_INT.
5552 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
5554 * value-prof.c (stream_in_histogram_value): Remove the strayed
5557 2013-04-30 Richard Biener <rguenther@suse.de>
5560 * cfghooks.c (split_edge): Properly check for the loop latch edge.
5562 2013-04-30 Richard Biener <rguenther@suse.de>
5565 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
5567 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
5569 PR rtl-optimization/56957
5570 PR rtl-optimization/57105
5571 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
5572 variable. Use just INSN_UID for determining whether an insn
5573 should be only disconnected from the insn stream.
5574 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
5576 2013-04-30 Jakub Jelinek <jakub@redhat.com>
5578 PR tree-optimization/57104
5579 * tsan.c (instrument_expr): Don't instrument accesses to
5580 DECL_HARD_REGISTER VAR_DECLs.
5582 2013-04-30 Richard Biener <rguenther@suse.de>
5584 * function.h (loops_for_fn): New inline function.
5585 (set_loops_for_fn): Likewise.
5586 * cfgloop.h (place_new_loop): Add struct function parameter.
5587 (get_loop): Likewise.
5588 (get_loops): Likewise.
5589 (number_of_loops): Likewise.
5591 (fel_init): Likewise.
5592 * cfg.c (get_loop_copy): Adjust.
5593 * cfgloop.c (flow_loops_dump): Likewise.
5594 (record_loop_exits): Likewise.
5595 (verify_loop_structure): Likewise.
5596 * cfgloopanal.c (mark_irreducible_loops): Likewise.
5597 (estimate_reg_pressure_cost): Likewise.
5598 (mark_loop_exit_edges): Likewise.
5599 * cfgloopmanip.c (place_new_loop): Likewise.
5600 (add_loop): Likewise.
5601 (duplicate_loop): Likewise.
5602 * graph.c (draw_cfg_nodes): Likewise.
5603 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
5604 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
5605 (extract_affine_chrec): Likewise.
5606 (build_scop_iteration_domain): Likewise.
5607 * graphite.c (graphite_initialize): Likewise.
5608 * ira-build.c (create_loop_tree_nodes): Likewise.
5609 (more_one_region_p): Likewise.
5610 (rebuild_regno_allocno_maps): Likewise.
5611 (mark_loops_for_removal): Likewise.
5612 (mark_all_loops_for_removal): Likewise.
5613 (remove_unnecessary_regions): Likewise.
5614 (ira_build): Likewise.
5615 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
5616 * loop-init.c (fix_loop_structure): Likewise.
5617 (gate_rtl_move_loop_invariants): Likewise.
5618 (gate_rtl_unswitch): Likewise.
5619 (gate_rtl_unroll_and_peel_loops): Likewise.
5620 (rtl_doloop): Likewise.
5621 * lto-streamer-in.c (input_cfg): Likewise.
5622 * lto-streamer-out.c (output_cfg): Likewise.
5623 * modulo-sched.c (sms_schedule): Likewise.
5624 * predict.c (tree_estimate_probability): Likewise.
5625 (tree_estimate_probability_driver): Likewise.
5626 (estimate_loops): Likewise.
5627 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
5628 (move_sese_region_to_fn): Likewise.
5629 (debug_loop_num): Likewise.
5630 * tree-chrec.c (chrec_evaluate): Likewise.
5631 (hide_evolution_in_other_loops_than_loop): Likewise.
5632 (chrec_component_in_loop_num): Likewise.
5633 (reset_evolution_in_loop): Likewise.
5634 (evolution_function_is_invariant_rec_p): Likewise.
5635 * tree-if-conv.c (main_tree_if_conversion): Likewise.
5636 * tree-inline.c (copy_loops): Likewise.
5637 (copy_cfg_body): Likewise.
5638 (tree_function_versioning): Likewise.
5639 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
5640 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
5642 (add_to_evolution_1): Likewise.
5643 (scev_const_prop): Likewise.
5644 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
5645 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
5646 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
5647 (tree_ssa_lim_initialize): Likewise.
5648 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
5649 (verify_loop_closed_ssa): Likewise.
5650 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
5651 (tree_ssa_loop_im): Likewise.
5652 (tree_ssa_loop_unswitch): Likewise.
5653 (tree_vectorize): Likewise.
5654 (check_data_deps): Likewise.
5655 (tree_ssa_loop_ivcanon): Likewise.
5656 (tree_ssa_loop_bounds): Likewise.
5657 (tree_complete_unroll): Likewise.
5658 (tree_complete_unroll_inner): Likewise.
5659 (tree_parallelize_loops): Likewise.
5660 (tree_ssa_loop_prefetch): Likewise.
5661 (tree_ssa_loop_ivopts): Likewise.
5662 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
5663 * tree-vectorizer.c (vectorize_loops): Likewise.
5665 2013-04-29 Mike Frysinger <vapier@gentoo.org>
5667 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
5668 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
5669 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
5670 with EABI_LINK_SPEC.
5672 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
5675 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
5678 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
5681 * lra-constraints.c (process_alt_operands): Discourage a bit more
5682 using memory for pseudos. Print cost dump for alternatives.
5683 Modify cost values for conflicts with early clobbers.
5684 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
5686 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
5689 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
5691 2013-04-29 Ian Bolton <ian.bolton@arm.com>
5693 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
5695 (movdi_aarch64): Support LDR/STR from/to D register.
5697 2013-04-29 Ian Bolton <ian.bolton@arm.com>
5699 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
5700 or higher by default.
5702 2013-04-29 Richard Biener <rguenther@suse.de>
5705 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
5706 even if not adding abnormal edges for calls that can make
5709 2013-04-29 Richard Biener <rguenther@suse.de>
5712 * tree-cfg.c (move_stmt_op): Fix condition under which to update
5714 (move_stmt_r): Remove redundant checking.
5716 2013-04-29 Teresa Johnson <tejohnson@google.com>
5719 * basic-block.h (apply_scale): New function.
5720 (apply_probability): Use apply_scale.
5721 * gimple-streamer-in.c (input_bb): Ditto.
5722 * lto-streamer-in.c (input_cfg): Ditto.
5723 * lto-cgraph.c (merge_profile_summaries): Ditto.
5724 * tree-optimize.c (execute_fixup_cfg): Ditto.
5725 * tree-inline.c (copy_bb): Update comment to use apply_scale.
5726 (copy_edges_for_bb): Ditto.
5727 (copy_cfg_body): Ditto.
5729 2013-04-29 Tom de Vries <tom@codesourcery.com>
5731 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
5732 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
5733 (tail_merge_optimize): Handle current_loops == NULL.
5735 2013-04-26 Jeff Law <law@redhat.com>
5737 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
5738 (simplify_cond_using_ranges): Generalize code to simplify
5739 COND_EXPRs where one argument is a constant and the other
5740 is an SSA_NAME created by an integral type conversion.
5742 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5744 * config/arm/arm.md (store_minmaxsi): Use only when
5745 optimize_insn_for_size_p.
5747 2013-04-29 Christian Bruel <christian.bruel@st.com>
5750 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
5752 2013-04-29 Richard Biener <rguenther@suse.de>
5755 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
5756 loop tree make sure to schedule a fixup for the child as well.
5757 (expand_omp_for_generic): Properly add loops.
5758 (expand_omp_for_static_nochunk): Likewise.
5759 (expand_omp_for_static_chunk): Likewise.
5760 (expand_omp_for): For the degenerate case fixup loops.
5761 (expand_omp_sections): Fix default bb placement in loops.
5762 (expand_omp_atomic_pipeline): Properly add loops.
5764 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5766 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
5768 2013-04-29 Tom de Vries <tom@codesourcery.com>
5770 * tree-ssa-tail-merge.c: Update header comment.
5772 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5774 * config/aarch64/arm_neon.h
5775 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
5776 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
5777 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
5778 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
5779 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
5780 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
5781 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
5782 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
5784 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5786 * config/aarch64/aarch64-simd.md
5787 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
5788 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
5789 fix_trunc, fixuns_trunc.
5790 (ftrunc<VDQF:mode>2): New.
5791 * config/aarch64/iterators.md (optab): Add fix, fixuns.
5792 (fix_trunc_optab): New.
5794 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5796 * config/aarch64/aarch64-builtins.c
5797 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
5798 iceilf, lround, iroundf.
5800 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
5803 * config/i386/i386.h (enum ix86_tune_indices)
5804 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
5805 New, split from X86_TUNE_INTER_UNIT_MOVES.
5806 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
5807 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
5808 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
5809 (TARGET_INTER_UNIT_MOVES): Remove.
5810 * config/i386/i386.c (initial_ix86_tune_features): Update.
5811 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
5812 (ix86_expand_convert_uns_didf_sse): Use
5813 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
5814 (ix86_expand_vector_init_one_nonzero): Ditto.
5815 (ix86_expand_vector_init_interleave): Ditto.
5816 (inline_secondary_memory_needed): Return true for moves from SSE class
5817 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
5818 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
5819 * config/i386/constraints.md (Yi, Ym): Depend on
5820 TARGET_INTER_UNIT_MOVES_TO_VEC.
5821 (Yj, Yn): New constraints.
5822 * config/i386/i386.md (*movdi_internal): Change constraints of
5823 operand 1 from Yi to Yj and from Ym to Yn.
5824 (*movsi_internal): Ditto.
5825 (*movdf_internal): Ditto.
5826 (*movsf_internal): Ditto.
5827 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
5828 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
5829 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
5830 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
5831 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
5832 * config/i386/sse.md (movdi_to_sse): Ditto.
5833 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
5834 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
5835 TARGET_INTER_UNIT_MOVES.
5836 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
5837 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
5838 instead of TARGET_INTER_UNIT_MOVES.
5839 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
5840 operand 1 from Yi to Yj and from Ym to Yn.
5842 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5844 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
5845 (float_truncate_hi_): Likewise.
5846 (float_extend_lo_): Likewise.
5847 (float_truncate_lo_): Likewise.
5848 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
5849 (aarch64_float_extend_lo_v2df): Likewise.
5850 (vec_unpacks_hi_v4sf): Likewise.
5851 (aarch64_float_truncate_lo_v2sf): Likewise.
5852 (aarch64_float_truncate_hi_v4sf): Likewise.
5853 (vec_pack_trunc_v2df): Likewise.
5854 (vec_pack_trunc_df): Likewise.
5856 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5858 * config/aarch64/aarch64-builtins.c
5859 (aarch64_fold_builtin): Fold float conversions.
5860 * config/aarch64/aarch64-simd-builtins.def
5861 (floatv2si, floatv4si, floatv2di): New.
5862 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
5863 * config/aarch64/aarch64-simd.md
5864 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
5865 * config/aarch64/iterators.md (FLOATUORS): New.
5866 (optab): Add float, floatuns.
5867 (su_optab): Likewise.
5869 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5871 * config/aarch64/aarch64-builtins.c
5872 (aarch64_builtin_vectorized_function): Use new names for
5874 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
5875 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
5876 (fcvtzu): Split as...
5877 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
5878 (fcvtas): Split as...
5879 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
5880 (fcvtau): Split as...
5881 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
5882 (fcvtps): Split as...
5883 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
5884 (fcvtpu): Split as...
5885 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
5886 (fcvtms): Split as...
5887 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
5888 (fcvtmu): Split as...
5889 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
5890 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
5891 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
5892 (lfrintnusf, lfrintnudf): Likewise.
5893 * config/aarch64/aarch64-simd.md
5894 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
5896 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
5897 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
5898 (fcvt_pattern): Likewise.
5900 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5902 * config/aarch64/aarch64-simd.md
5903 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
5904 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
5906 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5908 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
5909 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
5910 (vrnd<a,m,n,p>_f32): Implement using builtins.
5911 (vrnd<i,x><q>_f<32, 64>): New.
5913 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5915 * config/aarch64/aarch64-builtins.c
5916 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
5917 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
5918 (frintz): Rename to...
5920 (frintp): Rename to...
5922 (frintm): Rename to...
5924 (frinti): Rename to...
5925 (nearbyint): ...this.
5926 (frintx): Rename to...
5928 (frinta): Rename to...
5930 * config/aarch64/aarch64-simd.md
5931 (aarch64_frint<frint_suffix><mode>): Delete.
5932 (<frint_pattern><mode>2): Convert to insn.
5933 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
5934 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
5935 (frint_pattern): Likewise.
5936 (frint_suffix): Likewise.
5938 2013-04-29 Richard Biener <rguenther@suse.de>
5940 PR tree-optimization/57081
5941 * loop-init.c: Include tree-flow.h.
5942 (loop_optimizer_finalize): Free number of iteration estimates.
5943 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
5945 2013-04-29 Jakub Jelinek <jakub@redhat.com>
5947 PR tree-optimization/57083
5948 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
5949 non-singleton shift count range, zero extend low_bound for uns case.
5951 * config/i386/predicates.md (general_vector_operand): New predicate.
5952 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
5953 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
5954 if they aren't nonimmediate operands. If their original values
5955 satisfy const_vector_equal_evenodd_p, don't shift them.
5956 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
5957 predicates. For the SSE4.1 case force operands[{1,2}] into registers
5958 if not nonimmediate_operand.
5959 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
5960 instead of register_operand.
5961 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
5963 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
5965 * stor-layout.c (finalize_size_functions): Allocate a structure and
5966 reset cfun before dumping the functions.
5968 2013-04-27 Jakub Jelinek <jakub@redhat.com>
5970 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
5973 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
5974 use xop_pmacsdqh if uns_p.
5975 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
5976 the immediate rotate count.
5978 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
5980 * rtl.h (struct rtx_def): Add comment for field jump.
5981 (LRA_SUBREG_P): New macro.
5982 * recog.c (register_operand): Check LRA_SUBREG_P.
5983 * lra.c (lra): Add note at the end of RTL code. Align non-empty
5985 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
5986 (lra_final_code_change): Skip subreg change for operators.
5987 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
5988 if there are no operand changes.
5989 * lra-constraints.c (curr_insn_set): New.
5990 (match_reload): Set LRA_SUBREG_P.
5991 (emit_spill_move): Ditto.
5992 (check_and_process_move): Use curr_insn_set. Process only single
5993 set insns. Don't initialize sec_mem_p and change_p.
5994 (simplify_operand_subreg): Use LRA_SUBREG_P.
5995 (reg_in_class_p): New function.
5996 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
5997 of #ifdef. Add code to remove cycling.
5998 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
5999 non-null disp. Reload inner instead of disp when base and index
6000 are null. Try to put lo_sum into register.
6001 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
6002 (check_and_process_move): Move code for move cost check to
6003 simple_move_p. Remove equiv_substitution.
6004 (simple_move_p): New function.
6005 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
6006 curr_insn_set. Call check_and_process_move only for single set
6007 insns. Use the new function. Move call of check_and_process_move
6008 after operand equiv substitution and address process.
6010 2013-04-26 Jakub Jelinek <jakub@redhat.com>
6013 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
6014 with nonlocal goto receivers or returns twice calls, ignore
6015 unininitialized values from abnormal edges to nl goto receiver
6016 or returns twice call.
6018 2013-04-26 Jakub Jelinek <jakub@redhat.com>
6020 PR tree-optimization/57051
6021 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
6022 and VEC_RSHIFT_EXPR if shift count is a multiple of element
6025 2013-04-26 Richard Biener <rguenther@suse.de>
6027 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
6028 (expand_omp_taskreg): Likewise. Mark loops for fixup.
6029 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
6030 (fixup_loop_arrays_after_move): New function.
6031 (move_sese_region_to_fn): Properly outline the loop tree parts
6034 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
6036 * config/i386/i386.md (type, unit): Fix long lines.
6038 2013-04-26 Richard Biener <rguenther@suse.de>
6040 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
6041 (lto-streamer-out.o): Likewise.
6042 * cfgloop.c (init_loops_structure): Export, add struct function
6043 argument and adjust.
6044 (flow_loops_find): Adjust.
6045 * cfgloop.h (enum loop_estimation): Add EST_LAST.
6046 (init_loops_structure): Declare.
6047 * lto-streamer-in.c: Include cfgloop.h.
6048 (input_cfg): Input the loop tree.
6049 * lto-streamer-out.c: Include cfgloop.h.
6050 (output_cfg): Output the loop tree.
6051 (output_struct_function_base): Do not drop PROP_loops.
6053 2013-03-26 Richard Biener <rguenther@suse.de>
6055 * tree-cfg.c (execute_build_cfg): Build the loop tree.
6056 (pass_build_cfg): Provide PROP_loops.
6057 (move_sese_region_to_fn): Remove loops that are outlined into fn
6059 * tree-inline.c: Include cfgloop.h.
6060 (initialize_cfun): Do not drop PROP_loops.
6061 (copy_loops): New function.
6062 (copy_cfg_body): Copy loop structure.
6063 (tree_function_versioning): Initialize destination loop tree.
6064 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
6065 (pass_parallelize_loops): Do IL verification.
6066 * loop-init.c (loop_optimizer_init): Fixup loops if required.
6067 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
6068 the CFG make sure we fixup loops as well.
6069 * tree-ssa-tail-merge.c: Include cfgloop.h.
6070 (replace_block_by): When merging loop latches mark loops for fixup.
6071 * lto-streamer-out.c (output_struct_function_base): Drop
6073 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
6074 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
6075 * ipa-split.c: Include cfgloop.h.
6076 (split_function): Add the new return block to the loop tree root.
6077 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
6078 whether we have removed the forwarder block.
6079 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
6080 * cfgloop.h (place_new_loop): Declare.
6081 * cfgloopmanip.c (place_new_loop): Export.
6082 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
6083 (tree-switch-conversion.o): Likewise.
6084 (tree-complex.o): Likewise.
6085 (tree-inline.o): Likewise.
6086 (tree-ssa-tailmerge.o): Likewise.
6087 (ipa-split.o): Likewise.
6088 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
6089 (tree-ssa-copy.o): Likewise.
6090 * tree-switch-conversion.c: Include cfgloop.h
6091 (process_switch): If we emit a bit-test cascade, schedule loops
6093 * tree-complex.c: Include cfgloop.h.
6094 (expand_complex_div_wide): Properly add new basic-blocks to loops.
6095 * asan.c: Include cfgloop.h.
6096 (create_cond_insert_point): Properly add new basic-blocks to
6097 loops, schedule loop fixup.
6098 * cfgloop.c (verify_loop_structure): Check that looks are not
6100 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
6102 (expand_omp_for_generic): Likewise.
6103 (expand_omp_sections): Likewise.
6104 (expand_omp_atomic_pipeline): Schedule loops for fixup.
6105 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
6106 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
6107 is initialized, not when loops are present.
6108 * tree-parloops.c (parallelize_loops): Remove checking here.
6109 * passes.c (init_optimization_passes): Schedule a copy-propagation
6110 pass before complete unrolling of inner loops.
6112 2013-04-26 Jakub Jelinek <jakub@redhat.com>
6114 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
6115 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
6116 (colorize_init): Add argument to _WIN32 version.
6117 * toplev.c: Include diagnostic-color.h.
6118 (process_options): Default to -fdiagnostics-color=auto if
6119 GCC_COLORS env var is in the environment.
6120 * common.opt (fdiagnostics-color=): Add Var and Init.
6121 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
6122 env var is in the environment, the default is auto rather than never.
6124 * diagnostic.h (file_name_as_prefix): Add context argument.
6125 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
6126 the string as locus.
6127 * langhooks.c (lhd_print_error_function): Adjust caller.
6129 2013-04-25 Lawrence Crowl <crowl@google.com>
6131 * var-tracking.c (shared_hash_def::htab):
6132 Change type to hash_table. Update dependent calls and types.
6134 2013-04-25 Lawrence Crowl <crowl@google.com>
6136 * Makefile.in: Update as needed below.
6138 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
6139 Move declaration to after the type's method definitons.
6141 * attribs.c (htab_t scoped_attributes::attribute_hash):
6142 Change type to hash_table. Update dependent calls and types.
6144 * bitmap.c (htab_t bitmap_desc_hash):
6145 Change type to hash_table. Update dependent calls and types.
6147 * cselib.c (htab_t cselib_hash_table):
6148 Change type to hash_table. Update dependent calls and types.
6150 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
6151 (hash_string_slot_node): Move implementation into lto-streamer.h
6152 struct string_slot_hasher.
6153 (eq_string_slot_node): Likewise.
6155 * data-streamer-out.c: Update output_block::string_hash_table
6156 dependent calls and types.
6158 * dwarf2cfi.c (htab_t trace_index):
6159 Change type to hash_table. Update dependent calls and types.
6161 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
6162 Change type to hash_table. Update dependent calls and types.
6163 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
6164 (htab_t optimize_external_refs::map): Likewise.
6165 (htab_t output_comp_unit::extern_map): Likewise.
6166 (htab_t output_comdat_type_unit::extern_map): Likewise.
6167 (htab_t output_macinfo::macinfo_htab): Likewise.
6168 (htab_t optimize_location_lists::htab): Likewise.
6169 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
6171 * except.c (htab_t ehspec_hash_type):
6172 Change type to hash_table. Update dependent calls and types.
6173 (assign_filter_values::ttypes): Likewise.
6174 (assign_filter_values::ehspec): Likewise.
6175 (sjlj_assign_call_site_values::ar_hash): Likewise.
6176 (convert_to_eh_region_ranges::ar_hash): Likewise.
6178 * gcse.c (htab_t pre_ldst_table):
6179 Change type to hash_table. Update dependent calls and types.
6181 * ggc-common.c (htab_t saving_htab):
6182 Change type to hash_table. Update dependent calls and types.
6183 (htab_t loc_hash): Likewise.
6184 (htab_t ptr_hash): Likewise.
6185 (call_count): Rename ggc_call_count.
6186 (call_alloc): Rename ggc_call_alloc.
6187 (loc_descriptor): Rename make_loc_descriptor.
6188 (add_statistics): Rename ggc_add_statistics.
6190 * ggc-common.c (saving_htab):
6191 Change type to hash_table. Update dependent calls and types.
6193 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
6194 (push_gimplify_context): Likewise.
6195 (pop_gimplify_context): Likewise.
6196 (struct gimple_temp_hash_elt): Added.
6197 (struct gimplify_hasher): Likewise.
6198 (struct gimplify_ctx.temp_htab):
6199 Change type to hash_table. Update dependent calls and types.
6201 * gimple-fold.c: Include gimplify-ctx.h.
6203 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
6204 Change type to hash_table. Update dependent calls and types.
6205 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
6206 avoid potential global name collision.
6208 * gimplify.c: Include gimplify-ctx.h.
6209 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
6210 (htab_t gimplify_ctx::temp_htab):
6211 Update dependent calls and types for new type hash_table.
6212 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
6213 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
6215 * gimplify-ctx.h: New.
6216 (struct gimple_temp_hash_elt): Move from gimplify.c.
6217 (class gimplify_hasher): New.
6218 (struct gimplify_ctx): Move from gimple.h.
6219 (htab_t gimplify_ctx::temp_htab):
6220 Change type to hash_table. Update dependent calls and types.
6222 * graphite-clast-to-gimple.c: Include graphite-htab.h.
6223 (htab_t ivs_params::newivs_index):
6224 Change type to hash_table. Update dependent calls and types.
6225 (htab_t ivs_params::params_index): Likewise.
6226 (htab_t print_generated_program::params_index): Likewise.
6227 (htab_t gloog::newivs_index): Likewise.
6228 (htab_t gloog::params_index): Likewise.
6230 * graphite.c: Include graphite-htab.h.
6231 4htab_t graphite_transform_loops::bb_pbb_mapping):
6232 Change type to hash_table. Update dependent calls and types.
6234 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
6235 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
6236 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
6238 * graphite-dependences.c: Include graphite-htab.h.
6239 (loop_is_parallel_p): Change hash table type of parameter.
6241 * graphite-htab.h: New.
6242 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
6243 (extern find_pbb_via_hash): Move from graphite-poly.h.
6244 (extern loop_is_parallel_p): Move from graphite-poly.h.
6245 (extern get_loop_body_pbbs): Move from graphite-poly.h.
6247 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
6248 (extern loop_is_parallel_p): Move to graphite-htab.h.
6249 (extern get_loop_body_pbbs): Move to graphite-htab.h.
6251 * haifa-sched.c (htab_t delay_htab):
6252 Change type to hash_table. Update dependent calls and types.
6253 (htab_t delay_htab_i2): Likewise.
6255 * ira-color.c (htab_t allocno_hard_regs_htab):
6256 Change type to hash_table. Update dependent calls and types.
6258 * ira-costs.c (htab_t cost_classes_htab):
6259 Change type to hash_table. Update dependent calls and types.
6261 * loop-invariant.c (htab_t merge_identical_invariants::eq):
6262 Change type to hash_table. Update dependent calls and types.
6264 * loop-iv.c (htab_t bivs):
6265 Change type to hash_table. Update dependent calls and types.
6267 * loop-unroll.c (htab_t opt_info::insns_to_split):
6268 Change type to hash_table. Update dependent calls and types.
6269 (htab_t opt_info::insns_with_var_to_expand): Likewise.
6271 * lto-streamer.h (struct string_slot): Move from data-streamer.h
6272 (struct string_slot_hasher): New.
6273 (htab_t output_block::string_hash_table):
6274 Change type to hash_table. Update dependent calls and types.
6276 * lto-streamer-in.c (freeing_string_slot_hasher): New.
6277 (htab_t file_name_hash_table):
6278 Change type to hash_table. Update dependent calls and types.
6280 * lto-streamer-out.c: Update output_block::string_hash_table dependent
6283 * lto-streamer.c (htab_t tree_htab):
6284 Change type to hash_table. Update dependent calls and types.
6286 * omp-low.c: Include gimplify-ctx.h.
6288 * passes.c (htab_t name_to_pass_map):
6289 Change type to hash_table. Update dependent calls and types.
6290 (pass_traverse): Rename to passes_pass_traverse.
6292 * plugin.c (htab_t event_tab):
6293 Change type to hash_table. Update dependent calls and types.
6295 * postreload-gcse.c (htab_t expr_table):
6296 Change type to hash_table. Update dependent calls and types.
6297 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
6299 * sese.c (debug_rename_map_1): Make extern.
6300 (htab_t copy_bb_and_scalar_dependences::rename_map):
6301 Change type to hash_table. Update dependent calls and types.
6303 * sese.h (extern debug_rename_map): Move to .c file.
6305 * store-motion.c (htab_t store_motion_mems_table):
6306 Change type to hash_table. Update dependent calls and types.
6308 * trans-mem.c (htab_t tm_new_mem_hash):
6309 Change type to hash_table. Update dependent calls and types.
6311 * tree-browser.c (htab_t TB_up_ht):
6312 Change type to hash_table. Update dependent calls and types.
6314 * tree-cfg.c (htab_t discriminator_per_locus):
6315 Change type to hash_table. Update dependent calls and types.
6317 * tree-complex.c: Include tree-hasher.h
6318 (htab_t complex_variable_components):
6319 Change type to hash_table. Update dependent calls and types.
6321 * tree-eh.c (htab_t finally_tree):
6322 Change type to hash_table. Update dependent calls and types.
6324 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
6325 struct int_tree_hasher.
6326 (extern int_tree_map_eq): Likewise.
6327 (uid_decl_map_hash): Removed.
6328 (extern decl_tree_map_eq): Likewise.
6330 * tree-hasher.h: New.
6331 (struct int_tree_hasher): New.
6332 (typedef int_tree_htab_type): New.
6334 * tree-inline.c: Include gimplify-ctx.h.
6336 * tree-mudflap.c: Include gimplify-ctx.h.
6338 * tree-parloops.c: Include tree-hasher.h.
6339 (htab_t eliminate_local_variables_stmt::decl_address):
6340 Change type to hash_table. Update dependent calls and types.
6341 (htab_t separate_decls_in_region::decl_copies): Likewise.
6343 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
6344 Change type to hash_table. Update dependent calls and types.
6346 * tree-sra.c (candidates):
6347 Change type to hash_table. Update dependent calls and types.
6349 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
6351 (int_tree_map_hash): Likewise.
6353 * tree-ssa-dom.c (htab_t avail_exprs):
6354 Change type to hash_table. Update dependent calls and types.
6356 * tree-ssa-live.c (var_map_base_init::tree_to_index):
6357 Change type to hash_table. Update dependent calls and types.
6359 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
6360 Change type to hash_table. Update dependent calls and types.
6362 * tree-ssa-phiopt.c (seen_ssa_names):
6363 Change type to hash_table. Update dependent calls and types.
6365 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
6366 Change type to hash_table. Update dependent calls and types.
6368 * tree-ssa-uncprop.c (equiv):
6369 Change type to hash_table. Update dependent calls and types.
6371 2013-04-25 Jakub Jelinek <jakub@redhat.com>
6373 PR rtl-optimization/57003
6374 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
6375 call note_stores with kill_clobbered_value callback again after
6376 killing regs_invalidated_by_call.
6378 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
6380 * config/aarch64/aarch64-simd.md
6381 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
6382 (aarch64_simd_bsl<mode>): Likewise.
6383 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
6385 2013-04-25 Marek Polacek <polacek@redhat.com>
6387 PR tree-optimization/57066
6388 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
6390 2013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
6392 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
6394 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
6396 * config/aarch64/aarch64-builtins.c
6397 (aarch64_fold_builtin): New.
6398 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
6399 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
6400 * config/aarch64/aarch64-simd-builtins.def (abs): New.
6401 * config/aarch64/arm_neon.h
6402 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
6404 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
6405 Tejas Belagod <tejas.belagod@arm.com>
6407 * config/aarch64/aarch64-builtins.c
6408 (aarch64_gimple_fold_builtin): New.
6409 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
6410 * config/aarch64/aarch64-simd-builtins.def (addv): New.
6411 * config/aarch64/aarch64-simd.md (addpv4sf): New.
6413 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
6415 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6417 * config/aarch64/aarch64.md
6418 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
6420 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6422 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
6423 (*ngcsi_uxtw): New pattern.
6425 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6426 Julian Brown <julian@codesourcery.com>
6428 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
6429 (TB_DREG): Add T_V4HF.
6430 (v4hf_UP): New macro.
6431 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
6432 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
6433 Handle initialisation of V4HF. Adjust initialisation of reinterpret
6435 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
6436 (arm_vector_mode_supported_p): Handle V4HF.
6437 (arm_mangle_map): Handle V4HFmode.
6438 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
6439 * config/arm/arm_neon_builtins.def: Add entries for
6440 vcvtv4hfv4sf, vcvtv4sfv4hf.
6441 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
6442 (neon_vcvtv4hfv4sf): Likewise.
6443 * config/arm/neon-gen.ml: Handle half-precision floating point
6445 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
6446 * config/arm/arm_neon.h: Regenerate.
6447 * config/arm/neon.ml (type elts): Add F16.
6448 (type vectype): Add T_float16x4, T_floatHF.
6449 (type vecmode): Add V4HF.
6450 (type features): Add Requires_FP_bit feature.
6451 (elt_width): Handle F16.
6452 (elt_class): Likewise.
6453 (elt_of_class_width): Likewise.
6454 (mode_of_elt): Refactor.
6455 (type_for_elt): Handle F16, fix error messages.
6456 (vectype_size): Handle T_float16x4.
6457 (vcvt_sh): New function.
6458 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
6459 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
6460 (string_of_mode): Handle V4HF.
6461 * doc/arm-neon-intrinsics.texi: Regenerate.
6463 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
6465 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
6466 format specifier in 'X' case.
6468 2013-04-25 Alan Modra <amodra@gmail.com>
6471 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
6472 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
6473 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
6474 Repeat for many other rotate/shift and mask patterns using subregs.
6475 Name lshiftrt insns.
6476 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
6477 on WORDS_BIG_ENDIAN.
6479 2013-04-25 Alan Modra <amodra@gmail.com>
6481 * config.gcc: Support little-endian powerpc-linux targets.
6482 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
6483 (LINK_OS_LINUX_SPEC): Define.
6484 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
6485 Preserve MASK_LITTLE_ENDIAN.
6486 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
6487 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
6488 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
6489 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
6490 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
6491 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
6492 Correct fp word order for little-endian. Don't shift toc entries
6493 smaller than a word for little-endian.
6494 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
6495 (bswapdi2 splits): Correct low-part subreg for little-endian.
6496 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
6497 low/high where such is correct only for be.
6498 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
6499 little-endian for -mcall-aixdesc.
6501 2013-04-25 Alan Modra <amodra@gmail.com>
6503 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
6504 replace_equiv_address_nv.
6506 2013-04-25 Alan Modra <amodra@gmail.com>
6508 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
6510 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
6513 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
6514 * rtl.h (struct rtx_def): ...
6516 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
6518 PR rtl-optimizations/57046
6519 * lra-constraints (split_reg): Set up lra_risky_transformations_p
6520 for multi-reg splits.
6522 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
6524 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
6526 2013-04-24 Sterling Augustine <saugustine@google.com>
6528 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
6529 (comp_dir_string, debug_str_dwo_section): New.
6530 (DEBUG_STR_DWO_SECTION): Rename to ...
6531 (DEBUG_DWO_STR_SECTION): ... this.
6532 (DEBUG_NORM_STR_SECTION): Delete.
6533 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
6534 (DEBUG_STR_DWO_SECTION_FLAGS): New.
6535 (find_AT_string): Move most logic to ...
6536 (find_AT_string_in_table): ... here. New.
6537 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
6538 add_skeleton_AT_string. Delete logic.
6539 (output_skeleton_debug_sections): Remove call to
6540 add_top_level_skeleton_die_attrs.
6541 (add_comp_dir_attribute): Move logic to comp_dir_string.
6542 (dwarf2out_init): Initialize debug_str_dwo_section.
6543 (output_indirect_string): Call find_string_form.
6544 (output_indirect_strings): Rewrite.
6545 (prune_unused_types): Empty skeleton_debug_str_hash.
6546 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
6547 (dwarf2out_finish): Call output_indirect_strings.
6549 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6551 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
6553 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
6555 * rtl.h (struct rtx_def): Add comment for field jump.
6556 (LRA_SUBREG_P): New macro.
6557 * recog.c (register_operand): Check LRA_SUBREG_P.
6558 * lra.c (lra): Add note at the end of RTL code. Align non-empty
6560 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
6561 (lra_final_code_change): Skip subreg change for operators.
6562 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
6563 if there are no operand changes.
6564 * lra-constraints.c (curr_insn_set): New.
6565 (match_reload): Set LRA_SUBREG_P.
6566 (emit_spill_move): Ditto.
6567 (check_and_process_move): Use curr_insn_set. Process only single
6568 set insns. Don't initialize sec_mem_p and change_p.
6569 (simplify_operand_subreg): Use LRA_SUBREG_P.
6570 (reg_in_class_p): New function.
6571 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
6572 of #ifdef. Add code to remove cycling.
6573 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
6574 non-null disp. Reload inner instead of disp when base and index
6575 are null. Try to put lo_sum into register.
6576 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
6577 (check_and_process_move): Move code for move cost check to
6578 simple_move_p. Remove equiv_substitution.
6579 (simple_move_p): New function.
6580 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
6581 curr_insn_set. Call check_and_process_move only for single set
6582 insns. Use the new function. Move call of check_and_process_move
6583 after operand equiv substitution and address process.
6585 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
6587 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
6588 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
6589 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
6591 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6593 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
6595 2013-04-24 Marek Polacek <polacek@redhat.com>
6597 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
6598 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
6599 (select_loops_exit_conditions): Likewise.
6600 (number_of_iterations_for_all_loops): Likewise.
6601 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
6602 (scev_analysis): Likewise.
6604 2013-04-02 Catherine Moore <clm@codesourcery.com>
6605 Chao-ying Fu <fu@mips.com>
6607 * config/mips/micromips.md (jraddiusp): New pattern.
6608 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
6609 instruction if possible.
6611 2013-04-24 Alan Modra <amodra@gmail.com>
6613 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
6615 2013-04-24 Julian Brown <julian@codesourcery.com>
6616 Chung-Lin Tang <cltang@codesourcery.com>
6618 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
6619 dependency behavior in enumeration type DIE generation. Add TODO note
6620 to comments about future DW_FORM_sdata/udata re-work of related code.
6622 2013-04-23 Lawrence Crowl <crowl@google.com>
6624 * Makefile.in: Update as needed below.
6626 * hash-table.h (class hash_table):
6627 Correct many methods with parameter types compare_type to the correct
6628 value_type. (Correct code was unlikely to notice the change.)
6629 (hash_table::elements_with_deleted) New.
6630 (class hashtable::iterator): New.
6631 (hashtable::begin()): New.
6632 (hashtable::end()): New.
6633 (FOR_EACH_HASH_TABLE_ELEMENT): New.
6635 * statistics.c (statistics_hashes):
6636 Change type to hash_table. Update dependent calls and types.
6638 * tree-into-ssa.c (var_infos):
6639 Change type to hash_table. Update dependent calls and types.
6641 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
6642 Change type to hash_table. Update dependent calls and types.
6644 * tree-ssa-loop-im.c (struct mem_ref.refs):
6645 Change type to hash_table. Update dependent calls and types.
6647 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
6648 Change type to hash_table. Update dependent calls and types.
6650 * tree-ssa-sccvn.c (vn_tables_s::nary):
6651 Change type to hash_table. Update dependent calls and types.
6652 (vn_tables_s::phis): Likewise.
6653 (vn_tables_s::references): Likewise.
6655 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
6656 (vn_reference_eq): Update parameter and return types.
6658 * tree-ssa-structalias.c (pointer_equiv_class_table):
6659 Change type to hash_table. Update dependent calls and types.
6660 (location_equiv_class_table): Likewise.
6662 * tree-vect-data-refs.c: Consequential changes for making
6663 peeling a hash_table.
6665 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
6666 (destroy_loop_vec_info): Dependent hash_table update.
6668 * tree-vectorizer.h (peeling_htab):
6669 Change type to hash_table. Update dependent calls and types.
6671 2013-04-23 Shiva Chen <shiva0217@gmail.com>
6673 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
6674 to check the register content is equal or not.
6675 * lra-constraints.c (match_reload): Use lra_assign_reg_val
6676 to assign register content record.
6677 * lra-eliminations.c (update_reg_eliminate): Use
6678 lra_update_reg_val_offset to update register content offset.
6679 * lra-int.h (struct lra_reg): Add offset member.
6680 (lra_reg_val_equal_p): New static inline function.
6681 (lra_update_reg_val_offset): New static inline function.
6682 (lra_assign_reg_val): New static inline function.
6683 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
6684 to assign register content record.
6685 (initialize_lra_reg_info_element): Initial offset to zero.
6687 2013-04-23 Catherine Moore <clm@codesourcery.com>
6689 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
6690 operands. Record compression.
6692 2013-04-23 Xinliang David Li <davidxl@google.com>
6694 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
6696 2013-04-23 Richard Biener <rguenther@suse.de>
6699 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
6700 parameter, only add abnormal goto edges from the copied body
6701 if the call could perform abnormal gotos.
6702 (copy_cfg_body): Adjust.
6704 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
6706 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
6708 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
6710 * coretypes.h (gimple_stmt_iterator): Add struct to make
6713 2013-04-23 Richard Biener <rguenther@suse.de>
6715 PR tree-optimization/57026
6716 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
6717 from SSA names occuring in abnormal PHI nodes.
6719 2013-04-22 Andi Kleen <ak@linux.intel.com>
6721 * lto/lto.c (print_lto_report_1): Fix LTO report names.
6723 2013-04-22 Andi Kleen <ak@linux.intel.com>
6725 * lto/lto.c (print_lto_report_1): Declare early.
6726 (read_cgraph_and_symbols): Call print_lto_report_1 early.
6728 2013-04-22 Andi Kleen <ak@linux.intel.com>
6730 * common.opt (-flto-report-wpa): Add.
6731 * doc/invoke.texi (-flto-report-wpa): Add.
6732 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
6735 2013-04-22 Xinliang David Li <davidxl@google.com>
6737 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
6738 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
6739 * Makefile.in: New dependency
6741 David Daney <ddaney.cavm@gmail.com>
6743 * configure.ac (gcc_cv_as_micromips_support): Use the
6744 --fatal-warnings option.
6745 * configure: Regenerate.
6747 2013-04-22 Marek Polacek <polacek@redhat.com>
6750 * tsan.c (instrument_expr): Don't instrument expression
6751 in case its size is zero.
6753 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
6757 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
6759 * config/alpha/alpha.c (TARGET_LRA_P): New define.
6761 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
6763 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
6764 (gimple_stmt_iterator): New typedef.
6765 * gimple.h (gimple_stmt_iterator): Rename to...
6766 (gimple_stmt_iterator_d): ... This.
6767 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
6768 trees be valid for GIMPLE and GENERIC.
6769 (TARGET_GIMPLE_FOLD_BUILTIN): New.
6770 * gimple-fold.c (gimple_fold_call): Call target hook
6771 gimple_fold_builtin.
6772 * hooks.c (hook_bool_gsiptr_false): New.
6773 * hooks.h (hook_bool_gsiptr_false): New.
6774 * target.def (fold_stmt): New.
6775 * doc/tm.texi: Regenerate.
6777 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
6780 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
6781 a set sp if no stack realignment.
6783 2013-04-22 Nick Clifton <nickc@redhat.com>
6785 * config.gcc (tilegx-linux): Extend extra_objs rather than
6787 (tilepro-linux): Likewise.
6789 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
6791 * config/aarch64/aarch64-builtins.c
6793 (CF0, CF1, CF2, CF3, CF4, CF10): New.
6794 (VAR<1-12>): Add MAP parameter.
6795 (BUILTIN_*): Likewise.
6796 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
6797 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
6798 (aarch64_ushl_n<mode>): Likewise.
6799 (aarch64_sshr_n<mode>): Likewise.
6800 (aarch64_ushr_n<mode>): Likewise.
6801 (aarch64_<maxmin><mode>): Likewise.
6802 (aarch64_sqrt<mode>): Likewise.
6803 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
6804 (vshr<q>_n_*): Likewise.
6806 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
6808 * config/aarch64/aarch64-builtins.c
6809 (aarch64_simd_builtin_type_mode): Handle SF types.
6811 (BUILTIN_GPF): Define.
6812 (aarch64_init_simd_builtins): Handle SF types.
6813 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
6816 * config/aarch64/aarch64-simd.md
6817 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
6818 (aarch64_frecpe<mode>): New.
6819 (aarch64_frecps<mode>): Likewise.
6820 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
6821 (v8type): Add frecp<esx>.
6822 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
6823 (aarch64_frecps<mode>): Likewise.
6824 * config/aarch64/iterators.md (FRECP): New.
6825 (frecp_suffix): Likewise.
6826 * config/aarch64/arm_neon.h
6827 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
6829 2013-04-22 Christian Bruel <christian.bruel@st.com>
6832 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
6833 (REG_CLASS_NAMES): Idem.
6834 (REG_CLASS_CONTENTS): Idem.
6835 (REGCLASS_HAS_FP_REG): Idem.
6836 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
6837 (sh_conditional_register_usage): Idem.
6839 2013-04-21 Jeff Law <law@redhat.com>
6841 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
6842 (ssa_forward_propagate_and_combine): Use it.
6844 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
6846 * lra.c: Update the flow chart diagram.
6848 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
6850 PR rtl-optimization/56847
6851 * lra-constraints.c (process_alt_operands): Discourage alternative
6852 with non-matche doffsettable memory constraint fro memory with
6855 2013-04-19 Richard Biener <rguenther@suse.de>
6857 PR tree-optimization/56982
6858 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
6860 * gimplify.c (gimplify_call_expr): Notice special calls.
6861 (gimplify_modify_expr): Likewise.
6862 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
6863 abnormal control flow receivers.
6864 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
6865 in the same way as cfun->has_nonlocal_labels.
6866 (gimple_purge_dead_abnormal_call_edges): Likewise.
6867 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
6868 receivers start a basic-block.
6870 2013-04-19 Richard Biener <rguenther@suse.de>
6872 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
6874 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
6875 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
6876 (SLP_TREE_LOAD_PERMUTATION): Add.
6877 (vect_transform_slp_perm_load): Adjust prototype.
6878 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
6879 (vect_free_slp_instance): Likewise.
6880 (vect_create_new_slp_node): Likewise.
6881 (vect_supported_slp_permutation_p): Remove.
6882 (vect_slp_rearrange_stmts): Adjust.
6883 (vect_supported_load_permutation_p): Likewise. Inline
6884 vect_supported_slp_permutation_p here.
6885 (vect_analyze_slp_instance): Compute load permutations per
6886 slp node instead of per instance.
6887 (vect_get_slp_defs): Adjust.
6888 (vect_transform_slp_perm_load): Likewise.
6889 (vect_schedule_slp_instance): Remove redundant code.
6890 (vect_schedule_slp): Remove hack for PR56270, add it ...
6891 * tree-vect-stmts.c (vectorizable_load): ... here, do not
6892 CSE loads for SLP. Adjust.
6894 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
6896 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
6897 spelling in two comments.
6899 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
6902 * config/arm/arm.c (load_multiple_sequence): Require SP
6903 as base register for loads if SP is in the register list.
6905 2013-04-19 Martin Jambor <mjambor@suse.cz>
6907 PR tree-optimization/56718
6908 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
6909 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
6910 and made public. Adjusted all callers.
6911 (ipa_intraprocedural_devirtualization): New function.
6912 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
6913 (ipa_intraprocedural_devirtualization): Likewise.
6914 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
6916 2013-04-19 Richard Biener <rguenther@suse.de>
6918 PR tree-optimization/57000
6919 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
6921 2013-04-19 Terry Guo <terry.guo@arm.com>
6923 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
6925 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
6926 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
6927 (cortex_m4_fmacs): Use new reservations.
6928 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
6930 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
6932 PR rtl-optimization/56999
6933 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
6935 (lra_coalesce): Remove split_origin_bitmap and related code.
6936 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
6937 ranges if necessary.
6939 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
6941 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
6943 (ix86_expand_call): Remove clobbered_registers array and use
6944 x86_64_ms_sysv_extra_clobbered_registers instead.
6945 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
6947 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
6949 * config/i386/i386.md (*call_rex64_ms_sysv): Use
6950 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
6951 (*call_value_rex64_ms_sysv): Ditto.
6953 2013-04-18 Cary Coutant <ccoutant@google.com>
6955 * dwarf2out.c (output_pubnames): Check die_perennial_p of
6956 parent instead of die_mark.
6958 2013-04-18 Diego Novillo <dnovillo@google.com>
6960 * gimple.c (create_gimple_tmp): New.
6961 (get_expr_type): New.
6962 (build_assign): New.
6963 (build_type_cast): New.
6964 * gimple.h (enum ssa_mode): Define.
6965 (gimple_seq_set_location): New.
6966 * asan.c (build_check_stmt): Change some gimple_build_* calls
6967 to use build_assign and build_type_cast.
6969 2013-04-18 Richard Biener <rguenther@suse.de>
6971 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
6972 handle negative step. Remove redundant checks.
6973 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
6974 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
6975 for negative step and grouped loads fail to vectorize.
6977 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
6979 * emit-rtl.c (reset_insn_used_flags): New function.
6980 (reset_all_used_flags): Use it.
6981 (verify_insn_sharing): New function.
6982 (verify_rtl_sharing): Fix verification for SEQUENCEs.
6984 2013-04-18 Jakub Jelinek <jakub@redhat.com>
6986 PR tree-optimization/56984
6987 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
6988 and (x >> M) >= N don't register any assertion if N << M is the
6991 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
6993 * lower-subreg.c (resolve_simple_move): If called self-recursive,
6994 do not delete_insn insns that have not yet been emitted, only
6995 unlink them with remove_insn.
6996 * df-scan.c (df_insn_delete): Revert r197492.
6998 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
7000 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
7001 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
7003 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
7005 * config/arm/arm.md (movsicc_insn): Convert define_insn into
7006 define_insn_and_split.
7007 (and_scc,ior_scc,negscc): Likewise.
7008 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
7010 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
7012 * config/arm/arm.c (use_return_insn): Return 0 for targets that
7013 can benefit from using a sequence of LDRD instructions in epilogue
7014 instead of a single LDM instruction.
7016 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
7019 * doc/extend.texi: Fix typo.
7021 2013-04-17 Richard Biener <rguenther@suse.de>
7023 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
7024 (vect_build_slp_tree): ... here.
7025 (vect_build_slp_tree_1): Compute which stmts of the SLP group
7026 match. Remove special-casing of mismatched complex loads.
7027 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
7028 re-try the match with swapped commutative operands.
7029 (vect_supported_load_permutation_p): Remove special-casing of
7030 mismatched complex loads.
7031 (vect_analyze_slp_instance): Adjust.
7033 2013-04-17 Richard Biener <rguenther@suse.de>
7035 PR rtl-optimization/56921
7036 * cfgloop.h (struct loop): Add simple_loop_desc member.
7037 (struct niter_desc): Mark with GTY(()).
7038 (simple_loop_desc): Do not use aux field but simple_loop_desc.
7039 * loop-iv.c (get_simple_loop_desc): Likewise.
7040 (free_simple_loop_desc): Likewise.
7043 2013-04-16 Richard Biener <rguenther@suse.de>
7045 PR rtl-optimization/56921
7046 * loop-init.c (pass_rtl_move_loop_invariants): Add
7047 TODO_do_not_ggc_collect to todo_flags_finish.
7048 (pass_rtl_unswitch): Same.
7049 (pass_rtl_unroll_and_peel_loops): Same.
7050 (pass_rtl_doloop): Same.
7052 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
7054 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
7055 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
7056 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
7058 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
7059 * tree-streamer.c (record_common_node): Adjust reference in comment.
7061 2013-04-17 Terry Guo <terry.guo@arm.com>
7063 * config/arm/cortex-m4.md: Add a new bypass.
7065 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7067 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
7069 (*subs_<optab><mode>_multp2): New pattern.
7070 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
7071 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
7073 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7075 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
7076 (*subs_mul_imm_<mode>): New pattern.
7078 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
7081 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
7082 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
7083 (vsx_movti_32bit): Change j->wa to O->wa.
7085 2013-04-16 Richard Biener <rguenther@suse.de>
7087 PR rtl-optimization/56921
7088 * loop-init.c (pass_rtl_move_loop_invariants): Add
7089 TODO_do_not_ggc_collect to todo_flags_finish.
7090 (pass_rtl_unswitch): Same.
7091 (pass_rtl_unroll_and_peel_loops): Same.
7092 (pass_rtl_doloop): Same.
7094 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
7096 * config/arm/arm.c (emit_multi_reg_push): New declaration
7097 for an existing function.
7098 (arm_emit_strd_push): New function.
7099 (arm_expand_prologue): Used here.
7100 (arm_emit_ldrd_pop): New function.
7101 (arm_expand_epilogue): Used here.
7102 (arm_get_frame_offsets): Update condition.
7103 (arm_emit_multi_reg_pop): Add a special case for load of a single
7104 register with writeback.
7106 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
7108 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
7111 2013-04-16 Richard Biener <rguenther@suse.de>
7113 PR tree-optimization/56756
7114 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
7115 (first_mem_ref_loc): New.
7116 (execute_sm): Place the load temporarily before a previous
7117 access instead of in the latch edge to ensure its SSA dependencies
7118 are defined at points dominating the load.
7120 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
7122 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
7123 correct fix by moving header and footer insn to the footer of
7124 the merged basic block. Clear BB_END of the merged-away block.
7127 * emit-rtl.c (make_note_raw): New function.
7128 (link_insn_into_chain): New static inline function.
7130 (add_insn_before, add_insn_after): Factor insn chain linking code...
7131 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
7132 using link_insn_into_chain.
7133 (note_outside_basic_block_p): New helper function for emit_note_after
7134 and emit_note_before.
7135 (emit_note_after): Use nobb variant of add_insn_after if the note
7136 should not be contained in a basic block.
7137 (emit_note_before): Use nobb variant of add_insn_before if the note
7138 should not be contained in a basic block.
7139 (emit_note_copy): Use make_note_raw.
7140 (emit_note): Likewise.
7141 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
7142 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
7143 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
7144 the moved barrier the tail of the basic block it follows.
7145 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
7147 2013-04-15 Jakub Jelinek <jakub@redhat.com>
7149 PR tree-optimization/56962
7150 * gimple-ssa-strength-reduction.c (record_increment): Only set
7151 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
7152 either rhs1 or rhs2 is equal to c->base_expr.
7154 2013-04-15 Richard Biener <rguenther@suse.de>
7156 PR tree-optimization/56933
7157 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
7159 (GROUP_READ_WRITE_DEPENDENCE): Remove.
7160 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
7161 * tree-vect-data-refs.c (vect_analyze_group_access): Move
7162 dependence check ...
7163 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
7165 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
7166 GROUP_READ_WRITE_DEPENDENCE.
7168 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7170 * emit-rtl.c (reset_all_used_flags): New function.
7171 (verify_rtl_sharing): Call reset_all_used_flags before and after
7172 performing the checks.
7174 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7176 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
7177 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
7178 * config/arm/constraints.md (De): New constraint.
7179 * config/arm/neon.md (anddi3_neon): Delete.
7180 (neon_vand<mode>): Expand to standard anddi3 pattern.
7181 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
7182 Move earlier in the file.
7183 (neon_inv_logic_op2): Likewise.
7184 (arm_anddi_operand_neon): New predicate.
7186 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7188 * configure.ac (gcc_cv_ld_as_needed): Set
7189 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
7190 Use -z ignore, -z record on *-*-solaris2*.
7191 (HAVE_LD_AS_NEEDED): Update comment.
7192 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
7193 * configure: Regenerate.
7194 * config.in: Regenerate.
7195 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
7196 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
7197 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
7198 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
7199 equivalents. Fix markup.
7200 * doc/tm.texi: Regenerate.
7202 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
7204 * config/i386/i386.opt: New option mstack-protector-guard=.
7205 * config/i386/i386-opts.h: Add enum stack_protector_guard.
7206 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
7207 TARGET_SSP_TLS_GUARD.
7208 * config/i386/i386.c (ix86_option_override_internal): Set
7209 ix86_stack_protector_guard.
7210 * config/i386/i386.md (stack_protect_set): Enable for
7211 TARGET_SSP_TLS_GUARD only.
7212 (stack_protect_set_<mode>): Ditto.
7213 (stack_protect_test): Ditto.
7214 (stack_protect_test_<mode>): Ditto.
7215 * doc/invoke.texi (i386 Option): Document.
7217 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
7220 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
7221 (S_MODES): Set H_MODE bit.
7222 (SF_MODES): Set only S_MODE and SF_MODE bits.
7223 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
7224 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
7225 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
7226 <MODE_FLOAT>: Likewise.
7228 2013-04-15 Joey Ye <joey.ye@arm.com>
7230 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
7232 2013-04-15 Joey Ye <joey.ye@arm.com>
7234 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
7236 (thumb_far_jump_used_p): Count instruction size and set
7239 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
7241 * reorg.c (fill_simple_delay_slots): Reindent block of code.
7242 * resource.c (mark_target_live_regs): Reformat conditional block.
7244 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
7246 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
7247 notes, they are emitted only just before final.
7248 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
7250 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
7252 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
7253 * cfgrtl.c (delete_insn): Call it here instead.
7254 * lra-spills.c (lra_final_code_change): Use delete_insn.
7255 * haifa-sched.c (sched_remove_insn): Likewise.
7256 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
7257 returning to the nop pool.
7258 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
7259 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
7261 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
7263 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
7264 * doc/tm.texi: Regenerated.
7266 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
7268 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
7271 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
7273 * df-core.c (df_find_def): Compare register numbers.
7274 (df_find_use): Likewise.
7276 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
7279 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
7280 lra_in_progress for return.
7282 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
7284 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
7285 define_insn into define_insn_and_split and emit movsicc patterns.
7287 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
7289 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
7291 2013-04-12 Richard Biener <rguenther@suse.de>
7293 * tree-pass.h (TODO_do_not_ggc_collect): New.
7294 * passes.c (execute_one_ipa_transform_pass): Honor
7295 TODO_do_not_ggc_collect.
7296 (execute_one_pass): Likewise.
7299 2013-04-10 Richard Biener <rguenther@suse.de>
7301 * passes.c (init_optimization_passes): Remove reload pass.
7302 * ira.c (do_reload): Merge into ...
7304 (rest_of_handle_reload): Remove.
7305 (pass_reload): Likewise.
7306 * config/i386/i386.c (ix86_option_override): Refer to ira instead
7307 of reload for vzeroupper pass placement.
7309 2013-04-12 Jakub Jelinek <jakub@redhat.com>
7311 PR tree-optimization/56918
7312 PR tree-optimization/56920
7313 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
7314 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
7315 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
7316 use wide_mul_with_sign method.
7318 2013-04-12 Richard Biener <rguenther@suse.de>
7320 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
7321 not be considered a gimple constant.
7323 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
7325 * fold-const.c (const_binop): Handle vector shifts by a scalar.
7326 (fold_binary_loc): Call const_binop also for mixed vector-scalar
7329 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
7330 Jakub Jelinek <jakub@redhat.com>
7332 * opts.c: Include diagnostic-color.h.
7333 (common_handle_option): Handle OPT_fdiagnostics_color_.
7334 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
7335 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
7336 (diagnostic-color.o): New.
7337 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
7338 (diagnostic_color_rule): New enum.
7339 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
7340 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
7341 the location string.
7342 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
7343 either NULL, or color kind.
7344 * diagnostic-color.c: New file.
7345 * diagnostic-color.h: New file.
7346 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
7348 * doc/invoke.texi (-fdiagnostics-color): Document.
7349 * pretty-print.h (pp_show_color): Define.
7350 (struct pretty_print_info): Add show_color field.
7351 * diagnostic.c: Include diagnostic-color.h.
7352 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
7353 macros. Colorize error:, warning: etc. strings and also the location
7355 (diagnostic_show_locus): Colorize the caret line.
7356 * pretty-print.c: Include diagnostic-color.h.
7357 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
7358 inside of %< %> quotes or quoted through q format modifier.
7360 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7362 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
7364 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7366 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
7368 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
7371 2013-04-11 Marek Polacek <polacek@redhat.com>
7373 PR tree-optimization/48184
7374 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
7376 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
7378 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
7379 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
7380 (skip_simple_arithmetic): Tidy up.
7381 * tree.h (skip_simple_constant_arithmetic): Declare.
7383 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7385 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
7387 2013-04-11 Richard Biener <rguenther@suse.de>
7389 * tree-vect-loop.c (get_initial_def_for_induction): Properly
7390 generate vector constants.
7392 2013-04-11 Richard Biener <rguenther@suse.de>
7394 PR tree-optimization/56878
7395 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
7396 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
7398 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7399 Prefer to align the DR with the most invariant base address.
7401 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7403 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
7406 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
7408 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
7409 floating-point vector comparisons against 0.
7411 2013-04-11 Jakub Jelinek <jakub@redhat.com>
7413 PR tree-optimization/56899
7414 * fold-const.c (extract_muldiv_1): Apply distributive law
7415 only if TYPE_OVERFLOW_WRAPS (ctype).
7417 2013-04-11 Bin Cheng <bin.cheng@arm.com>
7420 * ira-costs.c (scan_one_insn): Check whether the source rtx of
7421 loading has side effect.
7423 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
7425 * config/sparc/sparc.c: Include tree-pass.h.
7426 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
7427 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
7428 head of file. Change return type. Split off gate function.
7429 (sparc_gate_work_around_errata): New function.
7430 (pass_work_around_errata): New pass definition.
7431 (insert_pass_work_around_errata) New pass insert definition to
7432 insert pass_work_around_errata just after delayed-branch scheduling.
7433 (sparc_option_override): Insert the pass.
7434 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
7436 2013-04-10 David S. Miller <davem@davemloft.net>
7438 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
7439 or -mcpu=hypersparc.
7441 * target.def (cstore_mode): New hook.
7442 * target.h: Include insn-codes.h
7443 * targhooks.c: Likewise.
7444 (default_cstore_mode): New function.
7445 * targhooks.h: Declare it.
7446 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
7447 * doc/tm.texi: Rebuild.
7448 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
7449 target hook, rather than inspecting the insn_data.
7450 * config/sparc/sparc.c (sparc_cstore_mode): New function.
7451 (TARGET_CSTORE_MODE): Redefine.
7452 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
7454 * config/sparc/predicates.md (cstore_result_operand): New special
7456 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
7457 Use it for operand 0.
7458 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
7459 (*snesi_special): Likewise.
7460 (*snesi_zero): Likewise.
7461 (*seqsi_zero): Likewise.
7462 (*sltu_insn): Likewise.
7463 (*sgeu_insn): Likewise.
7464 (*seqdi_special): Make operand 0 and comparison operation be of
7466 (*snedi_special): Likewise.
7467 (*snedi_special_vis3): Likewise.
7468 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
7469 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
7470 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
7471 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
7472 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
7473 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
7474 (*sltu_extend_sp64): Likewise.
7475 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
7476 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
7477 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
7478 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
7479 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
7481 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
7483 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
7484 (aarch64_start_file): Use the new function.
7486 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7487 Jason Merrill <jason@redhat.com>
7489 * common.opt: Add -gdwarf.
7490 * opts.c (common_handle_option): Handle it.
7491 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
7493 2013-04-10 Richard Biener <rguenther@suse.de>
7495 * passes.c (execute_todo): Do not call ggc_collect conditional here.
7496 (execute_one_ipa_transform_pass): But unconditionally here.
7497 (execute_one_pass): And here.
7498 (init_optimization_passes): Remove reload pass.
7499 * tree-pass.h (TODO_ggc_collect): Remove.
7500 (pass_reload): Likewise.
7501 * ira.c (do_reload): Merge into ...
7503 (rest_of_handle_reload): Remove.
7504 (pass_reload): Likewise.
7505 * config/i386/i386.c (ix86_option_override): Refer to ira instead
7506 of reload for vzeroupper pass placement.
7507 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
7508 and todo_flags_finish of all passes.
7510 2013-04-10 Richard Biener <rguenther@suse.de>
7512 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
7513 first_const_oprnd field, rename first_def_type to first_op_type.
7514 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
7515 (vect_get_and_check_slp_defs): Always use the type of the
7516 operand. Allow mixed vect_external_def, vect_constant_def types.
7517 (vect_get_constant_vectors): Handle mixed vect_external_def,
7518 vect_constant_def types.
7520 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
7522 PR tree-optimization/55524
7523 * tree-ssa-math-opts.c
7524 (convert_mult_to_fma): Don't use an fms construct
7525 when we don't have an fms operation, but fnma, and it looks
7526 likely that we'll be able to use the latter.
7528 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
7530 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
7532 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
7533 inline fail caused by overwritable functions.
7535 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
7537 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
7538 unnecessary bits in the constant power of two case.
7540 2013-04-10 Richard Biener <rguenther@suse.de>
7542 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
7543 broken code swapping operands.
7544 (vect_build_slp_tree): Do not compute load permutations here.
7545 (vect_analyze_slp_instance): Compute load permutations here,
7546 after building the SLP tree.
7548 2013-04-09 Christian Bruel <christian.bruel@st.com>
7550 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
7551 of next/prev_real_insn.
7553 2013-04-09 Jan Hubicka <jh@suse.cz>
7555 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
7556 Drop aliased parameter.
7557 (function_and_variable_visibility): Do not handle alias pairs.
7558 * cgraph.c (varpool_externally_visible_p): Update prototype.
7559 * varpool.c (varpool_add_new_variable): Update.
7561 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7563 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
7565 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
7567 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
7569 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
7571 2013-04-09 Marek Polacek <polacek@redhat.com>
7573 PR tree-optimization/48762
7574 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
7576 2013-04-09 Richard Biener <rguenther@suse.de>
7578 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
7580 (vect_build_slp_tree): Likewise.
7581 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
7582 calculating the cost of a SLP instance.
7583 (vect_analyze_slp_instance): Use it from here, after building
7586 2013-04-09 Jakub Jelinek <jakub@redhat.com>
7589 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
7590 expand_omp_for_static_chunk): Use simple_p = true in
7591 force_gimple_operand_gsi calls when assigning to addressable decls.
7593 2013-04-09 Jeff Law <law@redhat.com>
7595 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
7596 when the boolean was created by converting a wider object which
7597 had a boolean range.
7599 2013-04-09 Richard Biener <rguenther@suse.de>
7601 * tree-vectorizer.h (slp_void_p): Remove.
7602 (slp_tree): Typedef before _slp_tree declaration.
7603 (struct _slp_tree): Use a vector of slp_tree as children.
7604 (vect_get_place_in_interleaving_chain): Remove.
7605 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
7607 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
7609 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
7610 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
7611 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
7612 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
7613 Use slp_node instead of slp_void_p and adjust.
7615 2013-04-09 Richard Biener <rguenther@suse.de>
7617 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
7618 work that is not necessary.
7620 2013-04-09 Jakub Jelinek <jakub@redhat.com>
7622 PR tree-optimization/56854
7623 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
7624 forward into clobber stmts if it would change MEM_REF lhs into
7627 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
7629 * tree.c (type_hash_lookup, type_hash_add): Make static.
7630 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
7632 2013-04-09 Richard Biener <rguenther@suse.de>
7634 * tree.h (unsave_expr_now): Remove.
7635 * tree-inline.c (mark_local_for_remap_r): Remove.
7636 (unsave_expr_1): Likewise.
7637 (unsave_r): Likewise.
7638 (unsave_expr_now): Likewise.
7639 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
7640 (propagate_tree_value): Likewise.
7642 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
7644 * doc/rtl.texi (sequence): Rewrite documentation to match the
7645 current use of SEQUENCE rtl objects.
7646 * rtl.def (SEQUENCE): Likewise.
7648 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
7649 Update documentation.
7650 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
7651 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
7653 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
7655 2013-04-08 Teresa Johnson <tejohnson@google.com>
7657 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
7658 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
7660 (estimate_edge_size_and_time): Add comment to suggest using rounding
7662 (estimate_node_size_and_time): Ditto.
7663 (remap_edge_change_prob): Use helper rounding divide methods.
7664 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
7665 (gimple_mod_pow2_value_transform): Ditto.
7666 (gimple_mod_subtract_transform): Ditto.
7667 (gimple_ic_transform): Ditto.
7668 (gimple_stringops_transform): Ditto.
7669 * stmt.c (conditional_probability): Ditto.
7670 (emit_case_dispatch_table): Ditto.
7671 * lto-cgraph.c (merge_profile_summaries): Ditto.
7672 * tree-optimize.c (execute_fixup_cfg): Ditto.
7673 * cfgcleanup.c (try_forward_edges): Ditto.
7674 * cfgloopmanip.c (scale_loop_profile): Ditto.
7676 (duplicate_loop_to_header_edge): Ditto.
7677 (lv_adjust_loop_entry_edge): Ditto.
7678 * tree-vect-loop.c (vect_transform_loop): Ditto.
7679 * profile.c (compute_branch_probabilities): Ditto.
7680 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
7681 * lto-streamer-in.c (input_cfg): Ditto.
7682 * gimple-streamer-in.c (input_bb): Ditto.
7683 * ipa-cp.c (update_profiling_info): Ditto.
7684 (update_specialized_profile): Ditto.
7685 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
7686 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
7688 * sched-rgn.c (compute_dom_prob_ps): Ditto.
7689 (compute_trg_info): Ditto.
7690 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
7691 (purge_dead_edges): Ditto.
7692 * loop-unswitch.c (unswitch_loop): Ditto.
7693 * cgraphclones.c (cgraph_clone_edge): Ditto.
7694 (cgraph_clone_node): Ditto.
7695 * tree-inline.c (copy_bb): Ditto.
7696 (copy_edges_for_bb): Ditto.
7697 (initialize_cfun): Ditto.
7698 (copy_cfg_body): Ditto.
7699 (expand_call_inline): Ditto.
7701 2013-04-08 Kai Tietz <ktietz@redhat.com>
7703 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
7704 TARGET_CYGWIN64 by TARGET_64BIT.
7706 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
7708 * config/epiphany/epiphany.md (GPR_1): New constant.
7709 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
7710 * config/epiphany/epiphany.c (gen_compare_reg):
7711 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
7712 is already in place.
7713 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
7714 Don't require being called during rtl expansion; If y operlaps r0,
7716 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
7717 (epiphany_expand_epilogue): Likewise.
7719 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
7720 Don't use CC_FPmode for ORDERED / UNORDERED.
7721 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
7723 * config/epiphany/constraints.md (CnL): New constraint.
7724 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
7725 * config/epiphany/predicates.md (add_operand): Allow 1024.
7727 * config/epiphany/epiphany.md (logical_op): New code iterator.
7728 (op_mnc): New code attribute.
7729 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
7730 (mov_f+1, mov_f+2): New peephole2 patterns.
7732 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
7733 (cstoresi4): Also allow re-use of zero result when doing a NE
7734 comparison to a non-zero operand.
7735 Use (clobber (scratch)) for first insn if the gpr output is not needed.
7737 * config/epiphany/epiphany.md (<insn_opname>v2si3):
7738 Use gen_addsi3_i / gen_subsi3_i.
7740 2013-04-08 Jakub Jelinek <jakub@redhat.com>
7744 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
7745 contain anything but clobbers, at most one __builtin_stack_restore,
7746 optionally debug stmts and final resx, and if it has at least one
7747 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
7748 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
7749 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
7750 which isn't defaut definition, remove them.
7751 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
7752 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
7753 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
7754 with MEM_REF LHS with SSA_NAME address.
7756 2013-04-08 Jeff Law <law@redhat.com>
7758 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
7760 2013-04-08 Richard Biener <rguenther@suse.de>
7762 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
7764 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
7765 determined vector type.
7766 (vect_analyze_data_refs): Likewise.
7767 (vect_get_new_vect_var): Adjust.
7768 (vect_create_destination_var): Preserve SSA name versions.
7769 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
7770 not dump anything here.
7772 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
7774 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
7775 Add member lr_slot_known.
7776 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
7778 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
7779 Remove code that sets lr_slot_offset according to what a previous
7780 version of epiphany_emit_save_restore used to do.
7781 (epiphany_emit_save_restore): When doing an lr save or restore,
7782 set/verify lr_slot_known and lr_slot_offset.
7784 2013-04-08 Xinyu Qi <xyqi@marvell.com>
7787 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
7790 2013-04-08 Richard Biener <rguenther@suse.de>
7792 * alias.c (find_base_term): Fix thinko in previous change.
7794 2013-04-08 Jakub Jelinek <jakub@redhat.com>
7796 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
7797 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
7798 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
7799 if possible to compute val.
7800 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
7801 For QImode integers don't require anything about precision. Use
7802 const_with_all_bytes_same to find out if the constant doesn't have
7803 repeated bytes in it.
7805 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7807 * config/s390/s390.c (s390_expand_insv): Only accept insertions
7810 2013-04-08 Marek Polacek <polacek@redhat.com>
7812 PR rtl-optimization/48182
7813 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
7816 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7819 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
7820 nuses, make sure we have a label.
7822 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7825 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
7826 (rs6000_emit_swdiv_low_precision): Remove.
7827 (rs6000_emit_swdiv): Rewrite to handle between one and four
7828 iterations of Newton-Raphson generally; modify required number of
7829 iterations for some cases.
7830 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
7832 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
7834 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
7835 set-but-unused variable.
7837 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
7838 basic blocks of released function bodies garbage-collectable.
7840 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
7841 (struct rtl_opt_pass): Add TODO_df_finish.
7843 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
7845 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7847 * config/arm/constraints.md (q): New constraint.
7848 * config/arm/ldrdstrd.md: New file.
7849 * config/arm/arm.md (ldrdstrd.md) New include.
7850 (arm_movdi): Use "q" instead of "r" constraint
7851 for double-word memory access.
7852 (movdf_soft_insn): Likewise.
7853 * config/arm/vfp.md (movdi_vfp): Likewise.
7854 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
7855 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
7856 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
7857 (mem_ok_for_ldrd_strd): Likewise.
7858 (output_move_double): Update assertion.
7860 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7862 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
7864 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7866 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
7867 define_insn_and_split.
7868 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
7870 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7872 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
7873 define_insn_and_split.
7874 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
7875 (shiftsi3_compare): New pattern.
7877 * config/arm/unspecs.md (UNSPEC_RRX): New.
7879 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7881 * config/arm/arm.md (negdi_extendsidi): New pattern.
7882 (negdi_zero_extendsidi): Likewise.
7884 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7886 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
7887 define_insn_and_split.
7888 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
7889 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
7891 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7893 * config/arm/arm.md (arm_subdi3): Convert define_insn into
7894 define_insn_and_split.
7895 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
7896 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
7898 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7900 * config/arm/arm.md (subsi3_carryin): New pattern.
7901 (subsi3_carryin_const): Likewise.
7902 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
7903 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
7905 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7907 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
7909 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7911 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
7912 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
7914 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7916 * config/arm/arm.c (arm_expand_builtin): Change fcode
7917 type to unsigned int.
7919 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7921 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
7923 2013-04-04 Ian Lance Taylor <iant@google.com>
7925 * doc/standards.texi (Standards): The Go frontend supports the Go 1
7928 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
7931 * df-scan.c (df_insn_delete): Disable failing assert.
7933 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7935 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
7936 New function prototype.
7937 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
7938 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
7939 (arm_builtin_vectorized_function): New function.
7941 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7943 * config/arm/arm_neon_builtins.def: New file.
7944 * config/arm/arm.c (neon_builtin_data): Move contents to
7945 arm_neon_builtins.def.
7946 (enum arm_builtins): Include neon builtin definitions.
7947 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
7948 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
7950 2013-04-04 Marek Polacek <polacek@redhat.com>
7952 PR tree-optimization/48186
7953 * predict.c (maybe_hot_frequency_p): Return false if
7954 HOT_BB_FREQUENCY_FRACTION is 0.
7955 (cgraph_maybe_hot_edge_p): Likewise.
7957 2013-04-04 Richard Biener <rguenther@suse.de>
7959 PR tree-optimization/56826
7960 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
7963 2013-04-04 Richard Biener <rguenther@suse.de>
7965 PR tree-optimization/56213
7966 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
7967 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
7969 2013-04-04 Richard Biener <rguenther@suse.de>
7971 PR tree-optimization/56837
7972 * tree-loop-distribution.c (classify_partition): For non-zero
7973 values require that the value has the same precision as its
7974 mode to be useful as memset value.
7976 2013-04-03 Nick Clifton <nickc@redhat.com>
7978 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
7979 (fmssf4): Use fmsf.s on E3V5 architectures.
7980 (fnmasf4): Use fnmaf.s on E3V5 architectures.
7981 (fnmssf4): Use fnmsf.s on E3V5 architectures.
7983 2013-04-03 Jeff Law <law@redhat.com>
7985 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
7986 (lra-eliminations.o): Likewise.
7988 2013-04-03 Teresa Johnson <tejohnson@google.com>
7990 * gcov-io.c (compute_working_sets): Moved most of body of old
7991 compute_working_sets here from profile.c.
7992 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
7993 (gcov_working_set_t): Moved typedef here from basic-block.h
7994 (compute_working_set): Declare.
7995 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
7996 (get_working_sets): Renamed from compute_working_set,
7997 replace most of body with call to new compute_working_sets.
7998 (get_exec_counts): Replace call to compute_working_sets
7999 to get_working_sets.
8000 * profile.h (get_working_sets): Renamed from compute_working_set.
8001 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
8002 to get_working_sets.
8003 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
8004 * gcov-dump.c (dump_working_sets): New function.
8006 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
8008 * hwint.c (sext_hwi, zext_hwi): New functions.
8009 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
8010 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
8011 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
8012 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
8013 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
8014 (sext_hwi, zext_hwi): New functions.
8016 2013-04-03 Jeff Law <law@redhat.com>
8018 PR tree-optimization/56799
8019 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
8020 back test for widening conversion erroneously dropped in prior change.
8022 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8025 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
8026 instead of next_real_insn.
8028 2013-04-03 Marek Polacek <polacek@redhat.com>
8031 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
8033 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8036 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
8038 (thumb1_output_casesi): Likewise.
8039 (thumb2_output_casesi): Likewise.
8041 2013-04-03 Richard Biener <rguenther@suse.de>
8043 PR tree-optimization/56817
8044 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
8046 (tree_unroll_loops_completely_1): ... new function to manually
8047 walk the loop tree, properly defering outer loops of unrolled
8048 loops to later iterations.
8050 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
8052 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
8053 (vectorizable_load): Likewise.
8054 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
8055 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
8057 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
8059 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
8062 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8064 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
8066 2013-04-03 Bin Cheng <bin.cheng@arm.com>
8068 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
8070 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
8072 PR tree-optimization/56790
8073 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
8076 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
8078 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
8080 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
8081 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
8084 2013-04-03 Jakub Jelinek <jakub@redhat.com>
8087 * tree.h (force_folding_builtin_constant_p): New decl.
8088 * builtins.c (force_folding_builtin_constant_p): New variable.
8089 (fold_builtin_constant_p): Fold immediately also if
8090 force_folding_builtin_constant_p.
8092 2013-04-03 Richard Biener <rguenther@suse.de>
8094 PR tree-optimization/56812
8095 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
8096 DRs of the same interleaving chain are independent.
8098 2013-04-02 Jason Merrill <jason@redhat.com>
8100 * gdbinit.in (pbb): Use debug fn.
8102 2013-04-02 Lawrence Crowl <crowl@google.com>
8104 * sese.h (struct ivtype_map_elt_s): Remove unused.
8105 (extern debug_ivtype_map): Remove unused.
8106 (extern eq_ivtype_map_elts): Remove unused.
8107 * sese.c (debug_ivtype_map): Removed unused.
8108 (debug_ivtype_map_1): Removed unused.
8109 (debug_ivtype_elt): Remove unused.
8110 (eq_ivtype_map_elts): Remove unused.
8113 2013-04-02 Kai Tietz <ktietz@redhat.com>
8116 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
8117 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
8118 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
8120 (legitimize_pe_coff_symbol): Likewise.
8121 (is_imported_p): New helper-function.
8122 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
8123 for Windows x64 targets.
8124 (ix86_expand_prologue): Optimize for pe-coff targets.
8125 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
8126 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
8127 medium/large code-model.
8128 (legitimize_pic_address): Likewise.
8129 (legitimize_tls_address): Likewise.
8130 (ix86_expand_call): Likewise.
8131 (x86_output_mi_thunk): Likewise.
8132 (get_dllimport_decl): Add new beimport argument.
8133 (construct_plt_address): Don't assert for x64 pe-coff targets.
8134 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
8136 (SYMBOL_FLAG_STUBVAR): New macro.
8137 (SYMBOL_REF_STUBVAR_P): Likewise.
8138 * config/i386/winnt.c (stub_list): New structure.
8139 (stub_head): New local variable.
8140 (i386_pe_record_stub): New function.
8141 (i386_pe_file_end): Emit refptr-stubs.
8143 2013-04-02 Jakub Jelinek <jakub@redhat.com>
8145 PR rtl-optimization/56745
8146 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
8147 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
8150 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
8151 and both of them are MEM_REFs, just compare first argument for
8152 equality and attempt to deal even with differing offsets.
8155 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
8156 of gimple_clobber_p to be MEM_REF.
8157 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
8158 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
8159 after gimplification.
8160 * asan.c (get_mem_ref_of_assignment): Don't instrument
8161 gimple_clobber_p stmts.
8162 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
8163 gimple_clobber_p stmt if they have MEM_REF lhs and
8164 are dead because of another gimple_clobber_p stmt.
8165 * tree-ssa-live.c (clear_unused_block_pointer): Treat
8166 gimple_clobber_p stmts like debug stmts.
8167 (remove_unused_locals): Remove clobbers with MEM_REF lhs
8168 that refer to unused VAR_DECLs or uninitialized values.
8169 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
8170 gimple_clobber_p stmts if they refer to removed parameters.
8171 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
8174 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
8176 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
8177 using SWI48 mode attribute.
8179 2013-04-02 Wei Mi <wmi@google.com>
8181 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
8182 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
8183 *<rotate_insn><mode>3_mask in i386.md.
8185 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
8187 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
8189 2013-04-02 Richard Biener <rguenther@suse.de>
8191 PR tree-optimization/56778
8192 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
8193 Runtime alias tests are not supported for gather loads.
8194 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
8195 stmts referenced from SSA operands before updating SSA form.
8197 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
8198 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8200 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
8201 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
8202 * config/arm/cortex-a53.md: New file.
8203 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
8204 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
8205 * config/arm/arm.c (arm_issue_rate): Likewise.
8206 * config/arm/arm-tune.md: Regenerate
8207 * config/arm/arm-tables.opt: Regenerate.
8208 * config/arm/arm-cores.def: Add cortex-a53.
8210 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
8212 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
8215 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
8217 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
8218 scalar load/store operations using B/H registers.
8219 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
8221 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
8223 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
8225 * config/aarch64/aarch64.c
8226 (aarch64_simd_scalar_immediate_valid_for_move): New.
8227 * config/aarch64/aarch64-protos.h
8228 (aarch64_simd_scalar_immediate_valid_for_move): New.
8229 * config/aarch64/constraints.md (Dh, Dq): New.
8230 * config/aarch64/iterators.md (hq): New.
8232 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
8234 * reorg.c (get_branch_condition): Deal with conditional returns.
8235 (fill_simple_delay_slots): Remove dead code dealing with jumps.
8237 2013-04-01 Wei Mi <wmi@google.com>
8239 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
8240 Truncate operand 2 using %b asm operand modifier.
8241 (*<shift_insn><mode>3_mask): Ditto.
8242 (*<rotate_insn><mode>3_mask): Ditto.
8244 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
8247 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
8249 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
8251 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
8253 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
8255 2013-03-30 Lawrence Crowl <crowl@google.com>
8257 * dse.c (clear_alias_sets): Remove never set.
8258 (disqualified_clear_alias_sets): Remove never set.
8259 (clear_alias_mode_pool): Remove never set.
8260 (dse_step0): Remove condition that is never true.
8261 (canon_address): Remove condition that is never true.
8262 (dse_step7): Remove condition that is never true.
8263 (rest_of_handle_dse): Remove condition that is never true.
8264 (rest_of_handle_dse::did_global): Remove never read from above.
8265 (dse_step2_spill): Remove never called from above.
8266 (dse_step5_spill): Remove never called from above.
8268 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
8270 * doc/md.texi (Standard Names) <casesi>: Update documentation for
8271 JUMP_TABLE_DATA changes.
8272 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
8273 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
8274 (Insns) <jump_table_data>: New entry.
8275 * doc/tm.texi: Regenerate.
8277 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
8279 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
8280 for table jump at the end of a basic block using tablejump_p.
8281 * targhooks.c (default_invalid_within_doloop): Likewise.
8282 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
8283 target hook implementation that is identical to the default hook.
8284 (rs6000_invalid_within_doloop): Remove.
8286 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
8287 unused variable from tablejump_p call.
8289 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
8290 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
8291 (INSN_DELETED_P): Likewise.
8292 (emit_jump_table_data): New prototype.
8293 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
8294 after 4th as unused.
8295 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
8296 * sched-vis.c (print_insn): Likewise.
8297 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
8298 insn for compatibility with back ends that use next_active_insn to
8299 identify jump table data.
8300 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
8301 (remove_insn): Likewise.
8302 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
8304 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
8305 (emit_jump_table_data): New function.
8307 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
8308 basic block, a JUMP_TABLE_DATA never is.
8309 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
8310 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
8311 off from code handling real insns.
8312 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
8313 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
8314 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
8315 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
8316 is not a NONDEBUG_INSN_P.
8317 * ira-costs.c (scan_one_insn): Likewise.
8318 * jump.c (mark_all_labels): Likewise.
8319 (mark_jump_label_1): Likewise.
8320 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
8321 * lra.c (get_insn_freq): Expect all insns reaching here to be in
8323 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
8324 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
8325 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
8326 JUMP_TABLE_DATA_P insns.
8327 (calculate_elim_costs_all_insns): Likewise.
8328 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
8329 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
8330 (delete_output_reload): Code style fixups.
8331 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
8332 insn flags on this non-insn.
8333 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
8334 as scheduling barriers, for pre-change compatibility.
8335 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
8336 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
8338 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
8339 redundant JUMP_TABLE_DATA_P test.
8340 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
8341 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
8342 (frv_for_each_packet): Likewise.
8343 * config/i386/i386.c (min_insn_size): Likewise.
8344 (ix86_avoid_jump_mispredicts): Likewise.
8345 * config/m32r/m32r.c (m32r_is_insn): Likewise.
8346 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
8347 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
8348 (mips16_insn_length): Robustify.
8349 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
8350 (mips16_split_long_branches): Likewise.
8351 * config/pa/pa.c (pa_combine_instructions): Likewise.
8352 * config/rs6000/rs6000.c (get_next_active_insn): Treat
8353 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
8354 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
8355 as contributing to pool range lengths.
8356 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
8357 Remove redundant JUMP_TABLE_DATA_P test.
8358 (sh_loop_align): Likewise.
8359 (split_branches): Likewise.
8360 (sh_insn_length_adjustment): Likewise.
8361 * config/spu/spu.c (get_branch_target): Likewise.
8363 2013-03-29 Jan Hubicka <jh@suse.cz>
8365 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
8366 gcov streaming; stream hot bb threshold to ltrans.
8367 * predict.c (get_hot_bb_threshold): Break out from ....
8368 (maybe_hot_count_p): ... here.
8369 (set_hot_bb_threshold): New function.
8370 * lto-section-in.c (lto_section_name): Add profile.
8371 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
8372 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
8374 (histogram_entry): New structure.
8375 (histogram, histogram_pool): New global vars.
8376 (histogram_hash): New structure.
8377 (histogram_hash::hash): New method.
8378 (histogram_hash::equal): Likewise.
8379 (account_time_size): New function.
8380 (cmp_counts): New function.
8381 (dump_histogram): New function.
8382 (ipa_profile_generate_summary): New function.
8383 (ipa_profile_write_summary): New function.
8384 (ipa_profile_read_summary): New function.
8385 (ipa_profile): Decide on threshold.
8386 (pass_ipa_profile): Add ipa_profile_write_summary and
8387 ipa_profile_read_summary.
8388 * Makefile.in (ipa.o): Update dependencies.
8389 * lto-streamer.h (LTO_section_ipa_profile): New section.
8391 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
8393 * tree.h (VAR_P): New.
8395 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
8398 * doc/invoke.texi ([-fwhole-program]): Fix typo.
8400 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
8402 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
8403 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
8404 (control_flow_insn_p): Likewise.
8405 * cfgrtl.c (duplicate_insn_chain): Likewise.
8406 * final.c (get_attr_length_1): Likewise.
8407 (shorten_branches): Likewise.
8408 (final_scan_insn): Likewise.
8409 * function.c (instantiate_virtual_regs): Likewise.
8410 * gcse.c (insert_insn_end_basic_block): Likewise.
8411 * ira-costs.c (scan_one_insn): Likewise.
8412 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
8413 * lra.c (check_rtl): Likewise.
8414 * reload1.c (elimination_costs_in_insn): Likewise.
8415 * reorg.c (follow_jumps): Likewise.
8417 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
8418 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
8419 (thumb_far_jump_used_p): Likewise.
8420 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
8421 (workaround_speculation): Likewise.
8422 (add_sched_insns_for_speculation): Likewise.
8423 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
8424 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
8425 (frv_for_each_packet): Likewise.
8426 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
8427 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
8428 (final_emit_insn_group_barriers): Likewise.
8429 * config/m32r/m32r.c (m32r_is_insn): Likewise.
8430 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
8431 (mips16_insn_length): Likewise.
8432 * config/pa/pa.c (pa_reorg): Likewise.
8433 (pa_combine_instructions): Likewise.
8434 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
8435 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
8436 (sh_reorg): Likewise.
8437 (split_branches): Likewise.
8438 * config/spu/spu.c (get_branch_target): Likewise.
8440 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
8443 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
8445 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
8446 Fix declaration name.
8448 2013-03-28 Lawrence Crowl <crowl@google.com>
8450 * graphds.h (struct graph.indicies): Remove unused.
8451 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
8452 (SCOP_ORIGINAL_PDDRS): Remove unused.
8453 * sese.h (extern insert_loop_close_phis): Removed unused.
8454 (extern insert_guard_phis): Removed unused.
8455 (extern ivtype_map_elt_info): Removed unused.
8456 (new_ivtype_map_elt): Removed unused.
8457 * sese.c (ivtype_map_elt_info): Removed unused.
8459 2013-03-28 Lawrence Crowl <crowl@google.com>
8461 * Makefile.in: Add several missing include dependences.
8463 (test-dump.o): New. This object is not added to any executable,
8464 but is present for ad-hoc testing.
8466 (debug (const bitmap_head_def &)): New.
8467 (debug (const bitmap_head_def *)): New.
8469 (extern debug (const bitmap_head_def &)): New.
8470 (extern debug (const bitmap_head_def *)): New.
8472 (debug (edge_def &)): New.
8473 (debug (edge_def *)): New.
8475 (debug (basic_block_def &)): New.
8476 (debug (basic_block_def *)): New.
8478 (dump_node (const_tree, int, FILE *)): Correct source file.
8480 (debug (die_struct &)): New.
8481 (debug (die_struct *)): New.
8483 (extern debug (die_struct &)): New.
8484 (extern debug (die_struct *)): New.
8485 * gimple-pretty-print.c
8486 (debug (gimple_statement_d &)): New.
8487 (debug (gimple_statement_d *)): New.
8488 * gimple-pretty-print.h
8489 (extern debug (gimple_statement_d &)): New.
8490 (extern debug (gimple_statement_d *)): New.
8492 (debug (ira_allocno_copy &)): New.
8493 (debug (ira_allocno_copy *)): New.
8494 (debug (ira_allocno &)): New.
8495 (debug (ira_allocno *)): New.
8497 (extern debug (ira_allocno_copy &)): New.
8498 (extern debug (ira_allocno_copy *)): New.
8499 (extern debug (ira_allocno &)): New.
8500 (extern debug (ira_allocno *)): New.
8502 (debug (live_range &)): New.
8503 (debug (live_range *)): New.
8505 (debug (lra_live_range &)): New.
8506 (debug (lra_live_range *)): New.
8508 (debug (lra_live_range &)): New.
8509 (debug (lra_live_range *)): New.
8511 (debug (omega_pb_d &)): New.
8512 (debug (omega_pb_d *)): New.
8514 (extern debug (omega_pb_d &)): New.
8515 (extern debug (omega_pb_d *)): New.
8517 (debug (const rtx_def &)): New.
8518 (debug (const rtx_def *)): New.
8520 (debug_tree (tree): Move within file.
8521 (debug_raw (const tree_node &)): New.
8522 (debug_raw (const tree_node *)): New.
8523 (dump_tree_via_hooks (const tree_node *, int)): New.
8524 (debug (const tree_node &)): New.
8525 (debug (const tree_node *)): New.
8526 (debug_verbose (const tree_node &)): New.
8527 (debug_verbose (const tree_node *)): New.
8528 (debug_head (const tree_node &)): New.
8529 (debug_head (const tree_node *)): New.
8530 (debug_body (const tree_node &)): New.
8531 (debug_body (const tree_node *)): New.
8532 (debug_vec_tree (tree): Move and reimplement in terms of dump.
8533 (debug (vec<tree, va_gc> &)): New.
8534 (debug (vec<tree, va_gc> *)): New.
8536 (extern debug (const rtx_def &)): New.
8537 (extern debug (const rtx_def *)): New.
8539 (debug_raw (simple_bitmap_def &)): New.
8540 (debug_raw (simple_bitmap_def *)): New.
8541 (debug (simple_bitmap_def &)): New.
8542 (debug (simple_bitmap_def *)): New.
8544 (extern debug (simple_bitmap_def &)): New.
8545 (extern debug (simple_bitmap_def *)): New.
8546 (extern debug_raw (simple_bitmap_def &)): New.
8547 (extern debug_raw (simple_bitmap_def *)): New.
8549 (debug (vinsn_def &)): New.
8550 (debug (vinsn_def *)): New.
8551 (debug_verbose (vinsn_def &)): New.
8552 (debug_verbose (vinsn_def *)): New.
8553 (debug (expr_def &)): New.
8554 (debug (expr_def *)): New.
8555 (debug_verbose (expr_def &)): New.
8556 (debug_verbose (expr_def *)): New.
8557 (debug (vec<rtx> &)): New.
8558 (debug (vec<rtx> *)): New.
8560 (extern debug (vinsn_def &)): New.
8561 (extern debug (vinsn_def *)): New.
8562 (extern debug_verbose (vinsn_def &)): New.
8563 (extern debug_verbose (vinsn_def *)): New.
8564 (extern debug (expr_def &)): New.
8565 (extern debug (expr_def *)): New.
8566 (extern debug_verbose (expr_def &)): New.
8567 (extern debug_verbose (expr_def *)): New.
8568 (extern debug (vec<rtx> &)): New.
8569 (extern debug (vec<rtx> *)): New.
8571 (_list_iter_cond_expr): Make inline instead of static.
8573 (debug (sreal &)): New.
8574 (debug (sreal *)): New.
8576 (extern debug (sreal &)): New.
8577 (extern debug (sreal *)): New.
8579 (extern debug_raw (const tree_node &)): New.
8580 (extern debug_raw (const tree_node *)): New.
8581 (extern debug (const tree_node &)): New.
8582 (extern debug (const tree_node *)): New.
8583 (extern debug_verbose (const tree_node &)): New.
8584 (extern debug_verbose (const tree_node *)): New.
8585 (extern debug_head (const tree_node &)): New.
8586 (extern debug_head (const tree_node *)): New.
8587 (extern debug_body (const tree_node &)): New.
8588 (extern debug_body (const tree_node *)): New.
8589 (extern debug (vec<tree, va_gc> &)): New.
8590 (extern debug (vec<tree, va_gc> *)): New.
8592 (debug (struct loop &)): New.
8593 (debug (struct loop *)): New.
8594 (debug_verbose (struct loop &)): New.
8595 (debug_verbose (struct loop *)): New.
8596 * tree-dump.c: Add header dependence.
8598 (extern debug (struct loop &)): New.
8599 (extern debug (struct loop *)): New.
8600 (extern debug_verbose (struct loop &)): New.
8601 (extern debug_verbose (struct loop *)): New.
8603 (debug (data_reference &)): New.
8604 (debug (data_reference *)): New.
8605 (debug (vec<data_reference_p> &)): New.
8606 (debug (vec<data_reference_p> *)): New.
8607 (debug (vec<ddr_p> &)): New.
8608 (debug (vec<ddr_p> *)): New.
8610 (extern debug (data_reference &)): New.
8611 (extern debug (data_reference *)): New.
8612 (extern debug (vec<data_reference_p> &)): New.
8613 (extern debug (vec<data_reference_p> *)): New.
8614 (extern debug (vec<ddr_p> &)): New.
8615 (extern debug (vec<ddr_p> *)): New.
8617 (debug (pt_solution &)): New.
8618 (debug (pt_solution *)): New.
8620 (extern debug (pt_solution &)): New.
8621 (extern debug (pt_solution *)): New.
8623 (debug (_var_map &)): New.
8624 (debug (_var_map *)): New.
8625 (debug (tree_live_info_d &)): New.
8626 (debug (tree_live_info_d *)): New.
8628 (extern debug (_var_map &)): New.
8629 (extern debug (_var_map *)): New.
8630 (extern debug (tree_live_info_d &)): New.
8631 (extern debug (tree_live_info_d *)): New.
8633 2013-03-28 Jan Hubicka <jh@suse.cz>
8635 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
8637 2013-03-28 Ian Bolton <ian.bolton@arm.com>
8639 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
8640 record only when desired or required.
8642 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
8644 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
8645 *vec_extractv2di_1_rex64. Use x64 isa attribute.
8647 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8649 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
8650 (*andsi3_compare0_uxtw): New pattern.
8651 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
8652 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
8654 2013-03-28 Jan Hubicka <jh@suse.cz>
8656 * data-streamer-in.c (streamer_read_gcov_count): New function.
8657 * gimple-streamer-out.c: Include value-prof.h.
8658 (output_gimple_stmt): Output histogram.
8659 (output_bb): Use streamer_write_gcov_count.
8660 * value-prof.c: Include data-streamer.h
8661 (dump_histogram_value): Add HIST_TYPE_MAX.
8662 (stream_out_histogram_value): New function.
8663 (stream_in_histogram_value): New function.
8664 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
8665 (stream_out_histogram_value, stream_in_histogram_value): Declare.
8666 * data-streamer-out.c (streamer_write_gcov_count): New function.
8667 (streamer_write_gcov_count_stream): New function.
8668 * lto-cgraph.c (lto_output_edge): Update counter streaming.
8669 (lto_output_node): Likewise.
8670 (input_node, input_edge): Likewise.
8671 * lto-streamer-out.c (output_cfg): Update streaming.
8672 * lto-streamer-in.c (input_cfg): Likewise.
8673 * data-streamer.h (streamer_write_gcov_count,
8674 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
8675 * gimple-streamer-in.c: Include value-prof.h
8676 (input_gimple_stmt): Input histograms.
8677 (input_bb): Update profile streaming.
8679 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8681 * genmodes.c (emit_max_int): New function.
8682 (emit_insn_modes_h): Added call to emit_max_function.
8683 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
8685 * machmode.def: Fixed comment.
8687 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8689 * combine.c (try_combine): Removed useless assert.
8690 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
8692 2013-03-28 Marek Polacek <polacek@redhat.com>
8693 Richard Biener <rguenther@suse.de>
8695 PR tree-optimization/56695
8696 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
8697 build signed result of a vector comparison.
8698 * tree-cfg.c (verify_gimple_comparison): Check that a result
8699 of a vector comparison has signed type.
8701 2013-03-28 Richard Biener <rguenther@suse.de>
8703 PR tree-optimization/37021
8704 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
8705 do not restrict gaps between groups.
8706 * tree-vect-stmts.c (vectorizable_load): Properly account for
8707 a gap between groups.
8709 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
8711 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
8712 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
8715 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
8717 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
8718 * doc/extend.texi (Named Address Spaces): Ditto.
8719 (Variable Attributes): Ditto.
8721 2013-03-27 Kai Tietz <ktietz@redhat.com>
8723 * config.build: Add support for cygwin x64 target.
8724 * config.gcc: Likewise.
8725 * config.host: Likewise.
8726 * configure.ac: Likewise
8727 * configure: Regenerated.
8729 2013-03-27 Kai Tietz <ktietz@redhat.com>
8731 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
8732 * config/i386/t-cygwin-w64: New file.
8733 * config/i386/cygwin-w64.h: New file.
8734 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
8735 and add support for x64-cygwin target.
8736 (CPP_SPEC): Likewise.
8737 (CXX_WRAP_SPEC_LIST): Undefine before define.
8738 (LIBGCJ_SONAME): Use 15 as version.
8740 2013-03-27 Richard Biener <rguenther@suse.de>
8742 PR tree-optimization/56716
8743 * tree-ssa-structalias.c (perform_var_substitution): Adjust
8744 dumping for ref nodes.
8746 2013-03-27 Martin Jambor <mjambor@suse.cz>
8748 PR tree-optimization/55334
8749 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
8750 restricted pointers to arrays.
8752 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
8754 * Makefile.in (.SUFFIXES): Add .cc.
8755 (.c.o): Apply same recipe for implicit rule .cc.o.
8757 2013-03-27 Richard Biener <rguenther@suse.de>
8759 PR tree-optimization/37021
8760 * tree-vect-data-refs.c (vect_check_strided_load): Allow
8761 REALPART/IMAGPART_EXPRs around the supported refs.
8762 * tree-ssa-structalias.c (find_func_aliases): Assume that
8763 floating-point values are not used to transfer pointers.
8765 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
8767 * target.def (TARGET_HAS_IFUNC_P): New target hook.
8768 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
8769 * doc/tm.texi: Regenerate.
8770 * targhooks.h (default_has_ifunc_p): New.
8771 * targhooks.c (default_has_ifunc_p): Ditto.
8772 * config/linux-protos.h: New file.
8773 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
8774 this hook for linux which disables support of indirect functions in
8776 * config/linux-android.c: New file.
8777 * config/t-linux-android.c: Ditto.
8778 * config.gcc: Added new object file linux-android.o.
8779 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
8780 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
8781 * varasm.c (do_assemble_alias): Likewise.
8782 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
8783 doesn't support indirect functions.
8784 * configure: Regenerate.
8786 2013-03-27 Bin Cheng <bin.cheng@arm.com>
8789 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
8790 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
8793 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8795 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
8797 2013-03-27 Terry Guo <terry.guo@arm.com>
8799 * config/arm/arm-cores.def: Added core cortex-r7.
8800 * config/arm/arm-tune.md: Regenerated.
8801 * config/arm/arm-tables.opt: Regenerated.
8802 * doc/invoke.texi: Added entry for core cortex-r7.
8804 2013-03-27 Walter Lee <walt@tilera.com>
8806 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
8807 double-decrement of next_scratch_regno.
8809 2013-03-27 Walter Lee <walt@tilera.com>
8811 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
8813 (insn_v1mulus): Ditto.
8814 (insn_v2muls): Ditto.
8816 2013-03-27 Walter Lee <walt@tilera.com>
8818 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
8819 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
8821 2013-03-27 Walter Lee <walt@tilera.com>
8823 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
8824 (*sibcall_value): Ditto.
8826 2013-03-27 Walter Lee <walt@tilera.com>
8828 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
8829 (insn_mnz_v8qi): ... this ...
8830 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
8832 (insn_v<n>mnz): Replaced by ...
8833 (insn_v1mnz): ... this ...
8834 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
8836 (insn_mz_<mode>): Replaced by ...
8837 (insn_mz_v8qi): ... this ...
8838 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
8840 (insn_v<n>mz): Replaced by ...
8841 (insn_v1mz): ... this ...
8842 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
8845 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
8847 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
8849 2013-03-26 Roland McGrath <mcgrathr@google.com>
8851 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
8852 than fprintf with a non-constant, non-format string.
8854 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
8856 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
8857 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
8858 operand 0 predicate.
8859 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
8860 attribute. Use general_x64nomem_operand as operand 1 predicate.
8861 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
8862 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
8863 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
8864 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
8865 (mov<mode>_insv_1): Remove expander. Merge insn with
8866 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
8867 Use general_x64nomem_operand as operand 1 predicate.
8868 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
8869 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
8870 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
8871 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
8872 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
8873 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
8874 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
8875 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
8876 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
8877 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
8878 (general_x64nomem_operand): Ditto.
8880 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
8882 * config/rtems.opt: Add -pthread option.
8884 2013-03-26 Richard Biener <rguenther@suse.de>
8886 * alias.c (find_base_term): Avoid redundant and not used recursion.
8887 (base_alias_check): Get the initial base term from the caller.
8888 (true_dependence_1): Compute and pass base terms to base_alias_check.
8889 (write_dependence_p): Likewise.
8890 (may_alias_p): Likewise.
8892 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
8894 * config/aarch64/aarch64.c (aarch64_classify_address): Support
8895 PC-relative load in SI modes and above only.
8897 2013-03-26 Xinyu Qi <xyqi@marvell.com>
8899 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
8900 * config/arm/iwmmxt.md (WCGR0): Update.
8901 (WCGR1, WCGR2, WCGR3): Likewise.
8903 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
8905 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
8906 Use x64 and nox64 isa attributes.
8908 2013-03-26 Richard Biener <rguenther@suse.de>
8910 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
8911 alignment computations and rely on get_object_alignment_1
8912 for the !TYPE_P case.
8913 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
8915 2013-03-26 Walter Lee <walt@tilera.com>
8917 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
8918 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
8920 2013-03-25 Jeff Law <law@redhat.com>
8922 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
8923 check for INTEGRAL_TYPE_P that was missing due to checking in
8924 wrong version of prior patch.
8926 2013-03-25 Walter Lee <walt@tilera.com>
8928 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
8929 TILEGX_INSN_SHUFFLEBYTES1.
8930 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
8932 (tilegx_builtins): Ditto.
8933 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
8935 2013-03-25 Walter Lee <walt@tilera.com>
8937 * config/tilegx/tilegx.md (floatsisf2): New pattern.
8938 (floatunssisf2): New pattern.
8939 (floatsidf2): New pattern.
8940 (floatunssidf2): New pattern.
8942 2013-03-25 Walter Lee <walt@tilera.com>
8944 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
8945 tests for constraint J, K, N, P.
8947 2013-03-25 Walter Lee <walt@tilera.com>
8949 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
8950 Use indirect/pcrel encoding.
8951 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
8954 2013-03-25 Steve Ellcey <sellcey@mips.com>
8956 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
8957 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
8958 * config/mips/mips.c (mips_option_override): Set IMADD default.
8959 * config/mips/mips.h (PTF_AVOID_IMADD): New.
8960 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
8961 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
8962 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
8963 * doc/invoke.texi (-mimadd/-mno-imadd): New.
8965 2013-03-25 Jeff Law <law@redhat.com>
8967 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
8968 slightly to avoid creating and folding useless trees. Simplify
8969 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
8971 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
8973 * config/i386/i386.md (*zero_extendsidi2): Merge with
8974 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
8975 * config/i386/predicates.md (x86_64_zext_operand): Rename from
8976 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
8977 targets. Clarify comment.
8979 2013-03-25 Martin Jambor <mjambor@suse.cz>
8981 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
8982 pass-through jump functions differently.
8983 (ipa_read_jump_function): Likewise. Also use setter functions to set
8986 2013-03-25 Martin Jambor <mjambor@suse.cz>
8988 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
8989 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
8991 (ipa_get_indirect_edge_target): New function.
8992 (devirtualization_time_bonus): New parameter known_aggs, pass it to
8993 ipa_get_indirect_edge_target. Update all callers.
8994 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
8995 ipa_get_indirect_edge_target_1 instead of calling
8996 ipa_get_indirect_edge_target.
8997 (create_specialized_node): Pass aggvlas to
8998 ipcp_discover_new_direct_edges.
9000 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9002 * config/arm/arm.md (f_sels, f_seld): New types.
9003 (*cmov<mode>): New pattern.
9004 * config/arm/predicates.md (arm_vsel_comparison_operator): New
9007 2013-03-25 Kai Tietz <ktietz@redhat.com>
9009 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
9010 POSIX-printf for mingw-hosted builds.
9012 2013-03-25 Richard Biener <rguenther@suse.de>
9015 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
9016 must-not-throw stmt location.
9018 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9020 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
9021 Emit load-acquire versions when acq is true.
9022 (arm_emit_store_exclusive): Add rel parameter.
9023 Emit store-release versions when rel is true.
9024 (arm_split_compare_and_swap): Use acquire-release instructions
9026 of barriers when appropriate.
9027 (arm_split_atomic_op): Likewise.
9028 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
9029 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
9030 (VUNSPEC_SLX): Likewise.
9031 (VUNSPEC_LDA): Likewise.
9032 (VUNSPEC_STL): Likewise.
9033 * config/arm/sync.md (atomic_load<mode>): New pattern.
9034 (atomic_store<mode>): Likewise.
9035 (arm_load_acquire_exclusive<mode>): Likewise.
9036 (arm_load_acquire_exclusivesi): Likewise.
9037 (arm_load_acquire_exclusivedi): Likewise.
9038 (arm_store_release_exclusive<mode>): Likewise.
9040 2013-03-25 Catherine Moore <clm@codesourcery.com>
9042 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
9043 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
9044 * config/mip/predicates.md (lwsp_swsp_operand,
9045 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
9046 sb16_operand, db4_operand, db7_operand, ib3_operand,
9047 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
9048 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
9049 andi16_operand): New predicates.
9050 * config/mips/mips.md (compression): New attribute.
9051 (enabled): New attribute.
9052 (length): Consider compression in computing length.
9053 (shift_compression): New code attribute.
9054 (*add<mode>3): New operands. Record compression.
9055 (sub<mode>3): Likewise.
9056 (one_cmpl<mode>2): Likewise.
9057 (*and<mode>3): Likewise.
9058 (*ior<mode>3): Likewise.
9059 (unnamed pattern for xor): Likewise.
9060 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
9061 (*<optab><mode>3): Likewise.
9062 (*mov<mode>_internal: Likewise.
9063 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
9064 (mips_unsigned_immediate_p): New.
9065 (umips_lwsp_swsp_address_p): New.
9066 (m16_based_address_p): New.
9067 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
9068 (mips_unsigned_immediate_p): New prototype.
9069 (lwsp_swsp_address_p): New prototype.
9070 (m16_based_address_p): New prototype.
9071 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
9072 (mips_signed_immediate_p): New function.
9073 (m16_based_address_p): New function.
9074 (lwsp_swsp_address_p): New function.
9075 (mips_print_operand_punctuation): Recognize short delay slot insns
9076 for microMIPS.add<mode>3"
9078 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9081 * config/arm/iterators.md (v_cmp_result): New mode attribute.
9082 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
9084 2013-03-25 Richard Biener <rguenther@suse.de>
9086 PR tree-optimization/56689
9087 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
9090 2013-03-25 Richard Biener <rguenther@suse.de>
9092 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
9094 (memory_references): Likewise.
9095 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
9096 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
9097 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
9098 (gather_mem_refs_in_loops): Fold into ...
9099 (analyze_memory_references): ... this. Move initialization
9100 to tree_ssa_lim_initialize.
9101 (fill_always_executed_in): Rename to ...
9102 (fill_always_executed_in_1): ... this.
9103 (fill_always_executed_in): Move contains_call computation to
9104 this new function from ...
9105 (tree_ssa_lim_initialize): ... here.
9106 (tree_ssa_lim): Call fill_always_executed_in.
9108 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
9110 * postreload.c (reload_combine): Fix code detecting returns.
9112 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
9114 * function.c (emit_use_return_register_into_block): On cc0 targets,
9115 do not emit the sequence between cc0 setter and user.
9117 2013-03-25 Kai Tietz <ktietz@redhat.com>
9119 * config/i386/predicates.md (local_symbolic_operand): Interpret
9120 dll-imported symbols as none-local.
9122 2013-03-25 Richard Biener <rguenther@suse.de>
9124 * tree-ssa-loop-im.c (struct depend): Remove.
9125 (struct lim_aux_data): Make depends a vec of gimples.
9126 (free_lim_aux_data): Adjust.
9127 (add_dependency): Likewise.
9128 (set_level): Likewise.
9130 2013-03-25 Richard Biener <rguenther@suse.de>
9133 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
9134 the pointer returned by calls with ECF_MALLOC set.
9136 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
9138 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
9140 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
9142 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
9143 using MMXMODE mode iterator.
9144 (*move<mode>_internal): Merge with *movv2sf_internal and
9145 *movv2sf_internal_rex64 using MMXMODE mode iterator.
9147 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
9149 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
9150 (record_last_mem_set_info): Likewise.
9152 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
9153 of XNEWVEC followed by memset.
9154 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
9156 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
9158 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
9159 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
9160 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
9161 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
9162 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
9163 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
9164 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
9165 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
9166 BARRIER_P instead of GET_CODE.
9168 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
9170 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
9171 inaccuracy in the probing code.
9173 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
9174 (ctrapdi4): Likewise.
9176 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
9178 * calls.c (expand_call): Add missing guard to code handling return
9179 of non-BLKmode structures in MSB.
9180 * function.c (expand_function_end): Likewise.
9182 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
9184 * combine.c (try_combine): Adjust comment. Do not add the set of
9185 insn #0 if the destination indirectly is set or dies in insn #2.
9186 Tidy up code to distribute a new note.
9188 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
9190 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
9191 also for alternatives 16 and 17.
9193 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
9195 * config/i386/sse.md (*mov<mode>_internal): Merge with
9196 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
9197 Emit insn template depending on type attribute. Use
9198 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
9199 movd instead of movq mnemonic for interunit moves. Rewrite mode
9200 attribute calculation. Remove unit attribute calculation.
9201 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
9202 Set prefix_data16 attribute for DImode ssemov types.
9203 Use Ym instead of y for SSE-MMX conversion alternatives.
9204 Reorder operand constraints.
9206 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
9208 * df.h (df_insn_delete): Adjust prototype.
9209 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
9210 and let it decide whether mark the basic block dirty.
9211 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
9212 * df-scan.c (df_insn_info_delete): New helper function, split
9213 off from df_insn_delete.
9214 (df_scan_free_bb_info): Use it.
9215 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
9217 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
9218 that the insn is actually an insn and it has a non-NULL basic block.
9219 Do not mark basic block dirty if only deleting a DEBUG_INSN.
9221 2013-03-22 Richard Biener <rguenther@suse.de>
9223 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
9225 (mem_ref_alloc): Do not allocate them.
9226 (refs_independent_p): Do not query or maintain a cache.
9228 2013-03-22 Richard Biener <rguenther@suse.de>
9230 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
9231 (gather_mem_refs_in_loops): Do not compute it.
9232 (analyze_memory_references): Do not allocate it.
9233 (tree_ssa_lim_finalize): Do not free it.
9234 (for_all_locs_in_loop): Do not query all_refs_in_loop.
9236 2013-03-22 Richard Biener <rguenther@suse.de>
9238 * is-a.h (as_a): Use gcc_checking_assert.
9240 2013-03-22 Ian Bolton <ian.bolton@arm.com>
9242 * config/aarch64/aarch64.c (aarch64_print_operand): New
9243 format specifier for printing a constant in hex.
9244 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
9245 format specifier for printing second operand.
9247 2013-03-22 Richard Biener <rguenther@suse.de>
9249 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
9251 (gather_mem_refs_in_loops): Perform store accumulation here.
9252 (create_vop_ref_mapping_loop): Remove.
9253 (create_vop_ref_mapping): Likewise.
9254 (analyze_memory_references): Initialize refs_stored_in_loop.
9255 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
9256 (record_indep_loop): Remove.
9257 (record_dep_loop): New function.
9258 (ref_indep_loop_p_1): Adjust to only walk over references
9259 in the loop, not its subloops.
9260 (ref_indep_loop_p): Rename to ...
9261 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
9262 maintaining a more fine-grained cache.
9263 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
9264 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
9266 2013-03-22 Richard Biener <rguenther@suse.de>
9268 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
9269 (struct mem_ref): Make accesses_in_loop a vec of a vec of
9270 aggregate mem_ref_loc.
9271 (free_mem_ref_locs): Inline into ...
9272 (memref_free): ... this and adjust.
9273 (mem_ref_alloc): Adjust.
9274 (mem_ref_locs_alloc): Remove.
9275 (record_mem_ref_loc): Adjust.
9276 (get_all_locs_in_loop): Rewrite into ...
9277 (for_all_locs_in_loop): ... this iterator.
9278 (rewrite_mem_ref_loc): New functor.
9279 (rewrite_mem_refs): Use for_all_locs_in_loop.
9280 (sm_set_flag_if_changed): New functor.
9281 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
9282 (ref_always_accessed): New functor.
9283 (ref_always_accessed_p): Use for_all_locs_in_loop.
9285 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
9287 * tree-pass.h (PROP_gimple_lvec): New.
9288 * passes.c (dump_properties): Handle PROP_gimple_lvec.
9289 (init_optimization_passes): Move pass_lower_vector.
9290 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
9292 (pass_lower_vector): Provide PROP_gimple_lvec.
9293 (pass_lower_vector_ssa): Likewise.
9294 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
9296 2013-03-21 Mark Wielaard <mjw@redhat.com>
9298 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
9300 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
9302 * config/i386/i386.md (*movdi_internal): Disparage slightly
9303 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
9304 conversion alternatives.
9306 2013-03-21 Jakub Jelinek <jakub@redhat.com>
9309 * diagnostic.def (DK_WERROR): New kind.
9310 * diagnostic.h (werrorcount): Define.
9311 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
9312 promoted to DK_ERROR, increment DK_WERROR counter instead of
9314 * toplev.c (toplev_main): Call print_ignored_options even if
9315 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
9316 even if just werrorcount is non-zero.
9319 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
9321 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
9322 (string_cst_pool_decl): New function.
9323 (optimize_one_addr_into_implicit_ptr): New function.
9324 (resolve_addr_in_expr): Optimize DWARF location expression
9325 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
9326 which doesn't live in memory, but has DW_AT_location or
9327 DW_AT_const_value, or refers to a string literal, into
9328 DW_OP_GNU_implicit_pointer.
9329 (optimize_location_into_implicit_ptr): New function.
9330 (resolve_addr): If removing DW_AT_location of a variable because
9331 it was DW_OP_addr of address of the variable, but the variable doesn't
9332 live in memory, try to emit const value attribute for the initializer.
9334 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
9336 * tree.h (VECTOR_TYPE_P): New macro.
9337 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
9339 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
9340 VEC_COND_EXPR cannot be lvalues.
9341 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
9343 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
9345 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
9346 Restrict the transformation to equal modes.
9348 2013-03-21 Richard Biener <rguenther@suse.de>
9350 PR tree-optimization/39326
9351 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
9352 (MEM_ANALYZABLE): Adjust.
9353 (record_mem_ref_loc): Move bitmap ops ...
9354 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
9355 unanalyzable refs, do not record locations for it.
9356 (analyze_memory_references): Allocate ref zero as shared
9358 (refs_independent_p): Do not test for unanalyzed mems here.
9359 (ref_indep_loop_p_1): Special-case disambiguation against
9361 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
9363 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
9365 * config/arm/arm-protos.h (tune_params): Add
9366 prefer_neon_for_64bits field.
9367 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
9368 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
9369 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
9370 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
9371 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
9372 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
9373 (arm_option_override): Handle -mneon-for-64bits new option.
9374 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
9375 (prefer_neon_for_64bits): Declare new variable.
9376 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
9377 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
9378 (arch_enabled): Handle new arch types. Remove support for onlya8
9380 (one_cmpldi2): Use new arch names.
9381 (zero_extend<mode>di2, extend<mode>di2): Ditto.
9382 * config/arm/arm.opt (mneon-for-64bits): Add option.
9383 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
9384 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
9385 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
9387 * doc/invoke.texi (-mneon-for-64bits): Document.
9389 2013-03-21 Richard Biener <rguenther@suse.de>
9391 PR tree-optimization/39326
9392 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
9393 (sort_bbs_in_loop_postorder_cmp): New function.
9394 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
9396 2013-03-21 Richard Biener <rguenther@suse.de>
9398 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
9399 (vect_insert_into_interleaving_chain): Likewise.
9400 (vect_drs_dependent_in_basic_block): Inline ...
9401 (vect_slp_analyze_data_ref_dependence): ... here. New function,
9403 (vect_analyze_data_ref_dependence): ... here. Simplify.
9404 (vect_check_interleaving): Simplify.
9405 (vect_analyze_data_ref_dependences): Likewise. Split out ...
9406 (vect_slp_analyze_data_ref_dependences): ... this new function.
9407 (dr_group_sort_cmp): New function.
9408 (vect_analyze_data_ref_accesses): Compute data-reference groups
9409 here instead of in vect_analyze_data_ref_dependence. Use
9410 a more efficient algorithm.
9411 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
9412 vect_slp_analyze_data_ref_dependences. Call
9413 vect_analyze_data_ref_accesses earlier.
9414 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
9415 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
9416 (vect_slp_analyze_data_ref_dependences): New prototype.
9418 2013-03-21 Richard Biener <rguenther@suse.de>
9420 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
9421 ref is stored in the loop.
9422 (find_refs_for_sm): Walk only over all stores.
9423 (store_motion_loop): Allocate from lim_bitmap_obstack.
9424 (store_motion): Likewise.
9426 2013-03-21 Richard Biener <rguenther@suse.de>
9428 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
9429 Update virtual SSA form.
9431 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9433 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
9434 * configure: Regenerate.
9435 * config.in: Regenerate.
9436 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
9437 if !HAVE_LD_EH_FRAME_CIEV3.
9439 2013-03-21 Richard Biener <rguenther@suse.de>
9441 * tree-cfg.c (verify_expr_no_block): New function.
9442 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
9443 nor DECL_VALUE_EXPR have locations with associated blocks.
9444 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
9445 (clear_unused_block_pointer): Remove code dealing with
9446 blocks in DECL_DEBUG_EXPR locations.
9448 2013-03-21 Richard Biener <rguenther@suse.de>
9450 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
9451 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
9452 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
9453 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
9454 instead of DECL_DEBUG_EXPR_IS_FROM.
9455 * gimplify.c (gimplify_modify_expr): Likewise.
9456 * tree-cfg.c (verify_expr_location_1): Likewise.
9457 * tree-complex.c (create_one_component_var): Likewise.
9458 * tree-sra.c (create_access_replacement): Likewise.
9459 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
9460 (clear_unused_block_pointer): Likewise.
9461 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
9462 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
9463 * var-tracking.c (var_debug_decl): Likewise.
9464 (track_expr_p): Likewise.
9465 * tree-inline.c (add_local_variables): Likewise. Set
9466 DECL_HAS_DEBUG_EXPR_P after copying it.
9467 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
9468 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
9470 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
9473 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
9474 * configure: Regenerate.
9475 * config.in: Regenerate.
9476 * config/i386/i386.md (*movdf_internal): Use
9477 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
9478 movd instead of movq mnemonic for interunit moves.
9479 (*movdi_internal): Ditto.
9481 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9483 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
9484 (abd<mode>_3): New pattern.
9485 (aba<mode>_3): New pattern.
9486 (fabd<mode>_3): New pattern.
9488 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9490 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
9491 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
9492 occurrence of REGISTER_PREFIX as its empty string.
9494 2013-03-20 Jeff Law <law@redhat.com>
9496 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
9497 addititional equivalences for equality comparisons between an SSA_NAME
9498 and a constant where the SSA_NAME was set from a widening conversion.
9500 2013-03-20 Walter Lee <walt@tilera.com>
9502 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
9504 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
9506 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
9507 depending on type attribute.
9508 (*movti_internal): Ditto.
9509 (*movtf_internal): Ditto.
9510 (*movxf_internal): Ditto.
9511 (*movdf_internal): Ditto.
9512 (*movsf_internal): Ditto.
9514 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
9516 * config/i386/i386.md (*movti_internal): Set prefix attribute to
9517 maybe_vex for sselog1 and ssemov types.
9518 (*movdi_internal): Reorder operand constraints.
9519 (*movsi_internal): Ditto. Set prefix attribute to
9520 maybe_vex for sselog1 and ssemov types.
9521 (*movtf_internal): Set prefix attribute to maybe_vex
9522 for sselog1 and ssemov types.
9523 (*movdf_internal): Ditto. Set prefix_data16 attribute for
9524 DImode ssemov types. Reorder operand constraints.
9525 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
9526 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
9527 attribute for SImode ssemov types. Reorder operand constraints.
9529 2013-03-20 Martin Jambor <mjambor@suse.cz>
9531 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
9532 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
9534 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
9536 * config/rs6000/predicates.md (indexed_address, update_address_mem
9537 update_indexed_address_mem): New predicates.
9538 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
9539 attribute for load/store instructions.
9540 * config/rs6000/dfp.md (movsd_store): Likewise.
9541 (movsd_load): Likewise.
9542 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
9543 (unnamed HI->DI extend define_insn): Likewise.
9544 (unnamed SI->DI extend define_insn): Likewise.
9545 (unnamed QI->SI extend define_insn): Likewise.
9546 (unnamed QI->HI extend define_insn): Likewise.
9547 (unnamed HI->SI extend define_insn): Likewise.
9548 (unnamed HI->SI extend define_insn): Likewise.
9549 (extendsfdf2_fpr): Likewise.
9550 (movsi_internal1): Likewise.
9551 (movsi_internal1_single): Likewise.
9552 (movhi_internal): Likewise.
9553 (movqi_internal): Likewise.
9554 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
9555 attribute for load/store instructions.
9556 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
9558 (mov<mode>_softfloat): Likewise.
9559 (mov<mode>_hardfloat32): Likewise.
9560 (mov<mode>_hardfloat64): Likewise.
9561 (mov<mode>_softfloat64): Likewise.
9562 (movdi_internal32): Likewise.
9563 (movdi_internal64): Likewise.
9564 (probe_stack_<mode>): Likewise.
9566 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
9568 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
9569 floating point, and decimal floating point to reload iterator.
9571 * config/rs6000/constraints.md (wl constraint): New constraints to
9572 return FLOAT_REGS if certain options are used to reduce the number
9573 of separate patterns that exist in the file.
9574 (wx constraint): Likewise.
9575 (wz constraint): Likewise.
9577 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
9578 -mdebug=reg, print wg, wl, wx, and wz constraints.
9579 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
9580 Initialize the reload functions for 64-bit binary/decimal floating
9582 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
9583 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
9584 create the buffer on the stack to overcome not having a 32-bit
9586 (rs6000_emit_move): Likewise.
9587 (rs6000_secondary_memory_needed_rtx): Likewise.
9588 (rs6000_alloc_sdmode_stack_slot): Likewise.
9589 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
9590 via xxlxor, just like DFmode 0.0.
9592 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
9593 define as 1 if we are running on a power7 or newer.
9594 (enum r6000_reg_class_enum): Add new constraints.
9596 * config/rs6000/dfp.md (movsd): Delete, combine with binary
9597 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
9598 with other moves by using conditional constraits (wg). Use LFIWZX
9599 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
9600 (movsd splitter): Likewise.
9601 (movsd_hardfloat): Likewise.
9602 (movsd_softfloat): Likewise.
9604 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
9605 binary and decimal floating point moves.
9606 (fmove_ok): New attributes to combine binary and decimal floating
9607 point moves, and to combine power6x (mfpgpr) moves along normal
9609 (real_value_to_target): Likewise.
9616 (movsf): Combine binary and decimal floating point moves. Combine
9617 power6x (mfpgpr) moves with other moves by using conditional
9618 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
9619 (mov<mode> for SFmode/SDmode); Likewise.
9620 (SFmode/SDmode splitters): Likewise.
9621 (movsf_hardfloat): Likewise.
9622 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
9623 (movsf_softfloat): Likewise.
9624 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
9626 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
9627 wx and wz constraints.
9629 * config/rs6000/constraints.md (wg constraint): New constraint to
9630 return FLOAT_REGS if -mmfpgpr (power6x) was used.
9632 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
9635 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
9636 -mdebug=reg, print wg, wl, wx, and wz constraints.
9637 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
9638 Initialize the reload functions for 64-bit binary/decimal floating
9640 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
9641 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
9642 create the buffer on the stack to overcome not having a 32-bit
9644 (rs6000_emit_move): Likewise.
9645 (rs6000_secondary_memory_needed_rtx): Likewise.
9646 (rs6000_alloc_sdmode_stack_slot): Likewise.
9647 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
9648 via xxlxor, just like DFmode 0.0.
9650 * config/rs6000/dfp.md (movdd): Delete, combine with binary
9651 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
9652 with other moves by using conditional constraits (wg). Use LFIWZX
9653 and STFIWX for loading SDmode on power7.
9654 (movdd splitters): Likewise.
9655 (movdd_hardfloat32): Likewise.
9656 (movdd_softfloat32): Likewise.
9657 (movdd_hardfloat64_mfpgpr): Likewise.
9658 (movdd_hardfloat64): Likewise.
9659 (movdd_softfloat64): Likewise.
9661 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
9662 64-bit binary and decimal floating point moves.
9663 (FMOVE64X): Likewise.
9664 (movdf): Combine 64-bit binary and decimal floating point moves.
9665 Combine power6x (mfpgpr) moves with other moves by using
9666 conditional constraits (wg).
9667 (mov<mode> for DFmode/DDmode): Likewise.
9668 (DFmode/DDmode splitters): Likewise.
9669 (movdf_hardfloat32): Likewise.
9670 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
9671 (movdf_softfloat32): Likewise.
9672 (movdf_hardfloat64_mfpgpr): Likewise.
9673 (movdf_hardfloat64): Likewise.
9674 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
9675 (movdf_softfloat64): Likewise.
9676 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
9677 (reload_<mode>_load): Move to later in the file so they aren't in
9678 the middle of the floating point move insns.
9679 (reload_<mode>_store): Likewise.
9681 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
9684 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
9685 constraint if -mdebug=reg.
9686 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
9687 Enable using dd reload support if needed.
9689 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
9690 binary and decimal floating point moves in rs6000.md.
9691 (movtd_internal): Likewise.
9693 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
9694 decimal floating point moves.
9696 (movtf_internal): Likewise.
9697 (mov<mode>_internal, TDmode/TFmode): Likewise.
9698 (movtf_softfloat): Likewise.
9699 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
9701 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
9702 movdi_internal64, using wg constraint for move direct operations.
9703 (movdi_internal64): Likewise.
9705 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
9706 MODES_TIEABLE_P for selected modes. Print the numerical value of
9707 the various virtual registers. Use GPR/FPR first/last values,
9708 instead of hard coding the register numbers. Print which modes
9709 have reload functions registered.
9710 (rs6000_option_override_internal): If -mdebug=reg, trace the options
9711 settings before/after setting cpu, target and subtarget settings.
9712 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
9713 and for secondary reload failures in rs6000_secondary_reload_inner.
9714 (rs6000_secondary_reload_fail): Likewise.
9715 (rs6000_secondary_reload_inner): Likewise.
9717 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
9718 macros for first/last GPR and FPR registers.
9719 (LAST_GPR_REGNO): Likewise.
9720 (FIRST_FPR_REGNO): Likewise.
9721 (LAST_FPR_REGNO): Likewise.
9723 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
9724 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
9725 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
9726 (vcond<mode><mode>): Likewise.
9727 (vcondu<mode><mode>): Likewise.
9728 (vector_gtu<mode>): Likewise.
9729 (vector_gte<mode>): Likewise.
9730 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
9731 to prevent the compiler from converting DImode operations to TImode.
9732 (ior<mode>3): Likewise.
9733 (and<mode>3): Likewise.
9734 (one_cmpl<mode>2): Likewise.
9735 (nor<mode>3): Likewise.
9736 (andc<mode>3): Likewise.
9738 * config/rs6000/constraints.md (wt constraint): New constraint
9739 that returns VSX_REGS if TImode is allowed in VSX registers.
9741 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
9744 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
9745 similar to TImode, but it is restricted to being in the GPRs.
9747 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
9748 TImode to occupy a single VSX register.
9750 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
9751 -mvsx-timode for power7/power8.
9752 (power7 cpu): Likewise.
9753 (power8 cpu): Likewise.
9755 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
9756 sure that TFmode/TDmode take up two registers if they are ever
9757 allowed in the upper VSX registers.
9758 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
9760 (rs6000_init_hard_regno_mode_ok): Likewise.
9761 (rs6000_debug_reg_global): Add debugging for PTImode and wt
9762 constraint. Print if LRA is turned on.
9763 (rs6000_option_override_internal): Give an error if -mvsx-timode
9764 and VSX is not enabled.
9765 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
9766 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
9767 to reg+offset addressing. Use PTImode when checking offset
9768 addresses for validity.
9769 (reg_offset_addressing_ok_p): Likewise.
9770 (rs6000_legitimate_offset_address_p): Likewise.
9771 (rs6000_legitimize_address): Likewise.
9772 (rs6000_legitimize_reload_address): Likewise.
9773 (rs6000_legitimate_address_p): Likewise.
9774 (rs6000_eliminate_indexed_memrefs): Likewise.
9775 (rs6000_emit_move): Likewise.
9776 (rs6000_secondary_reload): Likewise.
9777 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
9778 reloads to fpr registers to continue to use reg+offset addressing,
9779 but 64-bit reloads to altivec registers need reg+reg addressing.
9780 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
9781 it. Treat LO_SUM like a PLUS operation.
9782 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
9783 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
9784 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
9785 registers to share a register with a smaller sized type, since VSX
9786 puts scalars in the upper 64-bits.
9787 (print_operand): Add support for PTImode.
9788 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
9789 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
9790 registers, but don't have arithmetic support.
9791 (rs6000_memory_move_cost): Add test for VSX.
9792 (rs6000_opt_masks): Add -mvsx-timode.
9794 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
9797 (VSr): Use wt constraint for TImode.
9798 (VSv): Drop TImode support.
9799 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
9800 (vsx_movti_64bit): Likewise.
9801 (vsx_movti_32bit): Likewise.
9802 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
9803 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
9804 one '?' on the appropriate output constraint. Do not allow TImode
9805 logical operations on 32-bit systems.
9806 (vsx_ior<mode>3): Likewise.
9807 (vsx_xor<mode>3): Likewise.
9808 (vsx_one_cmpl<mode>2): Likewise.
9809 (vsx_nor<mode>3): Likewise.
9810 (vsx_andc<mode>3): Likewise.
9811 (vsx_concat_<mode>): Likewise.
9812 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
9814 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
9815 OPTION_MASK_VSX_TIMODE.
9816 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
9817 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
9819 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
9820 (TI2 iterator): New iterator for TImode, PTImode.
9821 (wd mode attribute): Add values for vector types.
9822 (movti_string): Replace TI move operations with operations for TImode
9823 and PTImode. Add support for TImode being allowed in VSX registers.
9824 (mov<mode>_string, TImode/PTImode): Likewise.
9825 (movti_ppc64): Likewise.
9826 (mov<mode>_ppc64, TImode/PTImode): Likewise.
9827 (TI mode splitters): Likewise.
9829 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
9832 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
9834 PR tree-optimization/56355
9835 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
9836 Also handle integers with undefined overflow.
9838 2013-03-20 Catherine Moore <clm@codesourcery.com>
9839 Maciej W. Rozycki <macro@codesourcery.com>
9840 Tom de Vries <tom@codesourcery.com>
9841 Nathan Sidwell <nathan@codesourcery.com>
9842 Iain Sandoe <iain@codesourcery.com>
9843 Nathan Froyd <froydnj@codesourcery.com>
9844 Chao-ying Fu <fu@mips.com>
9846 * doc/extend.texi: (micromips, nomicromips, nocompression):
9847 Document new function attributes.
9848 * doc/invoke.texi (minterlink-compressed, mmicromips,
9849 m14k, m14ke, m14kec): Document new options.
9850 (minterlink-mips16): Update documentation.
9851 * doc/md.texi (ZC, ZD): Document new constraints.
9852 * configure.ac (gcc_cv_as_micromips): Check if linker
9853 supports the .set micromips directive.
9854 * configure: Regenerate.
9855 * config.in: Regenerate.
9856 * config/mips/mips-tables.opt: Regenerate.
9857 * config/mips/micromips.md: New file.
9858 * constraints.md (ZC, ZD): New constraints.
9859 * config/mips/predicates.md (movep_src_register): New predicate.
9860 (movep_src_operand): New predicate.
9861 (non_volatile_mem_operand): New predicate.
9862 * config/mips/mips.md (multimem): New type.
9863 (length): Differentiate between 17-bit and 18-bit branch offsets.
9864 (MOVEP1, MOVEP2): New mode iterator.
9865 (mov_<load>l): Use ZC constraint.
9866 (mov_<load>r): Likewise.
9867 (mov_<store>l): Likewise.
9868 (mov_<store>r): Likewise.
9869 (*branch_equality<mode>_inverted): Add microMIPS support.
9870 (*branch_equality<mode>): Likewise.
9871 (*jump_absolute): Likewise.
9872 (indirect_jump_<mode>): Likewise.
9873 (tablejump_<mode>): Likewise.
9874 (<optab>_internal): Likewise.
9875 (sibcall_internal): Likewise.
9876 (sibcall_value_internal): Likewise.
9877 (prefetch): Use constraint ZD.
9878 * config/mips/mips.opt (minterlink-compressed): New option.
9879 (minterlink-mips16): Now an alias for minterlink-compressed.
9880 (mmicromips): New option.
9881 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
9882 (compare_and_swap_12): Likewise.
9883 (sync_add<mode>): Likewise.
9884 (sync_<optab>_12): Likewise.
9885 (sync_old_<optab>_12): Likewise.
9886 (sync_new_<optab>_12): Likewise.
9887 (sync_nand_12): Likewise.
9888 (sync_old_nand_12): Likewise.
9889 (sync_new_nand_12): Likewise.
9890 (sync_sub<mode>): Likewise.
9891 (sync_old_add<mode>): Likewise.
9892 (sync_old_sub<mode>): Likewise.
9893 (sync_new_add<mode>): Likewise.
9894 (sync_new_sub<mode>): Likewise.
9895 (sync_<optab><mode>): Likewise.
9896 (sync_old_<optab><mode>): Likewise.
9897 (sync_new_<optab><mode>): Likewise.
9898 (sync_nand<mode>): Likewise.
9899 (sync_old_nand<mode>): Likewise.
9900 (sync_new_nand<mode>): Likewise.
9901 (sync_lock_test_and_set<mode>): Likewise.
9902 (test_and_set_12): Likewise.
9903 (atomic_compare_and_swap<mode>): Likewise.
9904 (atomic_exchange<mode>_llsc): Likewise.
9905 (atomic_fetch_add<mode>_llsc): Likewise.
9906 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
9907 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
9908 (umips_save_restore_pattern_p): Likewise.
9909 (umips_load_store_pair_p): Likewise.
9910 (umips_output_load_store_pair): Likewise.
9911 (umips_movep_target_p): Likewise.
9912 (umips_12bit_offset_address_p): Likewise.
9913 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
9914 (mips_base_mips16): Rename this...
9915 (mips_base_compression_flags): ...to this. Update all uses.
9916 (mips_attribute_table): Add micromips, nomicromips and nocompression.
9917 (mips_mips16_decl_p): Delete.
9918 (mips_nomips16_decl_p): Delete.
9919 (mips_get_compress_on_flags): New function.
9920 (mips_get_compress_off_flags): New function.
9921 (mips_get_compress_mode): New function.
9922 (mips_get_compress_on_name): New function.
9923 (mips_get_compress_off_name): New function.
9924 (mips_insert_attributes): Support multiple compression types.
9925 (mips_merge_decl_attributes): Likewise.
9926 (umips_12bit_offset_address_p): New function.
9927 (mips_start_function_definition): Emit .set micromips directive.
9928 (mips_call_may_need_jalx_p): New function.
9929 (mips_function_ok_for_sibcall): Add microMIPS support.
9930 (mips_print_operand_punctuation): Support short delay slots and
9932 (umips_swm_mask, umips_swm_encoding): New.
9933 (umips_build_save_restore): New function.
9934 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
9935 (was_mips16_p): Remove.
9936 (old_compression_mode): New.
9937 (mips_set_compression_mode): New function.
9938 (mips_set_current_function): Add microMIPS support.
9939 (mips_option_override): Likewise.
9940 (umips_save_restore_pattern_p): New function.
9941 (umips_output_save_restore): New function.
9942 (umips_load_store_pair_p_1): New function.
9943 (umips_load_store_pair_p): New function.
9944 (umips_output_load_store_pair_1): New function.
9945 (umips_output_load_store_pair): New function.
9946 (umips_movep_target_p) New function.
9947 (mips_prepare_pch_save): Add microMIPS support.
9948 * config/mips/mips.h (TARGET_COMPRESSION): New.
9949 (TARGET_CPU_CPP_BUILTINS): Update macro
9950 to use new compression flags and to support microMIPS.
9951 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
9952 (MIPS_ARCH_FLOAT_SPEC): Likewise.
9953 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
9954 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
9955 (ASM_SPEC): Support mmicromips and mno-micromips.
9956 (M16STORE_REG_P): New macro.
9957 (MIPS_CALL): Support TARGET_MICROMIPS.
9958 (MICROMIPS_J): New macro.
9959 (mips_base_mips16): Rename this...
9960 (mips_base_compression_flags): ...to this.
9961 (UMIPS_12BIT_OFFSET_P): New macro.
9962 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
9963 (MULTILIB_DIRNAMES): Likewise.
9964 2013-03-20 Richard Biener <rguenther@suse.de>
9966 PR tree-optimization/56661
9967 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
9968 the result does not have to be distinct.
9970 2013-03-20 Richard Biener <rguenther@suse.de>
9972 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
9975 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9976 Steven Bosscher <steven@gcc.gnu.org>
9978 PR rtl-optimization/56605
9979 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
9981 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
9984 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
9985 that require movd instead of movq.
9987 2013-03-20 Richard Biener <rguenther@suse.de>
9989 * tree-ssa-structalias.c (struct variable_info): Add pointer
9990 to the first field of an aggregate with sub-vars. Make
9991 this and the pointer to the next subfield its ID.
9992 (vi_next): New function.
9993 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
9994 storedanything_id, integer_id): Increment by one.
9995 (new_var_info, get_call_vi, lookup_call_clobber_vi,
9996 get_call_clobber_vi): Adjust.
9997 (solution_set_expand): Simplify and speedup.
9998 (solution_set_add): Inline into ...
9999 (set_union_with_increment): ... this. Adjust accordingly.
10000 (do_sd_constraint): Likewise.
10001 (do_ds_constraint): Likewise.
10002 (do_complex_constraint): Simplify.
10003 (build_pred_graph): Adjust.
10004 (solve_graph): Likewise. Simplify and speedup.
10005 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
10006 get_constraint_for_component_ref, get_constraint_for_1,
10007 first_vi_for_offset, first_or_preceding_vi_for_offset,
10008 create_function_info_for, create_variable_info_for_1,
10009 create_variable_info_for, intra_create_variable_infos): Adjust.
10010 (init_base_vars): Push NULL for ID zero.
10011 (compute_points_to_sets): Adjust.
10013 2013-03-20 Richard Biener <rguenther@suse.de>
10015 * cfgloop.c (verify_loop_structure): Streamline and avoid
10016 ICEing on corrupt loop tree.
10017 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
10020 2013-03-20 Richard Biener <rguenther@suse.de>
10022 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
10023 check whether an SSA update is needed.
10025 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
10027 * config/mips/constraints.md (T): Rename to...
10031 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
10032 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
10034 2013-03-19 Ian Bolton <ian.bolton@arm.com>
10036 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
10037 (*subsi3_carryin_uxtw): Likewise.
10039 2013-03-19 Ian Bolton <ian.bolton@arm.com>
10041 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
10042 (*rorsi3_insn_uxtw): Likewise.
10044 2013-03-19 Ian Bolton <ian.bolton@arm.com>
10046 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
10047 (*extrsi5_insn_uxtw): Likewise.
10049 2013-03-19 Richard Biener <rguenther@suse.de>
10051 PR tree-optimization/56273
10052 * passes.c (init_optimization_passes): Move second VRP after DOM.
10054 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
10056 * config/i386/i386.md (*movti_internal): Merge from
10057 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
10058 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
10059 nox64 isa attributes.
10061 2013-03-18 Richard Biener <rguenther@suse.de>
10063 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
10065 (merge_node_constraints): Likewise.
10066 (build_succ_graph): Likewise.
10067 (valid_graph_edge): Inline into single caller.
10068 (unify_nodes): Likewise. Use bitmap_set_bit return value
10070 (scc_visit): Fix formatting and variable use.
10071 (do_sd_constraint): Use gcc_checking_assert.
10072 (do_ds_constraint): Likewise.
10073 (do_complex_constraint): Likewise.
10074 (condense_visit): Likewise. Cleanup.
10075 (dump_pred_graph): New function.
10076 (perform_var_substitution): Dump the pred-graph before
10077 variable substitution.
10078 (find_equivalent_node): Use gcc_checking_assert.
10079 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
10081 2013-03-18 Richard Biener <rguenther@suse.de>
10083 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
10084 Remove cond_expr_stmt_list argument and do not gimplify the
10086 (vect_loop_versioning): Adjust.
10087 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
10088 Cleanup to use less temporaries.
10089 (vect_create_data_ref_ptr): Cleanup.
10091 2013-03-18 Jakub Jelinek <jakub@redhat.com>
10093 PR tree-optimization/56635
10094 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
10095 require types_compatible_p types.
10097 2013-03-18 Nick Clifton <nickc@redhat.com>
10099 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
10100 spurious backslash.
10102 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
10103 Add missing line to comment describing function.
10105 2013-03-18 Richard Biener <rguenther@suse.de>
10107 PR tree-optimization/56210
10108 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10109 Handle string / character search functions.
10110 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
10112 2013-03-18 Richard Biener <rguenther@suse.de>
10114 PR middle-end/56483
10115 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
10116 and implement properly.
10117 * gimple.h (gimple_cond_single_var_p): Remove.
10119 2013-03-18 Richard Biener <rguenther@suse.de>
10121 * tree-data-ref.h (find_data_references_in_loop): Declare.
10122 * tree-data-ref.c (get_references_in_stmt): Use a stack
10123 vector pre-allocated in the callers.
10124 (find_data_references_in_stmt): Adjust.
10125 (graphite_find_data_references_in_stmt): Likewise.
10126 (create_rdg_vertices): Likewise.
10127 (find_data_references_in_loop): Export.
10128 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
10129 Compute dependences here...
10130 (vect_analyze_data_refs): ...not here. When we encounter
10131 a non-vectorizable data reference in basic-block vectorization
10132 truncate the data reference vector. Do not bother to
10133 fixup data-dependence information for gather loads.
10134 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
10135 of data references, as reported.
10137 2013-03-18 Richard Biener <rguenther@suse.de>
10139 PR tree-optimization/3713
10140 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
10141 has_constants and expr.
10142 (stmt_has_constants): Properly valueize SSA names when deciding
10143 whether the stmt has constants.
10145 2013-03-18 Richard Biener <rguenther@suse.de>
10147 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
10148 whole function when there is nothing to do.
10149 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
10150 * tree-vectorizer.c (vectorize_loops): Update virtual and
10151 loop-closed SSA once.
10152 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
10154 2013-03-18 Richard Biener <rguenther@suse.de>
10156 PR middle-end/56113
10157 * domwalk.c (bb_postorder): New global static.
10158 (cmp_bb_postorder): New function.
10159 (walk_dominator_tree): Replace scheme imposing an order for
10160 visiting dominator sons by one sorting them at the time they
10161 are pushed on the stack.
10163 2013-03-18 Richard Biener <rguenther@suse.de>
10165 PR tree-optimization/39326
10166 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
10167 (struct mem_ref): Replace mem member with ao_ref typed member.
10168 (MEM_ANALYZABLE): Adjust.
10169 (memref_eq): Likewise.
10170 (mem_ref_alloc): Likewise.
10171 (gather_mem_refs_stmt): Likewise.
10172 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
10173 (execute_sm_if_changed_flag_set): Adjust.
10174 (execute_sm): Likewise.
10175 (ref_always_accessed_p): Likewise.
10176 (refs_independent_p): Likewise.
10177 (can_sm_ref_p): Likewise.
10179 2013-03-18 Jakub Jelinek <jakub@redhat.com>
10182 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
10183 return 1 even for !unsignedp.
10185 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
10187 * config/i386/i386.md (isa): Add x64 and nox64.
10188 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
10189 (*pushtf): Enable *roF alternative for x64 isa only.
10190 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
10191 mode attribute of integer alternatives to DImode for TARGET_64BIT.
10192 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
10193 (*movtf_internal): Merge from *movtf_internal_rex64 and
10194 *movtf_internal_sse. Use x64 and nox64 isa attributes.
10195 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
10196 nox64 isa attributes.
10197 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
10198 nox64 isa attributes.
10199 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
10201 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
10203 * config/alpha/alpha.c (TARGET_LRA_P): New define.
10205 2013-03-17 Jakub Jelinek <jakub@redhat.com>
10208 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
10209 class names. Remove trailing comma after "ALL_REGS".
10211 2013-03-16 Jan Hubicka <jh@suse.cz>
10213 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
10214 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
10215 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
10216 of cgraph_get_create_node.
10217 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10219 2013-03-16 Jason Merrill <jason@redhat.com>
10222 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
10223 with DW_AT_default_value.
10225 2013-03-16 Jakub Jelinek <jakub@redhat.com>
10227 * BASE-VER: Set to 4.9.0.
10229 2013-03-14 Andi Kleen <ak@linux.intel.com>
10232 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
10233 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
10234 Document _x* TSX intrinsics.
10236 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
10237 David Holsgrove <david.holsgrove@xilinx.com>
10239 * configure.ac: Add MicroBlaze TLS support detection.
10240 * configure: Regenerate.
10241 * config/microblaze/microblaze-protos.h
10242 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
10243 symbol_mentioned_p, label_mentioned_p): Add prototypes.
10244 * config/microblaze/microblaze.c (microblaze_address_type): Add
10245 ADDRESS_TLS and tls_reloc address types.
10246 (microblaze_address_info): Add tls_reloc.
10247 (TARGET_HAVE_TLS): Define.
10248 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
10249 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
10250 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
10251 load_tls_operand, microblaze_call_tls_get_addr,
10252 microblaze_legitimize_tls_address): New functions.
10253 (microblaze_classify_unspec): Handle UNSPEC_TLS.
10254 (get_base_reg): Use microblaze_tls_symbol_p.
10255 (microblaze_classify_address): Handle TLS.
10256 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
10257 label_mentioned_p and microblaze_tls_referenced_p.
10258 (microblaze_legitimize_address): Handle TLS.
10259 (microblaze_address_insns): Handle ADDRESS_TLS.
10260 (pic_address_needs_scratch): Handle TLS.
10261 (print_operand_address): Handle TLS.
10262 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
10263 (microblaze_expand_move): Handle TLS.
10264 (microblaze_legitimate_constant_p): Check
10265 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
10266 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
10267 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
10268 (PIC_OFFSET_TABLE_REGNUM): Set.
10269 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
10270 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
10271 (addsi3, movsi_internal2, movdf_internal): Update constraints
10272 * config/microblaze/predicates.md (arith_plus_operand): Define
10273 (move_operand): Redefine as move_src_operand,
10274 check microblaze_tls_referenced_p.
10276 2013-03-14 Ian Bolton <ian.bolton@arm.com>
10278 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
10279 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
10281 2013-03-14 Ian Bolton <ian.bolton@arm.com>
10283 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
10286 2013-03-14 Jakub Jelinek <jakub@redhat.com>
10288 PR tree-optimization/53265
10289 * common.opt (Waggressive-loop-optimizations): New option.
10290 * tree-ssa-loop-niter.c: Include tree-pass.h.
10291 (do_warn_aggressive_loop_optimizations): New function.
10292 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
10293 if number_of_latch_executions returned constant.
10294 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
10295 early. If number_of_latch_executions returned constant, set
10296 nb_iterations_upper_bound back to it.
10297 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
10299 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
10300 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
10302 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
10303 (MULTILIB_OSDIRNAMES): Set.
10304 * genmultilib: If defaultosdirname doesn't start with :: , set
10305 defaultosdirname2 instead, clear it and emit two . multilib_raw
10306 entries instead of just one.
10308 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
10310 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
10311 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
10312 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
10313 (SUBTARGET_OVERRIDE_OPTIONS): New.
10315 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
10318 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
10319 (musermode): Convert to Var(TARGET_USERMODE).
10320 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
10321 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
10322 * config/sh/sh.c (sh_option_override): Use
10323 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
10324 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
10326 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
10328 (udivsi3_i4_single, divsi3_i4_single): Use
10329 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
10331 2013-03-13 Dave Korn <dave.korn.cygwin@....>
10333 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
10336 2013-03-13 Richard Biener <rguenther@suse.de>
10338 PR tree-optimization/56608
10339 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
10340 calls when vectorizing basic-blocks.
10342 2013-03-13 Jakub Jelinek <jakub@redhat.com>
10345 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
10348 2013-03-12 Jakub Jelinek <jakub@redhat.com>
10350 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
10352 2013-03-11 Jan Hubicka <jh@suse.cz>
10355 * lto-streamer-out.c (output_symbol_p): Skip references from
10356 constructors of external variables.
10358 2013-03-11 Jan Hubicka <jh@suse.cz>
10360 PR middle-end/56571
10361 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
10363 * emit-rtl.c (verify_rtx_sharing): Likewise.
10364 (copy_insn_1): Likewise.
10365 * rtl.c (copy_rtx): Likewise.
10367 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
10370 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
10371 output_operand_lossage message.
10373 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
10376 * arm.c (shift_op): Validate RTL pattern on the fly.
10377 (arm_print_operand, case 'S'): Don't use shift_operator to validate
10380 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10383 * config/pa/pa.md (call_value): Check for calls to powf and direct to
10384 new call patterns that clobber %fr12.
10385 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
10386 split and postreload patterns.
10387 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
10388 registers %fr12 and %fr12R as call used.
10390 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
10392 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
10393 (canon_address, record_store, replace_read, check_mem_read_rtx,
10394 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
10395 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
10396 rest_of_handle_dse): Likewise.
10398 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
10400 PR middle-end/56524
10401 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
10403 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
10404 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
10405 (save_optabs_if_changed): Replace with...
10406 (init_tree_optimization_optabs): ...this.
10407 * optabs.c (save_optabs_if_changed): Rename to...
10408 (init_tree_optimization_optabs): ...this. Take the optimization node
10409 as argument. Do nothing if the base optabs are already correct.
10410 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
10411 to recompute optabs.
10412 * function.h (function): Remove optabs field.
10413 * function.c (invoke_set_current_function_hook): Call
10414 init_tree_optimization_optabs. Use the result to initialize
10417 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
10419 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
10420 if GTMA_HAS_NO_INSTRUMENTATION.
10421 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
10422 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
10423 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
10424 * gimple-pretty-print.c (dump_gimple_transaction): Handle
10425 GTMA_HAS_NO_INSTRUMENTATION.
10427 2013-03-08 Jakub Jelinek <jakub@redhat.com>
10429 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
10432 2013-03-08 Marek Polacek <polacek@redhat.com>
10433 Jakub Jelinek <jakub@redhat.com>
10435 PR tree-optimization/56478
10436 * predict.c (is_comparison_with_loop_invariant_p): Change the
10437 type of loop_step to tree.
10438 (predict_loops): Adjust.
10439 (predict_iv_comparison): Perform the computations on double_ints.
10441 2013-03-08 Richard Biener <rguenther@suse.de>
10443 PR tree-optimization/56570
10444 * tree-cfg.c (verify_expr_location_1): Verify locations for
10446 * tree-sra.c (create_access_replacement): Strip locations
10447 from DECL_DEBUG_EXPRs.
10449 2013-03-08 Richard Biener <rguenther@suse.de>
10451 * tree-inline.c (expand_call_inline): Do not associate
10452 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
10453 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
10455 2013-03-08 Richard Biener <rguenther@suse.de>
10457 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
10458 or block changes with -Og. Fix for location / block encoding
10459 changes and PHI arguments with locations.
10461 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
10463 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
10465 (struct output_info): Likewise.
10466 (register_overhead): Remove bad gcc_assert.
10467 (bitmap_find_bit): If there is only a single bitmap element, do not
10468 count a miss as a search.
10469 (print_statistics): Update for counter type changes.
10470 (dump_bitmap_statistics): Likewise. Print headers such that they
10471 are properly lined up with the printed counters.
10473 2013-03-07 Jakub Jelinek <jakub@redhat.com>
10475 PR tree-optimization/56559
10476 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
10477 check that it has only a single use.
10479 2013-03-07 Richard Biener <rguenther@suse.de>
10481 * doc/invoke.texi (fwhole-program): Discourage use in combination
10484 2013-03-06 Jakub Jelinek <jakub@redhat.com>
10486 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
10488 PR tree-optimization/56539
10489 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
10490 instead of GSI_CONTINUE_LINKING as last argument to
10491 force_gimple_operand_gsi. Adjust function comment.
10493 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
10496 PR middle-end/56548
10497 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
10498 promoted mode, convert the result back to the original mode.
10500 2013-03-06 Richard Biener <rguenther@suse.de>
10502 PR middle-end/56294
10503 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
10504 (insert_updated_phi_nodes_compare_uids): New function.
10505 (update_ssa): Sort symbols_to_rename after UID before
10506 traversing it to insert PHI nodes.
10508 2013-03-06 Richard Biener <rguenther@suse.de>
10510 PR middle-end/50494
10511 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
10512 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
10515 2013-02-13 Richard Biener <rguenther@suse.de>
10518 * varasm.c (output_constant_def_1): Get the decl representing
10519 the constant as argument.
10520 (output_constant_def): Wrap output_constant_def_1.
10521 (make_decl_rtl): Use output_constant_def_1 with the decl
10522 representing the constant.
10523 (build_constant_desc): Optionally re-use a decl already
10524 representing the constant.
10525 (tree_output_constant_def): Adjust.
10527 2013-03-06 Joey Ye <joey.ye@arm.com>
10530 * gcc.c (convert_white_space): New function.
10531 (main): Handles white space in function name.
10533 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
10536 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
10537 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
10538 to SH_DIV_CALL_TABLE for TARGET_SH2.
10539 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
10541 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
10542 call-table options.
10544 2013-03-05 Sterling Augustine <saugustine@google.com>
10545 Cary Coutant <ccoutant@google.com>
10548 * dwarf2out.c (resolve_addr): Don't call
10549 remove_loc_list_addr_table_entries a second time for the same
10552 2013-03-05 Jakub Jelinek <jakub@redhat.com>
10555 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
10556 (avoid_complex_debug_insns): New function.
10557 (expand_debug_locations): Call it.
10559 PR rtl-optimization/56484
10560 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
10561 lifetimes of hard registers on small register class machines.
10563 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
10565 * config/microblaze/microblaze-protos.h: Rename
10566 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
10567 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
10569 (microblaze_fast_interrupt_function_p): New function.
10570 (microblaze_is_interrupt_handler): Rename to
10571 microblaze_is_interrupt_variant and add fast_interrupt check.
10572 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
10573 (save_restore_insns): Likewise.
10574 (compute_frame_size): Likewise.
10575 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
10576 (microblaze_globalize_label): Likewise.
10577 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
10578 * config/microblaze/microblaze.md: Use wrapper
10579 microblaze_is_interrupt_variant.
10581 2013-03-05 Kai Tietz <ktietz@redhat.com>
10583 * sdbout.c (sdbout_one_type): Switch to current function's section
10584 supporting cold/hot.
10586 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
10588 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
10591 2013-03-05 Jakub Jelinek <jakub@redhat.com>
10593 PR middle-end/56461
10594 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
10595 if VALGRIND_GET_VBITS is defined, temporarily make object
10596 memory all defined, and restore previous valgrind addressability
10597 and definability afterwards. Free this_object at the end.
10599 PR middle-end/56461
10600 * lra.c (lra): Call lra_clear_live_ranges if live_p,
10601 right before calling lra_create_live_ranges, also call it
10602 when clearing live_p. Only call lra_clear_live_ranges
10603 at the end if live_p.
10605 PR middle-end/56461
10606 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
10608 2013-03-05 Richard Biener <rguenther@suse.de>
10610 PR tree-optimization/56521
10611 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
10614 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
10617 * except.h (remove_unreachable_eh_regions): New prototype.
10618 * except.c (remove_eh_handler_splicer): New function, split out
10619 of remove_eh_handler.
10620 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
10621 warning about running it on many EH regions one at a time.
10622 (remove_unreachable_eh_regions_worker): New function, walk the
10623 EH tree in depth-first order and remove non-marked regions.
10624 (remove_unreachable_eh_regions): New function.
10625 * tree-eh.c (mark_reachable_handlers): New function, split out
10626 from remove_unreachable_handlers.
10627 (remove_unreachable_handlers): Use mark_reachable_handlers and
10628 remove_unreachable_eh_regions.
10629 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
10630 and remove_unreachable_eh_regions.
10632 2013-03-05 Richard Biener <rguenther@suse.de>
10634 PR middle-end/56525
10635 * loop-init.c (fix_loop_structure): Remove loops in two stages,
10636 not freeing them until the end.
10638 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10640 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
10642 2013-03-05 Richard Biener <rguenther@suse.de>
10644 PR tree-optimization/56270
10645 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
10646 of loads after scheduling an SLP instance.
10648 2013-03-05 Jakub Jelinek <jakub@redhat.com>
10650 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
10652 (check_gcc_parallelize): Run guality.exp as a separate job from
10653 vect.exp with unsorted.exp and $(dg_target_exps) separately from
10654 struct-layout-1.exp with stackalign.exp.
10656 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
10658 PR middle-end/56461
10659 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
10660 load_index sbitmap even if some bit in it isn't set.
10662 PR middle-end/56461
10663 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
10664 (discover_iteration_bound_by_body_walk): Change queues to
10665 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
10666 spelling in comment. Call safe_push on queues[bound_index] directly.
10667 Release queues[queue_index] in every iteration unconditionally.
10668 Release bounds vector.
10670 PR middle-end/56461
10671 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
10672 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
10673 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
10676 2013-03-05 Richard Biener <rguenther@suse.de>
10679 * tree-inline.c (remap_blocks_to_null): New function.
10680 (expand_call_inline): When expanding a call stmt without
10681 an associated block inline remap all callee blocks to NULL.
10683 2013-03-05 Jakub Jelinek <jakub@redhat.com>
10685 PR rtl-optimization/56494
10686 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
10687 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
10688 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
10690 PR middle-end/56461
10691 * sel-sched-ir.c (free_sched_pools): Release
10692 succs_info_pool.stack[succs_info_pool.max_top] vectors too
10693 if succs_info_pool.max_top isn't -1.
10696 * opts.c (opts_obstack, opts_concat): Moved to...
10697 * opts-common.c (opts_obstack, opts_concat): ... here.
10699 2013-03-04 Jakub Jelinek <jakub@redhat.com>
10701 PR middle-end/56461
10702 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
10704 2013-03-04 Martin Jambor <mjambor@suse.cz>
10706 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
10707 all appropriate places.
10709 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
10711 PR tree-optimization/56424
10712 * ipa-split.c (split_function): Do not set the RSO flag if result is
10713 not by reference and its type is a register type.
10715 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
10717 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
10718 (microblaze_legitimate_pic_operand): Likewise
10719 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
10720 new function microblaze_legitimate_pic_operand
10721 * config/microblaze/microblaze-protos.h
10722 (microblaze_legitimate_pic_operand): Declare.
10724 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10726 * config/microblaze/predicates.md (call_insn_simple_operand):
10727 New predicate for supported rtx code types.
10728 * config/microblaze/microblaze.md (call_internal1): Use
10729 call_insn_simple_operand predicate.
10731 2013-03-04 Jakub Jelinek <jakub@redhat.com>
10733 PR middle-end/56461
10734 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
10735 partitions.ordered_remove.
10737 PR middle-end/56461
10738 * tree-vect-stmts.c (vectorizable_conversion): Don't call
10739 vec_oprnds0.create (1) for modifier == NONE.
10741 PR middle-end/56461
10742 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
10743 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
10744 vec_oprnds1 right before pushing anything to it for
10747 PR middle-end/56461
10748 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
10749 set nbbs to 0 instead of having separate code path.
10750 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
10751 instead of false as last argument if returning NULL.
10753 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
10755 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
10756 the attribute is now called "target" instead of "option".
10757 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
10758 * doc/tm.texi.in (Target Attributes): Likewise document the correct
10759 attribute/pragma name for TARGET_OPTION_VALID_P and
10760 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
10761 * doc/tm.texi: Regenerated.
10763 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
10765 * config/microblaze/microblaze.c:
10766 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
10767 * config/microblaze/microblaze.h: Add -mxl-reorder to
10769 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
10770 instructions emitted if TARGET_REORDER.
10771 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
10772 or 0 for -m/-mno case, but initialises as 2 to detect default use case
10775 2013-03-01 Xinliang David Li <davidxl@google.com>
10777 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
10780 2013-03-01 Jakub Jelinek <jakub@redhat.com>
10782 PR middle-end/56461
10783 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
10784 vector even when returning true. Fix up function comment formatting.
10786 PR middle-end/56461
10787 * ira-build.c (ira_loop_nodes_count): New variable.
10788 (create_loop_tree_nodes): Initialize it.
10789 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
10791 PR middle-end/56461
10792 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
10793 method on dr_chain and result_chain.
10794 * tree-vect-stmts.c (vectorizable_store): Only call
10795 result_chain.create if j == 0.
10797 PR middle-end/56461
10798 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
10799 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
10800 before overwriting it.
10802 2013-03-01 Tobias Burnus <burnus@net-b.de>
10804 * doc/extended.texi (C Extensions): Change order in @menu
10806 (Other MIPS Built-in Functions): Move last MIPS entry before
10807 "picoChip Built-in Functions".
10808 (SH Built-in Functions): Move after RX Built-in Functions.
10809 * doc/gcc.texi (Introduction): Change order in @menu
10811 * doc/md.texi (Constraints): Ditto.
10812 * gty.texi (Type Information): Ditto.
10813 (User-provided marking routines for template types): Make
10815 * doc/invoke.texi (AArch64 Options): Move before
10816 "Adapteva Epiphany Options".
10818 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
10819 Jakub Jelinek <jakub@redhat.com>
10822 * asan.c (gate_asan): Lookup no_sanitize_address instead of
10823 no_address_safety_analysis attribute.
10824 * doc/extend.texi (no_address_safety_attribute): Rename to
10825 no_sanitize_address attribute, mention no_address_safety_analysis
10826 attribute as deprecated alias.
10828 2013-02-28 Jakub Jelinek <jakub@redhat.com>
10830 PR middle-end/56461
10831 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
10832 type to vec<vec<tree> > *.
10833 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
10834 to be vec<tree> instead of vec<tree> *, set vec_defs
10835 to vNULL and call vec_defs.create (number_of_vects), adjust other
10837 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
10838 vectorizable_condition): Adjust vect_get_slp_defs callers.
10840 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10842 * config/aarch64/aarch64.c
10843 (aarch64_float_const_representable): Remove unused variable.
10845 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10847 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
10849 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10851 * config/aarch64/aarch64-builtins.c
10852 (aarch64_init_simd_builtins): Make static.
10854 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10856 * config/aarch64/aarch64.c
10857 (aarch64_simd_make_constant): Make static.
10859 2013-02-28 Martin Jambor <mjambor@suse.cz>
10861 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
10862 with no initialization to the RHS of debug statements.
10864 2013-02-28 Martin Jambor <mjambor@suse.cz>
10866 PR tree-optimization/56294
10867 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
10869 (get_access_replacement): Do not call create_access_replacement.
10870 Assert a replacement exists.
10871 (get_repl_default_def_ssa_name): Create the replacement declaration
10874 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10876 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
10877 final_end_function.
10879 2013-02-28 Marek Polacek <polacek@redhat.com>
10881 PR rtl-optimization/56466
10882 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
10883 if we're changing a loop.
10884 (peel_loops_completely): Likewise.
10886 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
10889 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
10891 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
10894 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
10895 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
10896 INTX_FTYPE_FX, FX_FTYPE_INTX.
10897 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
10899 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
10901 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
10902 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
10903 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
10904 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
10905 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
10906 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
10907 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
10908 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
10909 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
10910 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
10911 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
10912 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
10913 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
10914 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
10915 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
10916 (avrxmega6): Increase max flash segments from 5 to 6.
10917 * config/avr/t-multilib: Regenerate.
10918 * config/avr/avr-tables.opt: Regenerate.
10919 * doc/avr-mmcu.texi: Regenerate.
10921 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
10923 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
10924 (avr_device_to_arch): Rename to avr_device_to_ld.
10925 (avr_device_to_as): New prototype.
10926 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
10927 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
10928 * config/avr/driver-avr.c (avr_device_to_as): New.
10929 (avr_device_to_arch): Rename to avr_device_to_ld.
10931 2013-02-27 Jakub Jelinek <jakub@redhat.com>
10933 PR middle-end/56461
10934 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
10935 method on dr_chain and result_chain.
10937 PR middle-end/56461
10938 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
10939 pointer_set_destroy on not_executed_last_iteration.
10941 PR middle-end/56461
10942 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
10944 PR middle-end/56461
10945 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
10946 FOR_EACH_DEFINED_FUNCTION when freeing state.
10948 PR middle-end/56461
10949 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
10951 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
10954 PR middle-end/56461
10955 * ipa-cp.c (decide_whether_version_node): Call vec_free on
10956 known_aggs[i].items and release known_aggs vector.
10958 PR middle-end/56461
10959 * ipa-reference.c (propagate): Free node_info even for alias nodes.
10961 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10963 * config/microblaze/microblaze.c (microblaze_emit_compare):
10964 Use xor for EQ/NE comparisions.
10965 * config/microblaze/microblaze.md (cstoresf4): Add constraints
10966 (cbranchsf4): Adjust operator to comparison_operator.
10968 2013-02-27 Jakub Jelinek <jakub@redhat.com>
10970 PR middle-end/56461
10971 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
10973 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
10974 vec_safe_push, always update *slot.
10975 (redirect_edge_var_map_clear): Use vec_free.
10976 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
10977 (free_var_map_entry): Use vec_free.
10978 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
10979 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
10981 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
10983 PR middle-end/45472
10984 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
10985 when the may_trap_p bit of the exprs being merged differs.
10986 Reorder tests for speculativeness in the logical and operator.
10988 2013-02-27 Jakub Jelinek <jakub@redhat.com>
10990 * incpath.c (add_standard_paths): Use reconcat instead of concat
10991 where appropriate and avoid leaking memory.
10993 * opts.h: Include obstack.h.
10994 (opts_concat): New prototype.
10995 (opts_obstack): New declaration.
10996 * opts.c (opts_concat): New function.
10997 (opts_obstack): New variable.
10998 (init_options_struct): Call gcc_init_obstack on opts_obstack.
10999 (finish_options): Use opts_concat instead of concat
11000 and XOBNEWVEC instead of XNEWVEC.
11001 * opts-common.c (generate_canonical_option, decode_cmdline_option,
11002 generate_option): Likewise.
11003 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
11004 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
11007 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
11008 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
11010 2013-02-26 Jakub Jelinek <jakub@redhat.com>
11012 PR middle-end/56461
11013 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
11015 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
11017 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
11018 (arm_block_move_unaligned_straight): Likewise.
11019 (arm_adjust_block_mem): Likewise.
11021 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
11024 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
11025 temp, cond and label.
11026 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
11029 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
11030 * config/c6x/c6x.h (dbx_register_map): Update declaration.
11033 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
11034 of prologue/epilogue functions.
11037 * config/tilegx/tilegx.c (tilegx_expand_prologue):
11038 Remove unused variable cfa_offset.
11039 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
11042 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
11043 type promotion to unsigned.
11046 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
11047 for HOST_WIDE_INT of 32 bit / same size as int.
11048 (arm_block_move_unaligned_straight): Likewise.
11049 (arm_adjust_block_mem): Likewise.
11052 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
11055 2013-02-26 Marek Polacek <polacek@redhat.com>
11057 PR tree-optimization/56426
11058 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
11060 2013-02-26 Richard Biener <rguenther@suse.de>
11063 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
11064 unused variable loops.
11066 2013-02-26 Jakub Jelinek <jakub@redhat.com>
11068 PR tree-optimization/56448
11069 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
11070 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
11071 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
11072 later operands of the references, or even first operand for
11073 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
11075 PR tree-optimization/56443
11076 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
11077 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
11078 to type_for_mode langhook.
11080 2013-02-25 Matt Turner <mattst88@gmail.com>
11082 * doc/invoke.texi: Document r4700.
11084 2013-02-25 Richard Biener <rguenther@suse.de>
11086 PR tree-optimization/56175
11087 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
11089 (simplify_bitwise_binary): ... here. Also guard the conversion
11090 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
11092 2013-02-25 Catherine Moore <clm@codesourcery.com>
11095 2013-02-24 Catherine Moore <clm@codesourcery.com>
11096 Maciej W. Rozycki <macro@codesourcery.com>
11097 Tom de Vries <tom@codesourcery.com>
11098 Nathan Sidwell <nathan@codesourcery.com>
11099 Iain Sandoe <iain@codesourcery.com>
11100 Nathan Froyd <froydnj@codesourcery.com>
11101 Chao-ying Fu <fu@mips.com>
11103 * doc/extend.texi: (micromips, nomicromips, nocompression):
11104 Document new function attributes.
11105 * doc/invoke.texi (minterlink-compressed, mmicromips,
11106 m14k, m14ke, m14kec): Document new options.
11107 (minterlink-mips16): Update documentation.
11108 * doc/md.texi (ZC, ZD): Document new constraints.
11109 * configure.ac (gcc_cv_as_micromips): Check if linker
11110 supports the .set micromips directive.
11111 * configure: Regenerate.
11112 * config.in: Regenerate.
11113 * config/mips/mips-tables.opt: Regenerate.
11114 * config/mips/micromips.md: New file.
11115 * constraints.md (ZC, AD): New constraints.
11116 * config/mips/predicates.md (movep_src_register): New predicate.
11117 (movep_src_operand): New predicate.
11118 (non_volatile_mem_operand): New predicate.
11119 * config/mips/mips.md (multimem): New type.
11120 (length): Differentiate between 17-bit and 18-bit branch offsets.
11121 (MOVEP1, MOVEP2): New mode iterator.
11122 (mov_<load>l): Use ZC constraint.
11123 (mov_<load>r): Likewise.
11124 (mov_<store>l): Likewise.
11125 (mov_<store>r): Likewise.
11126 (*branch_equality<mode>_inverted): Add microMIPS support.
11127 (*branch_equality<mode>): Likewise.
11128 (*jump_absolute): Likewise.
11129 (indirect_jump_<mode>): Likewise.
11130 (tablejump_<mode>): Likewise.
11131 (<optab>_internal): Likewise.
11132 (sibcall_internal): Likewise.
11133 (sibcall_value_internal): Likewise.
11134 (prefetch): Use constraint ZD.
11135 * config/mips/mips.opt (minterlink-compressed): New option.
11136 (minterlink-mips16): Now an alias for minterlink-compressed.
11137 (mmicromips): New option.
11138 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
11139 (compare_and_swap_12): Likewise.
11140 (sync_add<mode>): Likewise.
11141 (sync_<optab>_12): Likewise.
11142 (sync_old_<optab>_12): Likewise.
11143 (sync_new_<optab>_12): Likewise.
11144 (sync_nand_12): Likewise.
11145 (sync_old_nand_12): Likewise.
11146 (sync_new_nand_12): Likewise.
11147 (sync_sub<mode>): Likewise.
11148 (sync_old_add<mode>): Likewise.
11149 (sync_old_sub<mode>): Likewise.
11150 (sync_new_add<mode>): Likewise.
11151 (sync_new_sub<mode>): Likewise.
11152 (sync_<optab><mode>): Likewise.
11153 (sync_old_<optab><mode>): Likewise.
11154 (sync_new_<optab><mode>): Likewise.
11155 (sync_nand<mode>): Likewise.
11156 (sync_old_nand<mode>): Likewise.
11157 (sync_new_nand<mode>): Likewise.
11158 (sync_lock_test_and_set<mode>): Likewise.
11159 (test_and_set_12): Likewise.
11160 (atomic_compare_and_swap<mode>): Likewise.
11161 (atomic_exchange<mode>_llsc): Likewise.
11162 (atomic_fetch_add<mode>_llsc): Likewise.
11163 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
11164 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
11165 (umips_save_restore_pattern_p): Likewise.
11166 (umips_load_store_pair_p): Likewise.
11167 (umips_output_load_store_pair): Likewise.
11168 (umips_movep_target_p): Likewise.
11169 (umips_12bit_offset_address_p): Likewise.
11170 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
11171 (mips_base_mips16): Rename this...
11172 (mips_base_compression_flags): ...to this. Update all uses.
11173 (mips_attribute_table): Add micromips, nomicromips and nocompression.
11174 (mips_mips16_decl_p): Delete.
11175 (mips_nomips16_decl_p): Delete.
11176 (mips_get_compress_on_flags): New function.
11177 (mips_get_compress_off_flags): New function.
11178 (mips_get_compress_mode): New function.
11179 (mips_get_compress_on_name): New function.
11180 (mips_get_compress_off_name): New function.
11181 (mips_insert_attributes): Support multiple compression types.
11182 (mips_merge_decl_attributes): Likewise.
11183 (umips_12bit_offset_address_p): New function.
11184 (mips_start_function_definition): Emit .set micromips directive.
11185 (mips_call_may_need_jalx_p): New function.
11186 (mips_function_ok_for_sibcall): Add microMIPS support.
11187 (mips_print_operand_punctuation): Support short delay slots and
11189 (umips_swm_mask, umips_swm_encoding): New.
11190 (umips_build_save_restore): New function.
11191 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
11192 (was_mips16_p): Remove.
11193 (old_compression_mode): New.
11194 (mips_set_compression_mode): New function.
11195 (mips_set_current_function): Add microMIPS support.
11196 (mips_option_override): Likewise.
11197 (umips_save_restore_pattern_p): New function.
11198 (umips_output_save_restore): New function.
11199 (umips_load_store_pair_p_1): New function.
11200 (umips_load_store_pair_p): New function.
11201 (umips_output_load_store_pair_1): New function.
11202 (umips_output_load_store_pair): New function.
11203 (umips_movep_target_p) New function.
11204 (mips_prepare_pch_save): Add microMIPS support.
11205 * config/mips/mips.h (TARGET_COMPRESSION): New.
11206 (TARGET_CPU_CPP_BUILTINS): Update macro
11207 to use new compression flags and to support microMIPS.
11208 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
11209 (MIPS_ARCH_FLOAT_SPEC): Likewise.
11210 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
11211 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
11212 (ASM_SPEC): Support mmicromips and mno-micromips.
11213 (M16STORE_REG_P): New macro.
11214 (MIPS_CALL): Support TARGET_MICROMIPS.
11215 (MICROMIPS_J): New macro.
11216 (mips_base_mips16): Rename this...
11217 (mips_base_compression_flags): ...to this.
11218 (UMIPS_12BIT_OFFSET_P): New macro.
11219 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
11220 (MULTILIB_DIRNAMES): Likewise.
11222 2013-02-25 Tom de Vries <tom@codesourcery.com>
11224 PR rtl-optimization/56131
11225 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
11226 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
11227 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
11229 2013-02-25 Tobias Burnus <burnus@net-b.de>
11231 * doc/invoke.texi (-fsanitize=): Move from optimization
11232 to debugging options.
11234 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
11236 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
11238 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
11239 Alexander Monakov <amonakov@ispras.ru>
11241 PR middle-end/56077
11242 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
11243 flush pending lists also on non-jumps. Adjust comment.
11245 2013-02-24 Catherine Moore <clm@codesourcery.com>
11246 Maciej W. Rozycki <macro@codesourcery.com>
11247 Tom de Vries <tom@codesourcery.com>
11248 Nathan Sidwell <nathan@codesourcery.com>
11249 Iain Sandoe <iain@codesourcery.com>
11250 Nathan Froyd <froydnj@codesourcery.com>
11251 Chao-ying Fu <fu@mips.com>
11253 * doc/extend.texi: (micromips, nomicromips, nocompression):
11254 Document new function attributes.
11255 * doc/invoke.texi (minterlink-compressed, mmicromips,
11256 m14k, m14ke, m14kec): Document new options.
11257 (minterlink-mips16): Update documentation.
11258 * doc/md.texi (ZC, ZD): Document new constraints.
11259 * configure.ac (gcc_cv_as_micromips): Check if linker
11260 supports the .set micromips directive.
11261 * configure: Regenerate.
11262 * config.in: Regenerate.
11263 * config/mips/mips-tables.opt: Regenerate.
11264 * config/mips/micromips.md: New file.
11265 * constraints.md (ZC, AD): New constraints.
11266 * config/mips/predicates.md (movep_src_register): New predicate.
11267 (movep_src_operand): New predicate.
11268 (non_volatile_mem_operand): New predicate.
11269 * config/mips/mips.md (multimem): New type.
11270 (length): Differentiate between 17-bit and 18-bit branch offsets.
11271 (MOVEP1, MOVEP2): New mode iterator.
11272 (mov_<load>l): Use ZC constraint.
11273 (mov_<load>r): Likewise.
11274 (mov_<store>l): Likewise.
11275 (mov_<store>r): Likewise.
11276 (*branch_equality<mode>_inverted): Add microMIPS support.
11277 (*branch_equality<mode>): Likewise.
11278 (*jump_absolute): Likewise.
11279 (indirect_jump_<mode>): Likewise.
11280 (tablejump_<mode>): Likewise.
11281 (<optab>_internal): Likewise.
11282 (sibcall_internal): Likewise.
11283 (sibcall_value_internal): Likewise.
11284 (prefetch): Use constraint ZD.
11285 * config/mips/mips.opt (minterlink-compressed): New option.
11286 (minterlink-mips16): Now an alias for minterlink-compressed.
11287 (mmicromips): New option.
11288 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
11289 (compare_and_swap_12): Likewise.
11290 (sync_add<mode>): Likewise.
11291 (sync_<optab>_12): Likewise.
11292 (sync_old_<optab>_12): Likewise.
11293 (sync_new_<optab>_12): Likewise.
11294 (sync_nand_12): Likewise.
11295 (sync_old_nand_12): Likewise.
11296 (sync_new_nand_12): Likewise.
11297 (sync_sub<mode>): Likewise.
11298 (sync_old_add<mode>): Likewise.
11299 (sync_old_sub<mode>): Likewise.
11300 (sync_new_add<mode>): Likewise.
11301 (sync_new_sub<mode>): Likewise.
11302 (sync_<optab><mode>): Likewise.
11303 (sync_old_<optab><mode>): Likewise.
11304 (sync_new_<optab><mode>): Likewise.
11305 (sync_nand<mode>): Likewise.
11306 (sync_old_nand<mode>): Likewise.
11307 (sync_new_nand<mode>): Likewise.
11308 (sync_lock_test_and_set<mode>): Likewise.
11309 (test_and_set_12): Likewise.
11310 (atomic_compare_and_swap<mode>): Likewise.
11311 (atomic_exchange<mode>_llsc): Likewise.
11312 (atomic_fetch_add<mode>_llsc): Likewise.
11313 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
11314 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
11315 (umips_save_restore_pattern_p): Likewise.
11316 (umips_load_store_pair_p): Likewise.
11317 (umips_output_load_store_pair): Likewise.
11318 (umips_movep_target_p): Likewise.
11319 (umips_12bit_offset_address_p): Likewise.
11320 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
11321 (mips_base_mips16): Rename this...
11322 (mips_base_compression_flags): ...to this. Update all uses.
11323 (mips_attribute_table): Add micromips, nomicromips and nocompression.
11324 (mips_mips16_decl_p): Delete.
11325 (mips_nomips16_decl_p): Delete.
11326 (mips_get_compress_on_flags): New function.
11327 (mips_get_compress_off_flags): New function.
11328 (mips_get_compress_mode): New function.
11329 (mips_get_compress_on_name): New function.
11330 (mips_get_compress_off_name): New function.
11331 (mips_insert_attributes): Support multiple compression types.
11332 (mips_merge_decl_attributes): Likewise.
11333 (umips_12bit_offset_address_p): New function.
11334 (mips_start_function_definition): Emit .set micromips directive.
11335 (mips_call_may_need_jalx_p): New function.
11336 (mips_function_ok_for_sibcall): Add microMIPS support.
11337 (mips_print_operand_punctuation): Support short delay slots and
11339 (umips_swm_mask, umips_swm_encoding): New.
11340 (umips_build_save_restore): New function.
11341 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
11342 (was_mips16_p): Remove.
11343 (old_compression_mode): New.
11344 (mips_set_compression_mode): New function.
11345 (mips_set_current_function): Add microMIPS support.
11346 (mips_option_override): Likewise.
11347 (umips_save_restore_pattern_p): New function.
11348 (umips_output_save_restore): New function.
11349 (umips_load_store_pair_p_1): New function.
11350 (umips_load_store_pair_p): New function.
11351 (umips_output_load_store_pair_1): New function.
11352 (umips_output_load_store_pair): New function.
11353 (umips_movep_target_p) New function.
11354 (mips_prepare_pch_save): Add microMIPS support.
11355 * config/mips/mips.h (TARGET_COMPRESSION): New.
11356 (TARGET_CPU_CPP_BUILTINS): Update macro
11357 to use new compression flags and to support microMIPS.
11358 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
11359 (MIPS_ARCH_FLOAT_SPEC): Likewise.
11360 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
11361 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
11362 (ASM_SPEC): Support mmicromips and mno-micromips.
11363 (M16STORE_REG_P): New macro.
11364 (MIPS_CALL): Support TARGET_MICROMIPS.
11365 (MICROMIPS_J): New macro.
11366 (mips_base_mips16): Rename this...
11367 (mips_base_compression_flags): ...to this.
11368 (UMIPS_12BIT_OFFSET_P): New macro.
11369 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
11370 (MULTILIB_DIRNAMES): Likewise.
11372 2013-02-24 Jakub Jelinek <jakub@redhat.com>
11375 * target-globals.c (save_target_globals): For init_reg_sets and
11376 target_reinit remporarily set this_fn_optabs to this_target_optabs.
11378 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
11380 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
11381 * config/aarch64/t-aarch64
11382 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
11384 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
11386 PR inline-asm/56148
11387 * lra-constraints.c (process_alt_operands): Reload operand
11388 conflicting with earlier clobber only if no more other conflicting
11391 2013-02-22 Jakub Jelinek <jakub@redhat.com>
11394 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
11395 if not linking a shared library.
11397 2013-02-22 Seth LaForge <sethml@google.com>
11399 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
11401 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
11403 * config/arm/arm.md (split for extendsidi): Update condition.
11404 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
11405 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
11406 (qhs_zextenddi_cstr): Likewise.
11408 2013-02-21 Jakub Jelinek <jakub@redhat.com>
11410 PR middle-end/56420
11411 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
11412 avoid signed wrapping.
11413 (expand_mult): Handle properly multiplication by
11414 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
11415 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
11416 in the compiler if coeff is HOST_WIDE_INT_MIN.
11417 (expand_divmod): Don't make ext_op1 static, change it's type to
11418 uhwi. Avoid undefined behavior in -INTVAL (op1).
11420 PR rtl-optimization/50339
11421 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
11423 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
11424 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
11425 into splitting_ashiftrt field.
11426 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
11428 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
11431 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
11433 PR middle-end/56108
11434 * trans-mem.c (execute_tm_mark): Do not expand transactions that
11435 are sure to go irrevocable.
11437 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
11439 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
11440 scalars are valid operands.
11442 2013-02-21 Martin Jambor <mjambor@suse.cz>
11444 PR tree-optimization/56310
11445 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
11446 only matching indices and non-negative final offsets.
11447 (intersect_aggregates_with_edge): Pass src_idx to
11448 agg_replacements_to_vector. Pass src_idx insstead of index to
11449 intersect_with_agg_replacements.
11451 2013-02-21 Martin Jambor <mjambor@suse.cz>
11453 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
11454 instead of hard-wired defaults.
11456 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
11458 * doc/invoke.texi (MIPS Options): Update documentation of the
11459 floating-point multiply-accumulate instruction restrictions.
11461 2013-02-21 Kostya Serebryany <kcc@google.com>
11463 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
11464 asan_shadow_offset on x86_64 linux.
11466 2013-02-21 Richard Biener <rguenther@suse.de>
11468 PR tree-optimization/56415
11470 2013-02-11 Richard Biener <rguenther@suse.de>
11472 PR tree-optimization/56273
11473 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
11476 2013-02-21 Jakub Jelinek <jakub@redhat.com>
11479 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
11482 PR inline-asm/56405
11483 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
11484 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
11486 2013-02-20 Jan Hubicka <jh@suse.cz>
11488 PR tree-optimization/56265
11489 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
11490 when target is referenced for first time.
11492 2013-02-20 Richard Biener <rguenther@suse.de>
11494 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
11495 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
11496 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
11497 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
11498 not return anything.
11499 (rename_ssa_copies): Do not remove unused locals.
11500 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
11501 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
11502 * passes.c (execute_function_todo): Do not schedule unused locals
11503 removal if cleanup_tree_cfg did something.
11504 * tree-ssa-live.c (remove_unused_locals): Dump statistics
11505 about the number of removed locals.
11507 2013-02-20 Richard Biener <rguenther@suse.de>
11509 PR tree-optimization/56398
11510 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
11512 2013-02-20 Martin Jambor <mjambor@suse.cz>
11514 PR tree-optimization/55334
11515 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
11516 restricted pointers to arrays.
11518 2013-02-20 Richard Biener <rguenther@suse.de>
11519 Jakub Jelinek <jakub@redhat.com>
11521 PR tree-optimization/56396
11522 * tree-ssa-ccp.c (n_const_val): New static variable.
11523 (get_value): Return NULL for SSA names we don't have a lattice
11525 (ccp_initialize): Initialize n_const_val.
11526 * tree-ssa-copy.c (n_copy_of): New static variable.
11527 (init_copy_prop): Initialize n_copy_of.
11528 (get_value): Return NULL_TREE for SSA names we don't have a
11531 2013-02-20 Martin Jambor <mjambor@suse.cz>
11533 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
11535 2013-02-20 Richard Biener <rguenther@suse.de>
11537 * genpreds.c (write_lookup_constraint): Do not compare first
11538 letter of the constraint again.
11540 2013-02-20 Richard Biener <rguenther@suse.de>
11542 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
11544 (get_use_iv_cost): Terminate hashtable walk when coming across
11547 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
11549 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
11550 reassociation for avx2 targets.
11552 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11554 * config/microblaze/microblaze.c: microblaze_has_clz = 0
11555 Add version check for v8.10.a to enable microblaze_has_clz
11556 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
11557 version and TARGET_PATTERN_COMPARE check
11558 * config/microblaze/microblaze.md: New clzsi2 instruction
11560 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11562 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
11563 function before branching.
11565 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
11567 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
11569 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
11571 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
11573 PR middle-end/55889
11574 * sel-sched.c: Include ira.h.
11575 (implicit_clobber_conflict_p): New function.
11576 (moveup_expr): Use it.
11577 * Makefile.in (sel-sched.o): Depend on ira.h.
11579 2013-02-19 Richard Biener <rguenther@suse.de>
11581 PR tree-optimization/56384
11582 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
11583 (vn_hash_type): Split out from ...
11584 (vn_hash_constant_with_type): ... here.
11585 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
11586 (vn_phi_eq): Compare types from vn_phi_s structure.
11587 (vn_phi_lookup): Populate vn_phi_s type.
11588 (vn_phi_insert): Likewise.
11590 2013-02-19 Jakub Jelinek <jakub@redhat.com>
11592 PR tree-optimization/56350
11593 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
11594 if haven't found reduction or nested cycle operand, rather than
11595 asserting we must find it.
11597 PR tree-optimization/56381
11598 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
11601 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
11602 Jakub Jelinek <jakub@redhat.com>
11605 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
11606 (swap_optab_enable): Same.
11607 (init_all_optabs): Use argument instead of global.
11608 * tree.h (struct tree_optimization_option): New field target_optabs.
11609 * expr.h (init_all_optabs): Add argument to prototype.
11610 (TREE_OPTIMIZATION_OPTABS): New.
11611 (save_optabs_if_changed): Protoize.
11612 * optabs.h: Declare this_fn_optabs.
11613 * optabs.c (save_optabs_if_changed): New.
11614 Declare this_fn_optabs.
11615 (init_optabs): Add argument to init_all_optabs() call.
11616 * function.c (invoke_set_current_function_hook): Handle per
11618 * function.h (struct function): New field optabs.
11619 * config/mips/mips.c (mips_set_mips16_mode): Handle when
11620 optimization_current_node has changed.
11621 * target-globals.h (save_target_globals_default_opts): Protoize.
11622 * target-globals.c (save_target_globals_default_opts): New.
11624 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11627 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
11628 registers %fr12 and %fr12R as call used.
11631 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
11632 and HImode, require all displacements to be an integer multiple of
11634 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
11635 only allow QImode and HImode when reload is in progress and strict is
11636 true. Likewise for symbolic addresses. Use base14_operand to check
11637 displacements in REG+BASE addresses.
11639 2013-02-18 Richard Biener <rguenther@suse.de>
11641 PR tree-optimization/56366
11642 * tree-vect-loop.c (get_initial_def_for_induction): Properly
11643 handle sign-conversion of outer-loop initial induction value.
11645 2013-02-18 Richard Biener <rguenther@suse.de>
11647 PR middle-end/56349
11648 * cfghooks.c (merge_blocks): If we merge a latch into another
11649 block adjust references to it.
11650 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
11651 (verify_loop_structure): Verify that a recorded latch is in fact
11654 2013-02-18 Richard Biener <rguenther@suse.de>
11656 PR tree-optimization/56321
11657 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
11658 order SSA name release and virtual operand unlinking.
11660 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11662 * config/microblaze/microblaze.md (save_stack_block): Define.
11663 (restore_stack_block): Likewise.
11665 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11667 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
11668 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
11669 * config/microblaze/microblaze.c (microblaze_option_override):
11670 Bail out early for PIC modes when target does not support PIC.
11672 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11674 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
11675 Replace with a microblaze version.
11676 (microblaze_trampoline_init): Adapt for microblaze.
11677 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
11680 2013-02-16 Jakub Jelinek <jakub@redhat.com>
11681 Dodji Seketeli <dodji@redhat.com>
11684 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
11685 (instrument_mem_region_access): Do not forget to always put
11686 instrumentation of the of 'base' and 'base + len' in a "if (len !=
11687 0) statement, even for cases where either 'base' or 'base + len'
11688 are not instrumented -- because they have been previously
11689 instrumented. Simplify the logic by putting all the statements
11690 instrument 'base + len' inside a sequence, and then insert that
11691 sequence right before the current insertion point. Then, to
11692 instrument 'base + len', just get an iterator on that statement.
11693 And do not forget to update the pointer to iterator the function
11694 received as argument.
11696 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
11698 PR rtl-optimization/56348
11699 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
11701 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
11703 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
11704 (clean_graph_dump_file): Pass base to start_graph_dump.
11706 2013-02-14 Richard Henderson <rth@redhat.com>
11709 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
11711 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
11713 * collect2-aix.h: Define F_LOADONLY.
11715 2013-02-14 Richard Biener <rguenther@suse.de>
11718 * varasm.c (output_constant_def_1): Get the decl representing
11719 the constant as argument.
11720 (output_constant_def): Wrap output_constant_def_1.
11721 (make_decl_rtl): Use output_constant_def_1 with the decl
11722 representing the constant.
11723 (build_constant_desc): Optionally re-use a decl already
11724 representing the constant.
11725 (tree_output_constant_def): Adjust.
11727 2013-02-14 Dodji Seketeli <dodji@redhat.com>
11730 * asan.c (instrument_builtin_call): Really put the length of the
11731 second source argument into src1_len.
11733 2013-02-13 Jakub Jelinek <jakub@redhat.com>
11735 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
11736 argument. If it is false, don't create edge from then_bb to
11738 (insert_if_then_before_iter): Pass true to it.
11739 (build_check_stmt): Pass false to it.
11740 (transform_statements): Flush hash table only on extended basic
11741 block boundaries, rather than at the beginning of every bb.
11742 Don't flush hash table on nonfreeing_call_p calls.
11743 * tree-flow.h (nonfreeing_call_p): New prototype.
11744 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
11746 2013-02-13 David S. Miller <davem@davemloft.net>
11748 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
11750 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
11753 * ira.c (max_regno_before_ira): Move from ...
11755 (fix_reg_equiv_init): Use max_regno_before_ira instead of
11758 2013-02-13 Jakub Jelinek <jakub@redhat.com>
11760 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
11762 2013-02-13 Richard Biener <rguenther@suse.de>
11765 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
11766 globals in MEM_REFs.
11768 2013-02-13 Richard Biener <rguenther@suse.de>
11770 * loop-init.c (loop_optimizer_init): Clear loop state when
11771 re-initializing preserved loops.
11772 * loop-unswitch.c (unswitch_single_loop): Return whether
11773 we unswitched the loop. Do not verify loop state here.
11774 (unswitch_loops): When we unswitched a loop discover new loops.
11776 2013-02-13 Kostya Serebryany <kcc@google.com>
11778 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
11780 * sanitizer.def: Rename __asan_init to __asan_init_v1.
11782 2013-02-12 Dodji Seketeli <dodji@redhat.com>
11784 Avoid instrumenting duplicated memory access in the same basic block
11785 * Makefile.in (asan.o): Add new dependency on hash-table.h
11786 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
11787 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
11788 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
11789 (free_mem_ref_resources, has_mem_ref_been_instrumented)
11790 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
11791 (get_mem_ref_of_assignment): New functions.
11792 (get_mem_refs_of_builtin_call): Extract from
11793 instrument_builtin_call and tweak a little bit to make it fit with
11795 (instrument_builtin_call): Use the new
11796 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
11797 of is_gimple_builtin_call.
11798 (instrument_derefs, instrument_mem_region_access): Insert the
11799 instrumented memory reference into the hash table.
11800 (maybe_instrument_assignment): Renamed instrument_assignment into
11801 this, and change it to advance the iterator when instrumentation
11802 actually happened and return true in that case. This makes it
11803 homogeneous with maybe_instrument_assignment, and thus give a
11804 chance to callers to be more 'regular'.
11805 (transform_statements): Clear the memory reference hash table
11806 whenever we enter a new BB, when we cross a function call, or when
11807 we are done transforming statements. Use
11808 maybe_instrument_assignment instead of instrumentation. No more
11809 need to special case maybe_instrument_assignment and advance the
11810 iterator after calling it; it's now handled just like
11811 maybe_instrument_call. Update comment.
11813 2013-02-13 Richard Biener <rguenther@suse.de>
11815 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
11816 Fix loop discovery code.
11818 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
11820 PR inline-asm/56148
11821 * lra-constraints.c (process_alt_operands): Match early clobber
11822 operand with itself. Check conflicts with earlyclobber only if
11823 the operand is not reloaded. Prefer to reload conflicting operand
11824 if earlyclobber and matching operands are the same.
11826 2013-02-12 Richard Biener <rguenther@suse.de>
11829 * lto-streamer-out.c (write_symbol): Do not output symbols
11830 for hard register variables.
11832 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
11835 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
11836 (umulsidi3_insn, mulsidi3_insn): New insns.
11838 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
11840 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
11841 (struct tune_params): Add vec_costs field.
11842 * config/arm/arm.c (arm_builtin_vectorization_cost)
11843 (arm_add_stmt_cost): New functions.
11844 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
11845 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
11846 (arm_default_vec_cost): New struct of type cpu_vec_costs.
11847 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
11848 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
11849 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
11850 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
11852 2013-02-12 Richard Biener <rguenther@suse.de>
11855 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
11856 decls again if possible.
11858 2013-02-12 Richard Biener <rguenther@suse.de>
11860 PR middle-end/56288
11861 * tree-ssa.c (verify_ssa_name): Fix check, move
11862 SSA_NAME_IN_FREE_LIST check up.
11864 2013-02-12 Jakub Jelinek <jakub@redhat.com>
11865 Steven Bosscher <steven@gcc.gnu.org>
11867 PR rtl-optimization/56151
11868 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
11869 equal to op0 or op1, and last_insn pattern is CODE operation
11870 with MEM dest and one of the operands matches that MEM.
11872 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
11874 * doc/extend.texi: Document Function Multiversioning and "default"
11875 parameter string to target attribute.
11876 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
11877 target attribute parameter is "default".
11878 (ix86_compare_version_priority): Remove checks for target attribute.
11879 (ix86_mangle_function_version_assembler_name): Change error to sorry.
11880 Remove check for target attribute equal to NULL. Add assert.
11881 (ix86_generate_version_dispatcher_body): Change error to sorry.
11883 2013-02-11 Iain Sandoe <iain@codesourcery.com>
11884 Jack Howarth <howarth@bromo.med.uc.edu>
11885 Patrick Marlier <patrick.marlier@gmail.com>
11888 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
11889 define ENDFILE_SPEC as TM_DESTRUCTOR.
11890 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
11892 2013-02-11 Alexander Potapenko <glider@google.com>
11893 Jack Howarth <howarth@bromo.med.uc.edu>
11894 Jakub Jelinek <jakub@redhat.com>
11897 * config/darwin.c (cdtor_record): Rename ctor_record.
11898 (sort_cdtor_records): Rename sort_ctor_records.
11899 (finalize_dtors): New routine to sort destructors by
11900 priority before use in assemble_integer.
11901 (machopic_asm_out_destructor): Use finalize_dtors if needed.
11903 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
11905 PR rtl-optimization/56275
11906 * simplify-rtx.c (avoid_constant_pool_reference): Check that
11907 offset is non-negative and less than cmode size before
11908 calling simplify_subreg.
11910 2013-02-11 Richard Biener <rguenther@suse.de>
11912 PR tree-optimization/56264
11913 * cfgloop.h (fix_loop_structure): Adjust prototype.
11914 * loop-init.c (fix_loop_structure): Return the number of
11915 newly discovered loops.
11916 * tree-cfgcleanup.c (repair_loop_structures): When new loops
11917 are discovered, do a full loop-closed SSA rewrite.
11919 2013-02-11 Richard Biener <rguenther@suse.de>
11921 PR tree-optimization/56273
11922 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
11924 (check_array_ref): Fix missing newline in dumps.
11925 (search_for_addr_array): Likewise.
11927 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
11929 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
11931 2013-02-09 Jakub Jelinek <jakub@redhat.com>
11934 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
11936 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
11938 PR rtl-optimization/56246
11939 * lra-constraints.c (simplify_operand_subreg): Try to reuse
11941 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
11942 constraints are satisfied.
11944 2013-02-08 Jeff Law <law@redhat.com>
11947 * emit-rtl.c (reg_is_parm_p): New function.
11948 * regs.h (reg_is_parm_p): New prototype.
11949 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
11950 callee-clobbered registers.
11952 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
11955 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
11956 If there is no implicit builtin declaration, just return NULL.
11958 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
11960 * config/i386/sse.md (FMAMODEM): New mode iterator.
11961 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
11962 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
11964 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
11966 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
11967 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
11968 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
11970 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11972 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
11973 (microblaze*-*-elf): Likewise.
11974 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
11976 * config/microblaze/microblaze-c.c: Add builtin defines for
11977 _LITTLE_ENDIAN and _BIG_ENDIAN.
11978 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
11979 add to TARGET_DEFAULT flags.
11980 Expand ASM_SPEC and LINK_SPEC.
11981 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
11982 * config/microblaze/microblaze.md: Update extendsidi2 and
11983 movdi_internal instructions to use low-order / high-order reg
11985 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
11986 options and inversemask / mask of LITTLE_ENDIAN.
11987 * config/microblaze/t-microblaze: Expand multilib options to
11988 include mlittle-endian (le) and update exceptions patterns.
11990 2013-02-08 Jakub Jelinek <jakub@redhat.com>
11992 PR rtl-optimization/56195
11993 * lra-constraints.c (get_reload_reg): Don't reuse regs
11994 if they have smaller mode than requested, if they have
11995 wider mode than requested, try to return a SUBREG.
11997 PR tree-optimization/56250
11998 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
11999 if type is unsigned and code isn't MULT_EXPR.
12001 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
12003 PR tree-optimization/56064
12004 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
12005 bits according to mode.
12006 * fixed-value.h (fixed_from_double_int)
12007 (const_fixed_from_double_int): Adjust comments.
12009 2013-02-08 Richard Biener <rguenther@suse.de>
12012 * lto-streamer.h (struct data_in): Remove current_file, current_line
12013 and current_col members.
12014 * lto-streamer-out.c (lto_output_location): Stream changed bits
12015 en-block for efficiency.
12016 * lto-streamer-in.c (clear_line_info): Remove.
12017 (lto_input_location): Cache current file, line and column
12018 globally via local statics. Read changed bits en-block.
12019 (input_function): Do not call clear_line_info.
12020 (lto_read_body): Likewise.
12021 (lto_input_toplevel_asms): Likewise.
12023 2013-02-08 Michael Matz <matz@suse.de>
12025 PR tree-optimization/52448
12026 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
12027 (nt_call_phase): New static.
12028 (add_or_mark_expr): Only mark accesses with newer phase than any
12030 (nonfreeing_call_p): New.
12031 (nt_init_block): Update nt_call_phase, mark blocks as visited.
12032 (nt_fini_block): Keep blocks marked as visited.
12033 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
12035 2013-02-08 Richard Biener <rguenther@suse.de>
12037 * ira.c (ira): Free broken dominator information.
12039 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
12041 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
12043 2013-02-08 Marek Polacek <polacek@redhat.com>
12045 * cfgloop.c (verify_loop_structure): Add more checking of headers.
12047 2013-02-08 Richard Biener <rguenther@suse.de>
12049 PR middle-end/56181
12050 * cfgloop.h (flow_loops_find): Adjust.
12051 (bb_loop_header_p): Declare.
12052 * cfgloop.c (bb_loop_header_p): New function split out from ...
12053 (flow_loops_find): ... here. Adjust function signature,
12054 support incremental loop structure update.
12055 (verify_loop_structure): Cleanup. Verify a loop is a loop.
12056 * cfgloopmanip.c (fix_loop_structure): Move ...
12057 * loop-init.c (fix_loop_structure): ... here.
12058 (apply_loop_flags): Split out from ...
12059 (loop_optimizer_init): ... here.
12060 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
12061 in incremental mode, only remove dead loops here.
12063 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
12066 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
12067 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
12068 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
12069 (*round<mode>3.libgcc): New insns for fixed-modes.
12070 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
12071 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
12072 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
12073 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
12074 implementations. Define to __builtin_avr_absFX,
12075 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
12076 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
12077 __builtin_avr_countlsFX, respectively.
12078 * config/avr/avr-c.c (target.h): Include it.
12079 (enum avr_builtin_id): New enum.
12080 (avr_resolve_overloaded_builtin): New static function.
12081 (avr_register_target_pragmas): Use it to set
12082 targetm.resolve_overloaded_builtin.
12083 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
12084 tree nodes used by DEF_BUILTIN.
12085 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
12086 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
12087 <AVR_BUILTIN_xxBITS>: Same.
12089 2013-02-08 Richard Biener <rguenther@suse.de>
12091 * cfgloop.c (verify_loop_structure): Properly handle
12092 a loop exiting to another loop header.
12093 * ira-int.h (ira_loops): Remove.
12094 * ira.c (ira_loops): Remove.
12095 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
12096 (do_reload): Use loop_optimizer_finalize.
12097 * ira-build.c (create_loop_tree_nodes): Use get_loops and
12098 number_of_loops to access the loop tree.
12099 (more_one_region_p): Likewise.
12100 (finish_loop_tree_nodes): Likewise.
12101 (rebuild_regno_allocno_maps): Likewise.
12102 (mark_loops_for_removal): Likewise.
12103 (mark_all_loops_for_removal): Likewise.
12104 (remove_unnecessary_regions): Likewise.
12105 (ira_build): Likewise.
12106 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
12108 2013-02-08 Richard Biener <rguenther@suse.de>
12110 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
12111 * ipa-pure-const.c (analyze_function): Avoid calling
12112 mark_irreducible_loops twice.
12113 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
12115 2013-02-07 David S. Miller <davem@davemloft.net>
12117 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
12119 * var-tracking.c (vt_add_function_parameter): Test the presence of
12120 HAVE_window_save properly and do not remap argument registers when
12121 we have a leaf function.
12123 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
12126 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
12128 * config/i386/i386.c (ix86_print_operand): Ditto.
12130 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
12132 * lra-constraints.c (process_alt_operands): Fix recently added comment.
12134 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
12136 PR rtl-optimization/56225
12137 * lra-constraints.c (process_alt_operands): Check that reload hard
12138 reg can hold value for strict_low_part.
12140 2013-02-07 Jakub Jelinek <jakub@redhat.com>
12143 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
12144 dwarf2out_end_function.
12145 (in_first_function_p, maybe_at_text_label_p,
12146 first_loclabel_num_not_at_text_label): New variables.
12147 (dwarf2out_var_location): In the first function find out
12148 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
12149 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
12152 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
12154 PR rtl-optimization/56178
12155 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
12156 SUBREG of a register. Tidy up related block of code.
12157 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
12158 note if the source is a register or a SUBREG of a register.
12160 2013-02-07 Jakub Jelinek <jakub@redhat.com>
12163 * config/rs6000/rs6000.md (ptrm): New mode attr.
12164 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
12165 call_value_indirect_aix<pttrsize>,
12166 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
12169 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
12171 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
12172 if -bnortl. Convert to strcmp and strncmp.
12174 2013-02-07 Alan Modra <amodra@gmail.com>
12177 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
12178 addresses won't wrap when offsetting.
12179 (rs6000_secondary_reload): Provide secondary reloads needed for
12180 wrapping LO_SUM addresses.
12182 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
12184 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
12185 MACH, just __MACH__.
12187 2013-02-06 Richard Biener <rguenther@suse.de>
12189 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
12190 instead of calling fix_loop_structure.
12192 2013-02-06 Jakub Jelinek <jakub@redhat.com>
12194 PR middle-end/56217
12195 * omp-low.c (use_pointer_for_field): Return false if
12196 lower_send_shared_vars doesn't generate any copy-out code.
12198 2013-02-06 Tom de Vries <tom@codesourcery.com>
12200 PR rtl-optimization/56131
12201 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
12202 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
12203 of the label is NULL. Add comment.
12205 2013-02-05 Jakub Jelinek <jakub@redhat.com>
12207 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
12210 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
12211 (STATIC_LIBTSAN_LIBS): Likewise.
12212 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
12213 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
12214 is defined, don't add anything else beyond that.
12215 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
12216 (LINK_COMMAND_SPEC): Use them.
12218 PR tree-optimization/56205
12219 * tree-stdarg.c (check_all_va_list_escapes): Return true if
12220 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
12221 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
12223 2013-02-05 Richard Biener <rguenther@suse.de>
12225 PR tree-optimization/53342
12226 PR tree-optimization/53185
12227 * tree-vectorizer.h (vect_check_strided_load): Remove.
12228 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
12229 not disallow peeling for vectorized strided loads.
12230 (vect_check_strided_load): Make static and simplify.
12231 (vect_analyze_data_refs): Adjust.
12232 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
12233 correctly when vectorizing strided loads.
12235 2013-02-05 Richard Biener <rguenther@suse.de>
12237 * doc/install.texi: Refer to ISL, not PPL.
12239 2013-02-05 Jan Hubicka <jh@suse.cz>
12241 PR tree-optimization/55789
12242 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
12244 2013-02-05 Jan Hubicka <jh@suse.cz>
12246 PR tree-optimization/55789
12247 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
12248 the dead call anyway.
12250 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
12253 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
12255 2013-02-04 Alexander Potapenko <glider@google.com>
12256 Jack Howarth <howarth@bromo.med.uc.edu>
12257 Jakub Jelinek <jakub@redhat.com>
12260 * config/darwin.c (sort_ctor_records): Stabilized qsort
12261 on constructor priority by using original position.
12262 (finalize_ctors): New routine to sort constructors by
12263 priority before use in assemble_integer.
12264 (machopic_asm_out_constructor): Use finalize_ctors if needed.
12266 2013-02-04 Jakub Jelinek <jakub@redhat.com>
12269 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
12270 about visibility on artificial decls.
12271 * config/sol2.c (solaris_assemble_visibility): Likewise.
12273 2013-02-04 Kai Tietz <ktietz@redhat.com>
12276 * config/i386/i386.c (function_value_ms_64): Add additional valtype
12277 argument and improve checking of return-argument types for 16-byte
12279 (ix86_function_value_1): Add additional valtype argument on call
12280 of function_value_64.
12281 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
12282 handling infunction_value_64 function.
12284 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
12286 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
12288 2013-02-04 Richard Biener <rguenther@suse.de>
12290 PR tree-optimization/56188
12291 * tree-ssa-structalias.c (label_visit): Consider case with
12292 initially non-empty points-to set.
12293 (perform_var_substitution): Dump node mapping and clean up.
12295 2013-02-04 Richard Guenther <rguenther@suse.de>
12298 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
12299 node prevail as last resort.
12300 (lto_symtab_merge_decls): Remove guard on LTRANS here.
12301 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
12303 2013-02-04 Richard Biener <rguenther@suse.de>
12305 PR tree-optimization/56113
12306 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
12308 (equiv_class_lookup_or_add): ... this.
12309 (label_visit): Adjust and fix error in previous patch.
12310 (perform_var_substitution): Adjust.
12312 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
12314 * config/sh/divtab.c: Fix formatting and comments throughout the file.
12315 * config/sh/sh4-300.md: Likewise.
12316 * config/sh/sh4a.md: Likewise.
12317 * config/sh/constraints.md: Likewise.
12318 * config/sh/sh.md: Likewise.
12319 * config/sh/netbsd-elf.h: Likewise.
12320 * config/sh/predicates.md: Likewise.
12321 * config/sh/sh-protos.h: Likewise.
12322 * config/sh/ushmedia.h: Likewise.
12323 * config/sh/linux.h: Likewise.
12324 * config/sh/sh.c: Likewise.
12325 * config/sh/superh.h: Likewise.
12326 * config/sh/elf.h: Likewise.
12327 * config/sh/sh4.md: Likewise.
12328 * config/sh/sh.h: Likewise.
12330 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12332 * config/pa/constraints.md: Adjust unused letters. Change "T"
12333 constraint to match_test floating_point_store_memory_operand().
12334 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
12335 (base14_operand): New.
12336 (floating_point_store_memory_operand): New.
12337 (integer_store_memory_operand): Revise to use base14_operand and
12338 reg_plus_base_memory_operand.
12339 (move_dest_operand): Allow symbolic_memory_operands.
12340 (symbolic_memory_operand): Check for LO_SOM.
12341 (symbolic_operand): Change default case to break.
12342 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
12343 CONST_DOUBLE values to be reloaded by putting them into memory when
12344 the destination is a floating point register.
12345 (movdf): Remove code to handle CONST_DOUBLE.
12347 (reload_indf_r1): New.
12348 (reload_insf_r1): New.
12349 Consistently use "Q" and "T" constraints with integer and floating
12350 point move instructions, respectively.
12351 (movdi): Remove FAIL.
12352 Change predicate for source operand unamed DImode move from
12353 general_operand to move_src_operand.
12354 (umulsidi3): Change predicate for destination operand to
12356 Likewise for similar unamed patterns.
12357 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
12358 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
12359 (hppa_legitimize_address): Simplify mask calculation.
12360 (pa_emit_move_sequence): Revised handling of secondary reloads from
12361 REG+D addresses for floating point loads and stores. Directly handle
12362 loading CONST0_RTX (mode) to a floating point register.
12363 (pa_secondary_reload): Handle reloading DF and SFmode constant values
12364 to floating point registers. Don't restrict secondary reloads to
12365 floating point registers to integer modes. Revise some comments and
12367 (TARGET_LEGITIMATE_ADDRESS_P): Define.
12368 (pa_legitimate_address_p): New.
12369 (pa_legitimize_reload_address): New.
12370 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
12371 (STRICT_REG_OK_FOR_BASE_P): New.
12372 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
12373 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
12375 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
12376 Andrew Dixie <andrewd@gentrack.com>
12378 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
12381 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
12383 * expmed.c (extract_bit_field_1): Pass the full width of the
12384 structure to get_best_reg_extraction_insn.
12386 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
12389 * configure.ac (use_cxa_atexit): Add AIX.
12390 * configure: Regenerate.
12392 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
12394 2013-02-01 Jakub Jelinek <jakub@redhat.com>
12397 * final.c (need_profile_function): New variable.
12398 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
12399 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
12400 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
12401 notes, targetm.asm_out.function_prologue doesn't emit anything,
12402 HAVE_prologue and profiler should be emitted before prologue,
12403 set need_profile_function instead of emitting it.
12404 (final_scan_insn): If need_profile_function, emit
12405 profile_function on the first NOTE_INSN_BASIC_BLOCK or
12406 NOTE_INSN_FUNCTION_BEG note.
12408 2013-02-01 Richard Henderson <rth@redhat.com>
12410 * config/rs6000/rs6000.md (smulditi3): New.
12413 * config/alpha/alpha.md (umulditi3): New.
12415 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
12417 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
12418 (ASM_OUTPUT_ALIGNED_LOCAL): New.
12420 2013-02-01 Richard Biener <rguenther@suse.de>
12422 PR tree-optimization/56113
12423 * tree-ssa-structalias.c (label_visit): Reduce work for
12424 single-predecessor nodes.
12426 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
12428 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
12429 range isn't testing for zero.
12431 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
12433 PR middle-end/56113
12434 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
12436 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
12437 Nick Clifton <nickc@redhat.com>
12439 * config/v850/constraints.md (Q): Define as a memory constraint.
12440 * config/v850/predicates.md (label_ref_operand): New predicate.
12441 (e3v5_shift_operand): New predicate.
12442 (ior_operator): New predicate.
12443 * config/v850/t-v850: Add e3v5 multilib.
12444 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
12445 (v850_gen_movdi): Prototype.
12446 * config/v850/v850.c: Add support for e3v5 architecture.
12447 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
12449 (construct_save_jarl): Add e3v5 long JARL support.
12450 (v850_adjust_insn_length): New function. Adjust length of call
12451 insns when using e3v5 instructions.
12452 (v850_gen_movdi): New function: Generate instructions to move a
12454 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
12455 (CPP_SPEC): Define __v850e3v5__ as appropriate.
12456 (TARGET_USE_FPU): Enable for e3v5.
12457 (CONST_OK_FOR_W): New macro.
12458 (ADJUST_INSN_LENGTH): Define.
12459 * config/v850/v850.md (UNSPEC_LOOP): Define.
12460 (attr cpu): Add v850e3v5.
12461 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
12462 (movdi): New pattern.
12463 (movdi_internal): New pattern.
12464 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
12465 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
12466 (cstoresf4): Likewise.
12467 (cstoredf4): Likewise.
12468 (insv): New pattern.
12469 (rotlso3_a): New pattern.
12470 (rotlsi3_b): New pattern
12471 (rotlsi3_v850e3v5): New pattern.
12472 (doloop_begin): New pattern.
12473 (fix_loop_counter): New pattern.
12474 (doloop_end): New pattern.
12475 (branch_normal): Add e3v5 long branch support.
12476 (branch_invert): Likewise.
12477 (branch_z_normal): Likewise.
12478 (branch_z_invert): Likewise.
12479 (branch_nz_normal): Likewise.
12480 (branch_nz_invert): Likewise.
12481 (call_internal_short): Add e3v5 register-indirect JARL support.
12482 (call_internal_long): Likewise.
12483 (call_value_internal_short): Likewise.
12484 (call_value_internal_long): Likewise.
12485 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
12486 (mloop): New option.
12487 * config.gcc: Add support for configuring v840e3v5 target.
12488 * doc/invoke.texi: Document new v850 specific command line options.
12490 2013-01-31 Paul Koning <ni1d@arrl.net>
12494 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
12495 children if parent is a class.
12496 (prune_unused_types_prune): Don't add DW_AT_declaration.
12498 2013-01-31 Richard Biener <rguenther@suse.de>
12500 PR tree-optimization/56157
12501 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
12502 match up operand with SLP child.
12504 2013-01-31 Jason Merrill <jason@redhat.com>
12507 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
12508 parameters the first time.
12509 (gen_scheduled_generic_parms_dies): Check completeness here.
12511 2013-01-31 Richard Biener <rguenther@suse.de>
12513 PR middle-end/53073
12514 * common.opt (faggressive-loop-optimizations): New flag,
12515 enabled by default.
12516 * doc/invoke.texi (faggressive-loop-optimizations): Document.
12517 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
12518 infer_loop_bounds_from_undefined by it.
12520 2013-01-31 Richard Biener <rguenther@suse.de>
12522 PR tree-optimization/56150
12523 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
12524 visit virtual operands.
12525 (find_uses_to_rename_bb): Likewise.
12527 2013-01-31 Richard Biener <rguenther@suse.de>
12529 PR tree-optimization/56150
12530 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
12531 mixed store non-store stmts.
12533 2013-01-30 Jakub Jelinek <jakub@redhat.com>
12536 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
12537 LIBASAN_EARLY_SPEC is defined.
12538 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
12539 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
12541 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
12544 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
12545 invalid args instead of ICEing on it.
12546 (ix86_valid_target_attribute_tree): Return error_mark_node if
12547 ix86_valid_target_attribute_inner_p failed.
12548 (ix86_valid_target_attribute_p): Return false only if
12549 ix86_valid_target_attribute_tree returned error_mark_node. Allow
12550 target("default") attribute.
12551 (sorted_attr_string): Change argument from const char * to tree,
12552 merge in all target attribute arguments rather than just one.
12553 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
12554 instead of free. Avoid using strcat.
12555 (ix86_mangle_function_version_assembler_name): Mangle
12556 target("default") as if no target attribute is present. Adjust
12557 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
12558 instead of xmalloc and XDELETEVEC instead of free.
12559 (ix86_function_versions): Don't return true if one of the decls
12560 doesn't have target attribute. If they don't and one of the decls
12561 is DECL_FUNCTION_VERSIONED, report an error. Adjust
12562 sorted_attr_string caller. Use XDELETEVEC instead of free.
12563 (ix86_supports_function_versions): Remove.
12564 (make_name): Fix up formatting.
12565 (make_dispatcher_decl): Remove resolver_name and its initialization.
12566 Avoid leaking memory.
12567 (is_function_default_version): Return true if there is
12568 target("default") attribute rather than no target attribute at all.
12569 (make_resolver_func): Avoid leaking memory.
12570 (ix86_generate_version_dispatcher_body): Likewise.
12571 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
12572 * target.def (supports_function_versions): Remove.
12573 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
12574 * doc/tm.texi: Regenerated.
12576 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
12578 PR rtl-optimization/56144
12579 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
12580 for values with side effects.
12582 2013-01-30 Richard Biener <rguenther@suse.de>
12584 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
12585 (sparseset_pop): Likewise.
12586 * cfganal.c (compute_idf): Likewise. Increase work-stack size
12587 to be able to use quick_push in the worker loop.
12589 2013-01-30 Marek Polacek <polacek@redhat.com>
12591 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
12593 2013-01-30 Richard Biener <rguenther@suse.de>
12596 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
12598 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
12600 PR tree-optimization/56064
12601 * fixed-value.c (fixed_from_double_int): New function.
12602 * fixed-value.h (fixed_from_double_int): New prototype.
12603 (const_fixed_from_double_int): New static inline function.
12604 * fold-const.c (native_interpret_fixed): New static function.
12605 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
12606 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
12607 (native_encode_fixed): New static function.
12608 (native_encode_expr) <FIXED_CST>: Use it.
12609 (native_interpret_int): Move double_int worker code to...
12610 * double-int.c (double_int::from_buffer): ...this new static method.
12611 * double-int.h (double_int::from_buffer): Prototype it.
12613 2013-01-30 Richard Biener <rguenther@suse.de>
12615 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
12616 New pointer-map and obstack.
12617 (init_alias_vars): Allocate pointer-map and obstack.
12618 (delete_points_to_sets): Free them.
12619 (find_what_var_points_to): Cache result.
12620 (find_what_p_points_to): Adjust for changed interface of
12621 find_what_var_points_to.
12622 (compute_points_to_sets): Likewise.
12623 (ipa_pta_execute): Likewise.
12625 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12627 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
12628 * configure: Regenerate.
12629 * config.in: Regenerate.
12630 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
12631 #nobits/#progbits if supported.
12633 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
12636 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
12637 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
12638 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
12640 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12642 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
12643 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
12645 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12647 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
12648 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
12650 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12652 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
12654 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
12655 * config/arm/cortex-a7.md: New bypasses using
12656 arm_mac_accumulator_is_result.
12658 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12660 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
12661 (cortex_a7_neon_mla): Likewise.
12662 (cortex_a7_fpfmad): New reservation.
12663 (cortex_a7_fpmacs): Use ffmas and update required units.
12664 (cortex_a7_fpmuld): Update required units and latency.
12665 (cortex_a7_fpmacd): Likewise.
12666 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
12667 (cortex_a7_neon). Likewise.
12668 (bypass) Update participating units.
12670 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12672 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
12673 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
12675 * config/arm/vfp11.md (vfp_farith): Use ffmas.
12676 (vfp_fmul): Use ffmad.
12677 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
12678 (cortex_r4_fmacd): Use ffmad.
12679 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
12680 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
12681 (cortex_a9_fmacd): Use ffmad.
12682 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
12683 (cortex_a8_vfp_macd): Use ffmad.
12684 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
12685 (cortex_a5_fpmacd): Use ffmad.
12686 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
12687 (cortex_a15_vfp_macd): Use ffmad.
12688 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
12690 2013-01-29 Jason Merrill <jason@redhat.com>
12693 * varasm.c (default_assemble_visibility): Don't warn about
12694 visibility on artificial decls.
12696 2013-01-29 Richard Biener <rguenther@suse.de>
12698 PR tree-optimization/56113
12699 * tree-ssa-structalias.c (equiv_class_lookup): Also return
12701 (label_visit): Free duplicate bitmaps and record the leader instead.
12702 (perform_var_substitution): Adjust.
12704 2013-01-29 Richard Biener <rguenther@suse.de>
12706 PR tree-optimization/55270
12707 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
12708 the CFG, schedule loops for fixup.
12710 2013-01-29 Nick Clifton <nickc@redhat.com>
12712 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
12715 2013-01-28 Leif Ekblad <leif@rdos.net>
12717 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
12718 * config/i386/i386.h (TARGET_RDOS): New macro.
12719 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
12720 * config/i386/i386.c (ix86_option_override_internal): For 64bit
12721 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
12722 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
12723 DEFAULT_LARGE_SECTION_THRESHOLD.
12724 * config/i386/i386.md (R14_REG, R15_REG): New constants.
12725 * config/i386/rdos.h: New file.
12726 * config/i386/rdos64.h: New file.
12728 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
12731 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
12734 2013-01-28 Jakub Jelinek <jakub@redhat.com>
12736 PR rtl-optimization/56117
12737 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
12738 call cselib_lookup_from_insn on the MEM before calling
12739 add_insn_mem_dependence.
12741 2013-01-28 Richard Biener <rguenther@suse.de>
12743 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
12744 to a stmt that didn't have one.
12745 (copy_phis_for_bb): Likewise for PHI arguments.
12746 (copy_debug_stmt): Likewise for debug stmts.
12748 2013-01-28 Richard Biener <rguenther@suse.de>
12750 PR tree-optimization/56034
12751 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
12752 (partition_builtin_p): Adjust.
12753 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
12754 it is the last partition.
12755 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
12756 up the vertex for the definition.
12757 (classify_partition): Classify whether a partition is a
12758 PKIND_REDUCTION, thus has uses outside of the loop.
12759 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
12760 Merge all PKIND_REDUCTION partitions into the last partition.
12761 (tree_loop_distribution): Seed partitions from reductions as well.
12763 2013-01-28 Jakub Jelinek <jakub@redhat.com>
12765 PR tree-optimization/56125
12766 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
12767 pow(x,c) into sqrt(x) * powi(x, n/2) or
12768 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
12769 optimizing for size.
12770 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
12771 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
12774 PR tree-optimization/56094
12775 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
12776 to UNKNOWN_LOCATION while gimplifying expr.
12778 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
12781 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
12782 operand 0 in movabs insn template for -masm=intel asm alternative.
12783 (*movabs<mode>_2): Ditto for operand 1.
12785 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
12788 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
12791 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12793 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
12796 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
12798 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
12799 Undef to avoid warning.
12801 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
12803 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
12804 * configure: Regenerate.
12806 2013-01-25 Jakub Jelinek <jakub@redhat.com>
12808 PR tree-optimization/56098
12809 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
12810 for stmts with volatile ops.
12811 (cond_store_replacement): Don't optimize if assign has volatile ops.
12812 (cond_if_else_store_replacement_1): Don't optimize if either
12813 then_assign or else_assign have volatile ops.
12814 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
12817 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
12819 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
12821 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
12823 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
12824 missing ':' in asm example.
12826 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
12828 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
12829 entries into lane and laneq entries.
12830 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
12831 Remove AdvSIMD scalar modes.
12832 (aarch64_sq<r>dmulh_laneq<mode>): New.
12833 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
12835 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
12836 builtin implementations to relfect changes in RTL in aarch64-simd.md.
12837 * config/aarch64/iterators.md (VCOND): New.
12840 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
12843 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
12844 Add NULL LIBNAME argument to existing definitions.
12845 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
12846 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
12847 * config/avr/avr.c (DEF_BUILTIN): Same.
12848 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
12849 (avr_expand_builtin): Expand to a vanilla call if a libgcc
12850 implementation is available (DECL_ASSEMBLER_NAME is set).
12851 (avr_fold_absfx): New static function.
12852 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
12853 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
12854 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
12855 AVR_BUILTIN_ABSLLK.
12856 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
12857 (abshk, absk, abslk, absllk): Provide as static inline functions.
12859 2013-01-25 Marek Polacek <polacek@redhat.com>
12861 PR tree-optimization/56035
12862 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
12864 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
12866 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
12867 (*movtf_internal_rex64): Add (!o,C) alternative
12868 (*movxf_internal_rex64): Ditto.
12869 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
12871 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
12873 * doc/invoke.texi: fix typo.
12874 * doc/objc.texi: fix typo.
12876 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
12878 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
12879 for the first two alternatives.
12881 2013-01-24 Diego Novillo <dnovillo@google.com>
12883 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
12884 (ggc-zone.o): Remove.
12885 * configure.ac: Remove option --with-gc.
12886 * configure: Re-generate.
12887 * doc/install.texi: Remove documentation for --with-gc.
12888 * gengtype.c (write_enum_defn): Remove. Update all users.
12889 (write_Types_process_field): Remove generation of gt_e_* argument.
12890 (output_type_enum): Remove. Update all users.
12891 (write_enum_defn): Remove. Update all users.
12892 (enum alloc_zone): Remove. Update all users.
12893 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
12894 * ggc-common.c (ggc_splay_alloc): Remove first argument.
12895 Update all callers.
12896 (struct ptr_data): Remove field TYPE. Update all users.
12897 (gt_pch_note_object): Remove argument TYPE. Update all users.
12898 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
12900 * ggc-none.c (ggc_alloc_typed_stat): Remove.
12901 (struct alloc_zone): Remove.
12902 (ggc_internal_alloc_zone_stat): Remove.
12903 (ggc_internal_cleared_alloc_zone_stat): Remove.
12904 * ggc-page.c (ggc_alloc_typed_stat): Remove.
12905 (ggc_pch_count_object): Remove last argument. Update all users.
12906 (ggc_pch_alloc_object): Remove last argument. Update all users.
12907 (struct alloc_zone): Remove.
12908 * ggc-zone.c: Remove.
12909 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
12910 (struct alloc_zone): Remove.
12911 (ggc_alloc_typed_stat): Remove.
12912 (ggc_alloc_typed): Remove.
12913 (ggc_splay_alloc): Remove first argument.
12914 (rtl_zone): Remove. Update all users.
12915 (tree_zone): Remove. Update all users.
12916 (tree_id_zone): Remove. Update all users.
12917 (ggc_internal_zone_alloc_stat): Remove. Update all users.
12918 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
12919 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
12920 * tree-ssanames.c: Remove references to zone allocator in comments.
12922 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
12924 * config/avr/avr.c (avr_out_fract): Make register numbers that
12925 might be outside of source operand signed.
12927 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
12929 * config/i386/constraints.md (Yf): New constraint.
12930 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
12931 of f constraint to conditionaly disable x87 register preferences.
12932 (*movdf_internal): Ditto.
12933 (*movsf_internal): Ditto.
12935 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
12937 PR inline-asm/55934
12938 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
12939 that have operands with impossible constraints.
12940 Add a FIXME for a speed-up opportunity.
12941 * lra-constraints.c (process_alt_operands): Verify that a class
12942 selected from constraints on asms is valid for the operand mode.
12943 (curr_insn_transform): Remove incorrect comment.
12945 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
12947 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
12948 TOC operand is a valid symbol ref in the constant pool.
12950 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12952 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
12954 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
12957 * config/avr/stdfix.h: New file.
12958 * t-avr (stdfix-gcc.h): New rule to build it.
12959 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
12961 2013-01-23 Kostya Serebryany <kcc@google.com>
12963 * config/darwin.h: remove dependency on
12964 CoreFoundation (asan on Mac OS).
12966 2013-01-23 Jakub Jelinek <jakub@redhat.com>
12969 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
12970 instead of cmpdi_operand for first comparison operand.
12971 Don't assert that comparison operands aren't both constants.
12973 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
12975 * doc/install.texi (Downloading the Source): Update references to
12976 downloading separate components.
12978 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
12980 * doc/extend.texi (__int128): Improve grammar.
12982 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
12985 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
12986 alternative to (o,r).
12987 (*movdi_internal_rex64): Remove (!o,n) alternative.
12988 (DImode immediate->memory splitter): Remove.
12989 (DImode immediate->memory peephole2): Remove.
12990 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
12991 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
12992 alternative to (!o,*r).
12993 (*movtf_internal_sse): New pattern.
12994 (*movxf_internal_rex64): New pattern.
12995 (*movxf_internal): Disable for TARGET_64BIT.
12996 (*movdf_internal_rex64): Remove (!o,F) alternative.
12998 2013-01-22 Jakub Jelinek <jakub@redhat.com>
13000 PR middle-end/56074
13001 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
13002 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
13003 * tree-vect-loop-manip.c (find_loop_location): Also ignore
13004 stmt locations where LOCATION_LOCUS of the stmt location is
13005 UNKNOWN_LOCATION or BUILTINS_LOCATION.
13008 * config/i386/i386.md (UNSPEC_STOS): New.
13009 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
13010 *strsetqi_1): Add UNSPEC_STOS.
13012 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
13015 * doc/invoke.texi: Remove left over -Wsynth example.
13017 2013-01-21 Jakub Jelinek <jakub@redhat.com>
13019 PR tree-optimization/56051
13020 * fold-const.c (fold_binary_loc): Don't fold
13021 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
13022 a narrowing conversion, or widening conversion from signed
13025 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
13027 PR rtl-optimization/56023
13028 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
13029 dependent on debug instruction.
13031 2013-01-21 Martin Jambor <mjambor@suse.cz>
13033 PR middle-end/56022
13034 * function.c (allocate_struct_function): Call
13035 invoke_set_current_function_hook earlier.
13037 2013-01-21 Jakub Jelinek <jakub@redhat.com>
13039 * reload1.c (init_reload): Only initialize reload_obstack
13040 during the first call.
13042 2013-01-21 Marek Polacek <polacek@redhat.com>
13044 * cfgloop.c (verify_loop_structure): Fix up grammar.
13046 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
13048 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
13049 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
13051 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13054 * config/arm/marvell-pj4.md: Update copyright year.
13055 Fix up use of alu to alu_reg and simple_alu_imm.
13057 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
13059 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
13061 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
13064 * lra-constraints.c (curr_insn_transform): Don't reuse original
13065 insn for secondary memory move when memory mode should be different.
13067 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13069 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
13070 atomic_storedi_1): New patterns.
13072 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13074 btver2 pipeline descriptions.
13075 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
13077 * config/i386/i386.md (btver2_decode): New type attributes.
13078 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
13080 * config/i386/btver2.md: New file describing btver2 pipelines.
13082 2013-01-19 Andrew Pinski <apinski@cavium.com>
13084 PR tree-optimization/52631
13085 * tree-ssa-sccvn (visit_use): Before looking up the original
13086 statement, try looking up the simplified expression.
13088 2013-01-19 Anthony Green <green@moxielogic.com>
13090 * config/moxie/moxie.c (moxie_expand_prologue): Set
13091 current_function_static_stack_size.
13093 2013-01-18 Jakub Jelinek <jakub@redhat.com>
13095 PR tree-optimization/56029
13096 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
13097 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
13099 2013-01-18 Sharad Singhai <singhai@google.com>
13101 PR tree-optimization/55995
13102 * dumpfile.c (dump_loc): Print location only if available.
13103 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
13105 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
13108 * lra-constraints.c (curr_insn_transform): Reuse original insn for
13109 secondary memory move.
13110 (inherit_reload_reg): Use rclass instead of cl for
13111 check_secondary_memory_needed_p.
13113 2013-01-18 Jakub Jelinek <jakub@redhat.com>
13115 PR middle-end/56015
13116 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
13117 the case where writing real complex part of target modifies op1.
13119 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
13121 * config/aarch64/aarch64-simd.md
13122 (aarch64_vcond_internal<mode>): Handle unordered cases.
13123 * config/aarch64/iterators.md (v_cmp_result): New.
13125 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
13126 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13128 * config/arm/marvell-pj4.md: New file.
13129 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
13130 * config/arm/arm.md (generic_sched): Add marvell_pj4.
13131 (generic_vfp): Likewise.
13132 * config/arm/arm-cores.def: Add marvell-pj4.
13133 * config/arm/arm-tune.md: Regenerate.
13134 * config/arm/arm-tables.opt: Regenerate.
13135 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
13136 * doc/invoke.texi: Document marvell-pj4.
13138 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
13140 * config/aarch64/arm_neon.h: Map scalar types to standard types.
13142 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
13147 * var-tracking.c (negative_power_of_two_p): New.
13148 (global_get_addr_cache, local_get_addr_cache): New.
13149 (get_addr_from_global_cache, get_addr_from_local_cache): New.
13150 (vt_canonicalize_addr): Rewrite using the above. Adjust the
13152 (vt_stack_offset_p): Remove.
13153 (vt_canon_true_dep): Always canonicalize loc's address.
13154 (clobber_overlapping_mems): Make sure we have a MEM.
13155 (local_get_addr_clear_given_value): New.
13156 (val_reset): Clear local cached entries.
13157 (compute_bb_dataflow): Create and release the local cache.
13158 Disable duplicate MEMs clobbering.
13159 (emit_notes_in_bb): Clobber MEMs likewise.
13160 (vt_emit_notes): Create and release the local cache.
13161 (vt_initialize, vt_finalize): Create and release the global
13162 cache, respectively.
13163 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
13165 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
13167 PR libmudflap/53359
13168 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
13169 not found in the symtab.
13171 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
13174 PR rtl-optimization/55547
13175 PR rtl-optimization/53827
13178 * alias.c (offset_overlap_p): New, factored out of...
13179 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
13180 the conservative special case for symbolic constants. Don't
13181 adjust zero sizes on alignment.
13183 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
13185 PR rtl-optimization/52573
13186 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
13187 REG_UNUSED for the same register.
13189 2013-01-17 Richard Biener <rguenther@suse.de>
13190 Marek Polacek <polacek@redhat.com>
13192 PR rtl-optimization/55833
13193 * loop-unswitch.c (unswitch_loops): Move loop verification...
13194 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
13195 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
13196 Set it to true when we're removing a loop from hierarchy tree in
13197 an irreducible region.
13198 (fix_bb_placements): Adjust caller.
13199 (fix_loop_placements): Likewise.
13201 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
13203 * config/avr/builtins.def (DEF_BUILTIN): Factor out
13204 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
13205 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
13206 Remove ID. Adjust comments.
13207 * config/avr/avr-c.c (avr_builtin_name): Remove.
13208 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
13209 * config/avr/avr.c (avr_tolower): New static function.
13210 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
13211 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
13212 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
13215 2013-01-17 Jan Hubicka <jh@suse.cz>
13217 PR tree-optimization/55273
13218 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
13220 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
13223 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
13224 store through atomic_store<mode>_1.
13225 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
13227 2013-01-17 Martin Jambor <mjambor@suse.cz>
13229 PR tree-optimizations/55264
13230 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
13231 for virtual methods.
13232 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
13233 virtual methods before inlining is over.
13234 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
13236 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
13239 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
13241 PR rtl-optimization/56005
13242 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
13243 pending reads for prefetch.
13245 2013-01-16 Ian Bolton <ian.bolton@arm.com>
13247 * config/aarch64/aarch64.md
13248 (*cstoresi_neg_uxtw): New pattern.
13249 (*cmovsi_insn_uxtw): New pattern.
13250 (*<optab>si3_uxtw): New pattern.
13251 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
13252 (*<optab>si3_insn_uxtw): New pattern.
13253 (*bswapsi2_uxtw): New pattern.
13255 2013-01-16 Richard Biener <rguenther@suse.de>
13257 * tree-inline.c (tree_function_versioning): Remove set but
13258 never used variable.
13260 2013-01-16 Richard Biener <rguenther@suse.de>
13262 PR tree-optimization/55964
13263 * tree-flow.h (rename_variables_in_loop): Remove.
13264 (rename_variables_in_bb): Likewise.
13265 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
13266 (copy_loop_before): Adjust and delete update-ssa status.
13267 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
13268 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
13269 (rename_variables_in_loop): Remove.
13270 (slpeel_update_phis_for_duplicate_loop): Likewise.
13271 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
13272 use available cfg machinery instead of duplicating it.
13273 Update PHI nodes and perform poor-mans SSA update here.
13274 (slpeel_tree_peel_loop_to_edge): Adjust.
13276 2013-01-16 Richard Biener <rguenther@suse.de>
13278 PR tree-optimization/54767
13279 PR tree-optimization/53465
13280 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
13281 (vrp_visit_phi_node): For PHI arguments coming via backedges
13282 drop all symbolical range information.
13283 (execute_vrp): Compute backedges.
13285 2013-01-16 Richard Biener <rguenther@suse.de>
13287 * doc/install.texi: Update CLooG and ISL requirements to
13290 2013-01-16 Christian Bruel <christian.bruel@st.com>
13293 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
13294 (broken_move): Handle UNSPECV_SP_SWITCH_B.
13295 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
13297 2013-01-16 DJ Delorie <dj@redhat.com>
13299 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
13300 (UNSPECV_SP_SWITCH_E): New.
13301 (sp_switch_1): Change to an unspec.
13302 (sp_switch_2): Change to an unspec. Don't use post-inc when we
13305 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
13307 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
13308 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
13309 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
13310 (expand_mem_thread_fence): Ditto.
13311 (expand_mem_signal_fence): Ditto.
13312 (expand_atomic_load): Ditto.
13313 (expand_atomic_store): Ditto.
13315 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
13317 PR rtl-optimization/55547
13318 PR rtl-optimization/53827
13321 * alias.c (memrefs_conflict_p): Set sizes to negative after
13324 2013-01-15 Jakub Jelinek <jakub@redhat.com>
13327 * function.c (thread_prologue_and_epilogue_insns): Always
13328 add crtl->drap_reg to set_up_by_prologue.set, even if
13329 stack_realign_drap is false.
13331 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13333 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
13334 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
13335 *call): Fix indention.
13337 2013-01-15 Tom de Vries <tom@codesourcery.com>
13340 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
13343 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
13345 PR rtl-optimization/55153
13346 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
13348 2013-01-15 Martin Jambor <mjambor@suse.cz>
13350 PR tree-optimization/55920
13351 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
13352 accesses as grp_to_be_debug_replaced.
13354 2013-01-15 Jakub Jelinek <jakub@redhat.com>
13356 PR tree-optimization/55920
13357 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
13358 there is non-useless type conversion needed from debug rhs to lhs,
13359 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
13361 2013-01-15 Joseph Myers <joseph@codesourcery.com>
13362 Mikael Pettersson <mikpe@it.uu.se>
13365 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
13367 (ASM_OUTPUT_CASE_LABEL): Remove.
13368 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
13369 * final.c (shorten_branches): Update alignment of labels before
13370 jump tables if CASE_VECTOR_SHORTEN_MODE.
13372 2013-01-15 Richard Biener <rguenther@suse.de>
13375 * system.h: Do not include gmp.h for building host tools.
13377 2013-01-15 Richard Biener <rguenther@suse.de>
13379 PR middle-end/55882
13380 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
13381 account for bitpos when computing alignment.
13383 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
13385 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
13386 (ix86_target_macros_internal): Likewise.
13388 * config/i386/i386.c (m_CORE2I7): Removed.
13389 (m_CORE_HASWELL): New macro.
13390 (m_CORE_ALL): Likewise.
13391 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
13392 (initial_ix86_arch_features): Likewise.
13393 (processor_target_table): Initializations for Core avx2.
13394 (cpu_names): New names "core-avx2".
13395 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
13396 PROCESSOR_CORE_HASWELL.
13397 (ix86_issue_rate): New case.
13398 (ia32_multipass_dfa_lookahead): Likewise.
13399 (ix86_sched_init_global): Likewise.
13401 * config/i386/i386.h (TARGET_HASWELL): New macro.
13402 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
13403 (processor_type): New PROCESSOR_HASWELL.
13405 2013-01-15 Jakub Jelinek <jakub@redhat.com>
13407 PR tree-optimization/55955
13408 * tree-vect-loop.c (vectorizable_reduction): Give up early on
13409 *SHIFT_EXPR and *ROTATE_EXPR codes.
13411 PR tree-optimization/48766
13412 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
13413 -ftrapv disable -fwrapv.
13415 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
13418 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
13419 etc. to 1 and not to __flash.
13420 Use LL suffix for __INT24_MAX__ with -mint8.
13421 Use ULL suffix for __UINT24_MAX__ with -mint8.
13423 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
13425 * config/avr/avr-arch.h
13426 (struct base_arch_s): Use typedef avr_arch_t instead.
13427 (struct arch_info_s): Use typedef avr_arch_info_t instead.
13428 (struct mcu_type_s): Use typedef avr_mcu_t instead.
13429 * config/avr/avr.c: Same.
13430 * config/avr/avr-devices.c: Same.
13431 * config/avr/driver-avr.c: Same.
13432 * config/avr/gen-avr-mmcu-texi.c: Same.
13433 * config/avr/avr-mcus.def: Adjust comment.
13435 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
13437 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
13438 * config/aarch64/iterators.md (VALLDI): New.
13440 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
13441 Andi Kleen <ak@linux.intel.com>
13444 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
13445 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
13448 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
13450 * config/avr/avr-stdint.h: Remove trailing blanks.
13451 * config/avr/avr-log.h: Same.
13452 * config/avr/avr-arch.h: Same.
13453 * config/avr/avr-devices.c: Same.
13454 * config/avr/avr-dimode.md: Same.
13455 * config/avr/predicates.md: Same.
13456 * config/avr/avr-c.c: Same. And fix typo.
13458 * config/avr/avr-protos.h: Same. And:
13459 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
13460 (init_cumulative_args): Rename to avr_init_cumulative_args.
13461 (expand_prologue): Rename to avr_expand_prologue.
13462 (expand_epilogue): Rename to avr_expand_epilogue.
13463 (adjust_insn_length): Rename to avr_adjust_insn_length.
13464 (notice_update_cc): Rename to avr_notice_update_cc.
13465 (final_prescan_insn): Rename to avr_final_prescan_insn.
13466 * config/avr/avr.c: Same.
13467 * config/avr/avr.h: Same.
13468 * config/avr/avr.md: Remove trailing blanks.
13469 (prologue): Use avr_expand_prologue.
13470 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
13472 2013-01-14 Richard Biener <rguenther@suse.de>
13474 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
13475 verify_location, collect_subblocks): New functions.
13476 (verify_gimple_in_cfg): Verify that locations only reference
13477 BLOCKs in the functions BLOCK tree.
13479 2013-01-14 Richard Biener <rguenther@suse.de>
13481 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
13483 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
13485 (insert_out_of_ssa_copy_on_edge): Likewise.
13486 (rewrite_close_phi_out_of_ssa): Likewise.
13487 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
13489 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
13490 propagated constants.
13491 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
13494 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
13496 * config/avr/avr-modes.def: Add GPL copyright notice.
13498 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
13500 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
13501 MEMMODEL_MASK to determine memory model.
13502 (atomic_store<mode>): Ditto from operands[2].
13503 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
13505 2013-01-13 Jakub Jelinek <jakub@redhat.com>
13508 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
13509 (fold_gimple_assign): Don't call unshare_expr here.
13510 (fold_ctor_reference): Call unshare_expr.
13512 2013-01-13 Terry Guo <terry.guo@arm.com>
13514 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
13515 * doc/fragments.texi: Document MULTILIB_REUSE.
13516 * gcc.c (multilib_reuse): New internal spec.
13517 (set_multilib_dir): Also search multilib from multilib_reuse.
13518 * genmultilib (tmpmultilib3): Refactor code.
13519 (tmpmultilib4): Ditto.
13520 (multilib_reuse): New multilib argument.
13522 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
13524 * Makefile.in: Update copyright.
13526 2013-01-12 Tom de Vries <tom@codesourcery.com>
13528 PR middle-end/55890
13529 * calls.c (expand_call): Check if arg_nr is valid.
13531 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
13533 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
13534 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
13535 documentation. Add missing '__' in front of
13536 __builtin_ia32_packssdw256.
13538 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13541 * config/s390/s390.c (s390_preferred_reload_class): Do not return
13542 NO_REGS for larl operands.
13543 (s390_reload_larl_operand): Use s390_load_address instead of
13546 2013-01-11 Richard Biener <rguenther@suse.de>
13548 * tree-cfg.c (verify_node_sharing_1): Split out from ...
13549 (verify_node_sharing): ... here.
13550 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
13552 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
13554 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
13555 Substitute TREECHECKING.
13556 * configure: Regenerate.
13557 * Makefile.in (TREECHECKING): New.
13559 2013-01-11 Richard Guenther <rguenther@suse.de>
13561 PR tree-optimization/44061
13562 * tree-vrp.c (extract_range_basic): Compute zero as
13563 value-range for __builtin_constant_p of function parameters.
13565 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
13567 Update copyright years.
13569 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
13571 PR rtl-optimization/55672
13572 * lra-eliminations.c (mark_not_eliminable): Permit addition with
13573 const to be eliminable.
13575 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
13577 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
13578 * configure: Regenerate.
13580 2013-01-10 Richard Biener <rguenther@suse.de>
13582 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
13584 2013-01-10 Richard Biener <rguenther@suse.de>
13587 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
13588 locations for virtual PHI arguments.
13589 (rewrite_update_phi_arguments): Likewise.
13591 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
13593 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
13596 2013-01-10 Jakub Jelinek <jakub@redhat.com>
13598 PR tree-optimization/55921
13599 * tree-complex.c (expand_complex_asm): New function.
13600 (expand_complex_operations_1): Call it for GIMPLE_ASM.
13602 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13605 * config/s390/s390.c (s390_symref_operand_p)
13606 (s390_loadrelative_operand_p): Merge the two functions.
13607 (s390_check_qrst_address, print_operand_address): Add parameters
13608 to s390_loadrelative_operand_p invokation.
13609 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
13610 (s390_reload_larl_operand, s390_secondary_reload): Use
13611 s390_loadrelative_operand_p instead of s390_symref_operand_p.
13612 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
13614 2013-01-09 Mike Stump <mikestump@comcast.net>
13616 * dse.c (record_store): Remove unnecessary assert.
13618 2013-01-09 Jan Hubicka <jh@suse.cz>
13620 PR tree-optimization/55569
13621 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
13622 * cfgloop.h (scale_loop_profile): Likewise.
13624 2013-01-09 Jan Hubicka <jh@suse.cz>
13627 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
13629 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
13631 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
13633 PR middle-end/55114
13634 * expr.h (maybe_emit_group_store): Declare.
13635 * expr.c (maybe_emit_group_store): New function.
13636 * builtins.c (expand_builtin_int_roundingfn): Call it.
13637 (expand_builtin_int_roundingfn_2): Likewise.
13639 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
13641 PR rtl-optimization/55829
13642 * lra-constraints.c (match_reload): Add code for absent output.
13643 (curr_insn_transform): Add code for reloads of matched inputs
13646 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
13648 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
13649 attribute of movddup insn to DF.
13650 (*vec_interleave_lowv2df): Ditto.
13651 (vec_dupv2df): Ditto.
13653 2013-01-09 Jan Hubicka <jh@suse.cz>
13655 PR tree-optimiation/55875
13656 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
13657 EVERY_ITERATION parameter.
13658 (number_of_iterations_exit): Check if exit is executed every iteration.
13659 (idx_infer_loop_bounds): Similarly here.
13660 (n_of_executions_at_most): Simplify
13661 to only test for cases where statement is dominated by the
13662 particular bound; handle correctly the "postdominance" test.
13663 (scev_probably_wraps_p): Use max loop iterations info
13664 as a global bound first.
13666 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
13667 Nick Clifton <nickc@redhat.com>
13669 * config/v850/v850.md (cbranchsf4): New pattern.
13670 (cstoresf4): New pattern.
13671 (cbranchdf4): New pattern.
13672 (cstoredf4): New pattern.
13673 (movsicc): Disallow floating point comparisons.
13674 (cmpsf_le_insn): Fix order of operators.
13675 (cmpsf_lt_insn): Likewise.
13676 (cmpsf_eq_insn): Likewise.
13677 (cmpdf_le_insn): Likewise.
13678 (cmpdf_lt_insn): Likewise.
13679 (cmpdf_eq_insn): Likewise.
13680 (cmpsf_ge_insn): Use LE comparison.
13681 (cmpdf_ge_insn): Likewise.
13682 (cmpsf_gt_insn): Use LT comparison.
13683 (cmpdf_gt_insn): Likewise.
13684 (cmpsf_ne_insn): Delete pattern.
13685 (cmpdf_ne_insn): Delete pattern.
13686 * config/v850/v850.c (v850_gen_float_compare): Use
13687 gen_cmpdf_eq_insn for NE comparison.
13688 (v850_float_z_comparison_operator)
13689 (v850_float_nz_comparison_operator): Move from here ...
13690 * config/v850/predicates.md: ... to here. Move GT and GE
13691 comparisons into v850_float_z_comparison_operator.
13692 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
13694 (v850_float_nz_comparison_operator): Likewise.
13696 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13698 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
13699 with calls to gen_insvsi/gen_insvdi.
13701 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13703 * config/i386/i386.c (initial_ix86_tune_features): Set up
13704 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
13706 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
13707 Jakub Jelinek <jakub@redhat.com>
13709 PR tree-optimization/48189
13710 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
13711 If nitercst is 0, don't predict the exit edge.
13713 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13715 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
13716 in asm_fprintf with reg_names.
13717 (aarch64_print_operand_address): Likewise.
13718 (aarch64_return_addr): Likewise.
13719 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
13721 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13723 * config/pa/pa.h (VAL_U6_BITS_P): Define.
13724 (INT_U6_BITS): Likewise.
13725 * config/pa/predicates.md (uint6_operand): New predicate.
13726 (shift5_operand, shift6_operand): Likewise.
13727 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
13729 (lshrdi3): Use shift6_operand.
13730 (shrpsi4, shrpdi4): New insn patterns.
13731 (extzv): Delete expander.
13732 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
13733 predicates in unamed zero extract patterns. Tighten common constraint.
13734 (extv): Delete expander.
13735 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
13736 predicates in unamed sign extract patterns. Tighten common constraint.
13737 (insv): Delete expander.
13738 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
13739 predicates in unamed insert patterns. Tighten common constraint.
13740 Change uint32_operand predicate to uint6_operand predicate in unamed
13741 DImode pattern to insert constant values of type 1...1xxxx.
13743 2013-01-04 Jan Hubicka <jh@suse.cz>
13745 PR tree-optimization/55823
13746 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
13749 2013-01-08 Jakub Jelinek <jakub@redhat.com>
13750 Uros Bizjak <ubizjak@gmail.com>
13752 PR rtl-optimization/55845
13753 * df-problems.c (can_move_insns_across): Stop scanning at
13754 volatile_insn_p source instruction or give up if
13755 across_from .. across_to range contains any volatile_insn_p
13758 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
13760 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
13761 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
13763 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
13764 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
13766 2013-01-08 Jakub Jelinek <jakub@redhat.com>
13769 * asan.c (asan_clear_shadow): New function.
13770 (asan_emit_stack_protection): Use it.
13772 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
13774 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
13775 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
13776 with tab instead of space.
13778 2013-01-08 Nick Clifton <nickc@redhat.com>
13780 * config/rl78/rl78.c (rl78_expand_prologue): Always select
13781 register bank 0 at the start of an interrupt handler.
13782 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
13785 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
13787 * config/aarch64/aarch64-simd.md
13788 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
13789 (aarch64_simd_bsl): Likewise.
13790 (aarch64_vcond_internal<mode>): Likewise.
13791 (vcond<mode><mode>): Likewise.
13792 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
13793 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
13795 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
13797 * config/aarch64/aarch64-builtins.c
13798 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
13800 2013-01-08 Martin Jambor <mjambor@suse.cz>
13803 * tree-sra.c (analyze_access_subtree): Return true also after
13804 potentially creating a debug-only replacement.
13806 2013-01-08 Jakub Jelinek <jakub@redhat.com>
13808 PR middle-end/55890
13809 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
13811 PR tree-optimization/54120
13812 * tree-vrp.c (range_fits_type_p): Don't allow
13813 src_precision < precision from signed vr to unsigned_p
13814 if vr->min or vr->max is negative.
13815 (simplify_float_conversion_using_ranges): Test can_float_p
13816 against CODE_FOR_nothing.
13818 2013-01-08 Jakub Jelinek <jakub@redhat.com>
13819 Richard Biener <rguenther@suse.de>
13821 PR middle-end/55851
13822 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
13823 types instead of just INTEGER_TYPE types.
13825 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
13827 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
13830 2013-01-07 Steve Ellcey <sellcey@mips.com>
13833 * config/mips/mips.opt: Change mad to mmad to match documentation.
13835 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
13838 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
13839 .progmemx.data now.
13841 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
13844 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
13845 (avr_addrspace_t): Add .section_name field.
13846 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
13848 (avr_addrspace): Same. Initialize .section_name. Remove last
13849 NULL entry. Put __memx into .progmemx.data.
13850 (progmem_section_prefix): Remove.
13851 (avr_asm_init_sections): No need to initialize progmem_section.
13852 (avr_asm_named_section): Use avr_addrspace[].section_name to get
13853 section name prefix.
13854 (avr_asm_select_section): Ditto. And use get_unnamed_section to
13855 retrieve the progmem section.
13856 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
13857 boundary to run over avr_addrspace[].
13858 (avr_register_target_pragmas): Ditto.
13860 2013-01-06 Jakub Jelinek <jakub@redhat.com>
13862 * varasm.c (output_constant_def_contents): For asan_protect_global
13863 protected strings, adjust DECL_ALIGN if needed, before testing for
13865 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
13866 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
13868 (output_object_block): For asan protected decls, emit asan padding
13869 after their contents.
13870 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
13871 (asan_finish_file): Test it here instead.
13873 2013-01-07 Nick Clifton <nickc@redhat.com>
13874 Matthias Klose <doko@debian.org>
13875 Doug Kwan <dougkwan@google.com>
13876 H.J. Lu <hongjiu.lu@intel.com>
13879 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
13881 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
13883 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
13885 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
13887 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
13889 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
13892 * doc/install.texi (Cross-Compiler-Specific Options): Document
13895 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
13897 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
13898 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
13899 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
13900 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
13901 vqmovun_high_s64): Fix source operand number and update copyright.
13903 2013-01-07 Richard Biener <rguenther@suse.de>
13905 PR middle-end/55890
13906 * gimple.h (gimple_call_builtin_p): New overload.
13907 * gimple.c (validate_call): New function.
13908 (gimple_call_builtin_p): Likewise.
13909 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
13910 Use gimple_call_builtin_p.
13911 (find_func_clobbers): Likewise.
13912 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
13913 (strlen_optimize_stmt): Likewise.
13915 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
13917 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
13918 (vld1q_dup_*): Likewise.
13919 (vld1_*): Likewise.
13920 (vld1q_*): Likewise.
13921 (vld1_lane_*): Likewise.
13922 (vld1q_lane_*): Likewise.
13924 2013-01-07 Richard Biener <rguenther@suse.de>
13926 * lto-streamer.h (LTO_minor_version): Bump to 2.
13928 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
13930 * config/aarch64/aarch64-protos.h
13931 (aarch64_const_double_zero_rtx_p): Rename to...
13932 (aarch64_float_const_zero_rtx_p): ...this.
13933 (aarch64_float_const_representable_p): New.
13934 (aarch64_output_simd_mov_immediate): Likewise.
13935 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
13936 move immediate case.
13937 * config/aarch64/aarch64.c
13938 (aarch64_const_double_zero_rtx_p): Rename to...
13939 (aarch64_float_const_zero_rtx_p): ...this.
13940 (aarch64_print_operand): Allow printing of new constants.
13941 (aarch64_valid_floating_const): New.
13942 (aarch64_legitimate_constant_p): Check for valid floating-point
13944 (aarch64_simd_valid_immediate): Likewise.
13945 (aarch64_vect_float_const_representable_p): New.
13946 (aarch64_float_const_representable_p): Likewise.
13947 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
13948 (aarch64_output_simd_mov_immediate): New.
13949 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
13950 (*movdf_aarch64): Likewise.
13951 * config/aarch64/constraints.md (Ufc): New.
13952 (Y): call aarch64_float_const_zero_rtx.
13953 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
13955 2013-01-07 Richard Biener <rguenther@suse.de>
13957 PR tree-optimization/55888
13958 PR tree-optimization/55862
13959 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
13960 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
13961 not if it is contained therein.
13963 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
13965 * config/avr/t-avr: Typo.
13967 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
13970 * config/avr/t-avr: Don't automatically rebuild
13971 $(srcdir)/config/avr/t-multilib
13972 $(srcdir)/config/avr/avr-tables.opt
13973 $(srcdir)/doc/avr-mmcu.texi
13974 (avr-mcus): New phony target to build them on request.
13975 (s-avr-mlib, s-avr-mmcu-texi): Remove.
13976 * avr/avr-mcus.def: Adjust comments.
13978 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
13980 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
13982 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
13984 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
13986 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
13988 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
13990 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
13992 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
13993 to generate profiling.
13994 * config/rs6000/aix64.h (LIB_SPEC): Same.
13996 2013-01-04 Andrew Pinski <apinski@cavium.com>
13998 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
14000 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
14002 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
14004 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
14006 (ix86_expand_move): Ditto.
14007 (ix86_zero_extend_to_Pmode): Ditto.
14008 (ix86_expand_call): Ditto.
14009 (ix86_expand_special_args_builtin): Ditto.
14010 (ix86_expand_builtin): Ditto.
14012 2013-01-04 Richard Biener <rguenther@suse.de>
14014 PR tree-optimization/55862
14015 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
14016 translating them through PHI nodes.
14018 2013-01-04 Martin Jambor <mjambor@suse.cz>
14020 PR tree-optimization/55755
14021 * tree-sra.c (sra_modify_assign): Do not check that an access has no
14022 children when trying to avoid producing a VIEW_CONVERT_EXPR.
14024 2013-01-04 Marek Polacek <polacek@redhat.com>
14026 PR middle-end/55859
14027 * opts.c (default_options_optimization): Clarify error message.
14029 2013-01-04 Richard Biener <rguenther@suse.de>
14031 PR middle-end/55863
14032 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
14035 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14038 * config/pa/pa.md (movsi): Revert previous change.
14039 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
14042 2013-01-03 Richard Henderson <rth@redhat.com>
14044 * config/i386/i386.c (ix86_expand_move): Always assign to op1
14045 after eliminating TLS symbols.
14047 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
14050 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
14051 * graphite-poly.c (debug_gmp_value): Likewise.
14053 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
14056 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
14057 selected code model, define __code_mode_small__, __code_model_medium__,
14058 __code_model_large__, __code_model_32__ or __code_model_kernel__.
14059 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
14060 xchg temporary register with %k. Declare temporary register as
14062 [__x86_64__]: For medium and large code models, preserve %rbx register.
14064 2013-01-03 Richard Biener <rguenther@suse.de>
14066 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
14067 (dump_subscript): Adjust.
14068 (finalize_ddr_dependent): Do not dump redundant info.
14069 (analyze_siv_subscript): Adjust.
14070 (subscript_dependence_tester): Likewise.
14071 (compute_affine_dependence): Likewise.
14073 2013-01-03 Richard Biener <rguenther@suse.de>
14076 2013-01-03 Richard Biener <rguenther@suse.de>
14078 PR tree-optimization/55857
14079 * tree-vect-stmts.c (vectorizable_load): Do not setup
14080 re-alignment for invariant loads.
14082 2013-01-02 Richard Biener <rguenther@suse.de>
14084 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
14085 invariant load do not generate a vector load from the scalar location.
14087 2013-01-03 Richard Biener <rguenther@suse.de>
14089 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
14090 for not vectorizing.
14091 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
14092 not build INDIRECT_REFs, call get_name once only.
14093 (vect_create_data_ref_ptr): Likewise. Dump base object kind
14094 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
14096 2013-01-03 Richard Biener <rguenther@suse.de>
14098 PR tree-optimization/55857
14099 * tree-vect-stmts.c (vectorizable_load): Do not setup
14100 re-alignment for invariant loads.
14102 2013-01-03 Richard Biener <rguenther@suse.de>
14105 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
14106 prefer a built-in decl.
14108 2013-01-03 Jakub Jelinek <jakub@redhat.com>
14110 * gcc.c (process_command): Update copyright notice dates.
14111 * gcov.c (print_version): Likewise.
14112 * gcov-dump.c (print_version): Likewise.
14114 PR rtl-optimization/55838
14115 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
14116 iv0.step, iv1.step and step.
14118 2013-01-03 Jakub Jelinek <jakub@redhat.com>
14119 Marc Glisse <marc.glisse@inria.fr>
14121 PR tree-optimization/55832
14122 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
14123 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
14124 integer_{one,zero}_node.
14126 2013-01-03 Jakub Jelinek <jakub@redhat.com>
14129 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
14130 * var-tracking.c (reverse_op): Don't add reverse ops to
14131 VALUEs that have already
14132 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
14134 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
14136 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
14138 2013-01-02 Teresa Johnson <tejohnson@google.com>
14140 * dumpfile.c (dump_loc): Print filename with location.
14141 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
14142 new location_t parameter to emit complete unroll message with
14143 new dump framework.
14144 (canonicalize_loop_induction_variables): Compute loops location
14145 and pass to try_unroll_loop_completely.
14146 * loop-unroll.c (report_unroll_peel): New function.
14147 (peel_loops_completely): Use new dump format with location
14148 for main dumpfile message, and invoke report_unroll_peel on success.
14149 (decide_unrolling_and_peeling): Ditto.
14150 (decide_peel_once_rolling): Remove old dumpfile message subsumed
14151 by report_unroll_peel.
14152 (decide_peel_completely): Ditto.
14153 (decide_unroll_constant_iterations): Ditto.
14154 (decide_unroll_runtime_iterations): Ditto.
14155 (decide_peel_simple): Ditto.
14156 (decide_unroll_stupid): Ditto.
14157 * cfgloop.c (get_loop_location): New function.
14158 * cfgloop.h (get_loop_location): Declare.
14160 2013-01-02 Sriraman Tallam <tmsriram@google.com>
14162 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
14165 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14167 PR middle-end/55198
14168 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
14169 BLKmode objects when EXPAND_MEMORY is specified.
14171 2013-01-02 Sriraman Tallam <tmsriram@google.com>
14173 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
14175 (fold_builtin_cpu): Do not share cpu model decls across statements.
14177 2013-01-02 Jason Merrill <jason@redhat.com>
14180 * tree.c (build_array_type_1): Revert earlier change.
14182 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
14184 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
14186 * config/aarch64/aarch64-tune.md: Re-generate.
14188 2013-01-02 Richard Biener <rguenther@suse.de>
14190 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
14191 invariant load do not generate a vector load from the scalar location.
14193 2013-01-02 Richard Biener <rguenther@suse.de>
14196 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
14197 * configure: Regenerate.
14199 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
14201 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
14202 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
14203 (expand_builtin_int_roundingfn_2): Keep the original target around
14204 for the fallback case.
14206 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
14208 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
14209 to be clear for sign changes.
14211 2013-01-01 Jan Hubicka <jh@suse.cz>
14213 * ipa-inline-analysis.c: Fix formatting.
14215 2013-01-01 Jakub Jelinek <jakub@redhat.com>
14217 PR tree-optimization/55831
14218 * tree-vect-loop.c (get_initial_def_for_induction): Use
14219 gsi_after_labels instead of gsi_start_bb.
14221 Copyright (C) 2013 Free Software Foundation, Inc.
14223 Copying and distribution of this file, with or without modification,
14224 are permitted in any medium without royalty provided the copyright
14225 notice and this notice are preserved.