1 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
3 * config/cr16/cr16-protos.h: Don't include target.h.
5 2013-07-09 Joseph Myers <joseph@codesourcery.com>
7 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
8 adjust register size for TDmode and TFmode for VSX registers.
10 2013-07-08 Kai Tietz <ktietz@redhat.com>
13 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
14 hook_bool_const_tree_true.
16 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
19 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
20 * config/s390/s390.md: Define FPR*_REGNUM constants.
21 Fix FPR2_REGNUM constant (18 -> 17).
22 ("*trunc<BFP:mode><DFP_ALL:mode>2")
23 ("*trunc<DFP_ALL:mode><BFP:mode>2")
24 ("trunc<BFP:mode><DFP_ALL:mode>2")
25 ("trunc<DFP_ALL:mode><BFP:mode>2")
26 ("*extend<BFP:mode><DFP_ALL:mode>2")
27 ("*extend<DFP_ALL:mode><BFP:mode>2")
28 ("extend<BFP:mode><DFP_ALL:mode>2")
29 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
32 2013-07-08 Graham Stott <graham.stott@btinternet.com>
33 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
35 2013-07-08 Graham Stott <graham.stott@btinternet.com>
36 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
37 unused variables l_length and l_node.
39 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
41 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
42 and cfun_fpr_bit_p to cfun_fpr_save_p.
43 (s390_frame_area, s390_register_info, s390_frame_info)
44 (s390_emit_prologue, s390_emit_epilogue)
45 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
47 * config/s390/s390.h: Define *_REGNUM macros for floating point
50 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
52 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
54 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
56 PR rtl-optimization/57786
57 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
58 and break out of the loop when it is set to false.
60 2013-07-08 Jakub Jelinek <jakub@redhat.com>
63 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
64 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
66 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
67 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
68 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
70 PR rtl-optimization/57829
71 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
72 mask bits outside of mode are just sign-extension from mode to HWI.
74 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
76 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
77 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
78 adjust_address instead of change_address to keep info about alignment.
79 (emit_strmov): Remove.
80 (emit_memmov): New function.
81 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
82 (expand_movmem_epilogue): Likewise and return updated rtx for
84 (expand_constant_movmem_prologue): Likewise and return updated rtx for
85 destination and source.
86 (decide_alignment): Refactor, handle vector_loop.
87 (ix86_expand_movmem): Likewise.
88 (ix86_expand_setmem): Likewise.
89 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
91 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
93 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
94 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
96 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
98 * config/i386/sse.md (sse_movlhps): Change alternative 3
101 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
104 * config/i386/sse.md (iptr): New mode attribute.
105 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
106 (<sse>_vm<plusminus_insn><mode>3): Ditto.
107 (<sse>_vmmul<mode>3): Ditto.
108 (<sse>_vmdiv<mode>3): Ditto.
109 (sse_vmrcpv4sf2): Ditto.
110 (<sse>_vmsqrt<mode>2): Ditto.
111 (sse_vmrsqrtv4sf2): Ditto.
112 (<sse>_vm<code><mode>3): Ditto.
113 (avx_vmcmp<mode>3): Ditto.
114 (<sse>_vmmaskcmp<mode>3): Ditto.
116 (<sse>_ucomi): Ditto.
117 (*xop_vmfrcz_<mode>): Ditto.
118 (*fmai_fmadd_<mode>): Ditto.
119 (*fmai_fmsub_<mode>): Ditto.
120 (*fmai_fnmadd_<mode>): Ditto.
121 (*fmai_fnmsub_<mode>): Ditto.
122 (*fma4i_vmfmadd_<mode>): Ditto.
123 (*fma4i_vmfmsub_<mode>): Ditto.
124 (*fma4i_vmfnmadd_<mode>): Ditto.
125 (*fma4i_vmfnmsub_<mode>): Ditto.
126 (*xop_vmfrcz_<mode>): Ditto.
127 (sse_cvtps2pi): Ditto.
128 (sse_cvttps2pi): Ditto.
129 (sse_cvtss2si): Ditto.
130 (sse_cvtss2si_2): Ditto.
131 (sse_cvtss2siq_2): Ditto.
132 (sse_cvttss2si): Ditto.
133 (sse_cvttss2siq): Ditto.
134 (sse_cvtsd2si): Ditto.
135 (sse_cvtsd2si_2): Ditto.
136 (sse_cvtsd2siq_2): Ditto.
137 (sse_cvttsd2si): Ditto.
138 (sse_cvttsd2siq): Ditto.
139 (sse_cvtsd2ss): Ditto.
140 (sse_cvtss2sd): Ditto.
141 (avx2_pbroadcast<mode>): Ditto.
142 (avx2_pbroadcast<mode>_1): Ditto.
143 (*avx_vperm_broadcast_v4sf): Ditto.
145 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
146 (sse_movlhps): Ditto.
147 (sse_storehps): Ditto.
148 (sse_loadhps): Ditto.
149 (sse_storelps): Ditto.
150 (sse_loadlps): Ditto.
151 (*vec_concatv4sf): Ditto.
152 (*vec_interleave_highv2df): Ditto.
153 (*vec_interleave_lowv2df): Ditto.
154 (*vec_extractv2df_1_sse): Ditto.
155 (*vec_extractv2df_0_sse): Ditto.
156 (sse2_storelpd): Ditto.
157 (sse2_loadlpd): Ditto.
159 (*vec_concatv4si): Ditto.
160 (vec_concatv2di): Ditto.
162 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
163 for Intel asm dialect.
164 (mmx_punpcklwd): Ditto.
165 (mmx_punpckldq): Ditto.
167 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
168 for intel assembler dialect.
170 2013-07-06 Jakub Jelinek <jakub@redhat.com>
173 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
174 for BUILT_IN_C{LZ,LRSB}*.
175 * tree.h (CASE_INT_FN): Add FN##IMAX case.
176 * tree-vrp.c (extract_range_basic): Handle
177 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
178 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
179 fall thru to code calling set_value*.
180 * builtins.c (expand_builtin): Remove *IMAX cases.
181 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
182 if width is bigger than 2*HWI.
184 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
186 PR rtl-optimization/55342
187 * lra-int.h (lra_subreg_reload_pseudos): New.
188 * lra.c: Add undoing optional reloads to the block diagram.
189 (lra_subreg_reload_pseudos): New.
190 (lra_optional_reload_pseudos): Change comments.
191 (lra): Init and clear lra_subreg_reload_pseudos. Clear
192 lra_optional_reload_pseudos after undo transformations.
193 * lra-assigns.c (pseudo_prefix_title): New.
194 (lra_setup_reg_renumber): Use it.
195 (spill_for): Ditto. Check subreg reload pseudos too.
196 (assign_by_spills): Consider subreg reload pseudos too.
197 * lra-constraints.c (simplify_operand_subreg): Use
198 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
199 (curr_insn_transform): Recognize and do optional reloads.
200 (undo_optional_reloads): New.
201 (lra_undo_inheritance): Call undo_optional_reloads.
203 2013-07-05 Thomas Quinot <quinot@adacore.com>
205 * tree-complex.c (expand_complex_operations_1): Fix typo.
207 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
209 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
210 (tune_params): New member 'const vec_costs'.
211 * config/aarch64/aarch64.c (generic_vector_cost): New.
212 (generic_tunings): New member 'generic_vector_cost'.
213 (aarch64_builtin_vectorization_cost): New.
214 (aarch64_add_stmt_cost): New.
215 (TARGET_VECTORIZE_ADD_STMT_COST): New.
216 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
218 2013-07-03 Jakub Jelinek <jakub@redhat.com>
221 * config/i386/predicates.md (vsib_address_operand): Disallow
222 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
224 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
227 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
228 expand_builtin_setjmp_receiver.
229 (expand_label): Adjust, call expand_builtin_setjmp_receiver
230 with NULL for the label parameter.
231 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
232 the frame-pointer. Adjust comments.
233 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
234 only if LABEL is non-NULL.
236 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
238 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
239 (ARM_ABI_AAPCS64): Ditto.
241 (ARM_DEFAULT_ABI): Ditto.
243 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
245 * config/aarch64/aarch64-builtins.c
246 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
247 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
249 * config/aarch64/aarch64-simd.md
250 (aarch64_ld1<VALL:mode>): New.
251 (aarch64_st1<VALL:mode>): Likewise.
252 * config/aarch64/arm_neon.h
253 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
255 2013-07-02 Sriraman Tallam <tmsriram@google.com>
257 * config/i386/i386.c (gate_insert_vzeroupper): Check if
259 (ix86_option_override_internal):Turn on all -mavx target flags by
260 default as they are dependent on AVX anyway.
262 2013-07-02 Cary Coutant <ccoutant@google.com>
264 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
266 (loc_checksum_ordered): Likewise.
267 (hash_loc_operands): Remove inline keyword.
269 2013-07-02 Jakub Jelinek <jakub@redhat.com>
271 PR tree-optimization/57741
272 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
273 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
274 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
275 Allow REAL_CST step_exprs if flag_associative_math.
276 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
278 2013-07-02 Ian Bolton <ian.bolton@arm.com>
280 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
282 2013-07-02 Ian Bolton <ian.bolton@arm.com>
284 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
286 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
288 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
290 (iorsi3_insn): Likewise.
291 (arm_xorsi3): Likewise.
293 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
295 * arm.md (attribute "wtype"): Delete. Move attribute values from here
297 (attribute "type"): ... here, and prefix with "wmmx_".
298 (attribute "core_cycles"): Update for attribute changes.
299 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
300 (tbcstv4hi): Likewise.
301 (tbcstv2si): Likewise.
302 (iwmmxt_iordi3): Likewise.
303 (iwmmxt_xordi3): Likewise.
304 (iwmmxt_anddi3): Likewise.
305 (iwmmxt_nanddi3): Likewise.
306 (iwmmxt_arm_movdi): Likewise.
307 (iwmmxt_movsi_insn): Likewise.
308 (mov<mode>_internal): Likewise.
309 (and<mode>3_iwmmxt): Likewise.
310 (ior<mode>3_iwmmxt): Likewise.
311 (xor<mode>3_iwmmxt): Likewise.
312 (add<mode>3_iwmmxt): Likewise.
313 (ssaddv8qi3): Likewise.
314 (ssaddv4hi3): Likewise.
315 (ssaddv2si3): Likewise.
316 (usaddv8qi3): Likewise.
317 (usaddv4hi3): Likewise.
318 (usaddv2si3): Likewise.
319 (sub<mode>3_iwmmxt): Likewise.
320 (sssubv8qi3): Likewise.
321 (sssubv4hi3): Likewise.
322 (sssubv2si3): Likewise.
323 (ussubv8qi3): Likewise.
324 (ussubv4hi3): Likewise.
325 (ussubv2si3): Likewise.
326 (mulv4hi3_iwmmxt): Likewise.
327 (smulv4hi3_highpart): Likewise.
328 (umulv4hi3_highpart): Likewise.
329 (iwmmxt_wmacs): Likewise.
330 (iwmmxt_wmacsz): Likewise.
331 (iwmmxt_wmacu): Likewise.
332 (iwmmxt_wmacuz): Likewise.
333 (iwmmxt_clrdi): Likewise.
334 (iwmmxt_clrv8qi): Likewise.
335 (iwmmxt_clr4hi): Likewise.
336 (iwmmxt_clr2si): Likewise.
337 (iwmmxt_uavgrndv8qi3): Likewise.
338 (iwmmxt_uavgrndv4hi3): Likewise.
339 (iwmmxt_uavgv8qi3): Likewise.
340 (iwmmxt_uavgv4hi3): Likewise.
341 (iwmmxt_tinsrb): Likewise.
342 (iwmmxt_tinsrh): Likewise.
343 (iwmmxt_tinsrw): Likewise.
344 (iwmmxt_textrmub): Likewise.
345 (iwmmxt_textrmsb): Likewise.
346 (iwmmxt_textrmuh): Likewise.
347 (iwmmxt_textrmsh): Likewise.
348 (iwmmxt_textrmw): Likewise.
349 (iwmxxt_wshufh): Likewise.
353 (gtuv8qi3): Likewise.
354 (gtuv4hi3): Likewise.
355 (gtuv2si3): Likewise.
359 (smax<mode>3_iwmmxt): Likewise.
360 (umax<mode>3_iwmmxt): Likewise.
361 (smin<mode>3_iwmmxt): Likewise.
362 (umin<mode>3_iwmmxt): Likewise.
363 (iwmmxt_wpackhss): Likewise.
364 (iwmmxt_wpackwss): Likewise.
365 (iwmmxt_wpackdss): Likewise.
366 (iwmmxt_wpackhus): Likewise.
367 (iwmmxt_wpackwus): Likewise.
368 (iwmmxt_wpackdus): Likewise.
369 (iwmmxt_wunpckihb): Likewise.
370 (iwmmxt_wunpckihh): Likewise.
371 (iwmmxt_wunpckihw): Likewise.
372 (iwmmxt_wunpckilb): Likewise.
373 (iwmmxt_wunpckilh): Likewise.
374 (iwmmxt_wunpckilw): Likewise.
375 (iwmmxt_wunpckehub): Likewise.
376 (iwmmxt_wunpckehuh): Likewise.
377 (iwmmxt_wunpckehuw): Likewise.
378 (iwmmxt_wunpckehsb): Likewise.
379 (iwmmxt_wunpckehsh): Likewise.
380 (iwmmxt_wunpckehsw): Likewise.
381 (iwmmxt_wunpckelub): Likewise.
382 (iwmmxt_wunpckeluh): Likewise.
383 (iwmmxt_wunpckeluw): Likewise.
384 (iwmmxt_wunpckelsb): Likewise.
385 (iwmmxt_wunpckelsh): Likewise.
386 (iwmmxt_wunpckelsw): Likewise.
387 (ror<mode>3): Likewise.
388 (ashr<mode>3_iwmmxt): Likewise.
389 (lshr<mode>3_iwmmxt): Likewise.
390 (ashl<mode>3_iwmmxt): Likewise.
391 (ror<mode>3_di): Likewise.
392 (ashr<mode>3_di): Likewise.
393 (lshr<mode>3_di): Likewise.
394 (ashl<mode>3_di): Likewise.
395 (iwmmxt_wmadds): Likewise.
396 (iwmmxt_wmaddu): Likewise.
397 (iwmmxt_tmia): Likewise.
398 (iwmmxt_tmiaph): Likewise.
399 (iwmmxt_tmiabb): Likewise.
400 (iwmmxt_tmiatb): Likewise.
401 (iwmmxt_tmiabt): Likewise.
402 (iwmmxt_tmiatt): Likewise.
403 (iwmmxt_tmovmskb): Likewise.
404 (iwmmxt_tmovmskh): Likewise.
405 (iwmmxt_tmovmskw): Likewise.
406 (iwmmxt_waccb): Likewise.
407 (iwmmxt_wacch): Likewise.
408 (iwmmxt_waccw): Likewise.
409 (iwmmxt_waligni): Likewise.
410 (iwmmxt_walignr): Likewise.
411 (iwmmxt_walignr0): Likewise.
412 (iwmmxt_walignr1): Likewise.
413 (iwmmxt_walignr2): Likewise.
414 (iwmmxt_walignr3): Likewise.
415 (iwmmxt_wsadb): Likewise.
416 (iwmmxt_wsadh): Likewise.
417 (iwmmxt_wsadbz): Likewise.
418 (iwmmxt_wsadhz): Likewise.
419 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
420 (iwmmxt_wabsdiffb): Likewise.
421 (iwmmxt_wabsdiffh): Likewise.
422 (iwmmxt_wabsdiffw): Likewise.
423 (iwmmxt_waddsubhx): Likewise
424 (iwmmxt_wsubaddhx): Likewise.
425 (addc<mode>3): Likewise.
426 (iwmmxt_avg4): Likewise.
427 (iwmmxt_avg4r): Likewise.
428 (iwmmxt_wmaddsx): Likewise.
429 (iwmmxt_wmaddux): Likewise.
430 (iwmmxt_wmaddsn): Likewise.
431 (iwmmxt_wmaddun): Likewise.
432 (iwmmxt_wmulwsm): Likewise.
433 (iwmmxt_wmulwum): Likewise.
434 (iwmmxt_wmulsmr): Likewise.
435 (iwmmxt_wmulumr): Likewise.
436 (iwmmxt_wmulwsmr): Likewise.
437 (iwmmxt_wmulwumr): Likewise.
438 (iwmmxt_wmulwl): Likewise.
439 (iwmmxt_wqmulm): Likewise.
440 (iwmmxt_wqmulwm): Likewise.
441 (iwmmxt_wqmulmr): Likewise.
442 (iwmmxt_wqmulwmr): Likewise.
443 (iwmmxt_waddbhusm): Likewise.
444 (iwmmxt_waddbhusl): Likewise.
445 (iwmmxt_wqmiabb): Likewise.
446 (iwmmxt_wqmiabt): Likewise.
447 (iwmmxt_wqmiatb): Likewise.
448 (iwmmxt_wqmiatt): Likewise.
449 (iwmmxt_wqmiabbn): Likewise.
450 (iwmmxt_wqmiabtn): Likewise.
451 (iwmmxt_wqmiatbn): Likewise.
452 (iwmmxt_wqmiattn): Likewise.
453 (iwmmxt_wmiabb): Likewise.
454 (iwmmxt_wmiabt): Likewise.
455 (iwmmxt_wmiatb): Likewise.
456 (iwmmxt_wmiatt): Likewise.
457 (iwmmxt_wmiabbn): Likewise.
458 (iwmmxt_wmiabtn): Likewise.
459 (iwmmxt_wmiatbn): Likewise.
460 (iwmmxt_wmiattn): Likewise.
461 (iwmmxt_wmiawbb): Likewise.
462 (iwmmxt_wmiawbt): Likewise.
463 (iwmmxt_wmiawtb): Likewise.
464 (iwmmxt_wmiawtt): Likewise.
465 (iwmmxt_wmiawbbn): Likewise.
466 (iwmmxt_wmiawbtn): Likewise.
467 (iwmmxt_wmiawtbn): Likewise.
468 (iwmmxt_wmiawttn): Likewise.
469 (iwmmxt_wmerge): Likewise.
470 (iwmmxt_tandc<mode>3): Likewise.
471 (iwmmxt_torc<mode>3): Likewise.
472 (iwmmxt_torvsc<mode>3): Likewise.
473 (iwmmxt_textrc<mode>3): Likewise.
474 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
475 (wmmxt_pack): Likewise.
476 (wmmxt_mult_c1): Likewise.
477 (wmmxt_mult_c2): Likewise.
478 (wmmxt_alu_c1): Likewise.
479 (wmmxt_alu_c2): Likewise.
480 (wmmxt_alu_c3): Likewise.
481 (wmmxt_transfer_c1): Likewise.
482 (wmmxt_transfer_c2): Likewise.
483 (wmmxt_transfer_c3): Likewise.
484 (marvell_f_iwmmxt_wstr): Likewise.
485 (marvell_f_iwmmxt_wldr): Likewise.
487 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
489 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
491 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
494 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
495 * lra-constraints.c (need_for_split_p): Check call used hard regs
496 living through calls.
498 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
499 call used regs for call insn.
501 2013-06-28 Jakub Jelinek <jakub@redhat.com>
504 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
505 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
507 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
509 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
511 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
513 * lra-constraints.c (need_for_split_p): Check call used hard regs
514 living through calls.
516 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
519 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
520 to tie with any other modes. Eliminate Altivec vector mode tests,
521 since these are a subset of ALTIVEC or VSX vector modes. Simplify
522 code, to return 0 if testing MODE2 for a condition, if we've
523 already tested MODE1 for the same condition.
525 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
527 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
530 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
532 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
533 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
535 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
537 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
539 (aarch64_symbolic_constant_p): Remove.
540 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
541 static. Fix line length and white space.
542 (aarch64_symbolic_constant_p): Remove.
543 * config/aarch64/predicates.md (aarch64_valid_symref):
544 Use aarch64_classify_symbol_expression.
546 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
548 * config/arm/constraints.md (Ts): New constraint.
549 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
551 (compare_scc): Use "Ts" constraint for operand 0.
552 (ior_scc_scc): Likewise.
553 (and_scc_scc): Likewise.
554 (and_scc_scc_nodom): Likewise.
555 (ior_scc_scc_cmp): Likewise for operand 7.
556 (and_scc_scc_cmp): Likewise.
557 * config/arm/thumb2.md (thumb2_movsi_insn):
558 Add alternatives for 16-bit encodings.
559 (thumb2_movhi_insn): Likewise.
560 (thumb2_movsicc_insn): Likewise.
561 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
562 (thumb2_negscc): Use "Ts" constraint.
563 Move mvn instruction outside cond_exec block.
564 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
565 for 16-bit encodings.
567 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
569 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
571 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
572 (mulsi3subsi): Likewise.
573 (mulsidi3adddi): Likewise.
574 (mulsidi3_v6): Likewise.
575 (umulsidi3_v6): Likewise.
576 (umulsidi3adddi_v6): Likewise.
577 (smulsi3_highpart_v6): Likewise.
578 (umulsi3_highpart_v6): Likewise.
579 (mulhisi3tb): Likewise.
580 (mulhisi3bt): Likewise.
581 (mulhisi3tt): Likewise.
582 (maddhisi4): Likewise.
583 (maddhisi4tb): Likewise.
584 (maddhisi4tt): Likewise.
585 (maddhidi4): Likewise.
586 (maddhidi4tb): Likewise.
587 (maddhidi4tt): Likewise.
588 (zeroextractsi_compare0_scratch): Likewise.
589 (insv_zero): Likewise.
591 (anddi_notzesidi_di): Likewise.
592 (anddi_notsesidi_di): Likewise.
593 (andsi_notsi_si): Likewise.
594 (iordi_zesidi_di): Likewise.
595 (xordi_zesidi_di): Likewise.
596 (andsi_iorsi3_notsi): Likewise.
600 (not_shiftsi): Likewise.
601 (unaligned_loadsi): Likewise.
602 (unaligned_loadhis): Likewise.
603 (unaligned_loadhiu): Likewise.
604 (unaligned_storesi): Likewise.
605 (unaligned_storehi): Likewise.
606 (extv_reg): Likewise.
607 (extzv_t2): Likewise.
610 (arm_zero_extendhisi2addsi): Likewise.
611 (arm_zero_extendqisi2addsi): Likewise.
612 (compareqi_eq0): Likewise.
613 (arm_extendhisi2_v6): Likewise.
614 (arm_extendqisi2addsi): Likewise.
615 (arm_movt): Likewise.
616 (thumb2_ldrd): Likewise.
617 (thumb2_ldrd_base): Likewise.
618 (thumb2_ldrd_base_neg): Likewise.
619 (thumb2_strd): Likewise.
620 (thumb2_strd_base): Likewise.
621 (thumb2_strd_base_neg): Likewise.
622 (arm_negsi2): Add alternative for 16-bit encoding.
623 (arm_one_cmplsi2): Likewise.
625 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
627 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
628 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
630 * config/arm/vfp.md (*thumb2_movsf_vfp):
631 Disable predication for arm_restrict_it.
632 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
633 (*thumb2_movdfcc_vfp): Likewise.
634 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
635 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
636 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
637 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
638 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
639 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
640 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
641 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
642 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
643 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
644 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
645 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
646 Disable predication for arm_restrict_it.
648 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
650 * config/i386/bmiintrin.h (_bextr_u32): New.
653 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
655 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
656 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
657 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
658 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
659 * config/mips/n32-elf.h: ...this new file.
661 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
664 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
665 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
667 2013-06-27 Catherine Moore <clm@codesourcery.com>
669 * config/mips/mips-tables.opt: Regenerate.
670 * config/mips/mips-cpus.def: Add m14ke and m14kec.
671 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
672 * doc/invoke.texi: Add -m14kc.
674 2013-06-27 Jakub Jelinek <jakub@redhat.com>
677 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
678 constraints of operand 1 and 2.
681 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
682 to match RTL canonicalization. Swap predicates and
683 constraints of operand 1 and 2.
685 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
687 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
688 Process OP_INOUT regs for splitting too.
690 2013-06-27 Jakub Jelinek <jakub@redhat.com>
692 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
693 decl before the loop, initialize to NULL.
694 (vectorizable_load): Initialize ptr_incr to NULL.
696 2013-06-27 Martin Jambor <mjambor@suse.cz>
699 * ipa-ref.h (ipa_maybe_record_reference): Declare.
700 * ipa-ref.c (ipa_maybe_record_reference): New function.
701 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
702 * ipa-cp.c (create_specialized_node): Record potential references from
704 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
706 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
708 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
709 parameter 'mode' of type 'enum machine_mode mode'; change to pass
711 (aarch64_add_offset): Update calls to aarch64_force_temporary.
712 (aarch64_expand_mov_immediate): Likewise.
714 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
716 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
717 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
719 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
721 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
722 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
723 (struct machine_function): Add tbegin_p.
724 (s390_canonicalize_comparison): Fold CC mode compares to
725 conditional jump if possible.
726 (s390_emit_jump): Return the emitted jump.
727 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
728 Handle CCRAWmode compares.
729 (s390_option_override): Default to -mhtm if available.
730 (s390_reg_clobbered_rtx): Handle floating point regs as well.
731 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
732 FPRs instead of df_regs_ever_live_p.
733 (s390_optimize_nonescaping_tx): New function.
734 (s390_init_frame_layout): Extend clobbered_regs array to cover
736 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
737 (s390_expand_tbegin): New function.
738 (enum s390_builtin): New enum definition.
739 (code_for_builtin): New array definition.
740 (s390_init_builtins): New function.
741 (s390_expand_builtin): New function.
742 (TARGET_INIT_BUILTINS): Define.
743 (TARGET_EXPAND_BUILTIN): Define.
744 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
745 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
746 (s390_alc_comparison): Likewise.
747 * config/s390/s390-modes.def: Add CCRAWmode.
748 * config/s390/s390.h (processor_flags): Add PF_TX.
749 (TARGET_CPU_HTM): Define macro.
750 (TARGET_HTM): Define macro.
751 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
752 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
753 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
754 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
755 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
756 (TBEGIN_MASK, TBEGINC_MASK): New constants.
757 ("*cc_to_int"): Move up.
758 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
759 constants other than 0.
760 ("*ccraw_to_int"): New insn and splitter definition.
761 ("tbegin", "tbegin_nofloat", "tbegin_retry")
762 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
763 ("tx_assist"): New expander.
764 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
765 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
766 * config/s390/s390.opt: Add -mhtm option.
767 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
768 * config/s390/htmxlintrin.h: New file.
769 * config/s390/htmintrin.h: New file.
770 * config/s390/s390intrin.h: New file.
771 * doc/extend.texi: Document htm builtins.
772 * config.gcc: Add the new header files to extra_headers.
774 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
776 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
777 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
779 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
780 Pat Haugen <pthaugen@us.ibm.com>
781 Peter Bergner <bergner@vnet.ibm.com>
783 * config/rs6000/power8.md: New.
784 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
785 setting for power8 entry.
786 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
787 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
788 test for Power4/Power5 only.
789 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
791 (force_new_group): Adjust comment.
792 * config/rs6000/rs6000.md: Include power8.md.
794 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
796 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
797 * config/arm/arm-protos.h (arm_max_conditional_execute): New
799 (tune_params): Update comment.
800 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
801 (arm_max_conditional_execute): New function.
802 (thumb2_final_prescan_insn): Use max_insn_skipped and
803 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
805 2013-06-25 Jakub Jelinek <jakub@redhat.com>
807 PR tree-optimization/57705
808 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
809 SSA_NAME step, provided that it is not defined inside the loop.
810 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
811 (get_initial_def_for_induction): Handle SSA_NAME IV step.
813 2013-06-25 Martin Jambor <mjambor@suse.cz>
816 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
817 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
819 (ipa_note_param_call): Initialize member_ptr flag.
820 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
821 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
822 (ipa_write_indirect_edge_info): Stream member_ptr flag.
823 (ipa_read_indirect_edge_info): Likewise.
825 2013-06-25 Richard Biener <rguenther@suse.de>
828 * passes.c (init_optimization_passes): Move pass_fold_builtins
829 and pass_dce earlier with -Og.
831 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
833 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
834 <BIT_FIELD_REF>: Remove trailing TAB.
835 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
838 2013-06-24 Martin Jambor <mjambor@suse.cz>
840 PR tree-optimization/57358
841 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
842 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
843 (ipa_analyze_params_uses): Generate pessimistic info when true.
845 2013-06-24 Martin Jambor <mjambor@suse.cz>
847 PR tree-optimization/57539
848 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
849 global.inlined_to of the new node to it. All callers changed.
850 * ipa-inline-transform.c (clone_inlined_nodes): New variable
851 inlining_into, pass it to cgraph_clone_node.
852 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
853 ipa_free_edge_args_substructures.
854 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
855 rdesc linked list. Do not assert rdesc edges have inlined caller.
856 Assert we have found an rdesc in the rdesc list.
858 2013-06-24 Richard Biener <rguenther@suse.de>
860 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
861 (pointer_set_lookup): Declare.
862 (class pointer_map): New template class implementing a
863 generic pointer to T map.
864 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
865 pointer_map<T>::contains, pointer_map<T>::insert,
866 pointer_map<T>::traverse): New functions.
867 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
868 (pointer_set_lookup): New function.
869 (pointer_set_contains): Use pointer_set_lookup.
870 (pointer_set_insert): Likewise.
871 (insert_aux): Remove.
872 (struct pointer_map_t): Embed a pointer_set_t.
873 (pointer_map_create): Adjust.
874 (pointer_map_destroy): Likewise.
875 (pointer_map_contains): Likewise.
876 (pointer_map_insert): Likewise.
877 (pointer_map_traverse): Likewise.
878 * tree-streamer.h (struct streamer_tree_cache_d): Use a
879 pointer_map<unsigned> instead of a pointer_map_t.
880 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
881 (streamer_tree_cache_lookup): Likewise.
882 (streamer_tree_cache_create): Likewise.
883 (streamer_tree_cache_delete): Likewise.
884 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
885 pointer_map<unsigned> instead of a pointer_map_t.
886 (lto_init_tree_ref_encoder): Adjust.
887 (lto_destroy_tree_ref_encoder): Likewise.
888 * lto-section-out.c (lto_output_decl_index): Likewise.
889 (lto_record_function_out_decl_state): Likewise.
890 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
892 2013-06-24 Richard Biener <rguenther@suse.de>
894 PR tree-optimization/57488
895 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
897 2013-06-24 Alan Modra <amodra@gmail.com>
899 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
900 (gen_easy_altivec_constant): Likewise.
901 * config/rs6000/predicates.md (easy_vector_constant_add_self,
902 easy_vector_constant_msb): Likewise.
904 2013-06-23 Jakub Jelinek <jakub@redhat.com>
907 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
908 add missing return true.
910 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
913 * config/sh/predicates.md (general_extend_operand): Invoke
914 general_movsrc_operand for memory operands.
915 (general_movsrc_operand): Allow reg+reg addressing, do not use
916 general_operand for memory operands.
918 2013-06-23 Sriraman Tallam <tmsriram@google.com>
920 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
921 when current target options does not apply.
922 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
923 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
924 * config/i386/bmiintrin.h: Pass appropriate target
925 attributes to header.
926 * config/i386/mmintrin.h: Ditto.
927 * config/i386/nmmintrin.h: Ditto.
928 * config/i386/avx2intrin.h: Ditto.
929 * config/i386/fxsrintrin.h: Ditto.
930 * config/i386/tbmintrin.h: Ditto.
931 * config/i386/xsaveintrin.h: Ditto.
932 * config/i386/f16cintrin.h: Ditto.
933 * config/i386/xtestintrin.h: Ditto.
934 * config/i386/xsaveoptintrin.h: Ditto.
935 * config/i386/bmi2intrin.h: Ditto.
936 * config/i386/lzcntintrin.h: Ditto.
937 * config/i386/smmintrin.h: Ditto.
938 * config/i386/wmmintrin.h: Ditto.
939 * config/i386/x86intrin.h: Remove all header include guards.
940 * config/i386/prfchwintrin.h: Ditto.
941 * config/i386/pmmintrin.h: Ditto.
942 * config/i386/tmmintrin.h: Ditto.
943 * config/i386/xmmintrin.h: Ditto.
944 * config/i386/popcntintrin.h: Ditto.
945 * config/i386/rdseedintrin.h: Ditto.
946 * config/i386/ammintrin.h: Ditto.
947 * config/i386/emmintrin.h: Ditto.
948 * config/i386/immintrin.h: Remove all header include guards.
949 * config/i386/fma4intrin.h: Ditto.
950 * config/i386/lwpintrin.h: Ditto.
951 * config/i386/xopintrin.h: Ditto.
952 * config/i386/ia32intrin.h: Ditto.
953 * config/i386/avxintrin.h: Ditto.
954 * config/i386/rtmintrin.h: Ditto.
955 * config/i386/fmaintrin.h: Ditto.
956 * config/i386/mm3dnow.h: Ditto.
958 2013-06-22 Sriraman Tallam <tmsriram@google.com>
960 * common/config/i386/i386-common.c: Handle LZCNT.
962 2013-06-22 Andi Kleen <ak@linux.intel.com>
964 * doc/extend.texi: Use __atomic_store_n instead of
965 __atomic_store in HLE example.
967 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
969 * config/sh/sh.c: Remove <cstdlib> workaround.
971 2013-06-21 Andi Kleen <ak@linux.intel.com>
973 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
975 2013-06-21 Andi Kleen <ak@linux.intel.com>
977 * doc/extend.texi: Document that __atomic_clear and
978 __atomic_test_and_set should only be used with bool.
980 2013-06-20 Jan Hubicka <jh@suse.cz>
982 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
984 * tree.c (decls_same_for_odr): New function.
985 (same_for_edr): New function.
986 (types_same_for_odr): New function.
987 (get_binfo_at_offset): Use it.
988 * tree.h (types_same_for_odr): Declare.
990 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
991 Jason Merrill <jason@redhat.com>
993 * system.h: Include <cstdlib> as well as <stdlib.h>.
995 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
998 * config/i386/i386.c (construct_container): Report error if
999 long double is used with disabled x87 float returns.
1001 2013-06-20 Jan Hubicka <jh@suse.cz>
1003 * lto-cgraph.c (input_symtab): Do not set cgraph state.
1005 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
1007 PR rtl-optimization/57425
1008 PR rtl-optimization/57569
1009 * alias.c (write_dependence_p): Remove parameters mem_mode and
1010 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
1011 Changed all callers.
1012 (canon_anti_dependence): Get comments and semantics in sync.
1013 Add parameter mem_canonicalized. Changed all callers.
1014 * rtl.h (canon_anti_dependence): Update prototype.
1016 2013-06-20 Richard Biener <rguenther@suse.de>
1018 * data-streamer-in.c (streamer_read_uhwi): Optimize single
1019 byte case, inline streamer_read_uchar and defer section
1022 2013-06-20 Richard Biener <rguenther@suse.de>
1024 PR tree-optimization/57584
1025 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
1026 SSA names into the expanded expression that take part in
1027 abnormal coalescing.
1029 2013-06-19 <singhai@google.com>
1031 * gcov.c (print_usage): Handle new option.
1032 (process_args): Ditto.
1033 (get_gcov_intermediate_filename): New function.
1034 (output_intermediate_file): New function.
1035 (output_gcov_file): New function
1036 (generate_results): Handle new option.
1037 (release_function): Relase demangled name.
1038 (read_graph_file): Handle demangled name.
1039 (output_lines): Ditto.
1040 * doc/gcov.texi: Document gcov intermediate format.
1042 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
1045 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
1046 (lra_emit_add): Use the functions. Add comment about Y as an
1049 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
1052 * collect2.c (collect_atexit): New.
1053 (collect_exit): Delete.
1054 (main): Register collect_atexit with atexit.
1055 (collect_wait): Change collect_exit to exit.
1057 * collect2.h (collect_exit): Delete.
1058 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
1060 2013-06-19 Wei Mi <wmi@google.com>
1062 PR rtl-optimization/57518
1063 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
1064 if regno is used in paradoxical subreg.
1065 (update_equiv_regs): Check pdx_subregs[regno] before
1066 set a reg to be equivalent with a mem.
1068 2013-06-19 Matthias Klose <doko@ubuntu.com>
1071 * file-find.h (find_a_file): Add a mode parameter.
1072 * file-find.c (find_a_file): Likewise.
1073 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
1074 with X_OK for the executables.
1075 * collect2.c (main): Call find_a_file with X_OK.
1077 2013-06-19 Steve Ellcey <sellcey@mips.com>
1080 * config/mips/mips.md (casesi_internal_mips16_<mode>):
1081 Use NEXT_INSN instead of next_real_insn.
1083 2013-06-19 Jan Hubicka <jh@suse.cz>
1085 * cgraph.h (const_value_known_p): Replace by ...
1086 (ctor_for_folding): .. this one.
1087 * cgraphunit.c (process_function_and_variable_attributes): Use it.
1088 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
1089 * expr.c (expand_expr_real_1): Likewise.
1090 (string_constant): Likewise.
1091 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
1092 * ipa.c (process_references): Likewise.
1093 (symtab_remove_unreachable_nodes): Likewise.
1094 * ipa-inline-analysis.c (param_change_prob): Likewise.
1095 * gimple-fold.c (canonicalize_constructor_val): Likewise.
1096 (get_base_constructor): Likwise.
1097 * varpool.c (varpool_remove_node): Likewise.
1098 (varpool_remove_initializer): LIkewise.
1099 (dump_varpool_node): LIkwise.
1100 (const_value_known_p): Rewrite to ...
1101 (ctor_for_folding): ... this one.
1103 2013-06-19 Jakub Jelinek <jakub@redhat.com>
1106 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
1107 PERSONALITY in $PATH derived prefixes.
1109 2013-06-19 Jeff Law <law@redhat.com>
1111 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
1114 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
1115 (simplify_bitwise_binary): Use it to simpify certain binary ops on
1118 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
1120 * config/arm/vfp.md: Move VFP instruction classification documentation
1122 * config/arm/arm.md: ... here. Update instruction classification
1125 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
1127 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
1128 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
1129 pattern. Use more efficient sequences on ARMv5 and Thumb2.
1131 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
1134 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
1135 with NEXT_INSN. Use tablejump_p to check for jump table data
1138 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
1141 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
1142 that now in C++ the value is correct per the C++ standards.
1144 2013-06-19 Richard Biener <rguenther@suse.de>
1146 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
1149 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1152 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1155 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
1156 with next_active_insn.
1158 2013-06-18 Sriraman Tallam <tmsriram@google.com>
1160 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
1161 functions are inlined during failures to flag an error.
1162 * tree-inline.c (expand_call_inline): Allow the error to be flagged
1163 in early inline pass.
1165 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
1167 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
1170 2013-06-18 Julian Brown <julian@codesourcery.com>
1172 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
1173 Permit virtual register pre-reload if !strict.
1174 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
1176 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
1178 * config/arm/neon.md (movmisalign<mode>): Use
1179 neon_perm_struct_or_reg_operand instead of
1180 neon_struct_or_register_operand.
1181 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
1182 neon_permissive_struct_operand instead of neon_struct_operand.
1183 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
1184 neon_vector_mem_operand.
1185 * config/arm/predicates.md (neon_struct_operand): Adjust call to
1186 neon_vector_mem_operand.
1187 (neon_permissive_struct_operand): New.
1188 (neon_struct_or_register_operand): Rename to...
1189 (neon_perm_struct_or_reg_operand): This. Adjust call to
1190 neon_vector_mem_operand.
1192 2013-06-18 Richard Biener <rguenther@suse.de>
1194 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
1195 * lto-streamer.h: Include pointer-set.h.
1196 (struct lto_decl_slot): Remove.
1197 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
1198 Remove next_index entry.
1199 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
1200 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
1201 (lto_init_tree_ref_encoder): Adjust.
1202 (lto_destroy_tree_ref_encoder): Likewise.
1203 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
1204 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
1205 (lto_output_decl_index): Adjust.
1206 (lto_new_out_decl_state): Likewise.
1207 (lto_record_function_out_decl_state): Likewise.
1208 * lto-streamer-out.c (copy_function): Likewise.
1210 2013-06-18 Richard Biener <rguenther@suse.de>
1212 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
1213 * cgraphunit.c: Include cfgloop.h.
1214 (init_lowered_empty_function): Initialize the loop tree.
1215 (assemble_thunk): Insert new BBs into loops.
1217 2013-06-18 Richard Biener <rguenther@suse.de>
1219 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
1220 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
1221 the map from cache entry to cache index optional.
1222 (streamer_tree_cache_replace_tree): Adjust accordingly.
1223 (streamer_tree_cache_append): Likewise.
1224 (streamer_tree_cache_delete): Likewise.
1225 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
1226 streamer cache map from cache entry to cache index.
1227 * lto-streamer-out.c (create_output_block): Adjust.
1229 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
1231 * config/arm/arm.md (attribute "insn"): Move multiplication and
1232 division attributes to...
1233 (attribute "type"): ... here. Remove mult.
1234 (attribute "mul32"): New attribute.
1235 (attribute "mul64"): Add umaal.
1236 (*arm_mulsi3): Update attributes.
1237 (*arm_mulsi3_v6): Likewise.
1238 (*thumb_mulsi3): Likewise.
1239 (*thumb_mulsi3_v6): Likewise.
1240 (*mulsi3_compare0): Likewise.
1241 (*mulsi3_compare0_v6): Likewise.
1242 (*mulsi_compare0_scratch): Likewise.
1243 (*mulsi_compare0_scratch_v6): Likewise.
1244 (*mulsi3addsi): Likewise.
1245 (*mulsi3addsi_v6): Likewise.
1246 (*mulsi3addsi_compare0): Likewise.
1247 (*mulsi3addsi_compare0_v6): Likewise.
1248 (*mulsi3addsi_compare0_scratch): Likewise.
1249 (*mulsi3addsi_compare0_scratch_v6): Likewise.
1250 (*mulsi3subsi): Likewise.
1251 (*mulsidi3adddi): Likewise.
1252 (*mulsi3addsi_v6): Likewise.
1253 (*mulsidi3adddi_v6): Likewise.
1254 (*mulsidi3_nov6): Likewise.
1255 (*mulsidi3_v6): Likewise.
1256 (*umulsidi3_nov6): Likewise.
1257 (*umulsidi3_v6): Likewise.
1258 (*umulsidi3adddi): Likewise.
1259 (*umulsidi3adddi_v6): Likewise.
1260 (*smulsi3_highpart_nov6): Likewise.
1261 (*smulsi3_highpart_v6): Likewise.
1262 (*umulsi3_highpart_nov6): Likewise.
1263 (*umulsi3_highpart_v6): Likewise.
1264 (mulhisi3): Likewise.
1265 (*mulhisi3tb): Likewise.
1266 (*mulhisi3bt): Likewise.
1267 (*mulhisi3tt): Likewise.
1268 (maddhisi4): Likewise.
1269 (*maddhisi4tb): Likewise.
1270 (*maddhisi4tt): Likewise.
1271 (maddhidi4): Likewise.
1272 (*maddhidi4tb): Likewise.
1273 (*maddhidi4tt): Likewise.
1275 (udivsi3): Likewise.
1276 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
1277 (thumb2_mulsi_short_compare0): Likewise.
1278 (thumb2_mulsi_short_compare0_scratch): Likewise.
1279 * config/arm/arm1020e.md (1020mult1): Update attribute change.
1280 (1020mult2): Likewise.
1281 (1020mult3): Likewise.
1282 (1020mult4): Likewise.
1283 (1020mult5): Likewise.
1284 (1020mult6): Likewise.
1285 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
1287 (cortex_a15_mult64): Likewise.
1288 (cortex_a15_sdiv): Likewise.
1289 (cortex_a15_udiv): Likewise.
1290 * config/arm/arm1026ejs.md (mult1): Update attribute change.
1296 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
1297 (pj4_ir_div): Likewise.
1298 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
1299 (11_mult2): Likewise.
1300 (11_mult3): Likewise.
1301 (11_mult4): Likewise.
1302 (11_mult5): Likewise.
1303 (11_mult6): Likewise.
1304 (11_mult7): Likewise.
1305 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
1306 (cortex_a8_mla): Likewise.
1307 (cortex_a8_mull): Likewise.
1308 (cortex_a8_smulwy): Likewise.
1309 (cortex_a8_smlald): Likewise.
1310 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
1311 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
1312 (cortex_r4_mul_3): Likewise.
1313 (cortex_r4_mla_4): Likewise.
1314 (cortex_r4_mla_3): Likewise.
1315 (cortex_r4_smlald): Likewise.
1316 (cortex_r4_mull): Likewise.
1317 (cortex_r4_sdiv): Likewise.
1318 (cortex_r4_udiv): Likewise.
1319 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
1320 (cortex_a7_idiv): Likewise.
1321 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
1322 (9_mult2): Likewise.
1323 (9_mult3): Likewise.
1324 (9_mult4): Likewise.
1325 (9_mult5): Likewise.
1326 (9_mult6): Likewise.
1327 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
1328 (cortex_a53_sdiv): Likewise.
1329 (cortex_a53_udiv): Likewise.
1330 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
1331 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
1332 (mp626_mult2): Likewise.
1333 (mp626_mult3): Likewise.
1334 (mp626_mult4): Likewise.
1335 * config/arm/fa526.md (526_mult1): Update attribute change.
1336 (526_mult2): Likewise.
1337 * config/arm/arm-generic.md (mult): Update attribute change.
1338 (mult_ldsched_strongarm): Likewise.
1339 (mult_ldsched): Likewise.
1340 (multi_cycle): Likewise.
1341 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
1342 * config/arm/fa606te.md (606te_mult1): Update attribute change.
1343 (606te_mult2): Likewise.
1344 (606te_mult3): Likewise.
1345 (606te_mult4): Likewise.
1346 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
1347 (cortex_a9_mac16): Likewise.
1348 (cortex_a9_multiply): Likewise.
1349 (cortex_a9_mac): Likewise.
1350 (cortex_a9_multiply_long): Likewise.
1351 * config/arm/fa626te.md (626te_mult1): Update attribute change.
1352 (626te_mult2): Likewise.
1353 (626te_mult3): Likewise.
1354 (626te_mult4): Likewise.
1356 2013-06-18 Richard Biener <rguenther@suse.de>
1359 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
1361 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1364 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
1365 with next_active_insn.
1367 2013-06-18 Alan Modra <amodra@gmail.com>
1369 * config/rs6000/rs6000.h (enum data_align): New.
1370 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
1371 (DATA_ABI_ALIGNMENT): Define.
1372 (CONSTANT_ALIGNMENT): Correct comment.
1373 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
1374 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
1376 2013-06-17 David Malcolm <dmalcolm@redhat.com>
1378 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
1379 ATTRIBUTE_UNUSED marking.
1381 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
1383 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
1384 alternative and update.
1385 (aarch64_dup_lanedi): Delete.
1386 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
1387 * config/aarch64/aarch64-simd-builtins.def: Update.
1389 2013-06-17 Richard Biener <rguenther@suse.de>
1391 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
1392 (lto_input_scc): Declare.
1393 (lto_input_tree_1): Likewise.
1394 (struct lto_stats_d): Add num_tree_bodies_output and
1395 num_pickle_refs_output.
1396 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
1397 (lto_read_tree_1): Split out from ...
1398 (lto_read_tree): ... this.
1399 (lto_input_scc): New function.
1400 (lto_input_tree_1): Split out from ...
1401 (lto_input_tree): ... this. Handle LTO_tree_scc.
1402 (lto_data_in_create): Create the streamer cache without hashes.
1403 * lto-streamer-out.c (create_output_block): Create the streamer
1404 cache with hashes when not doing WPA.
1405 (lto_write_tree_1): Split out from ...
1406 (lto_write_tree): ... this.
1407 (get_symbol_initial_value): New function.
1408 (lto_output_tree_1): Split out from ...
1409 (lto_output_tree): ... this. Write trees as series of SCCs
1410 using a DFS walk via DFS_write_tree.
1411 (struct sccs, struct scc_entry): New types.
1412 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
1413 (DFS_write_tree_body): New function.
1414 (DFS_write_tree): Likewise.
1415 (hash_tree): Likewise.
1416 (scc_entry_compare): Likewise.
1417 (hash_scc): Likewise.
1418 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
1419 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
1420 TREE_CHAIN as regular reference.
1421 (streamer_read_integer_cst): Remove.
1422 (streamer_get_pickled_tree): Adjust.
1423 * tree-streamer-out.c (streamer_write_chain): Disable streaming
1424 of DECL_EXTERNALs in BLOCK_VARS for now.
1425 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
1427 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
1428 Add hash value argument and record that if hashes are recorded
1430 (streamer_tree_cache_insert_1): Adjust.
1431 (streamer_tree_cache_insert): Likewise.
1432 (streamer_tree_cache_insert_at): Rename to ...
1433 (streamer_tree_cache_replace_tree): ... this and adjust.
1434 (streamer_tree_cache_append): Adjust.
1435 (record_common_node): Likewise.
1436 (streamer_tree_cache_create): Add argument whether to
1437 record hash values together with trees.
1438 (streamer_tree_cache_delete): Adjust.
1439 * tree-streamer.h (struct streamer_tree_cache_d): Add
1441 (streamer_read_integer_cst): Remove.
1442 (streamer_tree_cache_insert): Adjust.
1443 (streamer_tree_cache_append): Likewise.
1444 (streamer_tree_cache_insert_at): Rename to ...
1445 (streamer_tree_cache_replace_tree): ... this and adjust.
1446 (streamer_tree_cache_create): Add argument whether to record hashes.
1447 (streamer_tree_cache_get): Rename to ...
1448 (streamer_tree_cache_get_tree): ... this.
1449 (streamer_tree_cache_get_hash): New function.
1450 * tree.c (cache_integer_cst): New function.
1451 * tree.h (cache_integer_cst): Declare.
1452 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
1453 * lto-symtab.c (lto_varpool_replace_node): Only release
1454 DECL_INITIAL of non-prevailing decls.
1455 * varpool.c (varpool_remove_initializer): Do not release
1456 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
1458 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
1460 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
1461 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
1462 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
1463 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
1464 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
1465 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
1466 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
1467 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
1468 instead of TARGET_64BIT.
1469 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
1470 Require ISA_HAS_<D>DIV.
1472 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
1474 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
1475 (mips*-*-linux*): Move default with_llsc setting to where other
1477 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
1479 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
1480 Likewise. Remove default with_tune setting. Move default float
1481 setting to its own block. Handle with_llsc in the same block as above.
1483 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
1485 PR rtl-optimization/57425
1486 PR rtl-optimization/57569
1487 * alias.c (write_dependence_p): Add new parameters mem_mode,
1488 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
1489 Changed all callers.
1490 (canon_anti_dependence): New function.
1491 * cse.c (check_dependence): Use canon_anti_dependence.
1492 * cselib.c (cselib_invalidate_mem): Likewise.
1493 * rtl.h (canon_anti_dependence): Declare.
1495 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
1497 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
1498 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
1499 ".set mips3" for 64-bit targets.
1501 2013-06-15 Dehao Chen <dehao@google.com>
1503 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
1504 * gimple-low.c (gimple_check_call_matching_types): Likewise.
1505 (gimple_check_call_args): Likewise.
1506 * value-prof.c (check_ic_target): Likewise.
1507 * ipa-inline.c (early_inliner): Likewise.
1508 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
1509 * cgraph.c (cgraph_create_edge_1): Likewise.
1510 (cgraph_make_edge_direct): Likewise.
1512 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1515 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
1516 rs6000_output_move_128bit to handle emitting quad memory
1517 operations. Set attribute length to 8 bytes.
1519 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
1521 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
1523 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
1524 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
1525 (aarch64_<su>mlsl<mode>): Likewise.
1527 2013-06-14 Mike Stump <mikestump@comcast.net>
1529 * Makefile.in (TARGET_H): Add insn-codes.h.
1531 2013-06-14 Alan Modra <amodra@gmail.com>
1535 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
1536 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
1537 bitfield expansion when EXPAND_MEMORY.
1538 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
1540 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
1542 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1543 test for clearing quad memory on 32-bit later.
1545 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
1547 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
1548 (fold_negate_expr): Likewise.
1549 (fold_real_zero_addition_p): Handle vectors.
1550 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
1552 2013-06-14 Alan Modra <amodra@gmail.com>
1554 * varasm.c (force_const_mem): Revert 2013-06-07 change.
1556 2013-06-13 Jan Hubicka <jh@suse.cz>
1558 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
1559 Local comdats are not externally visible.
1560 * symtab.c (dump_symtab_base): Dump externally visible.
1561 (verify_symtab_base): Verify back links in the symtab hash.
1563 2013-06-13 Bin Cheng <bin.cheng@arm.com>
1565 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
1566 CONVERT_EXPR as equal nodes.
1568 2013-06-13 Bin Cheng <bin.cheng@arm.com>
1570 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
1572 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
1574 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
1575 Generalize to complex and vector.
1576 * tree.c (build_all_ones_cst): New function.
1577 * tree.h (build_all_ones_cst): Declare it.
1579 2013-06-13 Alan Modra <amodra@gmail.com>
1581 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
1582 * config/rs6000/rs6000.md (signbittf2): New insn.
1583 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
1584 (abstf2_internal, cmptf_internal2): Likewise.
1585 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
1587 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
1588 Pat Haugen <pthaugen@us.ibm.com>
1589 Peter Bergner <bergner@vnet.ibm.com>
1591 * config/rs6000/rs6000.c (emit_load_locked): Add support for
1592 power8 byte, half-word, and quad-word atomic instructions.
1593 (emit_store_conditional): Likewise.
1594 (rs6000_expand_atomic_compare_and_swap): Likewise.
1595 (rs6000_expand_atomic_op): Likewise.
1597 * config/rs6000/sync.md (larx): Add new modes for power8.
1599 (AINT): New mode iterator to include TImode as well as normal
1600 integer modes on power8.
1601 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
1602 that VSX registers are not considered. Use AINT mode iterator
1603 instead of INT1 to allow inclusion of quad word atomic operations
1605 (load_locked<mode>): Likewise.
1606 (store_conditional<mode>): Likewise.
1607 (atomic_compare_and_swap<mode>): Likewise.
1608 (atomic_exchange<mode>): Likewise.
1609 (atomic_nand<mode>): Likewise.
1610 (atomic_fetch_<fetchop_name><mode>): Likewise.
1611 (atomic_nand_fetch<mode>): Likewise.
1612 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
1614 (ATOMIC): On power8, add QImode, HImode modes.
1615 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
1616 modes that promote to SImode.
1617 (load_lockedti): Convert TImode arguments to PTImode, so that we
1618 get a guaranteed even/odd register pair.
1619 (load_lockedpti): Likewise.
1620 (store_conditionalti): Likewise.
1621 (store_conditionalpti): Likewise.
1623 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
1624 atomic load/store instructions.
1627 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
1629 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
1631 (insn_count): New attribute, with most cases extracted from...
1632 (length): ...here. Redefine most cases in terms of insn_count.
1633 (single_insn): Delete.
1634 (can_delay): Use insn_count to check for single instructions.
1635 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
1636 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
1637 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
1638 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
1639 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
1640 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
1641 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
1642 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
1643 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
1644 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
1645 rather than "length".
1646 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
1647 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
1648 Use "insn_count" rather than "length".
1649 * config/mips/mips-dsp.md
1650 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
1651 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
1654 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
1656 PR tree-optimization/57361
1657 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
1659 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
1661 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
1663 (aarch64_simd_combine<mode>): New instruction expansion.
1664 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
1666 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
1667 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
1669 2013-06-12 Jan Hubicka <jh@suse.cz>
1671 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
1672 decl has when in streaming stage.
1673 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
1674 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
1676 2013-06-12 Roland Stigge <stigge@antcom.de>
1679 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
1681 2013-06-12 Jakub Jelinek <jakub@redhat.com>
1683 PR tree-optimization/57537
1684 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
1685 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
1687 2013-06-12 Richard Biener <rguenther@suse.de>
1689 * data-streamer.h (streamer_write_char_stream): CSE
1690 obs->current_pointer.
1691 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
1692 streamer_write_char_stream manually and optimize the resulting loop.
1693 (streamer_write_hwi_stream): Likewise.
1695 2013-06-12 Jan Hubicka <jh@suse.cz>
1697 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
1698 * cgraph.h (varpool_create_empty_node): Declare.
1699 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
1701 * symtab.c (symtab_unregister_node): Be lax about missin entries
1703 (symtab_get_node): Update comment.
1704 * varpool.c (varpool_create_empty_node): Break out from ...
1705 (varpool_node_for_decl): ... here.
1706 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
1708 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
1710 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
1711 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
1712 part. Use straight-line flow at the end.
1713 <COMPONENT_REF>: Remove superfluous else.
1714 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
1716 2013-06-12 Jakub Jelinek <jakub@redhat.com>
1719 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
1720 target hook even for !TREE_PUBLIC decls. If no resolution info
1721 is available, return false for common and external decls.
1723 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1725 * config/rl78/constraints.md (U): New constraint.
1726 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
1729 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1732 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
1733 to allow returning address to AT_PLATFORM name.
1735 2013-06-11 Jan Hubicka <jh@suse.cz>
1737 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
1738 * cgraph.h (symtab_node_base): Add weakref flag.
1739 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
1740 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
1741 (output_weakrefs): Use weakref flag.
1742 * fold-const.c (simple_operand_p): Handle WEAK.
1743 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
1744 * ipa.c (varpool_externally_visible_p): Drop weakref.
1745 (function_and_variable_visibility): Update comment; fix weakref
1746 sanity checks; do not clear DECL_WEAK on them.
1747 * lto-cgraph.c (lto_output_node): update.
1748 (lto_output_varpool_node): Update.
1749 (input_overwrite_node): Update.
1750 (input_node): Update.
1751 (input_varpool_node): Update.
1752 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
1753 (lto_symtab_merge_symbols): Add sanity check.
1754 (lto_symtab_prevailing_decl): Do not special case weakrefs.
1755 * passes.c (rest_of_decl_compilation): Set static flag, too.
1756 * symtab.c (dump_symtab_base): Dump weakref.
1757 (verify_symtab_base): Sanity check weakrefs.
1758 (symtab_make_decl_local): Remove duplicated code.
1759 (symtab_alias_ultimate_target): Simplify.
1760 * varpool.c (varpool_create_variable_alias): Set weakref flag.
1762 2013-06-11 DJ Delorie <dj@redhat.com>
1764 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
1765 (rl78_unwind_word_mode): New.
1767 2013-06-11 David Malcolm <dmalcolm@redhat.com>
1769 * final.c (debug_prefix_maps): Make static.
1771 2013-06-11 David Malcolm <dmalcolm@redhat.com>
1773 * function.c (initial_trampoline): Remove stray copy.
1775 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
1777 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
1779 2013-06-11 Martin Jambor <mjambor@suse.cz>
1781 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
1782 within bounds at the beginning of the function.
1784 2013-06-11 Alan Modra <amodra@gmail.com>
1786 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
1788 (get_named_section): Don't NULL !DECL_P decl.
1790 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
1792 * doc/invoke.texi (core-avx2): Document.
1794 (atom): Updated with MOVBE.
1796 2013-06-11 Richard Biener <rguenther@suse.de>
1798 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
1800 2013-06-11 Anton Blanchard <anton@samba.org>
1802 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
1803 correct shift value in little-endian mode.
1805 2013-06-11 Jakub Jelinek <jakub@redhat.com>
1808 * varasm.c (get_variable_align): Move #endif to the right place.
1810 2013-06-10 Cary Coutant <ccoutant@google.com>
1812 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
1813 for hash so that hash table traversal order is deterministic.
1815 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
1816 Pat Haugen <pthaugen@us.ibm.com>
1817 Peter Bergner <bergner@vnet.ibm.com>
1819 * config/rs6000/vector.md (GPR move splitter): Do not split moves
1820 of vectors in GPRS if they are direct moves or quad word load or
1823 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
1825 (direct_move_p): Likewise.
1826 (quad_load_store_p): Likewise.
1828 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
1829 classes into bins based on the physical register type.
1830 (reg_class_to_reg_type): Likewise.
1831 (IS_STD_REG_TYPE): Likewise.
1832 (IS_FP_VECT_REG_TYPE): Likewise.
1833 (reload_fpr_gpr): Arrays to determine what insn to use if we can
1834 use direct move instructions.
1835 (reload_gpr_vsx): Likewise.
1836 (reload_vsx_gpr): Likewise.
1837 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
1838 information that is a simplification of register classes. Also
1839 precalculate direct move reload helpers.
1840 (direct_move_p): New function to return true if the operation can
1841 be done as a direct move instruciton.
1842 (quad_load_store_p): New function to return true if the operation
1843 is a quad memory operation.
1844 (rs6000_legitimize_address): If quad memory, only allow register
1845 indirect for TImode addresses.
1846 (rs6000_legitimate_address_p): Likewise.
1847 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
1848 (rs6000_reload_register_type): Likewise.
1849 (register_to_reg_type): Return register type.
1850 (rs6000_secondary_reload_simple_move): New helper function for
1851 secondary reload and secondary memory needed to identify anything
1852 that is a simple move, and does not need reloading.
1853 (rs6000_secondary_reload_direct_move): New helper function for
1854 secondary reload to identify cases that can be done with several
1855 instructions via the direct move instructions.
1856 (rs6000_secondary_reload_move): New helper function for secondary
1857 reload to identify moves between register types that can be done.
1858 (rs6000_secondary_reload): Add support for quad memory operations
1859 and for direct move.
1860 (rs6000_secondary_memory_needed): Likewise.
1861 (rs6000_debug_secondary_memory_needed): Change argument names.
1862 (rs6000_output_move_128bit): New function to return the move to
1863 use for 128-bit moves, including knowing about the various
1864 limitations of quad memory operations.
1866 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
1867 memory operations. call rs6000_output_move_128bit for the actual
1868 instruciton(s) to generate.
1869 (vsx_movti_64bit): Likewise.
1871 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
1872 (UNSPEC_P8V_MTVSRWZ): Likewise.
1873 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
1874 (UNSPEC_P8V_MTVSRD): Likewise.
1875 (UNSPEC_P8V_XXPERMDI): Likewise.
1876 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
1877 (UNSPEC_FUSION_GPR): Likewise.
1878 (FMOVE128_GPR): New iterator for direct move.
1879 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
1882 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
1883 loads and direct move instructions.
1884 (zero_extendsidi2_lfiwzx): Likewise.
1885 (extendsidi2_lfiwax): Likewise.
1886 (extendsidi2_nocell): Likewise.
1887 (floatsi<mode>2_lfiwax): Likewise.
1889 (floatunssi<mode>2_lfiwzx): Likewise.
1891 (fix_trunc<mode>_stfiwx): Likewise.
1892 (fixuns_trunc<mode>_stfiwx): Likewise.
1893 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
1894 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
1895 (parity<mode>2_cmpb): Set length/type attr.
1896 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
1897 for 'mr.' to fast_compare.
1898 (bpermd_<mode>): Change type attr to popcnt.
1899 (p8_fmrgow_<mode>): New insns for power8 direct move support.
1900 (p8_mtvsrwz_1): Likewise.
1901 (p8_mtvsrwz_2): Likewise.
1902 (reload_fpr_from_gpr<mode>): Likewise.
1903 (p8_mtvsrd_1): Likewise.
1904 (p8_mtvsrd_2): Likewise.
1905 (p8_xxpermdi_<mode>): Likewise.
1906 (reload_vsx_from_gpr<mode>): Likewise.
1907 (reload_vsx_from_gprsf): Likewise.
1908 (p8_mfvsrd_3_<mode>): LIkewise.
1909 (reload_gpr_from_vsx<mode>): Likewise.
1910 (reload_gpr_from_vsxsf): Likewise.
1911 (p8_mfvsrd_4_disf): Likewise.
1912 (multi-word GPR splits): Do not split direct moves or quad memory
1915 2013-06-10 David Malcolm <dmalcolm@redhat.com>
1917 * tree-into-ssa.c (interesting_blocks): Make static.
1919 2013-06-10 Jakub Jelinek <jakub@redhat.com>
1922 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
1923 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
1924 Use DATA_ABI_ALIGNMENT for that case instead if defined.
1925 (get_variable_align): New function.
1926 (get_variable_section, emit_bss, emit_common,
1927 assemble_variable_contents, place_block_symbol): Use
1928 get_variable_align instead of DECL_ALIGN.
1929 (assemble_noswitch_variable): Add align argument, use it
1930 instead of DECL_ALIGN.
1931 (assemble_variable): Adjust caller. Use get_variable_align
1932 instead of DECL_ALIGN.
1933 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
1935 (DATA_ABI_ALIGNMENT): Define.
1936 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
1937 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
1938 opt is false, only return the psABI mandated alignment increase.
1939 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
1940 (DATA_ABI_ALIGNMENT): ... this.
1941 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
1942 (DATA_ABI_ALIGNMENT): ... this.
1943 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
1944 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
1945 (DATA_ABI_ALIGNMENT): ... this.
1946 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
1947 * doc/tm.texi: Regenerated.
1949 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
1951 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
1952 cmp_code to construct REG_EQUAL note.
1954 2013-06-09 Jakub Jelinek <jakub@redhat.com>
1957 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
1958 that operands[2] doesn't overlap with operands[0].
1960 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
1961 Jan Hubicka <jh@suse.cz>
1963 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
1964 hack to mark symbols as used.
1966 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
1968 PR rtl-optimization/57559
1969 * lra-constraints.c (process_alt_operands): Don't discourage
1970 memory with known offset for offsetable memory constraint.
1971 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
1973 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
1975 * varasm.c (struct oc_local_state): Reorder fields.
1976 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
1977 and adjust accordingly.
1978 (output_constructor): Reorder initialization code and adjust call to
1979 output_constructor_bitfield.
1981 2013-06-07 Jan Hubicka <jh@suse.cz>
1983 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
1985 2013-06-07 David Malcolm <dmalcolm@redhat.com>
1987 * tree-object-size.c (unknown): Make const.
1989 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1991 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
1992 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
1993 for last alternative in the cpu_facility attribute.
1995 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1998 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
1999 (xordi3): Change operand 2 constraint to arm_xordi_operand.
2000 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
2001 * config/arm/constraints.md (Dg): New constraint.
2002 * config/arm/neon.md (xordi3_neon): Remove.
2003 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
2004 * config/arm/predicates.md (arm_xordi_operand): New predicate.
2006 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2008 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
2009 Clean up alternatives.
2011 2013-06-07 Alan Modra <amodra@gmail.com>
2013 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
2016 2013-06-07 Alan Modra <amodra@gmail.com>
2018 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
2020 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2022 * config/arm/constraints.md (Df): New constraint.
2023 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
2024 Correct length attribute for last two alternatives.
2026 2013-06-07 Alan Modra <amodra@gmail.com>
2028 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
2029 override user -mfp-in-toc.
2030 (offsettable_ok_by_alignment): Consider just the current access
2031 rather than the whole object, unless BLKmode. Handle
2032 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
2033 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
2034 for -mcmodel=medium.
2035 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
2036 override user -mfp-in-toc or -msum-in-toc. Default to
2037 -mno-fp-in-toc for -mcmodel=medium.
2039 2013-06-06 DJ Delorie <dj@redhat.com>
2041 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
2042 TARGET_VALID_POINTER_MODE.
2044 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
2045 Pat Haugen <pthaugen@us.ibm.com>
2046 Peter Bergner <bergner@vnet.ibm.com>
2048 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
2049 Document new power8 builtins.
2051 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
2052 condition code register, to allow 128-bit logical operations to be
2053 done in the VSX or GPR registers.
2054 (nor<mode>3): Use the canonical form for nor.
2055 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
2056 vclz*, and vpopcnt* vector instructions.
2057 (nand<mode>3): Likewise.
2058 (orc<mode>3): Likewise.
2059 (clz<mode>2): LIkewise.
2060 (popcount<mode>2): Likewise.
2062 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
2063 that only the GPRs are recognized.
2065 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2066 support for new power8 builtins.
2068 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
2070 (xscvdpspn): Likewise.
2076 (vpopcnt): Likewise.
2077 (vpopcntb): Likewise.
2078 (vpopcnth): Likewise.
2079 (vpopcntw): Likewise.
2080 (vpopcntd): Likewise.
2085 (eqv_v16qi3): Likewise.
2086 (eqv_v8hi3): Likewise.
2087 (eqv_v4si3): Likewise.
2088 (eqv_v2di3): Likewise.
2089 (eqv_v4sf3): Likewise.
2090 (eqv_v2df3): Likewise.
2092 (nand_v16qi3): Likewise.
2093 (nand_v8hi3): Likewise.
2094 (nand_v4si3): Likewise.
2095 (nand_v2di3): Likewise.
2096 (nand_v4sf3): Likewise.
2097 (nand_v2df3): Likewise.
2099 (orc_v16qi3): Likewise.
2100 (orc_v8hi3): Likewise.
2101 (orc_v4si3): Likewise.
2102 (orc_v2di3): Likewise.
2103 (orc_v4sf3): Likewise.
2104 (orc_v2df3): Likewise.
2106 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
2107 allow power8 quad mode in 64-bit.
2108 (rs6000_builtin_vectorized_function): Add support to vectorize
2109 ISA 2.07 count leading zeros, population count builtins.
2110 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
2111 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
2112 (builtin_function_type): Add vgbbd builtin function which takes an
2114 (altivec_expand_vec_perm_const): Add support for new power8 merge
2117 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
2118 that does not include TImdoe for use with 32-bit.
2119 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
2121 (UNSPEC_VSX_CVDPSPN): Likewise.
2122 (vsx_xscvdpspn): Likewise.
2123 (vsx_xscvspdpn): Likewise.
2124 (vsx_xscvdpspn_scalar): Likewise.
2125 (vsx_xscvspdpn_directmove): Likewise.
2126 (vsx_and<mode>3): Split logical operations into 32-bit and
2127 64-bit. Add support to do logical operations on TImode as well as
2128 VSX vector types. Allow logical operations to be done in either
2129 VSX registers or in general purpose registers in 64-bit mode. Add
2130 splitters if GPRs were used. For AND, add clobber of CCmode to
2131 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
2133 (vsx_and<mode>3_32bit): Likewise.
2134 (vsx_and<mode>3_64bit): Likewise.
2135 (vsx_ior<mode>3): Likewise.
2136 (vsx_ior<mode>3_32bit): Likewise.
2137 (vsx_ior<mode>3_64bit): Likewise.
2138 (vsx_xor<mode>3): Likewise.
2139 (vsx_xor<mode>3_32bit): Likewise.
2140 (vsx_xor<mode>3_64bit): Likewise.
2141 (vsx_one_cmpl<mode>2): Likewise.
2142 (vsx_one_cmpl<mode>2_32bit): Likewise.
2143 (vsx_one_cmpl<mode>2_64bit): Likewise.
2144 (vsx_nor<mode>3): Likewise.
2145 (vsx_nor<mode>3_32bit): Likewise.
2146 (vsx_nor<mode>3_64bit): Likewise.
2147 (vsx_andc<mode>3): Likewise.
2148 (vsx_andc<mode>3_32bit): Likewise.
2149 (vsx_andc<mode>3_64bit): Likewise.
2150 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
2151 and xxlorc instructions.
2152 (vsx_eqv<mode>3_64bit): Likewise.
2153 (vsx_nand<mode>3_32bit): Likewise.
2154 (vsx_nand<mode>3_64bit): Likewise.
2155 (vsx_orc<mode>3_32bit): Likewise.
2156 (vsx_orc<mode>3_64bit): Likewise.
2158 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
2160 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
2162 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
2163 (p8_vmrgow): Likewise.
2164 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
2165 GPRs to be split under VSX.
2166 (p8v_clz<mode>2): Add power8 count leading zero support.
2167 (p8v_popcount<mode>2): Add power8 population count support.
2168 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
2171 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
2174 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
2176 (vec_nand): Likewise.
2177 (vec_vclz): Likewise.
2178 (vec_vclzb): Likewise.
2179 (vec_vclzd): Likewise.
2180 (vec_vclzh): Likewise.
2181 (vec_vclzw): Likewise.
2182 (vec_vgbbd): Likewise.
2183 (vec_vmrgew): Likewise.
2184 (vec_vmrgow): Likewise.
2185 (vec_vpopcnt): Likewise.
2186 (vec_vpopcntb): Likewise.
2187 (vec_vpopcntd): Likewise.
2188 (vec_vpopcnth): Likewise.
2189 (vec_vpopcntw): Likewise.
2191 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
2193 PR rtl-optimization/57468
2194 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
2197 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
2199 PR rtl-optimization/57459
2200 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
2201 type when setting live regs.
2203 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
2205 * config/s390/s390.opt (mlra): New option.
2206 * config/s390/s390.c (s390_decompose_address): Check displacement
2207 for all registers for LRA.
2208 (s390_secondary_reload): Don't used secondary reloads for LRA.
2209 (s390_lra_p): New function.
2210 (TARGET_LRA_P): Define.
2211 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
2212 of attribute cpu_facility to zarch for the last alternative.
2213 (*cmpmem_short): Ditto.
2215 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
2217 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
2218 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
2219 (arm_expand_prologue): Likewise.
2221 2013-06-06 Teresa Johnson <tejohnson@google.com>
2224 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
2225 as this is now done by redirect_edge_and_branch_force.
2226 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
2227 barriers, and fix interaction with splitting.
2228 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
2229 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
2230 reflect changes made in the routine.
2231 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
2232 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
2233 since this is called in cfglayout mode, and replace partition fixup
2234 with assert as that is now done by force_nonfallthru_and_redirect.
2235 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
2236 already be marked with region crossing note.
2237 (insert_section_boundary_note): Make non-static, gate on flag
2238 has_bb_partition, rewrite to also check for multiple partitions.
2239 (rest_of_handle_reorder_blocks): Remove call to
2240 insert_section_boundary_note, now done later during free_cfg.
2241 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
2242 * bb-reorder.h (insert_section_boundary_note): Declare.
2243 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
2244 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
2245 invoke insert_section_boundary_note.
2246 (try_redirect_by_replacing_jump): Remove unnecessary
2247 check for region crossing note.
2248 (fixup_partition_crossing): New function.
2249 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
2250 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
2251 in non-cfglayout mode.
2252 (force_nonfallthru_and_redirect): Fixup partition boundaries,
2253 remove old code that tried to do this. Emit barrier correctly
2254 when we are in cfglayout mode.
2255 (last_bb_in_partition): New function.
2256 (rtl_split_edge): Correctly fixup partition boundaries.
2257 (commit_one_edge_insertion): Remove old code that tried to
2258 fixup region crossing edge since this is now handled in
2259 split_block, and set up insertion point correctly since
2260 block may now end in a jump.
2261 (verify_hot_cold_block_grouping): Guard against checking when not in
2262 linearized RTL mode.
2263 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
2265 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
2266 rtl_verify_flow_info, so not called in cfglayout mode.
2267 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
2268 (fixup_reorder_chain): Remove old code that attempted to fixup region
2269 crossing note as this is now handled in force_nonfallthru_and_redirect.
2270 (duplicate_insn_chain): Don't duplicate switch section notes.
2271 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
2273 * basic-block.h (emit_barrier_after_bb): Declare.
2275 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2277 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
2278 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
2279 arm_usatsihi): Adjust alternatives for arm_restrict_it.
2281 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2283 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
2285 * config/arm/ldmstm.md: Regenerate.
2287 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2289 * config/arm/sync.md (atomic_loaddi_1):
2290 Disable predication for arm_restrict_it.
2291 (arm_load_exclusive<mode>): Likewise.
2292 (arm_load_exclusivesi): Likewise.
2293 (arm_load_exclusivedi): Likewise.
2294 (arm_load_acquire_exclusive<mode>): Likewise.
2295 (arm_load_acquire_exclusivesi): Likewise.
2296 (arm_load_acquire_exclusivedi): Likewise.
2297 (arm_store_exclusive<mode>): Likewise.
2298 (arm_store_exclusive<mode>): Likewise.
2299 (arm_store_release_exclusivedi): Likewise.
2300 (arm_store_release_exclusive<mode>): Likewise.
2302 2013-06-06 Richard Biener <rguenther@suse.de>
2304 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
2306 (lto_tag_is_tree_code_p): Adjust.
2307 (lto_tag_is_gimple_code_p): Likewise.
2308 (lto_gimple_code_to_tag): Likewise.
2309 (lto_tag_to_gimple_code): Likewise.
2310 (lto_tree_code_to_tag): Likewise.
2311 (lto_tag_to_tree_code): Likewise.
2312 * data-streamer.h (streamer_write_hwi_in_range): Use
2313 uhwi streaming to stream the normalized range.
2314 (streamer_read_hwi_in_range): Likewise.
2316 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2318 * config/arm/arm.md (enabled_for_depr_it): New attribute.
2319 (predicable_short_it): Likewise.
2320 (predicated): Likewise.
2321 (enabled): Handle above.
2322 (define_cond_exec): Set predicated attribute to yes.
2324 2013-06-05 Mike Stump <mikestump@comcast.net>
2326 * gdbinit.in (__FUNCTION__): Add.
2328 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
2330 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
2331 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
2333 2013-06-05 Jan Hubicka <jh@suse.cz>
2335 * varasm.c (mark_decl_referenced): Revert the removal until targets
2338 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
2340 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
2341 instead of mark_decl_referenced.
2343 2013-06-05 Jan Hubicka <jh@suse.cz>
2345 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
2346 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
2347 and symtab_used_from_object_file_p.
2348 (cgraph_make_node_local_1): Clear forced_by_abi.
2349 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
2350 * cgraph.h (symtab_node_base): Add forced_by_abi.
2351 (decide_is_variable_needed): Remove.
2352 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
2353 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
2354 (decide_is_symbol_needed): ... this one; handle symbols in general;
2355 always analyze virtuals; honnor forced_by_abi.
2356 (cgraph_finalize_function): Update.
2357 (varpool_finalize_decl): Update.
2358 (symbol_defined_and_needed): Remove.
2359 (analyze_functions): Update.
2360 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
2361 output_refs, input_overwrite_node): Handle forced_by_abi.
2362 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
2363 (address_taken_from_non_vtable_p): ... this one.
2364 (comdat_can_be_unshared_p_1): New function.
2365 (cgraph_comdat_can_be_unshared_p): Rename to ...
2366 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
2367 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
2368 (function_and_variable_visibility): Clear forced_by_abi as needed.
2369 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
2370 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
2371 * symtab.c (dump_symtab_base): Dump forced_by_abi.
2372 * varpool.c (decide_is_variable_needed): Remove.
2374 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2376 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
2377 (arm_option_override): Override arm_restrict_it where appropriate.
2378 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
2379 * config/arm/arm.opt (mrestrict-it): New command-line option.
2380 * doc/invoke.texi: Document -mrestrict-it.
2382 2013-06-05 David Malcolm <dmalcolm@redhat.com>
2384 * tsan.c (tsan_atomic_table): Make const.
2386 2013-06-05 Richard Biener <rguenther@suse.de>
2388 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
2389 index associated with the tree we are supposed to replace.
2390 * tree-streamer-out.c (pack_ts_base_value_fields): Output
2391 TREE_ASM_WRITTEN as zero for everything but SSA names.
2393 2013-06-05 David Malcolm <dmalcolm@redhat.com>
2395 * tree-ssa-structalias.c (call_stmt_vars): Make static.
2397 2013-06-04 Jan Hubicka <jh@suse.cz>
2399 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
2400 (input_node, input_varpool_node): Handle correctly external same
2402 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
2403 nodes at ltrans stage.
2405 2013-06-04 Jan Hubicka <jh@suse.cz>
2407 * ipa-inline.c (update_caller_keys): Fix availability test.
2408 (update_callee_keys): Likewise.
2409 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
2410 to follow ELF standard.
2412 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
2414 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
2415 (mips64r5900el-*-elf*): New configurations.
2416 * config/mips/mips-cpus.def (r5900): New processor.
2417 * config/mips/mips-tables.opt: Regenerate.
2418 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
2419 (mips_issue_rate): Handle PROCESSOR_R5900.
2420 (mips_reorg_process_insns): Force reorder mode for the R5900.
2421 * config/mips/mips.h (TARGET_MIPS5900): Define.
2422 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
2424 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
2426 * config/mips/mips.md (processor): Add r5900.
2427 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
2429 2013-06-04 Ian Bolton <ian.bolton@arm.com>
2431 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
2432 into function to generate MOVI instruction.
2433 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
2434 (aarch64_preferred_simd_mode): Turn into wrapper.
2435 (aarch64_output_scalar_simd_mov_immediate): New function.
2436 * config/aarch64/aarch64-protos.h: Add prototype for above.
2438 2013-06-04 Ian Bolton <ian.bolton@arm.com>
2440 * config/aarch64/aarch64.c (simd_immediate_info): Remove
2441 element_char member.
2442 (sizetochar): Return signed char.
2443 (aarch64_simd_valid_immediate): Remove elchar and other
2444 unnecessary variables.
2445 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
2446 Calculate element_char as required.
2447 * config/aarch64/aarch64-protos.h: Update and move prototype
2448 for aarch64_output_simd_mov_immediate.
2449 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
2452 2013-06-04 Ian Bolton <ian.bolton@arm.com>
2454 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
2455 information completed by aarch64_simd_valid_immediate.
2456 (aarch64_legitimate_constant_p): Update arguments.
2457 (aarch64_simd_valid_immediate): Work with struct rather than many
2459 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
2460 (aarch64_simd_make_constant): Update arguments.
2461 (aarch64_output_simd_mov_immediate): Work with struct rather than
2462 many pointers. Output immediate directly rather than as operand.
2463 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
2465 * config/aarch64/constraints.md (Dn): Update arguments.
2467 2013-06-04 Ian Bolton <ian.bolton@arm.com>
2469 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
2471 (aarch64_simd_immediate_valid_for_move): Remove.
2472 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
2473 (aarch64_simd_make_constant): Update call.
2474 (aarch64_output_simd_mov_immediate): Update call.
2475 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
2477 * config/aarch64/constraints.md (Dn): Update call.
2479 2013-06-04 Ian Bolton <ian.bolton@arm.com>
2481 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
2482 return type to bool for prototype.
2483 (aarch64_legitimate_constant_p): Check for true instead of not -1.
2484 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
2485 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
2487 2013-06-04 Catherine Moore <clm@codesourcery.com>
2489 * config/mips/mips.opt (meva): New.
2490 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
2491 (ASM_SPEC): Handle -meva.
2492 * doc/invoke.texi (meva): Document.
2494 2013-06-04 Alan Modra <amodra@gmail.com>
2496 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
2499 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2501 * rtl.def: Add extra fourth optional field to define_cond_exec.
2502 * gensupport.c (process_one_cond_exec): Process attributes from
2504 * doc/md.texi: Document fourth field in define_cond_exec.
2506 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
2508 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
2509 out the processing order as in store_bit_field_1.
2511 2013-06-04 Jan Hubicka <jh@suse.cz>
2514 * cgraphunit.c (cgraph_process_same_body_aliases): Create
2515 non-VAR_DECL node if it does not exist yet.
2517 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
2519 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
2520 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
2521 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
2522 target_cpu_default setting.
2524 2013-06-03 Teresa Johnson <tejohnson@google.com>
2526 * dumpfile.c (opt_info_switch_p): Change -fopt-info
2527 default to -fopt-info=optimized instead of all.
2528 * doc/invoke.texi: Ditto.
2529 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
2530 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
2531 (execute_vect_slp): Emit BB vectorization success under
2532 MSG_OPTIMIZED_LOCATIONS.
2533 * tree-vect-slp.c (vect_slp_transform_bb): Change
2534 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
2535 * tree-vect-loop.c (vect_transform_loop): Ditto.
2537 2013-06-03 Jason Merrill <jason@redhat.com>
2540 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2541 Use TARGET_EXPR for C++.
2543 2013-06-03 Jakub Jelinek <jakub@redhat.com>
2545 PR rtl-optimization/57268
2546 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
2547 if DEBUG_INSN_P (insn).
2550 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
2552 PR rtl-optimization/57268
2553 * sched-deps.c (sched_analyze_2): Flush dependence lists if
2554 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2556 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
2558 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
2559 (ix86_avoid_lea_for_addr): Likewise.
2560 (exact_dependency_1): Likewise.
2561 (ix86_adjust_cost): Likewise.
2562 (swap_top_of_ready_list): Fix formatting and !reload_completed check
2564 (do_reorder_for_imul): Fix typo, formatting and
2565 !reload_completed check removed.
2566 (ix86_sched_reorder): Fix typo and formatting.
2567 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
2570 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
2572 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
2574 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
2576 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
2577 <STRING_CST>: Likewise.
2578 <VECTOR_CST>: Likewise.
2580 2013-06-01 Janus Weil <janus@gcc.gnu.org>
2581 Mikael Morin <mikael@gcc.gnu.org>
2583 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
2584 * config.in: Regenerated.
2585 * configure: Regenerated.
2587 2013-06-01 Jan Hubicka <jh@suse.cz>
2590 * cgraphunit.c (compile): When weakref is not supported,
2591 set up transparent aliases before final output pass.
2592 * varasm.c (assemble_alias): Do not try to do it here.
2594 2013-06-01 Jan Hubicka <jh@suse.cz>
2597 * passes.c (for_per_function): Skip unanalyzed functions.
2599 2013-06-01 Jan Hubicka <jh@suse.cz>
2601 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
2602 (lto_symtab_merge_symbols_1): ... this one.
2603 (lto_symtab_merge_cgraph_nodes): Rename to ...
2604 (lto_symtab_merge_symbols): ... this one; simplify.
2605 * cgraph.c (same_body_aliases_done): Rename to ...
2606 (cpp_implicit_aliases_done): ... this one.
2607 (cgraph_create_function_alias): Update.
2608 (cgraph_same_body_alias): Update.
2609 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
2610 (verify_edge_corresponds_to_fndecl): Simplify.
2611 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
2612 (cgraph_node): Remove same_body_alias.
2613 (varpool_node): Remove alias_of and extra_name_alias.
2614 (same_body_aliases_done): Rename to ..
2615 (cpp_implicit_aliases_done): ... this one.
2616 (symtab_alias_ultimate_target): Add default parameter.
2617 (symtab_resolve_alias): New function.
2618 (fixup_same_cpp_alias_visibility): Declare.
2619 (cgraph_function_node): Add default parameter.
2620 (cgraph_node_asm_name): Likewise.
2621 (cgraph_function_or_thunk_node): Add default parameter; do
2622 not ICE when it is NULL.
2623 (varpool_variable_node): Likewise.
2624 * tree-emutls.c (create_emultls_var): Update.
2625 (ipa_lower_emutls): Update.
2626 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
2627 (cgraph_reset_node): Reset alias info.
2628 (cgraph_finalize_function): Update.
2629 (fixup_same_cpp_alias_visibility): Move to symtab.c.
2630 (analyze_function): Simplify.
2631 (cgraph_process_same_body_aliases): Simplify.
2632 (analyze_functions): Fixup same body aliases.
2633 (handle_alias_pairs): Simplify.
2634 (assemble_thunk): Update.
2635 (assemble_thunks_and_aliases): Update.
2636 (output_weakrefs): Rewrite.
2637 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
2638 (lto_output_varpool_node): Likewise.
2639 (compute_ltrans_boundary): Remve assert.
2640 (get_alias_symbol): New functoin.
2641 (input_node): Rewrite alias handling.
2642 (input_varpool_node): Likewise.
2643 * ipa-pure-const.c (propagate_pure_const): Fix formating.
2644 * ipa.c (process_references): Handle weakrefs correctly.
2645 (symtab_remove_unreachable_nodes): Likewise.
2646 * trans-mem.c (get_cg_data): Update.
2647 (ipa_tm_create_version_alias): Update.
2648 (ipa_tm_execute): Update.
2649 * symtab.c (dump_symtab_base): Dump aliases.
2650 (verify_symtab_base): Verify aliases.
2651 (symtab_node_availability): New function.
2652 (symtab_alias_ultimate_target): Simplify.
2653 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
2654 handle all the fixup cases.
2655 (symtab_resolve_alias): New function.
2656 * passes.c (ipa_write_summaries): Handle weakrefs.
2657 * varpool.c (varpool_analyze_node): Simplify.
2658 (assemble_aliases): Update.
2659 (varpool_create_variable_alias): Simplify.
2660 (varpool_extra_name_alias): Simplify.
2661 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
2662 (lto_symtab_merge_symbols): ... this one.
2664 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
2667 PR rtl-optimization/57268
2668 * sched-deps.c (sched_analyze_2): Flush dependence lists if
2669 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2671 2013-06-01 Tobias Burnus <burnus@net-b.de>
2674 2013-05-31 Tobias Burnus <burnus@net-b.de>
2677 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
2680 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
2682 PR rtl-optimization/57268
2683 * sched-deps.c (sched_analyze_2): Flush dependence lists if
2684 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2686 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
2688 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
2689 unordered comparison operators when -fno-trapping-math is in effect
2691 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
2692 and implement unordered comparison operators properly on the e500.
2694 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
2696 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
2697 for constant scalar integers.
2698 (simplify_relational_operation_1): Likewise.
2700 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
2702 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
2703 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
2706 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
2707 Igor Zamyatin <igor.zamyatin@intel.com>
2709 Silvermont (SLM) architecture performance tuning.
2710 * config/i386/i386.h (enum ix86_tune_indices): Add
2711 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
2712 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
2714 * config/i386/i386.c (initial_ix86_tune_features)
2715 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
2716 (ix86_lea_outperforms): Handle Silvermont tuning.
2717 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
2719 (ix86_use_lea_for_mov): Likewise.
2720 (ix86_avoid_lea_for_addr): Likewise.
2721 (ix86_lea_for_add_ok): Likewise.
2722 (exact_dependency_1): New function.
2723 (exact_store_load_dependency): Likewise.
2724 (ix86_adjust_cost): Handle Silvermont tuning.
2725 (do_reoder_for_imul): Likewise.
2726 (swap_top_of_ready_list): New function.
2727 (ix86_sched_reorder): Changed to handle Silvermont tuning.
2729 * config/i386/i386.md (peepholes that split memory operand in fp
2732 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
2734 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2735 Remove un-necessary braces.
2737 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
2739 * config/aarch64/aarch64.c (aarch64_classify_symbol):
2740 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
2742 2013-05-31 Tobias Burnus <burnus@net-b.de>
2745 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
2747 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2750 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
2751 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
2752 * config/arm/neon.md (iordi3_neon): Remove.
2753 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
2754 * config/arm/predicates.md (imm_for_neon_logic_operand):
2755 Move to earlier in the file.
2756 (neon_logic_op2): Likewise.
2757 (arm_iordi_operand_neon): New predicate.
2759 2013-05-31 Richard Biener <rguenther@suse.de>
2761 PR tree-optimization/57478
2762 PR tree-optimization/57453
2763 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
2766 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
2768 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
2769 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
2771 2013-05-30 Tobias Burnus <burnus@net-b.de>
2772 Thomas Koenig <tkoenig@gcc.gnu.org>
2775 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
2776 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
2778 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
2780 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
2782 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
2784 * target.def (register_usage_leveling_p): New hook.
2785 * targhooks.c (default_register_usage_leveling_p): New.
2786 * targhooks.h (default_register_usage_leveling_p): New prototype.
2787 * lra-assigns.c (register_usage_leveling_p): Use the hook.
2788 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
2789 * doc/tm.texi: Update.
2790 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
2792 2013-05-30 Ian Bolton <ian.bolton@arm.com>
2794 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
2795 (*insv_reg<mode>): New define_insn.
2797 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
2799 PR rtl-optimization/57439
2800 * postreload.c (move2add_valid_value_p): Check that we have
2801 a zero subreg_regno_offset when accessing the register in
2804 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
2805 Igor Zamyatin <igor.zamyatin@intel.com>
2807 Silvermont (SLM) architecture pipeline model, tuning and
2809 * config.gcc: Add slm config options and target.
2811 * config/i386/slm.md: New.
2813 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
2815 * gcc/config/i386/i386-c.c (ix86_target_macros_internal): New case
2817 (ix86_target_macros_internal): Likewise.
2819 * gcc/config/i386/i386.c (slm_cost): New cost.
2820 (m_SLM): New macro flag.
2821 (initial_ix86_tune_features): Set m_SLM.
2822 (x86_accumulate_outgoing_args): Likewise.
2823 (x86_arch_always_fancy_math_387): Likewise.
2824 (processor_target_table): Add slm cost.
2825 (cpu_names): Add slm cpu name.
2826 (x86_option_override_internal): Set SLM ISA.
2827 (ix86_issue_rate): New case PROCESSOR_SLM.
2828 (ia32_multipass_dfa_lookahead): Likewise.
2829 (fold_builtin_cpu): Add slm.
2831 * config/i386/i386.h (TARGET_SLM): New target macro.
2832 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
2833 (processor_type): Add PROCESSOR_SLM.
2835 * config/i386/i386.md (cpu): Add new value "slm".
2836 (slm.md): Include slm.md.
2838 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
2839 Zhenqiang Chen <zhenqiang.chen@linaro.org>
2841 * config/arm/arm-protos.h: Add and update function protos.
2842 * config/arm/arm.c (use_simple_return_p): New added.
2843 (thumb2_expand_return): Check simple_return flag.
2844 * config/arm/arm.md: Add simple_return and conditional simple_return.
2845 * config/arm/iterators.md: Add iterator for return and simple_return.
2847 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
2849 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
2850 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
2851 (arm_emit_vfp_multi_reg_pop): Likewise.
2852 (thumb2_emit_ldrd_pop): Likewise.
2853 (arm_expand_epilogue): Add misc REG_CFA notes.
2854 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
2856 2013-05-29 Lawrence Crowl <crowl@google.com>
2858 * config/arm/t-arm: Update for below.
2860 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
2861 Change type to hash_table. Update dependent calls and types.
2863 * config/i386/t-cygming: Update for below.
2865 * config/i386/t-interix: Update for below.
2867 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
2868 Change type to hash_table. Update dependent calls and types.
2869 (i386_find_on_wrapper_list::wrappers): Likewise.
2871 * config/ia64/t-ia64: Update for below.
2873 * config/ia64/ia64.c (bundle_state_table):
2874 Change type to hash_table. Update dependent calls and types.
2876 * config/mips/mips.c (mips_reorg_process_insns::htab):
2877 Change type to hash_table. Update dependent calls and types.
2879 * config/sol2.c (solaris_comdat_htab):
2880 Change type to hash_table. Update dependent calls and types.
2882 * config/t-sol2: Update for above.
2884 2013-05-29 Teresa Johnson <tejohnson@google.com>
2886 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
2887 functions are not yet marked as defined.
2889 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
2890 Pat Haugen <pthaugen@us.ibm.com>
2891 Peter Bergner <bergner@vnet.ibm.com>
2893 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
2897 (vrotl<mode>3): Likewise.
2898 (vashl<mode>3): Likewise.
2899 (vlshr<mode>3): Likewise.
2900 (vashr<mode>3): Likewise.
2902 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2903 support for power8 V2DI builtins.
2905 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
2906 power8 V2DI builtins.
2907 (vupkhsw): Likewise.
2908 (vupklsw): Likewise.
2909 (vaddudm): Likewise.
2914 (vpkudum): Likewise.
2915 (vpksdss): Likewise.
2916 (vpkudus): Likewise.
2917 (vpksdus): Likewise.
2922 (vsubudm): Likewise.
2923 (vcmpequd): Likewise.
2924 (vcmpgtsd): Likewise.
2925 (vcmpgtud): Likewise.
2926 (vcmpequd_p): Likewise.
2927 (vcmpgtsd_p): Likewise.
2928 (vcmpgtud_p): Likewise.
2929 (vupkhsw): Likewise.
2930 (vupklsw): Likewise.
2931 (vaddudm): Likewise.
2936 (vpksdss): Likewise.
2937 (vpksdus): Likewise.
2938 (vpkudum): Likewise.
2939 (vpkudus): Likewise.
2944 (vsubudm): Likewise.
2946 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
2947 support for power8 V2DI instructions.
2949 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
2950 power8 V2DI instructions. Combine pack and unpack insns to use an
2951 iterator for each mode. Check whether a particular mode supports
2952 Altivec instructions instead of just checking TARGET_ALTIVEC.
2953 (UNSPEC_VPKUWUM): Likewise.
2954 (UNSPEC_VPKSHSS): Likewise.
2955 (UNSPEC_VPKSWSS): Likewise.
2956 (UNSPEC_VPKUHUS): Likewise.
2957 (UNSPEC_VPKSHUS): Likewise.
2958 (UNSPEC_VPKUWUS): Likewise.
2959 (UNSPEC_VPKSWUS): Likewise.
2960 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
2961 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
2962 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
2963 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
2964 (UNSPEC_VUPKHSB): Likewise.
2965 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
2966 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
2967 (UNSPEC_VUPKHSH): Likewise.
2968 (UNSPEC_VUPKLSB): Likewise.
2969 (UNSPEC_VUPKLSH): Likewise.
2971 (VI_char): Likewise.
2972 (VI_scalar): Likewise.
2973 (VI_unit): Likewise.
2975 (VP_small): Likewise.
2976 (VP_small_lc): Likewise.
2977 (VU_char): Likewise.
2978 (add<mode>3): Likewise.
2979 (altivec_vaddcuw): Likewise.
2980 (altivec_vaddu<VI_char>s): Likewise.
2981 (altivec_vadds<VI_char>s): Likewise.
2982 (sub<mode>3): Likewise.
2983 (altivec_vsubcuw): Likewise.
2984 (altivec_vsubu<VI_char>s): Likewise.
2985 (altivec_vsubs<VI_char>s): Likewise.
2986 (altivec_vavgs<VI_char>): Likewise.
2987 (altivec_vcmpbfp): Likewise.
2988 (altivec_eq<mode>): Likewise.
2989 (altivec_gt<mode>): Likewise.
2990 (altivec_gtu<mode>): Likewise.
2991 (umax<mode>3): Likewise.
2992 (smax<mode>3): Likewise.
2993 (umin<mode>3): Likewise.
2994 (smin<mode>3): Likewise.
2995 (altivec_vpkuhum): Likewise.
2996 (altivec_vpkuwum): Likewise.
2997 (altivec_vpkshss): Likewise.
2998 (altivec_vpkswss): Likewise.
2999 (altivec_vpkuhus): Likewise.
3000 (altivec_vpkshus): Likewise.
3001 (altivec_vpkuwus): Likewise.
3002 (altivec_vpkswus): Likewise.
3003 (altivec_vpks<VI_char>ss): Likewise.
3004 (altivec_vpks<VI_char>us): Likewise.
3005 (altivec_vpku<VI_char>us): Likewise.
3006 (altivec_vpku<VI_char>um): Likewise.
3007 (altivec_vrl<VI_char>): Likewise.
3008 (altivec_vsl<VI_char>): Likewise.
3009 (altivec_vsr<VI_char>): Likewise.
3010 (altivec_vsra<VI_char>): Likewise.
3011 (altivec_vsldoi_<mode>): Likewise.
3012 (altivec_vupkhsb): Likewise.
3013 (altivec_vupkhs<VU_char>): Likewise.
3014 (altivec_vupkls<VU_char>): Likewise.
3015 (altivec_vupkhsh): Likewise.
3016 (altivec_vupklsb): Likewise.
3017 (altivec_vupklsh): Likewise.
3018 (altivec_vcmpequ<VI_char>_p): Likewise.
3019 (altivec_vcmpgts<VI_char>_p): Likewise.
3020 (altivec_vcmpgtu<VI_char>_p): Likewise.
3021 (abs<mode>2): Likewise.
3022 (vec_unpacks_hi_v16qi): Likewise.
3023 (vec_unpacks_hi_v8hi): Likewise.
3024 (vec_unpacks_lo_v16qi): Likewise.
3025 (vec_unpacks_hi_<VP_small_lc>): Likewise.
3026 (vec_unpacks_lo_v8hi): Likewise.
3027 (vec_unpacks_lo_<VP_small_lc>): Likewise.
3028 (vec_pack_trunc_v8h): Likewise.
3029 (vec_pack_trunc_v4si): Likewise.
3030 (vec_pack_trunc_<mode>): Likewise.
3032 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
3034 (vec_vmaxsd): Likewise.
3035 (vec_vmaxud): Likewise.
3036 (vec_vminsd): Likewise.
3037 (vec_vminud): Likewise.
3038 (vec_vpksdss): Likewise.
3039 (vec_vpksdus): Likewise.
3040 (vec_vpkudum): Likewise.
3041 (vec_vpkudus): Likewise.
3042 (vec_vrld): Likewise.
3043 (vec_vsld): Likewise.
3044 (vec_vsrad): Likewise.
3045 (vec_vsrd): Likewise.
3046 (vec_vsubudm): Likewise.
3047 (vec_vupkhsw): Likewise.
3048 (vec_vupklsw): Likewise.
3050 2013-05-29 Jan Hubicka <jh@suse.cz>
3052 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
3053 flags; reorder rest of fields in more consistent way.
3054 (varpool_node): Remove analyzed, finalized and alias.
3055 (cgraph_ndoe): Likewise.
3056 (symtab_alias_ultimate_target): New function.
3057 (cgraph_function_node): Move offline.
3058 (cgraph_reset_node): Declare.
3059 (cgraph_comdat_can_be_unshared_p): Remove.
3060 (varpool_remove_initializer): Declare.
3061 (varpool_first_defined_variable, varpool_next_defined_variable
3062 cgraph_first_defined_function, cgraph_next_defined_function): Update.
3063 (cgraph_function_with_gimple_body_p): Update.
3064 (varpool_all_refs_explicit_p): Update.
3065 (symtab_alias_target): New function.
3066 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
3067 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
3068 (cgraph_function_or_thunk_node): Simplify using
3069 symtab_alias_ultimate_target.
3070 (varpool_variable_node): Likewise.
3071 * cgraph.c (cgraph_create_function_alias): Update.
3072 (cgraph_add_thunk): Update.
3073 (cgraph_remove_node): Update.
3074 (dump_cgraph_node): Do not dump removed flags.
3075 (cgraph_function_body_availability): Update.
3076 (cgraph_propagate_frequency): Update.
3077 (verify_cgraph_node): Check sanity of local flag.
3078 (cgraph_function_node): Move here from cgraph.h; revamp for
3079 cgraph_function_or_thunk_node.
3080 * lto-symtab.c (lto_varpool_replace_node): Update.
3081 (lto_symtab_resolve_can_prevail_p): Update.
3082 (lto_symtab_merge_cgraph_nodes): Update.
3083 * ipa-cp.c (determine_versionability, initialize_node_lattices,
3084 propagate_constants_accross_call, devirtualization_time_bonus,
3085 ipcp_propagate_stage): Update.
3086 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
3087 * ipa-inline-transform.c (clone_inlined_nodes,
3088 preserve_function_body_p): Update.
3089 * ipa-reference.c (propagate): Update.
3090 (write_node_summary_p): Update.
3091 * toplev.c (wrapup_global_declaration_2): Update.
3092 * cgraphunit.c (cgraph_analyze_function): Rename to ...
3093 (analyze_function) ... this one.
3094 (cgraph_process_new_functions): Update.
3095 (cgraph_reset_node): Export.
3096 (cgraph_finalize_function): Update.
3097 (cgraph_add_new_function): Update.
3098 (process_function_and_variable_attributes): Update.
3099 (varpool_finalize_decl): Update.
3100 (symbol_finalized): Remove.
3101 (symbol_finalized_and_needed): Rename to ...
3102 (symbol_defined_and_needed): ... update.
3103 (cgraph_analyze_functions): Update.
3104 (handle_alias_pairs): Update.
3105 (mark_functions_to_output): Update.
3106 (assemble_thunk): Update.
3107 (output_in_order): Update.
3108 (output_weakrefs): Update.
3109 (finalize_compilation_unit): Update.
3110 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
3111 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
3112 input_node, input_varpool_node): Update.
3113 * dbxout.c (dbxout_expand_expr): Update.
3114 * cgraphclones.c (cgraph_clone_node): Update.
3115 (cgraph_copy_node_for_versioning): Update.
3116 (cgraph_materialize_clone): Update.
3117 (cgraph_materialize_all_clones): Update.
3118 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
3119 propagate_pure_const, propagate_nothrow): Update.
3120 * lto-streamer-out.c (lto_output, write_symbol): Update.
3121 * ipa-utils.c (ipa_reverse_postorder): Update.
3122 * ipa-inline.c (can_inline_edge_p): Update.
3123 (update_caller_keys, ipa_inline): Update.
3124 * dwarf2out.c (reference_to_unused,
3125 premark_types_used_by_global_vars_helper): Update.
3126 * tree-eh.c (tree_could_trap_p): Update.
3127 * ipa-split.c (consider_split, execute_split_functions): Update.
3128 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
3129 has_addr_references_p): Update; move ahead in file for better
3131 (process_references): Simplify.
3132 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
3134 (cgraph_comdat_can_be_unshared_p): Make static.
3135 (cgraph_externally_visible_p): Update.
3136 (varpool_externally_visible_p): Update.
3137 (function_and_variable_visibility): Update.
3138 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
3139 ipa_tm_mark_force_output_node): Update.
3140 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
3141 estimate_edge_devirt_benefit, inline_generate_summary,
3142 inline_write_summary): Update.
3143 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
3144 * ipa-prop.c (ipa_compute_jump_functions): Update.
3145 (ipa_print_node_params, ipa_prop_read_section,
3146 ipa_update_after_lto_read, read_replacements_section): Update.
3147 * varasm.c (mark_decl_referenced): Update.
3148 (assemble_alias, dump_tm_clone_pairs): Update.
3149 * tree-inline.c (copy_bb): Update.
3150 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
3152 * symtab.c (dump_symtab_base): Print new flags.
3153 (verify_symtab_base): Verify new flags.
3154 (symtab_alias_ultimate_target): New function.
3155 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
3156 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
3158 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
3160 * i386.c (ix86_get_function_versions_dispatcher,
3161 ix86_generate_version_dispatcher_body): Update.
3162 (fold_builtin_cpu): Use varpool_add_new_variable.
3163 * varpool.c (varpool_remove_initializer): Break out from ...
3164 (varpool_remove_node): ... this one.
3165 (dump_varpool_node, varpool_node_for_asm,
3166 cgraph_variable_initializer_availability, varpool_analyze_node,
3167 varpool_assemble_decl, varpool_remove_unreferenced_decls,
3168 varpool_finalize_named_section_flags, varpool_create_variable_alias):
3171 2013-05-29 Jan Hubicka <jh@suse.cz>
3173 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
3175 2013-05-29 Easwaran Raman <eraman@google.com>
3177 PR tree-optimization/57442
3178 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
3179 when control exits the main loop.
3181 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
3183 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
3185 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
3186 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
3187 * rx/t-rx: Add rx100 under multi library matches option for nofpu
3190 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3192 PR tree-optimization/57441
3193 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
3194 Don't limit size of incr_vec to number of candidates.
3196 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
3198 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
3199 and mips16 directories.
3200 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
3201 (MULTILIB_DIRNAMES): Ditto.
3202 (MULTILIB_EXCEPTIONS): Add new exceptions.
3203 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
3204 (MULTILIB_DIRNAMES): Ditto.
3205 (MULTILIB_EXCEPTIONS): Add new exceptions.
3207 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3208 Marcus Shawcroft <marcus.shawcroft@arm.com>
3210 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
3211 SYMBOL_TINY_ABSOLUTE.
3212 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
3213 SYMBOL_TINY_ABSOLUTE.
3214 (aarch64_expand_mov_immediate): Likewise.
3215 (aarch64_classify_symbol): Likewise.
3216 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
3217 Permit SYMBOL_TINY_ABSOLUTE.
3218 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
3220 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3221 Marcus Shawcroft <marcus.shawcroft@arm.com>
3223 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
3224 Refactor if/switch. Replace gcc_assert with if.
3226 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3228 * config/i386/i386.c (initial_ix86_tune_features): Enable
3229 FP Reassociation for AMD bdver1 and bdver2.
3231 2013-05-29 Martin Jambor <mjambor@suse.cz>
3233 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
3234 and IMAGPART_EXPR do not occur within other handled_components.
3236 2013-05-29 Richard Biener <rguenther@suse.de>
3238 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
3239 access on whether the use is in the BB we currently try to
3241 (vect_bb_vectorization_profitable_p): Pass the BB we currently
3242 vectorize to vect_bb_slp_scalar_cost.
3244 2013-05-29 Richard Biener <rguenther@suse.de>
3246 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
3247 computing scalar cost offsetted by stmts that are kept live
3249 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
3250 for computation of scalar cost.
3252 2013-05-28 Steve Ellcey <sellcey@mips.com>
3254 * config/mips/mips-cpus.def (mips32r2): Change processor type.
3256 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
3258 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
3259 array notation built-in reduction functions.
3260 * doc/passes.texi (Passes): Added documentation about changes done
3262 * doc/invoke.texi (C Dialect Options): Added documentation about
3263 the -fcilkplus flag.
3264 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
3265 (BUILTINS_DEF): Depend on cilkplus.def.
3266 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
3267 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
3268 * cilkplus.def: New file.
3270 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
3272 PR rtl-optimization/57439
3273 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
3275 2013-05-28 Easwaran Raman <eraman@google.com>
3277 PR tree-optimization/57337
3278 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
3279 (find_insert_point): Correctly identify the insertion point
3280 when two statements with the same UID is compared.
3282 2013-05-28 Richard Biener <rguenther@suse.de>
3284 PR tree-optimization/56787
3285 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
3286 from the list of data references.
3287 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
3289 (vect_analyze_loop_operations): Likewise.
3290 (vect_transform_loop): Remove clobbers.
3292 2013-05-28 Martin Jambor <mjambor@suse.cz>
3294 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
3295 and REALPART_EXPRs have scalar type.
3297 2013-05-28 Richard Biener <rguenther@suse.de>
3299 PR tree-optimization/57411
3300 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
3302 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
3303 virtual operand propagation.
3305 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
3307 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
3308 destination register for bmasksi_vis.
3309 (vector_init_bshuffle): Likewise.
3310 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
3312 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
3314 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
3315 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
3316 mode if the instruction isn't available in the original mode.
3317 * config/sparc/sparc.opt (mfix-ut699): New option.
3318 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
3319 (divdf3): Turn into expander.
3320 (divdf3_nofix): New insn.
3321 (divdf3_fix): Likewise.
3322 (divsf3): Disable if -mfix-ut699.
3323 (sqrtdf2): Turn into expander.
3324 (sqrtdf2_nofix): New insn.
3325 (sqrtdf2_fix): Likewise.
3326 (sqrtsf2): Disable if -mfix-ut699.
3328 2013-05-27 Richard Biener <rguenther@suse.de>
3331 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
3332 block for the new loop.
3334 2013-05-27 Richard Biener <rguenther@suse.de>
3336 PR tree-optimization/57343
3337 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
3338 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
3339 (number_of_iterations_cond): Do not build the folded tree.
3341 2013-05-27 Richard Biener <rguenther@suse.de>
3345 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
3346 OEP_CONSTANT_ADDRESS_OF retained.
3348 PR tree-optimization/57417
3349 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
3351 (set_ssa_val_to): Compare addresses using
3352 get_addr_base_and_unit_offset.
3354 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
3356 PR rtl-optimization/56833
3357 * postreload.c (move2add_record_mode): New function.
3358 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
3359 (move2add_use_add2_insn): Use move2add_record_sym_value.
3360 (move2add_use_add3_insn): Likewise.
3361 (reload_cse_move2add): Use move2add_valid_value_p and
3362 move2add_record_mode. Invalidate call-clobbered and REG_INC
3363 affected regs by setting reg_mode to VOIDmode.
3364 (move2add_note_store): Don't pretend the inside of a SUBREG is
3365 the actual destination. Invalidate single/leading registers by
3366 setting reg_mode to VOIDmode.
3367 Use move2add_record_sym_value, move2add_valid_value_p and
3368 move2add_record_mode.
3370 2013-05-27 Richard Biener <rguenther@suse.de>
3372 PR tree-optimization/57396
3373 * tree-affine.c (double_int_constant_multiple_p): Properly
3374 return false for val == 0 and div != 0.
3376 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
3378 * config/mips/mips.h: Use #elif in preprocessor conditions.
3380 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
3383 * config/mips/constraints.md (kl): New constraint.
3384 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
3385 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
3386 constraint for operand 0. Split after CSE for MIPS16. Emit a move
3388 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
3390 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
3393 * config/mips/mips.c (mips_can_inline_p): New function.
3394 (TARGET_CAN_INLINE_P): Define.
3396 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
3398 * sched-int.h (ds_t, dw_t): Make unsigned int.
3399 Fix documentation that describes how all the ds_t bits are used.
3400 Reserve the last bit for delayed-branch scheduling.
3401 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
3402 (BITS_PER_DEP_WEAK): Fix definition and documentation.
3403 (gen_dep_weak_1): Remove prototype.
3404 * sched-deps.c (get_dep_weak_1): Make static.
3405 * target.def (speculate_insn, needs_block_p, gen_spec_check,
3406 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
3407 * doc/tm.texi: Regenerate.
3408 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
3410 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
3413 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
3415 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
3416 Sandra Loosemore <sandra@codesourcery.com>
3418 * config.gcc (powerpc-*): Allow native for with-cpu.
3420 2013-05-24 Jeff Law <law@redhat.com>
3422 PR tree-optimization/57124
3423 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
3424 conversion feeding a condition if the range has an overflow
3425 if -fstrict-overflow. Add warnings for when we do make the
3428 2013-05-24 Dehao Chen <dehao@google.com>
3430 * tree-cfg.c (locus_discrim_map): Fix the typo.
3431 (locus_discrim_hasher): Likewise.
3432 (locus_discrim_hasher::hash): Likewise.
3433 (locus_discrim_hasher::equal): Likewise.
3435 2013-05-24 Martin Jambor <mjambor@suse.cz>
3437 PR tree-optimization/57294
3438 * cgraph.h (ipa_record_stmt_references): Declare.
3439 * cgraphbuild.c (ipa_record_stmt_references): New function.
3440 (build_cgraph_edges): Use ipa_record_stmt_references.
3441 (rebuild_cgraph_edges): Likewise.
3442 (cgraph_rebuild_references): Likewise.
3443 * ipa-prop.c (ipa_modify_call_arguments): Discard references
3444 associated with the old statement and build references from the
3445 newly built statements.
3446 * ipa-ref.c (ipa_remove_stmt_references): New function.
3447 * ipa-ref.h (ipa_remove_stmt_references): Declare.
3449 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
3451 * lra-constraints.c (emit_spill_move): Use smaller mode for
3453 (check_and_process_move): Consider mem-reg moves for secondary
3455 (curr_insn_transform): Don't lose insns emitted before for
3456 secondary memory moves.
3457 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
3458 reg set up in the current insn.
3460 2013-05-24 Dehao Chen <dehao@google.com>
3462 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
3464 (locus_descrim_hasher::equal): Likewise.
3465 (build_gimple_cfg): New discriminator assignment algorithm.
3466 (make_edges): Likewise.
3467 (next_discriminator_for_locus): Likewise.
3468 (same_line_p): Likewise.
3469 (assign_discriminators): Likewise.
3470 (make_cond_expr_edges): Likewise.
3471 (make_gimple_switch_edges): Likewise.
3472 (make_goto_expr_edges): Likewise.
3473 (make_gimple_asm_edges): Likewise.
3475 2013-05-24 Ian Bolton <ian.bolton@arm.com>
3477 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
3478 X format specifier to only display bottom 16 bits.
3479 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
3480 immediate to match for operand 2, since it will be masked.
3482 2013-05-24 Richard Biener <rguenther@suse.de>
3484 PR tree-optimization/57287
3485 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
3486 all SSA names that occur in abnormal PHIs.
3488 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3491 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
3492 that index is not negative.
3494 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
3496 PR rtl-optimization/55177
3497 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
3498 (simplify_byte_swapping_operation): New.
3499 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
3500 (simplify_relational_operation_1): Deal with BSWAP.
3502 2013-05-23 Richard Henderson <rth@redhat.com>
3505 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
3506 (ix86_reorg): Call it.
3508 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
3511 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
3512 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
3513 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
3515 2013-05-23 Christian Bruel <christian.bruel@st.com>
3518 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
3520 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3521 Marcus Shawcroft <marcus.shawcroft@arm.com>
3523 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
3524 * config/aarch64/constraints.md (Usa): Remove.
3525 * doc/md.texi (AArch64 Usa): Remove.
3527 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3528 Marcus Shawcroft <marcus.shawcroft@arm.com>
3530 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
3531 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
3532 * config/aarch64/predicates.md (aarch64_const_address): Remove.
3533 (aarch64_mov_operand): Use aarch64_mov_operand_p.
3535 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
3537 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
3538 instruction (AdvSIMD).
3539 * config/aarch64/aarch64-builtins.c
3540 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
3541 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
3543 2013-05-23 Martin Jambor <mjambor@suse.cz>
3546 * tree.h (contains_bitfld_component_ref_p): Declare.
3547 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
3548 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
3550 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
3551 not access a bit-field. Assert all final offsets are byte-aligned.
3553 2013-05-23 Richard Biener <rguenther@suse.de>
3555 PR tree-optimization/57380
3556 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
3557 least one invariant or re-used load.
3558 * passes.c (init_optimization_passes): Move pass_phiprop before
3561 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
3563 * config/aarch64/aarch64-simd.md
3564 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
3566 2013-05-23 Richard Biener <rguenther@suse.de>
3569 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
3570 OEP_CONSTANT_ADDRESS_OF retained.
3572 2013-05-23 Jakub Jelinek <jakub@redhat.com>
3575 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
3576 don't lower unit. Handle unit not being always BITS_PER_WORD.
3578 2013-05-23 Richard Biener <rguenther@suse.de>
3580 PR rtl-optimization/57341
3581 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
3582 instead of true_dependence.
3584 2013-05-22 David Malcolm <dmalcolm@redhat.com>
3586 * bb-reorder.c (branch_threshold): Make const.
3587 (exec_threshold): Ditto.
3589 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
3590 Pat Haugen <pthaugen@us.ibm.com>
3591 Peter Bergner <bergner@vnet.ibm.com>
3593 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
3594 documentation for the power8 crypto builtins.
3596 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
3598 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
3599 macros for defining power8 builtin functions.
3600 (BU_P8V_AV_2): Likewise.
3601 (BU_P8V_AV_P): Likewise.
3602 (BU_P8V_VSX_1): Likewise.
3603 (BU_P8V_OVERLOAD_1): Likewise.
3604 (BU_P8V_OVERLOAD_2): Likewise.
3605 (BU_CRYPTO_1): Likewise.
3606 (BU_CRYPTO_2): Likewise.
3607 (BU_CRYPTO_3): Likewise.
3608 (BU_CRYPTO_OVERLOAD_1): Likewise.
3609 (BU_CRYPTO_OVERLOAD_2): Likewise.
3610 (XSCVSPDP): Fix typo, point to the correct instruction.
3611 (VCIPHER): Add power8 crypto builtins.
3612 (VCIPHERLAST): Likewise.
3613 (VNCIPHER): Likewise.
3614 (VNCIPHERLAST): Likewise.
3615 (VPMSUMB): Likewise.
3616 (VPMSUMH): Likewise.
3617 (VPMSUMW): Likewise.
3618 (VPERMXOR_V2DI): Likewise.
3619 (VPERMXOR_V4SI: Likewise.
3620 (VPERMXOR_V8HI: Likewise.
3621 (VPERMXOR_V16QI: Likewise.
3622 (VSHASIGMAW): Likewise.
3623 (VSHASIGMAD): Likewise.
3625 (VPERMXOR): Likewise.
3626 (VSHASIGMA): Likewise.
3628 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
3629 __CRYPTO__ if the crypto instructions are available.
3630 (altivec_overloaded_builtins): Add support for overloaded power8
3633 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
3634 support for power8 crypto builtins.
3635 (builtin_function_type): Likewise.
3636 (altivec_init_builtins): Add support for builtins that take vector
3637 long long (V2DI) arguments.
3639 * config/rs6000/crypto.md: New file, define power8 crypto
3642 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
3643 Pat Haugen <pthaugen@us.ibm.com>
3644 Peter Bergner <bergner@vnet.ibm.com>
3646 * doc/invoke.texi (Option Summary): Add power8 options.
3647 (RS/6000 and PowerPC Options): Likewise.
3649 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
3650 constraints.md instead of rs6000.h. Reorder w* constraints. Add
3651 wm, wn, wr documentation.
3653 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
3654 registers if direct move instructions are enabled.
3655 (wn): New constraint for no registers.
3656 (wq): New constraint for quad word even GPR registers.
3657 (wr): New constraint if 64-bit instructions are enabled.
3658 (wv): New constraint if power8 vector instructions are enabled.
3659 (wQ): New constraint for quad word memory locations.
3661 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
3662 constraint for 0..15 for crypto instructions.
3663 (gpc_reg_operand): If VSX allow registers in VSX registers as well
3664 as GPR and floating point registers.
3665 (int_reg_operand): New predicate to match only GPR registers.
3666 (base_reg_operand): New predicate to match base registers.
3667 (quad_int_reg_operand): New predicate to match even GPR registers
3668 for quad memory operations.
3669 (vsx_reg_or_cint_operand): New predicate to allow vector logical
3670 operations in both GPR and VSX registers.
3671 (quad_memory_operand): New predicate for quad memory operations.
3672 (reg_or_indexed_operand): New predicate for direct move support.
3674 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
3675 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
3676 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
3677 (POWERPC_MASKS): Add power8 options.
3678 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
3681 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
3682 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
3684 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
3685 (-mpower8-fusion): New power8 options.
3686 (-mpower8-fusion-sign): Likewise.
3687 (-mpower8-vector): Likewise.
3688 (-mcrypto): Likewise.
3689 (-mdirect-move): Likewise.
3690 (-mquad-memory): Likewise.
3692 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
3694 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
3696 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
3697 (rs6000_debug_vector_unit): Add p8_vector.
3698 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
3699 definitions. Also print fusion state.
3700 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
3701 (rs6000_builtin_mask_calculate): Add power8 builtin support.
3702 (rs6000_option_override_internal): Add support for power8.
3703 (rs6000_common_init_builtins): Add debugging for skipped builtins
3705 (rs6000_adjust_cost): Add power8 support.
3706 (rs6000_issue_rate): Likewise.
3707 (insn_must_be_first_in_group): Likewise.
3708 (insn_must_be_last_in_group): Likewise.
3709 (force_new_group): Likewise.
3710 (rs6000_register_move_cost): Likewise.
3711 (rs6000_opt_masks): Likewise.
3713 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
3714 power8 capable assembler, default to power7 options.
3715 (TARGET_DIRECT_MOVE): Likewise.
3716 (TARGET_CRYPTO): Likewise.
3717 (TARGET_P8_VECTOR): Likewise.
3718 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
3719 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
3720 (VECTOR_MEM_P8_VECTOR_P): Likewise.
3721 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
3722 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
3723 (TARGET_XSCVDPSPN): Likewise.
3724 (TARGET_XSCVSPDPN): Likewsie.
3725 (TARGET_SYNC_HI_QI): Likewise.
3726 (TARGET_SYNC_TI): Likewise.
3727 (MASK_CRYPTO): Likewise.
3728 (MASK_DIRECT_MOVE): Likewise.
3729 (MASK_P8_FUSION): Likewise.
3730 (MASK_P8_VECTOR): Likewise.
3731 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
3732 temporary used by some of the direct move instructions to get two FP
3733 temporary registers does not force creation of a stack frame.
3734 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
3735 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
3736 that any VSX registers are tieable, even if they are also an
3737 Altivec vector mode.
3738 (r6000_reg_class_enum): Add wm, wr, wv constraints.
3739 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
3740 (RS6000_BTM_CRYPTO): Likewise.
3741 (RS6000_BTM_COMMON): Likewise.
3743 * config/rs6000/rs6000.md (cpu attribute): Add power8.
3744 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
3745 (enum rs6000_vector): Add power8 vector support.
3747 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3751 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
3752 (any_sibcall_could_use_r3): this and handle indirect calls.
3753 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
3755 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3757 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
3759 2013-05-22 Richard Biener <rguenther@suse.de>
3762 * profile.c (branch_prob): Do not split blocks that are
3763 abnormally receiving from ECF_RETURNS_TWICE functions.
3765 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3767 * recog.c (offsettable_address_addr_space_p): Fix calculation of
3768 address mode. Move pointer mode initialization to the same place.
3770 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3772 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
3773 while it has any effect.
3775 2013-05-21 Easwaran Raman <eraman@google.com>
3777 PR tree-optimization/57322
3778 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
3779 UID of the statement added to the BB to be 1.
3781 2013-05-21 Jakub Jelinek <jakub@redhat.com>
3783 PR tree-optimization/57331
3784 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
3785 of conversion from pointer type to integral type with integer.
3787 2013-05-21 Martin Jambor <mjambor@suse.cz>
3790 * ipa-prop.c (ipa_read_node_info): Process param_used and
3791 controlled_uses in the same order as when writing.
3793 2013-05-21 Magnus Granberg <baldrick@free.fr>
3796 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
3798 2013-05-21 Richard Biener <rguenther@suse.de>
3800 PR tree-optimization/57318
3801 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
3802 estimate stmts with side-effects as likely eliminated.
3804 2013-05-21 Richard Biener <rguenther@suse.de>
3806 PR tree-optimization/57330
3807 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
3808 preserve the call stmts fntype.
3810 2013-05-21 Richard Biener <rguenther@suse.de>
3812 PR tree-optimization/57303
3813 * tree-ssa-sink.c (statement_sink_location): Improve killing
3814 stmt detection and properly handle self-assignments.
3816 2013-05-21 Christian Bruel <christian.bruel@st.com>
3818 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
3819 spanning registers. LEAF_REG_REMAP is supported only for contiguous
3820 registers. Set register size out of the PARALLEL loop.
3822 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
3825 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
3826 (*fmasf4, *fmasf4_media): New insns.
3828 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
3830 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
3831 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
3832 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
3833 (mips_idiv_insns): Update the comments to say that the returned
3834 instruction counts are in units of BASE_INSN_LENGTH.
3835 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
3836 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
3837 using 2 rather than 4 as the length of indirect MIPS16 and
3838 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
3839 length of a NOP. Don't divide MIPS16 lengths by 2.
3840 (mips16_split_long_branches): Assume a branch is long if the
3841 length is greater than 4 rather than 8.
3842 * config/mips/mips.md (length): Give MIPS16 lengths directly,
3843 rather than multiplying them by 2. Multiply instruction counts
3844 by BASE_INSN_LENGTH rather than 4.
3845 (*jump_mips16, tls_get_tp_mips16_<mode>)
3846 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
3848 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
3850 * config/mips/mips.md (extended_mips16): Remove branch case.
3851 (length): Remove duplicated extended_mips16 test.
3853 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
3855 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
3857 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
3859 * recog.h (Recog_data): Rename to...
3860 (recog_data_d): ...this.
3861 (recog_data): Update accordingly.
3862 * recog.c (recog_data): Likewise.
3863 * reload.c (save_recog_data): Likewise.
3864 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
3865 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
3867 2013-05-17 Julian Brown <julian@codesourcery.com>
3869 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
3870 found in a REG_EQUAL note, invalidate it.
3872 2013-05-17 Easwaran Raman <eraman@google.com>
3874 * tree-ssa-reassoc.c (find_insert_point): New function.
3875 (insert_stmt_after): Likewise.
3876 (get_def_stmt): Likewise.
3877 (ensure_ops_are_available): Likewise.
3878 (not_dominated_by): Likewise.
3879 (rewrite_expr_tree): Do not move statements beyond what is
3880 necessary. Remove call to swap_ops_for_binary_stmt...
3881 (reassociate_bb): ... and move it here.
3882 (build_and_add_sum): Assign UIDs for new statements.
3883 (linearize_expr): Likewise.
3884 (do_reassoc): Renumber gimple statement UIDs.
3886 2013-05-17 Jan Hubicka <jh@suse.cz>
3888 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
3890 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
3891 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
3893 (output_weakrefs): Update.
3895 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
3896 Martin Jambor <mjambor@suse.cz>
3899 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
3900 value that corresponds to the given aggval is found in values vector.
3902 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
3904 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
3905 sse, sse2, sse3, ssse3 and sse4a flags to options.
3907 2013-05-17 David Malcolm <dmalcolm@redhat.com>
3909 * gengtype-state.c: (s_expr_writer): New class, to handle
3910 prettifying of output layout of s-expressions.
3911 (state_writer): New class, to write out gtype.state.
3912 (state_written_type_count): Move this variable into member data of
3914 (s_expr_writer::s_expr_writer): New code: constructor for new class
3915 (state_writer::state_writer(): ditto
3916 (s_expr_writer::write_new_line): New function
3917 (s_expr_writer::write_any_indent): ditto
3918 (s_expr_writer::begin_s_expr): ditto
3919 (s_expr_writer::end_s_expr): ditto
3920 (write_state_fileloc): convert to method of state_writer...
3921 (state_writer:: write_state_fileloc): ...and use methods of
3922 s_expr_writer to write indentation into the gtype.state output file
3923 to visually represent the hierarchical structure of the list
3925 (write_state_fields): ditto, renaming to...
3926 (state_writer::write_state_fields)
3927 (write_state_a_string): ditto, renaming to...
3928 (state_writer::write_state_a_string)
3929 (write_state_string_option): ditto, renaming to...
3930 (state_writer::write_state_string_option)
3931 (write_state_type_option): ditto, renaming to...
3932 (state_writer::write_state_type_option)
3933 (write_state_nested_option): ditto, renaming to...
3934 (state_writer::write_state_nested_option)
3935 (write_state_option): ditto, renaming to...
3936 (state_writer::write_state_option)
3937 (write_state_options): ditto, renaming to...
3938 (state_writer::write_state_options)
3939 (write_state_lang_bitmap): ditto, renaming to...
3940 (state_writer::write_state_lang_bitmap)
3941 (write_state_version): ditto, renaming to...
3942 (state_writer::write_state_version)
3943 (write_state_scalar_type): ditto, renaming to...
3944 (state_writer::write_state_scalar_type)
3945 (write_state_string_type): ditto, renaming to...
3946 (state_writer::write_state_string_type)
3947 (write_state_undefined_type): ditto, renaming to...
3948 (state_writer::write_state_undefined_type)
3949 (write_state_struct_union_type): ditto, renaming to...
3950 (state_writer::write_state_struct_union_type)
3951 (write_state_struct_type): ditto, renaming to...
3952 (state_writer::write_state_struct_type)
3953 (write_state_user_struct_type): ditto, renaming to...
3954 (state_writer::write_state_user_struct_type)
3955 (write_state_lang_struct_type): ditto, renaming to...
3956 (state_writer::write_state_lang_struct_type)
3957 (write_state_param_struct_type): ditto, renaming to...
3958 (state_writer::write_state_param_struct_type)
3959 (write_state_pointer_type): ditto, renaming to...
3960 (state_writer::write_state_pointer_type)
3961 (write_state_array_type): ditto, renaming to...
3962 (state_writer::write_state_array_type)
3963 (write_state_gc_used): ditto, renaming to...
3964 (state_writer::write_state_gc_used)
3965 (write_state_common_type_content): ditto, renaming to...
3966 (state_writer::write_state_common_type_content)
3967 (write_state_type): ditto, renaming to...
3968 (state_writer::write_state_type)
3969 (write_state_pair_list): ditto, renaming to...
3970 (state_writer::write_state_pair_list)
3971 (write_state_pair): ditto, renaming to...
3972 (state_writer::write_state_pair)
3973 (write_state_typedefs): ditto, renaming to...
3974 (state_writer::write_state_typedefs)
3975 (write_state_structures): ditto, renaming to...
3976 (state_writer::write_state_structures)
3977 (write_state_param_structs): ditto, renaming to...
3978 (state_writer::write_state_param_structs)
3979 (write_state_variables): ditto, renaming to...
3980 (state_writer::write_state_variables)
3981 (write_state_srcdir): ditto, renaming to...
3982 (state_writer::write_state_srcdir)
3983 (write_state_files_list): ditto, renaming to...
3984 (state_writer::write_state_files_list)
3985 (write_state_languages): ditto, renaming to...
3986 (state_writer::write_state_languages)
3987 (write_state): create a state_writer instance and use it when
3988 writing out the state file
3990 2013-05-17 Mike Stump <mikestump@comcast.net>
3992 PR rtl-optimization/57304
3993 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
3994 accessing DF_REF_REAL_LOC.
3996 2013-05-17 Jakub Jelinek <jakub@redhat.com>
3998 PR rtl-optimization/57281
3999 PR rtl-optimization/57300
4000 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
4001 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
4002 what the other splitter did if the registers are dead.
4004 2013-05-17 Richard Biener <rguenther@suse.de>
4006 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
4009 2013-05-17 Jakub Jelinek <jakub@redhat.com>
4011 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
4014 2013-05-17 Marek Polacek <polacek@redhat.com>
4016 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
4017 length when doing non-zero store of storing '\0' to '\0'.
4019 2013-05-17 Jakub Jelinek <jakub@redhat.com>
4021 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
4022 vect_external_def oprnd1 with loop_vinfo, try to emit
4023 optional cast, negation and and stmts on the loop preheader
4024 edge instead of into the pattern def seq.
4026 PR tree-optimization/57051
4027 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
4028 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
4030 2013-05-16 Nick Clifton <nickc@redhat.com>
4032 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
4033 (rl78_is_naked_func): New function.
4034 (rl78_expand_prologue): Skip prologue generation for naked functions.
4035 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
4036 * doc/extend.texi (naked): Add RL78 to the list of processors
4037 that supports this attribute.
4039 2013-05-16 Jeff Law <law@redhat.com>
4041 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
4043 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
4045 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
4046 cache parameters using detect_caches_amd also for CYRIX,
4047 NSC and TM2 signatures.
4049 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
4050 Dzianis Kahanovich <mahatma@eu.by>
4054 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
4055 VIA/Centaur processors and determine their cache parameters
4056 using detect_caches_amd.
4058 2013-05-16 Teresa Johnson <tejohnson@google.com>
4060 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
4061 (rtl_verify_edges): New function.
4062 (rtl_verify_bb_insns): Ditto.
4063 (rtl_verify_bb_pointers): Ditto.
4064 (rtl_verify_bb_insn_chain): Ditto.
4065 (rtl_verify_fallthru): Ditto.
4066 (rtl_verify_bb_layout): Ditto.
4067 (rtl_verify_flow_info_1): Outline checks into new functions.
4068 (rtl_verify_flow_info): Ditto.
4070 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
4072 * cfghooks.c (copy_bbs): Add update_dominance argument.
4073 * cfghooks.h (copy_bbs): Update prototype.
4074 * tree-cfg.c (gimple_duplicate_sese_region):
4075 Add update_dominance argument.
4076 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
4077 * tree-ssa-loop-ch.c (copy_loop_headers): Update
4078 gimple_duplicate_sese_region call.
4079 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
4080 Update copy_bbs call.
4081 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
4082 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
4084 2013-05-16 Jakub Jelinek <jakub@redhat.com>
4086 * tree-vectorizer.h (NUM_PATTERNS): Increment.
4087 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
4088 vect_recog_rotate_pattern.
4089 (vect_recog_rotate_pattern): New function.
4091 2013-05-16 Jason Merrill <jason@redhat.com>
4093 * Makefile.in (LLINKER): New variable.
4094 (mostlyclean): Remove link mutex.
4095 * configure.ac: Handle --enable-link-mutex.
4096 * lock-and-run.sh: New script.
4098 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4101 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
4104 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4106 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
4108 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
4110 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
4111 * config/arm/arm.c (next_consecutive_mem): New function.
4112 (gen_movmem_ldrd_strd): Likewise.
4113 * config/arm/arm.md (movmemqi): Update condition and code.
4114 (unaligned_loaddi, unaligned_storedi): New patterns.
4116 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4118 * config.gcc: Obsolete *-*-solaris2.9*.
4119 * doc/install.texi (Specific, *-*-solaris2*): Document it.
4121 2013-05-16 Richard Biener <rguenther@suse.de>
4123 * passes.c (init_optimization_passes): Move pass_parallelize_loops
4124 earlier, after GRAPHITE transforms and IV canonicalization.
4126 2013-05-16 Jakub Jelinek <jakub@redhat.com>
4128 * omp-low.c (extract_omp_for_data): For collapsed loops,
4129 if at least one of the loops is known at compile time to
4130 iterate zero times, set count to 0.
4131 (expand_omp_regimplify_p): New function.
4132 (expand_omp_for_generic): For collapsed loops, if at least
4133 one of the loops isn't known to iterate at least once,
4134 add runtime check with setting count to 0.
4135 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
4136 For unsigned types if it isn't known at compile time that
4137 the loop will iterate at least once, add runtime check to bypass
4138 the whole loop if initial condition isn't true.
4140 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
4142 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
4144 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
4147 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
4148 transformations to avoid an infinite loop.
4150 2013-05-16 Marek Polacek <polacek@redhat.com>
4152 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
4154 2013-05-15 Leif Ekblad <leif@rdos.net>
4156 * config/i386/i386.c (ix86_decompose_address): Use
4157 DEFAULT_TLS_SEG_REG to access TLS segment register.
4158 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
4159 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
4160 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
4162 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
4165 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
4166 sibling calls to functions that would normally be lazily bound,
4167 unless $gp is call-clobbered.
4169 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
4171 * config/i386/i386.c (ix86_option_override_internal): Update
4172 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
4173 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
4174 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
4175 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
4177 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
4179 2013-05-15 Andreas Schwab <schwab@suse.de>
4181 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
4182 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
4185 2013-05-15 Teresa Johnson <tejohnson@google.com>
4187 * loop-unroll.c (report_unroll_peel): Check decision before
4188 emitting unroll/peel message.
4190 2013-05-15 Teresa Johnson <tejohnson@google.com>
4192 * function.h (has_bb_partition): New rtl_data flag.
4193 (bb_reorder_complete): Ditto.
4194 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
4195 instead of flag_reorder_blocks_and_partition.
4196 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
4197 with some enhancements.
4198 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
4199 * bb-reorder.c (connect_traces): Check for has_bb_partition
4200 instead of flag_reorder_blocks_and_partition.
4201 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
4202 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
4203 verify_hot_cold_block_grouping.
4204 (partition_hot_cold_basic_blocks): Set has_bb_partition.
4206 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4209 * config/arm/predicates.md (call_insn_operand): New predicate.
4210 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
4211 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
4212 if insn is not a tail call.
4213 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
4215 * config/arm/arm.h (enum reg_class): New caller save register class.
4216 (REG_CLASS_NAMES): Likewise.
4217 (REG_CLASS_CONTENTS): Likewise.
4218 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
4221 2013-05-15 Richard Biener <rguenther@suse.de>
4223 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
4224 of MSG_OPTIMIZED_LOCATIONS.
4225 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
4226 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
4228 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
4229 of MSG_OPTIMIZED_LOCATIONS.
4230 (execute_vect_slp): Likewise.
4231 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
4232 (vect_create_cond_for_alias_checks): Likewise.
4233 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
4234 (vect_recog_widen_mult_pattern): Likewise.
4235 (vect_recog_widen_sum_pattern): Likewise.
4236 (vect_recog_over_widening_pattern): Likewise.
4237 (vect_recog_widen_shift_pattern): Likewise.
4238 (vect_recog_vector_vector_shift_pattern): Likewise.
4239 (vect_recog_divmod_pattern): Likewise.
4240 (vect_recog_mixed_size_cond_pattern): Likewise.
4241 (vect_recog_bool_pattern): Likewise.
4242 (vect_pattern_recog_1): Likewise.
4244 2013-05-15 Martin Jambor <mjambor@suse.cz>
4246 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
4247 non-functions to builtin_unreachable.
4248 * ipa-inline-transform.c (inline_call): Do not assert estimates were
4249 correct when new direct edges were discovered.
4251 2013-05-15 Martin Jambor <mjambor@suse.cz>
4253 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
4254 header, print symbol order instead of node uid, print more information
4255 about indirect edge targets.
4256 (ipa_make_edge_direct_to_target): Print symbol order instead of node
4258 (ipa_make_edge_direct_to_target): Likewise.
4259 (remove_described_reference): Likewise.
4260 (propagate_controlled_uses): Likewise.
4261 (ipa_print_node_params): Also print symbol order.
4262 (ipcp_transform_function): Print symbol order instead of node uids.
4263 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
4264 (cgraph_get_create_real_symbol_node): Likewise.
4265 * ipa-cp.c (print_lattice): Likewise.
4266 (print_all_lattices): Likewise.
4267 (determine_versionability): Likewise.
4268 (initialize_node_lattices): Likewise.
4269 (estimate_local_effects): Likewise.
4270 (update_profiling_info): Likewise.
4271 (create_specialized_node): Likewise.
4272 (perhaps_add_new_callers): Likewise.
4273 (decide_about_value): Likewise.
4274 (decide_whether_version_node): Likewise.
4275 (identify_dead_nodes): Likewise.
4276 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
4277 (dump_inline_summary): Likewise.
4278 (estimate_node_size_and_time): Likewise.
4279 (inline_analyze_function): Likewise.
4280 * ipa-inline.c (report_inline_failed_reason): Likewise.
4281 (want_early_inline_function_p): Likewise.
4282 (edge_badness): Likewise.
4283 (update_edge_key): Likewise.
4284 (inline_small_functions): Likewise. Add dumping of order to two other
4286 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
4287 instead of node uids.
4288 (propagate_pure_const): Likewise.
4289 (propagate_pure_const): Likewise.
4290 * ipa-utils.c (dump_cgraph_node_set): Likewise.
4291 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
4292 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
4294 * tree-pretty-print.c (dump_function_header): Likewise.
4295 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
4296 Print symbol order instead of node uids.
4298 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4300 * config/s390/s390.c (s390_register_move_cost): Don't impose the
4301 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
4303 2013-05-15 Richard Biener <rguenther@suse.de>
4305 PR tree-optimization/57275
4306 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
4307 return value for fail to do runtime alias checks for gather loads.
4309 2013-05-15 Jan Hubicka <jh@suse.cz>
4313 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
4314 weakrefs are not external.
4315 (lto_symtab_merge_decls): Fix thinko when dealing with
4316 non-lto_symtab decls.
4317 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
4318 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
4319 * varpool.c (dump_varpool_node): Dump more flags.
4321 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4323 * config/i386/i386.c (processor_alias_table): Add instruction
4324 FSGSBASE for AMD bdver3 architecture.
4326 2013-05-14 Jakub Jelinek <jakub@redhat.com>
4328 * tree.c (warn_deprecated_use): Print file:line using locus color.
4329 * diagnostic.c (diagnostic_report_current_module): Print file:line
4330 and file:line:column using locus color.
4332 2013-05-14 Mike Stump <mikestump@comcast.net>
4334 * gdbinit.in: Add __null.
4336 2013-05-14 Mike Stump <mikestump@comcast.net>
4338 * recog.h: Rename struct recog_data to Recog_data.
4339 * recog.c: Likewise.
4340 * reload.c (can_reload_into): Likewise.
4341 * config/picochip/picochip.c: Likewise.
4343 2013-05-14 Mike Stump <mikestump@comcast.net>
4345 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
4347 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
4349 * resource.h (struct resources): Remove unch_memory member.
4350 (CLEAR_RESOURCE): Don't clear unch_memory.
4351 * resource.c (mark_referenced_resources): Don't set it.
4352 (mark_set_resources): Likewise.
4353 (mark_target_live_regs): Don't clear it.
4354 (init_resource_info): Likewise.
4355 * reorg.c (resource_conflicts_p): Don't compare it.
4356 (redundant_insn): Don't set it.
4358 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
4360 * emit-rtl.c (next_label): Remove unused function.
4361 (skip_consecutive_labels, link_cc0_insns): Move to ...
4362 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
4363 only place where these functions are used, and make them static.
4365 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
4367 * fold-const.c (fold_negate_expr): Handle vectors.
4368 (fold_truth_not_expr): Make it static.
4369 (fold_invert_truthvalue): New static function.
4370 (invert_truthvalue_loc): Handle vectors. Do not call
4371 fold_truth_not_expr directly.
4372 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
4373 <TRUTH_NOT_EXPR>: Do not cast to boolean.
4374 (fold_comparison): Handle vector constants.
4375 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
4376 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
4377 * tree.h (fold_truth_not_expr): Remove declaration.
4379 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
4381 * config/aarch64/aarch64-simd.md
4382 (aarch64_vcond_internal<mode>): Rename to...
4383 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
4384 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
4385 float modes. Clarify all iterator modes.
4386 (vcond<mode><mode>): Use new name for vcond expanders.
4387 (vcond<v_cmp_result><mode>): Likewise.
4388 (vcondu<mode><mode>: Likewise.
4389 * config/aarch64/iterators.md (VDQF_COND): New.
4391 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
4394 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
4395 variable for the shift amount. Check that we shift by non-negative
4398 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
4401 * config/arm/arm.h (EPILOGUE_USES): Only return true
4402 for LR_REGNUM after epilogue_completed.
4404 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
4406 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
4409 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4412 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
4413 and Solaris 11+/x86 with gld.
4414 * configure: Regenerate.
4416 2013-05-14 Jakub Jelinek <jakub@redhat.com>
4418 * expmed.c (expand_shift_1): Canonicalize rotates by
4419 constant bitsize / 2 to bitsize - 1.
4420 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
4421 case ROTATERT>: Likewise.
4424 2013-05-10 Jakub Jelinek <jakub@redhat.com>
4426 * config/i386/i386.md (rotateinv): New code attr.
4427 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
4428 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
4429 roll $31, %eax, etc.
4431 2013-05-14 Richard Biener <rguenther@suse.de>
4434 * tree-eh.c (sink_clobbers): Give up for successors with
4435 multiple predecessors and no virtual uses.
4437 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
4439 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
4440 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
4442 2013-05-14 Jakub Jelinek <jakub@redhat.com>
4445 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
4446 the case when both op0 and op1 have VOIDmode.
4448 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
4450 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
4451 in multiply-accumulate mode.
4453 2013-05-13 Guozhi Wei <carrot@google.com>
4455 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
4457 2013-05-13 Kai Tietz <ktietz@redhat.com>
4460 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
4461 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
4462 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
4463 * config/i386/i386.c (ix86_option_override_internal): Likewise.
4464 (ix86_expand_prologue): Likewise.
4465 (ix86_expand_split_stack_prologue): Likewise.
4466 (legitimate_pic_address_disp_p): Likewise.
4467 (legitimize_pic_address): Likewise.
4468 (legitimize_tls_address): Likewise.
4469 (legitimize_pe_coff_symbol): Likewise.
4470 (output_pic_addr_const): Likewise.
4471 (construct_plt_address): Likewise.
4472 (ix86_expand_call): Likewise.
4473 (x86_output_mi_thunk): Likewise.
4474 (x86_function_profiler): Likewise.
4476 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
4478 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
4479 similar switch cases.
4480 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
4481 (aarch64_simd_mov_to_<mode>low): Delete.
4482 (aarch64_simd_mov_to_<mode>high): Delete.
4483 (move_lo_quad_<mode>): Add w<-r alternative.
4484 (aarch64_simd_move_hi_quad_<mode>): Likewise.
4485 (aarch64_simd_mov_from_*): Update type attribute.
4486 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
4489 2013-05-13 Jan Hubicka <jh@suse.cz>
4491 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
4492 * config/i386/i386.c (ix86_compute_frame_layout,
4493 ix86_expand_epilogue, emit_i387_cw_initialization,
4494 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
4495 ix86_local_alignment): Fix use of size/speed predicates.
4497 2013-05-13 Jakub Jelinek <jakub@redhat.com>
4499 PR tree-optimization/45216
4500 PR tree-optimization/57157
4501 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
4502 the (-Y) & (B - 1) variant if OP is |.
4503 * expmed.c (expand_shift_1): For rotations by const0_rtx just
4504 return shifted. Use (-op1) & (prec - 1) as other_amount
4505 instead of prec - op1.
4507 2013-05-13 Martin Jambor <mjambor@suse.cz>
4510 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
4511 (ipa_constant_data): New type.
4512 (ipa_jump_func): Use ipa_constant_data to hold information about
4513 constant jump functions.
4514 (ipa_get_jf_constant): Adjust to jump function type changes.
4515 (ipa_get_jf_constant_rdesc): New function.
4516 (ipa_param_descriptor): New field controlled_uses.
4517 (ipa_get_controlled_uses): New function.
4518 (ipa_set_controlled_uses): Likewise.
4519 * ipa-ref.h (ipa_find_reference): Declare.
4520 * ipa-prop.c (ipa_cst_ref_desc): New type.
4521 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
4523 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
4524 New parameter cs. Adjust all callers.
4525 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
4526 (remove_described_reference): New function.
4527 (jfunc_rdesc_usable): Likewise.
4528 (try_make_edge_direct_simple_call): Decrement controlled use count,
4529 attempt to remove reference if it hits zero.
4530 (combine_controlled_uses_counters): New function.
4531 (propagate_controlled_uses): Likewise.
4532 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
4533 (ipa_edge_duplication_hook): Duplicate reference descriptions.
4534 (ipa_print_node_params): Print described use counter.
4535 (ipa_write_jump_function): Adjust to jump function type changes.
4536 (ipa_read_jump_function): New parameter CS, pass it to
4537 ipa_set_jf_constant. Adjust caller.
4538 (ipa_write_node_info): Stream controlled use count
4539 (ipa_read_node_info): Likewise.
4540 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
4542 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
4543 count. Remove cloning-added reference if it reaches zero.
4544 * ipa-ref.c (ipa_find_reference): New function.
4546 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4548 * config/i386/i386.c (processor_target_table): Modified default
4549 alignment values for AMD BD and BT architectures.
4551 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
4553 * tree-vect-generic.c (uniform_vector_p): Move ...
4554 * tree.c (uniform_vector_p): ... here.
4555 * tree.h (uniform_vector_p): Declare it.
4556 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
4559 2013-05-13 Jakub Jelinek <jakub@redhat.com>
4561 PR tree-optimization/57230
4562 * tree-ssa-strlen.c (handle_char_store): Record length for
4563 array store from STRING_CST.
4565 PR tree-optimization/57230
4566 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
4569 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
4571 * config/epiphany/epiphany.c (epiphany_init): Check size of
4572 NUM_MODES_FOR_MODE_SWITCHING.
4573 (epiphany_expand_prologue):
4574 Remove CONFIG_REGNUM initial value handling code.
4575 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
4576 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
4577 (emit_set_fp_mode, epiphany_mode_after): Likewise.
4578 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
4579 Don't return 1 for FP_MODE_NONE.
4580 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
4581 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
4582 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
4583 * config/epiphany/epiphany.md (save_config): New pattern.
4585 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
4587 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
4589 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
4591 * config/i386/i386.md (memory): Handle sseishft1.
4592 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
4593 (*vec_extractv2di_1): Ditto.
4595 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
4597 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
4600 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
4602 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
4603 Add mthumb/march=armv7-a multilib.
4604 Add mthumb/march=armv7-r multilib.
4605 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
4607 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
4609 * config/v850/t-rtems: Add more multilibs.
4611 2013-05-10 Richard Biener <rguenther@suse.de>
4613 PR tree-optimization/57214
4614 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
4615 not propagate from SSA names that occur in abnormal PHI nodes.
4617 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
4619 * stor-layout.c (element_precision): New function.
4620 * machmode.h (element_precision): Declare it.
4621 * tree.c (build_minus_one_cst): New function.
4622 (element_precision): Likewise.
4623 * tree.h (build_minus_one_cst): Declare new function.
4624 (element_precision): Likewise.
4625 * fold-const.c (operand_equal_p): Use element_precision.
4626 (fold_binary_loc): Handle vector types.
4627 * convert.c (convert_to_integer): Use element_precision.
4628 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
4631 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
4633 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
4634 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
4635 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
4636 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
4637 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
4638 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
4639 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
4640 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
4641 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
4642 (Uuw8): New constraints.
4643 (Usb4): Move into alphabetical order.
4644 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
4645 (sd8_operand, ub8_operand, uw8_operand): New predicates.
4646 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
4647 previously unnamed patterns.
4648 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
4649 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
4650 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
4651 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
4652 of set_attr_alternative/if_then_else. Use extended_mips16 instead
4653 of specific lengths.
4655 2013-05-10 Jakub Jelinek <jakub@redhat.com>
4657 * config/i386/i386.md (rotateinv): New code attr.
4658 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
4659 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
4660 roll $31, %eax, etc.
4662 PR tree-optimization/45216
4663 PR tree-optimization/57157
4664 * tree-ssa-forwprop.c (simplify_rotate): New function.
4665 (ssa_forward_propagate_and_combine): Call it.
4667 2013-05-10 Richard Biener <rguenther@suse.de>
4669 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
4670 disable peeling when we version for aliasing.
4671 (vector_alignment_reachable_p): Honor explicit user alignment.
4672 (vect_supportable_dr_alignment): Likewise.
4673 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
4674 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
4675 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
4676 then peeling to arrange for the cost-model check to come first.
4678 2013-05-10 Alan Modra <amodra@gmail.com>
4680 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
4681 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
4682 * configure: Regenerate.
4684 2013-05-10 Alan Modra <amodra@gmail.com>
4687 * varasm.c (default_elf_select_section): Move !DECL_P check..
4688 (get_named_section): ..to here before calling get_section_name.
4690 (default_section_type_flags): Add DECL_P check.
4691 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
4692 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
4694 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
4696 * config/epiphany/epiphany.c (epiphany_expand_prologue):
4697 When using gen_stack_adjust_str with a register offset, add a
4698 REG_FRAME_RELATED_EXPR note.
4700 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
4702 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
4703 (*vec_extractv4si_zext_mem): Ditto.
4704 (*vec_extractv2di): Add 0->x and x->x alternatives.
4705 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
4706 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
4708 2013-05-09 Jason Merrill <jason@redhat.com>
4710 N3639 C++1y VLA support
4711 * gimplify.c (gimplify_vla_decl): Don't touch an existing
4714 * tree.c (build_constructor_va): New.
4715 * tree.h: Declare it.
4717 2013-05-09 Martin Jambor <mjambor@suse.cz>
4720 * gimple-fold.c (canonicalize_constructor_val): Call
4721 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
4723 2013-05-09 Jan Hubicka <jh@suse.cz>
4724 Richard Biener <rguenther@suse.de>
4727 * symtab.c (symtab_make_decl_local): Do not add private names.
4729 2013-05-09 Jan Hubicka <jh@suse.cz>
4732 * symtab.c (insert_to_assembler_name_hash): Handle clones.
4733 (unlink_from_assembler_name_hash): Likewise.
4734 (symtab_prevail_in_asm_name_hash, symtab_register_node,
4735 symtab_unregister_node, symtab_initialize_asm_name_hash,
4736 change_decl_assembler_name): Update.
4738 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
4740 * config/aarch64/aarch64.md: New movtf split.
4741 (*movtf_aarch64): Update.
4742 (aarch64_movdi_tilow): Handle TF modes and rename to
4743 aarch64_movdi_<mode>low.
4744 (aarch64_movdi_tihigh): Handle TF modes and rename to
4745 aarch64_movdi_<mode>high
4746 (aarch64_movtihigh_di): Handle TF modes and rename to
4747 aarch64_mov<mode>high_di
4748 (aarch64_movtilow_di): Handle TF modes and rename to
4749 aarch64_mov<mode>low_di
4750 (aarch64_movtilow_tilow): Remove spurious whitespace.
4751 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
4753 (aarch64_print_operand): Update.
4755 2013-05-09 Alan Modra <amodra@gmail.com>
4757 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
4759 * configure: Regenerate.
4761 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
4763 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
4764 splitter preparation statements.
4765 * config/i386/sse.md (*vec_extract* splitters): Ditto.
4766 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
4769 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4771 * gimple-ssa-strength-reduction.c (count_candidates): Change
4772 return value to int.
4773 (analyze_candidates_and_replace): Change type of length to int.
4775 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
4777 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
4778 (*vec_extract<mode>): Use VI12_128 mode iterator.
4779 (*vec_extract<mode>_mem): Ditto.
4780 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
4783 2013-05-08 Diego Novillo <dnovillo@google.com>
4788 2012-08-17 Diego Novillo <dnovillo@google.com>
4791 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
4792 * config.in: Regenerate.
4793 * configure: Regenerate.
4794 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4796 2013-05-08 Jan Hubicka <jh@suse.cz>
4799 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
4800 * cgraph.h (symtab_node_base): Add unique_name.
4801 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
4802 input_overwrite_node, input_varpool_node): Stream unique_name.
4803 * cgraphclones.c (cgraph_create_virtual_clone,
4804 cgraph_function_versioning): Set unique_name.
4805 * ipa.c (function_and_variable_visibility): Set unique_name.
4807 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4809 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
4810 (alloc_cand_and_find_basis): Restrict conditional candidate
4811 processing to CAND_MULTs.
4813 2013-05-08 Jan Hubicka <jh@suse.cz>
4816 lto-symtab.c (lto_symtab_symbol_p): New function.
4817 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
4818 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
4819 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
4820 Skip static symbols.
4822 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
4824 PR tree-optimization/57200
4825 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
4826 Only call inform if the preceding warning_at returns true.
4828 2013-05-07 Han Shen <shenhan@google.com>
4830 * cfgexpand.c (record_or_union_type_has_array_p): New function.
4831 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
4832 * common.opt (fstack-protector-strong): New option.
4833 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
4834 * doc/invoke.texi (Optimization Options): Document
4835 "-fstack-protector-strong".
4836 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
4838 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
4840 * config/mips/mips.c (mips_machine_reorg2): Return 0.
4842 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
4844 * ira.c (update_equiv_regs): Add insn having equiv memory even if
4845 it is not lhs of the insn.
4846 (setup_reg_equiv): Remove insn having equiv memory which it is not
4848 * lra-constraints.c (process_address): Try to improve generation
4849 code for address base + disp.
4850 (lra_constraints): Make correct the code for checking insn setting
4851 up backward equivalence. Remove insn only if it is in the init
4853 * lra-eliminations.c (update_reg_eliminate): Change return value.
4854 (lra_eliminate): Use the result.
4856 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
4858 * config/i386/sse.md (ssescalarnummask): New mode attribute.
4859 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
4860 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
4861 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
4862 register target operands.
4863 (*vec_extractv8hi_sse2): New pattern.
4864 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
4865 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
4866 (*vec_extract<mode>_mem): New insn and split pattern.
4868 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
4870 * config/arm/arm.c (arm_asan_shadow_offset): New function.
4871 (TARGET_ASAN_SHADOW_OFFSET): Define.
4872 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
4873 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
4875 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4877 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
4878 (incr_vec_index): Return -1 if increment not found.
4879 (create_add_on_incoming_edge): Assert if increment not found.
4880 (record_increment): Limit number of increments recorded.
4881 (all_phi_incrs_profitable): Return false if an increment not found.
4882 (replace_profitable_candidates): Don't process increments that were
4884 (analyze_candidates_and_replace): Limit size of incr_vec.
4886 2013-05-07 Richard Biener <rguenther@suse.de>
4888 * calls.c (special_function_p): setjmp-like functions are leaf.
4889 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
4890 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
4892 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
4894 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
4895 (aarch64_simd_mov<mode>): New expander.
4896 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
4897 (aarch64_simd_mov_to_<mode>high): Likewise.
4898 (aarch64_simd_mov_from_<mode>low): Likewise.
4899 (aarch64_simd_mov_from_<mode>high): Likewise.
4900 (aarch64_dup_lane<mode>): Update.
4901 (aarch64_dup_lanedi): New instruction pattern.
4902 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
4903 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
4905 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4907 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
4908 (replace_mult_candidate): Remove unnecessary argument; remove
4909 unnecessary parameter from call to introduce_cast_before_cand.
4910 (replace_unconditional_candidate): Remove unnecessary parameter
4911 from call to replace_mult_candidate.
4912 (replace_conditional_candidate): Likewise.
4913 (insert_initializers): Use make_temp_ssa_name.
4914 (introduce_cast_before_cand): Remove unnecessary argument; use
4916 (replace_one_candidate): Remove unnecessary argument; remove
4917 unnecessary parameter from calls to introduce_cast_before_cand.
4918 (replace_profitable_candidates): Remove unnecessary parameters
4919 from calls to replace_one_candidate.
4921 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4923 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
4924 phi def as possibly hiding a basis for a CAND_ADD whose operands
4925 have been commuted in the analysis.
4926 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
4928 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4930 * config/aarch64/aarch64.md
4931 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
4932 shift value between 0-4.
4934 2013-05-07 Richard Biener <rguenther@suse.de>
4936 * double-int.h (rshift): New overload.
4937 * double-int.c (rshift): New function.
4938 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
4939 (create_reference_ops_from_ref): Remove.
4940 (vn_reference_insert): Use shared ops for constructing the
4941 reference and copy it.
4943 2013-05-07 Richard Biener <rguenther@suse.de>
4946 * tree-eh.c (sink_clobbers): Properly propagate
4947 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
4949 2013-05-07 Jakub Jelinek <jakub@redhat.com>
4951 PR tree-optimization/57149
4952 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
4953 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
4954 collect_phi_def_edges, execute_late_warn_uninitialized): Use
4955 uninit_undefined_value_p instead of ssa_undefined_value_p.
4958 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
4959 for modifier == EXPAND_INITIALIZER.
4961 2013-05-07 Anton Blanchard <anton@samba.org>
4963 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
4964 for powerpc64 little endian.
4965 * configure: Regenerate.
4967 2013-05-06 Graham Stott <grahams@btinternet.com>
4969 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
4970 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
4971 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
4972 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
4974 2013-05-06 Graham Stott <grahams@btinternet.com>
4976 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
4977 codes which allow non-lvalues.
4979 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
4981 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
4982 components are all 1s.
4983 (integer_minus_onep): New function.
4984 * tree.h (integer_minus_onep): Declare it.
4985 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
4986 integer_minus_onep instead of integer_all_onesp.
4988 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
4991 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
4992 variations of these patterns.
4994 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
4996 * config/i386/i386.md (isa): Add x64_sse4 member.
4997 (enabled): Handle x64_sse4.
4998 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
4999 instruction for 64bit SSE4_1 targets. Update insn attributes.
5000 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
5001 instruction for SSE4_1 targets. Update insn attributes.
5002 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
5003 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
5004 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
5006 (*vec_extractv4si): Rename from *sse4_1_pextrd.
5007 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
5008 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
5010 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
5013 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
5015 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
5017 * final.c (do_assembler_dialects): Don't handle curly braces and
5018 vertical bar escaped by % as dialect delimiters.
5019 (output_asm_insn): Print curly braces and vertical bar if escaped
5020 by % and ASSEMBLER_DIALECT defined.
5021 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
5022 * doc/tm.texi: Regenerated.
5024 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
5026 * config/mips/mips.c: Include tree-pass.h.
5027 (mips_reorg): Split in pre- and post-dbr_schedule parts.
5028 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
5029 (pass_mips_machine_reorg2): New machine specific pass.
5030 (insert_pass_mips_machine_reorg2): New pass plugin definition.
5031 (mips_option_override): Register the new pass.
5032 * rtl.h (cleanup_barriers): Remove prototype.
5033 (dbr_schedule): Likewise.
5034 * jump.c (cleanup_barriers): Make static.
5035 * reorg.c (dbr_schedule): Likewise.
5037 2013-05-06 Richard Biener <rguenther@suse.de>
5039 PR tree-optimization/57185
5040 * tree-parloops.c (add_field_for_reduction): Handle anonymous
5043 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
5046 * config/i386/i386.c (add_parameter_dependencies): Add dependence
5047 between "first_arg" and "insn", not "last" and "insn".
5049 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5051 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
5052 (find_candidates_in_block): Re-enable slsr_process_phi.
5053 (create_phi_basis): Fix double counting of candidate adjustment.
5055 2013-05-06 Richard Biener <rguenther@suse.de>
5058 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
5059 the edge is also fallthru, preserve it and just clear the
5061 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
5062 also complex, preserve that and just clear the fallthru flag.
5063 * tree-inline.c (update_ssa_across_abnormal_edges): Also
5064 update virtual operands.
5066 2013-05-06 Alan Modra <amodra@gmail.com>
5068 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
5069 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
5070 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
5071 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
5072 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
5073 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
5075 2013-05-06 Alan Modra <amodra@gmail.com>
5077 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
5078 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
5079 (DEFAULT_ASM_ENDIAN): Define.
5080 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
5081 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
5082 Update -K PIC clause from sysv4.h.
5083 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
5084 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
5086 2013-05-06 Alan Modra <amodra@gmail.com>
5088 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
5089 twice for little-endian.
5090 (ashrdi3_no_power, ashrdi3): Support little-endian.
5092 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
5095 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
5096 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
5098 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
5099 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
5100 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
5103 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
5104 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5106 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
5107 * config/pa/pa.opt: Make mbig-switch a no-op.
5108 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
5109 (CASE_VECTOR_MODE): Always return SImode.
5110 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
5111 for the !TARGET_BIG_SWITCH case.
5112 * config/pa/pa-linux.h: Likewise.
5113 * config/pa/pa-openbsd.h: Likewise.
5114 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
5115 * config/pa/pa.md (short_jump): Remove define_insn.
5116 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
5117 (casesi0): Remove define_insn.
5118 (type): Remove btable_branch.
5119 (pa_combine_type): Likewise.
5120 (in_nullified_branch_delay): Likewise.
5121 (in_call_delay): Likewise.
5122 (define_delay): Likewise.
5123 (define_insn_reservation "Z3"): Likewise.
5124 (define_insn_reservation "Z4"): Likewise.
5125 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
5126 (pa_adjust_insn_length): Remove adjustment for btable branches.
5127 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
5130 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
5132 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
5133 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
5134 Add m->r,x alternatives.
5135 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
5136 splitters using SWI48x mode iterator.
5137 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
5138 TARGET_64BIT. Add m->x alternative.
5139 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
5140 Add o->x alternative. Enable for TARGET_SSE.
5141 (sse_storeq): Remove expander.
5142 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
5143 with memory input operand.
5144 (*vec_extractv2di_1 splitter): New.
5145 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
5146 * config/i386/i386.md (ssevecmodelower): New mode attribute.
5148 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
5150 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
5151 (INT_LOWPART): Delete.
5152 (extract_MB): Adjust.
5153 (extract_ME): Adjust.
5154 (print_operand): Adjust.
5156 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
5158 * config/rs6000/predicates.md (reg_or_add_cint_operand,
5159 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
5160 (reg_or_logical_cint_operand, easy_fp_constant,
5161 logical_const_operand): Delete "CONST_DOUBLE" case.
5162 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
5163 "HOST_BITS_PER_WIDE_INT == 64" test.
5164 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
5165 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
5166 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
5167 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
5169 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
5170 CONST_DOUBLE DImode/VOIDmode case.
5171 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
5172 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
5173 CONST_DOUBLE VOIDmode case.
5174 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
5175 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
5176 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
5177 Delete CONST_DOUBLE case.
5178 (splitters for mov FMOVE64 const_double): Delete
5179 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
5180 "HOST_BITS_PER_WIDE_INT >= 64" test.
5181 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
5183 (mov DI const_double): Delete.
5185 2013-05-04 Jakub Jelinek <jakub@redhat.com>
5187 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
5188 on op shows all bits zero in mode of a lowpart subreg, return zero.
5190 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
5193 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
5194 to save TFmode registers and DImode to save TImode registers for
5195 caller save operations.
5196 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
5197 mark being partially clobbered since they only use the first
5200 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
5201 and TDmode only use the upper 64-bits of each VSX register.
5203 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5205 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
5206 (find_candidates_in_block): Disable slsr_process_phi.
5208 2013-05-03 Guozhi Wei <carrot@google.com>
5210 * coverage.c (coverage_obj_init): Move the construction of gcov
5212 (build_init_ctor): ... here.
5214 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5216 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
5217 (slsr_cand_d): Redefine def_phi.
5218 (stride_status, phi_adjust_status, count_phis_status): New enums.
5219 (find_phi_def): New.
5220 (find_basis_for_base_expr): New.
5221 (find_basis_for_candidate): Handle hidden bases.
5222 (alloc_cand_and_find_basis): Handle phi candidates.
5223 (slsr_process_phi): New.
5224 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
5225 (create_mul_imm_cand): Likewise.
5226 (create_add_ssa_cand): Exclude phi base candidates.
5227 (create_add_imm_cand): Likewise.
5228 (slsr_process_cast): Likewise.
5229 (slsr_process_copy): Likewise.
5230 (find_candidates_in_block): Handle phi candidates.
5231 (dump_candidate): Likewise.
5232 (unconditional_cands): Delete.
5233 (unconditional_cands_with_known_stride_p): Delete.
5234 (phi_dependent_cand_p): New.
5235 (cand_increment): Handle phi-dependent candidates.
5236 (replace_dependent): Delete.
5237 (replace_mult_candidate): New.
5238 (replace_unconditional_candidate): New.
5239 (incr_vec_index): Move to avoid forward reference.
5240 (create_add_on_incoming_edge): New.
5241 (create_phi_basis): New.
5242 (replace_dependents): Delete.
5243 (replace_conditional_candidate): New.
5244 (phi_add_costs): New.
5245 (replace_uncond_cands_and_profitable_phis): New.
5246 (record_increment): Handle phi adjustments.
5247 (record_phi_increments): New.
5248 (record_increments): Handle phi adjustments.
5249 (phi_incr_cost): New.
5250 (lowest_cost_path): Handle phis.
5251 (total_savings): Likewise.
5252 (analyze_increments): Likewise.
5253 (ncd_with_phi): New.
5254 (ncd_of_cand_and_phis): New.
5255 (nearest_common_dominator_for_cands): Handle phi increments.
5256 (all_phi_incrs_profitable): New.
5257 (replace_profitable_candidates): Handle phi-dependent candidates.
5258 (analyze_candidates_and_replace): Likewise.
5260 2013-05-03 Teresa Johnson <tejohnson@google.com>
5263 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
5264 do not exceed REG_BR_PROB_BASE.
5266 2013-05-03 Jeff Law <law@redhat.com>
5268 PR tree-optimization/57144
5269 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
5270 operand of the condition will bit into the new type when eliminating
5271 a cast feeding a condition.
5273 2013-05-03 Jakub Jelinek <jakub@redhat.com>
5275 PR rtl-optimization/57130
5276 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
5277 of COMPARE as in_code to the recursive call if needed.
5279 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
5281 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
5282 (enabled): Handle new members.
5283 * config/i386/sse.md (*vec_concatv2si): Merge from
5284 *vec_concatv2si_sse2 and vec_concatv2si_sse.
5285 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
5287 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
5289 PR tree-optimization/57027
5290 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
5291 for fnms opportunity, check we got the prerequisite kind
5292 of tree / gimple before using accessor functions.
5294 2013-05-03 Richard Biener <rguenther@suse.de>
5296 * double-int.h (lshift): New overload without precision
5298 (operator *=, operator +=, operator -=): Move ...
5299 * double-int.c (operator *=, operator +=, operator -=): ... here
5300 and implement more efficiently.
5301 (mul_double_with_sign): Remove.
5302 (lshift_double): Adjust to take unsinged shift argument, push
5303 dispatching code to callers.
5304 (mul_double_wide_with_sign): Add early out for callers that
5305 are not interested in high parts or overflow.
5306 (lshift): New function.
5307 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
5309 (lrotate, rrotate): Use logical shifts.
5310 * expr.c (get_inner_reference): Use lshift.
5311 * fixed-value.c (do_fixed_divide): Likewise.
5312 * tree-dfa.c (get_ref_base_and_extent): Likewise.
5313 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
5314 (indirect_refs_may_alias_p): Likewise.
5315 (stmt_kills_ref_p_1): Likewise.
5317 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
5319 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
5321 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
5323 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
5324 scalar form of FABD instruction.
5326 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
5328 * lra-constraints.c (process_alt_operands): Add checking alt
5329 number to choose the best alternative.
5331 2013-05-02 Richard Biener <rguenther@suse.de>
5333 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
5334 bitmap and its handling.
5335 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
5337 2013-05-02 Richard Biener <rguenther@suse.de>
5340 * tree-inline.c (copy_loops): Properly handle removed loops.
5341 (copy_cfg_body): Mark destination loops for fixup if source
5344 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
5347 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
5348 generating simple_return for naked functions.
5350 2013-05-02 Martin Jambor <mjambor@suse.cz>
5353 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
5354 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
5356 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
5357 ipa_agg_replacement_value structures.
5358 (known_aggs_to_agg_replacement_list): Likewise.
5359 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
5360 (read_agg_replacement_chain): Likewise.
5361 (ipcp_transform_function): Also check that by_ref flags match.
5363 2013-05-02 Richard Biener <rguenther@suse.de>
5365 * graphds.h (struct graph): Add obstack member.
5366 * graphds.c (new_graph): Initialize obstack and allocate
5368 (add_edge): Allocate edge from the obstack.
5369 (free_graph): Free the obstack instead of all edges and vertices.
5371 2013-05-02 Teresa Johnson <tejohnson@google.com>
5373 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
5375 * cfg.c (update_bb_profile_for_threading): Ditto.
5376 * tree-inline.c (copy_bb): Ditto.
5377 (copy_edges_for_bb): Ditto.
5378 (initialize_cfun): Ditto.
5379 (copy_cfg_body): Ditto.
5380 (expand_call_inline): Ditto.
5381 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
5382 (estimate_node_size_and_time): Ditto.
5383 (inline_merge_summary): Ditto.
5384 * cgraphclones.c (cgraph_clone_edge): Ditto.
5385 (cgraph_clone_node): Ditto.
5386 * sched-rgn.c (compute_dom_prob_ps): Ditto.
5387 (compute_trg_info): Ditto.
5389 2013-05-02 Ian Bolton <ian.bolton@arm.com>
5391 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
5392 S reg when fp attribute set.
5393 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
5395 2013-05-02 Ian Bolton <ian.bolton@arm.com>
5397 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
5399 (*and_one_cmplsi3_compare0_uxtw): Likewise.
5400 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
5401 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
5403 2013-05-02 Richard Biener <rguenther@suse.de>
5405 * tree-scalar-evolution.c (scev_info_hasher): Remove.
5406 (struct instantiate_cache_entry): New type.
5407 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
5408 (struct instantiate_cache_type): New type.
5409 (set_instantiated_value, get_instantiated_value): Remove.
5410 (get_instantiated_value_entry): New function.
5411 (instantiate_scev_name): Use the new cache and adjust.
5412 (instantiate_scev_poly): Adjust.
5413 (instantiate_scev_binary): Likewise.
5414 (instantiate_array_ref): Likewise.
5415 (instantiate_scev_convert): Likewise.
5416 (instantiate_scev_not): Likewise.
5417 (instantiate_scev_3): Likewise.
5418 (instantiate_scev_2): Likewise.
5419 (instantiate_scev_r): Likewise.
5420 (instantiate_scev): Likewise.
5421 (resolve_mixers): Likewise.
5423 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
5426 * lra-constraints.c (best_small_class_operands_num): Remove.
5427 (process_alt_operands): Remove small_class_operands_num. Take
5428 small classes operands into losers and only if the operand is not
5429 matched. Modify debugging output.
5430 (curr_insn_transform): Remove best_small_class_operands_num.
5433 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5435 * config/aarch64/aarch64-builtins.c
5436 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
5437 * config/aarch64/aarch64-simd-builtins.def
5438 (reduc_splus_): Add new modes.
5439 (reduc_uplus_): New.
5440 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
5441 (reduc_uplus_v4sf): Likewise.
5442 (reduc_splus_v4sf): Likewise.
5443 (aarch64_addv<mode>): Likewise.
5444 (reduc_uplus_<mode>): Likewise.
5445 (reduc_splus_<mode>): Likewise.
5446 (aarch64_addvv2di): Likewise.
5447 (reduc_uplus_v2di): Likewise.
5448 (reduc_splus_v2di): Likewise.
5449 (aarch64_addvv2si): Likewise.
5450 (reduc_uplus_v2si): Likewise.
5451 (reduc_splus_v2si): Likewise.
5452 (reduc_<sur>plus_<mode>): New.
5453 (reduc_<sur>plus_v2di): Likewise.
5454 (reduc_<sur>plus_v2si): Likewise.
5455 (reduc_<sur>plus_v4sf): Likewise.
5456 (aarch64_addpv4sf): Likewise.
5457 * config/aarch64/arm_neon.h
5458 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
5459 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
5460 add UNSPEC_SADDV, UNSPEC_UADDV.
5462 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
5464 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5466 * config/aarch64/arm_neon.h
5467 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
5469 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5471 * config/aarch64/aarch64-builtins
5472 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
5474 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5476 * config/aarch64/aarch64-simd-builtins.def
5478 (reduc_smin_): Likewise.
5479 (reduc_umax_): Likewise.
5480 (reduc_umin_): Likewise.
5481 (reduc_smax_nan_): Likewise.
5482 (reduc_smin_nan_): Likewise.
5485 (smax): Update for V2SF, V4SF and V2DF modes.
5488 (smin_nan): Likewise.
5489 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
5490 (<su><maxmin><mode>3): ...This, refactor.
5491 (s<maxmin><mode>3): New.
5492 (<maxmin_uns><mode>3): Likewise.
5493 (reduc_<maxmin_uns>_<mode>): Refactor.
5494 (reduc_<maxmin_uns>_v4sf): Likewise.
5495 (reduc_<maxmin_uns>_v2si): Likewise.
5496 (aarch64_<fmaxmin><mode>: Remove.
5497 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
5499 (vmin<q>_f<32,64>): Likewise.
5500 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
5502 (su): Add mappings for smax, smin, umax, umin.
5504 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
5505 (FMAXMIN): Rename as...
5506 (FMAXMIN_UNS): ...This.
5508 (fmaxminv): Likewise.
5509 (fmaxmin): Likewise.
5511 (maxmin_uns_op): Likewise.
5513 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5515 * config/aarch64/arm_neon.h
5516 (vac<ge, gt><sd>_f<32, 64>): Rename to...
5517 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
5518 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
5520 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5522 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
5523 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
5525 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5527 * config/aarch64/aarch64-simd.md
5528 (vcond<mode>_internal): Handle special cases for constant masks.
5529 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
5530 (vcondu<mode><mode>): Likewise.
5531 (vcond<v_cmp_result><mode>): New.
5533 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5535 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
5536 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
5537 * config/aarch64/aarch64-simd-builtins.def
5538 (cmeq): Update to BUILTIN_VALLDI.
5543 * config/aarch64/arm_neon.h
5544 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
5545 to builtins or C as appropriate.
5547 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5549 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
5551 (cmhi): Rename to...
5553 * config/aarch64/aarch64-simd.md
5554 (simd_mode): Add SF.
5555 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
5556 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
5557 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
5558 (cstore<mode>_neg): ...This.
5559 * config/aarch64/iterators.md
5561 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
5563 (UCOMPARISONS): Likewise.
5564 (optab): Add missing comparisons.
5572 (V_cmp_result): Add DF, SF modes.
5573 (v_cmp_result): Likewise.
5576 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
5578 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
5580 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
5581 define_insn to define_insn_and_split.
5582 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
5583 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
5584 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
5585 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
5586 (thumb2_negscc): Likewise.
5588 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
5590 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
5592 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
5594 * config/arm/thumb2.md: Remove trailing whitespaces.
5596 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
5598 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
5599 Use gen_int_mode rather than GEN_INT.
5601 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
5603 * value-prof.c (stream_in_histogram_value): Remove the strayed
5606 2013-04-30 Richard Biener <rguenther@suse.de>
5609 * cfghooks.c (split_edge): Properly check for the loop latch edge.
5611 2013-04-30 Richard Biener <rguenther@suse.de>
5614 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
5616 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
5618 PR rtl-optimization/56957
5619 PR rtl-optimization/57105
5620 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
5621 variable. Use just INSN_UID for determining whether an insn
5622 should be only disconnected from the insn stream.
5623 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
5625 2013-04-30 Jakub Jelinek <jakub@redhat.com>
5627 PR tree-optimization/57104
5628 * tsan.c (instrument_expr): Don't instrument accesses to
5629 DECL_HARD_REGISTER VAR_DECLs.
5631 2013-04-30 Richard Biener <rguenther@suse.de>
5633 * function.h (loops_for_fn): New inline function.
5634 (set_loops_for_fn): Likewise.
5635 * cfgloop.h (place_new_loop): Add struct function parameter.
5636 (get_loop): Likewise.
5637 (get_loops): Likewise.
5638 (number_of_loops): Likewise.
5640 (fel_init): Likewise.
5641 * cfg.c (get_loop_copy): Adjust.
5642 * cfgloop.c (flow_loops_dump): Likewise.
5643 (record_loop_exits): Likewise.
5644 (verify_loop_structure): Likewise.
5645 * cfgloopanal.c (mark_irreducible_loops): Likewise.
5646 (estimate_reg_pressure_cost): Likewise.
5647 (mark_loop_exit_edges): Likewise.
5648 * cfgloopmanip.c (place_new_loop): Likewise.
5649 (add_loop): Likewise.
5650 (duplicate_loop): Likewise.
5651 * graph.c (draw_cfg_nodes): Likewise.
5652 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
5653 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
5654 (extract_affine_chrec): Likewise.
5655 (build_scop_iteration_domain): Likewise.
5656 * graphite.c (graphite_initialize): Likewise.
5657 * ira-build.c (create_loop_tree_nodes): Likewise.
5658 (more_one_region_p): Likewise.
5659 (rebuild_regno_allocno_maps): Likewise.
5660 (mark_loops_for_removal): Likewise.
5661 (mark_all_loops_for_removal): Likewise.
5662 (remove_unnecessary_regions): Likewise.
5663 (ira_build): Likewise.
5664 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
5665 * loop-init.c (fix_loop_structure): Likewise.
5666 (gate_rtl_move_loop_invariants): Likewise.
5667 (gate_rtl_unswitch): Likewise.
5668 (gate_rtl_unroll_and_peel_loops): Likewise.
5669 (rtl_doloop): Likewise.
5670 * lto-streamer-in.c (input_cfg): Likewise.
5671 * lto-streamer-out.c (output_cfg): Likewise.
5672 * modulo-sched.c (sms_schedule): Likewise.
5673 * predict.c (tree_estimate_probability): Likewise.
5674 (tree_estimate_probability_driver): Likewise.
5675 (estimate_loops): Likewise.
5676 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
5677 (move_sese_region_to_fn): Likewise.
5678 (debug_loop_num): Likewise.
5679 * tree-chrec.c (chrec_evaluate): Likewise.
5680 (hide_evolution_in_other_loops_than_loop): Likewise.
5681 (chrec_component_in_loop_num): Likewise.
5682 (reset_evolution_in_loop): Likewise.
5683 (evolution_function_is_invariant_rec_p): Likewise.
5684 * tree-if-conv.c (main_tree_if_conversion): Likewise.
5685 * tree-inline.c (copy_loops): Likewise.
5686 (copy_cfg_body): Likewise.
5687 (tree_function_versioning): Likewise.
5688 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
5689 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
5691 (add_to_evolution_1): Likewise.
5692 (scev_const_prop): Likewise.
5693 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
5694 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
5695 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
5696 (tree_ssa_lim_initialize): Likewise.
5697 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
5698 (verify_loop_closed_ssa): Likewise.
5699 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
5700 (tree_ssa_loop_im): Likewise.
5701 (tree_ssa_loop_unswitch): Likewise.
5702 (tree_vectorize): Likewise.
5703 (check_data_deps): Likewise.
5704 (tree_ssa_loop_ivcanon): Likewise.
5705 (tree_ssa_loop_bounds): Likewise.
5706 (tree_complete_unroll): Likewise.
5707 (tree_complete_unroll_inner): Likewise.
5708 (tree_parallelize_loops): Likewise.
5709 (tree_ssa_loop_prefetch): Likewise.
5710 (tree_ssa_loop_ivopts): Likewise.
5711 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
5712 * tree-vectorizer.c (vectorize_loops): Likewise.
5714 2013-04-29 Mike Frysinger <vapier@gentoo.org>
5716 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
5717 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
5718 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
5719 with EABI_LINK_SPEC.
5721 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
5724 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
5727 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
5730 * lra-constraints.c (process_alt_operands): Discourage a bit more
5731 using memory for pseudos. Print cost dump for alternatives.
5732 Modify cost values for conflicts with early clobbers.
5733 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
5735 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
5738 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
5740 2013-04-29 Ian Bolton <ian.bolton@arm.com>
5742 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
5744 (movdi_aarch64): Support LDR/STR from/to D register.
5746 2013-04-29 Ian Bolton <ian.bolton@arm.com>
5748 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
5749 or higher by default.
5751 2013-04-29 Richard Biener <rguenther@suse.de>
5754 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
5755 even if not adding abnormal edges for calls that can make
5758 2013-04-29 Richard Biener <rguenther@suse.de>
5761 * tree-cfg.c (move_stmt_op): Fix condition under which to update
5763 (move_stmt_r): Remove redundant checking.
5765 2013-04-29 Teresa Johnson <tejohnson@google.com>
5768 * basic-block.h (apply_scale): New function.
5769 (apply_probability): Use apply_scale.
5770 * gimple-streamer-in.c (input_bb): Ditto.
5771 * lto-streamer-in.c (input_cfg): Ditto.
5772 * lto-cgraph.c (merge_profile_summaries): Ditto.
5773 * tree-optimize.c (execute_fixup_cfg): Ditto.
5774 * tree-inline.c (copy_bb): Update comment to use apply_scale.
5775 (copy_edges_for_bb): Ditto.
5776 (copy_cfg_body): Ditto.
5778 2013-04-29 Tom de Vries <tom@codesourcery.com>
5780 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
5781 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
5782 (tail_merge_optimize): Handle current_loops == NULL.
5784 2013-04-26 Jeff Law <law@redhat.com>
5786 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
5787 (simplify_cond_using_ranges): Generalize code to simplify
5788 COND_EXPRs where one argument is a constant and the other
5789 is an SSA_NAME created by an integral type conversion.
5791 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5793 * config/arm/arm.md (store_minmaxsi): Use only when
5794 optimize_insn_for_size_p.
5796 2013-04-29 Christian Bruel <christian.bruel@st.com>
5799 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
5801 2013-04-29 Richard Biener <rguenther@suse.de>
5804 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
5805 loop tree make sure to schedule a fixup for the child as well.
5806 (expand_omp_for_generic): Properly add loops.
5807 (expand_omp_for_static_nochunk): Likewise.
5808 (expand_omp_for_static_chunk): Likewise.
5809 (expand_omp_for): For the degenerate case fixup loops.
5810 (expand_omp_sections): Fix default bb placement in loops.
5811 (expand_omp_atomic_pipeline): Properly add loops.
5813 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5815 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
5817 2013-04-29 Tom de Vries <tom@codesourcery.com>
5819 * tree-ssa-tail-merge.c: Update header comment.
5821 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5823 * config/aarch64/arm_neon.h
5824 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
5825 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
5826 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
5827 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
5828 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
5829 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
5830 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
5831 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
5833 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5835 * config/aarch64/aarch64-simd.md
5836 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
5837 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
5838 fix_trunc, fixuns_trunc.
5839 (ftrunc<VDQF:mode>2): New.
5840 * config/aarch64/iterators.md (optab): Add fix, fixuns.
5841 (fix_trunc_optab): New.
5843 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5845 * config/aarch64/aarch64-builtins.c
5846 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
5847 iceilf, lround, iroundf.
5849 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
5852 * config/i386/i386.h (enum ix86_tune_indices)
5853 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
5854 New, split from X86_TUNE_INTER_UNIT_MOVES.
5855 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
5856 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
5857 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
5858 (TARGET_INTER_UNIT_MOVES): Remove.
5859 * config/i386/i386.c (initial_ix86_tune_features): Update.
5860 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
5861 (ix86_expand_convert_uns_didf_sse): Use
5862 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
5863 (ix86_expand_vector_init_one_nonzero): Ditto.
5864 (ix86_expand_vector_init_interleave): Ditto.
5865 (inline_secondary_memory_needed): Return true for moves from SSE class
5866 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
5867 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
5868 * config/i386/constraints.md (Yi, Ym): Depend on
5869 TARGET_INTER_UNIT_MOVES_TO_VEC.
5870 (Yj, Yn): New constraints.
5871 * config/i386/i386.md (*movdi_internal): Change constraints of
5872 operand 1 from Yi to Yj and from Ym to Yn.
5873 (*movsi_internal): Ditto.
5874 (*movdf_internal): Ditto.
5875 (*movsf_internal): Ditto.
5876 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
5877 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
5878 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
5879 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
5880 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
5881 * config/i386/sse.md (movdi_to_sse): Ditto.
5882 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
5883 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
5884 TARGET_INTER_UNIT_MOVES.
5885 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
5886 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
5887 instead of TARGET_INTER_UNIT_MOVES.
5888 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
5889 operand 1 from Yi to Yj and from Ym to Yn.
5891 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5893 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
5894 (float_truncate_hi_): Likewise.
5895 (float_extend_lo_): Likewise.
5896 (float_truncate_lo_): Likewise.
5897 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
5898 (aarch64_float_extend_lo_v2df): Likewise.
5899 (vec_unpacks_hi_v4sf): Likewise.
5900 (aarch64_float_truncate_lo_v2sf): Likewise.
5901 (aarch64_float_truncate_hi_v4sf): Likewise.
5902 (vec_pack_trunc_v2df): Likewise.
5903 (vec_pack_trunc_df): Likewise.
5905 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5907 * config/aarch64/aarch64-builtins.c
5908 (aarch64_fold_builtin): Fold float conversions.
5909 * config/aarch64/aarch64-simd-builtins.def
5910 (floatv2si, floatv4si, floatv2di): New.
5911 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
5912 * config/aarch64/aarch64-simd.md
5913 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
5914 * config/aarch64/iterators.md (FLOATUORS): New.
5915 (optab): Add float, floatuns.
5916 (su_optab): Likewise.
5918 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5920 * config/aarch64/aarch64-builtins.c
5921 (aarch64_builtin_vectorized_function): Use new names for
5923 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
5924 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
5925 (fcvtzu): Split as...
5926 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
5927 (fcvtas): Split as...
5928 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
5929 (fcvtau): Split as...
5930 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
5931 (fcvtps): Split as...
5932 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
5933 (fcvtpu): Split as...
5934 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
5935 (fcvtms): Split as...
5936 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
5937 (fcvtmu): Split as...
5938 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
5939 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
5940 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
5941 (lfrintnusf, lfrintnudf): Likewise.
5942 * config/aarch64/aarch64-simd.md
5943 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
5945 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
5946 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
5947 (fcvt_pattern): Likewise.
5949 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5951 * config/aarch64/aarch64-simd.md
5952 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
5953 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
5955 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5957 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
5958 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
5959 (vrnd<a,m,n,p>_f32): Implement using builtins.
5960 (vrnd<i,x><q>_f<32, 64>): New.
5962 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5964 * config/aarch64/aarch64-builtins.c
5965 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
5966 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
5967 (frintz): Rename to...
5969 (frintp): Rename to...
5971 (frintm): Rename to...
5973 (frinti): Rename to...
5974 (nearbyint): ...this.
5975 (frintx): Rename to...
5977 (frinta): Rename to...
5979 * config/aarch64/aarch64-simd.md
5980 (aarch64_frint<frint_suffix><mode>): Delete.
5981 (<frint_pattern><mode>2): Convert to insn.
5982 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
5983 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
5984 (frint_pattern): Likewise.
5985 (frint_suffix): Likewise.
5987 2013-04-29 Richard Biener <rguenther@suse.de>
5989 PR tree-optimization/57081
5990 * loop-init.c: Include tree-flow.h.
5991 (loop_optimizer_finalize): Free number of iteration estimates.
5992 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
5994 2013-04-29 Jakub Jelinek <jakub@redhat.com>
5996 PR tree-optimization/57083
5997 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
5998 non-singleton shift count range, zero extend low_bound for uns case.
6000 * config/i386/predicates.md (general_vector_operand): New predicate.
6001 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
6002 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
6003 if they aren't nonimmediate operands. If their original values
6004 satisfy const_vector_equal_evenodd_p, don't shift them.
6005 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
6006 predicates. For the SSE4.1 case force operands[{1,2}] into registers
6007 if not nonimmediate_operand.
6008 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
6009 instead of register_operand.
6010 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
6012 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
6014 * stor-layout.c (finalize_size_functions): Allocate a structure and
6015 reset cfun before dumping the functions.
6017 2013-04-27 Jakub Jelinek <jakub@redhat.com>
6019 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
6022 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
6023 use xop_pmacsdqh if uns_p.
6024 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
6025 the immediate rotate count.
6027 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
6029 * rtl.h (struct rtx_def): Add comment for field jump.
6030 (LRA_SUBREG_P): New macro.
6031 * recog.c (register_operand): Check LRA_SUBREG_P.
6032 * lra.c (lra): Add note at the end of RTL code. Align non-empty
6034 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
6035 (lra_final_code_change): Skip subreg change for operators.
6036 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
6037 if there are no operand changes.
6038 * lra-constraints.c (curr_insn_set): New.
6039 (match_reload): Set LRA_SUBREG_P.
6040 (emit_spill_move): Ditto.
6041 (check_and_process_move): Use curr_insn_set. Process only single
6042 set insns. Don't initialize sec_mem_p and change_p.
6043 (simplify_operand_subreg): Use LRA_SUBREG_P.
6044 (reg_in_class_p): New function.
6045 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
6046 of #ifdef. Add code to remove cycling.
6047 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
6048 non-null disp. Reload inner instead of disp when base and index
6049 are null. Try to put lo_sum into register.
6050 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
6051 (check_and_process_move): Move code for move cost check to
6052 simple_move_p. Remove equiv_substitution.
6053 (simple_move_p): New function.
6054 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
6055 curr_insn_set. Call check_and_process_move only for single set
6056 insns. Use the new function. Move call of check_and_process_move
6057 after operand equiv substitution and address process.
6059 2013-04-26 Jakub Jelinek <jakub@redhat.com>
6062 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
6063 with nonlocal goto receivers or returns twice calls, ignore
6064 unininitialized values from abnormal edges to nl goto receiver
6065 or returns twice call.
6067 2013-04-26 Jakub Jelinek <jakub@redhat.com>
6069 PR tree-optimization/57051
6070 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
6071 and VEC_RSHIFT_EXPR if shift count is a multiple of element
6074 2013-04-26 Richard Biener <rguenther@suse.de>
6076 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
6077 (expand_omp_taskreg): Likewise. Mark loops for fixup.
6078 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
6079 (fixup_loop_arrays_after_move): New function.
6080 (move_sese_region_to_fn): Properly outline the loop tree parts
6083 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
6085 * config/i386/i386.md (type, unit): Fix long lines.
6087 2013-04-26 Richard Biener <rguenther@suse.de>
6089 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
6090 (lto-streamer-out.o): Likewise.
6091 * cfgloop.c (init_loops_structure): Export, add struct function
6092 argument and adjust.
6093 (flow_loops_find): Adjust.
6094 * cfgloop.h (enum loop_estimation): Add EST_LAST.
6095 (init_loops_structure): Declare.
6096 * lto-streamer-in.c: Include cfgloop.h.
6097 (input_cfg): Input the loop tree.
6098 * lto-streamer-out.c: Include cfgloop.h.
6099 (output_cfg): Output the loop tree.
6100 (output_struct_function_base): Do not drop PROP_loops.
6102 2013-03-26 Richard Biener <rguenther@suse.de>
6104 * tree-cfg.c (execute_build_cfg): Build the loop tree.
6105 (pass_build_cfg): Provide PROP_loops.
6106 (move_sese_region_to_fn): Remove loops that are outlined into fn
6108 * tree-inline.c: Include cfgloop.h.
6109 (initialize_cfun): Do not drop PROP_loops.
6110 (copy_loops): New function.
6111 (copy_cfg_body): Copy loop structure.
6112 (tree_function_versioning): Initialize destination loop tree.
6113 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
6114 (pass_parallelize_loops): Do IL verification.
6115 * loop-init.c (loop_optimizer_init): Fixup loops if required.
6116 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
6117 the CFG make sure we fixup loops as well.
6118 * tree-ssa-tail-merge.c: Include cfgloop.h.
6119 (replace_block_by): When merging loop latches mark loops for fixup.
6120 * lto-streamer-out.c (output_struct_function_base): Drop
6122 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
6123 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
6124 * ipa-split.c: Include cfgloop.h.
6125 (split_function): Add the new return block to the loop tree root.
6126 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
6127 whether we have removed the forwarder block.
6128 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
6129 * cfgloop.h (place_new_loop): Declare.
6130 * cfgloopmanip.c (place_new_loop): Export.
6131 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
6132 (tree-switch-conversion.o): Likewise.
6133 (tree-complex.o): Likewise.
6134 (tree-inline.o): Likewise.
6135 (tree-ssa-tailmerge.o): Likewise.
6136 (ipa-split.o): Likewise.
6137 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
6138 (tree-ssa-copy.o): Likewise.
6139 * tree-switch-conversion.c: Include cfgloop.h
6140 (process_switch): If we emit a bit-test cascade, schedule loops
6142 * tree-complex.c: Include cfgloop.h.
6143 (expand_complex_div_wide): Properly add new basic-blocks to loops.
6144 * asan.c: Include cfgloop.h.
6145 (create_cond_insert_point): Properly add new basic-blocks to
6146 loops, schedule loop fixup.
6147 * cfgloop.c (verify_loop_structure): Check that looks are not
6149 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
6151 (expand_omp_for_generic): Likewise.
6152 (expand_omp_sections): Likewise.
6153 (expand_omp_atomic_pipeline): Schedule loops for fixup.
6154 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
6155 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
6156 is initialized, not when loops are present.
6157 * tree-parloops.c (parallelize_loops): Remove checking here.
6158 * passes.c (init_optimization_passes): Schedule a copy-propagation
6159 pass before complete unrolling of inner loops.
6161 2013-04-26 Jakub Jelinek <jakub@redhat.com>
6163 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
6164 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
6165 (colorize_init): Add argument to _WIN32 version.
6166 * toplev.c: Include diagnostic-color.h.
6167 (process_options): Default to -fdiagnostics-color=auto if
6168 GCC_COLORS env var is in the environment.
6169 * common.opt (fdiagnostics-color=): Add Var and Init.
6170 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
6171 env var is in the environment, the default is auto rather than never.
6173 * diagnostic.h (file_name_as_prefix): Add context argument.
6174 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
6175 the string as locus.
6176 * langhooks.c (lhd_print_error_function): Adjust caller.
6178 2013-04-25 Lawrence Crowl <crowl@google.com>
6180 * var-tracking.c (shared_hash_def::htab):
6181 Change type to hash_table. Update dependent calls and types.
6183 2013-04-25 Lawrence Crowl <crowl@google.com>
6185 * Makefile.in: Update as needed below.
6187 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
6188 Move declaration to after the type's method definitons.
6190 * attribs.c (htab_t scoped_attributes::attribute_hash):
6191 Change type to hash_table. Update dependent calls and types.
6193 * bitmap.c (htab_t bitmap_desc_hash):
6194 Change type to hash_table. Update dependent calls and types.
6196 * cselib.c (htab_t cselib_hash_table):
6197 Change type to hash_table. Update dependent calls and types.
6199 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
6200 (hash_string_slot_node): Move implementation into lto-streamer.h
6201 struct string_slot_hasher.
6202 (eq_string_slot_node): Likewise.
6204 * data-streamer-out.c: Update output_block::string_hash_table
6205 dependent calls and types.
6207 * dwarf2cfi.c (htab_t trace_index):
6208 Change type to hash_table. Update dependent calls and types.
6210 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
6211 Change type to hash_table. Update dependent calls and types.
6212 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
6213 (htab_t optimize_external_refs::map): Likewise.
6214 (htab_t output_comp_unit::extern_map): Likewise.
6215 (htab_t output_comdat_type_unit::extern_map): Likewise.
6216 (htab_t output_macinfo::macinfo_htab): Likewise.
6217 (htab_t optimize_location_lists::htab): Likewise.
6218 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
6220 * except.c (htab_t ehspec_hash_type):
6221 Change type to hash_table. Update dependent calls and types.
6222 (assign_filter_values::ttypes): Likewise.
6223 (assign_filter_values::ehspec): Likewise.
6224 (sjlj_assign_call_site_values::ar_hash): Likewise.
6225 (convert_to_eh_region_ranges::ar_hash): Likewise.
6227 * gcse.c (htab_t pre_ldst_table):
6228 Change type to hash_table. Update dependent calls and types.
6230 * ggc-common.c (htab_t saving_htab):
6231 Change type to hash_table. Update dependent calls and types.
6232 (htab_t loc_hash): Likewise.
6233 (htab_t ptr_hash): Likewise.
6234 (call_count): Rename ggc_call_count.
6235 (call_alloc): Rename ggc_call_alloc.
6236 (loc_descriptor): Rename make_loc_descriptor.
6237 (add_statistics): Rename ggc_add_statistics.
6239 * ggc-common.c (saving_htab):
6240 Change type to hash_table. Update dependent calls and types.
6242 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
6243 (push_gimplify_context): Likewise.
6244 (pop_gimplify_context): Likewise.
6245 (struct gimple_temp_hash_elt): Added.
6246 (struct gimplify_hasher): Likewise.
6247 (struct gimplify_ctx.temp_htab):
6248 Change type to hash_table. Update dependent calls and types.
6250 * gimple-fold.c: Include gimplify-ctx.h.
6252 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
6253 Change type to hash_table. Update dependent calls and types.
6254 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
6255 avoid potential global name collision.
6257 * gimplify.c: Include gimplify-ctx.h.
6258 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
6259 (htab_t gimplify_ctx::temp_htab):
6260 Update dependent calls and types for new type hash_table.
6261 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
6262 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
6264 * gimplify-ctx.h: New.
6265 (struct gimple_temp_hash_elt): Move from gimplify.c.
6266 (class gimplify_hasher): New.
6267 (struct gimplify_ctx): Move from gimple.h.
6268 (htab_t gimplify_ctx::temp_htab):
6269 Change type to hash_table. Update dependent calls and types.
6271 * graphite-clast-to-gimple.c: Include graphite-htab.h.
6272 (htab_t ivs_params::newivs_index):
6273 Change type to hash_table. Update dependent calls and types.
6274 (htab_t ivs_params::params_index): Likewise.
6275 (htab_t print_generated_program::params_index): Likewise.
6276 (htab_t gloog::newivs_index): Likewise.
6277 (htab_t gloog::params_index): Likewise.
6279 * graphite.c: Include graphite-htab.h.
6280 4htab_t graphite_transform_loops::bb_pbb_mapping):
6281 Change type to hash_table. Update dependent calls and types.
6283 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
6284 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
6285 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
6287 * graphite-dependences.c: Include graphite-htab.h.
6288 (loop_is_parallel_p): Change hash table type of parameter.
6290 * graphite-htab.h: New.
6291 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
6292 (extern find_pbb_via_hash): Move from graphite-poly.h.
6293 (extern loop_is_parallel_p): Move from graphite-poly.h.
6294 (extern get_loop_body_pbbs): Move from graphite-poly.h.
6296 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
6297 (extern loop_is_parallel_p): Move to graphite-htab.h.
6298 (extern get_loop_body_pbbs): Move to graphite-htab.h.
6300 * haifa-sched.c (htab_t delay_htab):
6301 Change type to hash_table. Update dependent calls and types.
6302 (htab_t delay_htab_i2): Likewise.
6304 * ira-color.c (htab_t allocno_hard_regs_htab):
6305 Change type to hash_table. Update dependent calls and types.
6307 * ira-costs.c (htab_t cost_classes_htab):
6308 Change type to hash_table. Update dependent calls and types.
6310 * loop-invariant.c (htab_t merge_identical_invariants::eq):
6311 Change type to hash_table. Update dependent calls and types.
6313 * loop-iv.c (htab_t bivs):
6314 Change type to hash_table. Update dependent calls and types.
6316 * loop-unroll.c (htab_t opt_info::insns_to_split):
6317 Change type to hash_table. Update dependent calls and types.
6318 (htab_t opt_info::insns_with_var_to_expand): Likewise.
6320 * lto-streamer.h (struct string_slot): Move from data-streamer.h
6321 (struct string_slot_hasher): New.
6322 (htab_t output_block::string_hash_table):
6323 Change type to hash_table. Update dependent calls and types.
6325 * lto-streamer-in.c (freeing_string_slot_hasher): New.
6326 (htab_t file_name_hash_table):
6327 Change type to hash_table. Update dependent calls and types.
6329 * lto-streamer-out.c: Update output_block::string_hash_table dependent
6332 * lto-streamer.c (htab_t tree_htab):
6333 Change type to hash_table. Update dependent calls and types.
6335 * omp-low.c: Include gimplify-ctx.h.
6337 * passes.c (htab_t name_to_pass_map):
6338 Change type to hash_table. Update dependent calls and types.
6339 (pass_traverse): Rename to passes_pass_traverse.
6341 * plugin.c (htab_t event_tab):
6342 Change type to hash_table. Update dependent calls and types.
6344 * postreload-gcse.c (htab_t expr_table):
6345 Change type to hash_table. Update dependent calls and types.
6346 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
6348 * sese.c (debug_rename_map_1): Make extern.
6349 (htab_t copy_bb_and_scalar_dependences::rename_map):
6350 Change type to hash_table. Update dependent calls and types.
6352 * sese.h (extern debug_rename_map): Move to .c file.
6354 * store-motion.c (htab_t store_motion_mems_table):
6355 Change type to hash_table. Update dependent calls and types.
6357 * trans-mem.c (htab_t tm_new_mem_hash):
6358 Change type to hash_table. Update dependent calls and types.
6360 * tree-browser.c (htab_t TB_up_ht):
6361 Change type to hash_table. Update dependent calls and types.
6363 * tree-cfg.c (htab_t discriminator_per_locus):
6364 Change type to hash_table. Update dependent calls and types.
6366 * tree-complex.c: Include tree-hasher.h
6367 (htab_t complex_variable_components):
6368 Change type to hash_table. Update dependent calls and types.
6370 * tree-eh.c (htab_t finally_tree):
6371 Change type to hash_table. Update dependent calls and types.
6373 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
6374 struct int_tree_hasher.
6375 (extern int_tree_map_eq): Likewise.
6376 (uid_decl_map_hash): Removed.
6377 (extern decl_tree_map_eq): Likewise.
6379 * tree-hasher.h: New.
6380 (struct int_tree_hasher): New.
6381 (typedef int_tree_htab_type): New.
6383 * tree-inline.c: Include gimplify-ctx.h.
6385 * tree-mudflap.c: Include gimplify-ctx.h.
6387 * tree-parloops.c: Include tree-hasher.h.
6388 (htab_t eliminate_local_variables_stmt::decl_address):
6389 Change type to hash_table. Update dependent calls and types.
6390 (htab_t separate_decls_in_region::decl_copies): Likewise.
6392 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
6393 Change type to hash_table. Update dependent calls and types.
6395 * tree-sra.c (candidates):
6396 Change type to hash_table. Update dependent calls and types.
6398 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
6400 (int_tree_map_hash): Likewise.
6402 * tree-ssa-dom.c (htab_t avail_exprs):
6403 Change type to hash_table. Update dependent calls and types.
6405 * tree-ssa-live.c (var_map_base_init::tree_to_index):
6406 Change type to hash_table. Update dependent calls and types.
6408 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
6409 Change type to hash_table. Update dependent calls and types.
6411 * tree-ssa-phiopt.c (seen_ssa_names):
6412 Change type to hash_table. Update dependent calls and types.
6414 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
6415 Change type to hash_table. Update dependent calls and types.
6417 * tree-ssa-uncprop.c (equiv):
6418 Change type to hash_table. Update dependent calls and types.
6420 2013-04-25 Jakub Jelinek <jakub@redhat.com>
6422 PR rtl-optimization/57003
6423 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
6424 call note_stores with kill_clobbered_value callback again after
6425 killing regs_invalidated_by_call.
6427 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
6429 * config/aarch64/aarch64-simd.md
6430 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
6431 (aarch64_simd_bsl<mode>): Likewise.
6432 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
6434 2013-04-25 Marek Polacek <polacek@redhat.com>
6436 PR tree-optimization/57066
6437 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
6439 2013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
6441 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
6443 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
6445 * config/aarch64/aarch64-builtins.c
6446 (aarch64_fold_builtin): New.
6447 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
6448 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
6449 * config/aarch64/aarch64-simd-builtins.def (abs): New.
6450 * config/aarch64/arm_neon.h
6451 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
6453 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
6454 Tejas Belagod <tejas.belagod@arm.com>
6456 * config/aarch64/aarch64-builtins.c
6457 (aarch64_gimple_fold_builtin): New.
6458 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
6459 * config/aarch64/aarch64-simd-builtins.def (addv): New.
6460 * config/aarch64/aarch64-simd.md (addpv4sf): New.
6462 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
6464 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6466 * config/aarch64/aarch64.md
6467 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
6469 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6471 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
6472 (*ngcsi_uxtw): New pattern.
6474 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6475 Julian Brown <julian@codesourcery.com>
6477 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
6478 (TB_DREG): Add T_V4HF.
6479 (v4hf_UP): New macro.
6480 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
6481 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
6482 Handle initialisation of V4HF. Adjust initialisation of reinterpret
6484 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
6485 (arm_vector_mode_supported_p): Handle V4HF.
6486 (arm_mangle_map): Handle V4HFmode.
6487 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
6488 * config/arm/arm_neon_builtins.def: Add entries for
6489 vcvtv4hfv4sf, vcvtv4sfv4hf.
6490 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
6491 (neon_vcvtv4hfv4sf): Likewise.
6492 * config/arm/neon-gen.ml: Handle half-precision floating point
6494 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
6495 * config/arm/arm_neon.h: Regenerate.
6496 * config/arm/neon.ml (type elts): Add F16.
6497 (type vectype): Add T_float16x4, T_floatHF.
6498 (type vecmode): Add V4HF.
6499 (type features): Add Requires_FP_bit feature.
6500 (elt_width): Handle F16.
6501 (elt_class): Likewise.
6502 (elt_of_class_width): Likewise.
6503 (mode_of_elt): Refactor.
6504 (type_for_elt): Handle F16, fix error messages.
6505 (vectype_size): Handle T_float16x4.
6506 (vcvt_sh): New function.
6507 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
6508 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
6509 (string_of_mode): Handle V4HF.
6510 * doc/arm-neon-intrinsics.texi: Regenerate.
6512 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
6514 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
6515 format specifier in 'X' case.
6517 2013-04-25 Alan Modra <amodra@gmail.com>
6520 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
6521 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
6522 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
6523 Repeat for many other rotate/shift and mask patterns using subregs.
6524 Name lshiftrt insns.
6525 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
6526 on WORDS_BIG_ENDIAN.
6528 2013-04-25 Alan Modra <amodra@gmail.com>
6530 * config.gcc: Support little-endian powerpc-linux targets.
6531 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
6532 (LINK_OS_LINUX_SPEC): Define.
6533 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
6534 Preserve MASK_LITTLE_ENDIAN.
6535 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
6536 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
6537 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
6538 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
6539 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
6540 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
6541 Correct fp word order for little-endian. Don't shift toc entries
6542 smaller than a word for little-endian.
6543 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
6544 (bswapdi2 splits): Correct low-part subreg for little-endian.
6545 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
6546 low/high where such is correct only for be.
6547 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
6548 little-endian for -mcall-aixdesc.
6550 2013-04-25 Alan Modra <amodra@gmail.com>
6552 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
6553 replace_equiv_address_nv.
6555 2013-04-25 Alan Modra <amodra@gmail.com>
6557 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
6559 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
6562 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
6563 * rtl.h (struct rtx_def): ...
6565 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
6567 PR rtl-optimizations/57046
6568 * lra-constraints (split_reg): Set up lra_risky_transformations_p
6569 for multi-reg splits.
6571 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
6573 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
6575 2013-04-24 Sterling Augustine <saugustine@google.com>
6577 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
6578 (comp_dir_string, debug_str_dwo_section): New.
6579 (DEBUG_STR_DWO_SECTION): Rename to ...
6580 (DEBUG_DWO_STR_SECTION): ... this.
6581 (DEBUG_NORM_STR_SECTION): Delete.
6582 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
6583 (DEBUG_STR_DWO_SECTION_FLAGS): New.
6584 (find_AT_string): Move most logic to ...
6585 (find_AT_string_in_table): ... here. New.
6586 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
6587 add_skeleton_AT_string. Delete logic.
6588 (output_skeleton_debug_sections): Remove call to
6589 add_top_level_skeleton_die_attrs.
6590 (add_comp_dir_attribute): Move logic to comp_dir_string.
6591 (dwarf2out_init): Initialize debug_str_dwo_section.
6592 (output_indirect_string): Call find_string_form.
6593 (output_indirect_strings): Rewrite.
6594 (prune_unused_types): Empty skeleton_debug_str_hash.
6595 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
6596 (dwarf2out_finish): Call output_indirect_strings.
6598 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6600 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
6602 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
6604 * rtl.h (struct rtx_def): Add comment for field jump.
6605 (LRA_SUBREG_P): New macro.
6606 * recog.c (register_operand): Check LRA_SUBREG_P.
6607 * lra.c (lra): Add note at the end of RTL code. Align non-empty
6609 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
6610 (lra_final_code_change): Skip subreg change for operators.
6611 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
6612 if there are no operand changes.
6613 * lra-constraints.c (curr_insn_set): New.
6614 (match_reload): Set LRA_SUBREG_P.
6615 (emit_spill_move): Ditto.
6616 (check_and_process_move): Use curr_insn_set. Process only single
6617 set insns. Don't initialize sec_mem_p and change_p.
6618 (simplify_operand_subreg): Use LRA_SUBREG_P.
6619 (reg_in_class_p): New function.
6620 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
6621 of #ifdef. Add code to remove cycling.
6622 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
6623 non-null disp. Reload inner instead of disp when base and index
6624 are null. Try to put lo_sum into register.
6625 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
6626 (check_and_process_move): Move code for move cost check to
6627 simple_move_p. Remove equiv_substitution.
6628 (simple_move_p): New function.
6629 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
6630 curr_insn_set. Call check_and_process_move only for single set
6631 insns. Use the new function. Move call of check_and_process_move
6632 after operand equiv substitution and address process.
6634 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
6636 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
6637 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
6638 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
6640 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6642 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
6644 2013-04-24 Marek Polacek <polacek@redhat.com>
6646 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
6647 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
6648 (select_loops_exit_conditions): Likewise.
6649 (number_of_iterations_for_all_loops): Likewise.
6650 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
6651 (scev_analysis): Likewise.
6653 2013-04-02 Catherine Moore <clm@codesourcery.com>
6654 Chao-ying Fu <fu@mips.com>
6656 * config/mips/micromips.md (jraddiusp): New pattern.
6657 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
6658 instruction if possible.
6660 2013-04-24 Alan Modra <amodra@gmail.com>
6662 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
6664 2013-04-24 Julian Brown <julian@codesourcery.com>
6665 Chung-Lin Tang <cltang@codesourcery.com>
6667 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
6668 dependency behavior in enumeration type DIE generation. Add TODO note
6669 to comments about future DW_FORM_sdata/udata re-work of related code.
6671 2013-04-23 Lawrence Crowl <crowl@google.com>
6673 * Makefile.in: Update as needed below.
6675 * hash-table.h (class hash_table):
6676 Correct many methods with parameter types compare_type to the correct
6677 value_type. (Correct code was unlikely to notice the change.)
6678 (hash_table::elements_with_deleted) New.
6679 (class hashtable::iterator): New.
6680 (hashtable::begin()): New.
6681 (hashtable::end()): New.
6682 (FOR_EACH_HASH_TABLE_ELEMENT): New.
6684 * statistics.c (statistics_hashes):
6685 Change type to hash_table. Update dependent calls and types.
6687 * tree-into-ssa.c (var_infos):
6688 Change type to hash_table. Update dependent calls and types.
6690 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
6691 Change type to hash_table. Update dependent calls and types.
6693 * tree-ssa-loop-im.c (struct mem_ref.refs):
6694 Change type to hash_table. Update dependent calls and types.
6696 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
6697 Change type to hash_table. Update dependent calls and types.
6699 * tree-ssa-sccvn.c (vn_tables_s::nary):
6700 Change type to hash_table. Update dependent calls and types.
6701 (vn_tables_s::phis): Likewise.
6702 (vn_tables_s::references): Likewise.
6704 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
6705 (vn_reference_eq): Update parameter and return types.
6707 * tree-ssa-structalias.c (pointer_equiv_class_table):
6708 Change type to hash_table. Update dependent calls and types.
6709 (location_equiv_class_table): Likewise.
6711 * tree-vect-data-refs.c: Consequential changes for making
6712 peeling a hash_table.
6714 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
6715 (destroy_loop_vec_info): Dependent hash_table update.
6717 * tree-vectorizer.h (peeling_htab):
6718 Change type to hash_table. Update dependent calls and types.
6720 2013-04-23 Shiva Chen <shiva0217@gmail.com>
6722 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
6723 to check the register content is equal or not.
6724 * lra-constraints.c (match_reload): Use lra_assign_reg_val
6725 to assign register content record.
6726 * lra-eliminations.c (update_reg_eliminate): Use
6727 lra_update_reg_val_offset to update register content offset.
6728 * lra-int.h (struct lra_reg): Add offset member.
6729 (lra_reg_val_equal_p): New static inline function.
6730 (lra_update_reg_val_offset): New static inline function.
6731 (lra_assign_reg_val): New static inline function.
6732 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
6733 to assign register content record.
6734 (initialize_lra_reg_info_element): Initial offset to zero.
6736 2013-04-23 Catherine Moore <clm@codesourcery.com>
6738 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
6739 operands. Record compression.
6741 2013-04-23 Xinliang David Li <davidxl@google.com>
6743 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
6745 2013-04-23 Richard Biener <rguenther@suse.de>
6748 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
6749 parameter, only add abnormal goto edges from the copied body
6750 if the call could perform abnormal gotos.
6751 (copy_cfg_body): Adjust.
6753 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
6755 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
6757 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
6759 * coretypes.h (gimple_stmt_iterator): Add struct to make
6762 2013-04-23 Richard Biener <rguenther@suse.de>
6764 PR tree-optimization/57026
6765 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
6766 from SSA names occuring in abnormal PHI nodes.
6768 2013-04-22 Andi Kleen <ak@linux.intel.com>
6770 * lto/lto.c (print_lto_report_1): Fix LTO report names.
6772 2013-04-22 Andi Kleen <ak@linux.intel.com>
6774 * lto/lto.c (print_lto_report_1): Declare early.
6775 (read_cgraph_and_symbols): Call print_lto_report_1 early.
6777 2013-04-22 Andi Kleen <ak@linux.intel.com>
6779 * common.opt (-flto-report-wpa): Add.
6780 * doc/invoke.texi (-flto-report-wpa): Add.
6781 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
6784 2013-04-22 Xinliang David Li <davidxl@google.com>
6786 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
6787 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
6788 * Makefile.in: New dependency
6790 David Daney <ddaney.cavm@gmail.com>
6792 * configure.ac (gcc_cv_as_micromips_support): Use the
6793 --fatal-warnings option.
6794 * configure: Regenerate.
6796 2013-04-22 Marek Polacek <polacek@redhat.com>
6799 * tsan.c (instrument_expr): Don't instrument expression
6800 in case its size is zero.
6802 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
6806 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
6808 * config/alpha/alpha.c (TARGET_LRA_P): New define.
6810 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
6812 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
6813 (gimple_stmt_iterator): New typedef.
6814 * gimple.h (gimple_stmt_iterator): Rename to...
6815 (gimple_stmt_iterator_d): ... This.
6816 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
6817 trees be valid for GIMPLE and GENERIC.
6818 (TARGET_GIMPLE_FOLD_BUILTIN): New.
6819 * gimple-fold.c (gimple_fold_call): Call target hook
6820 gimple_fold_builtin.
6821 * hooks.c (hook_bool_gsiptr_false): New.
6822 * hooks.h (hook_bool_gsiptr_false): New.
6823 * target.def (fold_stmt): New.
6824 * doc/tm.texi: Regenerate.
6826 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
6829 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
6830 a set sp if no stack realignment.
6832 2013-04-22 Nick Clifton <nickc@redhat.com>
6834 * config.gcc (tilegx-linux): Extend extra_objs rather than
6836 (tilepro-linux): Likewise.
6838 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
6840 * config/aarch64/aarch64-builtins.c
6842 (CF0, CF1, CF2, CF3, CF4, CF10): New.
6843 (VAR<1-12>): Add MAP parameter.
6844 (BUILTIN_*): Likewise.
6845 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
6846 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
6847 (aarch64_ushl_n<mode>): Likewise.
6848 (aarch64_sshr_n<mode>): Likewise.
6849 (aarch64_ushr_n<mode>): Likewise.
6850 (aarch64_<maxmin><mode>): Likewise.
6851 (aarch64_sqrt<mode>): Likewise.
6852 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
6853 (vshr<q>_n_*): Likewise.
6855 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
6857 * config/aarch64/aarch64-builtins.c
6858 (aarch64_simd_builtin_type_mode): Handle SF types.
6860 (BUILTIN_GPF): Define.
6861 (aarch64_init_simd_builtins): Handle SF types.
6862 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
6865 * config/aarch64/aarch64-simd.md
6866 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
6867 (aarch64_frecpe<mode>): New.
6868 (aarch64_frecps<mode>): Likewise.
6869 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
6870 (v8type): Add frecp<esx>.
6871 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
6872 (aarch64_frecps<mode>): Likewise.
6873 * config/aarch64/iterators.md (FRECP): New.
6874 (frecp_suffix): Likewise.
6875 * config/aarch64/arm_neon.h
6876 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
6878 2013-04-22 Christian Bruel <christian.bruel@st.com>
6881 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
6882 (REG_CLASS_NAMES): Idem.
6883 (REG_CLASS_CONTENTS): Idem.
6884 (REGCLASS_HAS_FP_REG): Idem.
6885 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
6886 (sh_conditional_register_usage): Idem.
6888 2013-04-21 Jeff Law <law@redhat.com>
6890 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
6891 (ssa_forward_propagate_and_combine): Use it.
6893 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
6895 * lra.c: Update the flow chart diagram.
6897 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
6899 PR rtl-optimization/56847
6900 * lra-constraints.c (process_alt_operands): Discourage alternative
6901 with non-matche doffsettable memory constraint fro memory with
6904 2013-04-19 Richard Biener <rguenther@suse.de>
6906 PR tree-optimization/56982
6907 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
6909 * gimplify.c (gimplify_call_expr): Notice special calls.
6910 (gimplify_modify_expr): Likewise.
6911 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
6912 abnormal control flow receivers.
6913 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
6914 in the same way as cfun->has_nonlocal_labels.
6915 (gimple_purge_dead_abnormal_call_edges): Likewise.
6916 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
6917 receivers start a basic-block.
6919 2013-04-19 Richard Biener <rguenther@suse.de>
6921 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
6923 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
6924 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
6925 (SLP_TREE_LOAD_PERMUTATION): Add.
6926 (vect_transform_slp_perm_load): Adjust prototype.
6927 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
6928 (vect_free_slp_instance): Likewise.
6929 (vect_create_new_slp_node): Likewise.
6930 (vect_supported_slp_permutation_p): Remove.
6931 (vect_slp_rearrange_stmts): Adjust.
6932 (vect_supported_load_permutation_p): Likewise. Inline
6933 vect_supported_slp_permutation_p here.
6934 (vect_analyze_slp_instance): Compute load permutations per
6935 slp node instead of per instance.
6936 (vect_get_slp_defs): Adjust.
6937 (vect_transform_slp_perm_load): Likewise.
6938 (vect_schedule_slp_instance): Remove redundant code.
6939 (vect_schedule_slp): Remove hack for PR56270, add it ...
6940 * tree-vect-stmts.c (vectorizable_load): ... here, do not
6941 CSE loads for SLP. Adjust.
6943 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
6945 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
6946 spelling in two comments.
6948 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
6951 * config/arm/arm.c (load_multiple_sequence): Require SP
6952 as base register for loads if SP is in the register list.
6954 2013-04-19 Martin Jambor <mjambor@suse.cz>
6956 PR tree-optimization/56718
6957 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
6958 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
6959 and made public. Adjusted all callers.
6960 (ipa_intraprocedural_devirtualization): New function.
6961 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
6962 (ipa_intraprocedural_devirtualization): Likewise.
6963 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
6965 2013-04-19 Richard Biener <rguenther@suse.de>
6967 PR tree-optimization/57000
6968 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
6970 2013-04-19 Terry Guo <terry.guo@arm.com>
6972 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
6974 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
6975 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
6976 (cortex_m4_fmacs): Use new reservations.
6977 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
6979 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
6981 PR rtl-optimization/56999
6982 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
6984 (lra_coalesce): Remove split_origin_bitmap and related code.
6985 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
6986 ranges if necessary.
6988 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
6990 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
6992 (ix86_expand_call): Remove clobbered_registers array and use
6993 x86_64_ms_sysv_extra_clobbered_registers instead.
6994 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
6996 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
6998 * config/i386/i386.md (*call_rex64_ms_sysv): Use
6999 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
7000 (*call_value_rex64_ms_sysv): Ditto.
7002 2013-04-18 Cary Coutant <ccoutant@google.com>
7004 * dwarf2out.c (output_pubnames): Check die_perennial_p of
7005 parent instead of die_mark.
7007 2013-04-18 Diego Novillo <dnovillo@google.com>
7009 * gimple.c (create_gimple_tmp): New.
7010 (get_expr_type): New.
7011 (build_assign): New.
7012 (build_type_cast): New.
7013 * gimple.h (enum ssa_mode): Define.
7014 (gimple_seq_set_location): New.
7015 * asan.c (build_check_stmt): Change some gimple_build_* calls
7016 to use build_assign and build_type_cast.
7018 2013-04-18 Richard Biener <rguenther@suse.de>
7020 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
7021 handle negative step. Remove redundant checks.
7022 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
7023 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
7024 for negative step and grouped loads fail to vectorize.
7026 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
7028 * emit-rtl.c (reset_insn_used_flags): New function.
7029 (reset_all_used_flags): Use it.
7030 (verify_insn_sharing): New function.
7031 (verify_rtl_sharing): Fix verification for SEQUENCEs.
7033 2013-04-18 Jakub Jelinek <jakub@redhat.com>
7035 PR tree-optimization/56984
7036 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
7037 and (x >> M) >= N don't register any assertion if N << M is the
7040 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
7042 * lower-subreg.c (resolve_simple_move): If called self-recursive,
7043 do not delete_insn insns that have not yet been emitted, only
7044 unlink them with remove_insn.
7045 * df-scan.c (df_insn_delete): Revert r197492.
7047 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
7049 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
7050 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
7052 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
7054 * config/arm/arm.md (movsicc_insn): Convert define_insn into
7055 define_insn_and_split.
7056 (and_scc,ior_scc,negscc): Likewise.
7057 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
7059 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
7061 * config/arm/arm.c (use_return_insn): Return 0 for targets that
7062 can benefit from using a sequence of LDRD instructions in epilogue
7063 instead of a single LDM instruction.
7065 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
7068 * doc/extend.texi: Fix typo.
7070 2013-04-17 Richard Biener <rguenther@suse.de>
7072 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
7073 (vect_build_slp_tree): ... here.
7074 (vect_build_slp_tree_1): Compute which stmts of the SLP group
7075 match. Remove special-casing of mismatched complex loads.
7076 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
7077 re-try the match with swapped commutative operands.
7078 (vect_supported_load_permutation_p): Remove special-casing of
7079 mismatched complex loads.
7080 (vect_analyze_slp_instance): Adjust.
7082 2013-04-17 Richard Biener <rguenther@suse.de>
7084 PR rtl-optimization/56921
7085 * cfgloop.h (struct loop): Add simple_loop_desc member.
7086 (struct niter_desc): Mark with GTY(()).
7087 (simple_loop_desc): Do not use aux field but simple_loop_desc.
7088 * loop-iv.c (get_simple_loop_desc): Likewise.
7089 (free_simple_loop_desc): Likewise.
7092 2013-04-16 Richard Biener <rguenther@suse.de>
7094 PR rtl-optimization/56921
7095 * loop-init.c (pass_rtl_move_loop_invariants): Add
7096 TODO_do_not_ggc_collect to todo_flags_finish.
7097 (pass_rtl_unswitch): Same.
7098 (pass_rtl_unroll_and_peel_loops): Same.
7099 (pass_rtl_doloop): Same.
7101 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
7103 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
7104 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
7105 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
7107 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
7108 * tree-streamer.c (record_common_node): Adjust reference in comment.
7110 2013-04-17 Terry Guo <terry.guo@arm.com>
7112 * config/arm/cortex-m4.md: Add a new bypass.
7114 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7116 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
7118 (*subs_<optab><mode>_multp2): New pattern.
7119 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
7120 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
7122 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7124 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
7125 (*subs_mul_imm_<mode>): New pattern.
7127 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
7130 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
7131 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
7132 (vsx_movti_32bit): Change j->wa to O->wa.
7134 2013-04-16 Richard Biener <rguenther@suse.de>
7136 PR rtl-optimization/56921
7137 * loop-init.c (pass_rtl_move_loop_invariants): Add
7138 TODO_do_not_ggc_collect to todo_flags_finish.
7139 (pass_rtl_unswitch): Same.
7140 (pass_rtl_unroll_and_peel_loops): Same.
7141 (pass_rtl_doloop): Same.
7143 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
7145 * config/arm/arm.c (emit_multi_reg_push): New declaration
7146 for an existing function.
7147 (arm_emit_strd_push): New function.
7148 (arm_expand_prologue): Used here.
7149 (arm_emit_ldrd_pop): New function.
7150 (arm_expand_epilogue): Used here.
7151 (arm_get_frame_offsets): Update condition.
7152 (arm_emit_multi_reg_pop): Add a special case for load of a single
7153 register with writeback.
7155 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
7157 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
7160 2013-04-16 Richard Biener <rguenther@suse.de>
7162 PR tree-optimization/56756
7163 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
7164 (first_mem_ref_loc): New.
7165 (execute_sm): Place the load temporarily before a previous
7166 access instead of in the latch edge to ensure its SSA dependencies
7167 are defined at points dominating the load.
7169 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
7171 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
7172 correct fix by moving header and footer insn to the footer of
7173 the merged basic block. Clear BB_END of the merged-away block.
7176 * emit-rtl.c (make_note_raw): New function.
7177 (link_insn_into_chain): New static inline function.
7179 (add_insn_before, add_insn_after): Factor insn chain linking code...
7180 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
7181 using link_insn_into_chain.
7182 (note_outside_basic_block_p): New helper function for emit_note_after
7183 and emit_note_before.
7184 (emit_note_after): Use nobb variant of add_insn_after if the note
7185 should not be contained in a basic block.
7186 (emit_note_before): Use nobb variant of add_insn_before if the note
7187 should not be contained in a basic block.
7188 (emit_note_copy): Use make_note_raw.
7189 (emit_note): Likewise.
7190 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
7191 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
7192 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
7193 the moved barrier the tail of the basic block it follows.
7194 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
7196 2013-04-15 Jakub Jelinek <jakub@redhat.com>
7198 PR tree-optimization/56962
7199 * gimple-ssa-strength-reduction.c (record_increment): Only set
7200 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
7201 either rhs1 or rhs2 is equal to c->base_expr.
7203 2013-04-15 Richard Biener <rguenther@suse.de>
7205 PR tree-optimization/56933
7206 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
7208 (GROUP_READ_WRITE_DEPENDENCE): Remove.
7209 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
7210 * tree-vect-data-refs.c (vect_analyze_group_access): Move
7211 dependence check ...
7212 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
7214 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
7215 GROUP_READ_WRITE_DEPENDENCE.
7217 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7219 * emit-rtl.c (reset_all_used_flags): New function.
7220 (verify_rtl_sharing): Call reset_all_used_flags before and after
7221 performing the checks.
7223 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7225 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
7226 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
7227 * config/arm/constraints.md (De): New constraint.
7228 * config/arm/neon.md (anddi3_neon): Delete.
7229 (neon_vand<mode>): Expand to standard anddi3 pattern.
7230 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
7231 Move earlier in the file.
7232 (neon_inv_logic_op2): Likewise.
7233 (arm_anddi_operand_neon): New predicate.
7235 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7237 * configure.ac (gcc_cv_ld_as_needed): Set
7238 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
7239 Use -z ignore, -z record on *-*-solaris2*.
7240 (HAVE_LD_AS_NEEDED): Update comment.
7241 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
7242 * configure: Regenerate.
7243 * config.in: Regenerate.
7244 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
7245 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
7246 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
7247 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
7248 equivalents. Fix markup.
7249 * doc/tm.texi: Regenerate.
7251 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
7253 * config/i386/i386.opt: New option mstack-protector-guard=.
7254 * config/i386/i386-opts.h: Add enum stack_protector_guard.
7255 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
7256 TARGET_SSP_TLS_GUARD.
7257 * config/i386/i386.c (ix86_option_override_internal): Set
7258 ix86_stack_protector_guard.
7259 * config/i386/i386.md (stack_protect_set): Enable for
7260 TARGET_SSP_TLS_GUARD only.
7261 (stack_protect_set_<mode>): Ditto.
7262 (stack_protect_test): Ditto.
7263 (stack_protect_test_<mode>): Ditto.
7264 * doc/invoke.texi (i386 Option): Document.
7266 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
7269 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
7270 (S_MODES): Set H_MODE bit.
7271 (SF_MODES): Set only S_MODE and SF_MODE bits.
7272 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
7273 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
7274 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
7275 <MODE_FLOAT>: Likewise.
7277 2013-04-15 Joey Ye <joey.ye@arm.com>
7279 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
7281 2013-04-15 Joey Ye <joey.ye@arm.com>
7283 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
7285 (thumb_far_jump_used_p): Count instruction size and set
7288 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
7290 * reorg.c (fill_simple_delay_slots): Reindent block of code.
7291 * resource.c (mark_target_live_regs): Reformat conditional block.
7293 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
7295 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
7296 notes, they are emitted only just before final.
7297 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
7299 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
7301 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
7302 * cfgrtl.c (delete_insn): Call it here instead.
7303 * lra-spills.c (lra_final_code_change): Use delete_insn.
7304 * haifa-sched.c (sched_remove_insn): Likewise.
7305 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
7306 returning to the nop pool.
7307 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
7308 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
7310 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
7312 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
7313 * doc/tm.texi: Regenerated.
7315 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
7317 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
7320 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
7322 * df-core.c (df_find_def): Compare register numbers.
7323 (df_find_use): Likewise.
7325 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
7328 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
7329 lra_in_progress for return.
7331 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
7333 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
7334 define_insn into define_insn_and_split and emit movsicc patterns.
7336 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
7338 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
7340 2013-04-12 Richard Biener <rguenther@suse.de>
7342 * tree-pass.h (TODO_do_not_ggc_collect): New.
7343 * passes.c (execute_one_ipa_transform_pass): Honor
7344 TODO_do_not_ggc_collect.
7345 (execute_one_pass): Likewise.
7348 2013-04-10 Richard Biener <rguenther@suse.de>
7350 * passes.c (init_optimization_passes): Remove reload pass.
7351 * ira.c (do_reload): Merge into ...
7353 (rest_of_handle_reload): Remove.
7354 (pass_reload): Likewise.
7355 * config/i386/i386.c (ix86_option_override): Refer to ira instead
7356 of reload for vzeroupper pass placement.
7358 2013-04-12 Jakub Jelinek <jakub@redhat.com>
7360 PR tree-optimization/56918
7361 PR tree-optimization/56920
7362 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
7363 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
7364 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
7365 use wide_mul_with_sign method.
7367 2013-04-12 Richard Biener <rguenther@suse.de>
7369 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
7370 not be considered a gimple constant.
7372 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
7374 * fold-const.c (const_binop): Handle vector shifts by a scalar.
7375 (fold_binary_loc): Call const_binop also for mixed vector-scalar
7378 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
7379 Jakub Jelinek <jakub@redhat.com>
7381 * opts.c: Include diagnostic-color.h.
7382 (common_handle_option): Handle OPT_fdiagnostics_color_.
7383 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
7384 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
7385 (diagnostic-color.o): New.
7386 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
7387 (diagnostic_color_rule): New enum.
7388 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
7389 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
7390 the location string.
7391 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
7392 either NULL, or color kind.
7393 * diagnostic-color.c: New file.
7394 * diagnostic-color.h: New file.
7395 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
7397 * doc/invoke.texi (-fdiagnostics-color): Document.
7398 * pretty-print.h (pp_show_color): Define.
7399 (struct pretty_print_info): Add show_color field.
7400 * diagnostic.c: Include diagnostic-color.h.
7401 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
7402 macros. Colorize error:, warning: etc. strings and also the location
7404 (diagnostic_show_locus): Colorize the caret line.
7405 * pretty-print.c: Include diagnostic-color.h.
7406 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
7407 inside of %< %> quotes or quoted through q format modifier.
7409 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7411 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
7413 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7415 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
7417 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
7420 2013-04-11 Marek Polacek <polacek@redhat.com>
7422 PR tree-optimization/48184
7423 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
7425 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
7427 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
7428 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
7429 (skip_simple_arithmetic): Tidy up.
7430 * tree.h (skip_simple_constant_arithmetic): Declare.
7432 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7434 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
7436 2013-04-11 Richard Biener <rguenther@suse.de>
7438 * tree-vect-loop.c (get_initial_def_for_induction): Properly
7439 generate vector constants.
7441 2013-04-11 Richard Biener <rguenther@suse.de>
7443 PR tree-optimization/56878
7444 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
7445 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
7447 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7448 Prefer to align the DR with the most invariant base address.
7450 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7452 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
7455 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
7457 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
7458 floating-point vector comparisons against 0.
7460 2013-04-11 Jakub Jelinek <jakub@redhat.com>
7462 PR tree-optimization/56899
7463 * fold-const.c (extract_muldiv_1): Apply distributive law
7464 only if TYPE_OVERFLOW_WRAPS (ctype).
7466 2013-04-11 Bin Cheng <bin.cheng@arm.com>
7469 * ira-costs.c (scan_one_insn): Check whether the source rtx of
7470 loading has side effect.
7472 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
7474 * config/sparc/sparc.c: Include tree-pass.h.
7475 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
7476 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
7477 head of file. Change return type. Split off gate function.
7478 (sparc_gate_work_around_errata): New function.
7479 (pass_work_around_errata): New pass definition.
7480 (insert_pass_work_around_errata) New pass insert definition to
7481 insert pass_work_around_errata just after delayed-branch scheduling.
7482 (sparc_option_override): Insert the pass.
7483 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
7485 2013-04-10 David S. Miller <davem@davemloft.net>
7487 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
7488 or -mcpu=hypersparc.
7490 * target.def (cstore_mode): New hook.
7491 * target.h: Include insn-codes.h
7492 * targhooks.c: Likewise.
7493 (default_cstore_mode): New function.
7494 * targhooks.h: Declare it.
7495 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
7496 * doc/tm.texi: Rebuild.
7497 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
7498 target hook, rather than inspecting the insn_data.
7499 * config/sparc/sparc.c (sparc_cstore_mode): New function.
7500 (TARGET_CSTORE_MODE): Redefine.
7501 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
7503 * config/sparc/predicates.md (cstore_result_operand): New special
7505 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
7506 Use it for operand 0.
7507 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
7508 (*snesi_special): Likewise.
7509 (*snesi_zero): Likewise.
7510 (*seqsi_zero): Likewise.
7511 (*sltu_insn): Likewise.
7512 (*sgeu_insn): Likewise.
7513 (*seqdi_special): Make operand 0 and comparison operation be of
7515 (*snedi_special): Likewise.
7516 (*snedi_special_vis3): Likewise.
7517 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
7518 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
7519 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
7520 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
7521 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
7522 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
7523 (*sltu_extend_sp64): Likewise.
7524 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
7525 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
7526 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
7527 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
7528 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
7530 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
7532 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
7533 (aarch64_start_file): Use the new function.
7535 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7536 Jason Merrill <jason@redhat.com>
7538 * common.opt: Add -gdwarf.
7539 * opts.c (common_handle_option): Handle it.
7540 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
7542 2013-04-10 Richard Biener <rguenther@suse.de>
7544 * passes.c (execute_todo): Do not call ggc_collect conditional here.
7545 (execute_one_ipa_transform_pass): But unconditionally here.
7546 (execute_one_pass): And here.
7547 (init_optimization_passes): Remove reload pass.
7548 * tree-pass.h (TODO_ggc_collect): Remove.
7549 (pass_reload): Likewise.
7550 * ira.c (do_reload): Merge into ...
7552 (rest_of_handle_reload): Remove.
7553 (pass_reload): Likewise.
7554 * config/i386/i386.c (ix86_option_override): Refer to ira instead
7555 of reload for vzeroupper pass placement.
7556 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
7557 and todo_flags_finish of all passes.
7559 2013-04-10 Richard Biener <rguenther@suse.de>
7561 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
7562 first_const_oprnd field, rename first_def_type to first_op_type.
7563 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
7564 (vect_get_and_check_slp_defs): Always use the type of the
7565 operand. Allow mixed vect_external_def, vect_constant_def types.
7566 (vect_get_constant_vectors): Handle mixed vect_external_def,
7567 vect_constant_def types.
7569 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
7571 PR tree-optimization/55524
7572 * tree-ssa-math-opts.c
7573 (convert_mult_to_fma): Don't use an fms construct
7574 when we don't have an fms operation, but fnma, and it looks
7575 likely that we'll be able to use the latter.
7577 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
7579 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
7581 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
7582 inline fail caused by overwritable functions.
7584 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
7586 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
7587 unnecessary bits in the constant power of two case.
7589 2013-04-10 Richard Biener <rguenther@suse.de>
7591 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
7592 broken code swapping operands.
7593 (vect_build_slp_tree): Do not compute load permutations here.
7594 (vect_analyze_slp_instance): Compute load permutations here,
7595 after building the SLP tree.
7597 2013-04-09 Christian Bruel <christian.bruel@st.com>
7599 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
7600 of next/prev_real_insn.
7602 2013-04-09 Jan Hubicka <jh@suse.cz>
7604 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
7605 Drop aliased parameter.
7606 (function_and_variable_visibility): Do not handle alias pairs.
7607 * cgraph.c (varpool_externally_visible_p): Update prototype.
7608 * varpool.c (varpool_add_new_variable): Update.
7610 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7612 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
7614 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
7616 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
7618 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
7620 2013-04-09 Marek Polacek <polacek@redhat.com>
7622 PR tree-optimization/48762
7623 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
7625 2013-04-09 Richard Biener <rguenther@suse.de>
7627 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
7629 (vect_build_slp_tree): Likewise.
7630 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
7631 calculating the cost of a SLP instance.
7632 (vect_analyze_slp_instance): Use it from here, after building
7635 2013-04-09 Jakub Jelinek <jakub@redhat.com>
7638 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
7639 expand_omp_for_static_chunk): Use simple_p = true in
7640 force_gimple_operand_gsi calls when assigning to addressable decls.
7642 2013-04-09 Jeff Law <law@redhat.com>
7644 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
7645 when the boolean was created by converting a wider object which
7646 had a boolean range.
7648 2013-04-09 Richard Biener <rguenther@suse.de>
7650 * tree-vectorizer.h (slp_void_p): Remove.
7651 (slp_tree): Typedef before _slp_tree declaration.
7652 (struct _slp_tree): Use a vector of slp_tree as children.
7653 (vect_get_place_in_interleaving_chain): Remove.
7654 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
7656 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
7658 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
7659 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
7660 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
7661 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
7662 Use slp_node instead of slp_void_p and adjust.
7664 2013-04-09 Richard Biener <rguenther@suse.de>
7666 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
7667 work that is not necessary.
7669 2013-04-09 Jakub Jelinek <jakub@redhat.com>
7671 PR tree-optimization/56854
7672 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
7673 forward into clobber stmts if it would change MEM_REF lhs into
7676 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
7678 * tree.c (type_hash_lookup, type_hash_add): Make static.
7679 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
7681 2013-04-09 Richard Biener <rguenther@suse.de>
7683 * tree.h (unsave_expr_now): Remove.
7684 * tree-inline.c (mark_local_for_remap_r): Remove.
7685 (unsave_expr_1): Likewise.
7686 (unsave_r): Likewise.
7687 (unsave_expr_now): Likewise.
7688 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
7689 (propagate_tree_value): Likewise.
7691 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
7693 * doc/rtl.texi (sequence): Rewrite documentation to match the
7694 current use of SEQUENCE rtl objects.
7695 * rtl.def (SEQUENCE): Likewise.
7697 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
7698 Update documentation.
7699 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
7700 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
7702 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
7704 2013-04-08 Teresa Johnson <tejohnson@google.com>
7706 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
7707 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
7709 (estimate_edge_size_and_time): Add comment to suggest using rounding
7711 (estimate_node_size_and_time): Ditto.
7712 (remap_edge_change_prob): Use helper rounding divide methods.
7713 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
7714 (gimple_mod_pow2_value_transform): Ditto.
7715 (gimple_mod_subtract_transform): Ditto.
7716 (gimple_ic_transform): Ditto.
7717 (gimple_stringops_transform): Ditto.
7718 * stmt.c (conditional_probability): Ditto.
7719 (emit_case_dispatch_table): Ditto.
7720 * lto-cgraph.c (merge_profile_summaries): Ditto.
7721 * tree-optimize.c (execute_fixup_cfg): Ditto.
7722 * cfgcleanup.c (try_forward_edges): Ditto.
7723 * cfgloopmanip.c (scale_loop_profile): Ditto.
7725 (duplicate_loop_to_header_edge): Ditto.
7726 (lv_adjust_loop_entry_edge): Ditto.
7727 * tree-vect-loop.c (vect_transform_loop): Ditto.
7728 * profile.c (compute_branch_probabilities): Ditto.
7729 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
7730 * lto-streamer-in.c (input_cfg): Ditto.
7731 * gimple-streamer-in.c (input_bb): Ditto.
7732 * ipa-cp.c (update_profiling_info): Ditto.
7733 (update_specialized_profile): Ditto.
7734 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
7735 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
7737 * sched-rgn.c (compute_dom_prob_ps): Ditto.
7738 (compute_trg_info): Ditto.
7739 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
7740 (purge_dead_edges): Ditto.
7741 * loop-unswitch.c (unswitch_loop): Ditto.
7742 * cgraphclones.c (cgraph_clone_edge): Ditto.
7743 (cgraph_clone_node): Ditto.
7744 * tree-inline.c (copy_bb): Ditto.
7745 (copy_edges_for_bb): Ditto.
7746 (initialize_cfun): Ditto.
7747 (copy_cfg_body): Ditto.
7748 (expand_call_inline): Ditto.
7750 2013-04-08 Kai Tietz <ktietz@redhat.com>
7752 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
7753 TARGET_CYGWIN64 by TARGET_64BIT.
7755 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
7757 * config/epiphany/epiphany.md (GPR_1): New constant.
7758 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
7759 * config/epiphany/epiphany.c (gen_compare_reg):
7760 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
7761 is already in place.
7762 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
7763 Don't require being called during rtl expansion; If y operlaps r0,
7765 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
7766 (epiphany_expand_epilogue): Likewise.
7768 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
7769 Don't use CC_FPmode for ORDERED / UNORDERED.
7770 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
7772 * config/epiphany/constraints.md (CnL): New constraint.
7773 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
7774 * config/epiphany/predicates.md (add_operand): Allow 1024.
7776 * config/epiphany/epiphany.md (logical_op): New code iterator.
7777 (op_mnc): New code attribute.
7778 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
7779 (mov_f+1, mov_f+2): New peephole2 patterns.
7781 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
7782 (cstoresi4): Also allow re-use of zero result when doing a NE
7783 comparison to a non-zero operand.
7784 Use (clobber (scratch)) for first insn if the gpr output is not needed.
7786 * config/epiphany/epiphany.md (<insn_opname>v2si3):
7787 Use gen_addsi3_i / gen_subsi3_i.
7789 2013-04-08 Jakub Jelinek <jakub@redhat.com>
7793 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
7794 contain anything but clobbers, at most one __builtin_stack_restore,
7795 optionally debug stmts and final resx, and if it has at least one
7796 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
7797 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
7798 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
7799 which isn't defaut definition, remove them.
7800 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
7801 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
7802 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
7803 with MEM_REF LHS with SSA_NAME address.
7805 2013-04-08 Jeff Law <law@redhat.com>
7807 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
7809 2013-04-08 Richard Biener <rguenther@suse.de>
7811 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
7813 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
7814 determined vector type.
7815 (vect_analyze_data_refs): Likewise.
7816 (vect_get_new_vect_var): Adjust.
7817 (vect_create_destination_var): Preserve SSA name versions.
7818 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
7819 not dump anything here.
7821 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
7823 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
7824 Add member lr_slot_known.
7825 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
7827 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
7828 Remove code that sets lr_slot_offset according to what a previous
7829 version of epiphany_emit_save_restore used to do.
7830 (epiphany_emit_save_restore): When doing an lr save or restore,
7831 set/verify lr_slot_known and lr_slot_offset.
7833 2013-04-08 Xinyu Qi <xyqi@marvell.com>
7836 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
7839 2013-04-08 Richard Biener <rguenther@suse.de>
7841 * alias.c (find_base_term): Fix thinko in previous change.
7843 2013-04-08 Jakub Jelinek <jakub@redhat.com>
7845 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
7846 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
7847 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
7848 if possible to compute val.
7849 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
7850 For QImode integers don't require anything about precision. Use
7851 const_with_all_bytes_same to find out if the constant doesn't have
7852 repeated bytes in it.
7854 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7856 * config/s390/s390.c (s390_expand_insv): Only accept insertions
7859 2013-04-08 Marek Polacek <polacek@redhat.com>
7861 PR rtl-optimization/48182
7862 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
7865 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7868 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
7869 nuses, make sure we have a label.
7871 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7874 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
7875 (rs6000_emit_swdiv_low_precision): Remove.
7876 (rs6000_emit_swdiv): Rewrite to handle between one and four
7877 iterations of Newton-Raphson generally; modify required number of
7878 iterations for some cases.
7879 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
7881 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
7883 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
7884 set-but-unused variable.
7886 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
7887 basic blocks of released function bodies garbage-collectable.
7889 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
7890 (struct rtl_opt_pass): Add TODO_df_finish.
7892 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
7894 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7896 * config/arm/constraints.md (q): New constraint.
7897 * config/arm/ldrdstrd.md: New file.
7898 * config/arm/arm.md (ldrdstrd.md) New include.
7899 (arm_movdi): Use "q" instead of "r" constraint
7900 for double-word memory access.
7901 (movdf_soft_insn): Likewise.
7902 * config/arm/vfp.md (movdi_vfp): Likewise.
7903 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
7904 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
7905 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
7906 (mem_ok_for_ldrd_strd): Likewise.
7907 (output_move_double): Update assertion.
7909 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7911 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
7913 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7915 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
7916 define_insn_and_split.
7917 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
7919 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7921 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
7922 define_insn_and_split.
7923 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
7924 (shiftsi3_compare): New pattern.
7926 * config/arm/unspecs.md (UNSPEC_RRX): New.
7928 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7930 * config/arm/arm.md (negdi_extendsidi): New pattern.
7931 (negdi_zero_extendsidi): Likewise.
7933 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7935 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
7936 define_insn_and_split.
7937 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
7938 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
7940 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7942 * config/arm/arm.md (arm_subdi3): Convert define_insn into
7943 define_insn_and_split.
7944 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
7945 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
7947 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7949 * config/arm/arm.md (subsi3_carryin): New pattern.
7950 (subsi3_carryin_const): Likewise.
7951 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
7952 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
7954 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7956 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
7958 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7960 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
7961 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
7963 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7965 * config/arm/arm.c (arm_expand_builtin): Change fcode
7966 type to unsigned int.
7968 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7970 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
7972 2013-04-04 Ian Lance Taylor <iant@google.com>
7974 * doc/standards.texi (Standards): The Go frontend supports the Go 1
7977 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
7980 * df-scan.c (df_insn_delete): Disable failing assert.
7982 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7984 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
7985 New function prototype.
7986 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
7987 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
7988 (arm_builtin_vectorized_function): New function.
7990 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7992 * config/arm/arm_neon_builtins.def: New file.
7993 * config/arm/arm.c (neon_builtin_data): Move contents to
7994 arm_neon_builtins.def.
7995 (enum arm_builtins): Include neon builtin definitions.
7996 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
7997 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
7999 2013-04-04 Marek Polacek <polacek@redhat.com>
8001 PR tree-optimization/48186
8002 * predict.c (maybe_hot_frequency_p): Return false if
8003 HOT_BB_FREQUENCY_FRACTION is 0.
8004 (cgraph_maybe_hot_edge_p): Likewise.
8006 2013-04-04 Richard Biener <rguenther@suse.de>
8008 PR tree-optimization/56826
8009 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
8012 2013-04-04 Richard Biener <rguenther@suse.de>
8014 PR tree-optimization/56213
8015 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
8016 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
8018 2013-04-04 Richard Biener <rguenther@suse.de>
8020 PR tree-optimization/56837
8021 * tree-loop-distribution.c (classify_partition): For non-zero
8022 values require that the value has the same precision as its
8023 mode to be useful as memset value.
8025 2013-04-03 Nick Clifton <nickc@redhat.com>
8027 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
8028 (fmssf4): Use fmsf.s on E3V5 architectures.
8029 (fnmasf4): Use fnmaf.s on E3V5 architectures.
8030 (fnmssf4): Use fnmsf.s on E3V5 architectures.
8032 2013-04-03 Jeff Law <law@redhat.com>
8034 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
8035 (lra-eliminations.o): Likewise.
8037 2013-04-03 Teresa Johnson <tejohnson@google.com>
8039 * gcov-io.c (compute_working_sets): Moved most of body of old
8040 compute_working_sets here from profile.c.
8041 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
8042 (gcov_working_set_t): Moved typedef here from basic-block.h
8043 (compute_working_set): Declare.
8044 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
8045 (get_working_sets): Renamed from compute_working_set,
8046 replace most of body with call to new compute_working_sets.
8047 (get_exec_counts): Replace call to compute_working_sets
8048 to get_working_sets.
8049 * profile.h (get_working_sets): Renamed from compute_working_set.
8050 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
8051 to get_working_sets.
8052 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
8053 * gcov-dump.c (dump_working_sets): New function.
8055 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
8057 * hwint.c (sext_hwi, zext_hwi): New functions.
8058 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
8059 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
8060 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
8061 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
8062 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
8063 (sext_hwi, zext_hwi): New functions.
8065 2013-04-03 Jeff Law <law@redhat.com>
8067 PR tree-optimization/56799
8068 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
8069 back test for widening conversion erroneously dropped in prior change.
8071 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8074 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
8075 instead of next_real_insn.
8077 2013-04-03 Marek Polacek <polacek@redhat.com>
8080 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
8082 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8085 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
8087 (thumb1_output_casesi): Likewise.
8088 (thumb2_output_casesi): Likewise.
8090 2013-04-03 Richard Biener <rguenther@suse.de>
8092 PR tree-optimization/56817
8093 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
8095 (tree_unroll_loops_completely_1): ... new function to manually
8096 walk the loop tree, properly defering outer loops of unrolled
8097 loops to later iterations.
8099 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
8101 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
8102 (vectorizable_load): Likewise.
8103 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
8104 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
8106 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
8108 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
8111 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8113 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
8115 2013-04-03 Bin Cheng <bin.cheng@arm.com>
8117 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
8119 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
8121 PR tree-optimization/56790
8122 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
8125 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
8127 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
8129 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
8130 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
8133 2013-04-03 Jakub Jelinek <jakub@redhat.com>
8136 * tree.h (force_folding_builtin_constant_p): New decl.
8137 * builtins.c (force_folding_builtin_constant_p): New variable.
8138 (fold_builtin_constant_p): Fold immediately also if
8139 force_folding_builtin_constant_p.
8141 2013-04-03 Richard Biener <rguenther@suse.de>
8143 PR tree-optimization/56812
8144 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
8145 DRs of the same interleaving chain are independent.
8147 2013-04-02 Jason Merrill <jason@redhat.com>
8149 * gdbinit.in (pbb): Use debug fn.
8151 2013-04-02 Lawrence Crowl <crowl@google.com>
8153 * sese.h (struct ivtype_map_elt_s): Remove unused.
8154 (extern debug_ivtype_map): Remove unused.
8155 (extern eq_ivtype_map_elts): Remove unused.
8156 * sese.c (debug_ivtype_map): Removed unused.
8157 (debug_ivtype_map_1): Removed unused.
8158 (debug_ivtype_elt): Remove unused.
8159 (eq_ivtype_map_elts): Remove unused.
8162 2013-04-02 Kai Tietz <ktietz@redhat.com>
8165 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
8166 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
8167 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
8169 (legitimize_pe_coff_symbol): Likewise.
8170 (is_imported_p): New helper-function.
8171 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
8172 for Windows x64 targets.
8173 (ix86_expand_prologue): Optimize for pe-coff targets.
8174 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
8175 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
8176 medium/large code-model.
8177 (legitimize_pic_address): Likewise.
8178 (legitimize_tls_address): Likewise.
8179 (ix86_expand_call): Likewise.
8180 (x86_output_mi_thunk): Likewise.
8181 (get_dllimport_decl): Add new beimport argument.
8182 (construct_plt_address): Don't assert for x64 pe-coff targets.
8183 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
8185 (SYMBOL_FLAG_STUBVAR): New macro.
8186 (SYMBOL_REF_STUBVAR_P): Likewise.
8187 * config/i386/winnt.c (stub_list): New structure.
8188 (stub_head): New local variable.
8189 (i386_pe_record_stub): New function.
8190 (i386_pe_file_end): Emit refptr-stubs.
8192 2013-04-02 Jakub Jelinek <jakub@redhat.com>
8194 PR rtl-optimization/56745
8195 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
8196 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
8199 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
8200 and both of them are MEM_REFs, just compare first argument for
8201 equality and attempt to deal even with differing offsets.
8204 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
8205 of gimple_clobber_p to be MEM_REF.
8206 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
8207 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
8208 after gimplification.
8209 * asan.c (get_mem_ref_of_assignment): Don't instrument
8210 gimple_clobber_p stmts.
8211 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
8212 gimple_clobber_p stmt if they have MEM_REF lhs and
8213 are dead because of another gimple_clobber_p stmt.
8214 * tree-ssa-live.c (clear_unused_block_pointer): Treat
8215 gimple_clobber_p stmts like debug stmts.
8216 (remove_unused_locals): Remove clobbers with MEM_REF lhs
8217 that refer to unused VAR_DECLs or uninitialized values.
8218 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
8219 gimple_clobber_p stmts if they refer to removed parameters.
8220 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
8223 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
8225 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
8226 using SWI48 mode attribute.
8228 2013-04-02 Wei Mi <wmi@google.com>
8230 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
8231 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
8232 *<rotate_insn><mode>3_mask in i386.md.
8234 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
8236 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
8238 2013-04-02 Richard Biener <rguenther@suse.de>
8240 PR tree-optimization/56778
8241 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
8242 Runtime alias tests are not supported for gather loads.
8243 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
8244 stmts referenced from SSA operands before updating SSA form.
8246 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
8247 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8249 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
8250 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
8251 * config/arm/cortex-a53.md: New file.
8252 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
8253 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
8254 * config/arm/arm.c (arm_issue_rate): Likewise.
8255 * config/arm/arm-tune.md: Regenerate
8256 * config/arm/arm-tables.opt: Regenerate.
8257 * config/arm/arm-cores.def: Add cortex-a53.
8259 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
8261 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
8264 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
8266 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
8267 scalar load/store operations using B/H registers.
8268 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
8270 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
8272 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
8274 * config/aarch64/aarch64.c
8275 (aarch64_simd_scalar_immediate_valid_for_move): New.
8276 * config/aarch64/aarch64-protos.h
8277 (aarch64_simd_scalar_immediate_valid_for_move): New.
8278 * config/aarch64/constraints.md (Dh, Dq): New.
8279 * config/aarch64/iterators.md (hq): New.
8281 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
8283 * reorg.c (get_branch_condition): Deal with conditional returns.
8284 (fill_simple_delay_slots): Remove dead code dealing with jumps.
8286 2013-04-01 Wei Mi <wmi@google.com>
8288 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
8289 Truncate operand 2 using %b asm operand modifier.
8290 (*<shift_insn><mode>3_mask): Ditto.
8291 (*<rotate_insn><mode>3_mask): Ditto.
8293 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
8296 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
8298 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
8300 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
8302 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
8304 2013-03-30 Lawrence Crowl <crowl@google.com>
8306 * dse.c (clear_alias_sets): Remove never set.
8307 (disqualified_clear_alias_sets): Remove never set.
8308 (clear_alias_mode_pool): Remove never set.
8309 (dse_step0): Remove condition that is never true.
8310 (canon_address): Remove condition that is never true.
8311 (dse_step7): Remove condition that is never true.
8312 (rest_of_handle_dse): Remove condition that is never true.
8313 (rest_of_handle_dse::did_global): Remove never read from above.
8314 (dse_step2_spill): Remove never called from above.
8315 (dse_step5_spill): Remove never called from above.
8317 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
8319 * doc/md.texi (Standard Names) <casesi>: Update documentation for
8320 JUMP_TABLE_DATA changes.
8321 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
8322 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
8323 (Insns) <jump_table_data>: New entry.
8324 * doc/tm.texi: Regenerate.
8326 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
8328 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
8329 for table jump at the end of a basic block using tablejump_p.
8330 * targhooks.c (default_invalid_within_doloop): Likewise.
8331 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
8332 target hook implementation that is identical to the default hook.
8333 (rs6000_invalid_within_doloop): Remove.
8335 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
8336 unused variable from tablejump_p call.
8338 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
8339 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
8340 (INSN_DELETED_P): Likewise.
8341 (emit_jump_table_data): New prototype.
8342 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
8343 after 4th as unused.
8344 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
8345 * sched-vis.c (print_insn): Likewise.
8346 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
8347 insn for compatibility with back ends that use next_active_insn to
8348 identify jump table data.
8349 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
8350 (remove_insn): Likewise.
8351 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
8353 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
8354 (emit_jump_table_data): New function.
8356 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
8357 basic block, a JUMP_TABLE_DATA never is.
8358 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
8359 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
8360 off from code handling real insns.
8361 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
8362 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
8363 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
8364 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
8365 is not a NONDEBUG_INSN_P.
8366 * ira-costs.c (scan_one_insn): Likewise.
8367 * jump.c (mark_all_labels): Likewise.
8368 (mark_jump_label_1): Likewise.
8369 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
8370 * lra.c (get_insn_freq): Expect all insns reaching here to be in
8372 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
8373 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
8374 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
8375 JUMP_TABLE_DATA_P insns.
8376 (calculate_elim_costs_all_insns): Likewise.
8377 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
8378 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
8379 (delete_output_reload): Code style fixups.
8380 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
8381 insn flags on this non-insn.
8382 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
8383 as scheduling barriers, for pre-change compatibility.
8384 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
8385 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
8387 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
8388 redundant JUMP_TABLE_DATA_P test.
8389 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
8390 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
8391 (frv_for_each_packet): Likewise.
8392 * config/i386/i386.c (min_insn_size): Likewise.
8393 (ix86_avoid_jump_mispredicts): Likewise.
8394 * config/m32r/m32r.c (m32r_is_insn): Likewise.
8395 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
8396 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
8397 (mips16_insn_length): Robustify.
8398 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
8399 (mips16_split_long_branches): Likewise.
8400 * config/pa/pa.c (pa_combine_instructions): Likewise.
8401 * config/rs6000/rs6000.c (get_next_active_insn): Treat
8402 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
8403 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
8404 as contributing to pool range lengths.
8405 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
8406 Remove redundant JUMP_TABLE_DATA_P test.
8407 (sh_loop_align): Likewise.
8408 (split_branches): Likewise.
8409 (sh_insn_length_adjustment): Likewise.
8410 * config/spu/spu.c (get_branch_target): Likewise.
8412 2013-03-29 Jan Hubicka <jh@suse.cz>
8414 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
8415 gcov streaming; stream hot bb threshold to ltrans.
8416 * predict.c (get_hot_bb_threshold): Break out from ....
8417 (maybe_hot_count_p): ... here.
8418 (set_hot_bb_threshold): New function.
8419 * lto-section-in.c (lto_section_name): Add profile.
8420 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
8421 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
8423 (histogram_entry): New structure.
8424 (histogram, histogram_pool): New global vars.
8425 (histogram_hash): New structure.
8426 (histogram_hash::hash): New method.
8427 (histogram_hash::equal): Likewise.
8428 (account_time_size): New function.
8429 (cmp_counts): New function.
8430 (dump_histogram): New function.
8431 (ipa_profile_generate_summary): New function.
8432 (ipa_profile_write_summary): New function.
8433 (ipa_profile_read_summary): New function.
8434 (ipa_profile): Decide on threshold.
8435 (pass_ipa_profile): Add ipa_profile_write_summary and
8436 ipa_profile_read_summary.
8437 * Makefile.in (ipa.o): Update dependencies.
8438 * lto-streamer.h (LTO_section_ipa_profile): New section.
8440 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
8442 * tree.h (VAR_P): New.
8444 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
8447 * doc/invoke.texi ([-fwhole-program]): Fix typo.
8449 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
8451 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
8452 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
8453 (control_flow_insn_p): Likewise.
8454 * cfgrtl.c (duplicate_insn_chain): Likewise.
8455 * final.c (get_attr_length_1): Likewise.
8456 (shorten_branches): Likewise.
8457 (final_scan_insn): Likewise.
8458 * function.c (instantiate_virtual_regs): Likewise.
8459 * gcse.c (insert_insn_end_basic_block): Likewise.
8460 * ira-costs.c (scan_one_insn): Likewise.
8461 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
8462 * lra.c (check_rtl): Likewise.
8463 * reload1.c (elimination_costs_in_insn): Likewise.
8464 * reorg.c (follow_jumps): Likewise.
8466 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
8467 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
8468 (thumb_far_jump_used_p): Likewise.
8469 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
8470 (workaround_speculation): Likewise.
8471 (add_sched_insns_for_speculation): Likewise.
8472 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
8473 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
8474 (frv_for_each_packet): Likewise.
8475 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
8476 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
8477 (final_emit_insn_group_barriers): Likewise.
8478 * config/m32r/m32r.c (m32r_is_insn): Likewise.
8479 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
8480 (mips16_insn_length): Likewise.
8481 * config/pa/pa.c (pa_reorg): Likewise.
8482 (pa_combine_instructions): Likewise.
8483 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
8484 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
8485 (sh_reorg): Likewise.
8486 (split_branches): Likewise.
8487 * config/spu/spu.c (get_branch_target): Likewise.
8489 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
8492 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
8494 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
8495 Fix declaration name.
8497 2013-03-28 Lawrence Crowl <crowl@google.com>
8499 * graphds.h (struct graph.indicies): Remove unused.
8500 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
8501 (SCOP_ORIGINAL_PDDRS): Remove unused.
8502 * sese.h (extern insert_loop_close_phis): Removed unused.
8503 (extern insert_guard_phis): Removed unused.
8504 (extern ivtype_map_elt_info): Removed unused.
8505 (new_ivtype_map_elt): Removed unused.
8506 * sese.c (ivtype_map_elt_info): Removed unused.
8508 2013-03-28 Lawrence Crowl <crowl@google.com>
8510 * Makefile.in: Add several missing include dependences.
8512 (test-dump.o): New. This object is not added to any executable,
8513 but is present for ad-hoc testing.
8515 (debug (const bitmap_head_def &)): New.
8516 (debug (const bitmap_head_def *)): New.
8518 (extern debug (const bitmap_head_def &)): New.
8519 (extern debug (const bitmap_head_def *)): New.
8521 (debug (edge_def &)): New.
8522 (debug (edge_def *)): New.
8524 (debug (basic_block_def &)): New.
8525 (debug (basic_block_def *)): New.
8527 (dump_node (const_tree, int, FILE *)): Correct source file.
8529 (debug (die_struct &)): New.
8530 (debug (die_struct *)): New.
8532 (extern debug (die_struct &)): New.
8533 (extern debug (die_struct *)): New.
8534 * gimple-pretty-print.c
8535 (debug (gimple_statement_d &)): New.
8536 (debug (gimple_statement_d *)): New.
8537 * gimple-pretty-print.h
8538 (extern debug (gimple_statement_d &)): New.
8539 (extern debug (gimple_statement_d *)): New.
8541 (debug (ira_allocno_copy &)): New.
8542 (debug (ira_allocno_copy *)): New.
8543 (debug (ira_allocno &)): New.
8544 (debug (ira_allocno *)): New.
8546 (extern debug (ira_allocno_copy &)): New.
8547 (extern debug (ira_allocno_copy *)): New.
8548 (extern debug (ira_allocno &)): New.
8549 (extern debug (ira_allocno *)): New.
8551 (debug (live_range &)): New.
8552 (debug (live_range *)): New.
8554 (debug (lra_live_range &)): New.
8555 (debug (lra_live_range *)): New.
8557 (debug (lra_live_range &)): New.
8558 (debug (lra_live_range *)): New.
8560 (debug (omega_pb_d &)): New.
8561 (debug (omega_pb_d *)): New.
8563 (extern debug (omega_pb_d &)): New.
8564 (extern debug (omega_pb_d *)): New.
8566 (debug (const rtx_def &)): New.
8567 (debug (const rtx_def *)): New.
8569 (debug_tree (tree): Move within file.
8570 (debug_raw (const tree_node &)): New.
8571 (debug_raw (const tree_node *)): New.
8572 (dump_tree_via_hooks (const tree_node *, int)): New.
8573 (debug (const tree_node &)): New.
8574 (debug (const tree_node *)): New.
8575 (debug_verbose (const tree_node &)): New.
8576 (debug_verbose (const tree_node *)): New.
8577 (debug_head (const tree_node &)): New.
8578 (debug_head (const tree_node *)): New.
8579 (debug_body (const tree_node &)): New.
8580 (debug_body (const tree_node *)): New.
8581 (debug_vec_tree (tree): Move and reimplement in terms of dump.
8582 (debug (vec<tree, va_gc> &)): New.
8583 (debug (vec<tree, va_gc> *)): New.
8585 (extern debug (const rtx_def &)): New.
8586 (extern debug (const rtx_def *)): New.
8588 (debug_raw (simple_bitmap_def &)): New.
8589 (debug_raw (simple_bitmap_def *)): New.
8590 (debug (simple_bitmap_def &)): New.
8591 (debug (simple_bitmap_def *)): New.
8593 (extern debug (simple_bitmap_def &)): New.
8594 (extern debug (simple_bitmap_def *)): New.
8595 (extern debug_raw (simple_bitmap_def &)): New.
8596 (extern debug_raw (simple_bitmap_def *)): New.
8598 (debug (vinsn_def &)): New.
8599 (debug (vinsn_def *)): New.
8600 (debug_verbose (vinsn_def &)): New.
8601 (debug_verbose (vinsn_def *)): New.
8602 (debug (expr_def &)): New.
8603 (debug (expr_def *)): New.
8604 (debug_verbose (expr_def &)): New.
8605 (debug_verbose (expr_def *)): New.
8606 (debug (vec<rtx> &)): New.
8607 (debug (vec<rtx> *)): New.
8609 (extern debug (vinsn_def &)): New.
8610 (extern debug (vinsn_def *)): New.
8611 (extern debug_verbose (vinsn_def &)): New.
8612 (extern debug_verbose (vinsn_def *)): New.
8613 (extern debug (expr_def &)): New.
8614 (extern debug (expr_def *)): New.
8615 (extern debug_verbose (expr_def &)): New.
8616 (extern debug_verbose (expr_def *)): New.
8617 (extern debug (vec<rtx> &)): New.
8618 (extern debug (vec<rtx> *)): New.
8620 (_list_iter_cond_expr): Make inline instead of static.
8622 (debug (sreal &)): New.
8623 (debug (sreal *)): New.
8625 (extern debug (sreal &)): New.
8626 (extern debug (sreal *)): New.
8628 (extern debug_raw (const tree_node &)): New.
8629 (extern debug_raw (const tree_node *)): New.
8630 (extern debug (const tree_node &)): New.
8631 (extern debug (const tree_node *)): New.
8632 (extern debug_verbose (const tree_node &)): New.
8633 (extern debug_verbose (const tree_node *)): New.
8634 (extern debug_head (const tree_node &)): New.
8635 (extern debug_head (const tree_node *)): New.
8636 (extern debug_body (const tree_node &)): New.
8637 (extern debug_body (const tree_node *)): New.
8638 (extern debug (vec<tree, va_gc> &)): New.
8639 (extern debug (vec<tree, va_gc> *)): New.
8641 (debug (struct loop &)): New.
8642 (debug (struct loop *)): New.
8643 (debug_verbose (struct loop &)): New.
8644 (debug_verbose (struct loop *)): New.
8645 * tree-dump.c: Add header dependence.
8647 (extern debug (struct loop &)): New.
8648 (extern debug (struct loop *)): New.
8649 (extern debug_verbose (struct loop &)): New.
8650 (extern debug_verbose (struct loop *)): New.
8652 (debug (data_reference &)): New.
8653 (debug (data_reference *)): New.
8654 (debug (vec<data_reference_p> &)): New.
8655 (debug (vec<data_reference_p> *)): New.
8656 (debug (vec<ddr_p> &)): New.
8657 (debug (vec<ddr_p> *)): New.
8659 (extern debug (data_reference &)): New.
8660 (extern debug (data_reference *)): New.
8661 (extern debug (vec<data_reference_p> &)): New.
8662 (extern debug (vec<data_reference_p> *)): New.
8663 (extern debug (vec<ddr_p> &)): New.
8664 (extern debug (vec<ddr_p> *)): New.
8666 (debug (pt_solution &)): New.
8667 (debug (pt_solution *)): New.
8669 (extern debug (pt_solution &)): New.
8670 (extern debug (pt_solution *)): New.
8672 (debug (_var_map &)): New.
8673 (debug (_var_map *)): New.
8674 (debug (tree_live_info_d &)): New.
8675 (debug (tree_live_info_d *)): New.
8677 (extern debug (_var_map &)): New.
8678 (extern debug (_var_map *)): New.
8679 (extern debug (tree_live_info_d &)): New.
8680 (extern debug (tree_live_info_d *)): New.
8682 2013-03-28 Jan Hubicka <jh@suse.cz>
8684 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
8686 2013-03-28 Ian Bolton <ian.bolton@arm.com>
8688 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
8689 record only when desired or required.
8691 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
8693 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
8694 *vec_extractv2di_1_rex64. Use x64 isa attribute.
8696 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8698 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
8699 (*andsi3_compare0_uxtw): New pattern.
8700 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
8701 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
8703 2013-03-28 Jan Hubicka <jh@suse.cz>
8705 * data-streamer-in.c (streamer_read_gcov_count): New function.
8706 * gimple-streamer-out.c: Include value-prof.h.
8707 (output_gimple_stmt): Output histogram.
8708 (output_bb): Use streamer_write_gcov_count.
8709 * value-prof.c: Include data-streamer.h
8710 (dump_histogram_value): Add HIST_TYPE_MAX.
8711 (stream_out_histogram_value): New function.
8712 (stream_in_histogram_value): New function.
8713 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
8714 (stream_out_histogram_value, stream_in_histogram_value): Declare.
8715 * data-streamer-out.c (streamer_write_gcov_count): New function.
8716 (streamer_write_gcov_count_stream): New function.
8717 * lto-cgraph.c (lto_output_edge): Update counter streaming.
8718 (lto_output_node): Likewise.
8719 (input_node, input_edge): Likewise.
8720 * lto-streamer-out.c (output_cfg): Update streaming.
8721 * lto-streamer-in.c (input_cfg): Likewise.
8722 * data-streamer.h (streamer_write_gcov_count,
8723 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
8724 * gimple-streamer-in.c: Include value-prof.h
8725 (input_gimple_stmt): Input histograms.
8726 (input_bb): Update profile streaming.
8728 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8730 * genmodes.c (emit_max_int): New function.
8731 (emit_insn_modes_h): Added call to emit_max_function.
8732 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
8734 * machmode.def: Fixed comment.
8736 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8738 * combine.c (try_combine): Removed useless assert.
8739 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
8741 2013-03-28 Marek Polacek <polacek@redhat.com>
8742 Richard Biener <rguenther@suse.de>
8744 PR tree-optimization/56695
8745 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
8746 build signed result of a vector comparison.
8747 * tree-cfg.c (verify_gimple_comparison): Check that a result
8748 of a vector comparison has signed type.
8750 2013-03-28 Richard Biener <rguenther@suse.de>
8752 PR tree-optimization/37021
8753 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
8754 do not restrict gaps between groups.
8755 * tree-vect-stmts.c (vectorizable_load): Properly account for
8756 a gap between groups.
8758 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
8760 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
8761 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
8764 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
8766 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
8767 * doc/extend.texi (Named Address Spaces): Ditto.
8768 (Variable Attributes): Ditto.
8770 2013-03-27 Kai Tietz <ktietz@redhat.com>
8772 * config.build: Add support for cygwin x64 target.
8773 * config.gcc: Likewise.
8774 * config.host: Likewise.
8775 * configure.ac: Likewise
8776 * configure: Regenerated.
8778 2013-03-27 Kai Tietz <ktietz@redhat.com>
8780 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
8781 * config/i386/t-cygwin-w64: New file.
8782 * config/i386/cygwin-w64.h: New file.
8783 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
8784 and add support for x64-cygwin target.
8785 (CPP_SPEC): Likewise.
8786 (CXX_WRAP_SPEC_LIST): Undefine before define.
8787 (LIBGCJ_SONAME): Use 15 as version.
8789 2013-03-27 Richard Biener <rguenther@suse.de>
8791 PR tree-optimization/56716
8792 * tree-ssa-structalias.c (perform_var_substitution): Adjust
8793 dumping for ref nodes.
8795 2013-03-27 Martin Jambor <mjambor@suse.cz>
8797 PR tree-optimization/55334
8798 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
8799 restricted pointers to arrays.
8801 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
8803 * Makefile.in (.SUFFIXES): Add .cc.
8804 (.c.o): Apply same recipe for implicit rule .cc.o.
8806 2013-03-27 Richard Biener <rguenther@suse.de>
8808 PR tree-optimization/37021
8809 * tree-vect-data-refs.c (vect_check_strided_load): Allow
8810 REALPART/IMAGPART_EXPRs around the supported refs.
8811 * tree-ssa-structalias.c (find_func_aliases): Assume that
8812 floating-point values are not used to transfer pointers.
8814 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
8816 * target.def (TARGET_HAS_IFUNC_P): New target hook.
8817 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
8818 * doc/tm.texi: Regenerate.
8819 * targhooks.h (default_has_ifunc_p): New.
8820 * targhooks.c (default_has_ifunc_p): Ditto.
8821 * config/linux-protos.h: New file.
8822 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
8823 this hook for linux which disables support of indirect functions in
8825 * config/linux-android.c: New file.
8826 * config/t-linux-android.c: Ditto.
8827 * config.gcc: Added new object file linux-android.o.
8828 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
8829 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
8830 * varasm.c (do_assemble_alias): Likewise.
8831 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
8832 doesn't support indirect functions.
8833 * configure: Regenerate.
8835 2013-03-27 Bin Cheng <bin.cheng@arm.com>
8838 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
8839 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
8842 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8844 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
8846 2013-03-27 Terry Guo <terry.guo@arm.com>
8848 * config/arm/arm-cores.def: Added core cortex-r7.
8849 * config/arm/arm-tune.md: Regenerated.
8850 * config/arm/arm-tables.opt: Regenerated.
8851 * doc/invoke.texi: Added entry for core cortex-r7.
8853 2013-03-27 Walter Lee <walt@tilera.com>
8855 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
8856 double-decrement of next_scratch_regno.
8858 2013-03-27 Walter Lee <walt@tilera.com>
8860 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
8862 (insn_v1mulus): Ditto.
8863 (insn_v2muls): Ditto.
8865 2013-03-27 Walter Lee <walt@tilera.com>
8867 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
8868 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
8870 2013-03-27 Walter Lee <walt@tilera.com>
8872 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
8873 (*sibcall_value): Ditto.
8875 2013-03-27 Walter Lee <walt@tilera.com>
8877 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
8878 (insn_mnz_v8qi): ... this ...
8879 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
8881 (insn_v<n>mnz): Replaced by ...
8882 (insn_v1mnz): ... this ...
8883 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
8885 (insn_mz_<mode>): Replaced by ...
8886 (insn_mz_v8qi): ... this ...
8887 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
8889 (insn_v<n>mz): Replaced by ...
8890 (insn_v1mz): ... this ...
8891 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
8894 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
8896 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
8898 2013-03-26 Roland McGrath <mcgrathr@google.com>
8900 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
8901 than fprintf with a non-constant, non-format string.
8903 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
8905 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
8906 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
8907 operand 0 predicate.
8908 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
8909 attribute. Use general_x64nomem_operand as operand 1 predicate.
8910 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
8911 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
8912 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
8913 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
8914 (mov<mode>_insv_1): Remove expander. Merge insn with
8915 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
8916 Use general_x64nomem_operand as operand 1 predicate.
8917 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
8918 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
8919 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
8920 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
8921 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
8922 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
8923 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
8924 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
8925 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
8926 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
8927 (general_x64nomem_operand): Ditto.
8929 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
8931 * config/rtems.opt: Add -pthread option.
8933 2013-03-26 Richard Biener <rguenther@suse.de>
8935 * alias.c (find_base_term): Avoid redundant and not used recursion.
8936 (base_alias_check): Get the initial base term from the caller.
8937 (true_dependence_1): Compute and pass base terms to base_alias_check.
8938 (write_dependence_p): Likewise.
8939 (may_alias_p): Likewise.
8941 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
8943 * config/aarch64/aarch64.c (aarch64_classify_address): Support
8944 PC-relative load in SI modes and above only.
8946 2013-03-26 Xinyu Qi <xyqi@marvell.com>
8948 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
8949 * config/arm/iwmmxt.md (WCGR0): Update.
8950 (WCGR1, WCGR2, WCGR3): Likewise.
8952 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
8954 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
8955 Use x64 and nox64 isa attributes.
8957 2013-03-26 Richard Biener <rguenther@suse.de>
8959 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
8960 alignment computations and rely on get_object_alignment_1
8961 for the !TYPE_P case.
8962 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
8964 2013-03-26 Walter Lee <walt@tilera.com>
8966 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
8967 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
8969 2013-03-25 Jeff Law <law@redhat.com>
8971 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
8972 check for INTEGRAL_TYPE_P that was missing due to checking in
8973 wrong version of prior patch.
8975 2013-03-25 Walter Lee <walt@tilera.com>
8977 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
8978 TILEGX_INSN_SHUFFLEBYTES1.
8979 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
8981 (tilegx_builtins): Ditto.
8982 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
8984 2013-03-25 Walter Lee <walt@tilera.com>
8986 * config/tilegx/tilegx.md (floatsisf2): New pattern.
8987 (floatunssisf2): New pattern.
8988 (floatsidf2): New pattern.
8989 (floatunssidf2): New pattern.
8991 2013-03-25 Walter Lee <walt@tilera.com>
8993 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
8994 tests for constraint J, K, N, P.
8996 2013-03-25 Walter Lee <walt@tilera.com>
8998 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
8999 Use indirect/pcrel encoding.
9000 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
9003 2013-03-25 Steve Ellcey <sellcey@mips.com>
9005 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
9006 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
9007 * config/mips/mips.c (mips_option_override): Set IMADD default.
9008 * config/mips/mips.h (PTF_AVOID_IMADD): New.
9009 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
9010 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
9011 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
9012 * doc/invoke.texi (-mimadd/-mno-imadd): New.
9014 2013-03-25 Jeff Law <law@redhat.com>
9016 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
9017 slightly to avoid creating and folding useless trees. Simplify
9018 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
9020 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
9022 * config/i386/i386.md (*zero_extendsidi2): Merge with
9023 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
9024 * config/i386/predicates.md (x86_64_zext_operand): Rename from
9025 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
9026 targets. Clarify comment.
9028 2013-03-25 Martin Jambor <mjambor@suse.cz>
9030 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
9031 pass-through jump functions differently.
9032 (ipa_read_jump_function): Likewise. Also use setter functions to set
9035 2013-03-25 Martin Jambor <mjambor@suse.cz>
9037 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
9038 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
9040 (ipa_get_indirect_edge_target): New function.
9041 (devirtualization_time_bonus): New parameter known_aggs, pass it to
9042 ipa_get_indirect_edge_target. Update all callers.
9043 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
9044 ipa_get_indirect_edge_target_1 instead of calling
9045 ipa_get_indirect_edge_target.
9046 (create_specialized_node): Pass aggvlas to
9047 ipcp_discover_new_direct_edges.
9049 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9051 * config/arm/arm.md (f_sels, f_seld): New types.
9052 (*cmov<mode>): New pattern.
9053 * config/arm/predicates.md (arm_vsel_comparison_operator): New
9056 2013-03-25 Kai Tietz <ktietz@redhat.com>
9058 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
9059 POSIX-printf for mingw-hosted builds.
9061 2013-03-25 Richard Biener <rguenther@suse.de>
9064 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
9065 must-not-throw stmt location.
9067 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9069 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
9070 Emit load-acquire versions when acq is true.
9071 (arm_emit_store_exclusive): Add rel parameter.
9072 Emit store-release versions when rel is true.
9073 (arm_split_compare_and_swap): Use acquire-release instructions
9075 of barriers when appropriate.
9076 (arm_split_atomic_op): Likewise.
9077 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
9078 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
9079 (VUNSPEC_SLX): Likewise.
9080 (VUNSPEC_LDA): Likewise.
9081 (VUNSPEC_STL): Likewise.
9082 * config/arm/sync.md (atomic_load<mode>): New pattern.
9083 (atomic_store<mode>): Likewise.
9084 (arm_load_acquire_exclusive<mode>): Likewise.
9085 (arm_load_acquire_exclusivesi): Likewise.
9086 (arm_load_acquire_exclusivedi): Likewise.
9087 (arm_store_release_exclusive<mode>): Likewise.
9089 2013-03-25 Catherine Moore <clm@codesourcery.com>
9091 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
9092 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
9093 * config/mip/predicates.md (lwsp_swsp_operand,
9094 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
9095 sb16_operand, db4_operand, db7_operand, ib3_operand,
9096 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
9097 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
9098 andi16_operand): New predicates.
9099 * config/mips/mips.md (compression): New attribute.
9100 (enabled): New attribute.
9101 (length): Consider compression in computing length.
9102 (shift_compression): New code attribute.
9103 (*add<mode>3): New operands. Record compression.
9104 (sub<mode>3): Likewise.
9105 (one_cmpl<mode>2): Likewise.
9106 (*and<mode>3): Likewise.
9107 (*ior<mode>3): Likewise.
9108 (unnamed pattern for xor): Likewise.
9109 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
9110 (*<optab><mode>3): Likewise.
9111 (*mov<mode>_internal: Likewise.
9112 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
9113 (mips_unsigned_immediate_p): New.
9114 (umips_lwsp_swsp_address_p): New.
9115 (m16_based_address_p): New.
9116 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
9117 (mips_unsigned_immediate_p): New prototype.
9118 (lwsp_swsp_address_p): New prototype.
9119 (m16_based_address_p): New prototype.
9120 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
9121 (mips_signed_immediate_p): New function.
9122 (m16_based_address_p): New function.
9123 (lwsp_swsp_address_p): New function.
9124 (mips_print_operand_punctuation): Recognize short delay slot insns
9125 for microMIPS.add<mode>3"
9127 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9130 * config/arm/iterators.md (v_cmp_result): New mode attribute.
9131 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
9133 2013-03-25 Richard Biener <rguenther@suse.de>
9135 PR tree-optimization/56689
9136 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
9139 2013-03-25 Richard Biener <rguenther@suse.de>
9141 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
9143 (memory_references): Likewise.
9144 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
9145 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
9146 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
9147 (gather_mem_refs_in_loops): Fold into ...
9148 (analyze_memory_references): ... this. Move initialization
9149 to tree_ssa_lim_initialize.
9150 (fill_always_executed_in): Rename to ...
9151 (fill_always_executed_in_1): ... this.
9152 (fill_always_executed_in): Move contains_call computation to
9153 this new function from ...
9154 (tree_ssa_lim_initialize): ... here.
9155 (tree_ssa_lim): Call fill_always_executed_in.
9157 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
9159 * postreload.c (reload_combine): Fix code detecting returns.
9161 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
9163 * function.c (emit_use_return_register_into_block): On cc0 targets,
9164 do not emit the sequence between cc0 setter and user.
9166 2013-03-25 Kai Tietz <ktietz@redhat.com>
9168 * config/i386/predicates.md (local_symbolic_operand): Interpret
9169 dll-imported symbols as none-local.
9171 2013-03-25 Richard Biener <rguenther@suse.de>
9173 * tree-ssa-loop-im.c (struct depend): Remove.
9174 (struct lim_aux_data): Make depends a vec of gimples.
9175 (free_lim_aux_data): Adjust.
9176 (add_dependency): Likewise.
9177 (set_level): Likewise.
9179 2013-03-25 Richard Biener <rguenther@suse.de>
9182 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
9183 the pointer returned by calls with ECF_MALLOC set.
9185 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
9187 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
9189 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
9191 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
9192 using MMXMODE mode iterator.
9193 (*move<mode>_internal): Merge with *movv2sf_internal and
9194 *movv2sf_internal_rex64 using MMXMODE mode iterator.
9196 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
9198 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
9199 (record_last_mem_set_info): Likewise.
9201 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
9202 of XNEWVEC followed by memset.
9203 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
9205 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
9207 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
9208 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
9209 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
9210 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
9211 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
9212 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
9213 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
9214 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
9215 BARRIER_P instead of GET_CODE.
9217 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
9219 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
9220 inaccuracy in the probing code.
9222 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
9223 (ctrapdi4): Likewise.
9225 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
9227 * calls.c (expand_call): Add missing guard to code handling return
9228 of non-BLKmode structures in MSB.
9229 * function.c (expand_function_end): Likewise.
9231 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
9233 * combine.c (try_combine): Adjust comment. Do not add the set of
9234 insn #0 if the destination indirectly is set or dies in insn #2.
9235 Tidy up code to distribute a new note.
9237 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
9239 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
9240 also for alternatives 16 and 17.
9242 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
9244 * config/i386/sse.md (*mov<mode>_internal): Merge with
9245 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
9246 Emit insn template depending on type attribute. Use
9247 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
9248 movd instead of movq mnemonic for interunit moves. Rewrite mode
9249 attribute calculation. Remove unit attribute calculation.
9250 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
9251 Set prefix_data16 attribute for DImode ssemov types.
9252 Use Ym instead of y for SSE-MMX conversion alternatives.
9253 Reorder operand constraints.
9255 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
9257 * df.h (df_insn_delete): Adjust prototype.
9258 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
9259 and let it decide whether mark the basic block dirty.
9260 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
9261 * df-scan.c (df_insn_info_delete): New helper function, split
9262 off from df_insn_delete.
9263 (df_scan_free_bb_info): Use it.
9264 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
9266 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
9267 that the insn is actually an insn and it has a non-NULL basic block.
9268 Do not mark basic block dirty if only deleting a DEBUG_INSN.
9270 2013-03-22 Richard Biener <rguenther@suse.de>
9272 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
9274 (mem_ref_alloc): Do not allocate them.
9275 (refs_independent_p): Do not query or maintain a cache.
9277 2013-03-22 Richard Biener <rguenther@suse.de>
9279 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
9280 (gather_mem_refs_in_loops): Do not compute it.
9281 (analyze_memory_references): Do not allocate it.
9282 (tree_ssa_lim_finalize): Do not free it.
9283 (for_all_locs_in_loop): Do not query all_refs_in_loop.
9285 2013-03-22 Richard Biener <rguenther@suse.de>
9287 * is-a.h (as_a): Use gcc_checking_assert.
9289 2013-03-22 Ian Bolton <ian.bolton@arm.com>
9291 * config/aarch64/aarch64.c (aarch64_print_operand): New
9292 format specifier for printing a constant in hex.
9293 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
9294 format specifier for printing second operand.
9296 2013-03-22 Richard Biener <rguenther@suse.de>
9298 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
9300 (gather_mem_refs_in_loops): Perform store accumulation here.
9301 (create_vop_ref_mapping_loop): Remove.
9302 (create_vop_ref_mapping): Likewise.
9303 (analyze_memory_references): Initialize refs_stored_in_loop.
9304 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
9305 (record_indep_loop): Remove.
9306 (record_dep_loop): New function.
9307 (ref_indep_loop_p_1): Adjust to only walk over references
9308 in the loop, not its subloops.
9309 (ref_indep_loop_p): Rename to ...
9310 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
9311 maintaining a more fine-grained cache.
9312 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
9313 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
9315 2013-03-22 Richard Biener <rguenther@suse.de>
9317 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
9318 (struct mem_ref): Make accesses_in_loop a vec of a vec of
9319 aggregate mem_ref_loc.
9320 (free_mem_ref_locs): Inline into ...
9321 (memref_free): ... this and adjust.
9322 (mem_ref_alloc): Adjust.
9323 (mem_ref_locs_alloc): Remove.
9324 (record_mem_ref_loc): Adjust.
9325 (get_all_locs_in_loop): Rewrite into ...
9326 (for_all_locs_in_loop): ... this iterator.
9327 (rewrite_mem_ref_loc): New functor.
9328 (rewrite_mem_refs): Use for_all_locs_in_loop.
9329 (sm_set_flag_if_changed): New functor.
9330 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
9331 (ref_always_accessed): New functor.
9332 (ref_always_accessed_p): Use for_all_locs_in_loop.
9334 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
9336 * tree-pass.h (PROP_gimple_lvec): New.
9337 * passes.c (dump_properties): Handle PROP_gimple_lvec.
9338 (init_optimization_passes): Move pass_lower_vector.
9339 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
9341 (pass_lower_vector): Provide PROP_gimple_lvec.
9342 (pass_lower_vector_ssa): Likewise.
9343 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
9345 2013-03-21 Mark Wielaard <mjw@redhat.com>
9347 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
9349 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
9351 * config/i386/i386.md (*movdi_internal): Disparage slightly
9352 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
9353 conversion alternatives.
9355 2013-03-21 Jakub Jelinek <jakub@redhat.com>
9358 * diagnostic.def (DK_WERROR): New kind.
9359 * diagnostic.h (werrorcount): Define.
9360 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
9361 promoted to DK_ERROR, increment DK_WERROR counter instead of
9363 * toplev.c (toplev_main): Call print_ignored_options even if
9364 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
9365 even if just werrorcount is non-zero.
9368 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
9370 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
9371 (string_cst_pool_decl): New function.
9372 (optimize_one_addr_into_implicit_ptr): New function.
9373 (resolve_addr_in_expr): Optimize DWARF location expression
9374 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
9375 which doesn't live in memory, but has DW_AT_location or
9376 DW_AT_const_value, or refers to a string literal, into
9377 DW_OP_GNU_implicit_pointer.
9378 (optimize_location_into_implicit_ptr): New function.
9379 (resolve_addr): If removing DW_AT_location of a variable because
9380 it was DW_OP_addr of address of the variable, but the variable doesn't
9381 live in memory, try to emit const value attribute for the initializer.
9383 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
9385 * tree.h (VECTOR_TYPE_P): New macro.
9386 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
9388 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
9389 VEC_COND_EXPR cannot be lvalues.
9390 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
9392 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
9394 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
9395 Restrict the transformation to equal modes.
9397 2013-03-21 Richard Biener <rguenther@suse.de>
9399 PR tree-optimization/39326
9400 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
9401 (MEM_ANALYZABLE): Adjust.
9402 (record_mem_ref_loc): Move bitmap ops ...
9403 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
9404 unanalyzable refs, do not record locations for it.
9405 (analyze_memory_references): Allocate ref zero as shared
9407 (refs_independent_p): Do not test for unanalyzed mems here.
9408 (ref_indep_loop_p_1): Special-case disambiguation against
9410 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
9412 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
9414 * config/arm/arm-protos.h (tune_params): Add
9415 prefer_neon_for_64bits field.
9416 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
9417 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
9418 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
9419 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
9420 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
9421 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
9422 (arm_option_override): Handle -mneon-for-64bits new option.
9423 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
9424 (prefer_neon_for_64bits): Declare new variable.
9425 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
9426 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
9427 (arch_enabled): Handle new arch types. Remove support for onlya8
9429 (one_cmpldi2): Use new arch names.
9430 (zero_extend<mode>di2, extend<mode>di2): Ditto.
9431 * config/arm/arm.opt (mneon-for-64bits): Add option.
9432 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
9433 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
9434 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
9436 * doc/invoke.texi (-mneon-for-64bits): Document.
9438 2013-03-21 Richard Biener <rguenther@suse.de>
9440 PR tree-optimization/39326
9441 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
9442 (sort_bbs_in_loop_postorder_cmp): New function.
9443 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
9445 2013-03-21 Richard Biener <rguenther@suse.de>
9447 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
9448 (vect_insert_into_interleaving_chain): Likewise.
9449 (vect_drs_dependent_in_basic_block): Inline ...
9450 (vect_slp_analyze_data_ref_dependence): ... here. New function,
9452 (vect_analyze_data_ref_dependence): ... here. Simplify.
9453 (vect_check_interleaving): Simplify.
9454 (vect_analyze_data_ref_dependences): Likewise. Split out ...
9455 (vect_slp_analyze_data_ref_dependences): ... this new function.
9456 (dr_group_sort_cmp): New function.
9457 (vect_analyze_data_ref_accesses): Compute data-reference groups
9458 here instead of in vect_analyze_data_ref_dependence. Use
9459 a more efficient algorithm.
9460 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
9461 vect_slp_analyze_data_ref_dependences. Call
9462 vect_analyze_data_ref_accesses earlier.
9463 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
9464 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
9465 (vect_slp_analyze_data_ref_dependences): New prototype.
9467 2013-03-21 Richard Biener <rguenther@suse.de>
9469 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
9470 ref is stored in the loop.
9471 (find_refs_for_sm): Walk only over all stores.
9472 (store_motion_loop): Allocate from lim_bitmap_obstack.
9473 (store_motion): Likewise.
9475 2013-03-21 Richard Biener <rguenther@suse.de>
9477 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
9478 Update virtual SSA form.
9480 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9482 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
9483 * configure: Regenerate.
9484 * config.in: Regenerate.
9485 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
9486 if !HAVE_LD_EH_FRAME_CIEV3.
9488 2013-03-21 Richard Biener <rguenther@suse.de>
9490 * tree-cfg.c (verify_expr_no_block): New function.
9491 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
9492 nor DECL_VALUE_EXPR have locations with associated blocks.
9493 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
9494 (clear_unused_block_pointer): Remove code dealing with
9495 blocks in DECL_DEBUG_EXPR locations.
9497 2013-03-21 Richard Biener <rguenther@suse.de>
9499 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
9500 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
9501 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
9502 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
9503 instead of DECL_DEBUG_EXPR_IS_FROM.
9504 * gimplify.c (gimplify_modify_expr): Likewise.
9505 * tree-cfg.c (verify_expr_location_1): Likewise.
9506 * tree-complex.c (create_one_component_var): Likewise.
9507 * tree-sra.c (create_access_replacement): Likewise.
9508 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
9509 (clear_unused_block_pointer): Likewise.
9510 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
9511 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
9512 * var-tracking.c (var_debug_decl): Likewise.
9513 (track_expr_p): Likewise.
9514 * tree-inline.c (add_local_variables): Likewise. Set
9515 DECL_HAS_DEBUG_EXPR_P after copying it.
9516 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
9517 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
9519 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
9522 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
9523 * configure: Regenerate.
9524 * config.in: Regenerate.
9525 * config/i386/i386.md (*movdf_internal): Use
9526 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
9527 movd instead of movq mnemonic for interunit moves.
9528 (*movdi_internal): Ditto.
9530 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9532 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
9533 (abd<mode>_3): New pattern.
9534 (aba<mode>_3): New pattern.
9535 (fabd<mode>_3): New pattern.
9537 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9539 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
9540 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
9541 occurrence of REGISTER_PREFIX as its empty string.
9543 2013-03-20 Jeff Law <law@redhat.com>
9545 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
9546 addititional equivalences for equality comparisons between an SSA_NAME
9547 and a constant where the SSA_NAME was set from a widening conversion.
9549 2013-03-20 Walter Lee <walt@tilera.com>
9551 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
9553 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
9555 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
9556 depending on type attribute.
9557 (*movti_internal): Ditto.
9558 (*movtf_internal): Ditto.
9559 (*movxf_internal): Ditto.
9560 (*movdf_internal): Ditto.
9561 (*movsf_internal): Ditto.
9563 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
9565 * config/i386/i386.md (*movti_internal): Set prefix attribute to
9566 maybe_vex for sselog1 and ssemov types.
9567 (*movdi_internal): Reorder operand constraints.
9568 (*movsi_internal): Ditto. Set prefix attribute to
9569 maybe_vex for sselog1 and ssemov types.
9570 (*movtf_internal): Set prefix attribute to maybe_vex
9571 for sselog1 and ssemov types.
9572 (*movdf_internal): Ditto. Set prefix_data16 attribute for
9573 DImode ssemov types. Reorder operand constraints.
9574 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
9575 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
9576 attribute for SImode ssemov types. Reorder operand constraints.
9578 2013-03-20 Martin Jambor <mjambor@suse.cz>
9580 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
9581 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
9583 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
9585 * config/rs6000/predicates.md (indexed_address, update_address_mem
9586 update_indexed_address_mem): New predicates.
9587 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
9588 attribute for load/store instructions.
9589 * config/rs6000/dfp.md (movsd_store): Likewise.
9590 (movsd_load): Likewise.
9591 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
9592 (unnamed HI->DI extend define_insn): Likewise.
9593 (unnamed SI->DI extend define_insn): Likewise.
9594 (unnamed QI->SI extend define_insn): Likewise.
9595 (unnamed QI->HI extend define_insn): Likewise.
9596 (unnamed HI->SI extend define_insn): Likewise.
9597 (unnamed HI->SI extend define_insn): Likewise.
9598 (extendsfdf2_fpr): Likewise.
9599 (movsi_internal1): Likewise.
9600 (movsi_internal1_single): Likewise.
9601 (movhi_internal): Likewise.
9602 (movqi_internal): Likewise.
9603 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
9604 attribute for load/store instructions.
9605 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
9607 (mov<mode>_softfloat): Likewise.
9608 (mov<mode>_hardfloat32): Likewise.
9609 (mov<mode>_hardfloat64): Likewise.
9610 (mov<mode>_softfloat64): Likewise.
9611 (movdi_internal32): Likewise.
9612 (movdi_internal64): Likewise.
9613 (probe_stack_<mode>): Likewise.
9615 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
9617 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
9618 floating point, and decimal floating point to reload iterator.
9620 * config/rs6000/constraints.md (wl constraint): New constraints to
9621 return FLOAT_REGS if certain options are used to reduce the number
9622 of separate patterns that exist in the file.
9623 (wx constraint): Likewise.
9624 (wz constraint): Likewise.
9626 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
9627 -mdebug=reg, print wg, wl, wx, and wz constraints.
9628 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
9629 Initialize the reload functions for 64-bit binary/decimal floating
9631 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
9632 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
9633 create the buffer on the stack to overcome not having a 32-bit
9635 (rs6000_emit_move): Likewise.
9636 (rs6000_secondary_memory_needed_rtx): Likewise.
9637 (rs6000_alloc_sdmode_stack_slot): Likewise.
9638 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
9639 via xxlxor, just like DFmode 0.0.
9641 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
9642 define as 1 if we are running on a power7 or newer.
9643 (enum r6000_reg_class_enum): Add new constraints.
9645 * config/rs6000/dfp.md (movsd): Delete, combine with binary
9646 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
9647 with other moves by using conditional constraits (wg). Use LFIWZX
9648 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
9649 (movsd splitter): Likewise.
9650 (movsd_hardfloat): Likewise.
9651 (movsd_softfloat): Likewise.
9653 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
9654 binary and decimal floating point moves.
9655 (fmove_ok): New attributes to combine binary and decimal floating
9656 point moves, and to combine power6x (mfpgpr) moves along normal
9658 (real_value_to_target): Likewise.
9665 (movsf): Combine binary and decimal floating point moves. Combine
9666 power6x (mfpgpr) moves with other moves by using conditional
9667 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
9668 (mov<mode> for SFmode/SDmode); Likewise.
9669 (SFmode/SDmode splitters): Likewise.
9670 (movsf_hardfloat): Likewise.
9671 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
9672 (movsf_softfloat): Likewise.
9673 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
9675 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
9676 wx and wz constraints.
9678 * config/rs6000/constraints.md (wg constraint): New constraint to
9679 return FLOAT_REGS if -mmfpgpr (power6x) was used.
9681 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
9684 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
9685 -mdebug=reg, print wg, wl, wx, and wz constraints.
9686 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
9687 Initialize the reload functions for 64-bit binary/decimal floating
9689 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
9690 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
9691 create the buffer on the stack to overcome not having a 32-bit
9693 (rs6000_emit_move): Likewise.
9694 (rs6000_secondary_memory_needed_rtx): Likewise.
9695 (rs6000_alloc_sdmode_stack_slot): Likewise.
9696 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
9697 via xxlxor, just like DFmode 0.0.
9699 * config/rs6000/dfp.md (movdd): Delete, combine with binary
9700 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
9701 with other moves by using conditional constraits (wg). Use LFIWZX
9702 and STFIWX for loading SDmode on power7.
9703 (movdd splitters): Likewise.
9704 (movdd_hardfloat32): Likewise.
9705 (movdd_softfloat32): Likewise.
9706 (movdd_hardfloat64_mfpgpr): Likewise.
9707 (movdd_hardfloat64): Likewise.
9708 (movdd_softfloat64): Likewise.
9710 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
9711 64-bit binary and decimal floating point moves.
9712 (FMOVE64X): Likewise.
9713 (movdf): Combine 64-bit binary and decimal floating point moves.
9714 Combine power6x (mfpgpr) moves with other moves by using
9715 conditional constraits (wg).
9716 (mov<mode> for DFmode/DDmode): Likewise.
9717 (DFmode/DDmode splitters): Likewise.
9718 (movdf_hardfloat32): Likewise.
9719 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
9720 (movdf_softfloat32): Likewise.
9721 (movdf_hardfloat64_mfpgpr): Likewise.
9722 (movdf_hardfloat64): Likewise.
9723 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
9724 (movdf_softfloat64): Likewise.
9725 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
9726 (reload_<mode>_load): Move to later in the file so they aren't in
9727 the middle of the floating point move insns.
9728 (reload_<mode>_store): Likewise.
9730 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
9733 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
9734 constraint if -mdebug=reg.
9735 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
9736 Enable using dd reload support if needed.
9738 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
9739 binary and decimal floating point moves in rs6000.md.
9740 (movtd_internal): Likewise.
9742 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
9743 decimal floating point moves.
9745 (movtf_internal): Likewise.
9746 (mov<mode>_internal, TDmode/TFmode): Likewise.
9747 (movtf_softfloat): Likewise.
9748 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
9750 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
9751 movdi_internal64, using wg constraint for move direct operations.
9752 (movdi_internal64): Likewise.
9754 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
9755 MODES_TIEABLE_P for selected modes. Print the numerical value of
9756 the various virtual registers. Use GPR/FPR first/last values,
9757 instead of hard coding the register numbers. Print which modes
9758 have reload functions registered.
9759 (rs6000_option_override_internal): If -mdebug=reg, trace the options
9760 settings before/after setting cpu, target and subtarget settings.
9761 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
9762 and for secondary reload failures in rs6000_secondary_reload_inner.
9763 (rs6000_secondary_reload_fail): Likewise.
9764 (rs6000_secondary_reload_inner): Likewise.
9766 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
9767 macros for first/last GPR and FPR registers.
9768 (LAST_GPR_REGNO): Likewise.
9769 (FIRST_FPR_REGNO): Likewise.
9770 (LAST_FPR_REGNO): Likewise.
9772 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
9773 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
9774 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
9775 (vcond<mode><mode>): Likewise.
9776 (vcondu<mode><mode>): Likewise.
9777 (vector_gtu<mode>): Likewise.
9778 (vector_gte<mode>): Likewise.
9779 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
9780 to prevent the compiler from converting DImode operations to TImode.
9781 (ior<mode>3): Likewise.
9782 (and<mode>3): Likewise.
9783 (one_cmpl<mode>2): Likewise.
9784 (nor<mode>3): Likewise.
9785 (andc<mode>3): Likewise.
9787 * config/rs6000/constraints.md (wt constraint): New constraint
9788 that returns VSX_REGS if TImode is allowed in VSX registers.
9790 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
9793 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
9794 similar to TImode, but it is restricted to being in the GPRs.
9796 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
9797 TImode to occupy a single VSX register.
9799 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
9800 -mvsx-timode for power7/power8.
9801 (power7 cpu): Likewise.
9802 (power8 cpu): Likewise.
9804 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
9805 sure that TFmode/TDmode take up two registers if they are ever
9806 allowed in the upper VSX registers.
9807 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
9809 (rs6000_init_hard_regno_mode_ok): Likewise.
9810 (rs6000_debug_reg_global): Add debugging for PTImode and wt
9811 constraint. Print if LRA is turned on.
9812 (rs6000_option_override_internal): Give an error if -mvsx-timode
9813 and VSX is not enabled.
9814 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
9815 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
9816 to reg+offset addressing. Use PTImode when checking offset
9817 addresses for validity.
9818 (reg_offset_addressing_ok_p): Likewise.
9819 (rs6000_legitimate_offset_address_p): Likewise.
9820 (rs6000_legitimize_address): Likewise.
9821 (rs6000_legitimize_reload_address): Likewise.
9822 (rs6000_legitimate_address_p): Likewise.
9823 (rs6000_eliminate_indexed_memrefs): Likewise.
9824 (rs6000_emit_move): Likewise.
9825 (rs6000_secondary_reload): Likewise.
9826 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
9827 reloads to fpr registers to continue to use reg+offset addressing,
9828 but 64-bit reloads to altivec registers need reg+reg addressing.
9829 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
9830 it. Treat LO_SUM like a PLUS operation.
9831 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
9832 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
9833 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
9834 registers to share a register with a smaller sized type, since VSX
9835 puts scalars in the upper 64-bits.
9836 (print_operand): Add support for PTImode.
9837 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
9838 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
9839 registers, but don't have arithmetic support.
9840 (rs6000_memory_move_cost): Add test for VSX.
9841 (rs6000_opt_masks): Add -mvsx-timode.
9843 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
9846 (VSr): Use wt constraint for TImode.
9847 (VSv): Drop TImode support.
9848 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
9849 (vsx_movti_64bit): Likewise.
9850 (vsx_movti_32bit): Likewise.
9851 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
9852 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
9853 one '?' on the appropriate output constraint. Do not allow TImode
9854 logical operations on 32-bit systems.
9855 (vsx_ior<mode>3): Likewise.
9856 (vsx_xor<mode>3): Likewise.
9857 (vsx_one_cmpl<mode>2): Likewise.
9858 (vsx_nor<mode>3): Likewise.
9859 (vsx_andc<mode>3): Likewise.
9860 (vsx_concat_<mode>): Likewise.
9861 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
9863 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
9864 OPTION_MASK_VSX_TIMODE.
9865 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
9866 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
9868 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
9869 (TI2 iterator): New iterator for TImode, PTImode.
9870 (wd mode attribute): Add values for vector types.
9871 (movti_string): Replace TI move operations with operations for TImode
9872 and PTImode. Add support for TImode being allowed in VSX registers.
9873 (mov<mode>_string, TImode/PTImode): Likewise.
9874 (movti_ppc64): Likewise.
9875 (mov<mode>_ppc64, TImode/PTImode): Likewise.
9876 (TI mode splitters): Likewise.
9878 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
9881 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
9883 PR tree-optimization/56355
9884 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
9885 Also handle integers with undefined overflow.
9887 2013-03-20 Catherine Moore <clm@codesourcery.com>
9888 Maciej W. Rozycki <macro@codesourcery.com>
9889 Tom de Vries <tom@codesourcery.com>
9890 Nathan Sidwell <nathan@codesourcery.com>
9891 Iain Sandoe <iain@codesourcery.com>
9892 Nathan Froyd <froydnj@codesourcery.com>
9893 Chao-ying Fu <fu@mips.com>
9895 * doc/extend.texi: (micromips, nomicromips, nocompression):
9896 Document new function attributes.
9897 * doc/invoke.texi (minterlink-compressed, mmicromips,
9898 m14k, m14ke, m14kec): Document new options.
9899 (minterlink-mips16): Update documentation.
9900 * doc/md.texi (ZC, ZD): Document new constraints.
9901 * configure.ac (gcc_cv_as_micromips): Check if linker
9902 supports the .set micromips directive.
9903 * configure: Regenerate.
9904 * config.in: Regenerate.
9905 * config/mips/mips-tables.opt: Regenerate.
9906 * config/mips/micromips.md: New file.
9907 * constraints.md (ZC, ZD): New constraints.
9908 * config/mips/predicates.md (movep_src_register): New predicate.
9909 (movep_src_operand): New predicate.
9910 (non_volatile_mem_operand): New predicate.
9911 * config/mips/mips.md (multimem): New type.
9912 (length): Differentiate between 17-bit and 18-bit branch offsets.
9913 (MOVEP1, MOVEP2): New mode iterator.
9914 (mov_<load>l): Use ZC constraint.
9915 (mov_<load>r): Likewise.
9916 (mov_<store>l): Likewise.
9917 (mov_<store>r): Likewise.
9918 (*branch_equality<mode>_inverted): Add microMIPS support.
9919 (*branch_equality<mode>): Likewise.
9920 (*jump_absolute): Likewise.
9921 (indirect_jump_<mode>): Likewise.
9922 (tablejump_<mode>): Likewise.
9923 (<optab>_internal): Likewise.
9924 (sibcall_internal): Likewise.
9925 (sibcall_value_internal): Likewise.
9926 (prefetch): Use constraint ZD.
9927 * config/mips/mips.opt (minterlink-compressed): New option.
9928 (minterlink-mips16): Now an alias for minterlink-compressed.
9929 (mmicromips): New option.
9930 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
9931 (compare_and_swap_12): Likewise.
9932 (sync_add<mode>): Likewise.
9933 (sync_<optab>_12): Likewise.
9934 (sync_old_<optab>_12): Likewise.
9935 (sync_new_<optab>_12): Likewise.
9936 (sync_nand_12): Likewise.
9937 (sync_old_nand_12): Likewise.
9938 (sync_new_nand_12): Likewise.
9939 (sync_sub<mode>): Likewise.
9940 (sync_old_add<mode>): Likewise.
9941 (sync_old_sub<mode>): Likewise.
9942 (sync_new_add<mode>): Likewise.
9943 (sync_new_sub<mode>): Likewise.
9944 (sync_<optab><mode>): Likewise.
9945 (sync_old_<optab><mode>): Likewise.
9946 (sync_new_<optab><mode>): Likewise.
9947 (sync_nand<mode>): Likewise.
9948 (sync_old_nand<mode>): Likewise.
9949 (sync_new_nand<mode>): Likewise.
9950 (sync_lock_test_and_set<mode>): Likewise.
9951 (test_and_set_12): Likewise.
9952 (atomic_compare_and_swap<mode>): Likewise.
9953 (atomic_exchange<mode>_llsc): Likewise.
9954 (atomic_fetch_add<mode>_llsc): Likewise.
9955 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
9956 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
9957 (umips_save_restore_pattern_p): Likewise.
9958 (umips_load_store_pair_p): Likewise.
9959 (umips_output_load_store_pair): Likewise.
9960 (umips_movep_target_p): Likewise.
9961 (umips_12bit_offset_address_p): Likewise.
9962 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
9963 (mips_base_mips16): Rename this...
9964 (mips_base_compression_flags): ...to this. Update all uses.
9965 (mips_attribute_table): Add micromips, nomicromips and nocompression.
9966 (mips_mips16_decl_p): Delete.
9967 (mips_nomips16_decl_p): Delete.
9968 (mips_get_compress_on_flags): New function.
9969 (mips_get_compress_off_flags): New function.
9970 (mips_get_compress_mode): New function.
9971 (mips_get_compress_on_name): New function.
9972 (mips_get_compress_off_name): New function.
9973 (mips_insert_attributes): Support multiple compression types.
9974 (mips_merge_decl_attributes): Likewise.
9975 (umips_12bit_offset_address_p): New function.
9976 (mips_start_function_definition): Emit .set micromips directive.
9977 (mips_call_may_need_jalx_p): New function.
9978 (mips_function_ok_for_sibcall): Add microMIPS support.
9979 (mips_print_operand_punctuation): Support short delay slots and
9981 (umips_swm_mask, umips_swm_encoding): New.
9982 (umips_build_save_restore): New function.
9983 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
9984 (was_mips16_p): Remove.
9985 (old_compression_mode): New.
9986 (mips_set_compression_mode): New function.
9987 (mips_set_current_function): Add microMIPS support.
9988 (mips_option_override): Likewise.
9989 (umips_save_restore_pattern_p): New function.
9990 (umips_output_save_restore): New function.
9991 (umips_load_store_pair_p_1): New function.
9992 (umips_load_store_pair_p): New function.
9993 (umips_output_load_store_pair_1): New function.
9994 (umips_output_load_store_pair): New function.
9995 (umips_movep_target_p) New function.
9996 (mips_prepare_pch_save): Add microMIPS support.
9997 * config/mips/mips.h (TARGET_COMPRESSION): New.
9998 (TARGET_CPU_CPP_BUILTINS): Update macro
9999 to use new compression flags and to support microMIPS.
10000 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
10001 (MIPS_ARCH_FLOAT_SPEC): Likewise.
10002 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
10003 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
10004 (ASM_SPEC): Support mmicromips and mno-micromips.
10005 (M16STORE_REG_P): New macro.
10006 (MIPS_CALL): Support TARGET_MICROMIPS.
10007 (MICROMIPS_J): New macro.
10008 (mips_base_mips16): Rename this...
10009 (mips_base_compression_flags): ...to this.
10010 (UMIPS_12BIT_OFFSET_P): New macro.
10011 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
10012 (MULTILIB_DIRNAMES): Likewise.
10013 2013-03-20 Richard Biener <rguenther@suse.de>
10015 PR tree-optimization/56661
10016 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
10017 the result does not have to be distinct.
10019 2013-03-20 Richard Biener <rguenther@suse.de>
10021 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
10024 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10025 Steven Bosscher <steven@gcc.gnu.org>
10027 PR rtl-optimization/56605
10028 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
10030 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
10033 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
10034 that require movd instead of movq.
10036 2013-03-20 Richard Biener <rguenther@suse.de>
10038 * tree-ssa-structalias.c (struct variable_info): Add pointer
10039 to the first field of an aggregate with sub-vars. Make
10040 this and the pointer to the next subfield its ID.
10041 (vi_next): New function.
10042 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
10043 storedanything_id, integer_id): Increment by one.
10044 (new_var_info, get_call_vi, lookup_call_clobber_vi,
10045 get_call_clobber_vi): Adjust.
10046 (solution_set_expand): Simplify and speedup.
10047 (solution_set_add): Inline into ...
10048 (set_union_with_increment): ... this. Adjust accordingly.
10049 (do_sd_constraint): Likewise.
10050 (do_ds_constraint): Likewise.
10051 (do_complex_constraint): Simplify.
10052 (build_pred_graph): Adjust.
10053 (solve_graph): Likewise. Simplify and speedup.
10054 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
10055 get_constraint_for_component_ref, get_constraint_for_1,
10056 first_vi_for_offset, first_or_preceding_vi_for_offset,
10057 create_function_info_for, create_variable_info_for_1,
10058 create_variable_info_for, intra_create_variable_infos): Adjust.
10059 (init_base_vars): Push NULL for ID zero.
10060 (compute_points_to_sets): Adjust.
10062 2013-03-20 Richard Biener <rguenther@suse.de>
10064 * cfgloop.c (verify_loop_structure): Streamline and avoid
10065 ICEing on corrupt loop tree.
10066 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
10069 2013-03-20 Richard Biener <rguenther@suse.de>
10071 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
10072 check whether an SSA update is needed.
10074 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
10076 * config/mips/constraints.md (T): Rename to...
10080 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
10081 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
10083 2013-03-19 Ian Bolton <ian.bolton@arm.com>
10085 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
10086 (*subsi3_carryin_uxtw): Likewise.
10088 2013-03-19 Ian Bolton <ian.bolton@arm.com>
10090 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
10091 (*rorsi3_insn_uxtw): Likewise.
10093 2013-03-19 Ian Bolton <ian.bolton@arm.com>
10095 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
10096 (*extrsi5_insn_uxtw): Likewise.
10098 2013-03-19 Richard Biener <rguenther@suse.de>
10100 PR tree-optimization/56273
10101 * passes.c (init_optimization_passes): Move second VRP after DOM.
10103 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
10105 * config/i386/i386.md (*movti_internal): Merge from
10106 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
10107 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
10108 nox64 isa attributes.
10110 2013-03-18 Richard Biener <rguenther@suse.de>
10112 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
10114 (merge_node_constraints): Likewise.
10115 (build_succ_graph): Likewise.
10116 (valid_graph_edge): Inline into single caller.
10117 (unify_nodes): Likewise. Use bitmap_set_bit return value
10119 (scc_visit): Fix formatting and variable use.
10120 (do_sd_constraint): Use gcc_checking_assert.
10121 (do_ds_constraint): Likewise.
10122 (do_complex_constraint): Likewise.
10123 (condense_visit): Likewise. Cleanup.
10124 (dump_pred_graph): New function.
10125 (perform_var_substitution): Dump the pred-graph before
10126 variable substitution.
10127 (find_equivalent_node): Use gcc_checking_assert.
10128 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
10130 2013-03-18 Richard Biener <rguenther@suse.de>
10132 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
10133 Remove cond_expr_stmt_list argument and do not gimplify the
10135 (vect_loop_versioning): Adjust.
10136 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
10137 Cleanup to use less temporaries.
10138 (vect_create_data_ref_ptr): Cleanup.
10140 2013-03-18 Jakub Jelinek <jakub@redhat.com>
10142 PR tree-optimization/56635
10143 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
10144 require types_compatible_p types.
10146 2013-03-18 Nick Clifton <nickc@redhat.com>
10148 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
10149 spurious backslash.
10151 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
10152 Add missing line to comment describing function.
10154 2013-03-18 Richard Biener <rguenther@suse.de>
10156 PR tree-optimization/56210
10157 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10158 Handle string / character search functions.
10159 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
10161 2013-03-18 Richard Biener <rguenther@suse.de>
10163 PR middle-end/56483
10164 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
10165 and implement properly.
10166 * gimple.h (gimple_cond_single_var_p): Remove.
10168 2013-03-18 Richard Biener <rguenther@suse.de>
10170 * tree-data-ref.h (find_data_references_in_loop): Declare.
10171 * tree-data-ref.c (get_references_in_stmt): Use a stack
10172 vector pre-allocated in the callers.
10173 (find_data_references_in_stmt): Adjust.
10174 (graphite_find_data_references_in_stmt): Likewise.
10175 (create_rdg_vertices): Likewise.
10176 (find_data_references_in_loop): Export.
10177 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
10178 Compute dependences here...
10179 (vect_analyze_data_refs): ...not here. When we encounter
10180 a non-vectorizable data reference in basic-block vectorization
10181 truncate the data reference vector. Do not bother to
10182 fixup data-dependence information for gather loads.
10183 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
10184 of data references, as reported.
10186 2013-03-18 Richard Biener <rguenther@suse.de>
10188 PR tree-optimization/3713
10189 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
10190 has_constants and expr.
10191 (stmt_has_constants): Properly valueize SSA names when deciding
10192 whether the stmt has constants.
10194 2013-03-18 Richard Biener <rguenther@suse.de>
10196 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
10197 whole function when there is nothing to do.
10198 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
10199 * tree-vectorizer.c (vectorize_loops): Update virtual and
10200 loop-closed SSA once.
10201 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
10203 2013-03-18 Richard Biener <rguenther@suse.de>
10205 PR middle-end/56113
10206 * domwalk.c (bb_postorder): New global static.
10207 (cmp_bb_postorder): New function.
10208 (walk_dominator_tree): Replace scheme imposing an order for
10209 visiting dominator sons by one sorting them at the time they
10210 are pushed on the stack.
10212 2013-03-18 Richard Biener <rguenther@suse.de>
10214 PR tree-optimization/39326
10215 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
10216 (struct mem_ref): Replace mem member with ao_ref typed member.
10217 (MEM_ANALYZABLE): Adjust.
10218 (memref_eq): Likewise.
10219 (mem_ref_alloc): Likewise.
10220 (gather_mem_refs_stmt): Likewise.
10221 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
10222 (execute_sm_if_changed_flag_set): Adjust.
10223 (execute_sm): Likewise.
10224 (ref_always_accessed_p): Likewise.
10225 (refs_independent_p): Likewise.
10226 (can_sm_ref_p): Likewise.
10228 2013-03-18 Jakub Jelinek <jakub@redhat.com>
10231 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
10232 return 1 even for !unsignedp.
10234 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
10236 * config/i386/i386.md (isa): Add x64 and nox64.
10237 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
10238 (*pushtf): Enable *roF alternative for x64 isa only.
10239 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
10240 mode attribute of integer alternatives to DImode for TARGET_64BIT.
10241 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
10242 (*movtf_internal): Merge from *movtf_internal_rex64 and
10243 *movtf_internal_sse. Use x64 and nox64 isa attributes.
10244 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
10245 nox64 isa attributes.
10246 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
10247 nox64 isa attributes.
10248 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
10250 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
10252 * config/alpha/alpha.c (TARGET_LRA_P): New define.
10254 2013-03-17 Jakub Jelinek <jakub@redhat.com>
10257 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
10258 class names. Remove trailing comma after "ALL_REGS".
10260 2013-03-16 Jan Hubicka <jh@suse.cz>
10262 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
10263 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
10264 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
10265 of cgraph_get_create_node.
10266 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10268 2013-03-16 Jason Merrill <jason@redhat.com>
10271 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
10272 with DW_AT_default_value.
10274 2013-03-16 Jakub Jelinek <jakub@redhat.com>
10276 * BASE-VER: Set to 4.9.0.
10278 2013-03-14 Andi Kleen <ak@linux.intel.com>
10281 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
10282 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
10283 Document _x* TSX intrinsics.
10285 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
10286 David Holsgrove <david.holsgrove@xilinx.com>
10288 * configure.ac: Add MicroBlaze TLS support detection.
10289 * configure: Regenerate.
10290 * config/microblaze/microblaze-protos.h
10291 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
10292 symbol_mentioned_p, label_mentioned_p): Add prototypes.
10293 * config/microblaze/microblaze.c (microblaze_address_type): Add
10294 ADDRESS_TLS and tls_reloc address types.
10295 (microblaze_address_info): Add tls_reloc.
10296 (TARGET_HAVE_TLS): Define.
10297 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
10298 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
10299 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
10300 load_tls_operand, microblaze_call_tls_get_addr,
10301 microblaze_legitimize_tls_address): New functions.
10302 (microblaze_classify_unspec): Handle UNSPEC_TLS.
10303 (get_base_reg): Use microblaze_tls_symbol_p.
10304 (microblaze_classify_address): Handle TLS.
10305 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
10306 label_mentioned_p and microblaze_tls_referenced_p.
10307 (microblaze_legitimize_address): Handle TLS.
10308 (microblaze_address_insns): Handle ADDRESS_TLS.
10309 (pic_address_needs_scratch): Handle TLS.
10310 (print_operand_address): Handle TLS.
10311 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
10312 (microblaze_expand_move): Handle TLS.
10313 (microblaze_legitimate_constant_p): Check
10314 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
10315 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
10316 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
10317 (PIC_OFFSET_TABLE_REGNUM): Set.
10318 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
10319 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
10320 (addsi3, movsi_internal2, movdf_internal): Update constraints
10321 * config/microblaze/predicates.md (arith_plus_operand): Define
10322 (move_operand): Redefine as move_src_operand,
10323 check microblaze_tls_referenced_p.
10325 2013-03-14 Ian Bolton <ian.bolton@arm.com>
10327 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
10328 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
10330 2013-03-14 Ian Bolton <ian.bolton@arm.com>
10332 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
10335 2013-03-14 Jakub Jelinek <jakub@redhat.com>
10337 PR tree-optimization/53265
10338 * common.opt (Waggressive-loop-optimizations): New option.
10339 * tree-ssa-loop-niter.c: Include tree-pass.h.
10340 (do_warn_aggressive_loop_optimizations): New function.
10341 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
10342 if number_of_latch_executions returned constant.
10343 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
10344 early. If number_of_latch_executions returned constant, set
10345 nb_iterations_upper_bound back to it.
10346 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
10348 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
10349 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
10351 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
10352 (MULTILIB_OSDIRNAMES): Set.
10353 * genmultilib: If defaultosdirname doesn't start with :: , set
10354 defaultosdirname2 instead, clear it and emit two . multilib_raw
10355 entries instead of just one.
10357 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
10359 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
10360 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
10361 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
10362 (SUBTARGET_OVERRIDE_OPTIONS): New.
10364 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
10367 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
10368 (musermode): Convert to Var(TARGET_USERMODE).
10369 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
10370 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
10371 * config/sh/sh.c (sh_option_override): Use
10372 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
10373 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
10375 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
10377 (udivsi3_i4_single, divsi3_i4_single): Use
10378 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
10380 2013-03-13 Dave Korn <dave.korn.cygwin@....>
10382 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
10385 2013-03-13 Richard Biener <rguenther@suse.de>
10387 PR tree-optimization/56608
10388 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
10389 calls when vectorizing basic-blocks.
10391 2013-03-13 Jakub Jelinek <jakub@redhat.com>
10394 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
10397 2013-03-12 Jakub Jelinek <jakub@redhat.com>
10399 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
10401 2013-03-11 Jan Hubicka <jh@suse.cz>
10404 * lto-streamer-out.c (output_symbol_p): Skip references from
10405 constructors of external variables.
10407 2013-03-11 Jan Hubicka <jh@suse.cz>
10409 PR middle-end/56571
10410 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
10412 * emit-rtl.c (verify_rtx_sharing): Likewise.
10413 (copy_insn_1): Likewise.
10414 * rtl.c (copy_rtx): Likewise.
10416 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
10419 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
10420 output_operand_lossage message.
10422 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
10425 * arm.c (shift_op): Validate RTL pattern on the fly.
10426 (arm_print_operand, case 'S'): Don't use shift_operator to validate
10429 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10432 * config/pa/pa.md (call_value): Check for calls to powf and direct to
10433 new call patterns that clobber %fr12.
10434 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
10435 split and postreload patterns.
10436 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
10437 registers %fr12 and %fr12R as call used.
10439 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
10441 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
10442 (canon_address, record_store, replace_read, check_mem_read_rtx,
10443 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
10444 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
10445 rest_of_handle_dse): Likewise.
10447 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
10449 PR middle-end/56524
10450 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
10452 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
10453 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
10454 (save_optabs_if_changed): Replace with...
10455 (init_tree_optimization_optabs): ...this.
10456 * optabs.c (save_optabs_if_changed): Rename to...
10457 (init_tree_optimization_optabs): ...this. Take the optimization node
10458 as argument. Do nothing if the base optabs are already correct.
10459 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
10460 to recompute optabs.
10461 * function.h (function): Remove optabs field.
10462 * function.c (invoke_set_current_function_hook): Call
10463 init_tree_optimization_optabs. Use the result to initialize
10466 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
10468 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
10469 if GTMA_HAS_NO_INSTRUMENTATION.
10470 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
10471 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
10472 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
10473 * gimple-pretty-print.c (dump_gimple_transaction): Handle
10474 GTMA_HAS_NO_INSTRUMENTATION.
10476 2013-03-08 Jakub Jelinek <jakub@redhat.com>
10478 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
10481 2013-03-08 Marek Polacek <polacek@redhat.com>
10482 Jakub Jelinek <jakub@redhat.com>
10484 PR tree-optimization/56478
10485 * predict.c (is_comparison_with_loop_invariant_p): Change the
10486 type of loop_step to tree.
10487 (predict_loops): Adjust.
10488 (predict_iv_comparison): Perform the computations on double_ints.
10490 2013-03-08 Richard Biener <rguenther@suse.de>
10492 PR tree-optimization/56570
10493 * tree-cfg.c (verify_expr_location_1): Verify locations for
10495 * tree-sra.c (create_access_replacement): Strip locations
10496 from DECL_DEBUG_EXPRs.
10498 2013-03-08 Richard Biener <rguenther@suse.de>
10500 * tree-inline.c (expand_call_inline): Do not associate
10501 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
10502 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
10504 2013-03-08 Richard Biener <rguenther@suse.de>
10506 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
10507 or block changes with -Og. Fix for location / block encoding
10508 changes and PHI arguments with locations.
10510 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
10512 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
10514 (struct output_info): Likewise.
10515 (register_overhead): Remove bad gcc_assert.
10516 (bitmap_find_bit): If there is only a single bitmap element, do not
10517 count a miss as a search.
10518 (print_statistics): Update for counter type changes.
10519 (dump_bitmap_statistics): Likewise. Print headers such that they
10520 are properly lined up with the printed counters.
10522 2013-03-07 Jakub Jelinek <jakub@redhat.com>
10524 PR tree-optimization/56559
10525 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
10526 check that it has only a single use.
10528 2013-03-07 Richard Biener <rguenther@suse.de>
10530 * doc/invoke.texi (fwhole-program): Discourage use in combination
10533 2013-03-06 Jakub Jelinek <jakub@redhat.com>
10535 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
10537 PR tree-optimization/56539
10538 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
10539 instead of GSI_CONTINUE_LINKING as last argument to
10540 force_gimple_operand_gsi. Adjust function comment.
10542 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
10545 PR middle-end/56548
10546 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
10547 promoted mode, convert the result back to the original mode.
10549 2013-03-06 Richard Biener <rguenther@suse.de>
10551 PR middle-end/56294
10552 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
10553 (insert_updated_phi_nodes_compare_uids): New function.
10554 (update_ssa): Sort symbols_to_rename after UID before
10555 traversing it to insert PHI nodes.
10557 2013-03-06 Richard Biener <rguenther@suse.de>
10559 PR middle-end/50494
10560 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
10561 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
10564 2013-02-13 Richard Biener <rguenther@suse.de>
10567 * varasm.c (output_constant_def_1): Get the decl representing
10568 the constant as argument.
10569 (output_constant_def): Wrap output_constant_def_1.
10570 (make_decl_rtl): Use output_constant_def_1 with the decl
10571 representing the constant.
10572 (build_constant_desc): Optionally re-use a decl already
10573 representing the constant.
10574 (tree_output_constant_def): Adjust.
10576 2013-03-06 Joey Ye <joey.ye@arm.com>
10579 * gcc.c (convert_white_space): New function.
10580 (main): Handles white space in function name.
10582 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
10585 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
10586 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
10587 to SH_DIV_CALL_TABLE for TARGET_SH2.
10588 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
10590 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
10591 call-table options.
10593 2013-03-05 Sterling Augustine <saugustine@google.com>
10594 Cary Coutant <ccoutant@google.com>
10597 * dwarf2out.c (resolve_addr): Don't call
10598 remove_loc_list_addr_table_entries a second time for the same
10601 2013-03-05 Jakub Jelinek <jakub@redhat.com>
10604 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
10605 (avoid_complex_debug_insns): New function.
10606 (expand_debug_locations): Call it.
10608 PR rtl-optimization/56484
10609 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
10610 lifetimes of hard registers on small register class machines.
10612 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
10614 * config/microblaze/microblaze-protos.h: Rename
10615 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
10616 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
10618 (microblaze_fast_interrupt_function_p): New function.
10619 (microblaze_is_interrupt_handler): Rename to
10620 microblaze_is_interrupt_variant and add fast_interrupt check.
10621 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
10622 (save_restore_insns): Likewise.
10623 (compute_frame_size): Likewise.
10624 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
10625 (microblaze_globalize_label): Likewise.
10626 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
10627 * config/microblaze/microblaze.md: Use wrapper
10628 microblaze_is_interrupt_variant.
10630 2013-03-05 Kai Tietz <ktietz@redhat.com>
10632 * sdbout.c (sdbout_one_type): Switch to current function's section
10633 supporting cold/hot.
10635 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
10637 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
10640 2013-03-05 Jakub Jelinek <jakub@redhat.com>
10642 PR middle-end/56461
10643 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
10644 if VALGRIND_GET_VBITS is defined, temporarily make object
10645 memory all defined, and restore previous valgrind addressability
10646 and definability afterwards. Free this_object at the end.
10648 PR middle-end/56461
10649 * lra.c (lra): Call lra_clear_live_ranges if live_p,
10650 right before calling lra_create_live_ranges, also call it
10651 when clearing live_p. Only call lra_clear_live_ranges
10652 at the end if live_p.
10654 PR middle-end/56461
10655 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
10657 2013-03-05 Richard Biener <rguenther@suse.de>
10659 PR tree-optimization/56521
10660 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
10663 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
10666 * except.h (remove_unreachable_eh_regions): New prototype.
10667 * except.c (remove_eh_handler_splicer): New function, split out
10668 of remove_eh_handler.
10669 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
10670 warning about running it on many EH regions one at a time.
10671 (remove_unreachable_eh_regions_worker): New function, walk the
10672 EH tree in depth-first order and remove non-marked regions.
10673 (remove_unreachable_eh_regions): New function.
10674 * tree-eh.c (mark_reachable_handlers): New function, split out
10675 from remove_unreachable_handlers.
10676 (remove_unreachable_handlers): Use mark_reachable_handlers and
10677 remove_unreachable_eh_regions.
10678 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
10679 and remove_unreachable_eh_regions.
10681 2013-03-05 Richard Biener <rguenther@suse.de>
10683 PR middle-end/56525
10684 * loop-init.c (fix_loop_structure): Remove loops in two stages,
10685 not freeing them until the end.
10687 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10689 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
10691 2013-03-05 Richard Biener <rguenther@suse.de>
10693 PR tree-optimization/56270
10694 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
10695 of loads after scheduling an SLP instance.
10697 2013-03-05 Jakub Jelinek <jakub@redhat.com>
10699 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
10701 (check_gcc_parallelize): Run guality.exp as a separate job from
10702 vect.exp with unsorted.exp and $(dg_target_exps) separately from
10703 struct-layout-1.exp with stackalign.exp.
10705 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
10707 PR middle-end/56461
10708 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
10709 load_index sbitmap even if some bit in it isn't set.
10711 PR middle-end/56461
10712 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
10713 (discover_iteration_bound_by_body_walk): Change queues to
10714 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
10715 spelling in comment. Call safe_push on queues[bound_index] directly.
10716 Release queues[queue_index] in every iteration unconditionally.
10717 Release bounds vector.
10719 PR middle-end/56461
10720 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
10721 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
10722 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
10725 2013-03-05 Richard Biener <rguenther@suse.de>
10728 * tree-inline.c (remap_blocks_to_null): New function.
10729 (expand_call_inline): When expanding a call stmt without
10730 an associated block inline remap all callee blocks to NULL.
10732 2013-03-05 Jakub Jelinek <jakub@redhat.com>
10734 PR rtl-optimization/56494
10735 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
10736 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
10737 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
10739 PR middle-end/56461
10740 * sel-sched-ir.c (free_sched_pools): Release
10741 succs_info_pool.stack[succs_info_pool.max_top] vectors too
10742 if succs_info_pool.max_top isn't -1.
10745 * opts.c (opts_obstack, opts_concat): Moved to...
10746 * opts-common.c (opts_obstack, opts_concat): ... here.
10748 2013-03-04 Jakub Jelinek <jakub@redhat.com>
10750 PR middle-end/56461
10751 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
10753 2013-03-04 Martin Jambor <mjambor@suse.cz>
10755 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
10756 all appropriate places.
10758 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
10760 PR tree-optimization/56424
10761 * ipa-split.c (split_function): Do not set the RSO flag if result is
10762 not by reference and its type is a register type.
10764 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
10766 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
10767 (microblaze_legitimate_pic_operand): Likewise
10768 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
10769 new function microblaze_legitimate_pic_operand
10770 * config/microblaze/microblaze-protos.h
10771 (microblaze_legitimate_pic_operand): Declare.
10773 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10775 * config/microblaze/predicates.md (call_insn_simple_operand):
10776 New predicate for supported rtx code types.
10777 * config/microblaze/microblaze.md (call_internal1): Use
10778 call_insn_simple_operand predicate.
10780 2013-03-04 Jakub Jelinek <jakub@redhat.com>
10782 PR middle-end/56461
10783 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
10784 partitions.ordered_remove.
10786 PR middle-end/56461
10787 * tree-vect-stmts.c (vectorizable_conversion): Don't call
10788 vec_oprnds0.create (1) for modifier == NONE.
10790 PR middle-end/56461
10791 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
10792 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
10793 vec_oprnds1 right before pushing anything to it for
10796 PR middle-end/56461
10797 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
10798 set nbbs to 0 instead of having separate code path.
10799 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
10800 instead of false as last argument if returning NULL.
10802 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
10804 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
10805 the attribute is now called "target" instead of "option".
10806 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
10807 * doc/tm.texi.in (Target Attributes): Likewise document the correct
10808 attribute/pragma name for TARGET_OPTION_VALID_P and
10809 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
10810 * doc/tm.texi: Regenerated.
10812 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
10814 * config/microblaze/microblaze.c:
10815 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
10816 * config/microblaze/microblaze.h: Add -mxl-reorder to
10818 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
10819 instructions emitted if TARGET_REORDER.
10820 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
10821 or 0 for -m/-mno case, but initialises as 2 to detect default use case
10824 2013-03-01 Xinliang David Li <davidxl@google.com>
10826 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
10829 2013-03-01 Jakub Jelinek <jakub@redhat.com>
10831 PR middle-end/56461
10832 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
10833 vector even when returning true. Fix up function comment formatting.
10835 PR middle-end/56461
10836 * ira-build.c (ira_loop_nodes_count): New variable.
10837 (create_loop_tree_nodes): Initialize it.
10838 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
10840 PR middle-end/56461
10841 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
10842 method on dr_chain and result_chain.
10843 * tree-vect-stmts.c (vectorizable_store): Only call
10844 result_chain.create if j == 0.
10846 PR middle-end/56461
10847 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
10848 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
10849 before overwriting it.
10851 2013-03-01 Tobias Burnus <burnus@net-b.de>
10853 * doc/extended.texi (C Extensions): Change order in @menu
10855 (Other MIPS Built-in Functions): Move last MIPS entry before
10856 "picoChip Built-in Functions".
10857 (SH Built-in Functions): Move after RX Built-in Functions.
10858 * doc/gcc.texi (Introduction): Change order in @menu
10860 * doc/md.texi (Constraints): Ditto.
10861 * gty.texi (Type Information): Ditto.
10862 (User-provided marking routines for template types): Make
10864 * doc/invoke.texi (AArch64 Options): Move before
10865 "Adapteva Epiphany Options".
10867 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
10868 Jakub Jelinek <jakub@redhat.com>
10871 * asan.c (gate_asan): Lookup no_sanitize_address instead of
10872 no_address_safety_analysis attribute.
10873 * doc/extend.texi (no_address_safety_attribute): Rename to
10874 no_sanitize_address attribute, mention no_address_safety_analysis
10875 attribute as deprecated alias.
10877 2013-02-28 Jakub Jelinek <jakub@redhat.com>
10879 PR middle-end/56461
10880 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
10881 type to vec<vec<tree> > *.
10882 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
10883 to be vec<tree> instead of vec<tree> *, set vec_defs
10884 to vNULL and call vec_defs.create (number_of_vects), adjust other
10886 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
10887 vectorizable_condition): Adjust vect_get_slp_defs callers.
10889 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10891 * config/aarch64/aarch64.c
10892 (aarch64_float_const_representable): Remove unused variable.
10894 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10896 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
10898 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10900 * config/aarch64/aarch64-builtins.c
10901 (aarch64_init_simd_builtins): Make static.
10903 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10905 * config/aarch64/aarch64.c
10906 (aarch64_simd_make_constant): Make static.
10908 2013-02-28 Martin Jambor <mjambor@suse.cz>
10910 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
10911 with no initialization to the RHS of debug statements.
10913 2013-02-28 Martin Jambor <mjambor@suse.cz>
10915 PR tree-optimization/56294
10916 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
10918 (get_access_replacement): Do not call create_access_replacement.
10919 Assert a replacement exists.
10920 (get_repl_default_def_ssa_name): Create the replacement declaration
10923 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10925 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
10926 final_end_function.
10928 2013-02-28 Marek Polacek <polacek@redhat.com>
10930 PR rtl-optimization/56466
10931 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
10932 if we're changing a loop.
10933 (peel_loops_completely): Likewise.
10935 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
10938 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
10940 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
10943 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
10944 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
10945 INTX_FTYPE_FX, FX_FTYPE_INTX.
10946 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
10948 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
10950 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
10951 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
10952 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
10953 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
10954 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
10955 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
10956 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
10957 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
10958 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
10959 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
10960 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
10961 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
10962 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
10963 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
10964 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
10965 (avrxmega6): Increase max flash segments from 5 to 6.
10966 * config/avr/t-multilib: Regenerate.
10967 * config/avr/avr-tables.opt: Regenerate.
10968 * doc/avr-mmcu.texi: Regenerate.
10970 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
10972 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
10973 (avr_device_to_arch): Rename to avr_device_to_ld.
10974 (avr_device_to_as): New prototype.
10975 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
10976 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
10977 * config/avr/driver-avr.c (avr_device_to_as): New.
10978 (avr_device_to_arch): Rename to avr_device_to_ld.
10980 2013-02-27 Jakub Jelinek <jakub@redhat.com>
10982 PR middle-end/56461
10983 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
10984 method on dr_chain and result_chain.
10986 PR middle-end/56461
10987 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
10988 pointer_set_destroy on not_executed_last_iteration.
10990 PR middle-end/56461
10991 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
10993 PR middle-end/56461
10994 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
10995 FOR_EACH_DEFINED_FUNCTION when freeing state.
10997 PR middle-end/56461
10998 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
11000 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
11003 PR middle-end/56461
11004 * ipa-cp.c (decide_whether_version_node): Call vec_free on
11005 known_aggs[i].items and release known_aggs vector.
11007 PR middle-end/56461
11008 * ipa-reference.c (propagate): Free node_info even for alias nodes.
11010 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11012 * config/microblaze/microblaze.c (microblaze_emit_compare):
11013 Use xor for EQ/NE comparisions.
11014 * config/microblaze/microblaze.md (cstoresf4): Add constraints
11015 (cbranchsf4): Adjust operator to comparison_operator.
11017 2013-02-27 Jakub Jelinek <jakub@redhat.com>
11019 PR middle-end/56461
11020 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
11022 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
11023 vec_safe_push, always update *slot.
11024 (redirect_edge_var_map_clear): Use vec_free.
11025 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
11026 (free_var_map_entry): Use vec_free.
11027 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
11028 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
11030 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
11032 PR middle-end/45472
11033 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
11034 when the may_trap_p bit of the exprs being merged differs.
11035 Reorder tests for speculativeness in the logical and operator.
11037 2013-02-27 Jakub Jelinek <jakub@redhat.com>
11039 * incpath.c (add_standard_paths): Use reconcat instead of concat
11040 where appropriate and avoid leaking memory.
11042 * opts.h: Include obstack.h.
11043 (opts_concat): New prototype.
11044 (opts_obstack): New declaration.
11045 * opts.c (opts_concat): New function.
11046 (opts_obstack): New variable.
11047 (init_options_struct): Call gcc_init_obstack on opts_obstack.
11048 (finish_options): Use opts_concat instead of concat
11049 and XOBNEWVEC instead of XNEWVEC.
11050 * opts-common.c (generate_canonical_option, decode_cmdline_option,
11051 generate_option): Likewise.
11052 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
11053 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
11056 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
11057 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
11059 2013-02-26 Jakub Jelinek <jakub@redhat.com>
11061 PR middle-end/56461
11062 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
11064 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
11066 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
11067 (arm_block_move_unaligned_straight): Likewise.
11068 (arm_adjust_block_mem): Likewise.
11070 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
11073 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
11074 temp, cond and label.
11075 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
11078 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
11079 * config/c6x/c6x.h (dbx_register_map): Update declaration.
11082 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
11083 of prologue/epilogue functions.
11086 * config/tilegx/tilegx.c (tilegx_expand_prologue):
11087 Remove unused variable cfa_offset.
11088 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
11091 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
11092 type promotion to unsigned.
11095 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
11096 for HOST_WIDE_INT of 32 bit / same size as int.
11097 (arm_block_move_unaligned_straight): Likewise.
11098 (arm_adjust_block_mem): Likewise.
11101 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
11104 2013-02-26 Marek Polacek <polacek@redhat.com>
11106 PR tree-optimization/56426
11107 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
11109 2013-02-26 Richard Biener <rguenther@suse.de>
11112 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
11113 unused variable loops.
11115 2013-02-26 Jakub Jelinek <jakub@redhat.com>
11117 PR tree-optimization/56448
11118 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
11119 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
11120 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
11121 later operands of the references, or even first operand for
11122 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
11124 PR tree-optimization/56443
11125 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
11126 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
11127 to type_for_mode langhook.
11129 2013-02-25 Matt Turner <mattst88@gmail.com>
11131 * doc/invoke.texi: Document r4700.
11133 2013-02-25 Richard Biener <rguenther@suse.de>
11135 PR tree-optimization/56175
11136 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
11138 (simplify_bitwise_binary): ... here. Also guard the conversion
11139 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
11141 2013-02-25 Catherine Moore <clm@codesourcery.com>
11144 2013-02-24 Catherine Moore <clm@codesourcery.com>
11145 Maciej W. Rozycki <macro@codesourcery.com>
11146 Tom de Vries <tom@codesourcery.com>
11147 Nathan Sidwell <nathan@codesourcery.com>
11148 Iain Sandoe <iain@codesourcery.com>
11149 Nathan Froyd <froydnj@codesourcery.com>
11150 Chao-ying Fu <fu@mips.com>
11152 * doc/extend.texi: (micromips, nomicromips, nocompression):
11153 Document new function attributes.
11154 * doc/invoke.texi (minterlink-compressed, mmicromips,
11155 m14k, m14ke, m14kec): Document new options.
11156 (minterlink-mips16): Update documentation.
11157 * doc/md.texi (ZC, ZD): Document new constraints.
11158 * configure.ac (gcc_cv_as_micromips): Check if linker
11159 supports the .set micromips directive.
11160 * configure: Regenerate.
11161 * config.in: Regenerate.
11162 * config/mips/mips-tables.opt: Regenerate.
11163 * config/mips/micromips.md: New file.
11164 * constraints.md (ZC, AD): New constraints.
11165 * config/mips/predicates.md (movep_src_register): New predicate.
11166 (movep_src_operand): New predicate.
11167 (non_volatile_mem_operand): New predicate.
11168 * config/mips/mips.md (multimem): New type.
11169 (length): Differentiate between 17-bit and 18-bit branch offsets.
11170 (MOVEP1, MOVEP2): New mode iterator.
11171 (mov_<load>l): Use ZC constraint.
11172 (mov_<load>r): Likewise.
11173 (mov_<store>l): Likewise.
11174 (mov_<store>r): Likewise.
11175 (*branch_equality<mode>_inverted): Add microMIPS support.
11176 (*branch_equality<mode>): Likewise.
11177 (*jump_absolute): Likewise.
11178 (indirect_jump_<mode>): Likewise.
11179 (tablejump_<mode>): Likewise.
11180 (<optab>_internal): Likewise.
11181 (sibcall_internal): Likewise.
11182 (sibcall_value_internal): Likewise.
11183 (prefetch): Use constraint ZD.
11184 * config/mips/mips.opt (minterlink-compressed): New option.
11185 (minterlink-mips16): Now an alias for minterlink-compressed.
11186 (mmicromips): New option.
11187 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
11188 (compare_and_swap_12): Likewise.
11189 (sync_add<mode>): Likewise.
11190 (sync_<optab>_12): Likewise.
11191 (sync_old_<optab>_12): Likewise.
11192 (sync_new_<optab>_12): Likewise.
11193 (sync_nand_12): Likewise.
11194 (sync_old_nand_12): Likewise.
11195 (sync_new_nand_12): Likewise.
11196 (sync_sub<mode>): Likewise.
11197 (sync_old_add<mode>): Likewise.
11198 (sync_old_sub<mode>): Likewise.
11199 (sync_new_add<mode>): Likewise.
11200 (sync_new_sub<mode>): Likewise.
11201 (sync_<optab><mode>): Likewise.
11202 (sync_old_<optab><mode>): Likewise.
11203 (sync_new_<optab><mode>): Likewise.
11204 (sync_nand<mode>): Likewise.
11205 (sync_old_nand<mode>): Likewise.
11206 (sync_new_nand<mode>): Likewise.
11207 (sync_lock_test_and_set<mode>): Likewise.
11208 (test_and_set_12): Likewise.
11209 (atomic_compare_and_swap<mode>): Likewise.
11210 (atomic_exchange<mode>_llsc): Likewise.
11211 (atomic_fetch_add<mode>_llsc): Likewise.
11212 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
11213 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
11214 (umips_save_restore_pattern_p): Likewise.
11215 (umips_load_store_pair_p): Likewise.
11216 (umips_output_load_store_pair): Likewise.
11217 (umips_movep_target_p): Likewise.
11218 (umips_12bit_offset_address_p): Likewise.
11219 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
11220 (mips_base_mips16): Rename this...
11221 (mips_base_compression_flags): ...to this. Update all uses.
11222 (mips_attribute_table): Add micromips, nomicromips and nocompression.
11223 (mips_mips16_decl_p): Delete.
11224 (mips_nomips16_decl_p): Delete.
11225 (mips_get_compress_on_flags): New function.
11226 (mips_get_compress_off_flags): New function.
11227 (mips_get_compress_mode): New function.
11228 (mips_get_compress_on_name): New function.
11229 (mips_get_compress_off_name): New function.
11230 (mips_insert_attributes): Support multiple compression types.
11231 (mips_merge_decl_attributes): Likewise.
11232 (umips_12bit_offset_address_p): New function.
11233 (mips_start_function_definition): Emit .set micromips directive.
11234 (mips_call_may_need_jalx_p): New function.
11235 (mips_function_ok_for_sibcall): Add microMIPS support.
11236 (mips_print_operand_punctuation): Support short delay slots and
11238 (umips_swm_mask, umips_swm_encoding): New.
11239 (umips_build_save_restore): New function.
11240 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
11241 (was_mips16_p): Remove.
11242 (old_compression_mode): New.
11243 (mips_set_compression_mode): New function.
11244 (mips_set_current_function): Add microMIPS support.
11245 (mips_option_override): Likewise.
11246 (umips_save_restore_pattern_p): New function.
11247 (umips_output_save_restore): New function.
11248 (umips_load_store_pair_p_1): New function.
11249 (umips_load_store_pair_p): New function.
11250 (umips_output_load_store_pair_1): New function.
11251 (umips_output_load_store_pair): New function.
11252 (umips_movep_target_p) New function.
11253 (mips_prepare_pch_save): Add microMIPS support.
11254 * config/mips/mips.h (TARGET_COMPRESSION): New.
11255 (TARGET_CPU_CPP_BUILTINS): Update macro
11256 to use new compression flags and to support microMIPS.
11257 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
11258 (MIPS_ARCH_FLOAT_SPEC): Likewise.
11259 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
11260 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
11261 (ASM_SPEC): Support mmicromips and mno-micromips.
11262 (M16STORE_REG_P): New macro.
11263 (MIPS_CALL): Support TARGET_MICROMIPS.
11264 (MICROMIPS_J): New macro.
11265 (mips_base_mips16): Rename this...
11266 (mips_base_compression_flags): ...to this.
11267 (UMIPS_12BIT_OFFSET_P): New macro.
11268 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
11269 (MULTILIB_DIRNAMES): Likewise.
11271 2013-02-25 Tom de Vries <tom@codesourcery.com>
11273 PR rtl-optimization/56131
11274 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
11275 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
11276 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
11278 2013-02-25 Tobias Burnus <burnus@net-b.de>
11280 * doc/invoke.texi (-fsanitize=): Move from optimization
11281 to debugging options.
11283 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
11285 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
11287 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
11288 Alexander Monakov <amonakov@ispras.ru>
11290 PR middle-end/56077
11291 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
11292 flush pending lists also on non-jumps. Adjust comment.
11294 2013-02-24 Catherine Moore <clm@codesourcery.com>
11295 Maciej W. Rozycki <macro@codesourcery.com>
11296 Tom de Vries <tom@codesourcery.com>
11297 Nathan Sidwell <nathan@codesourcery.com>
11298 Iain Sandoe <iain@codesourcery.com>
11299 Nathan Froyd <froydnj@codesourcery.com>
11300 Chao-ying Fu <fu@mips.com>
11302 * doc/extend.texi: (micromips, nomicromips, nocompression):
11303 Document new function attributes.
11304 * doc/invoke.texi (minterlink-compressed, mmicromips,
11305 m14k, m14ke, m14kec): Document new options.
11306 (minterlink-mips16): Update documentation.
11307 * doc/md.texi (ZC, ZD): Document new constraints.
11308 * configure.ac (gcc_cv_as_micromips): Check if linker
11309 supports the .set micromips directive.
11310 * configure: Regenerate.
11311 * config.in: Regenerate.
11312 * config/mips/mips-tables.opt: Regenerate.
11313 * config/mips/micromips.md: New file.
11314 * constraints.md (ZC, AD): New constraints.
11315 * config/mips/predicates.md (movep_src_register): New predicate.
11316 (movep_src_operand): New predicate.
11317 (non_volatile_mem_operand): New predicate.
11318 * config/mips/mips.md (multimem): New type.
11319 (length): Differentiate between 17-bit and 18-bit branch offsets.
11320 (MOVEP1, MOVEP2): New mode iterator.
11321 (mov_<load>l): Use ZC constraint.
11322 (mov_<load>r): Likewise.
11323 (mov_<store>l): Likewise.
11324 (mov_<store>r): Likewise.
11325 (*branch_equality<mode>_inverted): Add microMIPS support.
11326 (*branch_equality<mode>): Likewise.
11327 (*jump_absolute): Likewise.
11328 (indirect_jump_<mode>): Likewise.
11329 (tablejump_<mode>): Likewise.
11330 (<optab>_internal): Likewise.
11331 (sibcall_internal): Likewise.
11332 (sibcall_value_internal): Likewise.
11333 (prefetch): Use constraint ZD.
11334 * config/mips/mips.opt (minterlink-compressed): New option.
11335 (minterlink-mips16): Now an alias for minterlink-compressed.
11336 (mmicromips): New option.
11337 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
11338 (compare_and_swap_12): Likewise.
11339 (sync_add<mode>): Likewise.
11340 (sync_<optab>_12): Likewise.
11341 (sync_old_<optab>_12): Likewise.
11342 (sync_new_<optab>_12): Likewise.
11343 (sync_nand_12): Likewise.
11344 (sync_old_nand_12): Likewise.
11345 (sync_new_nand_12): Likewise.
11346 (sync_sub<mode>): Likewise.
11347 (sync_old_add<mode>): Likewise.
11348 (sync_old_sub<mode>): Likewise.
11349 (sync_new_add<mode>): Likewise.
11350 (sync_new_sub<mode>): Likewise.
11351 (sync_<optab><mode>): Likewise.
11352 (sync_old_<optab><mode>): Likewise.
11353 (sync_new_<optab><mode>): Likewise.
11354 (sync_nand<mode>): Likewise.
11355 (sync_old_nand<mode>): Likewise.
11356 (sync_new_nand<mode>): Likewise.
11357 (sync_lock_test_and_set<mode>): Likewise.
11358 (test_and_set_12): Likewise.
11359 (atomic_compare_and_swap<mode>): Likewise.
11360 (atomic_exchange<mode>_llsc): Likewise.
11361 (atomic_fetch_add<mode>_llsc): Likewise.
11362 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
11363 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
11364 (umips_save_restore_pattern_p): Likewise.
11365 (umips_load_store_pair_p): Likewise.
11366 (umips_output_load_store_pair): Likewise.
11367 (umips_movep_target_p): Likewise.
11368 (umips_12bit_offset_address_p): Likewise.
11369 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
11370 (mips_base_mips16): Rename this...
11371 (mips_base_compression_flags): ...to this. Update all uses.
11372 (mips_attribute_table): Add micromips, nomicromips and nocompression.
11373 (mips_mips16_decl_p): Delete.
11374 (mips_nomips16_decl_p): Delete.
11375 (mips_get_compress_on_flags): New function.
11376 (mips_get_compress_off_flags): New function.
11377 (mips_get_compress_mode): New function.
11378 (mips_get_compress_on_name): New function.
11379 (mips_get_compress_off_name): New function.
11380 (mips_insert_attributes): Support multiple compression types.
11381 (mips_merge_decl_attributes): Likewise.
11382 (umips_12bit_offset_address_p): New function.
11383 (mips_start_function_definition): Emit .set micromips directive.
11384 (mips_call_may_need_jalx_p): New function.
11385 (mips_function_ok_for_sibcall): Add microMIPS support.
11386 (mips_print_operand_punctuation): Support short delay slots and
11388 (umips_swm_mask, umips_swm_encoding): New.
11389 (umips_build_save_restore): New function.
11390 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
11391 (was_mips16_p): Remove.
11392 (old_compression_mode): New.
11393 (mips_set_compression_mode): New function.
11394 (mips_set_current_function): Add microMIPS support.
11395 (mips_option_override): Likewise.
11396 (umips_save_restore_pattern_p): New function.
11397 (umips_output_save_restore): New function.
11398 (umips_load_store_pair_p_1): New function.
11399 (umips_load_store_pair_p): New function.
11400 (umips_output_load_store_pair_1): New function.
11401 (umips_output_load_store_pair): New function.
11402 (umips_movep_target_p) New function.
11403 (mips_prepare_pch_save): Add microMIPS support.
11404 * config/mips/mips.h (TARGET_COMPRESSION): New.
11405 (TARGET_CPU_CPP_BUILTINS): Update macro
11406 to use new compression flags and to support microMIPS.
11407 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
11408 (MIPS_ARCH_FLOAT_SPEC): Likewise.
11409 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
11410 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
11411 (ASM_SPEC): Support mmicromips and mno-micromips.
11412 (M16STORE_REG_P): New macro.
11413 (MIPS_CALL): Support TARGET_MICROMIPS.
11414 (MICROMIPS_J): New macro.
11415 (mips_base_mips16): Rename this...
11416 (mips_base_compression_flags): ...to this.
11417 (UMIPS_12BIT_OFFSET_P): New macro.
11418 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
11419 (MULTILIB_DIRNAMES): Likewise.
11421 2013-02-24 Jakub Jelinek <jakub@redhat.com>
11424 * target-globals.c (save_target_globals): For init_reg_sets and
11425 target_reinit remporarily set this_fn_optabs to this_target_optabs.
11427 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
11429 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
11430 * config/aarch64/t-aarch64
11431 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
11433 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
11435 PR inline-asm/56148
11436 * lra-constraints.c (process_alt_operands): Reload operand
11437 conflicting with earlier clobber only if no more other conflicting
11440 2013-02-22 Jakub Jelinek <jakub@redhat.com>
11443 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
11444 if not linking a shared library.
11446 2013-02-22 Seth LaForge <sethml@google.com>
11448 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
11450 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
11452 * config/arm/arm.md (split for extendsidi): Update condition.
11453 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
11454 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
11455 (qhs_zextenddi_cstr): Likewise.
11457 2013-02-21 Jakub Jelinek <jakub@redhat.com>
11459 PR middle-end/56420
11460 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
11461 avoid signed wrapping.
11462 (expand_mult): Handle properly multiplication by
11463 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
11464 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
11465 in the compiler if coeff is HOST_WIDE_INT_MIN.
11466 (expand_divmod): Don't make ext_op1 static, change it's type to
11467 uhwi. Avoid undefined behavior in -INTVAL (op1).
11469 PR rtl-optimization/50339
11470 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
11472 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
11473 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
11474 into splitting_ashiftrt field.
11475 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
11477 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
11480 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
11482 PR middle-end/56108
11483 * trans-mem.c (execute_tm_mark): Do not expand transactions that
11484 are sure to go irrevocable.
11486 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
11488 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
11489 scalars are valid operands.
11491 2013-02-21 Martin Jambor <mjambor@suse.cz>
11493 PR tree-optimization/56310
11494 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
11495 only matching indices and non-negative final offsets.
11496 (intersect_aggregates_with_edge): Pass src_idx to
11497 agg_replacements_to_vector. Pass src_idx insstead of index to
11498 intersect_with_agg_replacements.
11500 2013-02-21 Martin Jambor <mjambor@suse.cz>
11502 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
11503 instead of hard-wired defaults.
11505 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
11507 * doc/invoke.texi (MIPS Options): Update documentation of the
11508 floating-point multiply-accumulate instruction restrictions.
11510 2013-02-21 Kostya Serebryany <kcc@google.com>
11512 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
11513 asan_shadow_offset on x86_64 linux.
11515 2013-02-21 Richard Biener <rguenther@suse.de>
11517 PR tree-optimization/56415
11519 2013-02-11 Richard Biener <rguenther@suse.de>
11521 PR tree-optimization/56273
11522 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
11525 2013-02-21 Jakub Jelinek <jakub@redhat.com>
11528 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
11531 PR inline-asm/56405
11532 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
11533 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
11535 2013-02-20 Jan Hubicka <jh@suse.cz>
11537 PR tree-optimization/56265
11538 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
11539 when target is referenced for first time.
11541 2013-02-20 Richard Biener <rguenther@suse.de>
11543 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
11544 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
11545 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
11546 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
11547 not return anything.
11548 (rename_ssa_copies): Do not remove unused locals.
11549 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
11550 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
11551 * passes.c (execute_function_todo): Do not schedule unused locals
11552 removal if cleanup_tree_cfg did something.
11553 * tree-ssa-live.c (remove_unused_locals): Dump statistics
11554 about the number of removed locals.
11556 2013-02-20 Richard Biener <rguenther@suse.de>
11558 PR tree-optimization/56398
11559 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
11561 2013-02-20 Martin Jambor <mjambor@suse.cz>
11563 PR tree-optimization/55334
11564 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
11565 restricted pointers to arrays.
11567 2013-02-20 Richard Biener <rguenther@suse.de>
11568 Jakub Jelinek <jakub@redhat.com>
11570 PR tree-optimization/56396
11571 * tree-ssa-ccp.c (n_const_val): New static variable.
11572 (get_value): Return NULL for SSA names we don't have a lattice
11574 (ccp_initialize): Initialize n_const_val.
11575 * tree-ssa-copy.c (n_copy_of): New static variable.
11576 (init_copy_prop): Initialize n_copy_of.
11577 (get_value): Return NULL_TREE for SSA names we don't have a
11580 2013-02-20 Martin Jambor <mjambor@suse.cz>
11582 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
11584 2013-02-20 Richard Biener <rguenther@suse.de>
11586 * genpreds.c (write_lookup_constraint): Do not compare first
11587 letter of the constraint again.
11589 2013-02-20 Richard Biener <rguenther@suse.de>
11591 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
11593 (get_use_iv_cost): Terminate hashtable walk when coming across
11596 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
11598 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
11599 reassociation for avx2 targets.
11601 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11603 * config/microblaze/microblaze.c: microblaze_has_clz = 0
11604 Add version check for v8.10.a to enable microblaze_has_clz
11605 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
11606 version and TARGET_PATTERN_COMPARE check
11607 * config/microblaze/microblaze.md: New clzsi2 instruction
11609 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11611 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
11612 function before branching.
11614 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
11616 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
11618 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
11620 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
11622 PR middle-end/55889
11623 * sel-sched.c: Include ira.h.
11624 (implicit_clobber_conflict_p): New function.
11625 (moveup_expr): Use it.
11626 * Makefile.in (sel-sched.o): Depend on ira.h.
11628 2013-02-19 Richard Biener <rguenther@suse.de>
11630 PR tree-optimization/56384
11631 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
11632 (vn_hash_type): Split out from ...
11633 (vn_hash_constant_with_type): ... here.
11634 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
11635 (vn_phi_eq): Compare types from vn_phi_s structure.
11636 (vn_phi_lookup): Populate vn_phi_s type.
11637 (vn_phi_insert): Likewise.
11639 2013-02-19 Jakub Jelinek <jakub@redhat.com>
11641 PR tree-optimization/56350
11642 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
11643 if haven't found reduction or nested cycle operand, rather than
11644 asserting we must find it.
11646 PR tree-optimization/56381
11647 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
11650 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
11651 Jakub Jelinek <jakub@redhat.com>
11654 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
11655 (swap_optab_enable): Same.
11656 (init_all_optabs): Use argument instead of global.
11657 * tree.h (struct tree_optimization_option): New field target_optabs.
11658 * expr.h (init_all_optabs): Add argument to prototype.
11659 (TREE_OPTIMIZATION_OPTABS): New.
11660 (save_optabs_if_changed): Protoize.
11661 * optabs.h: Declare this_fn_optabs.
11662 * optabs.c (save_optabs_if_changed): New.
11663 Declare this_fn_optabs.
11664 (init_optabs): Add argument to init_all_optabs() call.
11665 * function.c (invoke_set_current_function_hook): Handle per
11667 * function.h (struct function): New field optabs.
11668 * config/mips/mips.c (mips_set_mips16_mode): Handle when
11669 optimization_current_node has changed.
11670 * target-globals.h (save_target_globals_default_opts): Protoize.
11671 * target-globals.c (save_target_globals_default_opts): New.
11673 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11676 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
11677 registers %fr12 and %fr12R as call used.
11680 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
11681 and HImode, require all displacements to be an integer multiple of
11683 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
11684 only allow QImode and HImode when reload is in progress and strict is
11685 true. Likewise for symbolic addresses. Use base14_operand to check
11686 displacements in REG+BASE addresses.
11688 2013-02-18 Richard Biener <rguenther@suse.de>
11690 PR tree-optimization/56366
11691 * tree-vect-loop.c (get_initial_def_for_induction): Properly
11692 handle sign-conversion of outer-loop initial induction value.
11694 2013-02-18 Richard Biener <rguenther@suse.de>
11696 PR middle-end/56349
11697 * cfghooks.c (merge_blocks): If we merge a latch into another
11698 block adjust references to it.
11699 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
11700 (verify_loop_structure): Verify that a recorded latch is in fact
11703 2013-02-18 Richard Biener <rguenther@suse.de>
11705 PR tree-optimization/56321
11706 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
11707 order SSA name release and virtual operand unlinking.
11709 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11711 * config/microblaze/microblaze.md (save_stack_block): Define.
11712 (restore_stack_block): Likewise.
11714 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11716 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
11717 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
11718 * config/microblaze/microblaze.c (microblaze_option_override):
11719 Bail out early for PIC modes when target does not support PIC.
11721 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11723 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
11724 Replace with a microblaze version.
11725 (microblaze_trampoline_init): Adapt for microblaze.
11726 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
11729 2013-02-16 Jakub Jelinek <jakub@redhat.com>
11730 Dodji Seketeli <dodji@redhat.com>
11733 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
11734 (instrument_mem_region_access): Do not forget to always put
11735 instrumentation of the of 'base' and 'base + len' in a "if (len !=
11736 0) statement, even for cases where either 'base' or 'base + len'
11737 are not instrumented -- because they have been previously
11738 instrumented. Simplify the logic by putting all the statements
11739 instrument 'base + len' inside a sequence, and then insert that
11740 sequence right before the current insertion point. Then, to
11741 instrument 'base + len', just get an iterator on that statement.
11742 And do not forget to update the pointer to iterator the function
11743 received as argument.
11745 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
11747 PR rtl-optimization/56348
11748 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
11750 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
11752 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
11753 (clean_graph_dump_file): Pass base to start_graph_dump.
11755 2013-02-14 Richard Henderson <rth@redhat.com>
11758 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
11760 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
11762 * collect2-aix.h: Define F_LOADONLY.
11764 2013-02-14 Richard Biener <rguenther@suse.de>
11767 * varasm.c (output_constant_def_1): Get the decl representing
11768 the constant as argument.
11769 (output_constant_def): Wrap output_constant_def_1.
11770 (make_decl_rtl): Use output_constant_def_1 with the decl
11771 representing the constant.
11772 (build_constant_desc): Optionally re-use a decl already
11773 representing the constant.
11774 (tree_output_constant_def): Adjust.
11776 2013-02-14 Dodji Seketeli <dodji@redhat.com>
11779 * asan.c (instrument_builtin_call): Really put the length of the
11780 second source argument into src1_len.
11782 2013-02-13 Jakub Jelinek <jakub@redhat.com>
11784 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
11785 argument. If it is false, don't create edge from then_bb to
11787 (insert_if_then_before_iter): Pass true to it.
11788 (build_check_stmt): Pass false to it.
11789 (transform_statements): Flush hash table only on extended basic
11790 block boundaries, rather than at the beginning of every bb.
11791 Don't flush hash table on nonfreeing_call_p calls.
11792 * tree-flow.h (nonfreeing_call_p): New prototype.
11793 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
11795 2013-02-13 David S. Miller <davem@davemloft.net>
11797 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
11799 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
11802 * ira.c (max_regno_before_ira): Move from ...
11804 (fix_reg_equiv_init): Use max_regno_before_ira instead of
11807 2013-02-13 Jakub Jelinek <jakub@redhat.com>
11809 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
11811 2013-02-13 Richard Biener <rguenther@suse.de>
11814 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
11815 globals in MEM_REFs.
11817 2013-02-13 Richard Biener <rguenther@suse.de>
11819 * loop-init.c (loop_optimizer_init): Clear loop state when
11820 re-initializing preserved loops.
11821 * loop-unswitch.c (unswitch_single_loop): Return whether
11822 we unswitched the loop. Do not verify loop state here.
11823 (unswitch_loops): When we unswitched a loop discover new loops.
11825 2013-02-13 Kostya Serebryany <kcc@google.com>
11827 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
11829 * sanitizer.def: Rename __asan_init to __asan_init_v1.
11831 2013-02-12 Dodji Seketeli <dodji@redhat.com>
11833 Avoid instrumenting duplicated memory access in the same basic block
11834 * Makefile.in (asan.o): Add new dependency on hash-table.h
11835 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
11836 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
11837 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
11838 (free_mem_ref_resources, has_mem_ref_been_instrumented)
11839 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
11840 (get_mem_ref_of_assignment): New functions.
11841 (get_mem_refs_of_builtin_call): Extract from
11842 instrument_builtin_call and tweak a little bit to make it fit with
11844 (instrument_builtin_call): Use the new
11845 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
11846 of is_gimple_builtin_call.
11847 (instrument_derefs, instrument_mem_region_access): Insert the
11848 instrumented memory reference into the hash table.
11849 (maybe_instrument_assignment): Renamed instrument_assignment into
11850 this, and change it to advance the iterator when instrumentation
11851 actually happened and return true in that case. This makes it
11852 homogeneous with maybe_instrument_assignment, and thus give a
11853 chance to callers to be more 'regular'.
11854 (transform_statements): Clear the memory reference hash table
11855 whenever we enter a new BB, when we cross a function call, or when
11856 we are done transforming statements. Use
11857 maybe_instrument_assignment instead of instrumentation. No more
11858 need to special case maybe_instrument_assignment and advance the
11859 iterator after calling it; it's now handled just like
11860 maybe_instrument_call. Update comment.
11862 2013-02-13 Richard Biener <rguenther@suse.de>
11864 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
11865 Fix loop discovery code.
11867 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
11869 PR inline-asm/56148
11870 * lra-constraints.c (process_alt_operands): Match early clobber
11871 operand with itself. Check conflicts with earlyclobber only if
11872 the operand is not reloaded. Prefer to reload conflicting operand
11873 if earlyclobber and matching operands are the same.
11875 2013-02-12 Richard Biener <rguenther@suse.de>
11878 * lto-streamer-out.c (write_symbol): Do not output symbols
11879 for hard register variables.
11881 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
11884 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
11885 (umulsidi3_insn, mulsidi3_insn): New insns.
11887 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
11889 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
11890 (struct tune_params): Add vec_costs field.
11891 * config/arm/arm.c (arm_builtin_vectorization_cost)
11892 (arm_add_stmt_cost): New functions.
11893 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
11894 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
11895 (arm_default_vec_cost): New struct of type cpu_vec_costs.
11896 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
11897 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
11898 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
11899 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
11901 2013-02-12 Richard Biener <rguenther@suse.de>
11904 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
11905 decls again if possible.
11907 2013-02-12 Richard Biener <rguenther@suse.de>
11909 PR middle-end/56288
11910 * tree-ssa.c (verify_ssa_name): Fix check, move
11911 SSA_NAME_IN_FREE_LIST check up.
11913 2013-02-12 Jakub Jelinek <jakub@redhat.com>
11914 Steven Bosscher <steven@gcc.gnu.org>
11916 PR rtl-optimization/56151
11917 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
11918 equal to op0 or op1, and last_insn pattern is CODE operation
11919 with MEM dest and one of the operands matches that MEM.
11921 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
11923 * doc/extend.texi: Document Function Multiversioning and "default"
11924 parameter string to target attribute.
11925 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
11926 target attribute parameter is "default".
11927 (ix86_compare_version_priority): Remove checks for target attribute.
11928 (ix86_mangle_function_version_assembler_name): Change error to sorry.
11929 Remove check for target attribute equal to NULL. Add assert.
11930 (ix86_generate_version_dispatcher_body): Change error to sorry.
11932 2013-02-11 Iain Sandoe <iain@codesourcery.com>
11933 Jack Howarth <howarth@bromo.med.uc.edu>
11934 Patrick Marlier <patrick.marlier@gmail.com>
11937 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
11938 define ENDFILE_SPEC as TM_DESTRUCTOR.
11939 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
11941 2013-02-11 Alexander Potapenko <glider@google.com>
11942 Jack Howarth <howarth@bromo.med.uc.edu>
11943 Jakub Jelinek <jakub@redhat.com>
11946 * config/darwin.c (cdtor_record): Rename ctor_record.
11947 (sort_cdtor_records): Rename sort_ctor_records.
11948 (finalize_dtors): New routine to sort destructors by
11949 priority before use in assemble_integer.
11950 (machopic_asm_out_destructor): Use finalize_dtors if needed.
11952 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
11954 PR rtl-optimization/56275
11955 * simplify-rtx.c (avoid_constant_pool_reference): Check that
11956 offset is non-negative and less than cmode size before
11957 calling simplify_subreg.
11959 2013-02-11 Richard Biener <rguenther@suse.de>
11961 PR tree-optimization/56264
11962 * cfgloop.h (fix_loop_structure): Adjust prototype.
11963 * loop-init.c (fix_loop_structure): Return the number of
11964 newly discovered loops.
11965 * tree-cfgcleanup.c (repair_loop_structures): When new loops
11966 are discovered, do a full loop-closed SSA rewrite.
11968 2013-02-11 Richard Biener <rguenther@suse.de>
11970 PR tree-optimization/56273
11971 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
11973 (check_array_ref): Fix missing newline in dumps.
11974 (search_for_addr_array): Likewise.
11976 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
11978 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
11980 2013-02-09 Jakub Jelinek <jakub@redhat.com>
11983 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
11985 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
11987 PR rtl-optimization/56246
11988 * lra-constraints.c (simplify_operand_subreg): Try to reuse
11990 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
11991 constraints are satisfied.
11993 2013-02-08 Jeff Law <law@redhat.com>
11996 * emit-rtl.c (reg_is_parm_p): New function.
11997 * regs.h (reg_is_parm_p): New prototype.
11998 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
11999 callee-clobbered registers.
12001 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
12004 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
12005 If there is no implicit builtin declaration, just return NULL.
12007 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
12009 * config/i386/sse.md (FMAMODEM): New mode iterator.
12010 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
12011 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
12013 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
12015 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
12016 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
12017 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
12019 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12021 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
12022 (microblaze*-*-elf): Likewise.
12023 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
12025 * config/microblaze/microblaze-c.c: Add builtin defines for
12026 _LITTLE_ENDIAN and _BIG_ENDIAN.
12027 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
12028 add to TARGET_DEFAULT flags.
12029 Expand ASM_SPEC and LINK_SPEC.
12030 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
12031 * config/microblaze/microblaze.md: Update extendsidi2 and
12032 movdi_internal instructions to use low-order / high-order reg
12034 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
12035 options and inversemask / mask of LITTLE_ENDIAN.
12036 * config/microblaze/t-microblaze: Expand multilib options to
12037 include mlittle-endian (le) and update exceptions patterns.
12039 2013-02-08 Jakub Jelinek <jakub@redhat.com>
12041 PR rtl-optimization/56195
12042 * lra-constraints.c (get_reload_reg): Don't reuse regs
12043 if they have smaller mode than requested, if they have
12044 wider mode than requested, try to return a SUBREG.
12046 PR tree-optimization/56250
12047 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
12048 if type is unsigned and code isn't MULT_EXPR.
12050 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
12052 PR tree-optimization/56064
12053 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
12054 bits according to mode.
12055 * fixed-value.h (fixed_from_double_int)
12056 (const_fixed_from_double_int): Adjust comments.
12058 2013-02-08 Richard Biener <rguenther@suse.de>
12061 * lto-streamer.h (struct data_in): Remove current_file, current_line
12062 and current_col members.
12063 * lto-streamer-out.c (lto_output_location): Stream changed bits
12064 en-block for efficiency.
12065 * lto-streamer-in.c (clear_line_info): Remove.
12066 (lto_input_location): Cache current file, line and column
12067 globally via local statics. Read changed bits en-block.
12068 (input_function): Do not call clear_line_info.
12069 (lto_read_body): Likewise.
12070 (lto_input_toplevel_asms): Likewise.
12072 2013-02-08 Michael Matz <matz@suse.de>
12074 PR tree-optimization/52448
12075 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
12076 (nt_call_phase): New static.
12077 (add_or_mark_expr): Only mark accesses with newer phase than any
12079 (nonfreeing_call_p): New.
12080 (nt_init_block): Update nt_call_phase, mark blocks as visited.
12081 (nt_fini_block): Keep blocks marked as visited.
12082 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
12084 2013-02-08 Richard Biener <rguenther@suse.de>
12086 * ira.c (ira): Free broken dominator information.
12088 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
12090 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
12092 2013-02-08 Marek Polacek <polacek@redhat.com>
12094 * cfgloop.c (verify_loop_structure): Add more checking of headers.
12096 2013-02-08 Richard Biener <rguenther@suse.de>
12098 PR middle-end/56181
12099 * cfgloop.h (flow_loops_find): Adjust.
12100 (bb_loop_header_p): Declare.
12101 * cfgloop.c (bb_loop_header_p): New function split out from ...
12102 (flow_loops_find): ... here. Adjust function signature,
12103 support incremental loop structure update.
12104 (verify_loop_structure): Cleanup. Verify a loop is a loop.
12105 * cfgloopmanip.c (fix_loop_structure): Move ...
12106 * loop-init.c (fix_loop_structure): ... here.
12107 (apply_loop_flags): Split out from ...
12108 (loop_optimizer_init): ... here.
12109 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
12110 in incremental mode, only remove dead loops here.
12112 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
12115 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
12116 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
12117 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
12118 (*round<mode>3.libgcc): New insns for fixed-modes.
12119 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
12120 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
12121 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
12122 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
12123 implementations. Define to __builtin_avr_absFX,
12124 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
12125 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
12126 __builtin_avr_countlsFX, respectively.
12127 * config/avr/avr-c.c (target.h): Include it.
12128 (enum avr_builtin_id): New enum.
12129 (avr_resolve_overloaded_builtin): New static function.
12130 (avr_register_target_pragmas): Use it to set
12131 targetm.resolve_overloaded_builtin.
12132 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
12133 tree nodes used by DEF_BUILTIN.
12134 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
12135 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
12136 <AVR_BUILTIN_xxBITS>: Same.
12138 2013-02-08 Richard Biener <rguenther@suse.de>
12140 * cfgloop.c (verify_loop_structure): Properly handle
12141 a loop exiting to another loop header.
12142 * ira-int.h (ira_loops): Remove.
12143 * ira.c (ira_loops): Remove.
12144 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
12145 (do_reload): Use loop_optimizer_finalize.
12146 * ira-build.c (create_loop_tree_nodes): Use get_loops and
12147 number_of_loops to access the loop tree.
12148 (more_one_region_p): Likewise.
12149 (finish_loop_tree_nodes): Likewise.
12150 (rebuild_regno_allocno_maps): Likewise.
12151 (mark_loops_for_removal): Likewise.
12152 (mark_all_loops_for_removal): Likewise.
12153 (remove_unnecessary_regions): Likewise.
12154 (ira_build): Likewise.
12155 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
12157 2013-02-08 Richard Biener <rguenther@suse.de>
12159 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
12160 * ipa-pure-const.c (analyze_function): Avoid calling
12161 mark_irreducible_loops twice.
12162 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
12164 2013-02-07 David S. Miller <davem@davemloft.net>
12166 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
12168 * var-tracking.c (vt_add_function_parameter): Test the presence of
12169 HAVE_window_save properly and do not remap argument registers when
12170 we have a leaf function.
12172 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
12175 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
12177 * config/i386/i386.c (ix86_print_operand): Ditto.
12179 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
12181 * lra-constraints.c (process_alt_operands): Fix recently added comment.
12183 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
12185 PR rtl-optimization/56225
12186 * lra-constraints.c (process_alt_operands): Check that reload hard
12187 reg can hold value for strict_low_part.
12189 2013-02-07 Jakub Jelinek <jakub@redhat.com>
12192 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
12193 dwarf2out_end_function.
12194 (in_first_function_p, maybe_at_text_label_p,
12195 first_loclabel_num_not_at_text_label): New variables.
12196 (dwarf2out_var_location): In the first function find out
12197 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
12198 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
12201 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
12203 PR rtl-optimization/56178
12204 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
12205 SUBREG of a register. Tidy up related block of code.
12206 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
12207 note if the source is a register or a SUBREG of a register.
12209 2013-02-07 Jakub Jelinek <jakub@redhat.com>
12212 * config/rs6000/rs6000.md (ptrm): New mode attr.
12213 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
12214 call_value_indirect_aix<pttrsize>,
12215 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
12218 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
12220 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
12221 if -bnortl. Convert to strcmp and strncmp.
12223 2013-02-07 Alan Modra <amodra@gmail.com>
12226 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
12227 addresses won't wrap when offsetting.
12228 (rs6000_secondary_reload): Provide secondary reloads needed for
12229 wrapping LO_SUM addresses.
12231 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
12233 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
12234 MACH, just __MACH__.
12236 2013-02-06 Richard Biener <rguenther@suse.de>
12238 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
12239 instead of calling fix_loop_structure.
12241 2013-02-06 Jakub Jelinek <jakub@redhat.com>
12243 PR middle-end/56217
12244 * omp-low.c (use_pointer_for_field): Return false if
12245 lower_send_shared_vars doesn't generate any copy-out code.
12247 2013-02-06 Tom de Vries <tom@codesourcery.com>
12249 PR rtl-optimization/56131
12250 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
12251 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
12252 of the label is NULL. Add comment.
12254 2013-02-05 Jakub Jelinek <jakub@redhat.com>
12256 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
12259 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
12260 (STATIC_LIBTSAN_LIBS): Likewise.
12261 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
12262 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
12263 is defined, don't add anything else beyond that.
12264 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
12265 (LINK_COMMAND_SPEC): Use them.
12267 PR tree-optimization/56205
12268 * tree-stdarg.c (check_all_va_list_escapes): Return true if
12269 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
12270 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
12272 2013-02-05 Richard Biener <rguenther@suse.de>
12274 PR tree-optimization/53342
12275 PR tree-optimization/53185
12276 * tree-vectorizer.h (vect_check_strided_load): Remove.
12277 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
12278 not disallow peeling for vectorized strided loads.
12279 (vect_check_strided_load): Make static and simplify.
12280 (vect_analyze_data_refs): Adjust.
12281 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
12282 correctly when vectorizing strided loads.
12284 2013-02-05 Richard Biener <rguenther@suse.de>
12286 * doc/install.texi: Refer to ISL, not PPL.
12288 2013-02-05 Jan Hubicka <jh@suse.cz>
12290 PR tree-optimization/55789
12291 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
12293 2013-02-05 Jan Hubicka <jh@suse.cz>
12295 PR tree-optimization/55789
12296 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
12297 the dead call anyway.
12299 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
12302 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
12304 2013-02-04 Alexander Potapenko <glider@google.com>
12305 Jack Howarth <howarth@bromo.med.uc.edu>
12306 Jakub Jelinek <jakub@redhat.com>
12309 * config/darwin.c (sort_ctor_records): Stabilized qsort
12310 on constructor priority by using original position.
12311 (finalize_ctors): New routine to sort constructors by
12312 priority before use in assemble_integer.
12313 (machopic_asm_out_constructor): Use finalize_ctors if needed.
12315 2013-02-04 Jakub Jelinek <jakub@redhat.com>
12318 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
12319 about visibility on artificial decls.
12320 * config/sol2.c (solaris_assemble_visibility): Likewise.
12322 2013-02-04 Kai Tietz <ktietz@redhat.com>
12325 * config/i386/i386.c (function_value_ms_64): Add additional valtype
12326 argument and improve checking of return-argument types for 16-byte
12328 (ix86_function_value_1): Add additional valtype argument on call
12329 of function_value_64.
12330 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
12331 handling infunction_value_64 function.
12333 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
12335 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
12337 2013-02-04 Richard Biener <rguenther@suse.de>
12339 PR tree-optimization/56188
12340 * tree-ssa-structalias.c (label_visit): Consider case with
12341 initially non-empty points-to set.
12342 (perform_var_substitution): Dump node mapping and clean up.
12344 2013-02-04 Richard Guenther <rguenther@suse.de>
12347 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
12348 node prevail as last resort.
12349 (lto_symtab_merge_decls): Remove guard on LTRANS here.
12350 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
12352 2013-02-04 Richard Biener <rguenther@suse.de>
12354 PR tree-optimization/56113
12355 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
12357 (equiv_class_lookup_or_add): ... this.
12358 (label_visit): Adjust and fix error in previous patch.
12359 (perform_var_substitution): Adjust.
12361 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
12363 * config/sh/divtab.c: Fix formatting and comments throughout the file.
12364 * config/sh/sh4-300.md: Likewise.
12365 * config/sh/sh4a.md: Likewise.
12366 * config/sh/constraints.md: Likewise.
12367 * config/sh/sh.md: Likewise.
12368 * config/sh/netbsd-elf.h: Likewise.
12369 * config/sh/predicates.md: Likewise.
12370 * config/sh/sh-protos.h: Likewise.
12371 * config/sh/ushmedia.h: Likewise.
12372 * config/sh/linux.h: Likewise.
12373 * config/sh/sh.c: Likewise.
12374 * config/sh/superh.h: Likewise.
12375 * config/sh/elf.h: Likewise.
12376 * config/sh/sh4.md: Likewise.
12377 * config/sh/sh.h: Likewise.
12379 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12381 * config/pa/constraints.md: Adjust unused letters. Change "T"
12382 constraint to match_test floating_point_store_memory_operand().
12383 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
12384 (base14_operand): New.
12385 (floating_point_store_memory_operand): New.
12386 (integer_store_memory_operand): Revise to use base14_operand and
12387 reg_plus_base_memory_operand.
12388 (move_dest_operand): Allow symbolic_memory_operands.
12389 (symbolic_memory_operand): Check for LO_SOM.
12390 (symbolic_operand): Change default case to break.
12391 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
12392 CONST_DOUBLE values to be reloaded by putting them into memory when
12393 the destination is a floating point register.
12394 (movdf): Remove code to handle CONST_DOUBLE.
12396 (reload_indf_r1): New.
12397 (reload_insf_r1): New.
12398 Consistently use "Q" and "T" constraints with integer and floating
12399 point move instructions, respectively.
12400 (movdi): Remove FAIL.
12401 Change predicate for source operand unamed DImode move from
12402 general_operand to move_src_operand.
12403 (umulsidi3): Change predicate for destination operand to
12405 Likewise for similar unamed patterns.
12406 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
12407 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
12408 (hppa_legitimize_address): Simplify mask calculation.
12409 (pa_emit_move_sequence): Revised handling of secondary reloads from
12410 REG+D addresses for floating point loads and stores. Directly handle
12411 loading CONST0_RTX (mode) to a floating point register.
12412 (pa_secondary_reload): Handle reloading DF and SFmode constant values
12413 to floating point registers. Don't restrict secondary reloads to
12414 floating point registers to integer modes. Revise some comments and
12416 (TARGET_LEGITIMATE_ADDRESS_P): Define.
12417 (pa_legitimate_address_p): New.
12418 (pa_legitimize_reload_address): New.
12419 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
12420 (STRICT_REG_OK_FOR_BASE_P): New.
12421 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
12422 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
12424 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
12425 Andrew Dixie <andrewd@gentrack.com>
12427 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
12430 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
12432 * expmed.c (extract_bit_field_1): Pass the full width of the
12433 structure to get_best_reg_extraction_insn.
12435 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
12438 * configure.ac (use_cxa_atexit): Add AIX.
12439 * configure: Regenerate.
12441 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
12443 2013-02-01 Jakub Jelinek <jakub@redhat.com>
12446 * final.c (need_profile_function): New variable.
12447 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
12448 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
12449 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
12450 notes, targetm.asm_out.function_prologue doesn't emit anything,
12451 HAVE_prologue and profiler should be emitted before prologue,
12452 set need_profile_function instead of emitting it.
12453 (final_scan_insn): If need_profile_function, emit
12454 profile_function on the first NOTE_INSN_BASIC_BLOCK or
12455 NOTE_INSN_FUNCTION_BEG note.
12457 2013-02-01 Richard Henderson <rth@redhat.com>
12459 * config/rs6000/rs6000.md (smulditi3): New.
12462 * config/alpha/alpha.md (umulditi3): New.
12464 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
12466 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
12467 (ASM_OUTPUT_ALIGNED_LOCAL): New.
12469 2013-02-01 Richard Biener <rguenther@suse.de>
12471 PR tree-optimization/56113
12472 * tree-ssa-structalias.c (label_visit): Reduce work for
12473 single-predecessor nodes.
12475 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
12477 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
12478 range isn't testing for zero.
12480 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
12482 PR middle-end/56113
12483 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
12485 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
12486 Nick Clifton <nickc@redhat.com>
12488 * config/v850/constraints.md (Q): Define as a memory constraint.
12489 * config/v850/predicates.md (label_ref_operand): New predicate.
12490 (e3v5_shift_operand): New predicate.
12491 (ior_operator): New predicate.
12492 * config/v850/t-v850: Add e3v5 multilib.
12493 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
12494 (v850_gen_movdi): Prototype.
12495 * config/v850/v850.c: Add support for e3v5 architecture.
12496 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
12498 (construct_save_jarl): Add e3v5 long JARL support.
12499 (v850_adjust_insn_length): New function. Adjust length of call
12500 insns when using e3v5 instructions.
12501 (v850_gen_movdi): New function: Generate instructions to move a
12503 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
12504 (CPP_SPEC): Define __v850e3v5__ as appropriate.
12505 (TARGET_USE_FPU): Enable for e3v5.
12506 (CONST_OK_FOR_W): New macro.
12507 (ADJUST_INSN_LENGTH): Define.
12508 * config/v850/v850.md (UNSPEC_LOOP): Define.
12509 (attr cpu): Add v850e3v5.
12510 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
12511 (movdi): New pattern.
12512 (movdi_internal): New pattern.
12513 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
12514 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
12515 (cstoresf4): Likewise.
12516 (cstoredf4): Likewise.
12517 (insv): New pattern.
12518 (rotlso3_a): New pattern.
12519 (rotlsi3_b): New pattern
12520 (rotlsi3_v850e3v5): New pattern.
12521 (doloop_begin): New pattern.
12522 (fix_loop_counter): New pattern.
12523 (doloop_end): New pattern.
12524 (branch_normal): Add e3v5 long branch support.
12525 (branch_invert): Likewise.
12526 (branch_z_normal): Likewise.
12527 (branch_z_invert): Likewise.
12528 (branch_nz_normal): Likewise.
12529 (branch_nz_invert): Likewise.
12530 (call_internal_short): Add e3v5 register-indirect JARL support.
12531 (call_internal_long): Likewise.
12532 (call_value_internal_short): Likewise.
12533 (call_value_internal_long): Likewise.
12534 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
12535 (mloop): New option.
12536 * config.gcc: Add support for configuring v840e3v5 target.
12537 * doc/invoke.texi: Document new v850 specific command line options.
12539 2013-01-31 Paul Koning <ni1d@arrl.net>
12543 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
12544 children if parent is a class.
12545 (prune_unused_types_prune): Don't add DW_AT_declaration.
12547 2013-01-31 Richard Biener <rguenther@suse.de>
12549 PR tree-optimization/56157
12550 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
12551 match up operand with SLP child.
12553 2013-01-31 Jason Merrill <jason@redhat.com>
12556 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
12557 parameters the first time.
12558 (gen_scheduled_generic_parms_dies): Check completeness here.
12560 2013-01-31 Richard Biener <rguenther@suse.de>
12562 PR middle-end/53073
12563 * common.opt (faggressive-loop-optimizations): New flag,
12564 enabled by default.
12565 * doc/invoke.texi (faggressive-loop-optimizations): Document.
12566 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
12567 infer_loop_bounds_from_undefined by it.
12569 2013-01-31 Richard Biener <rguenther@suse.de>
12571 PR tree-optimization/56150
12572 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
12573 visit virtual operands.
12574 (find_uses_to_rename_bb): Likewise.
12576 2013-01-31 Richard Biener <rguenther@suse.de>
12578 PR tree-optimization/56150
12579 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
12580 mixed store non-store stmts.
12582 2013-01-30 Jakub Jelinek <jakub@redhat.com>
12585 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
12586 LIBASAN_EARLY_SPEC is defined.
12587 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
12588 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
12590 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
12593 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
12594 invalid args instead of ICEing on it.
12595 (ix86_valid_target_attribute_tree): Return error_mark_node if
12596 ix86_valid_target_attribute_inner_p failed.
12597 (ix86_valid_target_attribute_p): Return false only if
12598 ix86_valid_target_attribute_tree returned error_mark_node. Allow
12599 target("default") attribute.
12600 (sorted_attr_string): Change argument from const char * to tree,
12601 merge in all target attribute arguments rather than just one.
12602 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
12603 instead of free. Avoid using strcat.
12604 (ix86_mangle_function_version_assembler_name): Mangle
12605 target("default") as if no target attribute is present. Adjust
12606 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
12607 instead of xmalloc and XDELETEVEC instead of free.
12608 (ix86_function_versions): Don't return true if one of the decls
12609 doesn't have target attribute. If they don't and one of the decls
12610 is DECL_FUNCTION_VERSIONED, report an error. Adjust
12611 sorted_attr_string caller. Use XDELETEVEC instead of free.
12612 (ix86_supports_function_versions): Remove.
12613 (make_name): Fix up formatting.
12614 (make_dispatcher_decl): Remove resolver_name and its initialization.
12615 Avoid leaking memory.
12616 (is_function_default_version): Return true if there is
12617 target("default") attribute rather than no target attribute at all.
12618 (make_resolver_func): Avoid leaking memory.
12619 (ix86_generate_version_dispatcher_body): Likewise.
12620 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
12621 * target.def (supports_function_versions): Remove.
12622 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
12623 * doc/tm.texi: Regenerated.
12625 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
12627 PR rtl-optimization/56144
12628 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
12629 for values with side effects.
12631 2013-01-30 Richard Biener <rguenther@suse.de>
12633 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
12634 (sparseset_pop): Likewise.
12635 * cfganal.c (compute_idf): Likewise. Increase work-stack size
12636 to be able to use quick_push in the worker loop.
12638 2013-01-30 Marek Polacek <polacek@redhat.com>
12640 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
12642 2013-01-30 Richard Biener <rguenther@suse.de>
12645 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
12647 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
12649 PR tree-optimization/56064
12650 * fixed-value.c (fixed_from_double_int): New function.
12651 * fixed-value.h (fixed_from_double_int): New prototype.
12652 (const_fixed_from_double_int): New static inline function.
12653 * fold-const.c (native_interpret_fixed): New static function.
12654 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
12655 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
12656 (native_encode_fixed): New static function.
12657 (native_encode_expr) <FIXED_CST>: Use it.
12658 (native_interpret_int): Move double_int worker code to...
12659 * double-int.c (double_int::from_buffer): ...this new static method.
12660 * double-int.h (double_int::from_buffer): Prototype it.
12662 2013-01-30 Richard Biener <rguenther@suse.de>
12664 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
12665 New pointer-map and obstack.
12666 (init_alias_vars): Allocate pointer-map and obstack.
12667 (delete_points_to_sets): Free them.
12668 (find_what_var_points_to): Cache result.
12669 (find_what_p_points_to): Adjust for changed interface of
12670 find_what_var_points_to.
12671 (compute_points_to_sets): Likewise.
12672 (ipa_pta_execute): Likewise.
12674 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12676 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
12677 * configure: Regenerate.
12678 * config.in: Regenerate.
12679 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
12680 #nobits/#progbits if supported.
12682 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
12685 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
12686 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
12687 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
12689 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12691 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
12692 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
12694 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12696 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
12697 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
12699 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12701 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
12703 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
12704 * config/arm/cortex-a7.md: New bypasses using
12705 arm_mac_accumulator_is_result.
12707 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12709 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
12710 (cortex_a7_neon_mla): Likewise.
12711 (cortex_a7_fpfmad): New reservation.
12712 (cortex_a7_fpmacs): Use ffmas and update required units.
12713 (cortex_a7_fpmuld): Update required units and latency.
12714 (cortex_a7_fpmacd): Likewise.
12715 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
12716 (cortex_a7_neon). Likewise.
12717 (bypass) Update participating units.
12719 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12721 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
12722 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
12724 * config/arm/vfp11.md (vfp_farith): Use ffmas.
12725 (vfp_fmul): Use ffmad.
12726 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
12727 (cortex_r4_fmacd): Use ffmad.
12728 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
12729 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
12730 (cortex_a9_fmacd): Use ffmad.
12731 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
12732 (cortex_a8_vfp_macd): Use ffmad.
12733 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
12734 (cortex_a5_fpmacd): Use ffmad.
12735 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
12736 (cortex_a15_vfp_macd): Use ffmad.
12737 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
12739 2013-01-29 Jason Merrill <jason@redhat.com>
12742 * varasm.c (default_assemble_visibility): Don't warn about
12743 visibility on artificial decls.
12745 2013-01-29 Richard Biener <rguenther@suse.de>
12747 PR tree-optimization/56113
12748 * tree-ssa-structalias.c (equiv_class_lookup): Also return
12750 (label_visit): Free duplicate bitmaps and record the leader instead.
12751 (perform_var_substitution): Adjust.
12753 2013-01-29 Richard Biener <rguenther@suse.de>
12755 PR tree-optimization/55270
12756 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
12757 the CFG, schedule loops for fixup.
12759 2013-01-29 Nick Clifton <nickc@redhat.com>
12761 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
12764 2013-01-28 Leif Ekblad <leif@rdos.net>
12766 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
12767 * config/i386/i386.h (TARGET_RDOS): New macro.
12768 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
12769 * config/i386/i386.c (ix86_option_override_internal): For 64bit
12770 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
12771 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
12772 DEFAULT_LARGE_SECTION_THRESHOLD.
12773 * config/i386/i386.md (R14_REG, R15_REG): New constants.
12774 * config/i386/rdos.h: New file.
12775 * config/i386/rdos64.h: New file.
12777 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
12780 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
12783 2013-01-28 Jakub Jelinek <jakub@redhat.com>
12785 PR rtl-optimization/56117
12786 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
12787 call cselib_lookup_from_insn on the MEM before calling
12788 add_insn_mem_dependence.
12790 2013-01-28 Richard Biener <rguenther@suse.de>
12792 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
12793 to a stmt that didn't have one.
12794 (copy_phis_for_bb): Likewise for PHI arguments.
12795 (copy_debug_stmt): Likewise for debug stmts.
12797 2013-01-28 Richard Biener <rguenther@suse.de>
12799 PR tree-optimization/56034
12800 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
12801 (partition_builtin_p): Adjust.
12802 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
12803 it is the last partition.
12804 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
12805 up the vertex for the definition.
12806 (classify_partition): Classify whether a partition is a
12807 PKIND_REDUCTION, thus has uses outside of the loop.
12808 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
12809 Merge all PKIND_REDUCTION partitions into the last partition.
12810 (tree_loop_distribution): Seed partitions from reductions as well.
12812 2013-01-28 Jakub Jelinek <jakub@redhat.com>
12814 PR tree-optimization/56125
12815 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
12816 pow(x,c) into sqrt(x) * powi(x, n/2) or
12817 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
12818 optimizing for size.
12819 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
12820 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
12823 PR tree-optimization/56094
12824 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
12825 to UNKNOWN_LOCATION while gimplifying expr.
12827 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
12830 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
12831 operand 0 in movabs insn template for -masm=intel asm alternative.
12832 (*movabs<mode>_2): Ditto for operand 1.
12834 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
12837 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
12840 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12842 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
12845 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
12847 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
12848 Undef to avoid warning.
12850 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
12852 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
12853 * configure: Regenerate.
12855 2013-01-25 Jakub Jelinek <jakub@redhat.com>
12857 PR tree-optimization/56098
12858 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
12859 for stmts with volatile ops.
12860 (cond_store_replacement): Don't optimize if assign has volatile ops.
12861 (cond_if_else_store_replacement_1): Don't optimize if either
12862 then_assign or else_assign have volatile ops.
12863 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
12866 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
12868 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
12870 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
12872 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
12873 missing ':' in asm example.
12875 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
12877 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
12878 entries into lane and laneq entries.
12879 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
12880 Remove AdvSIMD scalar modes.
12881 (aarch64_sq<r>dmulh_laneq<mode>): New.
12882 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
12884 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
12885 builtin implementations to relfect changes in RTL in aarch64-simd.md.
12886 * config/aarch64/iterators.md (VCOND): New.
12889 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
12892 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
12893 Add NULL LIBNAME argument to existing definitions.
12894 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
12895 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
12896 * config/avr/avr.c (DEF_BUILTIN): Same.
12897 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
12898 (avr_expand_builtin): Expand to a vanilla call if a libgcc
12899 implementation is available (DECL_ASSEMBLER_NAME is set).
12900 (avr_fold_absfx): New static function.
12901 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
12902 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
12903 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
12904 AVR_BUILTIN_ABSLLK.
12905 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
12906 (abshk, absk, abslk, absllk): Provide as static inline functions.
12908 2013-01-25 Marek Polacek <polacek@redhat.com>
12910 PR tree-optimization/56035
12911 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
12913 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
12915 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
12916 (*movtf_internal_rex64): Add (!o,C) alternative
12917 (*movxf_internal_rex64): Ditto.
12918 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
12920 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
12922 * doc/invoke.texi: fix typo.
12923 * doc/objc.texi: fix typo.
12925 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
12927 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
12928 for the first two alternatives.
12930 2013-01-24 Diego Novillo <dnovillo@google.com>
12932 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
12933 (ggc-zone.o): Remove.
12934 * configure.ac: Remove option --with-gc.
12935 * configure: Re-generate.
12936 * doc/install.texi: Remove documentation for --with-gc.
12937 * gengtype.c (write_enum_defn): Remove. Update all users.
12938 (write_Types_process_field): Remove generation of gt_e_* argument.
12939 (output_type_enum): Remove. Update all users.
12940 (write_enum_defn): Remove. Update all users.
12941 (enum alloc_zone): Remove. Update all users.
12942 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
12943 * ggc-common.c (ggc_splay_alloc): Remove first argument.
12944 Update all callers.
12945 (struct ptr_data): Remove field TYPE. Update all users.
12946 (gt_pch_note_object): Remove argument TYPE. Update all users.
12947 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
12949 * ggc-none.c (ggc_alloc_typed_stat): Remove.
12950 (struct alloc_zone): Remove.
12951 (ggc_internal_alloc_zone_stat): Remove.
12952 (ggc_internal_cleared_alloc_zone_stat): Remove.
12953 * ggc-page.c (ggc_alloc_typed_stat): Remove.
12954 (ggc_pch_count_object): Remove last argument. Update all users.
12955 (ggc_pch_alloc_object): Remove last argument. Update all users.
12956 (struct alloc_zone): Remove.
12957 * ggc-zone.c: Remove.
12958 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
12959 (struct alloc_zone): Remove.
12960 (ggc_alloc_typed_stat): Remove.
12961 (ggc_alloc_typed): Remove.
12962 (ggc_splay_alloc): Remove first argument.
12963 (rtl_zone): Remove. Update all users.
12964 (tree_zone): Remove. Update all users.
12965 (tree_id_zone): Remove. Update all users.
12966 (ggc_internal_zone_alloc_stat): Remove. Update all users.
12967 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
12968 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
12969 * tree-ssanames.c: Remove references to zone allocator in comments.
12971 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
12973 * config/avr/avr.c (avr_out_fract): Make register numbers that
12974 might be outside of source operand signed.
12976 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
12978 * config/i386/constraints.md (Yf): New constraint.
12979 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
12980 of f constraint to conditionaly disable x87 register preferences.
12981 (*movdf_internal): Ditto.
12982 (*movsf_internal): Ditto.
12984 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
12986 PR inline-asm/55934
12987 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
12988 that have operands with impossible constraints.
12989 Add a FIXME for a speed-up opportunity.
12990 * lra-constraints.c (process_alt_operands): Verify that a class
12991 selected from constraints on asms is valid for the operand mode.
12992 (curr_insn_transform): Remove incorrect comment.
12994 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
12996 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
12997 TOC operand is a valid symbol ref in the constant pool.
12999 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
13001 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
13003 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
13006 * config/avr/stdfix.h: New file.
13007 * t-avr (stdfix-gcc.h): New rule to build it.
13008 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
13010 2013-01-23 Kostya Serebryany <kcc@google.com>
13012 * config/darwin.h: remove dependency on
13013 CoreFoundation (asan on Mac OS).
13015 2013-01-23 Jakub Jelinek <jakub@redhat.com>
13018 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
13019 instead of cmpdi_operand for first comparison operand.
13020 Don't assert that comparison operands aren't both constants.
13022 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
13024 * doc/install.texi (Downloading the Source): Update references to
13025 downloading separate components.
13027 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
13029 * doc/extend.texi (__int128): Improve grammar.
13031 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
13034 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
13035 alternative to (o,r).
13036 (*movdi_internal_rex64): Remove (!o,n) alternative.
13037 (DImode immediate->memory splitter): Remove.
13038 (DImode immediate->memory peephole2): Remove.
13039 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
13040 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
13041 alternative to (!o,*r).
13042 (*movtf_internal_sse): New pattern.
13043 (*movxf_internal_rex64): New pattern.
13044 (*movxf_internal): Disable for TARGET_64BIT.
13045 (*movdf_internal_rex64): Remove (!o,F) alternative.
13047 2013-01-22 Jakub Jelinek <jakub@redhat.com>
13049 PR middle-end/56074
13050 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
13051 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
13052 * tree-vect-loop-manip.c (find_loop_location): Also ignore
13053 stmt locations where LOCATION_LOCUS of the stmt location is
13054 UNKNOWN_LOCATION or BUILTINS_LOCATION.
13057 * config/i386/i386.md (UNSPEC_STOS): New.
13058 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
13059 *strsetqi_1): Add UNSPEC_STOS.
13061 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
13064 * doc/invoke.texi: Remove left over -Wsynth example.
13066 2013-01-21 Jakub Jelinek <jakub@redhat.com>
13068 PR tree-optimization/56051
13069 * fold-const.c (fold_binary_loc): Don't fold
13070 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
13071 a narrowing conversion, or widening conversion from signed
13074 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
13076 PR rtl-optimization/56023
13077 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
13078 dependent on debug instruction.
13080 2013-01-21 Martin Jambor <mjambor@suse.cz>
13082 PR middle-end/56022
13083 * function.c (allocate_struct_function): Call
13084 invoke_set_current_function_hook earlier.
13086 2013-01-21 Jakub Jelinek <jakub@redhat.com>
13088 * reload1.c (init_reload): Only initialize reload_obstack
13089 during the first call.
13091 2013-01-21 Marek Polacek <polacek@redhat.com>
13093 * cfgloop.c (verify_loop_structure): Fix up grammar.
13095 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
13097 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
13098 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
13100 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13103 * config/arm/marvell-pj4.md: Update copyright year.
13104 Fix up use of alu to alu_reg and simple_alu_imm.
13106 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
13108 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
13110 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
13113 * lra-constraints.c (curr_insn_transform): Don't reuse original
13114 insn for secondary memory move when memory mode should be different.
13116 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13118 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
13119 atomic_storedi_1): New patterns.
13121 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13123 btver2 pipeline descriptions.
13124 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
13126 * config/i386/i386.md (btver2_decode): New type attributes.
13127 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
13129 * config/i386/btver2.md: New file describing btver2 pipelines.
13131 2013-01-19 Andrew Pinski <apinski@cavium.com>
13133 PR tree-optimization/52631
13134 * tree-ssa-sccvn (visit_use): Before looking up the original
13135 statement, try looking up the simplified expression.
13137 2013-01-19 Anthony Green <green@moxielogic.com>
13139 * config/moxie/moxie.c (moxie_expand_prologue): Set
13140 current_function_static_stack_size.
13142 2013-01-18 Jakub Jelinek <jakub@redhat.com>
13144 PR tree-optimization/56029
13145 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
13146 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
13148 2013-01-18 Sharad Singhai <singhai@google.com>
13150 PR tree-optimization/55995
13151 * dumpfile.c (dump_loc): Print location only if available.
13152 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
13154 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
13157 * lra-constraints.c (curr_insn_transform): Reuse original insn for
13158 secondary memory move.
13159 (inherit_reload_reg): Use rclass instead of cl for
13160 check_secondary_memory_needed_p.
13162 2013-01-18 Jakub Jelinek <jakub@redhat.com>
13164 PR middle-end/56015
13165 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
13166 the case where writing real complex part of target modifies op1.
13168 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
13170 * config/aarch64/aarch64-simd.md
13171 (aarch64_vcond_internal<mode>): Handle unordered cases.
13172 * config/aarch64/iterators.md (v_cmp_result): New.
13174 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
13175 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13177 * config/arm/marvell-pj4.md: New file.
13178 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
13179 * config/arm/arm.md (generic_sched): Add marvell_pj4.
13180 (generic_vfp): Likewise.
13181 * config/arm/arm-cores.def: Add marvell-pj4.
13182 * config/arm/arm-tune.md: Regenerate.
13183 * config/arm/arm-tables.opt: Regenerate.
13184 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
13185 * doc/invoke.texi: Document marvell-pj4.
13187 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
13189 * config/aarch64/arm_neon.h: Map scalar types to standard types.
13191 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
13196 * var-tracking.c (negative_power_of_two_p): New.
13197 (global_get_addr_cache, local_get_addr_cache): New.
13198 (get_addr_from_global_cache, get_addr_from_local_cache): New.
13199 (vt_canonicalize_addr): Rewrite using the above. Adjust the
13201 (vt_stack_offset_p): Remove.
13202 (vt_canon_true_dep): Always canonicalize loc's address.
13203 (clobber_overlapping_mems): Make sure we have a MEM.
13204 (local_get_addr_clear_given_value): New.
13205 (val_reset): Clear local cached entries.
13206 (compute_bb_dataflow): Create and release the local cache.
13207 Disable duplicate MEMs clobbering.
13208 (emit_notes_in_bb): Clobber MEMs likewise.
13209 (vt_emit_notes): Create and release the local cache.
13210 (vt_initialize, vt_finalize): Create and release the global
13211 cache, respectively.
13212 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
13214 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
13216 PR libmudflap/53359
13217 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
13218 not found in the symtab.
13220 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
13223 PR rtl-optimization/55547
13224 PR rtl-optimization/53827
13227 * alias.c (offset_overlap_p): New, factored out of...
13228 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
13229 the conservative special case for symbolic constants. Don't
13230 adjust zero sizes on alignment.
13232 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
13234 PR rtl-optimization/52573
13235 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
13236 REG_UNUSED for the same register.
13238 2013-01-17 Richard Biener <rguenther@suse.de>
13239 Marek Polacek <polacek@redhat.com>
13241 PR rtl-optimization/55833
13242 * loop-unswitch.c (unswitch_loops): Move loop verification...
13243 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
13244 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
13245 Set it to true when we're removing a loop from hierarchy tree in
13246 an irreducible region.
13247 (fix_bb_placements): Adjust caller.
13248 (fix_loop_placements): Likewise.
13250 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
13252 * config/avr/builtins.def (DEF_BUILTIN): Factor out
13253 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
13254 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
13255 Remove ID. Adjust comments.
13256 * config/avr/avr-c.c (avr_builtin_name): Remove.
13257 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
13258 * config/avr/avr.c (avr_tolower): New static function.
13259 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
13260 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
13261 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
13264 2013-01-17 Jan Hubicka <jh@suse.cz>
13266 PR tree-optimization/55273
13267 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
13269 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
13272 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
13273 store through atomic_store<mode>_1.
13274 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
13276 2013-01-17 Martin Jambor <mjambor@suse.cz>
13278 PR tree-optimizations/55264
13279 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
13280 for virtual methods.
13281 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
13282 virtual methods before inlining is over.
13283 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
13285 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
13288 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
13290 PR rtl-optimization/56005
13291 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
13292 pending reads for prefetch.
13294 2013-01-16 Ian Bolton <ian.bolton@arm.com>
13296 * config/aarch64/aarch64.md
13297 (*cstoresi_neg_uxtw): New pattern.
13298 (*cmovsi_insn_uxtw): New pattern.
13299 (*<optab>si3_uxtw): New pattern.
13300 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
13301 (*<optab>si3_insn_uxtw): New pattern.
13302 (*bswapsi2_uxtw): New pattern.
13304 2013-01-16 Richard Biener <rguenther@suse.de>
13306 * tree-inline.c (tree_function_versioning): Remove set but
13307 never used variable.
13309 2013-01-16 Richard Biener <rguenther@suse.de>
13311 PR tree-optimization/55964
13312 * tree-flow.h (rename_variables_in_loop): Remove.
13313 (rename_variables_in_bb): Likewise.
13314 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
13315 (copy_loop_before): Adjust and delete update-ssa status.
13316 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
13317 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
13318 (rename_variables_in_loop): Remove.
13319 (slpeel_update_phis_for_duplicate_loop): Likewise.
13320 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
13321 use available cfg machinery instead of duplicating it.
13322 Update PHI nodes and perform poor-mans SSA update here.
13323 (slpeel_tree_peel_loop_to_edge): Adjust.
13325 2013-01-16 Richard Biener <rguenther@suse.de>
13327 PR tree-optimization/54767
13328 PR tree-optimization/53465
13329 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
13330 (vrp_visit_phi_node): For PHI arguments coming via backedges
13331 drop all symbolical range information.
13332 (execute_vrp): Compute backedges.
13334 2013-01-16 Richard Biener <rguenther@suse.de>
13336 * doc/install.texi: Update CLooG and ISL requirements to
13339 2013-01-16 Christian Bruel <christian.bruel@st.com>
13342 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
13343 (broken_move): Handle UNSPECV_SP_SWITCH_B.
13344 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
13346 2013-01-16 DJ Delorie <dj@redhat.com>
13348 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
13349 (UNSPECV_SP_SWITCH_E): New.
13350 (sp_switch_1): Change to an unspec.
13351 (sp_switch_2): Change to an unspec. Don't use post-inc when we
13354 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
13356 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
13357 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
13358 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
13359 (expand_mem_thread_fence): Ditto.
13360 (expand_mem_signal_fence): Ditto.
13361 (expand_atomic_load): Ditto.
13362 (expand_atomic_store): Ditto.
13364 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
13366 PR rtl-optimization/55547
13367 PR rtl-optimization/53827
13370 * alias.c (memrefs_conflict_p): Set sizes to negative after
13373 2013-01-15 Jakub Jelinek <jakub@redhat.com>
13376 * function.c (thread_prologue_and_epilogue_insns): Always
13377 add crtl->drap_reg to set_up_by_prologue.set, even if
13378 stack_realign_drap is false.
13380 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13382 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
13383 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
13384 *call): Fix indention.
13386 2013-01-15 Tom de Vries <tom@codesourcery.com>
13389 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
13392 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
13394 PR rtl-optimization/55153
13395 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
13397 2013-01-15 Martin Jambor <mjambor@suse.cz>
13399 PR tree-optimization/55920
13400 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
13401 accesses as grp_to_be_debug_replaced.
13403 2013-01-15 Jakub Jelinek <jakub@redhat.com>
13405 PR tree-optimization/55920
13406 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
13407 there is non-useless type conversion needed from debug rhs to lhs,
13408 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
13410 2013-01-15 Joseph Myers <joseph@codesourcery.com>
13411 Mikael Pettersson <mikpe@it.uu.se>
13414 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
13416 (ASM_OUTPUT_CASE_LABEL): Remove.
13417 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
13418 * final.c (shorten_branches): Update alignment of labels before
13419 jump tables if CASE_VECTOR_SHORTEN_MODE.
13421 2013-01-15 Richard Biener <rguenther@suse.de>
13424 * system.h: Do not include gmp.h for building host tools.
13426 2013-01-15 Richard Biener <rguenther@suse.de>
13428 PR middle-end/55882
13429 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
13430 account for bitpos when computing alignment.
13432 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
13434 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
13435 (ix86_target_macros_internal): Likewise.
13437 * config/i386/i386.c (m_CORE2I7): Removed.
13438 (m_CORE_HASWELL): New macro.
13439 (m_CORE_ALL): Likewise.
13440 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
13441 (initial_ix86_arch_features): Likewise.
13442 (processor_target_table): Initializations for Core avx2.
13443 (cpu_names): New names "core-avx2".
13444 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
13445 PROCESSOR_CORE_HASWELL.
13446 (ix86_issue_rate): New case.
13447 (ia32_multipass_dfa_lookahead): Likewise.
13448 (ix86_sched_init_global): Likewise.
13450 * config/i386/i386.h (TARGET_HASWELL): New macro.
13451 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
13452 (processor_type): New PROCESSOR_HASWELL.
13454 2013-01-15 Jakub Jelinek <jakub@redhat.com>
13456 PR tree-optimization/55955
13457 * tree-vect-loop.c (vectorizable_reduction): Give up early on
13458 *SHIFT_EXPR and *ROTATE_EXPR codes.
13460 PR tree-optimization/48766
13461 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
13462 -ftrapv disable -fwrapv.
13464 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
13467 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
13468 etc. to 1 and not to __flash.
13469 Use LL suffix for __INT24_MAX__ with -mint8.
13470 Use ULL suffix for __UINT24_MAX__ with -mint8.
13472 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
13474 * config/avr/avr-arch.h
13475 (struct base_arch_s): Use typedef avr_arch_t instead.
13476 (struct arch_info_s): Use typedef avr_arch_info_t instead.
13477 (struct mcu_type_s): Use typedef avr_mcu_t instead.
13478 * config/avr/avr.c: Same.
13479 * config/avr/avr-devices.c: Same.
13480 * config/avr/driver-avr.c: Same.
13481 * config/avr/gen-avr-mmcu-texi.c: Same.
13482 * config/avr/avr-mcus.def: Adjust comment.
13484 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
13486 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
13487 * config/aarch64/iterators.md (VALLDI): New.
13489 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
13490 Andi Kleen <ak@linux.intel.com>
13493 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
13494 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
13497 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
13499 * config/avr/avr-stdint.h: Remove trailing blanks.
13500 * config/avr/avr-log.h: Same.
13501 * config/avr/avr-arch.h: Same.
13502 * config/avr/avr-devices.c: Same.
13503 * config/avr/avr-dimode.md: Same.
13504 * config/avr/predicates.md: Same.
13505 * config/avr/avr-c.c: Same. And fix typo.
13507 * config/avr/avr-protos.h: Same. And:
13508 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
13509 (init_cumulative_args): Rename to avr_init_cumulative_args.
13510 (expand_prologue): Rename to avr_expand_prologue.
13511 (expand_epilogue): Rename to avr_expand_epilogue.
13512 (adjust_insn_length): Rename to avr_adjust_insn_length.
13513 (notice_update_cc): Rename to avr_notice_update_cc.
13514 (final_prescan_insn): Rename to avr_final_prescan_insn.
13515 * config/avr/avr.c: Same.
13516 * config/avr/avr.h: Same.
13517 * config/avr/avr.md: Remove trailing blanks.
13518 (prologue): Use avr_expand_prologue.
13519 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
13521 2013-01-14 Richard Biener <rguenther@suse.de>
13523 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
13524 verify_location, collect_subblocks): New functions.
13525 (verify_gimple_in_cfg): Verify that locations only reference
13526 BLOCKs in the functions BLOCK tree.
13528 2013-01-14 Richard Biener <rguenther@suse.de>
13530 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
13532 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
13534 (insert_out_of_ssa_copy_on_edge): Likewise.
13535 (rewrite_close_phi_out_of_ssa): Likewise.
13536 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
13538 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
13539 propagated constants.
13540 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
13543 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
13545 * config/avr/avr-modes.def: Add GPL copyright notice.
13547 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
13549 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
13550 MEMMODEL_MASK to determine memory model.
13551 (atomic_store<mode>): Ditto from operands[2].
13552 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
13554 2013-01-13 Jakub Jelinek <jakub@redhat.com>
13557 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
13558 (fold_gimple_assign): Don't call unshare_expr here.
13559 (fold_ctor_reference): Call unshare_expr.
13561 2013-01-13 Terry Guo <terry.guo@arm.com>
13563 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
13564 * doc/fragments.texi: Document MULTILIB_REUSE.
13565 * gcc.c (multilib_reuse): New internal spec.
13566 (set_multilib_dir): Also search multilib from multilib_reuse.
13567 * genmultilib (tmpmultilib3): Refactor code.
13568 (tmpmultilib4): Ditto.
13569 (multilib_reuse): New multilib argument.
13571 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
13573 * Makefile.in: Update copyright.
13575 2013-01-12 Tom de Vries <tom@codesourcery.com>
13577 PR middle-end/55890
13578 * calls.c (expand_call): Check if arg_nr is valid.
13580 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
13582 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
13583 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
13584 documentation. Add missing '__' in front of
13585 __builtin_ia32_packssdw256.
13587 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13590 * config/s390/s390.c (s390_preferred_reload_class): Do not return
13591 NO_REGS for larl operands.
13592 (s390_reload_larl_operand): Use s390_load_address instead of
13595 2013-01-11 Richard Biener <rguenther@suse.de>
13597 * tree-cfg.c (verify_node_sharing_1): Split out from ...
13598 (verify_node_sharing): ... here.
13599 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
13601 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
13603 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
13604 Substitute TREECHECKING.
13605 * configure: Regenerate.
13606 * Makefile.in (TREECHECKING): New.
13608 2013-01-11 Richard Guenther <rguenther@suse.de>
13610 PR tree-optimization/44061
13611 * tree-vrp.c (extract_range_basic): Compute zero as
13612 value-range for __builtin_constant_p of function parameters.
13614 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
13616 Update copyright years.
13618 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
13620 PR rtl-optimization/55672
13621 * lra-eliminations.c (mark_not_eliminable): Permit addition with
13622 const to be eliminable.
13624 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
13626 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
13627 * configure: Regenerate.
13629 2013-01-10 Richard Biener <rguenther@suse.de>
13631 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
13633 2013-01-10 Richard Biener <rguenther@suse.de>
13636 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
13637 locations for virtual PHI arguments.
13638 (rewrite_update_phi_arguments): Likewise.
13640 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
13642 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
13645 2013-01-10 Jakub Jelinek <jakub@redhat.com>
13647 PR tree-optimization/55921
13648 * tree-complex.c (expand_complex_asm): New function.
13649 (expand_complex_operations_1): Call it for GIMPLE_ASM.
13651 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13654 * config/s390/s390.c (s390_symref_operand_p)
13655 (s390_loadrelative_operand_p): Merge the two functions.
13656 (s390_check_qrst_address, print_operand_address): Add parameters
13657 to s390_loadrelative_operand_p invokation.
13658 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
13659 (s390_reload_larl_operand, s390_secondary_reload): Use
13660 s390_loadrelative_operand_p instead of s390_symref_operand_p.
13661 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
13663 2013-01-09 Mike Stump <mikestump@comcast.net>
13665 * dse.c (record_store): Remove unnecessary assert.
13667 2013-01-09 Jan Hubicka <jh@suse.cz>
13669 PR tree-optimization/55569
13670 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
13671 * cfgloop.h (scale_loop_profile): Likewise.
13673 2013-01-09 Jan Hubicka <jh@suse.cz>
13676 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
13678 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
13680 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
13682 PR middle-end/55114
13683 * expr.h (maybe_emit_group_store): Declare.
13684 * expr.c (maybe_emit_group_store): New function.
13685 * builtins.c (expand_builtin_int_roundingfn): Call it.
13686 (expand_builtin_int_roundingfn_2): Likewise.
13688 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
13690 PR rtl-optimization/55829
13691 * lra-constraints.c (match_reload): Add code for absent output.
13692 (curr_insn_transform): Add code for reloads of matched inputs
13695 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
13697 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
13698 attribute of movddup insn to DF.
13699 (*vec_interleave_lowv2df): Ditto.
13700 (vec_dupv2df): Ditto.
13702 2013-01-09 Jan Hubicka <jh@suse.cz>
13704 PR tree-optimiation/55875
13705 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
13706 EVERY_ITERATION parameter.
13707 (number_of_iterations_exit): Check if exit is executed every iteration.
13708 (idx_infer_loop_bounds): Similarly here.
13709 (n_of_executions_at_most): Simplify
13710 to only test for cases where statement is dominated by the
13711 particular bound; handle correctly the "postdominance" test.
13712 (scev_probably_wraps_p): Use max loop iterations info
13713 as a global bound first.
13715 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
13716 Nick Clifton <nickc@redhat.com>
13718 * config/v850/v850.md (cbranchsf4): New pattern.
13719 (cstoresf4): New pattern.
13720 (cbranchdf4): New pattern.
13721 (cstoredf4): New pattern.
13722 (movsicc): Disallow floating point comparisons.
13723 (cmpsf_le_insn): Fix order of operators.
13724 (cmpsf_lt_insn): Likewise.
13725 (cmpsf_eq_insn): Likewise.
13726 (cmpdf_le_insn): Likewise.
13727 (cmpdf_lt_insn): Likewise.
13728 (cmpdf_eq_insn): Likewise.
13729 (cmpsf_ge_insn): Use LE comparison.
13730 (cmpdf_ge_insn): Likewise.
13731 (cmpsf_gt_insn): Use LT comparison.
13732 (cmpdf_gt_insn): Likewise.
13733 (cmpsf_ne_insn): Delete pattern.
13734 (cmpdf_ne_insn): Delete pattern.
13735 * config/v850/v850.c (v850_gen_float_compare): Use
13736 gen_cmpdf_eq_insn for NE comparison.
13737 (v850_float_z_comparison_operator)
13738 (v850_float_nz_comparison_operator): Move from here ...
13739 * config/v850/predicates.md: ... to here. Move GT and GE
13740 comparisons into v850_float_z_comparison_operator.
13741 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
13743 (v850_float_nz_comparison_operator): Likewise.
13745 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13747 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
13748 with calls to gen_insvsi/gen_insvdi.
13750 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13752 * config/i386/i386.c (initial_ix86_tune_features): Set up
13753 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
13755 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
13756 Jakub Jelinek <jakub@redhat.com>
13758 PR tree-optimization/48189
13759 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
13760 If nitercst is 0, don't predict the exit edge.
13762 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13764 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
13765 in asm_fprintf with reg_names.
13766 (aarch64_print_operand_address): Likewise.
13767 (aarch64_return_addr): Likewise.
13768 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
13770 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13772 * config/pa/pa.h (VAL_U6_BITS_P): Define.
13773 (INT_U6_BITS): Likewise.
13774 * config/pa/predicates.md (uint6_operand): New predicate.
13775 (shift5_operand, shift6_operand): Likewise.
13776 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
13778 (lshrdi3): Use shift6_operand.
13779 (shrpsi4, shrpdi4): New insn patterns.
13780 (extzv): Delete expander.
13781 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
13782 predicates in unamed zero extract patterns. Tighten common constraint.
13783 (extv): Delete expander.
13784 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
13785 predicates in unamed sign extract patterns. Tighten common constraint.
13786 (insv): Delete expander.
13787 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
13788 predicates in unamed insert patterns. Tighten common constraint.
13789 Change uint32_operand predicate to uint6_operand predicate in unamed
13790 DImode pattern to insert constant values of type 1...1xxxx.
13792 2013-01-04 Jan Hubicka <jh@suse.cz>
13794 PR tree-optimization/55823
13795 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
13798 2013-01-08 Jakub Jelinek <jakub@redhat.com>
13799 Uros Bizjak <ubizjak@gmail.com>
13801 PR rtl-optimization/55845
13802 * df-problems.c (can_move_insns_across): Stop scanning at
13803 volatile_insn_p source instruction or give up if
13804 across_from .. across_to range contains any volatile_insn_p
13807 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
13809 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
13810 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
13812 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
13813 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
13815 2013-01-08 Jakub Jelinek <jakub@redhat.com>
13818 * asan.c (asan_clear_shadow): New function.
13819 (asan_emit_stack_protection): Use it.
13821 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
13823 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
13824 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
13825 with tab instead of space.
13827 2013-01-08 Nick Clifton <nickc@redhat.com>
13829 * config/rl78/rl78.c (rl78_expand_prologue): Always select
13830 register bank 0 at the start of an interrupt handler.
13831 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
13834 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
13836 * config/aarch64/aarch64-simd.md
13837 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
13838 (aarch64_simd_bsl): Likewise.
13839 (aarch64_vcond_internal<mode>): Likewise.
13840 (vcond<mode><mode>): Likewise.
13841 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
13842 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
13844 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
13846 * config/aarch64/aarch64-builtins.c
13847 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
13849 2013-01-08 Martin Jambor <mjambor@suse.cz>
13852 * tree-sra.c (analyze_access_subtree): Return true also after
13853 potentially creating a debug-only replacement.
13855 2013-01-08 Jakub Jelinek <jakub@redhat.com>
13857 PR middle-end/55890
13858 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
13860 PR tree-optimization/54120
13861 * tree-vrp.c (range_fits_type_p): Don't allow
13862 src_precision < precision from signed vr to unsigned_p
13863 if vr->min or vr->max is negative.
13864 (simplify_float_conversion_using_ranges): Test can_float_p
13865 against CODE_FOR_nothing.
13867 2013-01-08 Jakub Jelinek <jakub@redhat.com>
13868 Richard Biener <rguenther@suse.de>
13870 PR middle-end/55851
13871 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
13872 types instead of just INTEGER_TYPE types.
13874 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
13876 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
13879 2013-01-07 Steve Ellcey <sellcey@mips.com>
13882 * config/mips/mips.opt: Change mad to mmad to match documentation.
13884 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
13887 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
13888 .progmemx.data now.
13890 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
13893 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
13894 (avr_addrspace_t): Add .section_name field.
13895 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
13897 (avr_addrspace): Same. Initialize .section_name. Remove last
13898 NULL entry. Put __memx into .progmemx.data.
13899 (progmem_section_prefix): Remove.
13900 (avr_asm_init_sections): No need to initialize progmem_section.
13901 (avr_asm_named_section): Use avr_addrspace[].section_name to get
13902 section name prefix.
13903 (avr_asm_select_section): Ditto. And use get_unnamed_section to
13904 retrieve the progmem section.
13905 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
13906 boundary to run over avr_addrspace[].
13907 (avr_register_target_pragmas): Ditto.
13909 2013-01-06 Jakub Jelinek <jakub@redhat.com>
13911 * varasm.c (output_constant_def_contents): For asan_protect_global
13912 protected strings, adjust DECL_ALIGN if needed, before testing for
13914 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
13915 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
13917 (output_object_block): For asan protected decls, emit asan padding
13918 after their contents.
13919 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
13920 (asan_finish_file): Test it here instead.
13922 2013-01-07 Nick Clifton <nickc@redhat.com>
13923 Matthias Klose <doko@debian.org>
13924 Doug Kwan <dougkwan@google.com>
13925 H.J. Lu <hongjiu.lu@intel.com>
13928 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
13930 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
13932 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
13934 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
13936 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
13938 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
13941 * doc/install.texi (Cross-Compiler-Specific Options): Document
13944 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
13946 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
13947 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
13948 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
13949 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
13950 vqmovun_high_s64): Fix source operand number and update copyright.
13952 2013-01-07 Richard Biener <rguenther@suse.de>
13954 PR middle-end/55890
13955 * gimple.h (gimple_call_builtin_p): New overload.
13956 * gimple.c (validate_call): New function.
13957 (gimple_call_builtin_p): Likewise.
13958 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
13959 Use gimple_call_builtin_p.
13960 (find_func_clobbers): Likewise.
13961 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
13962 (strlen_optimize_stmt): Likewise.
13964 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
13966 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
13967 (vld1q_dup_*): Likewise.
13968 (vld1_*): Likewise.
13969 (vld1q_*): Likewise.
13970 (vld1_lane_*): Likewise.
13971 (vld1q_lane_*): Likewise.
13973 2013-01-07 Richard Biener <rguenther@suse.de>
13975 * lto-streamer.h (LTO_minor_version): Bump to 2.
13977 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
13979 * config/aarch64/aarch64-protos.h
13980 (aarch64_const_double_zero_rtx_p): Rename to...
13981 (aarch64_float_const_zero_rtx_p): ...this.
13982 (aarch64_float_const_representable_p): New.
13983 (aarch64_output_simd_mov_immediate): Likewise.
13984 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
13985 move immediate case.
13986 * config/aarch64/aarch64.c
13987 (aarch64_const_double_zero_rtx_p): Rename to...
13988 (aarch64_float_const_zero_rtx_p): ...this.
13989 (aarch64_print_operand): Allow printing of new constants.
13990 (aarch64_valid_floating_const): New.
13991 (aarch64_legitimate_constant_p): Check for valid floating-point
13993 (aarch64_simd_valid_immediate): Likewise.
13994 (aarch64_vect_float_const_representable_p): New.
13995 (aarch64_float_const_representable_p): Likewise.
13996 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
13997 (aarch64_output_simd_mov_immediate): New.
13998 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
13999 (*movdf_aarch64): Likewise.
14000 * config/aarch64/constraints.md (Ufc): New.
14001 (Y): call aarch64_float_const_zero_rtx.
14002 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
14004 2013-01-07 Richard Biener <rguenther@suse.de>
14006 PR tree-optimization/55888
14007 PR tree-optimization/55862
14008 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
14009 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
14010 not if it is contained therein.
14012 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
14014 * config/avr/t-avr: Typo.
14016 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
14019 * config/avr/t-avr: Don't automatically rebuild
14020 $(srcdir)/config/avr/t-multilib
14021 $(srcdir)/config/avr/avr-tables.opt
14022 $(srcdir)/doc/avr-mmcu.texi
14023 (avr-mcus): New phony target to build them on request.
14024 (s-avr-mlib, s-avr-mmcu-texi): Remove.
14025 * avr/avr-mcus.def: Adjust comments.
14027 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
14029 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
14031 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
14033 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
14035 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
14037 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
14039 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
14041 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
14042 to generate profiling.
14043 * config/rs6000/aix64.h (LIB_SPEC): Same.
14045 2013-01-04 Andrew Pinski <apinski@cavium.com>
14047 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
14049 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
14051 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
14053 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
14055 (ix86_expand_move): Ditto.
14056 (ix86_zero_extend_to_Pmode): Ditto.
14057 (ix86_expand_call): Ditto.
14058 (ix86_expand_special_args_builtin): Ditto.
14059 (ix86_expand_builtin): Ditto.
14061 2013-01-04 Richard Biener <rguenther@suse.de>
14063 PR tree-optimization/55862
14064 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
14065 translating them through PHI nodes.
14067 2013-01-04 Martin Jambor <mjambor@suse.cz>
14069 PR tree-optimization/55755
14070 * tree-sra.c (sra_modify_assign): Do not check that an access has no
14071 children when trying to avoid producing a VIEW_CONVERT_EXPR.
14073 2013-01-04 Marek Polacek <polacek@redhat.com>
14075 PR middle-end/55859
14076 * opts.c (default_options_optimization): Clarify error message.
14078 2013-01-04 Richard Biener <rguenther@suse.de>
14080 PR middle-end/55863
14081 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
14084 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14087 * config/pa/pa.md (movsi): Revert previous change.
14088 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
14091 2013-01-03 Richard Henderson <rth@redhat.com>
14093 * config/i386/i386.c (ix86_expand_move): Always assign to op1
14094 after eliminating TLS symbols.
14096 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
14099 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
14100 * graphite-poly.c (debug_gmp_value): Likewise.
14102 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
14105 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
14106 selected code model, define __code_mode_small__, __code_model_medium__,
14107 __code_model_large__, __code_model_32__ or __code_model_kernel__.
14108 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
14109 xchg temporary register with %k. Declare temporary register as
14111 [__x86_64__]: For medium and large code models, preserve %rbx register.
14113 2013-01-03 Richard Biener <rguenther@suse.de>
14115 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
14116 (dump_subscript): Adjust.
14117 (finalize_ddr_dependent): Do not dump redundant info.
14118 (analyze_siv_subscript): Adjust.
14119 (subscript_dependence_tester): Likewise.
14120 (compute_affine_dependence): Likewise.
14122 2013-01-03 Richard Biener <rguenther@suse.de>
14125 2013-01-03 Richard Biener <rguenther@suse.de>
14127 PR tree-optimization/55857
14128 * tree-vect-stmts.c (vectorizable_load): Do not setup
14129 re-alignment for invariant loads.
14131 2013-01-02 Richard Biener <rguenther@suse.de>
14133 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
14134 invariant load do not generate a vector load from the scalar location.
14136 2013-01-03 Richard Biener <rguenther@suse.de>
14138 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
14139 for not vectorizing.
14140 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
14141 not build INDIRECT_REFs, call get_name once only.
14142 (vect_create_data_ref_ptr): Likewise. Dump base object kind
14143 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
14145 2013-01-03 Richard Biener <rguenther@suse.de>
14147 PR tree-optimization/55857
14148 * tree-vect-stmts.c (vectorizable_load): Do not setup
14149 re-alignment for invariant loads.
14151 2013-01-03 Richard Biener <rguenther@suse.de>
14154 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
14155 prefer a built-in decl.
14157 2013-01-03 Jakub Jelinek <jakub@redhat.com>
14159 * gcc.c (process_command): Update copyright notice dates.
14160 * gcov.c (print_version): Likewise.
14161 * gcov-dump.c (print_version): Likewise.
14163 PR rtl-optimization/55838
14164 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
14165 iv0.step, iv1.step and step.
14167 2013-01-03 Jakub Jelinek <jakub@redhat.com>
14168 Marc Glisse <marc.glisse@inria.fr>
14170 PR tree-optimization/55832
14171 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
14172 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
14173 integer_{one,zero}_node.
14175 2013-01-03 Jakub Jelinek <jakub@redhat.com>
14178 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
14179 * var-tracking.c (reverse_op): Don't add reverse ops to
14180 VALUEs that have already
14181 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
14183 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
14185 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
14187 2013-01-02 Teresa Johnson <tejohnson@google.com>
14189 * dumpfile.c (dump_loc): Print filename with location.
14190 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
14191 new location_t parameter to emit complete unroll message with
14192 new dump framework.
14193 (canonicalize_loop_induction_variables): Compute loops location
14194 and pass to try_unroll_loop_completely.
14195 * loop-unroll.c (report_unroll_peel): New function.
14196 (peel_loops_completely): Use new dump format with location
14197 for main dumpfile message, and invoke report_unroll_peel on success.
14198 (decide_unrolling_and_peeling): Ditto.
14199 (decide_peel_once_rolling): Remove old dumpfile message subsumed
14200 by report_unroll_peel.
14201 (decide_peel_completely): Ditto.
14202 (decide_unroll_constant_iterations): Ditto.
14203 (decide_unroll_runtime_iterations): Ditto.
14204 (decide_peel_simple): Ditto.
14205 (decide_unroll_stupid): Ditto.
14206 * cfgloop.c (get_loop_location): New function.
14207 * cfgloop.h (get_loop_location): Declare.
14209 2013-01-02 Sriraman Tallam <tmsriram@google.com>
14211 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
14214 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14216 PR middle-end/55198
14217 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
14218 BLKmode objects when EXPAND_MEMORY is specified.
14220 2013-01-02 Sriraman Tallam <tmsriram@google.com>
14222 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
14224 (fold_builtin_cpu): Do not share cpu model decls across statements.
14226 2013-01-02 Jason Merrill <jason@redhat.com>
14229 * tree.c (build_array_type_1): Revert earlier change.
14231 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
14233 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
14235 * config/aarch64/aarch64-tune.md: Re-generate.
14237 2013-01-02 Richard Biener <rguenther@suse.de>
14239 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
14240 invariant load do not generate a vector load from the scalar location.
14242 2013-01-02 Richard Biener <rguenther@suse.de>
14245 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
14246 * configure: Regenerate.
14248 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
14250 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
14251 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
14252 (expand_builtin_int_roundingfn_2): Keep the original target around
14253 for the fallback case.
14255 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
14257 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
14258 to be clear for sign changes.
14260 2013-01-01 Jan Hubicka <jh@suse.cz>
14262 * ipa-inline-analysis.c: Fix formatting.
14264 2013-01-01 Jakub Jelinek <jakub@redhat.com>
14266 PR tree-optimization/55831
14267 * tree-vect-loop.c (get_initial_def_for_induction): Use
14268 gsi_after_labels instead of gsi_start_bb.
14270 Copyright (C) 2013 Free Software Foundation, Inc.
14272 Copying and distribution of this file, with or without modification,
14273 are permitted in any medium without royalty provided the copyright
14274 notice and this notice are preserved.