1 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
3 * lra-constraints.c (curr_insn_transform): Switch off optional
6 2013-07-10 Joseph Myers <joseph@codesourcery.com>
8 * doc/tm.texi.in: Move hook documentation to ....
9 * target.def: ... here.
11 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
13 * doc/tm.texi: Regenerate.
15 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
18 * doc/invoke.texi: Document -Wconditionally-supported.
20 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
23 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
26 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
29 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
30 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
31 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
32 Remove duplicate devices.
33 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
34 * config/avr/t-multilib: Regenerate.
35 * config/avr/avr-tables.opt: Regenerate.
36 * doc/avr-mmcu.texi: Regenerate.
38 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
41 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
43 2013-07-10 Graham Stott <graham.stott@btinternet.com>
45 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
46 the cost of MULT when optimizing for size.
48 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
50 * config/cr16/cr16-protos.h: Don't include target.h.
52 2013-07-09 Joseph Myers <joseph@codesourcery.com>
54 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
55 adjust register size for TDmode and TFmode for VSX registers.
57 2013-07-08 Kai Tietz <ktietz@redhat.com>
60 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
61 hook_bool_const_tree_true.
63 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
65 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
66 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
67 * config/s390/s390.md: Define FPR*_REGNUM constants.
68 Fix FPR2_REGNUM constant (18 -> 17).
69 ("*trunc<BFP:mode><DFP_ALL:mode>2")
70 ("*trunc<DFP_ALL:mode><BFP:mode>2")
71 ("trunc<BFP:mode><DFP_ALL:mode>2")
72 ("trunc<DFP_ALL:mode><BFP:mode>2")
73 ("*extend<BFP:mode><DFP_ALL:mode>2")
74 ("*extend<DFP_ALL:mode><BFP:mode>2")
75 ("extend<BFP:mode><DFP_ALL:mode>2")
76 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
79 2013-07-08 Graham Stott <graham.stott@btinternet.com>
81 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
83 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
85 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
86 and cfun_fpr_bit_p to cfun_fpr_save_p.
87 (s390_frame_area, s390_register_info, s390_frame_info)
88 (s390_emit_prologue, s390_emit_epilogue)
89 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
91 * config/s390/s390.h: Define *_REGNUM macros for floating point
94 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
96 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
98 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
100 PR rtl-optimization/57786
101 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
102 and break out of the loop when it is set to false.
104 2013-07-08 Jakub Jelinek <jakub@redhat.com>
107 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
108 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
110 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
111 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
112 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
114 PR rtl-optimization/57829
115 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
116 mask bits outside of mode are just sign-extension from mode to HWI.
118 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
120 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
121 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
122 adjust_address instead of change_address to keep info about alignment.
123 (emit_strmov): Remove.
124 (emit_memmov): New function.
125 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
126 (expand_movmem_epilogue): Likewise and return updated rtx for
128 (expand_constant_movmem_prologue): Likewise and return updated rtx for
129 destination and source.
130 (decide_alignment): Refactor, handle vector_loop.
131 (ix86_expand_movmem): Likewise.
132 (ix86_expand_setmem): Likewise.
133 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
135 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
137 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
138 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
140 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
142 * config/i386/sse.md (sse_movlhps): Change alternative 3
145 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
148 * config/i386/sse.md (iptr): New mode attribute.
149 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
150 (<sse>_vm<plusminus_insn><mode>3): Ditto.
151 (<sse>_vmmul<mode>3): Ditto.
152 (<sse>_vmdiv<mode>3): Ditto.
153 (sse_vmrcpv4sf2): Ditto.
154 (<sse>_vmsqrt<mode>2): Ditto.
155 (sse_vmrsqrtv4sf2): Ditto.
156 (<sse>_vm<code><mode>3): Ditto.
157 (avx_vmcmp<mode>3): Ditto.
158 (<sse>_vmmaskcmp<mode>3): Ditto.
160 (<sse>_ucomi): Ditto.
161 (*xop_vmfrcz_<mode>): Ditto.
162 (*fmai_fmadd_<mode>): Ditto.
163 (*fmai_fmsub_<mode>): Ditto.
164 (*fmai_fnmadd_<mode>): Ditto.
165 (*fmai_fnmsub_<mode>): Ditto.
166 (*fma4i_vmfmadd_<mode>): Ditto.
167 (*fma4i_vmfmsub_<mode>): Ditto.
168 (*fma4i_vmfnmadd_<mode>): Ditto.
169 (*fma4i_vmfnmsub_<mode>): Ditto.
170 (*xop_vmfrcz_<mode>): Ditto.
171 (sse_cvtps2pi): Ditto.
172 (sse_cvttps2pi): Ditto.
173 (sse_cvtss2si): Ditto.
174 (sse_cvtss2si_2): Ditto.
175 (sse_cvtss2siq_2): Ditto.
176 (sse_cvttss2si): Ditto.
177 (sse_cvttss2siq): Ditto.
178 (sse_cvtsd2si): Ditto.
179 (sse_cvtsd2si_2): Ditto.
180 (sse_cvtsd2siq_2): Ditto.
181 (sse_cvttsd2si): Ditto.
182 (sse_cvttsd2siq): Ditto.
183 (sse_cvtsd2ss): Ditto.
184 (sse_cvtss2sd): Ditto.
185 (avx2_pbroadcast<mode>): Ditto.
186 (avx2_pbroadcast<mode>_1): Ditto.
187 (*avx_vperm_broadcast_v4sf): Ditto.
189 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
190 (sse_movlhps): Ditto.
191 (sse_storehps): Ditto.
192 (sse_loadhps): Ditto.
193 (sse_storelps): Ditto.
194 (sse_loadlps): Ditto.
195 (*vec_concatv4sf): Ditto.
196 (*vec_interleave_highv2df): Ditto.
197 (*vec_interleave_lowv2df): Ditto.
198 (*vec_extractv2df_1_sse): Ditto.
199 (*vec_extractv2df_0_sse): Ditto.
200 (sse2_storelpd): Ditto.
201 (sse2_loadlpd): Ditto.
203 (*vec_concatv4si): Ditto.
204 (vec_concatv2di): Ditto.
206 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
207 for Intel asm dialect.
208 (mmx_punpcklwd): Ditto.
209 (mmx_punpckldq): Ditto.
211 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
212 for intel assembler dialect.
214 2013-07-06 Jakub Jelinek <jakub@redhat.com>
217 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
218 for BUILT_IN_C{LZ,LRSB}*.
219 * tree.h (CASE_INT_FN): Add FN##IMAX case.
220 * tree-vrp.c (extract_range_basic): Handle
221 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
222 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
223 fall thru to code calling set_value*.
224 * builtins.c (expand_builtin): Remove *IMAX cases.
225 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
226 if width is bigger than 2*HWI.
228 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
230 PR rtl-optimization/55342
231 * lra-int.h (lra_subreg_reload_pseudos): New.
232 * lra.c: Add undoing optional reloads to the block diagram.
233 (lra_subreg_reload_pseudos): New.
234 (lra_optional_reload_pseudos): Change comments.
235 (lra): Init and clear lra_subreg_reload_pseudos. Clear
236 lra_optional_reload_pseudos after undo transformations.
237 * lra-assigns.c (pseudo_prefix_title): New.
238 (lra_setup_reg_renumber): Use it.
239 (spill_for): Ditto. Check subreg reload pseudos too.
240 (assign_by_spills): Consider subreg reload pseudos too.
241 * lra-constraints.c (simplify_operand_subreg): Use
242 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
243 (curr_insn_transform): Recognize and do optional reloads.
244 (undo_optional_reloads): New.
245 (lra_undo_inheritance): Call undo_optional_reloads.
247 2013-07-05 Thomas Quinot <quinot@adacore.com>
249 * tree-complex.c (expand_complex_operations_1): Fix typo.
251 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
253 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
254 (tune_params): New member 'const vec_costs'.
255 * config/aarch64/aarch64.c (generic_vector_cost): New.
256 (generic_tunings): New member 'generic_vector_cost'.
257 (aarch64_builtin_vectorization_cost): New.
258 (aarch64_add_stmt_cost): New.
259 (TARGET_VECTORIZE_ADD_STMT_COST): New.
260 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
262 2013-07-03 Jakub Jelinek <jakub@redhat.com>
265 * config/i386/predicates.md (vsib_address_operand): Disallow
266 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
268 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
271 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
272 expand_builtin_setjmp_receiver.
273 (expand_label): Adjust, call expand_builtin_setjmp_receiver
274 with NULL for the label parameter.
275 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
276 the frame-pointer. Adjust comments.
277 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
278 only if LABEL is non-NULL.
280 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
282 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
283 (ARM_ABI_AAPCS64): Ditto.
285 (ARM_DEFAULT_ABI): Ditto.
287 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
289 * config/aarch64/aarch64-builtins.c
290 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
291 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
293 * config/aarch64/aarch64-simd.md
294 (aarch64_ld1<VALL:mode>): New.
295 (aarch64_st1<VALL:mode>): Likewise.
296 * config/aarch64/arm_neon.h
297 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
299 2013-07-02 Sriraman Tallam <tmsriram@google.com>
301 * config/i386/i386.c (gate_insert_vzeroupper): Check if
303 (ix86_option_override_internal):Turn on all -mavx target flags by
304 default as they are dependent on AVX anyway.
306 2013-07-02 Cary Coutant <ccoutant@google.com>
308 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
310 (loc_checksum_ordered): Likewise.
311 (hash_loc_operands): Remove inline keyword.
313 2013-07-02 Jakub Jelinek <jakub@redhat.com>
315 PR tree-optimization/57741
316 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
317 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
318 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
319 Allow REAL_CST step_exprs if flag_associative_math.
320 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
322 2013-07-02 Ian Bolton <ian.bolton@arm.com>
324 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
326 2013-07-02 Ian Bolton <ian.bolton@arm.com>
328 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
330 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
332 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
334 (iorsi3_insn): Likewise.
335 (arm_xorsi3): Likewise.
337 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
339 * arm.md (attribute "wtype"): Delete. Move attribute values from here
341 (attribute "type"): ... here, and prefix with "wmmx_".
342 (attribute "core_cycles"): Update for attribute changes.
343 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
344 (tbcstv4hi): Likewise.
345 (tbcstv2si): Likewise.
346 (iwmmxt_iordi3): Likewise.
347 (iwmmxt_xordi3): Likewise.
348 (iwmmxt_anddi3): Likewise.
349 (iwmmxt_nanddi3): Likewise.
350 (iwmmxt_arm_movdi): Likewise.
351 (iwmmxt_movsi_insn): Likewise.
352 (mov<mode>_internal): Likewise.
353 (and<mode>3_iwmmxt): Likewise.
354 (ior<mode>3_iwmmxt): Likewise.
355 (xor<mode>3_iwmmxt): Likewise.
356 (add<mode>3_iwmmxt): Likewise.
357 (ssaddv8qi3): Likewise.
358 (ssaddv4hi3): Likewise.
359 (ssaddv2si3): Likewise.
360 (usaddv8qi3): Likewise.
361 (usaddv4hi3): Likewise.
362 (usaddv2si3): Likewise.
363 (sub<mode>3_iwmmxt): Likewise.
364 (sssubv8qi3): Likewise.
365 (sssubv4hi3): Likewise.
366 (sssubv2si3): Likewise.
367 (ussubv8qi3): Likewise.
368 (ussubv4hi3): Likewise.
369 (ussubv2si3): Likewise.
370 (mulv4hi3_iwmmxt): Likewise.
371 (smulv4hi3_highpart): Likewise.
372 (umulv4hi3_highpart): Likewise.
373 (iwmmxt_wmacs): Likewise.
374 (iwmmxt_wmacsz): Likewise.
375 (iwmmxt_wmacu): Likewise.
376 (iwmmxt_wmacuz): Likewise.
377 (iwmmxt_clrdi): Likewise.
378 (iwmmxt_clrv8qi): Likewise.
379 (iwmmxt_clr4hi): Likewise.
380 (iwmmxt_clr2si): Likewise.
381 (iwmmxt_uavgrndv8qi3): Likewise.
382 (iwmmxt_uavgrndv4hi3): Likewise.
383 (iwmmxt_uavgv8qi3): Likewise.
384 (iwmmxt_uavgv4hi3): Likewise.
385 (iwmmxt_tinsrb): Likewise.
386 (iwmmxt_tinsrh): Likewise.
387 (iwmmxt_tinsrw): Likewise.
388 (iwmmxt_textrmub): Likewise.
389 (iwmmxt_textrmsb): Likewise.
390 (iwmmxt_textrmuh): Likewise.
391 (iwmmxt_textrmsh): Likewise.
392 (iwmmxt_textrmw): Likewise.
393 (iwmxxt_wshufh): Likewise.
397 (gtuv8qi3): Likewise.
398 (gtuv4hi3): Likewise.
399 (gtuv2si3): Likewise.
403 (smax<mode>3_iwmmxt): Likewise.
404 (umax<mode>3_iwmmxt): Likewise.
405 (smin<mode>3_iwmmxt): Likewise.
406 (umin<mode>3_iwmmxt): Likewise.
407 (iwmmxt_wpackhss): Likewise.
408 (iwmmxt_wpackwss): Likewise.
409 (iwmmxt_wpackdss): Likewise.
410 (iwmmxt_wpackhus): Likewise.
411 (iwmmxt_wpackwus): Likewise.
412 (iwmmxt_wpackdus): Likewise.
413 (iwmmxt_wunpckihb): Likewise.
414 (iwmmxt_wunpckihh): Likewise.
415 (iwmmxt_wunpckihw): Likewise.
416 (iwmmxt_wunpckilb): Likewise.
417 (iwmmxt_wunpckilh): Likewise.
418 (iwmmxt_wunpckilw): Likewise.
419 (iwmmxt_wunpckehub): Likewise.
420 (iwmmxt_wunpckehuh): Likewise.
421 (iwmmxt_wunpckehuw): Likewise.
422 (iwmmxt_wunpckehsb): Likewise.
423 (iwmmxt_wunpckehsh): Likewise.
424 (iwmmxt_wunpckehsw): Likewise.
425 (iwmmxt_wunpckelub): Likewise.
426 (iwmmxt_wunpckeluh): Likewise.
427 (iwmmxt_wunpckeluw): Likewise.
428 (iwmmxt_wunpckelsb): Likewise.
429 (iwmmxt_wunpckelsh): Likewise.
430 (iwmmxt_wunpckelsw): Likewise.
431 (ror<mode>3): Likewise.
432 (ashr<mode>3_iwmmxt): Likewise.
433 (lshr<mode>3_iwmmxt): Likewise.
434 (ashl<mode>3_iwmmxt): Likewise.
435 (ror<mode>3_di): Likewise.
436 (ashr<mode>3_di): Likewise.
437 (lshr<mode>3_di): Likewise.
438 (ashl<mode>3_di): Likewise.
439 (iwmmxt_wmadds): Likewise.
440 (iwmmxt_wmaddu): Likewise.
441 (iwmmxt_tmia): Likewise.
442 (iwmmxt_tmiaph): Likewise.
443 (iwmmxt_tmiabb): Likewise.
444 (iwmmxt_tmiatb): Likewise.
445 (iwmmxt_tmiabt): Likewise.
446 (iwmmxt_tmiatt): Likewise.
447 (iwmmxt_tmovmskb): Likewise.
448 (iwmmxt_tmovmskh): Likewise.
449 (iwmmxt_tmovmskw): Likewise.
450 (iwmmxt_waccb): Likewise.
451 (iwmmxt_wacch): Likewise.
452 (iwmmxt_waccw): Likewise.
453 (iwmmxt_waligni): Likewise.
454 (iwmmxt_walignr): Likewise.
455 (iwmmxt_walignr0): Likewise.
456 (iwmmxt_walignr1): Likewise.
457 (iwmmxt_walignr2): Likewise.
458 (iwmmxt_walignr3): Likewise.
459 (iwmmxt_wsadb): Likewise.
460 (iwmmxt_wsadh): Likewise.
461 (iwmmxt_wsadbz): Likewise.
462 (iwmmxt_wsadhz): Likewise.
463 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
464 (iwmmxt_wabsdiffb): Likewise.
465 (iwmmxt_wabsdiffh): Likewise.
466 (iwmmxt_wabsdiffw): Likewise.
467 (iwmmxt_waddsubhx): Likewise
468 (iwmmxt_wsubaddhx): Likewise.
469 (addc<mode>3): Likewise.
470 (iwmmxt_avg4): Likewise.
471 (iwmmxt_avg4r): Likewise.
472 (iwmmxt_wmaddsx): Likewise.
473 (iwmmxt_wmaddux): Likewise.
474 (iwmmxt_wmaddsn): Likewise.
475 (iwmmxt_wmaddun): Likewise.
476 (iwmmxt_wmulwsm): Likewise.
477 (iwmmxt_wmulwum): Likewise.
478 (iwmmxt_wmulsmr): Likewise.
479 (iwmmxt_wmulumr): Likewise.
480 (iwmmxt_wmulwsmr): Likewise.
481 (iwmmxt_wmulwumr): Likewise.
482 (iwmmxt_wmulwl): Likewise.
483 (iwmmxt_wqmulm): Likewise.
484 (iwmmxt_wqmulwm): Likewise.
485 (iwmmxt_wqmulmr): Likewise.
486 (iwmmxt_wqmulwmr): Likewise.
487 (iwmmxt_waddbhusm): Likewise.
488 (iwmmxt_waddbhusl): Likewise.
489 (iwmmxt_wqmiabb): Likewise.
490 (iwmmxt_wqmiabt): Likewise.
491 (iwmmxt_wqmiatb): Likewise.
492 (iwmmxt_wqmiatt): Likewise.
493 (iwmmxt_wqmiabbn): Likewise.
494 (iwmmxt_wqmiabtn): Likewise.
495 (iwmmxt_wqmiatbn): Likewise.
496 (iwmmxt_wqmiattn): Likewise.
497 (iwmmxt_wmiabb): Likewise.
498 (iwmmxt_wmiabt): Likewise.
499 (iwmmxt_wmiatb): Likewise.
500 (iwmmxt_wmiatt): Likewise.
501 (iwmmxt_wmiabbn): Likewise.
502 (iwmmxt_wmiabtn): Likewise.
503 (iwmmxt_wmiatbn): Likewise.
504 (iwmmxt_wmiattn): Likewise.
505 (iwmmxt_wmiawbb): Likewise.
506 (iwmmxt_wmiawbt): Likewise.
507 (iwmmxt_wmiawtb): Likewise.
508 (iwmmxt_wmiawtt): Likewise.
509 (iwmmxt_wmiawbbn): Likewise.
510 (iwmmxt_wmiawbtn): Likewise.
511 (iwmmxt_wmiawtbn): Likewise.
512 (iwmmxt_wmiawttn): Likewise.
513 (iwmmxt_wmerge): Likewise.
514 (iwmmxt_tandc<mode>3): Likewise.
515 (iwmmxt_torc<mode>3): Likewise.
516 (iwmmxt_torvsc<mode>3): Likewise.
517 (iwmmxt_textrc<mode>3): Likewise.
518 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
519 (wmmxt_pack): Likewise.
520 (wmmxt_mult_c1): Likewise.
521 (wmmxt_mult_c2): Likewise.
522 (wmmxt_alu_c1): Likewise.
523 (wmmxt_alu_c2): Likewise.
524 (wmmxt_alu_c3): Likewise.
525 (wmmxt_transfer_c1): Likewise.
526 (wmmxt_transfer_c2): Likewise.
527 (wmmxt_transfer_c3): Likewise.
528 (marvell_f_iwmmxt_wstr): Likewise.
529 (marvell_f_iwmmxt_wldr): Likewise.
531 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
533 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
535 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
538 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
539 * lra-constraints.c (need_for_split_p): Check call used hard regs
540 living through calls.
542 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
543 call used regs for call insn.
545 2013-06-28 Jakub Jelinek <jakub@redhat.com>
548 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
549 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
551 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
553 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
555 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
557 * lra-constraints.c (need_for_split_p): Check call used hard regs
558 living through calls.
560 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
563 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
564 to tie with any other modes. Eliminate Altivec vector mode tests,
565 since these are a subset of ALTIVEC or VSX vector modes. Simplify
566 code, to return 0 if testing MODE2 for a condition, if we've
567 already tested MODE1 for the same condition.
569 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
571 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
574 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
576 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
577 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
579 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
581 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
583 (aarch64_symbolic_constant_p): Remove.
584 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
585 static. Fix line length and white space.
586 (aarch64_symbolic_constant_p): Remove.
587 * config/aarch64/predicates.md (aarch64_valid_symref):
588 Use aarch64_classify_symbol_expression.
590 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
592 * config/arm/constraints.md (Ts): New constraint.
593 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
595 (compare_scc): Use "Ts" constraint for operand 0.
596 (ior_scc_scc): Likewise.
597 (and_scc_scc): Likewise.
598 (and_scc_scc_nodom): Likewise.
599 (ior_scc_scc_cmp): Likewise for operand 7.
600 (and_scc_scc_cmp): Likewise.
601 * config/arm/thumb2.md (thumb2_movsi_insn):
602 Add alternatives for 16-bit encodings.
603 (thumb2_movhi_insn): Likewise.
604 (thumb2_movsicc_insn): Likewise.
605 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
606 (thumb2_negscc): Use "Ts" constraint.
607 Move mvn instruction outside cond_exec block.
608 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
609 for 16-bit encodings.
611 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
613 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
615 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
616 (mulsi3subsi): Likewise.
617 (mulsidi3adddi): Likewise.
618 (mulsidi3_v6): Likewise.
619 (umulsidi3_v6): Likewise.
620 (umulsidi3adddi_v6): Likewise.
621 (smulsi3_highpart_v6): Likewise.
622 (umulsi3_highpart_v6): Likewise.
623 (mulhisi3tb): Likewise.
624 (mulhisi3bt): Likewise.
625 (mulhisi3tt): Likewise.
626 (maddhisi4): Likewise.
627 (maddhisi4tb): Likewise.
628 (maddhisi4tt): Likewise.
629 (maddhidi4): Likewise.
630 (maddhidi4tb): Likewise.
631 (maddhidi4tt): Likewise.
632 (zeroextractsi_compare0_scratch): Likewise.
633 (insv_zero): Likewise.
635 (anddi_notzesidi_di): Likewise.
636 (anddi_notsesidi_di): Likewise.
637 (andsi_notsi_si): Likewise.
638 (iordi_zesidi_di): Likewise.
639 (xordi_zesidi_di): Likewise.
640 (andsi_iorsi3_notsi): Likewise.
644 (not_shiftsi): Likewise.
645 (unaligned_loadsi): Likewise.
646 (unaligned_loadhis): Likewise.
647 (unaligned_loadhiu): Likewise.
648 (unaligned_storesi): Likewise.
649 (unaligned_storehi): Likewise.
650 (extv_reg): Likewise.
651 (extzv_t2): Likewise.
654 (arm_zero_extendhisi2addsi): Likewise.
655 (arm_zero_extendqisi2addsi): Likewise.
656 (compareqi_eq0): Likewise.
657 (arm_extendhisi2_v6): Likewise.
658 (arm_extendqisi2addsi): Likewise.
659 (arm_movt): Likewise.
660 (thumb2_ldrd): Likewise.
661 (thumb2_ldrd_base): Likewise.
662 (thumb2_ldrd_base_neg): Likewise.
663 (thumb2_strd): Likewise.
664 (thumb2_strd_base): Likewise.
665 (thumb2_strd_base_neg): Likewise.
666 (arm_negsi2): Add alternative for 16-bit encoding.
667 (arm_one_cmplsi2): Likewise.
669 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
671 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
672 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
674 * config/arm/vfp.md (*thumb2_movsf_vfp):
675 Disable predication for arm_restrict_it.
676 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
677 (*thumb2_movdfcc_vfp): Likewise.
678 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
679 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
680 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
681 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
682 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
683 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
684 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
685 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
686 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
687 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
688 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
689 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
690 Disable predication for arm_restrict_it.
692 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
694 * config/i386/bmiintrin.h (_bextr_u32): New.
697 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
699 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
700 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
701 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
702 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
703 * config/mips/n32-elf.h: ...this new file.
705 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
708 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
709 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
711 2013-06-27 Catherine Moore <clm@codesourcery.com>
713 * config/mips/mips-tables.opt: Regenerate.
714 * config/mips/mips-cpus.def: Add m14ke and m14kec.
715 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
716 * doc/invoke.texi: Add -m14kc.
718 2013-06-27 Jakub Jelinek <jakub@redhat.com>
721 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
722 constraints of operand 1 and 2.
725 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
726 to match RTL canonicalization. Swap predicates and
727 constraints of operand 1 and 2.
729 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
731 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
732 Process OP_INOUT regs for splitting too.
734 2013-06-27 Jakub Jelinek <jakub@redhat.com>
736 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
737 decl before the loop, initialize to NULL.
738 (vectorizable_load): Initialize ptr_incr to NULL.
740 2013-06-27 Martin Jambor <mjambor@suse.cz>
743 * ipa-ref.h (ipa_maybe_record_reference): Declare.
744 * ipa-ref.c (ipa_maybe_record_reference): New function.
745 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
746 * ipa-cp.c (create_specialized_node): Record potential references from
748 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
750 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
752 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
753 parameter 'mode' of type 'enum machine_mode mode'; change to pass
755 (aarch64_add_offset): Update calls to aarch64_force_temporary.
756 (aarch64_expand_mov_immediate): Likewise.
758 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
760 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
761 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
763 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
765 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
766 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
767 (struct machine_function): Add tbegin_p.
768 (s390_canonicalize_comparison): Fold CC mode compares to
769 conditional jump if possible.
770 (s390_emit_jump): Return the emitted jump.
771 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
772 Handle CCRAWmode compares.
773 (s390_option_override): Default to -mhtm if available.
774 (s390_reg_clobbered_rtx): Handle floating point regs as well.
775 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
776 FPRs instead of df_regs_ever_live_p.
777 (s390_optimize_nonescaping_tx): New function.
778 (s390_init_frame_layout): Extend clobbered_regs array to cover
780 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
781 (s390_expand_tbegin): New function.
782 (enum s390_builtin): New enum definition.
783 (code_for_builtin): New array definition.
784 (s390_init_builtins): New function.
785 (s390_expand_builtin): New function.
786 (TARGET_INIT_BUILTINS): Define.
787 (TARGET_EXPAND_BUILTIN): Define.
788 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
789 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
790 (s390_alc_comparison): Likewise.
791 * config/s390/s390-modes.def: Add CCRAWmode.
792 * config/s390/s390.h (processor_flags): Add PF_TX.
793 (TARGET_CPU_HTM): Define macro.
794 (TARGET_HTM): Define macro.
795 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
796 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
797 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
798 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
799 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
800 (TBEGIN_MASK, TBEGINC_MASK): New constants.
801 ("*cc_to_int"): Move up.
802 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
803 constants other than 0.
804 ("*ccraw_to_int"): New insn and splitter definition.
805 ("tbegin", "tbegin_nofloat", "tbegin_retry")
806 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
807 ("tx_assist"): New expander.
808 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
809 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
810 * config/s390/s390.opt: Add -mhtm option.
811 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
812 * config/s390/htmxlintrin.h: New file.
813 * config/s390/htmintrin.h: New file.
814 * config/s390/s390intrin.h: New file.
815 * doc/extend.texi: Document htm builtins.
816 * config.gcc: Add the new header files to extra_headers.
818 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
820 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
821 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
823 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
824 Pat Haugen <pthaugen@us.ibm.com>
825 Peter Bergner <bergner@vnet.ibm.com>
827 * config/rs6000/power8.md: New.
828 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
829 setting for power8 entry.
830 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
831 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
832 test for Power4/Power5 only.
833 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
835 (force_new_group): Adjust comment.
836 * config/rs6000/rs6000.md: Include power8.md.
838 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
840 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
841 * config/arm/arm-protos.h (arm_max_conditional_execute): New
843 (tune_params): Update comment.
844 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
845 (arm_max_conditional_execute): New function.
846 (thumb2_final_prescan_insn): Use max_insn_skipped and
847 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
849 2013-06-25 Jakub Jelinek <jakub@redhat.com>
851 PR tree-optimization/57705
852 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
853 SSA_NAME step, provided that it is not defined inside the loop.
854 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
855 (get_initial_def_for_induction): Handle SSA_NAME IV step.
857 2013-06-25 Martin Jambor <mjambor@suse.cz>
860 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
861 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
863 (ipa_note_param_call): Initialize member_ptr flag.
864 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
865 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
866 (ipa_write_indirect_edge_info): Stream member_ptr flag.
867 (ipa_read_indirect_edge_info): Likewise.
869 2013-06-25 Richard Biener <rguenther@suse.de>
872 * passes.c (init_optimization_passes): Move pass_fold_builtins
873 and pass_dce earlier with -Og.
875 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
877 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
878 <BIT_FIELD_REF>: Remove trailing TAB.
879 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
882 2013-06-24 Martin Jambor <mjambor@suse.cz>
884 PR tree-optimization/57358
885 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
886 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
887 (ipa_analyze_params_uses): Generate pessimistic info when true.
889 2013-06-24 Martin Jambor <mjambor@suse.cz>
891 PR tree-optimization/57539
892 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
893 global.inlined_to of the new node to it. All callers changed.
894 * ipa-inline-transform.c (clone_inlined_nodes): New variable
895 inlining_into, pass it to cgraph_clone_node.
896 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
897 ipa_free_edge_args_substructures.
898 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
899 rdesc linked list. Do not assert rdesc edges have inlined caller.
900 Assert we have found an rdesc in the rdesc list.
902 2013-06-24 Richard Biener <rguenther@suse.de>
904 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
905 (pointer_set_lookup): Declare.
906 (class pointer_map): New template class implementing a
907 generic pointer to T map.
908 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
909 pointer_map<T>::contains, pointer_map<T>::insert,
910 pointer_map<T>::traverse): New functions.
911 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
912 (pointer_set_lookup): New function.
913 (pointer_set_contains): Use pointer_set_lookup.
914 (pointer_set_insert): Likewise.
915 (insert_aux): Remove.
916 (struct pointer_map_t): Embed a pointer_set_t.
917 (pointer_map_create): Adjust.
918 (pointer_map_destroy): Likewise.
919 (pointer_map_contains): Likewise.
920 (pointer_map_insert): Likewise.
921 (pointer_map_traverse): Likewise.
922 * tree-streamer.h (struct streamer_tree_cache_d): Use a
923 pointer_map<unsigned> instead of a pointer_map_t.
924 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
925 (streamer_tree_cache_lookup): Likewise.
926 (streamer_tree_cache_create): Likewise.
927 (streamer_tree_cache_delete): Likewise.
928 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
929 pointer_map<unsigned> instead of a pointer_map_t.
930 (lto_init_tree_ref_encoder): Adjust.
931 (lto_destroy_tree_ref_encoder): Likewise.
932 * lto-section-out.c (lto_output_decl_index): Likewise.
933 (lto_record_function_out_decl_state): Likewise.
934 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
936 2013-06-24 Richard Biener <rguenther@suse.de>
938 PR tree-optimization/57488
939 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
941 2013-06-24 Alan Modra <amodra@gmail.com>
943 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
944 (gen_easy_altivec_constant): Likewise.
945 * config/rs6000/predicates.md (easy_vector_constant_add_self,
946 easy_vector_constant_msb): Likewise.
948 2013-06-23 Jakub Jelinek <jakub@redhat.com>
951 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
952 add missing return true.
954 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
957 * config/sh/predicates.md (general_extend_operand): Invoke
958 general_movsrc_operand for memory operands.
959 (general_movsrc_operand): Allow reg+reg addressing, do not use
960 general_operand for memory operands.
962 2013-06-23 Sriraman Tallam <tmsriram@google.com>
964 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
965 when current target options does not apply.
966 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
967 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
968 * config/i386/bmiintrin.h: Pass appropriate target
969 attributes to header.
970 * config/i386/mmintrin.h: Ditto.
971 * config/i386/nmmintrin.h: Ditto.
972 * config/i386/avx2intrin.h: Ditto.
973 * config/i386/fxsrintrin.h: Ditto.
974 * config/i386/tbmintrin.h: Ditto.
975 * config/i386/xsaveintrin.h: Ditto.
976 * config/i386/f16cintrin.h: Ditto.
977 * config/i386/xtestintrin.h: Ditto.
978 * config/i386/xsaveoptintrin.h: Ditto.
979 * config/i386/bmi2intrin.h: Ditto.
980 * config/i386/lzcntintrin.h: Ditto.
981 * config/i386/smmintrin.h: Ditto.
982 * config/i386/wmmintrin.h: Ditto.
983 * config/i386/x86intrin.h: Remove all header include guards.
984 * config/i386/prfchwintrin.h: Ditto.
985 * config/i386/pmmintrin.h: Ditto.
986 * config/i386/tmmintrin.h: Ditto.
987 * config/i386/xmmintrin.h: Ditto.
988 * config/i386/popcntintrin.h: Ditto.
989 * config/i386/rdseedintrin.h: Ditto.
990 * config/i386/ammintrin.h: Ditto.
991 * config/i386/emmintrin.h: Ditto.
992 * config/i386/immintrin.h: Remove all header include guards.
993 * config/i386/fma4intrin.h: Ditto.
994 * config/i386/lwpintrin.h: Ditto.
995 * config/i386/xopintrin.h: Ditto.
996 * config/i386/ia32intrin.h: Ditto.
997 * config/i386/avxintrin.h: Ditto.
998 * config/i386/rtmintrin.h: Ditto.
999 * config/i386/fmaintrin.h: Ditto.
1000 * config/i386/mm3dnow.h: Ditto.
1002 2013-06-22 Sriraman Tallam <tmsriram@google.com>
1004 * common/config/i386/i386-common.c: Handle LZCNT.
1006 2013-06-22 Andi Kleen <ak@linux.intel.com>
1008 * doc/extend.texi: Use __atomic_store_n instead of
1009 __atomic_store in HLE example.
1011 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
1013 * config/sh/sh.c: Remove <cstdlib> workaround.
1015 2013-06-21 Andi Kleen <ak@linux.intel.com>
1017 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
1019 2013-06-21 Andi Kleen <ak@linux.intel.com>
1021 * doc/extend.texi: Document that __atomic_clear and
1022 __atomic_test_and_set should only be used with bool.
1024 2013-06-20 Jan Hubicka <jh@suse.cz>
1026 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
1028 * tree.c (decls_same_for_odr): New function.
1029 (same_for_edr): New function.
1030 (types_same_for_odr): New function.
1031 (get_binfo_at_offset): Use it.
1032 * tree.h (types_same_for_odr): Declare.
1034 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
1035 Jason Merrill <jason@redhat.com>
1037 * system.h: Include <cstdlib> as well as <stdlib.h>.
1039 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
1042 * config/i386/i386.c (construct_container): Report error if
1043 long double is used with disabled x87 float returns.
1045 2013-06-20 Jan Hubicka <jh@suse.cz>
1047 * lto-cgraph.c (input_symtab): Do not set cgraph state.
1049 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
1051 PR rtl-optimization/57425
1052 PR rtl-optimization/57569
1053 * alias.c (write_dependence_p): Remove parameters mem_mode and
1054 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
1055 Changed all callers.
1056 (canon_anti_dependence): Get comments and semantics in sync.
1057 Add parameter mem_canonicalized. Changed all callers.
1058 * rtl.h (canon_anti_dependence): Update prototype.
1060 2013-06-20 Richard Biener <rguenther@suse.de>
1062 * data-streamer-in.c (streamer_read_uhwi): Optimize single
1063 byte case, inline streamer_read_uchar and defer section
1066 2013-06-20 Richard Biener <rguenther@suse.de>
1068 PR tree-optimization/57584
1069 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
1070 SSA names into the expanded expression that take part in
1071 abnormal coalescing.
1073 2013-06-19 <singhai@google.com>
1075 * gcov.c (print_usage): Handle new option.
1076 (process_args): Ditto.
1077 (get_gcov_intermediate_filename): New function.
1078 (output_intermediate_file): New function.
1079 (output_gcov_file): New function
1080 (generate_results): Handle new option.
1081 (release_function): Relase demangled name.
1082 (read_graph_file): Handle demangled name.
1083 (output_lines): Ditto.
1084 * doc/gcov.texi: Document gcov intermediate format.
1086 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
1089 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
1090 (lra_emit_add): Use the functions. Add comment about Y as an
1093 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
1096 * collect2.c (collect_atexit): New.
1097 (collect_exit): Delete.
1098 (main): Register collect_atexit with atexit.
1099 (collect_wait): Change collect_exit to exit.
1101 * collect2.h (collect_exit): Delete.
1102 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
1104 2013-06-19 Wei Mi <wmi@google.com>
1106 PR rtl-optimization/57518
1107 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
1108 if regno is used in paradoxical subreg.
1109 (update_equiv_regs): Check pdx_subregs[regno] before
1110 set a reg to be equivalent with a mem.
1112 2013-06-19 Matthias Klose <doko@ubuntu.com>
1115 * file-find.h (find_a_file): Add a mode parameter.
1116 * file-find.c (find_a_file): Likewise.
1117 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
1118 with X_OK for the executables.
1119 * collect2.c (main): Call find_a_file with X_OK.
1121 2013-06-19 Steve Ellcey <sellcey@mips.com>
1124 * config/mips/mips.md (casesi_internal_mips16_<mode>):
1125 Use NEXT_INSN instead of next_real_insn.
1127 2013-06-19 Jan Hubicka <jh@suse.cz>
1129 * cgraph.h (const_value_known_p): Replace by ...
1130 (ctor_for_folding): .. this one.
1131 * cgraphunit.c (process_function_and_variable_attributes): Use it.
1132 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
1133 * expr.c (expand_expr_real_1): Likewise.
1134 (string_constant): Likewise.
1135 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
1136 * ipa.c (process_references): Likewise.
1137 (symtab_remove_unreachable_nodes): Likewise.
1138 * ipa-inline-analysis.c (param_change_prob): Likewise.
1139 * gimple-fold.c (canonicalize_constructor_val): Likewise.
1140 (get_base_constructor): Likwise.
1141 * varpool.c (varpool_remove_node): Likewise.
1142 (varpool_remove_initializer): LIkewise.
1143 (dump_varpool_node): LIkwise.
1144 (const_value_known_p): Rewrite to ...
1145 (ctor_for_folding): ... this one.
1147 2013-06-19 Jakub Jelinek <jakub@redhat.com>
1150 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
1151 PERSONALITY in $PATH derived prefixes.
1153 2013-06-19 Jeff Law <law@redhat.com>
1155 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
1158 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
1159 (simplify_bitwise_binary): Use it to simpify certain binary ops on
1162 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
1164 * config/arm/vfp.md: Move VFP instruction classification documentation
1166 * config/arm/arm.md: ... here. Update instruction classification
1169 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
1171 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
1172 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
1173 pattern. Use more efficient sequences on ARMv5 and Thumb2.
1175 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
1178 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
1179 with NEXT_INSN. Use tablejump_p to check for jump table data
1182 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
1185 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
1186 that now in C++ the value is correct per the C++ standards.
1188 2013-06-19 Richard Biener <rguenther@suse.de>
1190 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
1193 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1196 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1199 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
1200 with next_active_insn.
1202 2013-06-18 Sriraman Tallam <tmsriram@google.com>
1204 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
1205 functions are inlined during failures to flag an error.
1206 * tree-inline.c (expand_call_inline): Allow the error to be flagged
1207 in early inline pass.
1209 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
1211 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
1214 2013-06-18 Julian Brown <julian@codesourcery.com>
1216 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
1217 Permit virtual register pre-reload if !strict.
1218 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
1220 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
1222 * config/arm/neon.md (movmisalign<mode>): Use
1223 neon_perm_struct_or_reg_operand instead of
1224 neon_struct_or_register_operand.
1225 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
1226 neon_permissive_struct_operand instead of neon_struct_operand.
1227 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
1228 neon_vector_mem_operand.
1229 * config/arm/predicates.md (neon_struct_operand): Adjust call to
1230 neon_vector_mem_operand.
1231 (neon_permissive_struct_operand): New.
1232 (neon_struct_or_register_operand): Rename to...
1233 (neon_perm_struct_or_reg_operand): This. Adjust call to
1234 neon_vector_mem_operand.
1236 2013-06-18 Richard Biener <rguenther@suse.de>
1238 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
1239 * lto-streamer.h: Include pointer-set.h.
1240 (struct lto_decl_slot): Remove.
1241 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
1242 Remove next_index entry.
1243 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
1244 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
1245 (lto_init_tree_ref_encoder): Adjust.
1246 (lto_destroy_tree_ref_encoder): Likewise.
1247 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
1248 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
1249 (lto_output_decl_index): Adjust.
1250 (lto_new_out_decl_state): Likewise.
1251 (lto_record_function_out_decl_state): Likewise.
1252 * lto-streamer-out.c (copy_function): Likewise.
1254 2013-06-18 Richard Biener <rguenther@suse.de>
1256 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
1257 * cgraphunit.c: Include cfgloop.h.
1258 (init_lowered_empty_function): Initialize the loop tree.
1259 (assemble_thunk): Insert new BBs into loops.
1261 2013-06-18 Richard Biener <rguenther@suse.de>
1263 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
1264 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
1265 the map from cache entry to cache index optional.
1266 (streamer_tree_cache_replace_tree): Adjust accordingly.
1267 (streamer_tree_cache_append): Likewise.
1268 (streamer_tree_cache_delete): Likewise.
1269 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
1270 streamer cache map from cache entry to cache index.
1271 * lto-streamer-out.c (create_output_block): Adjust.
1273 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
1275 * config/arm/arm.md (attribute "insn"): Move multiplication and
1276 division attributes to...
1277 (attribute "type"): ... here. Remove mult.
1278 (attribute "mul32"): New attribute.
1279 (attribute "mul64"): Add umaal.
1280 (*arm_mulsi3): Update attributes.
1281 (*arm_mulsi3_v6): Likewise.
1282 (*thumb_mulsi3): Likewise.
1283 (*thumb_mulsi3_v6): Likewise.
1284 (*mulsi3_compare0): Likewise.
1285 (*mulsi3_compare0_v6): Likewise.
1286 (*mulsi_compare0_scratch): Likewise.
1287 (*mulsi_compare0_scratch_v6): Likewise.
1288 (*mulsi3addsi): Likewise.
1289 (*mulsi3addsi_v6): Likewise.
1290 (*mulsi3addsi_compare0): Likewise.
1291 (*mulsi3addsi_compare0_v6): Likewise.
1292 (*mulsi3addsi_compare0_scratch): Likewise.
1293 (*mulsi3addsi_compare0_scratch_v6): Likewise.
1294 (*mulsi3subsi): Likewise.
1295 (*mulsidi3adddi): Likewise.
1296 (*mulsi3addsi_v6): Likewise.
1297 (*mulsidi3adddi_v6): Likewise.
1298 (*mulsidi3_nov6): Likewise.
1299 (*mulsidi3_v6): Likewise.
1300 (*umulsidi3_nov6): Likewise.
1301 (*umulsidi3_v6): Likewise.
1302 (*umulsidi3adddi): Likewise.
1303 (*umulsidi3adddi_v6): Likewise.
1304 (*smulsi3_highpart_nov6): Likewise.
1305 (*smulsi3_highpart_v6): Likewise.
1306 (*umulsi3_highpart_nov6): Likewise.
1307 (*umulsi3_highpart_v6): Likewise.
1308 (mulhisi3): Likewise.
1309 (*mulhisi3tb): Likewise.
1310 (*mulhisi3bt): Likewise.
1311 (*mulhisi3tt): Likewise.
1312 (maddhisi4): Likewise.
1313 (*maddhisi4tb): Likewise.
1314 (*maddhisi4tt): Likewise.
1315 (maddhidi4): Likewise.
1316 (*maddhidi4tb): Likewise.
1317 (*maddhidi4tt): Likewise.
1319 (udivsi3): Likewise.
1320 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
1321 (thumb2_mulsi_short_compare0): Likewise.
1322 (thumb2_mulsi_short_compare0_scratch): Likewise.
1323 * config/arm/arm1020e.md (1020mult1): Update attribute change.
1324 (1020mult2): Likewise.
1325 (1020mult3): Likewise.
1326 (1020mult4): Likewise.
1327 (1020mult5): Likewise.
1328 (1020mult6): Likewise.
1329 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
1331 (cortex_a15_mult64): Likewise.
1332 (cortex_a15_sdiv): Likewise.
1333 (cortex_a15_udiv): Likewise.
1334 * config/arm/arm1026ejs.md (mult1): Update attribute change.
1340 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
1341 (pj4_ir_div): Likewise.
1342 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
1343 (11_mult2): Likewise.
1344 (11_mult3): Likewise.
1345 (11_mult4): Likewise.
1346 (11_mult5): Likewise.
1347 (11_mult6): Likewise.
1348 (11_mult7): Likewise.
1349 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
1350 (cortex_a8_mla): Likewise.
1351 (cortex_a8_mull): Likewise.
1352 (cortex_a8_smulwy): Likewise.
1353 (cortex_a8_smlald): Likewise.
1354 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
1355 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
1356 (cortex_r4_mul_3): Likewise.
1357 (cortex_r4_mla_4): Likewise.
1358 (cortex_r4_mla_3): Likewise.
1359 (cortex_r4_smlald): Likewise.
1360 (cortex_r4_mull): Likewise.
1361 (cortex_r4_sdiv): Likewise.
1362 (cortex_r4_udiv): Likewise.
1363 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
1364 (cortex_a7_idiv): Likewise.
1365 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
1366 (9_mult2): Likewise.
1367 (9_mult3): Likewise.
1368 (9_mult4): Likewise.
1369 (9_mult5): Likewise.
1370 (9_mult6): Likewise.
1371 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
1372 (cortex_a53_sdiv): Likewise.
1373 (cortex_a53_udiv): Likewise.
1374 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
1375 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
1376 (mp626_mult2): Likewise.
1377 (mp626_mult3): Likewise.
1378 (mp626_mult4): Likewise.
1379 * config/arm/fa526.md (526_mult1): Update attribute change.
1380 (526_mult2): Likewise.
1381 * config/arm/arm-generic.md (mult): Update attribute change.
1382 (mult_ldsched_strongarm): Likewise.
1383 (mult_ldsched): Likewise.
1384 (multi_cycle): Likewise.
1385 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
1386 * config/arm/fa606te.md (606te_mult1): Update attribute change.
1387 (606te_mult2): Likewise.
1388 (606te_mult3): Likewise.
1389 (606te_mult4): Likewise.
1390 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
1391 (cortex_a9_mac16): Likewise.
1392 (cortex_a9_multiply): Likewise.
1393 (cortex_a9_mac): Likewise.
1394 (cortex_a9_multiply_long): Likewise.
1395 * config/arm/fa626te.md (626te_mult1): Update attribute change.
1396 (626te_mult2): Likewise.
1397 (626te_mult3): Likewise.
1398 (626te_mult4): Likewise.
1400 2013-06-18 Richard Biener <rguenther@suse.de>
1403 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
1405 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1408 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
1409 with next_active_insn.
1411 2013-06-18 Alan Modra <amodra@gmail.com>
1413 * config/rs6000/rs6000.h (enum data_align): New.
1414 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
1415 (DATA_ABI_ALIGNMENT): Define.
1416 (CONSTANT_ALIGNMENT): Correct comment.
1417 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
1418 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
1420 2013-06-17 David Malcolm <dmalcolm@redhat.com>
1422 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
1423 ATTRIBUTE_UNUSED marking.
1425 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
1427 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
1428 alternative and update.
1429 (aarch64_dup_lanedi): Delete.
1430 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
1431 * config/aarch64/aarch64-simd-builtins.def: Update.
1433 2013-06-17 Richard Biener <rguenther@suse.de>
1435 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
1436 (lto_input_scc): Declare.
1437 (lto_input_tree_1): Likewise.
1438 (struct lto_stats_d): Add num_tree_bodies_output and
1439 num_pickle_refs_output.
1440 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
1441 (lto_read_tree_1): Split out from ...
1442 (lto_read_tree): ... this.
1443 (lto_input_scc): New function.
1444 (lto_input_tree_1): Split out from ...
1445 (lto_input_tree): ... this. Handle LTO_tree_scc.
1446 (lto_data_in_create): Create the streamer cache without hashes.
1447 * lto-streamer-out.c (create_output_block): Create the streamer
1448 cache with hashes when not doing WPA.
1449 (lto_write_tree_1): Split out from ...
1450 (lto_write_tree): ... this.
1451 (get_symbol_initial_value): New function.
1452 (lto_output_tree_1): Split out from ...
1453 (lto_output_tree): ... this. Write trees as series of SCCs
1454 using a DFS walk via DFS_write_tree.
1455 (struct sccs, struct scc_entry): New types.
1456 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
1457 (DFS_write_tree_body): New function.
1458 (DFS_write_tree): Likewise.
1459 (hash_tree): Likewise.
1460 (scc_entry_compare): Likewise.
1461 (hash_scc): Likewise.
1462 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
1463 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
1464 TREE_CHAIN as regular reference.
1465 (streamer_read_integer_cst): Remove.
1466 (streamer_get_pickled_tree): Adjust.
1467 * tree-streamer-out.c (streamer_write_chain): Disable streaming
1468 of DECL_EXTERNALs in BLOCK_VARS for now.
1469 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
1471 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
1472 Add hash value argument and record that if hashes are recorded
1474 (streamer_tree_cache_insert_1): Adjust.
1475 (streamer_tree_cache_insert): Likewise.
1476 (streamer_tree_cache_insert_at): Rename to ...
1477 (streamer_tree_cache_replace_tree): ... this and adjust.
1478 (streamer_tree_cache_append): Adjust.
1479 (record_common_node): Likewise.
1480 (streamer_tree_cache_create): Add argument whether to
1481 record hash values together with trees.
1482 (streamer_tree_cache_delete): Adjust.
1483 * tree-streamer.h (struct streamer_tree_cache_d): Add
1485 (streamer_read_integer_cst): Remove.
1486 (streamer_tree_cache_insert): Adjust.
1487 (streamer_tree_cache_append): Likewise.
1488 (streamer_tree_cache_insert_at): Rename to ...
1489 (streamer_tree_cache_replace_tree): ... this and adjust.
1490 (streamer_tree_cache_create): Add argument whether to record hashes.
1491 (streamer_tree_cache_get): Rename to ...
1492 (streamer_tree_cache_get_tree): ... this.
1493 (streamer_tree_cache_get_hash): New function.
1494 * tree.c (cache_integer_cst): New function.
1495 * tree.h (cache_integer_cst): Declare.
1496 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
1497 * lto-symtab.c (lto_varpool_replace_node): Only release
1498 DECL_INITIAL of non-prevailing decls.
1499 * varpool.c (varpool_remove_initializer): Do not release
1500 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
1502 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
1504 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
1505 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
1506 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
1507 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
1508 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
1509 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
1510 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
1511 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
1512 instead of TARGET_64BIT.
1513 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
1514 Require ISA_HAS_<D>DIV.
1516 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
1518 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
1519 (mips*-*-linux*): Move default with_llsc setting to where other
1521 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
1523 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
1524 Likewise. Remove default with_tune setting. Move default float
1525 setting to its own block. Handle with_llsc in the same block as above.
1527 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
1529 PR rtl-optimization/57425
1530 PR rtl-optimization/57569
1531 * alias.c (write_dependence_p): Add new parameters mem_mode,
1532 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
1533 Changed all callers.
1534 (canon_anti_dependence): New function.
1535 * cse.c (check_dependence): Use canon_anti_dependence.
1536 * cselib.c (cselib_invalidate_mem): Likewise.
1537 * rtl.h (canon_anti_dependence): Declare.
1539 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
1541 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
1542 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
1543 ".set mips3" for 64-bit targets.
1545 2013-06-15 Dehao Chen <dehao@google.com>
1547 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
1548 * gimple-low.c (gimple_check_call_matching_types): Likewise.
1549 (gimple_check_call_args): Likewise.
1550 * value-prof.c (check_ic_target): Likewise.
1551 * ipa-inline.c (early_inliner): Likewise.
1552 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
1553 * cgraph.c (cgraph_create_edge_1): Likewise.
1554 (cgraph_make_edge_direct): Likewise.
1556 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1559 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
1560 rs6000_output_move_128bit to handle emitting quad memory
1561 operations. Set attribute length to 8 bytes.
1563 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
1565 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
1567 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
1568 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
1569 (aarch64_<su>mlsl<mode>): Likewise.
1571 2013-06-14 Mike Stump <mikestump@comcast.net>
1573 * Makefile.in (TARGET_H): Add insn-codes.h.
1575 2013-06-14 Alan Modra <amodra@gmail.com>
1579 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
1580 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
1581 bitfield expansion when EXPAND_MEMORY.
1582 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
1584 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
1586 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1587 test for clearing quad memory on 32-bit later.
1589 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
1591 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
1592 (fold_negate_expr): Likewise.
1593 (fold_real_zero_addition_p): Handle vectors.
1594 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
1596 2013-06-14 Alan Modra <amodra@gmail.com>
1598 * varasm.c (force_const_mem): Revert 2013-06-07 change.
1600 2013-06-13 Jan Hubicka <jh@suse.cz>
1602 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
1603 Local comdats are not externally visible.
1604 * symtab.c (dump_symtab_base): Dump externally visible.
1605 (verify_symtab_base): Verify back links in the symtab hash.
1607 2013-06-13 Bin Cheng <bin.cheng@arm.com>
1609 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
1610 CONVERT_EXPR as equal nodes.
1612 2013-06-13 Bin Cheng <bin.cheng@arm.com>
1614 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
1616 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
1618 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
1619 Generalize to complex and vector.
1620 * tree.c (build_all_ones_cst): New function.
1621 * tree.h (build_all_ones_cst): Declare it.
1623 2013-06-13 Alan Modra <amodra@gmail.com>
1625 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
1626 * config/rs6000/rs6000.md (signbittf2): New insn.
1627 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
1628 (abstf2_internal, cmptf_internal2): Likewise.
1629 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
1631 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
1632 Pat Haugen <pthaugen@us.ibm.com>
1633 Peter Bergner <bergner@vnet.ibm.com>
1635 * config/rs6000/rs6000.c (emit_load_locked): Add support for
1636 power8 byte, half-word, and quad-word atomic instructions.
1637 (emit_store_conditional): Likewise.
1638 (rs6000_expand_atomic_compare_and_swap): Likewise.
1639 (rs6000_expand_atomic_op): Likewise.
1641 * config/rs6000/sync.md (larx): Add new modes for power8.
1643 (AINT): New mode iterator to include TImode as well as normal
1644 integer modes on power8.
1645 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
1646 that VSX registers are not considered. Use AINT mode iterator
1647 instead of INT1 to allow inclusion of quad word atomic operations
1649 (load_locked<mode>): Likewise.
1650 (store_conditional<mode>): Likewise.
1651 (atomic_compare_and_swap<mode>): Likewise.
1652 (atomic_exchange<mode>): Likewise.
1653 (atomic_nand<mode>): Likewise.
1654 (atomic_fetch_<fetchop_name><mode>): Likewise.
1655 (atomic_nand_fetch<mode>): Likewise.
1656 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
1658 (ATOMIC): On power8, add QImode, HImode modes.
1659 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
1660 modes that promote to SImode.
1661 (load_lockedti): Convert TImode arguments to PTImode, so that we
1662 get a guaranteed even/odd register pair.
1663 (load_lockedpti): Likewise.
1664 (store_conditionalti): Likewise.
1665 (store_conditionalpti): Likewise.
1667 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
1668 atomic load/store instructions.
1671 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
1673 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
1675 (insn_count): New attribute, with most cases extracted from...
1676 (length): ...here. Redefine most cases in terms of insn_count.
1677 (single_insn): Delete.
1678 (can_delay): Use insn_count to check for single instructions.
1679 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
1680 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
1681 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
1682 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
1683 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
1684 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
1685 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
1686 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
1687 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
1688 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
1689 rather than "length".
1690 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
1691 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
1692 Use "insn_count" rather than "length".
1693 * config/mips/mips-dsp.md
1694 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
1695 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
1698 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
1700 PR tree-optimization/57361
1701 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
1703 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
1705 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
1707 (aarch64_simd_combine<mode>): New instruction expansion.
1708 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
1710 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
1711 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
1713 2013-06-12 Jan Hubicka <jh@suse.cz>
1715 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
1716 decl has when in streaming stage.
1717 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
1718 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
1720 2013-06-12 Roland Stigge <stigge@antcom.de>
1723 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
1725 2013-06-12 Jakub Jelinek <jakub@redhat.com>
1727 PR tree-optimization/57537
1728 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
1729 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
1731 2013-06-12 Richard Biener <rguenther@suse.de>
1733 * data-streamer.h (streamer_write_char_stream): CSE
1734 obs->current_pointer.
1735 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
1736 streamer_write_char_stream manually and optimize the resulting loop.
1737 (streamer_write_hwi_stream): Likewise.
1739 2013-06-12 Jan Hubicka <jh@suse.cz>
1741 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
1742 * cgraph.h (varpool_create_empty_node): Declare.
1743 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
1745 * symtab.c (symtab_unregister_node): Be lax about missin entries
1747 (symtab_get_node): Update comment.
1748 * varpool.c (varpool_create_empty_node): Break out from ...
1749 (varpool_node_for_decl): ... here.
1750 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
1752 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
1754 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
1755 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
1756 part. Use straight-line flow at the end.
1757 <COMPONENT_REF>: Remove superfluous else.
1758 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
1760 2013-06-12 Jakub Jelinek <jakub@redhat.com>
1763 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
1764 target hook even for !TREE_PUBLIC decls. If no resolution info
1765 is available, return false for common and external decls.
1767 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1769 * config/rl78/constraints.md (U): New constraint.
1770 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
1773 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1776 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
1777 to allow returning address to AT_PLATFORM name.
1779 2013-06-11 Jan Hubicka <jh@suse.cz>
1781 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
1782 * cgraph.h (symtab_node_base): Add weakref flag.
1783 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
1784 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
1785 (output_weakrefs): Use weakref flag.
1786 * fold-const.c (simple_operand_p): Handle WEAK.
1787 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
1788 * ipa.c (varpool_externally_visible_p): Drop weakref.
1789 (function_and_variable_visibility): Update comment; fix weakref
1790 sanity checks; do not clear DECL_WEAK on them.
1791 * lto-cgraph.c (lto_output_node): update.
1792 (lto_output_varpool_node): Update.
1793 (input_overwrite_node): Update.
1794 (input_node): Update.
1795 (input_varpool_node): Update.
1796 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
1797 (lto_symtab_merge_symbols): Add sanity check.
1798 (lto_symtab_prevailing_decl): Do not special case weakrefs.
1799 * passes.c (rest_of_decl_compilation): Set static flag, too.
1800 * symtab.c (dump_symtab_base): Dump weakref.
1801 (verify_symtab_base): Sanity check weakrefs.
1802 (symtab_make_decl_local): Remove duplicated code.
1803 (symtab_alias_ultimate_target): Simplify.
1804 * varpool.c (varpool_create_variable_alias): Set weakref flag.
1806 2013-06-11 DJ Delorie <dj@redhat.com>
1808 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
1809 (rl78_unwind_word_mode): New.
1811 2013-06-11 David Malcolm <dmalcolm@redhat.com>
1813 * final.c (debug_prefix_maps): Make static.
1815 2013-06-11 David Malcolm <dmalcolm@redhat.com>
1817 * function.c (initial_trampoline): Remove stray copy.
1819 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
1821 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
1823 2013-06-11 Martin Jambor <mjambor@suse.cz>
1825 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
1826 within bounds at the beginning of the function.
1828 2013-06-11 Alan Modra <amodra@gmail.com>
1830 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
1832 (get_named_section): Don't NULL !DECL_P decl.
1834 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
1836 * doc/invoke.texi (core-avx2): Document.
1838 (atom): Updated with MOVBE.
1840 2013-06-11 Richard Biener <rguenther@suse.de>
1842 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
1844 2013-06-11 Anton Blanchard <anton@samba.org>
1846 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
1847 correct shift value in little-endian mode.
1849 2013-06-11 Jakub Jelinek <jakub@redhat.com>
1852 * varasm.c (get_variable_align): Move #endif to the right place.
1854 2013-06-10 Cary Coutant <ccoutant@google.com>
1856 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
1857 for hash so that hash table traversal order is deterministic.
1859 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
1860 Pat Haugen <pthaugen@us.ibm.com>
1861 Peter Bergner <bergner@vnet.ibm.com>
1863 * config/rs6000/vector.md (GPR move splitter): Do not split moves
1864 of vectors in GPRS if they are direct moves or quad word load or
1867 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
1869 (direct_move_p): Likewise.
1870 (quad_load_store_p): Likewise.
1872 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
1873 classes into bins based on the physical register type.
1874 (reg_class_to_reg_type): Likewise.
1875 (IS_STD_REG_TYPE): Likewise.
1876 (IS_FP_VECT_REG_TYPE): Likewise.
1877 (reload_fpr_gpr): Arrays to determine what insn to use if we can
1878 use direct move instructions.
1879 (reload_gpr_vsx): Likewise.
1880 (reload_vsx_gpr): Likewise.
1881 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
1882 information that is a simplification of register classes. Also
1883 precalculate direct move reload helpers.
1884 (direct_move_p): New function to return true if the operation can
1885 be done as a direct move instruciton.
1886 (quad_load_store_p): New function to return true if the operation
1887 is a quad memory operation.
1888 (rs6000_legitimize_address): If quad memory, only allow register
1889 indirect for TImode addresses.
1890 (rs6000_legitimate_address_p): Likewise.
1891 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
1892 (rs6000_reload_register_type): Likewise.
1893 (register_to_reg_type): Return register type.
1894 (rs6000_secondary_reload_simple_move): New helper function for
1895 secondary reload and secondary memory needed to identify anything
1896 that is a simple move, and does not need reloading.
1897 (rs6000_secondary_reload_direct_move): New helper function for
1898 secondary reload to identify cases that can be done with several
1899 instructions via the direct move instructions.
1900 (rs6000_secondary_reload_move): New helper function for secondary
1901 reload to identify moves between register types that can be done.
1902 (rs6000_secondary_reload): Add support for quad memory operations
1903 and for direct move.
1904 (rs6000_secondary_memory_needed): Likewise.
1905 (rs6000_debug_secondary_memory_needed): Change argument names.
1906 (rs6000_output_move_128bit): New function to return the move to
1907 use for 128-bit moves, including knowing about the various
1908 limitations of quad memory operations.
1910 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
1911 memory operations. call rs6000_output_move_128bit for the actual
1912 instruciton(s) to generate.
1913 (vsx_movti_64bit): Likewise.
1915 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
1916 (UNSPEC_P8V_MTVSRWZ): Likewise.
1917 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
1918 (UNSPEC_P8V_MTVSRD): Likewise.
1919 (UNSPEC_P8V_XXPERMDI): Likewise.
1920 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
1921 (UNSPEC_FUSION_GPR): Likewise.
1922 (FMOVE128_GPR): New iterator for direct move.
1923 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
1926 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
1927 loads and direct move instructions.
1928 (zero_extendsidi2_lfiwzx): Likewise.
1929 (extendsidi2_lfiwax): Likewise.
1930 (extendsidi2_nocell): Likewise.
1931 (floatsi<mode>2_lfiwax): Likewise.
1933 (floatunssi<mode>2_lfiwzx): Likewise.
1935 (fix_trunc<mode>_stfiwx): Likewise.
1936 (fixuns_trunc<mode>_stfiwx): Likewise.
1937 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
1938 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
1939 (parity<mode>2_cmpb): Set length/type attr.
1940 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
1941 for 'mr.' to fast_compare.
1942 (bpermd_<mode>): Change type attr to popcnt.
1943 (p8_fmrgow_<mode>): New insns for power8 direct move support.
1944 (p8_mtvsrwz_1): Likewise.
1945 (p8_mtvsrwz_2): Likewise.
1946 (reload_fpr_from_gpr<mode>): Likewise.
1947 (p8_mtvsrd_1): Likewise.
1948 (p8_mtvsrd_2): Likewise.
1949 (p8_xxpermdi_<mode>): Likewise.
1950 (reload_vsx_from_gpr<mode>): Likewise.
1951 (reload_vsx_from_gprsf): Likewise.
1952 (p8_mfvsrd_3_<mode>): LIkewise.
1953 (reload_gpr_from_vsx<mode>): Likewise.
1954 (reload_gpr_from_vsxsf): Likewise.
1955 (p8_mfvsrd_4_disf): Likewise.
1956 (multi-word GPR splits): Do not split direct moves or quad memory
1959 2013-06-10 David Malcolm <dmalcolm@redhat.com>
1961 * tree-into-ssa.c (interesting_blocks): Make static.
1963 2013-06-10 Jakub Jelinek <jakub@redhat.com>
1966 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
1967 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
1968 Use DATA_ABI_ALIGNMENT for that case instead if defined.
1969 (get_variable_align): New function.
1970 (get_variable_section, emit_bss, emit_common,
1971 assemble_variable_contents, place_block_symbol): Use
1972 get_variable_align instead of DECL_ALIGN.
1973 (assemble_noswitch_variable): Add align argument, use it
1974 instead of DECL_ALIGN.
1975 (assemble_variable): Adjust caller. Use get_variable_align
1976 instead of DECL_ALIGN.
1977 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
1979 (DATA_ABI_ALIGNMENT): Define.
1980 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
1981 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
1982 opt is false, only return the psABI mandated alignment increase.
1983 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
1984 (DATA_ABI_ALIGNMENT): ... this.
1985 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
1986 (DATA_ABI_ALIGNMENT): ... this.
1987 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
1988 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
1989 (DATA_ABI_ALIGNMENT): ... this.
1990 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
1991 * doc/tm.texi: Regenerated.
1993 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
1995 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
1996 cmp_code to construct REG_EQUAL note.
1998 2013-06-09 Jakub Jelinek <jakub@redhat.com>
2001 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
2002 that operands[2] doesn't overlap with operands[0].
2004 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
2005 Jan Hubicka <jh@suse.cz>
2007 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
2008 hack to mark symbols as used.
2010 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
2012 PR rtl-optimization/57559
2013 * lra-constraints.c (process_alt_operands): Don't discourage
2014 memory with known offset for offsetable memory constraint.
2015 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
2017 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
2019 * varasm.c (struct oc_local_state): Reorder fields.
2020 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
2021 and adjust accordingly.
2022 (output_constructor): Reorder initialization code and adjust call to
2023 output_constructor_bitfield.
2025 2013-06-07 Jan Hubicka <jh@suse.cz>
2027 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
2029 2013-06-07 David Malcolm <dmalcolm@redhat.com>
2031 * tree-object-size.c (unknown): Make const.
2033 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2035 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
2036 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
2037 for last alternative in the cpu_facility attribute.
2039 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2042 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
2043 (xordi3): Change operand 2 constraint to arm_xordi_operand.
2044 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
2045 * config/arm/constraints.md (Dg): New constraint.
2046 * config/arm/neon.md (xordi3_neon): Remove.
2047 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
2048 * config/arm/predicates.md (arm_xordi_operand): New predicate.
2050 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2052 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
2053 Clean up alternatives.
2055 2013-06-07 Alan Modra <amodra@gmail.com>
2057 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
2060 2013-06-07 Alan Modra <amodra@gmail.com>
2062 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
2064 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2066 * config/arm/constraints.md (Df): New constraint.
2067 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
2068 Correct length attribute for last two alternatives.
2070 2013-06-07 Alan Modra <amodra@gmail.com>
2072 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
2073 override user -mfp-in-toc.
2074 (offsettable_ok_by_alignment): Consider just the current access
2075 rather than the whole object, unless BLKmode. Handle
2076 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
2077 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
2078 for -mcmodel=medium.
2079 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
2080 override user -mfp-in-toc or -msum-in-toc. Default to
2081 -mno-fp-in-toc for -mcmodel=medium.
2083 2013-06-06 DJ Delorie <dj@redhat.com>
2085 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
2086 TARGET_VALID_POINTER_MODE.
2088 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
2089 Pat Haugen <pthaugen@us.ibm.com>
2090 Peter Bergner <bergner@vnet.ibm.com>
2092 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
2093 Document new power8 builtins.
2095 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
2096 condition code register, to allow 128-bit logical operations to be
2097 done in the VSX or GPR registers.
2098 (nor<mode>3): Use the canonical form for nor.
2099 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
2100 vclz*, and vpopcnt* vector instructions.
2101 (nand<mode>3): Likewise.
2102 (orc<mode>3): Likewise.
2103 (clz<mode>2): LIkewise.
2104 (popcount<mode>2): Likewise.
2106 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
2107 that only the GPRs are recognized.
2109 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2110 support for new power8 builtins.
2112 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
2114 (xscvdpspn): Likewise.
2120 (vpopcnt): Likewise.
2121 (vpopcntb): Likewise.
2122 (vpopcnth): Likewise.
2123 (vpopcntw): Likewise.
2124 (vpopcntd): Likewise.
2129 (eqv_v16qi3): Likewise.
2130 (eqv_v8hi3): Likewise.
2131 (eqv_v4si3): Likewise.
2132 (eqv_v2di3): Likewise.
2133 (eqv_v4sf3): Likewise.
2134 (eqv_v2df3): Likewise.
2136 (nand_v16qi3): Likewise.
2137 (nand_v8hi3): Likewise.
2138 (nand_v4si3): Likewise.
2139 (nand_v2di3): Likewise.
2140 (nand_v4sf3): Likewise.
2141 (nand_v2df3): Likewise.
2143 (orc_v16qi3): Likewise.
2144 (orc_v8hi3): Likewise.
2145 (orc_v4si3): Likewise.
2146 (orc_v2di3): Likewise.
2147 (orc_v4sf3): Likewise.
2148 (orc_v2df3): Likewise.
2150 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
2151 allow power8 quad mode in 64-bit.
2152 (rs6000_builtin_vectorized_function): Add support to vectorize
2153 ISA 2.07 count leading zeros, population count builtins.
2154 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
2155 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
2156 (builtin_function_type): Add vgbbd builtin function which takes an
2158 (altivec_expand_vec_perm_const): Add support for new power8 merge
2161 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
2162 that does not include TImdoe for use with 32-bit.
2163 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
2165 (UNSPEC_VSX_CVDPSPN): Likewise.
2166 (vsx_xscvdpspn): Likewise.
2167 (vsx_xscvspdpn): Likewise.
2168 (vsx_xscvdpspn_scalar): Likewise.
2169 (vsx_xscvspdpn_directmove): Likewise.
2170 (vsx_and<mode>3): Split logical operations into 32-bit and
2171 64-bit. Add support to do logical operations on TImode as well as
2172 VSX vector types. Allow logical operations to be done in either
2173 VSX registers or in general purpose registers in 64-bit mode. Add
2174 splitters if GPRs were used. For AND, add clobber of CCmode to
2175 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
2177 (vsx_and<mode>3_32bit): Likewise.
2178 (vsx_and<mode>3_64bit): Likewise.
2179 (vsx_ior<mode>3): Likewise.
2180 (vsx_ior<mode>3_32bit): Likewise.
2181 (vsx_ior<mode>3_64bit): Likewise.
2182 (vsx_xor<mode>3): Likewise.
2183 (vsx_xor<mode>3_32bit): Likewise.
2184 (vsx_xor<mode>3_64bit): Likewise.
2185 (vsx_one_cmpl<mode>2): Likewise.
2186 (vsx_one_cmpl<mode>2_32bit): Likewise.
2187 (vsx_one_cmpl<mode>2_64bit): Likewise.
2188 (vsx_nor<mode>3): Likewise.
2189 (vsx_nor<mode>3_32bit): Likewise.
2190 (vsx_nor<mode>3_64bit): Likewise.
2191 (vsx_andc<mode>3): Likewise.
2192 (vsx_andc<mode>3_32bit): Likewise.
2193 (vsx_andc<mode>3_64bit): Likewise.
2194 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
2195 and xxlorc instructions.
2196 (vsx_eqv<mode>3_64bit): Likewise.
2197 (vsx_nand<mode>3_32bit): Likewise.
2198 (vsx_nand<mode>3_64bit): Likewise.
2199 (vsx_orc<mode>3_32bit): Likewise.
2200 (vsx_orc<mode>3_64bit): Likewise.
2202 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
2204 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
2206 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
2207 (p8_vmrgow): Likewise.
2208 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
2209 GPRs to be split under VSX.
2210 (p8v_clz<mode>2): Add power8 count leading zero support.
2211 (p8v_popcount<mode>2): Add power8 population count support.
2212 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
2215 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
2218 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
2220 (vec_nand): Likewise.
2221 (vec_vclz): Likewise.
2222 (vec_vclzb): Likewise.
2223 (vec_vclzd): Likewise.
2224 (vec_vclzh): Likewise.
2225 (vec_vclzw): Likewise.
2226 (vec_vgbbd): Likewise.
2227 (vec_vmrgew): Likewise.
2228 (vec_vmrgow): Likewise.
2229 (vec_vpopcnt): Likewise.
2230 (vec_vpopcntb): Likewise.
2231 (vec_vpopcntd): Likewise.
2232 (vec_vpopcnth): Likewise.
2233 (vec_vpopcntw): Likewise.
2235 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
2237 PR rtl-optimization/57468
2238 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
2241 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
2243 PR rtl-optimization/57459
2244 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
2245 type when setting live regs.
2247 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
2249 * config/s390/s390.opt (mlra): New option.
2250 * config/s390/s390.c (s390_decompose_address): Check displacement
2251 for all registers for LRA.
2252 (s390_secondary_reload): Don't used secondary reloads for LRA.
2253 (s390_lra_p): New function.
2254 (TARGET_LRA_P): Define.
2255 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
2256 of attribute cpu_facility to zarch for the last alternative.
2257 (*cmpmem_short): Ditto.
2259 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
2261 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
2262 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
2263 (arm_expand_prologue): Likewise.
2265 2013-06-06 Teresa Johnson <tejohnson@google.com>
2268 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
2269 as this is now done by redirect_edge_and_branch_force.
2270 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
2271 barriers, and fix interaction with splitting.
2272 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
2273 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
2274 reflect changes made in the routine.
2275 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
2276 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
2277 since this is called in cfglayout mode, and replace partition fixup
2278 with assert as that is now done by force_nonfallthru_and_redirect.
2279 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
2280 already be marked with region crossing note.
2281 (insert_section_boundary_note): Make non-static, gate on flag
2282 has_bb_partition, rewrite to also check for multiple partitions.
2283 (rest_of_handle_reorder_blocks): Remove call to
2284 insert_section_boundary_note, now done later during free_cfg.
2285 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
2286 * bb-reorder.h (insert_section_boundary_note): Declare.
2287 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
2288 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
2289 invoke insert_section_boundary_note.
2290 (try_redirect_by_replacing_jump): Remove unnecessary
2291 check for region crossing note.
2292 (fixup_partition_crossing): New function.
2293 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
2294 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
2295 in non-cfglayout mode.
2296 (force_nonfallthru_and_redirect): Fixup partition boundaries,
2297 remove old code that tried to do this. Emit barrier correctly
2298 when we are in cfglayout mode.
2299 (last_bb_in_partition): New function.
2300 (rtl_split_edge): Correctly fixup partition boundaries.
2301 (commit_one_edge_insertion): Remove old code that tried to
2302 fixup region crossing edge since this is now handled in
2303 split_block, and set up insertion point correctly since
2304 block may now end in a jump.
2305 (verify_hot_cold_block_grouping): Guard against checking when not in
2306 linearized RTL mode.
2307 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
2309 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
2310 rtl_verify_flow_info, so not called in cfglayout mode.
2311 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
2312 (fixup_reorder_chain): Remove old code that attempted to fixup region
2313 crossing note as this is now handled in force_nonfallthru_and_redirect.
2314 (duplicate_insn_chain): Don't duplicate switch section notes.
2315 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
2317 * basic-block.h (emit_barrier_after_bb): Declare.
2319 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2321 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
2322 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
2323 arm_usatsihi): Adjust alternatives for arm_restrict_it.
2325 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2327 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
2329 * config/arm/ldmstm.md: Regenerate.
2331 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2333 * config/arm/sync.md (atomic_loaddi_1):
2334 Disable predication for arm_restrict_it.
2335 (arm_load_exclusive<mode>): Likewise.
2336 (arm_load_exclusivesi): Likewise.
2337 (arm_load_exclusivedi): Likewise.
2338 (arm_load_acquire_exclusive<mode>): Likewise.
2339 (arm_load_acquire_exclusivesi): Likewise.
2340 (arm_load_acquire_exclusivedi): Likewise.
2341 (arm_store_exclusive<mode>): Likewise.
2342 (arm_store_exclusive<mode>): Likewise.
2343 (arm_store_release_exclusivedi): Likewise.
2344 (arm_store_release_exclusive<mode>): Likewise.
2346 2013-06-06 Richard Biener <rguenther@suse.de>
2348 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
2350 (lto_tag_is_tree_code_p): Adjust.
2351 (lto_tag_is_gimple_code_p): Likewise.
2352 (lto_gimple_code_to_tag): Likewise.
2353 (lto_tag_to_gimple_code): Likewise.
2354 (lto_tree_code_to_tag): Likewise.
2355 (lto_tag_to_tree_code): Likewise.
2356 * data-streamer.h (streamer_write_hwi_in_range): Use
2357 uhwi streaming to stream the normalized range.
2358 (streamer_read_hwi_in_range): Likewise.
2360 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2362 * config/arm/arm.md (enabled_for_depr_it): New attribute.
2363 (predicable_short_it): Likewise.
2364 (predicated): Likewise.
2365 (enabled): Handle above.
2366 (define_cond_exec): Set predicated attribute to yes.
2368 2013-06-05 Mike Stump <mikestump@comcast.net>
2370 * gdbinit.in (__FUNCTION__): Add.
2372 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
2374 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
2375 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
2377 2013-06-05 Jan Hubicka <jh@suse.cz>
2379 * varasm.c (mark_decl_referenced): Revert the removal until targets
2382 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
2384 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
2385 instead of mark_decl_referenced.
2387 2013-06-05 Jan Hubicka <jh@suse.cz>
2389 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
2390 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
2391 and symtab_used_from_object_file_p.
2392 (cgraph_make_node_local_1): Clear forced_by_abi.
2393 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
2394 * cgraph.h (symtab_node_base): Add forced_by_abi.
2395 (decide_is_variable_needed): Remove.
2396 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
2397 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
2398 (decide_is_symbol_needed): ... this one; handle symbols in general;
2399 always analyze virtuals; honnor forced_by_abi.
2400 (cgraph_finalize_function): Update.
2401 (varpool_finalize_decl): Update.
2402 (symbol_defined_and_needed): Remove.
2403 (analyze_functions): Update.
2404 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
2405 output_refs, input_overwrite_node): Handle forced_by_abi.
2406 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
2407 (address_taken_from_non_vtable_p): ... this one.
2408 (comdat_can_be_unshared_p_1): New function.
2409 (cgraph_comdat_can_be_unshared_p): Rename to ...
2410 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
2411 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
2412 (function_and_variable_visibility): Clear forced_by_abi as needed.
2413 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
2414 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
2415 * symtab.c (dump_symtab_base): Dump forced_by_abi.
2416 * varpool.c (decide_is_variable_needed): Remove.
2418 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2420 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
2421 (arm_option_override): Override arm_restrict_it where appropriate.
2422 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
2423 * config/arm/arm.opt (mrestrict-it): New command-line option.
2424 * doc/invoke.texi: Document -mrestrict-it.
2426 2013-06-05 David Malcolm <dmalcolm@redhat.com>
2428 * tsan.c (tsan_atomic_table): Make const.
2430 2013-06-05 Richard Biener <rguenther@suse.de>
2432 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
2433 index associated with the tree we are supposed to replace.
2434 * tree-streamer-out.c (pack_ts_base_value_fields): Output
2435 TREE_ASM_WRITTEN as zero for everything but SSA names.
2437 2013-06-05 David Malcolm <dmalcolm@redhat.com>
2439 * tree-ssa-structalias.c (call_stmt_vars): Make static.
2441 2013-06-04 Jan Hubicka <jh@suse.cz>
2443 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
2444 (input_node, input_varpool_node): Handle correctly external same
2446 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
2447 nodes at ltrans stage.
2449 2013-06-04 Jan Hubicka <jh@suse.cz>
2451 * ipa-inline.c (update_caller_keys): Fix availability test.
2452 (update_callee_keys): Likewise.
2453 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
2454 to follow ELF standard.
2456 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
2458 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
2459 (mips64r5900el-*-elf*): New configurations.
2460 * config/mips/mips-cpus.def (r5900): New processor.
2461 * config/mips/mips-tables.opt: Regenerate.
2462 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
2463 (mips_issue_rate): Handle PROCESSOR_R5900.
2464 (mips_reorg_process_insns): Force reorder mode for the R5900.
2465 * config/mips/mips.h (TARGET_MIPS5900): Define.
2466 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
2468 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
2470 * config/mips/mips.md (processor): Add r5900.
2471 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
2473 2013-06-04 Ian Bolton <ian.bolton@arm.com>
2475 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
2476 into function to generate MOVI instruction.
2477 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
2478 (aarch64_preferred_simd_mode): Turn into wrapper.
2479 (aarch64_output_scalar_simd_mov_immediate): New function.
2480 * config/aarch64/aarch64-protos.h: Add prototype for above.
2482 2013-06-04 Ian Bolton <ian.bolton@arm.com>
2484 * config/aarch64/aarch64.c (simd_immediate_info): Remove
2485 element_char member.
2486 (sizetochar): Return signed char.
2487 (aarch64_simd_valid_immediate): Remove elchar and other
2488 unnecessary variables.
2489 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
2490 Calculate element_char as required.
2491 * config/aarch64/aarch64-protos.h: Update and move prototype
2492 for aarch64_output_simd_mov_immediate.
2493 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
2496 2013-06-04 Ian Bolton <ian.bolton@arm.com>
2498 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
2499 information completed by aarch64_simd_valid_immediate.
2500 (aarch64_legitimate_constant_p): Update arguments.
2501 (aarch64_simd_valid_immediate): Work with struct rather than many
2503 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
2504 (aarch64_simd_make_constant): Update arguments.
2505 (aarch64_output_simd_mov_immediate): Work with struct rather than
2506 many pointers. Output immediate directly rather than as operand.
2507 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
2509 * config/aarch64/constraints.md (Dn): Update arguments.
2511 2013-06-04 Ian Bolton <ian.bolton@arm.com>
2513 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
2515 (aarch64_simd_immediate_valid_for_move): Remove.
2516 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
2517 (aarch64_simd_make_constant): Update call.
2518 (aarch64_output_simd_mov_immediate): Update call.
2519 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
2521 * config/aarch64/constraints.md (Dn): Update call.
2523 2013-06-04 Ian Bolton <ian.bolton@arm.com>
2525 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
2526 return type to bool for prototype.
2527 (aarch64_legitimate_constant_p): Check for true instead of not -1.
2528 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
2529 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
2531 2013-06-04 Catherine Moore <clm@codesourcery.com>
2533 * config/mips/mips.opt (meva): New.
2534 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
2535 (ASM_SPEC): Handle -meva.
2536 * doc/invoke.texi (meva): Document.
2538 2013-06-04 Alan Modra <amodra@gmail.com>
2540 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
2543 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2545 * rtl.def: Add extra fourth optional field to define_cond_exec.
2546 * gensupport.c (process_one_cond_exec): Process attributes from
2548 * doc/md.texi: Document fourth field in define_cond_exec.
2550 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
2552 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
2553 out the processing order as in store_bit_field_1.
2555 2013-06-04 Jan Hubicka <jh@suse.cz>
2558 * cgraphunit.c (cgraph_process_same_body_aliases): Create
2559 non-VAR_DECL node if it does not exist yet.
2561 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
2563 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
2564 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
2565 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
2566 target_cpu_default setting.
2568 2013-06-03 Teresa Johnson <tejohnson@google.com>
2570 * dumpfile.c (opt_info_switch_p): Change -fopt-info
2571 default to -fopt-info=optimized instead of all.
2572 * doc/invoke.texi: Ditto.
2573 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
2574 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
2575 (execute_vect_slp): Emit BB vectorization success under
2576 MSG_OPTIMIZED_LOCATIONS.
2577 * tree-vect-slp.c (vect_slp_transform_bb): Change
2578 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
2579 * tree-vect-loop.c (vect_transform_loop): Ditto.
2581 2013-06-03 Jason Merrill <jason@redhat.com>
2584 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2585 Use TARGET_EXPR for C++.
2587 2013-06-03 Jakub Jelinek <jakub@redhat.com>
2589 PR rtl-optimization/57268
2590 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
2591 if DEBUG_INSN_P (insn).
2594 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
2596 PR rtl-optimization/57268
2597 * sched-deps.c (sched_analyze_2): Flush dependence lists if
2598 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2600 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
2602 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
2603 (ix86_avoid_lea_for_addr): Likewise.
2604 (exact_dependency_1): Likewise.
2605 (ix86_adjust_cost): Likewise.
2606 (swap_top_of_ready_list): Fix formatting and !reload_completed check
2608 (do_reorder_for_imul): Fix typo, formatting and
2609 !reload_completed check removed.
2610 (ix86_sched_reorder): Fix typo and formatting.
2611 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
2614 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
2616 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
2618 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
2620 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
2621 <STRING_CST>: Likewise.
2622 <VECTOR_CST>: Likewise.
2624 2013-06-01 Janus Weil <janus@gcc.gnu.org>
2625 Mikael Morin <mikael@gcc.gnu.org>
2627 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
2628 * config.in: Regenerated.
2629 * configure: Regenerated.
2631 2013-06-01 Jan Hubicka <jh@suse.cz>
2634 * cgraphunit.c (compile): When weakref is not supported,
2635 set up transparent aliases before final output pass.
2636 * varasm.c (assemble_alias): Do not try to do it here.
2638 2013-06-01 Jan Hubicka <jh@suse.cz>
2641 * passes.c (for_per_function): Skip unanalyzed functions.
2643 2013-06-01 Jan Hubicka <jh@suse.cz>
2645 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
2646 (lto_symtab_merge_symbols_1): ... this one.
2647 (lto_symtab_merge_cgraph_nodes): Rename to ...
2648 (lto_symtab_merge_symbols): ... this one; simplify.
2649 * cgraph.c (same_body_aliases_done): Rename to ...
2650 (cpp_implicit_aliases_done): ... this one.
2651 (cgraph_create_function_alias): Update.
2652 (cgraph_same_body_alias): Update.
2653 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
2654 (verify_edge_corresponds_to_fndecl): Simplify.
2655 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
2656 (cgraph_node): Remove same_body_alias.
2657 (varpool_node): Remove alias_of and extra_name_alias.
2658 (same_body_aliases_done): Rename to ..
2659 (cpp_implicit_aliases_done): ... this one.
2660 (symtab_alias_ultimate_target): Add default parameter.
2661 (symtab_resolve_alias): New function.
2662 (fixup_same_cpp_alias_visibility): Declare.
2663 (cgraph_function_node): Add default parameter.
2664 (cgraph_node_asm_name): Likewise.
2665 (cgraph_function_or_thunk_node): Add default parameter; do
2666 not ICE when it is NULL.
2667 (varpool_variable_node): Likewise.
2668 * tree-emutls.c (create_emultls_var): Update.
2669 (ipa_lower_emutls): Update.
2670 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
2671 (cgraph_reset_node): Reset alias info.
2672 (cgraph_finalize_function): Update.
2673 (fixup_same_cpp_alias_visibility): Move to symtab.c.
2674 (analyze_function): Simplify.
2675 (cgraph_process_same_body_aliases): Simplify.
2676 (analyze_functions): Fixup same body aliases.
2677 (handle_alias_pairs): Simplify.
2678 (assemble_thunk): Update.
2679 (assemble_thunks_and_aliases): Update.
2680 (output_weakrefs): Rewrite.
2681 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
2682 (lto_output_varpool_node): Likewise.
2683 (compute_ltrans_boundary): Remve assert.
2684 (get_alias_symbol): New functoin.
2685 (input_node): Rewrite alias handling.
2686 (input_varpool_node): Likewise.
2687 * ipa-pure-const.c (propagate_pure_const): Fix formating.
2688 * ipa.c (process_references): Handle weakrefs correctly.
2689 (symtab_remove_unreachable_nodes): Likewise.
2690 * trans-mem.c (get_cg_data): Update.
2691 (ipa_tm_create_version_alias): Update.
2692 (ipa_tm_execute): Update.
2693 * symtab.c (dump_symtab_base): Dump aliases.
2694 (verify_symtab_base): Verify aliases.
2695 (symtab_node_availability): New function.
2696 (symtab_alias_ultimate_target): Simplify.
2697 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
2698 handle all the fixup cases.
2699 (symtab_resolve_alias): New function.
2700 * passes.c (ipa_write_summaries): Handle weakrefs.
2701 * varpool.c (varpool_analyze_node): Simplify.
2702 (assemble_aliases): Update.
2703 (varpool_create_variable_alias): Simplify.
2704 (varpool_extra_name_alias): Simplify.
2705 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
2706 (lto_symtab_merge_symbols): ... this one.
2708 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
2711 PR rtl-optimization/57268
2712 * sched-deps.c (sched_analyze_2): Flush dependence lists if
2713 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2715 2013-06-01 Tobias Burnus <burnus@net-b.de>
2718 2013-05-31 Tobias Burnus <burnus@net-b.de>
2721 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
2724 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
2726 PR rtl-optimization/57268
2727 * sched-deps.c (sched_analyze_2): Flush dependence lists if
2728 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2730 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
2732 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
2733 unordered comparison operators when -fno-trapping-math is in effect
2735 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
2736 and implement unordered comparison operators properly on the e500.
2738 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
2740 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
2741 for constant scalar integers.
2742 (simplify_relational_operation_1): Likewise.
2744 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
2746 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
2747 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
2750 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
2751 Igor Zamyatin <igor.zamyatin@intel.com>
2753 Silvermont (SLM) architecture performance tuning.
2754 * config/i386/i386.h (enum ix86_tune_indices): Add
2755 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
2756 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
2758 * config/i386/i386.c (initial_ix86_tune_features)
2759 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
2760 (ix86_lea_outperforms): Handle Silvermont tuning.
2761 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
2763 (ix86_use_lea_for_mov): Likewise.
2764 (ix86_avoid_lea_for_addr): Likewise.
2765 (ix86_lea_for_add_ok): Likewise.
2766 (exact_dependency_1): New function.
2767 (exact_store_load_dependency): Likewise.
2768 (ix86_adjust_cost): Handle Silvermont tuning.
2769 (do_reoder_for_imul): Likewise.
2770 (swap_top_of_ready_list): New function.
2771 (ix86_sched_reorder): Changed to handle Silvermont tuning.
2773 * config/i386/i386.md (peepholes that split memory operand in fp
2776 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
2778 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2779 Remove un-necessary braces.
2781 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
2783 * config/aarch64/aarch64.c (aarch64_classify_symbol):
2784 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
2786 2013-05-31 Tobias Burnus <burnus@net-b.de>
2789 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
2791 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2794 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
2795 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
2796 * config/arm/neon.md (iordi3_neon): Remove.
2797 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
2798 * config/arm/predicates.md (imm_for_neon_logic_operand):
2799 Move to earlier in the file.
2800 (neon_logic_op2): Likewise.
2801 (arm_iordi_operand_neon): New predicate.
2803 2013-05-31 Richard Biener <rguenther@suse.de>
2805 PR tree-optimization/57478
2806 PR tree-optimization/57453
2807 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
2810 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
2812 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
2813 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
2815 2013-05-30 Tobias Burnus <burnus@net-b.de>
2816 Thomas Koenig <tkoenig@gcc.gnu.org>
2819 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
2820 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
2822 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
2824 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
2826 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
2828 * target.def (register_usage_leveling_p): New hook.
2829 * targhooks.c (default_register_usage_leveling_p): New.
2830 * targhooks.h (default_register_usage_leveling_p): New prototype.
2831 * lra-assigns.c (register_usage_leveling_p): Use the hook.
2832 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
2833 * doc/tm.texi: Update.
2834 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
2836 2013-05-30 Ian Bolton <ian.bolton@arm.com>
2838 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
2839 (*insv_reg<mode>): New define_insn.
2841 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
2843 PR rtl-optimization/57439
2844 * postreload.c (move2add_valid_value_p): Check that we have
2845 a zero subreg_regno_offset when accessing the register in
2848 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
2849 Igor Zamyatin <igor.zamyatin@intel.com>
2851 Silvermont (SLM) architecture pipeline model, tuning and
2853 * config.gcc: Add slm config options and target.
2855 * config/i386/slm.md: New.
2857 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
2859 * gcc/config/i386/i386-c.c (ix86_target_macros_internal): New case
2861 (ix86_target_macros_internal): Likewise.
2863 * gcc/config/i386/i386.c (slm_cost): New cost.
2864 (m_SLM): New macro flag.
2865 (initial_ix86_tune_features): Set m_SLM.
2866 (x86_accumulate_outgoing_args): Likewise.
2867 (x86_arch_always_fancy_math_387): Likewise.
2868 (processor_target_table): Add slm cost.
2869 (cpu_names): Add slm cpu name.
2870 (x86_option_override_internal): Set SLM ISA.
2871 (ix86_issue_rate): New case PROCESSOR_SLM.
2872 (ia32_multipass_dfa_lookahead): Likewise.
2873 (fold_builtin_cpu): Add slm.
2875 * config/i386/i386.h (TARGET_SLM): New target macro.
2876 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
2877 (processor_type): Add PROCESSOR_SLM.
2879 * config/i386/i386.md (cpu): Add new value "slm".
2880 (slm.md): Include slm.md.
2882 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
2883 Zhenqiang Chen <zhenqiang.chen@linaro.org>
2885 * config/arm/arm-protos.h: Add and update function protos.
2886 * config/arm/arm.c (use_simple_return_p): New added.
2887 (thumb2_expand_return): Check simple_return flag.
2888 * config/arm/arm.md: Add simple_return and conditional simple_return.
2889 * config/arm/iterators.md: Add iterator for return and simple_return.
2891 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
2893 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
2894 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
2895 (arm_emit_vfp_multi_reg_pop): Likewise.
2896 (thumb2_emit_ldrd_pop): Likewise.
2897 (arm_expand_epilogue): Add misc REG_CFA notes.
2898 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
2900 2013-05-29 Lawrence Crowl <crowl@google.com>
2902 * config/arm/t-arm: Update for below.
2904 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
2905 Change type to hash_table. Update dependent calls and types.
2907 * config/i386/t-cygming: Update for below.
2909 * config/i386/t-interix: Update for below.
2911 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
2912 Change type to hash_table. Update dependent calls and types.
2913 (i386_find_on_wrapper_list::wrappers): Likewise.
2915 * config/ia64/t-ia64: Update for below.
2917 * config/ia64/ia64.c (bundle_state_table):
2918 Change type to hash_table. Update dependent calls and types.
2920 * config/mips/mips.c (mips_reorg_process_insns::htab):
2921 Change type to hash_table. Update dependent calls and types.
2923 * config/sol2.c (solaris_comdat_htab):
2924 Change type to hash_table. Update dependent calls and types.
2926 * config/t-sol2: Update for above.
2928 2013-05-29 Teresa Johnson <tejohnson@google.com>
2930 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
2931 functions are not yet marked as defined.
2933 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
2934 Pat Haugen <pthaugen@us.ibm.com>
2935 Peter Bergner <bergner@vnet.ibm.com>
2937 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
2941 (vrotl<mode>3): Likewise.
2942 (vashl<mode>3): Likewise.
2943 (vlshr<mode>3): Likewise.
2944 (vashr<mode>3): Likewise.
2946 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2947 support for power8 V2DI builtins.
2949 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
2950 power8 V2DI builtins.
2951 (vupkhsw): Likewise.
2952 (vupklsw): Likewise.
2953 (vaddudm): Likewise.
2958 (vpkudum): Likewise.
2959 (vpksdss): Likewise.
2960 (vpkudus): Likewise.
2961 (vpksdus): Likewise.
2966 (vsubudm): Likewise.
2967 (vcmpequd): Likewise.
2968 (vcmpgtsd): Likewise.
2969 (vcmpgtud): Likewise.
2970 (vcmpequd_p): Likewise.
2971 (vcmpgtsd_p): Likewise.
2972 (vcmpgtud_p): Likewise.
2973 (vupkhsw): Likewise.
2974 (vupklsw): Likewise.
2975 (vaddudm): Likewise.
2980 (vpksdss): Likewise.
2981 (vpksdus): Likewise.
2982 (vpkudum): Likewise.
2983 (vpkudus): Likewise.
2988 (vsubudm): Likewise.
2990 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
2991 support for power8 V2DI instructions.
2993 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
2994 power8 V2DI instructions. Combine pack and unpack insns to use an
2995 iterator for each mode. Check whether a particular mode supports
2996 Altivec instructions instead of just checking TARGET_ALTIVEC.
2997 (UNSPEC_VPKUWUM): Likewise.
2998 (UNSPEC_VPKSHSS): Likewise.
2999 (UNSPEC_VPKSWSS): Likewise.
3000 (UNSPEC_VPKUHUS): Likewise.
3001 (UNSPEC_VPKSHUS): Likewise.
3002 (UNSPEC_VPKUWUS): Likewise.
3003 (UNSPEC_VPKSWUS): Likewise.
3004 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
3005 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
3006 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
3007 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
3008 (UNSPEC_VUPKHSB): Likewise.
3009 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
3010 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
3011 (UNSPEC_VUPKHSH): Likewise.
3012 (UNSPEC_VUPKLSB): Likewise.
3013 (UNSPEC_VUPKLSH): Likewise.
3015 (VI_char): Likewise.
3016 (VI_scalar): Likewise.
3017 (VI_unit): Likewise.
3019 (VP_small): Likewise.
3020 (VP_small_lc): Likewise.
3021 (VU_char): Likewise.
3022 (add<mode>3): Likewise.
3023 (altivec_vaddcuw): Likewise.
3024 (altivec_vaddu<VI_char>s): Likewise.
3025 (altivec_vadds<VI_char>s): Likewise.
3026 (sub<mode>3): Likewise.
3027 (altivec_vsubcuw): Likewise.
3028 (altivec_vsubu<VI_char>s): Likewise.
3029 (altivec_vsubs<VI_char>s): Likewise.
3030 (altivec_vavgs<VI_char>): Likewise.
3031 (altivec_vcmpbfp): Likewise.
3032 (altivec_eq<mode>): Likewise.
3033 (altivec_gt<mode>): Likewise.
3034 (altivec_gtu<mode>): Likewise.
3035 (umax<mode>3): Likewise.
3036 (smax<mode>3): Likewise.
3037 (umin<mode>3): Likewise.
3038 (smin<mode>3): Likewise.
3039 (altivec_vpkuhum): Likewise.
3040 (altivec_vpkuwum): Likewise.
3041 (altivec_vpkshss): Likewise.
3042 (altivec_vpkswss): Likewise.
3043 (altivec_vpkuhus): Likewise.
3044 (altivec_vpkshus): Likewise.
3045 (altivec_vpkuwus): Likewise.
3046 (altivec_vpkswus): Likewise.
3047 (altivec_vpks<VI_char>ss): Likewise.
3048 (altivec_vpks<VI_char>us): Likewise.
3049 (altivec_vpku<VI_char>us): Likewise.
3050 (altivec_vpku<VI_char>um): Likewise.
3051 (altivec_vrl<VI_char>): Likewise.
3052 (altivec_vsl<VI_char>): Likewise.
3053 (altivec_vsr<VI_char>): Likewise.
3054 (altivec_vsra<VI_char>): Likewise.
3055 (altivec_vsldoi_<mode>): Likewise.
3056 (altivec_vupkhsb): Likewise.
3057 (altivec_vupkhs<VU_char>): Likewise.
3058 (altivec_vupkls<VU_char>): Likewise.
3059 (altivec_vupkhsh): Likewise.
3060 (altivec_vupklsb): Likewise.
3061 (altivec_vupklsh): Likewise.
3062 (altivec_vcmpequ<VI_char>_p): Likewise.
3063 (altivec_vcmpgts<VI_char>_p): Likewise.
3064 (altivec_vcmpgtu<VI_char>_p): Likewise.
3065 (abs<mode>2): Likewise.
3066 (vec_unpacks_hi_v16qi): Likewise.
3067 (vec_unpacks_hi_v8hi): Likewise.
3068 (vec_unpacks_lo_v16qi): Likewise.
3069 (vec_unpacks_hi_<VP_small_lc>): Likewise.
3070 (vec_unpacks_lo_v8hi): Likewise.
3071 (vec_unpacks_lo_<VP_small_lc>): Likewise.
3072 (vec_pack_trunc_v8h): Likewise.
3073 (vec_pack_trunc_v4si): Likewise.
3074 (vec_pack_trunc_<mode>): Likewise.
3076 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
3078 (vec_vmaxsd): Likewise.
3079 (vec_vmaxud): Likewise.
3080 (vec_vminsd): Likewise.
3081 (vec_vminud): Likewise.
3082 (vec_vpksdss): Likewise.
3083 (vec_vpksdus): Likewise.
3084 (vec_vpkudum): Likewise.
3085 (vec_vpkudus): Likewise.
3086 (vec_vrld): Likewise.
3087 (vec_vsld): Likewise.
3088 (vec_vsrad): Likewise.
3089 (vec_vsrd): Likewise.
3090 (vec_vsubudm): Likewise.
3091 (vec_vupkhsw): Likewise.
3092 (vec_vupklsw): Likewise.
3094 2013-05-29 Jan Hubicka <jh@suse.cz>
3096 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
3097 flags; reorder rest of fields in more consistent way.
3098 (varpool_node): Remove analyzed, finalized and alias.
3099 (cgraph_ndoe): Likewise.
3100 (symtab_alias_ultimate_target): New function.
3101 (cgraph_function_node): Move offline.
3102 (cgraph_reset_node): Declare.
3103 (cgraph_comdat_can_be_unshared_p): Remove.
3104 (varpool_remove_initializer): Declare.
3105 (varpool_first_defined_variable, varpool_next_defined_variable
3106 cgraph_first_defined_function, cgraph_next_defined_function): Update.
3107 (cgraph_function_with_gimple_body_p): Update.
3108 (varpool_all_refs_explicit_p): Update.
3109 (symtab_alias_target): New function.
3110 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
3111 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
3112 (cgraph_function_or_thunk_node): Simplify using
3113 symtab_alias_ultimate_target.
3114 (varpool_variable_node): Likewise.
3115 * cgraph.c (cgraph_create_function_alias): Update.
3116 (cgraph_add_thunk): Update.
3117 (cgraph_remove_node): Update.
3118 (dump_cgraph_node): Do not dump removed flags.
3119 (cgraph_function_body_availability): Update.
3120 (cgraph_propagate_frequency): Update.
3121 (verify_cgraph_node): Check sanity of local flag.
3122 (cgraph_function_node): Move here from cgraph.h; revamp for
3123 cgraph_function_or_thunk_node.
3124 * lto-symtab.c (lto_varpool_replace_node): Update.
3125 (lto_symtab_resolve_can_prevail_p): Update.
3126 (lto_symtab_merge_cgraph_nodes): Update.
3127 * ipa-cp.c (determine_versionability, initialize_node_lattices,
3128 propagate_constants_accross_call, devirtualization_time_bonus,
3129 ipcp_propagate_stage): Update.
3130 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
3131 * ipa-inline-transform.c (clone_inlined_nodes,
3132 preserve_function_body_p): Update.
3133 * ipa-reference.c (propagate): Update.
3134 (write_node_summary_p): Update.
3135 * toplev.c (wrapup_global_declaration_2): Update.
3136 * cgraphunit.c (cgraph_analyze_function): Rename to ...
3137 (analyze_function) ... this one.
3138 (cgraph_process_new_functions): Update.
3139 (cgraph_reset_node): Export.
3140 (cgraph_finalize_function): Update.
3141 (cgraph_add_new_function): Update.
3142 (process_function_and_variable_attributes): Update.
3143 (varpool_finalize_decl): Update.
3144 (symbol_finalized): Remove.
3145 (symbol_finalized_and_needed): Rename to ...
3146 (symbol_defined_and_needed): ... update.
3147 (cgraph_analyze_functions): Update.
3148 (handle_alias_pairs): Update.
3149 (mark_functions_to_output): Update.
3150 (assemble_thunk): Update.
3151 (output_in_order): Update.
3152 (output_weakrefs): Update.
3153 (finalize_compilation_unit): Update.
3154 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
3155 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
3156 input_node, input_varpool_node): Update.
3157 * dbxout.c (dbxout_expand_expr): Update.
3158 * cgraphclones.c (cgraph_clone_node): Update.
3159 (cgraph_copy_node_for_versioning): Update.
3160 (cgraph_materialize_clone): Update.
3161 (cgraph_materialize_all_clones): Update.
3162 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
3163 propagate_pure_const, propagate_nothrow): Update.
3164 * lto-streamer-out.c (lto_output, write_symbol): Update.
3165 * ipa-utils.c (ipa_reverse_postorder): Update.
3166 * ipa-inline.c (can_inline_edge_p): Update.
3167 (update_caller_keys, ipa_inline): Update.
3168 * dwarf2out.c (reference_to_unused,
3169 premark_types_used_by_global_vars_helper): Update.
3170 * tree-eh.c (tree_could_trap_p): Update.
3171 * ipa-split.c (consider_split, execute_split_functions): Update.
3172 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
3173 has_addr_references_p): Update; move ahead in file for better
3175 (process_references): Simplify.
3176 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
3178 (cgraph_comdat_can_be_unshared_p): Make static.
3179 (cgraph_externally_visible_p): Update.
3180 (varpool_externally_visible_p): Update.
3181 (function_and_variable_visibility): Update.
3182 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
3183 ipa_tm_mark_force_output_node): Update.
3184 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
3185 estimate_edge_devirt_benefit, inline_generate_summary,
3186 inline_write_summary): Update.
3187 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
3188 * ipa-prop.c (ipa_compute_jump_functions): Update.
3189 (ipa_print_node_params, ipa_prop_read_section,
3190 ipa_update_after_lto_read, read_replacements_section): Update.
3191 * varasm.c (mark_decl_referenced): Update.
3192 (assemble_alias, dump_tm_clone_pairs): Update.
3193 * tree-inline.c (copy_bb): Update.
3194 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
3196 * symtab.c (dump_symtab_base): Print new flags.
3197 (verify_symtab_base): Verify new flags.
3198 (symtab_alias_ultimate_target): New function.
3199 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
3200 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
3202 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
3204 * i386.c (ix86_get_function_versions_dispatcher,
3205 ix86_generate_version_dispatcher_body): Update.
3206 (fold_builtin_cpu): Use varpool_add_new_variable.
3207 * varpool.c (varpool_remove_initializer): Break out from ...
3208 (varpool_remove_node): ... this one.
3209 (dump_varpool_node, varpool_node_for_asm,
3210 cgraph_variable_initializer_availability, varpool_analyze_node,
3211 varpool_assemble_decl, varpool_remove_unreferenced_decls,
3212 varpool_finalize_named_section_flags, varpool_create_variable_alias):
3215 2013-05-29 Jan Hubicka <jh@suse.cz>
3217 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
3219 2013-05-29 Easwaran Raman <eraman@google.com>
3221 PR tree-optimization/57442
3222 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
3223 when control exits the main loop.
3225 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
3227 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
3229 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
3230 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
3231 * rx/t-rx: Add rx100 under multi library matches option for nofpu
3234 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3236 PR tree-optimization/57441
3237 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
3238 Don't limit size of incr_vec to number of candidates.
3240 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
3242 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
3243 and mips16 directories.
3244 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
3245 (MULTILIB_DIRNAMES): Ditto.
3246 (MULTILIB_EXCEPTIONS): Add new exceptions.
3247 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
3248 (MULTILIB_DIRNAMES): Ditto.
3249 (MULTILIB_EXCEPTIONS): Add new exceptions.
3251 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3252 Marcus Shawcroft <marcus.shawcroft@arm.com>
3254 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
3255 SYMBOL_TINY_ABSOLUTE.
3256 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
3257 SYMBOL_TINY_ABSOLUTE.
3258 (aarch64_expand_mov_immediate): Likewise.
3259 (aarch64_classify_symbol): Likewise.
3260 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
3261 Permit SYMBOL_TINY_ABSOLUTE.
3262 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
3264 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3265 Marcus Shawcroft <marcus.shawcroft@arm.com>
3267 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
3268 Refactor if/switch. Replace gcc_assert with if.
3270 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3272 * config/i386/i386.c (initial_ix86_tune_features): Enable
3273 FP Reassociation for AMD bdver1 and bdver2.
3275 2013-05-29 Martin Jambor <mjambor@suse.cz>
3277 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
3278 and IMAGPART_EXPR do not occur within other handled_components.
3280 2013-05-29 Richard Biener <rguenther@suse.de>
3282 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
3283 access on whether the use is in the BB we currently try to
3285 (vect_bb_vectorization_profitable_p): Pass the BB we currently
3286 vectorize to vect_bb_slp_scalar_cost.
3288 2013-05-29 Richard Biener <rguenther@suse.de>
3290 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
3291 computing scalar cost offsetted by stmts that are kept live
3293 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
3294 for computation of scalar cost.
3296 2013-05-28 Steve Ellcey <sellcey@mips.com>
3298 * config/mips/mips-cpus.def (mips32r2): Change processor type.
3300 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
3302 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
3303 array notation built-in reduction functions.
3304 * doc/passes.texi (Passes): Added documentation about changes done
3306 * doc/invoke.texi (C Dialect Options): Added documentation about
3307 the -fcilkplus flag.
3308 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
3309 (BUILTINS_DEF): Depend on cilkplus.def.
3310 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
3311 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
3312 * cilkplus.def: New file.
3314 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
3316 PR rtl-optimization/57439
3317 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
3319 2013-05-28 Easwaran Raman <eraman@google.com>
3321 PR tree-optimization/57337
3322 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
3323 (find_insert_point): Correctly identify the insertion point
3324 when two statements with the same UID is compared.
3326 2013-05-28 Richard Biener <rguenther@suse.de>
3328 PR tree-optimization/56787
3329 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
3330 from the list of data references.
3331 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
3333 (vect_analyze_loop_operations): Likewise.
3334 (vect_transform_loop): Remove clobbers.
3336 2013-05-28 Martin Jambor <mjambor@suse.cz>
3338 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
3339 and REALPART_EXPRs have scalar type.
3341 2013-05-28 Richard Biener <rguenther@suse.de>
3343 PR tree-optimization/57411
3344 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
3346 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
3347 virtual operand propagation.
3349 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
3351 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
3352 destination register for bmasksi_vis.
3353 (vector_init_bshuffle): Likewise.
3354 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
3356 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
3358 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
3359 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
3360 mode if the instruction isn't available in the original mode.
3361 * config/sparc/sparc.opt (mfix-ut699): New option.
3362 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
3363 (divdf3): Turn into expander.
3364 (divdf3_nofix): New insn.
3365 (divdf3_fix): Likewise.
3366 (divsf3): Disable if -mfix-ut699.
3367 (sqrtdf2): Turn into expander.
3368 (sqrtdf2_nofix): New insn.
3369 (sqrtdf2_fix): Likewise.
3370 (sqrtsf2): Disable if -mfix-ut699.
3372 2013-05-27 Richard Biener <rguenther@suse.de>
3375 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
3376 block for the new loop.
3378 2013-05-27 Richard Biener <rguenther@suse.de>
3380 PR tree-optimization/57343
3381 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
3382 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
3383 (number_of_iterations_cond): Do not build the folded tree.
3385 2013-05-27 Richard Biener <rguenther@suse.de>
3389 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
3390 OEP_CONSTANT_ADDRESS_OF retained.
3392 PR tree-optimization/57417
3393 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
3395 (set_ssa_val_to): Compare addresses using
3396 get_addr_base_and_unit_offset.
3398 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
3400 PR rtl-optimization/56833
3401 * postreload.c (move2add_record_mode): New function.
3402 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
3403 (move2add_use_add2_insn): Use move2add_record_sym_value.
3404 (move2add_use_add3_insn): Likewise.
3405 (reload_cse_move2add): Use move2add_valid_value_p and
3406 move2add_record_mode. Invalidate call-clobbered and REG_INC
3407 affected regs by setting reg_mode to VOIDmode.
3408 (move2add_note_store): Don't pretend the inside of a SUBREG is
3409 the actual destination. Invalidate single/leading registers by
3410 setting reg_mode to VOIDmode.
3411 Use move2add_record_sym_value, move2add_valid_value_p and
3412 move2add_record_mode.
3414 2013-05-27 Richard Biener <rguenther@suse.de>
3416 PR tree-optimization/57396
3417 * tree-affine.c (double_int_constant_multiple_p): Properly
3418 return false for val == 0 and div != 0.
3420 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
3422 * config/mips/mips.h: Use #elif in preprocessor conditions.
3424 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
3427 * config/mips/constraints.md (kl): New constraint.
3428 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
3429 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
3430 constraint for operand 0. Split after CSE for MIPS16. Emit a move
3432 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
3434 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
3437 * config/mips/mips.c (mips_can_inline_p): New function.
3438 (TARGET_CAN_INLINE_P): Define.
3440 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
3442 * sched-int.h (ds_t, dw_t): Make unsigned int.
3443 Fix documentation that describes how all the ds_t bits are used.
3444 Reserve the last bit for delayed-branch scheduling.
3445 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
3446 (BITS_PER_DEP_WEAK): Fix definition and documentation.
3447 (gen_dep_weak_1): Remove prototype.
3448 * sched-deps.c (get_dep_weak_1): Make static.
3449 * target.def (speculate_insn, needs_block_p, gen_spec_check,
3450 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
3451 * doc/tm.texi: Regenerate.
3452 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
3454 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
3457 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
3459 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
3460 Sandra Loosemore <sandra@codesourcery.com>
3462 * config.gcc (powerpc-*): Allow native for with-cpu.
3464 2013-05-24 Jeff Law <law@redhat.com>
3466 PR tree-optimization/57124
3467 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
3468 conversion feeding a condition if the range has an overflow
3469 if -fstrict-overflow. Add warnings for when we do make the
3472 2013-05-24 Dehao Chen <dehao@google.com>
3474 * tree-cfg.c (locus_discrim_map): Fix the typo.
3475 (locus_discrim_hasher): Likewise.
3476 (locus_discrim_hasher::hash): Likewise.
3477 (locus_discrim_hasher::equal): Likewise.
3479 2013-05-24 Martin Jambor <mjambor@suse.cz>
3481 PR tree-optimization/57294
3482 * cgraph.h (ipa_record_stmt_references): Declare.
3483 * cgraphbuild.c (ipa_record_stmt_references): New function.
3484 (build_cgraph_edges): Use ipa_record_stmt_references.
3485 (rebuild_cgraph_edges): Likewise.
3486 (cgraph_rebuild_references): Likewise.
3487 * ipa-prop.c (ipa_modify_call_arguments): Discard references
3488 associated with the old statement and build references from the
3489 newly built statements.
3490 * ipa-ref.c (ipa_remove_stmt_references): New function.
3491 * ipa-ref.h (ipa_remove_stmt_references): Declare.
3493 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
3495 * lra-constraints.c (emit_spill_move): Use smaller mode for
3497 (check_and_process_move): Consider mem-reg moves for secondary
3499 (curr_insn_transform): Don't lose insns emitted before for
3500 secondary memory moves.
3501 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
3502 reg set up in the current insn.
3504 2013-05-24 Dehao Chen <dehao@google.com>
3506 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
3508 (locus_descrim_hasher::equal): Likewise.
3509 (build_gimple_cfg): New discriminator assignment algorithm.
3510 (make_edges): Likewise.
3511 (next_discriminator_for_locus): Likewise.
3512 (same_line_p): Likewise.
3513 (assign_discriminators): Likewise.
3514 (make_cond_expr_edges): Likewise.
3515 (make_gimple_switch_edges): Likewise.
3516 (make_goto_expr_edges): Likewise.
3517 (make_gimple_asm_edges): Likewise.
3519 2013-05-24 Ian Bolton <ian.bolton@arm.com>
3521 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
3522 X format specifier to only display bottom 16 bits.
3523 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
3524 immediate to match for operand 2, since it will be masked.
3526 2013-05-24 Richard Biener <rguenther@suse.de>
3528 PR tree-optimization/57287
3529 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
3530 all SSA names that occur in abnormal PHIs.
3532 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3535 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
3536 that index is not negative.
3538 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
3540 PR rtl-optimization/55177
3541 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
3542 (simplify_byte_swapping_operation): New.
3543 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
3544 (simplify_relational_operation_1): Deal with BSWAP.
3546 2013-05-23 Richard Henderson <rth@redhat.com>
3549 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
3550 (ix86_reorg): Call it.
3552 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
3555 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
3556 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
3557 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
3559 2013-05-23 Christian Bruel <christian.bruel@st.com>
3562 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
3564 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3565 Marcus Shawcroft <marcus.shawcroft@arm.com>
3567 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
3568 * config/aarch64/constraints.md (Usa): Remove.
3569 * doc/md.texi (AArch64 Usa): Remove.
3571 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3572 Marcus Shawcroft <marcus.shawcroft@arm.com>
3574 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
3575 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
3576 * config/aarch64/predicates.md (aarch64_const_address): Remove.
3577 (aarch64_mov_operand): Use aarch64_mov_operand_p.
3579 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
3581 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
3582 instruction (AdvSIMD).
3583 * config/aarch64/aarch64-builtins.c
3584 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
3585 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
3587 2013-05-23 Martin Jambor <mjambor@suse.cz>
3590 * tree.h (contains_bitfld_component_ref_p): Declare.
3591 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
3592 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
3594 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
3595 not access a bit-field. Assert all final offsets are byte-aligned.
3597 2013-05-23 Richard Biener <rguenther@suse.de>
3599 PR tree-optimization/57380
3600 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
3601 least one invariant or re-used load.
3602 * passes.c (init_optimization_passes): Move pass_phiprop before
3605 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
3607 * config/aarch64/aarch64-simd.md
3608 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
3610 2013-05-23 Richard Biener <rguenther@suse.de>
3613 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
3614 OEP_CONSTANT_ADDRESS_OF retained.
3616 2013-05-23 Jakub Jelinek <jakub@redhat.com>
3619 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
3620 don't lower unit. Handle unit not being always BITS_PER_WORD.
3622 2013-05-23 Richard Biener <rguenther@suse.de>
3624 PR rtl-optimization/57341
3625 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
3626 instead of true_dependence.
3628 2013-05-22 David Malcolm <dmalcolm@redhat.com>
3630 * bb-reorder.c (branch_threshold): Make const.
3631 (exec_threshold): Ditto.
3633 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
3634 Pat Haugen <pthaugen@us.ibm.com>
3635 Peter Bergner <bergner@vnet.ibm.com>
3637 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
3638 documentation for the power8 crypto builtins.
3640 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
3642 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
3643 macros for defining power8 builtin functions.
3644 (BU_P8V_AV_2): Likewise.
3645 (BU_P8V_AV_P): Likewise.
3646 (BU_P8V_VSX_1): Likewise.
3647 (BU_P8V_OVERLOAD_1): Likewise.
3648 (BU_P8V_OVERLOAD_2): Likewise.
3649 (BU_CRYPTO_1): Likewise.
3650 (BU_CRYPTO_2): Likewise.
3651 (BU_CRYPTO_3): Likewise.
3652 (BU_CRYPTO_OVERLOAD_1): Likewise.
3653 (BU_CRYPTO_OVERLOAD_2): Likewise.
3654 (XSCVSPDP): Fix typo, point to the correct instruction.
3655 (VCIPHER): Add power8 crypto builtins.
3656 (VCIPHERLAST): Likewise.
3657 (VNCIPHER): Likewise.
3658 (VNCIPHERLAST): Likewise.
3659 (VPMSUMB): Likewise.
3660 (VPMSUMH): Likewise.
3661 (VPMSUMW): Likewise.
3662 (VPERMXOR_V2DI): Likewise.
3663 (VPERMXOR_V4SI: Likewise.
3664 (VPERMXOR_V8HI: Likewise.
3665 (VPERMXOR_V16QI: Likewise.
3666 (VSHASIGMAW): Likewise.
3667 (VSHASIGMAD): Likewise.
3669 (VPERMXOR): Likewise.
3670 (VSHASIGMA): Likewise.
3672 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
3673 __CRYPTO__ if the crypto instructions are available.
3674 (altivec_overloaded_builtins): Add support for overloaded power8
3677 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
3678 support for power8 crypto builtins.
3679 (builtin_function_type): Likewise.
3680 (altivec_init_builtins): Add support for builtins that take vector
3681 long long (V2DI) arguments.
3683 * config/rs6000/crypto.md: New file, define power8 crypto
3686 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
3687 Pat Haugen <pthaugen@us.ibm.com>
3688 Peter Bergner <bergner@vnet.ibm.com>
3690 * doc/invoke.texi (Option Summary): Add power8 options.
3691 (RS/6000 and PowerPC Options): Likewise.
3693 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
3694 constraints.md instead of rs6000.h. Reorder w* constraints. Add
3695 wm, wn, wr documentation.
3697 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
3698 registers if direct move instructions are enabled.
3699 (wn): New constraint for no registers.
3700 (wq): New constraint for quad word even GPR registers.
3701 (wr): New constraint if 64-bit instructions are enabled.
3702 (wv): New constraint if power8 vector instructions are enabled.
3703 (wQ): New constraint for quad word memory locations.
3705 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
3706 constraint for 0..15 for crypto instructions.
3707 (gpc_reg_operand): If VSX allow registers in VSX registers as well
3708 as GPR and floating point registers.
3709 (int_reg_operand): New predicate to match only GPR registers.
3710 (base_reg_operand): New predicate to match base registers.
3711 (quad_int_reg_operand): New predicate to match even GPR registers
3712 for quad memory operations.
3713 (vsx_reg_or_cint_operand): New predicate to allow vector logical
3714 operations in both GPR and VSX registers.
3715 (quad_memory_operand): New predicate for quad memory operations.
3716 (reg_or_indexed_operand): New predicate for direct move support.
3718 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
3719 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
3720 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
3721 (POWERPC_MASKS): Add power8 options.
3722 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
3725 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
3726 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
3728 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
3729 (-mpower8-fusion): New power8 options.
3730 (-mpower8-fusion-sign): Likewise.
3731 (-mpower8-vector): Likewise.
3732 (-mcrypto): Likewise.
3733 (-mdirect-move): Likewise.
3734 (-mquad-memory): Likewise.
3736 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
3738 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
3740 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
3741 (rs6000_debug_vector_unit): Add p8_vector.
3742 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
3743 definitions. Also print fusion state.
3744 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
3745 (rs6000_builtin_mask_calculate): Add power8 builtin support.
3746 (rs6000_option_override_internal): Add support for power8.
3747 (rs6000_common_init_builtins): Add debugging for skipped builtins
3749 (rs6000_adjust_cost): Add power8 support.
3750 (rs6000_issue_rate): Likewise.
3751 (insn_must_be_first_in_group): Likewise.
3752 (insn_must_be_last_in_group): Likewise.
3753 (force_new_group): Likewise.
3754 (rs6000_register_move_cost): Likewise.
3755 (rs6000_opt_masks): Likewise.
3757 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
3758 power8 capable assembler, default to power7 options.
3759 (TARGET_DIRECT_MOVE): Likewise.
3760 (TARGET_CRYPTO): Likewise.
3761 (TARGET_P8_VECTOR): Likewise.
3762 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
3763 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
3764 (VECTOR_MEM_P8_VECTOR_P): Likewise.
3765 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
3766 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
3767 (TARGET_XSCVDPSPN): Likewise.
3768 (TARGET_XSCVSPDPN): Likewsie.
3769 (TARGET_SYNC_HI_QI): Likewise.
3770 (TARGET_SYNC_TI): Likewise.
3771 (MASK_CRYPTO): Likewise.
3772 (MASK_DIRECT_MOVE): Likewise.
3773 (MASK_P8_FUSION): Likewise.
3774 (MASK_P8_VECTOR): Likewise.
3775 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
3776 temporary used by some of the direct move instructions to get two FP
3777 temporary registers does not force creation of a stack frame.
3778 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
3779 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
3780 that any VSX registers are tieable, even if they are also an
3781 Altivec vector mode.
3782 (r6000_reg_class_enum): Add wm, wr, wv constraints.
3783 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
3784 (RS6000_BTM_CRYPTO): Likewise.
3785 (RS6000_BTM_COMMON): Likewise.
3787 * config/rs6000/rs6000.md (cpu attribute): Add power8.
3788 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
3789 (enum rs6000_vector): Add power8 vector support.
3791 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3795 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
3796 (any_sibcall_could_use_r3): this and handle indirect calls.
3797 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
3799 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3801 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
3803 2013-05-22 Richard Biener <rguenther@suse.de>
3806 * profile.c (branch_prob): Do not split blocks that are
3807 abnormally receiving from ECF_RETURNS_TWICE functions.
3809 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3811 * recog.c (offsettable_address_addr_space_p): Fix calculation of
3812 address mode. Move pointer mode initialization to the same place.
3814 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3816 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
3817 while it has any effect.
3819 2013-05-21 Easwaran Raman <eraman@google.com>
3821 PR tree-optimization/57322
3822 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
3823 UID of the statement added to the BB to be 1.
3825 2013-05-21 Jakub Jelinek <jakub@redhat.com>
3827 PR tree-optimization/57331
3828 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
3829 of conversion from pointer type to integral type with integer.
3831 2013-05-21 Martin Jambor <mjambor@suse.cz>
3834 * ipa-prop.c (ipa_read_node_info): Process param_used and
3835 controlled_uses in the same order as when writing.
3837 2013-05-21 Magnus Granberg <baldrick@free.fr>
3840 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
3842 2013-05-21 Richard Biener <rguenther@suse.de>
3844 PR tree-optimization/57318
3845 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
3846 estimate stmts with side-effects as likely eliminated.
3848 2013-05-21 Richard Biener <rguenther@suse.de>
3850 PR tree-optimization/57330
3851 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
3852 preserve the call stmts fntype.
3854 2013-05-21 Richard Biener <rguenther@suse.de>
3856 PR tree-optimization/57303
3857 * tree-ssa-sink.c (statement_sink_location): Improve killing
3858 stmt detection and properly handle self-assignments.
3860 2013-05-21 Christian Bruel <christian.bruel@st.com>
3862 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
3863 spanning registers. LEAF_REG_REMAP is supported only for contiguous
3864 registers. Set register size out of the PARALLEL loop.
3866 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
3869 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
3870 (*fmasf4, *fmasf4_media): New insns.
3872 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
3874 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
3875 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
3876 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
3877 (mips_idiv_insns): Update the comments to say that the returned
3878 instruction counts are in units of BASE_INSN_LENGTH.
3879 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
3880 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
3881 using 2 rather than 4 as the length of indirect MIPS16 and
3882 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
3883 length of a NOP. Don't divide MIPS16 lengths by 2.
3884 (mips16_split_long_branches): Assume a branch is long if the
3885 length is greater than 4 rather than 8.
3886 * config/mips/mips.md (length): Give MIPS16 lengths directly,
3887 rather than multiplying them by 2. Multiply instruction counts
3888 by BASE_INSN_LENGTH rather than 4.
3889 (*jump_mips16, tls_get_tp_mips16_<mode>)
3890 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
3892 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
3894 * config/mips/mips.md (extended_mips16): Remove branch case.
3895 (length): Remove duplicated extended_mips16 test.
3897 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
3899 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
3901 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
3903 * recog.h (Recog_data): Rename to...
3904 (recog_data_d): ...this.
3905 (recog_data): Update accordingly.
3906 * recog.c (recog_data): Likewise.
3907 * reload.c (save_recog_data): Likewise.
3908 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
3909 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
3911 2013-05-17 Julian Brown <julian@codesourcery.com>
3913 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
3914 found in a REG_EQUAL note, invalidate it.
3916 2013-05-17 Easwaran Raman <eraman@google.com>
3918 * tree-ssa-reassoc.c (find_insert_point): New function.
3919 (insert_stmt_after): Likewise.
3920 (get_def_stmt): Likewise.
3921 (ensure_ops_are_available): Likewise.
3922 (not_dominated_by): Likewise.
3923 (rewrite_expr_tree): Do not move statements beyond what is
3924 necessary. Remove call to swap_ops_for_binary_stmt...
3925 (reassociate_bb): ... and move it here.
3926 (build_and_add_sum): Assign UIDs for new statements.
3927 (linearize_expr): Likewise.
3928 (do_reassoc): Renumber gimple statement UIDs.
3930 2013-05-17 Jan Hubicka <jh@suse.cz>
3932 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
3934 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
3935 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
3937 (output_weakrefs): Update.
3939 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
3940 Martin Jambor <mjambor@suse.cz>
3943 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
3944 value that corresponds to the given aggval is found in values vector.
3946 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
3948 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
3949 sse, sse2, sse3, ssse3 and sse4a flags to options.
3951 2013-05-17 David Malcolm <dmalcolm@redhat.com>
3953 * gengtype-state.c: (s_expr_writer): New class, to handle
3954 prettifying of output layout of s-expressions.
3955 (state_writer): New class, to write out gtype.state.
3956 (state_written_type_count): Move this variable into member data of
3958 (s_expr_writer::s_expr_writer): New code: constructor for new class
3959 (state_writer::state_writer(): ditto
3960 (s_expr_writer::write_new_line): New function
3961 (s_expr_writer::write_any_indent): ditto
3962 (s_expr_writer::begin_s_expr): ditto
3963 (s_expr_writer::end_s_expr): ditto
3964 (write_state_fileloc): convert to method of state_writer...
3965 (state_writer:: write_state_fileloc): ...and use methods of
3966 s_expr_writer to write indentation into the gtype.state output file
3967 to visually represent the hierarchical structure of the list
3969 (write_state_fields): ditto, renaming to...
3970 (state_writer::write_state_fields)
3971 (write_state_a_string): ditto, renaming to...
3972 (state_writer::write_state_a_string)
3973 (write_state_string_option): ditto, renaming to...
3974 (state_writer::write_state_string_option)
3975 (write_state_type_option): ditto, renaming to...
3976 (state_writer::write_state_type_option)
3977 (write_state_nested_option): ditto, renaming to...
3978 (state_writer::write_state_nested_option)
3979 (write_state_option): ditto, renaming to...
3980 (state_writer::write_state_option)
3981 (write_state_options): ditto, renaming to...
3982 (state_writer::write_state_options)
3983 (write_state_lang_bitmap): ditto, renaming to...
3984 (state_writer::write_state_lang_bitmap)
3985 (write_state_version): ditto, renaming to...
3986 (state_writer::write_state_version)
3987 (write_state_scalar_type): ditto, renaming to...
3988 (state_writer::write_state_scalar_type)
3989 (write_state_string_type): ditto, renaming to...
3990 (state_writer::write_state_string_type)
3991 (write_state_undefined_type): ditto, renaming to...
3992 (state_writer::write_state_undefined_type)
3993 (write_state_struct_union_type): ditto, renaming to...
3994 (state_writer::write_state_struct_union_type)
3995 (write_state_struct_type): ditto, renaming to...
3996 (state_writer::write_state_struct_type)
3997 (write_state_user_struct_type): ditto, renaming to...
3998 (state_writer::write_state_user_struct_type)
3999 (write_state_lang_struct_type): ditto, renaming to...
4000 (state_writer::write_state_lang_struct_type)
4001 (write_state_param_struct_type): ditto, renaming to...
4002 (state_writer::write_state_param_struct_type)
4003 (write_state_pointer_type): ditto, renaming to...
4004 (state_writer::write_state_pointer_type)
4005 (write_state_array_type): ditto, renaming to...
4006 (state_writer::write_state_array_type)
4007 (write_state_gc_used): ditto, renaming to...
4008 (state_writer::write_state_gc_used)
4009 (write_state_common_type_content): ditto, renaming to...
4010 (state_writer::write_state_common_type_content)
4011 (write_state_type): ditto, renaming to...
4012 (state_writer::write_state_type)
4013 (write_state_pair_list): ditto, renaming to...
4014 (state_writer::write_state_pair_list)
4015 (write_state_pair): ditto, renaming to...
4016 (state_writer::write_state_pair)
4017 (write_state_typedefs): ditto, renaming to...
4018 (state_writer::write_state_typedefs)
4019 (write_state_structures): ditto, renaming to...
4020 (state_writer::write_state_structures)
4021 (write_state_param_structs): ditto, renaming to...
4022 (state_writer::write_state_param_structs)
4023 (write_state_variables): ditto, renaming to...
4024 (state_writer::write_state_variables)
4025 (write_state_srcdir): ditto, renaming to...
4026 (state_writer::write_state_srcdir)
4027 (write_state_files_list): ditto, renaming to...
4028 (state_writer::write_state_files_list)
4029 (write_state_languages): ditto, renaming to...
4030 (state_writer::write_state_languages)
4031 (write_state): create a state_writer instance and use it when
4032 writing out the state file
4034 2013-05-17 Mike Stump <mikestump@comcast.net>
4036 PR rtl-optimization/57304
4037 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
4038 accessing DF_REF_REAL_LOC.
4040 2013-05-17 Jakub Jelinek <jakub@redhat.com>
4042 PR rtl-optimization/57281
4043 PR rtl-optimization/57300
4044 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
4045 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
4046 what the other splitter did if the registers are dead.
4048 2013-05-17 Richard Biener <rguenther@suse.de>
4050 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
4053 2013-05-17 Jakub Jelinek <jakub@redhat.com>
4055 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
4058 2013-05-17 Marek Polacek <polacek@redhat.com>
4060 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
4061 length when doing non-zero store of storing '\0' to '\0'.
4063 2013-05-17 Jakub Jelinek <jakub@redhat.com>
4065 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
4066 vect_external_def oprnd1 with loop_vinfo, try to emit
4067 optional cast, negation and and stmts on the loop preheader
4068 edge instead of into the pattern def seq.
4070 PR tree-optimization/57051
4071 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
4072 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
4074 2013-05-16 Nick Clifton <nickc@redhat.com>
4076 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
4077 (rl78_is_naked_func): New function.
4078 (rl78_expand_prologue): Skip prologue generation for naked functions.
4079 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
4080 * doc/extend.texi (naked): Add RL78 to the list of processors
4081 that supports this attribute.
4083 2013-05-16 Jeff Law <law@redhat.com>
4085 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
4087 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
4089 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
4090 cache parameters using detect_caches_amd also for CYRIX,
4091 NSC and TM2 signatures.
4093 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
4094 Dzianis Kahanovich <mahatma@eu.by>
4098 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
4099 VIA/Centaur processors and determine their cache parameters
4100 using detect_caches_amd.
4102 2013-05-16 Teresa Johnson <tejohnson@google.com>
4104 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
4105 (rtl_verify_edges): New function.
4106 (rtl_verify_bb_insns): Ditto.
4107 (rtl_verify_bb_pointers): Ditto.
4108 (rtl_verify_bb_insn_chain): Ditto.
4109 (rtl_verify_fallthru): Ditto.
4110 (rtl_verify_bb_layout): Ditto.
4111 (rtl_verify_flow_info_1): Outline checks into new functions.
4112 (rtl_verify_flow_info): Ditto.
4114 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
4116 * cfghooks.c (copy_bbs): Add update_dominance argument.
4117 * cfghooks.h (copy_bbs): Update prototype.
4118 * tree-cfg.c (gimple_duplicate_sese_region):
4119 Add update_dominance argument.
4120 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
4121 * tree-ssa-loop-ch.c (copy_loop_headers): Update
4122 gimple_duplicate_sese_region call.
4123 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
4124 Update copy_bbs call.
4125 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
4126 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
4128 2013-05-16 Jakub Jelinek <jakub@redhat.com>
4130 * tree-vectorizer.h (NUM_PATTERNS): Increment.
4131 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
4132 vect_recog_rotate_pattern.
4133 (vect_recog_rotate_pattern): New function.
4135 2013-05-16 Jason Merrill <jason@redhat.com>
4137 * Makefile.in (LLINKER): New variable.
4138 (mostlyclean): Remove link mutex.
4139 * configure.ac: Handle --enable-link-mutex.
4140 * lock-and-run.sh: New script.
4142 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4145 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
4148 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4150 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
4152 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
4154 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
4155 * config/arm/arm.c (next_consecutive_mem): New function.
4156 (gen_movmem_ldrd_strd): Likewise.
4157 * config/arm/arm.md (movmemqi): Update condition and code.
4158 (unaligned_loaddi, unaligned_storedi): New patterns.
4160 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4162 * config.gcc: Obsolete *-*-solaris2.9*.
4163 * doc/install.texi (Specific, *-*-solaris2*): Document it.
4165 2013-05-16 Richard Biener <rguenther@suse.de>
4167 * passes.c (init_optimization_passes): Move pass_parallelize_loops
4168 earlier, after GRAPHITE transforms and IV canonicalization.
4170 2013-05-16 Jakub Jelinek <jakub@redhat.com>
4172 * omp-low.c (extract_omp_for_data): For collapsed loops,
4173 if at least one of the loops is known at compile time to
4174 iterate zero times, set count to 0.
4175 (expand_omp_regimplify_p): New function.
4176 (expand_omp_for_generic): For collapsed loops, if at least
4177 one of the loops isn't known to iterate at least once,
4178 add runtime check with setting count to 0.
4179 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
4180 For unsigned types if it isn't known at compile time that
4181 the loop will iterate at least once, add runtime check to bypass
4182 the whole loop if initial condition isn't true.
4184 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
4186 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
4188 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
4191 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
4192 transformations to avoid an infinite loop.
4194 2013-05-16 Marek Polacek <polacek@redhat.com>
4196 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
4198 2013-05-15 Leif Ekblad <leif@rdos.net>
4200 * config/i386/i386.c (ix86_decompose_address): Use
4201 DEFAULT_TLS_SEG_REG to access TLS segment register.
4202 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
4203 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
4204 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
4206 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
4209 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
4210 sibling calls to functions that would normally be lazily bound,
4211 unless $gp is call-clobbered.
4213 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
4215 * config/i386/i386.c (ix86_option_override_internal): Update
4216 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
4217 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
4218 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
4219 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
4221 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
4223 2013-05-15 Andreas Schwab <schwab@suse.de>
4225 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
4226 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
4229 2013-05-15 Teresa Johnson <tejohnson@google.com>
4231 * loop-unroll.c (report_unroll_peel): Check decision before
4232 emitting unroll/peel message.
4234 2013-05-15 Teresa Johnson <tejohnson@google.com>
4236 * function.h (has_bb_partition): New rtl_data flag.
4237 (bb_reorder_complete): Ditto.
4238 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
4239 instead of flag_reorder_blocks_and_partition.
4240 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
4241 with some enhancements.
4242 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
4243 * bb-reorder.c (connect_traces): Check for has_bb_partition
4244 instead of flag_reorder_blocks_and_partition.
4245 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
4246 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
4247 verify_hot_cold_block_grouping.
4248 (partition_hot_cold_basic_blocks): Set has_bb_partition.
4250 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4253 * config/arm/predicates.md (call_insn_operand): New predicate.
4254 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
4255 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
4256 if insn is not a tail call.
4257 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
4259 * config/arm/arm.h (enum reg_class): New caller save register class.
4260 (REG_CLASS_NAMES): Likewise.
4261 (REG_CLASS_CONTENTS): Likewise.
4262 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
4265 2013-05-15 Richard Biener <rguenther@suse.de>
4267 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
4268 of MSG_OPTIMIZED_LOCATIONS.
4269 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
4270 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
4272 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
4273 of MSG_OPTIMIZED_LOCATIONS.
4274 (execute_vect_slp): Likewise.
4275 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
4276 (vect_create_cond_for_alias_checks): Likewise.
4277 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
4278 (vect_recog_widen_mult_pattern): Likewise.
4279 (vect_recog_widen_sum_pattern): Likewise.
4280 (vect_recog_over_widening_pattern): Likewise.
4281 (vect_recog_widen_shift_pattern): Likewise.
4282 (vect_recog_vector_vector_shift_pattern): Likewise.
4283 (vect_recog_divmod_pattern): Likewise.
4284 (vect_recog_mixed_size_cond_pattern): Likewise.
4285 (vect_recog_bool_pattern): Likewise.
4286 (vect_pattern_recog_1): Likewise.
4288 2013-05-15 Martin Jambor <mjambor@suse.cz>
4290 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
4291 non-functions to builtin_unreachable.
4292 * ipa-inline-transform.c (inline_call): Do not assert estimates were
4293 correct when new direct edges were discovered.
4295 2013-05-15 Martin Jambor <mjambor@suse.cz>
4297 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
4298 header, print symbol order instead of node uid, print more information
4299 about indirect edge targets.
4300 (ipa_make_edge_direct_to_target): Print symbol order instead of node
4302 (ipa_make_edge_direct_to_target): Likewise.
4303 (remove_described_reference): Likewise.
4304 (propagate_controlled_uses): Likewise.
4305 (ipa_print_node_params): Also print symbol order.
4306 (ipcp_transform_function): Print symbol order instead of node uids.
4307 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
4308 (cgraph_get_create_real_symbol_node): Likewise.
4309 * ipa-cp.c (print_lattice): Likewise.
4310 (print_all_lattices): Likewise.
4311 (determine_versionability): Likewise.
4312 (initialize_node_lattices): Likewise.
4313 (estimate_local_effects): Likewise.
4314 (update_profiling_info): Likewise.
4315 (create_specialized_node): Likewise.
4316 (perhaps_add_new_callers): Likewise.
4317 (decide_about_value): Likewise.
4318 (decide_whether_version_node): Likewise.
4319 (identify_dead_nodes): Likewise.
4320 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
4321 (dump_inline_summary): Likewise.
4322 (estimate_node_size_and_time): Likewise.
4323 (inline_analyze_function): Likewise.
4324 * ipa-inline.c (report_inline_failed_reason): Likewise.
4325 (want_early_inline_function_p): Likewise.
4326 (edge_badness): Likewise.
4327 (update_edge_key): Likewise.
4328 (inline_small_functions): Likewise. Add dumping of order to two other
4330 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
4331 instead of node uids.
4332 (propagate_pure_const): Likewise.
4333 (propagate_pure_const): Likewise.
4334 * ipa-utils.c (dump_cgraph_node_set): Likewise.
4335 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
4336 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
4338 * tree-pretty-print.c (dump_function_header): Likewise.
4339 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
4340 Print symbol order instead of node uids.
4342 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4344 * config/s390/s390.c (s390_register_move_cost): Don't impose the
4345 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
4347 2013-05-15 Richard Biener <rguenther@suse.de>
4349 PR tree-optimization/57275
4350 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
4351 return value for fail to do runtime alias checks for gather loads.
4353 2013-05-15 Jan Hubicka <jh@suse.cz>
4357 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
4358 weakrefs are not external.
4359 (lto_symtab_merge_decls): Fix thinko when dealing with
4360 non-lto_symtab decls.
4361 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
4362 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
4363 * varpool.c (dump_varpool_node): Dump more flags.
4365 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4367 * config/i386/i386.c (processor_alias_table): Add instruction
4368 FSGSBASE for AMD bdver3 architecture.
4370 2013-05-14 Jakub Jelinek <jakub@redhat.com>
4372 * tree.c (warn_deprecated_use): Print file:line using locus color.
4373 * diagnostic.c (diagnostic_report_current_module): Print file:line
4374 and file:line:column using locus color.
4376 2013-05-14 Mike Stump <mikestump@comcast.net>
4378 * gdbinit.in: Add __null.
4380 2013-05-14 Mike Stump <mikestump@comcast.net>
4382 * recog.h: Rename struct recog_data to Recog_data.
4383 * recog.c: Likewise.
4384 * reload.c (can_reload_into): Likewise.
4385 * config/picochip/picochip.c: Likewise.
4387 2013-05-14 Mike Stump <mikestump@comcast.net>
4389 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
4391 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
4393 * resource.h (struct resources): Remove unch_memory member.
4394 (CLEAR_RESOURCE): Don't clear unch_memory.
4395 * resource.c (mark_referenced_resources): Don't set it.
4396 (mark_set_resources): Likewise.
4397 (mark_target_live_regs): Don't clear it.
4398 (init_resource_info): Likewise.
4399 * reorg.c (resource_conflicts_p): Don't compare it.
4400 (redundant_insn): Don't set it.
4402 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
4404 * emit-rtl.c (next_label): Remove unused function.
4405 (skip_consecutive_labels, link_cc0_insns): Move to ...
4406 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
4407 only place where these functions are used, and make them static.
4409 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
4411 * fold-const.c (fold_negate_expr): Handle vectors.
4412 (fold_truth_not_expr): Make it static.
4413 (fold_invert_truthvalue): New static function.
4414 (invert_truthvalue_loc): Handle vectors. Do not call
4415 fold_truth_not_expr directly.
4416 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
4417 <TRUTH_NOT_EXPR>: Do not cast to boolean.
4418 (fold_comparison): Handle vector constants.
4419 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
4420 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
4421 * tree.h (fold_truth_not_expr): Remove declaration.
4423 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
4425 * config/aarch64/aarch64-simd.md
4426 (aarch64_vcond_internal<mode>): Rename to...
4427 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
4428 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
4429 float modes. Clarify all iterator modes.
4430 (vcond<mode><mode>): Use new name for vcond expanders.
4431 (vcond<v_cmp_result><mode>): Likewise.
4432 (vcondu<mode><mode>: Likewise.
4433 * config/aarch64/iterators.md (VDQF_COND): New.
4435 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
4438 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
4439 variable for the shift amount. Check that we shift by non-negative
4442 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
4445 * config/arm/arm.h (EPILOGUE_USES): Only return true
4446 for LR_REGNUM after epilogue_completed.
4448 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
4450 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
4453 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4456 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
4457 and Solaris 11+/x86 with gld.
4458 * configure: Regenerate.
4460 2013-05-14 Jakub Jelinek <jakub@redhat.com>
4462 * expmed.c (expand_shift_1): Canonicalize rotates by
4463 constant bitsize / 2 to bitsize - 1.
4464 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
4465 case ROTATERT>: Likewise.
4468 2013-05-10 Jakub Jelinek <jakub@redhat.com>
4470 * config/i386/i386.md (rotateinv): New code attr.
4471 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
4472 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
4473 roll $31, %eax, etc.
4475 2013-05-14 Richard Biener <rguenther@suse.de>
4478 * tree-eh.c (sink_clobbers): Give up for successors with
4479 multiple predecessors and no virtual uses.
4481 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
4483 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
4484 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
4486 2013-05-14 Jakub Jelinek <jakub@redhat.com>
4489 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
4490 the case when both op0 and op1 have VOIDmode.
4492 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
4494 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
4495 in multiply-accumulate mode.
4497 2013-05-13 Guozhi Wei <carrot@google.com>
4499 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
4501 2013-05-13 Kai Tietz <ktietz@redhat.com>
4504 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
4505 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
4506 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
4507 * config/i386/i386.c (ix86_option_override_internal): Likewise.
4508 (ix86_expand_prologue): Likewise.
4509 (ix86_expand_split_stack_prologue): Likewise.
4510 (legitimate_pic_address_disp_p): Likewise.
4511 (legitimize_pic_address): Likewise.
4512 (legitimize_tls_address): Likewise.
4513 (legitimize_pe_coff_symbol): Likewise.
4514 (output_pic_addr_const): Likewise.
4515 (construct_plt_address): Likewise.
4516 (ix86_expand_call): Likewise.
4517 (x86_output_mi_thunk): Likewise.
4518 (x86_function_profiler): Likewise.
4520 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
4522 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
4523 similar switch cases.
4524 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
4525 (aarch64_simd_mov_to_<mode>low): Delete.
4526 (aarch64_simd_mov_to_<mode>high): Delete.
4527 (move_lo_quad_<mode>): Add w<-r alternative.
4528 (aarch64_simd_move_hi_quad_<mode>): Likewise.
4529 (aarch64_simd_mov_from_*): Update type attribute.
4530 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
4533 2013-05-13 Jan Hubicka <jh@suse.cz>
4535 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
4536 * config/i386/i386.c (ix86_compute_frame_layout,
4537 ix86_expand_epilogue, emit_i387_cw_initialization,
4538 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
4539 ix86_local_alignment): Fix use of size/speed predicates.
4541 2013-05-13 Jakub Jelinek <jakub@redhat.com>
4543 PR tree-optimization/45216
4544 PR tree-optimization/57157
4545 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
4546 the (-Y) & (B - 1) variant if OP is |.
4547 * expmed.c (expand_shift_1): For rotations by const0_rtx just
4548 return shifted. Use (-op1) & (prec - 1) as other_amount
4549 instead of prec - op1.
4551 2013-05-13 Martin Jambor <mjambor@suse.cz>
4554 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
4555 (ipa_constant_data): New type.
4556 (ipa_jump_func): Use ipa_constant_data to hold information about
4557 constant jump functions.
4558 (ipa_get_jf_constant): Adjust to jump function type changes.
4559 (ipa_get_jf_constant_rdesc): New function.
4560 (ipa_param_descriptor): New field controlled_uses.
4561 (ipa_get_controlled_uses): New function.
4562 (ipa_set_controlled_uses): Likewise.
4563 * ipa-ref.h (ipa_find_reference): Declare.
4564 * ipa-prop.c (ipa_cst_ref_desc): New type.
4565 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
4567 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
4568 New parameter cs. Adjust all callers.
4569 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
4570 (remove_described_reference): New function.
4571 (jfunc_rdesc_usable): Likewise.
4572 (try_make_edge_direct_simple_call): Decrement controlled use count,
4573 attempt to remove reference if it hits zero.
4574 (combine_controlled_uses_counters): New function.
4575 (propagate_controlled_uses): Likewise.
4576 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
4577 (ipa_edge_duplication_hook): Duplicate reference descriptions.
4578 (ipa_print_node_params): Print described use counter.
4579 (ipa_write_jump_function): Adjust to jump function type changes.
4580 (ipa_read_jump_function): New parameter CS, pass it to
4581 ipa_set_jf_constant. Adjust caller.
4582 (ipa_write_node_info): Stream controlled use count
4583 (ipa_read_node_info): Likewise.
4584 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
4586 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
4587 count. Remove cloning-added reference if it reaches zero.
4588 * ipa-ref.c (ipa_find_reference): New function.
4590 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4592 * config/i386/i386.c (processor_target_table): Modified default
4593 alignment values for AMD BD and BT architectures.
4595 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
4597 * tree-vect-generic.c (uniform_vector_p): Move ...
4598 * tree.c (uniform_vector_p): ... here.
4599 * tree.h (uniform_vector_p): Declare it.
4600 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
4603 2013-05-13 Jakub Jelinek <jakub@redhat.com>
4605 PR tree-optimization/57230
4606 * tree-ssa-strlen.c (handle_char_store): Record length for
4607 array store from STRING_CST.
4609 PR tree-optimization/57230
4610 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
4613 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
4615 * config/epiphany/epiphany.c (epiphany_init): Check size of
4616 NUM_MODES_FOR_MODE_SWITCHING.
4617 (epiphany_expand_prologue):
4618 Remove CONFIG_REGNUM initial value handling code.
4619 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
4620 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
4621 (emit_set_fp_mode, epiphany_mode_after): Likewise.
4622 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
4623 Don't return 1 for FP_MODE_NONE.
4624 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
4625 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
4626 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
4627 * config/epiphany/epiphany.md (save_config): New pattern.
4629 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
4631 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
4633 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
4635 * config/i386/i386.md (memory): Handle sseishft1.
4636 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
4637 (*vec_extractv2di_1): Ditto.
4639 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
4641 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
4644 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
4646 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
4647 Add mthumb/march=armv7-a multilib.
4648 Add mthumb/march=armv7-r multilib.
4649 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
4651 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
4653 * config/v850/t-rtems: Add more multilibs.
4655 2013-05-10 Richard Biener <rguenther@suse.de>
4657 PR tree-optimization/57214
4658 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
4659 not propagate from SSA names that occur in abnormal PHI nodes.
4661 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
4663 * stor-layout.c (element_precision): New function.
4664 * machmode.h (element_precision): Declare it.
4665 * tree.c (build_minus_one_cst): New function.
4666 (element_precision): Likewise.
4667 * tree.h (build_minus_one_cst): Declare new function.
4668 (element_precision): Likewise.
4669 * fold-const.c (operand_equal_p): Use element_precision.
4670 (fold_binary_loc): Handle vector types.
4671 * convert.c (convert_to_integer): Use element_precision.
4672 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
4675 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
4677 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
4678 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
4679 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
4680 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
4681 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
4682 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
4683 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
4684 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
4685 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
4686 (Uuw8): New constraints.
4687 (Usb4): Move into alphabetical order.
4688 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
4689 (sd8_operand, ub8_operand, uw8_operand): New predicates.
4690 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
4691 previously unnamed patterns.
4692 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
4693 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
4694 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
4695 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
4696 of set_attr_alternative/if_then_else. Use extended_mips16 instead
4697 of specific lengths.
4699 2013-05-10 Jakub Jelinek <jakub@redhat.com>
4701 * config/i386/i386.md (rotateinv): New code attr.
4702 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
4703 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
4704 roll $31, %eax, etc.
4706 PR tree-optimization/45216
4707 PR tree-optimization/57157
4708 * tree-ssa-forwprop.c (simplify_rotate): New function.
4709 (ssa_forward_propagate_and_combine): Call it.
4711 2013-05-10 Richard Biener <rguenther@suse.de>
4713 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
4714 disable peeling when we version for aliasing.
4715 (vector_alignment_reachable_p): Honor explicit user alignment.
4716 (vect_supportable_dr_alignment): Likewise.
4717 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
4718 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
4719 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
4720 then peeling to arrange for the cost-model check to come first.
4722 2013-05-10 Alan Modra <amodra@gmail.com>
4724 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
4725 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
4726 * configure: Regenerate.
4728 2013-05-10 Alan Modra <amodra@gmail.com>
4731 * varasm.c (default_elf_select_section): Move !DECL_P check..
4732 (get_named_section): ..to here before calling get_section_name.
4734 (default_section_type_flags): Add DECL_P check.
4735 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
4736 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
4738 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
4740 * config/epiphany/epiphany.c (epiphany_expand_prologue):
4741 When using gen_stack_adjust_str with a register offset, add a
4742 REG_FRAME_RELATED_EXPR note.
4744 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
4746 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
4747 (*vec_extractv4si_zext_mem): Ditto.
4748 (*vec_extractv2di): Add 0->x and x->x alternatives.
4749 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
4750 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
4752 2013-05-09 Jason Merrill <jason@redhat.com>
4754 N3639 C++1y VLA support
4755 * gimplify.c (gimplify_vla_decl): Don't touch an existing
4758 * tree.c (build_constructor_va): New.
4759 * tree.h: Declare it.
4761 2013-05-09 Martin Jambor <mjambor@suse.cz>
4764 * gimple-fold.c (canonicalize_constructor_val): Call
4765 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
4767 2013-05-09 Jan Hubicka <jh@suse.cz>
4768 Richard Biener <rguenther@suse.de>
4771 * symtab.c (symtab_make_decl_local): Do not add private names.
4773 2013-05-09 Jan Hubicka <jh@suse.cz>
4776 * symtab.c (insert_to_assembler_name_hash): Handle clones.
4777 (unlink_from_assembler_name_hash): Likewise.
4778 (symtab_prevail_in_asm_name_hash, symtab_register_node,
4779 symtab_unregister_node, symtab_initialize_asm_name_hash,
4780 change_decl_assembler_name): Update.
4782 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
4784 * config/aarch64/aarch64.md: New movtf split.
4785 (*movtf_aarch64): Update.
4786 (aarch64_movdi_tilow): Handle TF modes and rename to
4787 aarch64_movdi_<mode>low.
4788 (aarch64_movdi_tihigh): Handle TF modes and rename to
4789 aarch64_movdi_<mode>high
4790 (aarch64_movtihigh_di): Handle TF modes and rename to
4791 aarch64_mov<mode>high_di
4792 (aarch64_movtilow_di): Handle TF modes and rename to
4793 aarch64_mov<mode>low_di
4794 (aarch64_movtilow_tilow): Remove spurious whitespace.
4795 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
4797 (aarch64_print_operand): Update.
4799 2013-05-09 Alan Modra <amodra@gmail.com>
4801 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
4803 * configure: Regenerate.
4805 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
4807 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
4808 splitter preparation statements.
4809 * config/i386/sse.md (*vec_extract* splitters): Ditto.
4810 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
4813 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4815 * gimple-ssa-strength-reduction.c (count_candidates): Change
4816 return value to int.
4817 (analyze_candidates_and_replace): Change type of length to int.
4819 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
4821 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
4822 (*vec_extract<mode>): Use VI12_128 mode iterator.
4823 (*vec_extract<mode>_mem): Ditto.
4824 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
4827 2013-05-08 Diego Novillo <dnovillo@google.com>
4832 2012-08-17 Diego Novillo <dnovillo@google.com>
4835 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
4836 * config.in: Regenerate.
4837 * configure: Regenerate.
4838 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4840 2013-05-08 Jan Hubicka <jh@suse.cz>
4843 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
4844 * cgraph.h (symtab_node_base): Add unique_name.
4845 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
4846 input_overwrite_node, input_varpool_node): Stream unique_name.
4847 * cgraphclones.c (cgraph_create_virtual_clone,
4848 cgraph_function_versioning): Set unique_name.
4849 * ipa.c (function_and_variable_visibility): Set unique_name.
4851 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4853 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
4854 (alloc_cand_and_find_basis): Restrict conditional candidate
4855 processing to CAND_MULTs.
4857 2013-05-08 Jan Hubicka <jh@suse.cz>
4860 lto-symtab.c (lto_symtab_symbol_p): New function.
4861 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
4862 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
4863 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
4864 Skip static symbols.
4866 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
4868 PR tree-optimization/57200
4869 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
4870 Only call inform if the preceding warning_at returns true.
4872 2013-05-07 Han Shen <shenhan@google.com>
4874 * cfgexpand.c (record_or_union_type_has_array_p): New function.
4875 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
4876 * common.opt (fstack-protector-strong): New option.
4877 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
4878 * doc/invoke.texi (Optimization Options): Document
4879 "-fstack-protector-strong".
4880 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
4882 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
4884 * config/mips/mips.c (mips_machine_reorg2): Return 0.
4886 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
4888 * ira.c (update_equiv_regs): Add insn having equiv memory even if
4889 it is not lhs of the insn.
4890 (setup_reg_equiv): Remove insn having equiv memory which it is not
4892 * lra-constraints.c (process_address): Try to improve generation
4893 code for address base + disp.
4894 (lra_constraints): Make correct the code for checking insn setting
4895 up backward equivalence. Remove insn only if it is in the init
4897 * lra-eliminations.c (update_reg_eliminate): Change return value.
4898 (lra_eliminate): Use the result.
4900 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
4902 * config/i386/sse.md (ssescalarnummask): New mode attribute.
4903 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
4904 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
4905 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
4906 register target operands.
4907 (*vec_extractv8hi_sse2): New pattern.
4908 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
4909 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
4910 (*vec_extract<mode>_mem): New insn and split pattern.
4912 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
4914 * config/arm/arm.c (arm_asan_shadow_offset): New function.
4915 (TARGET_ASAN_SHADOW_OFFSET): Define.
4916 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
4917 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
4919 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4921 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
4922 (incr_vec_index): Return -1 if increment not found.
4923 (create_add_on_incoming_edge): Assert if increment not found.
4924 (record_increment): Limit number of increments recorded.
4925 (all_phi_incrs_profitable): Return false if an increment not found.
4926 (replace_profitable_candidates): Don't process increments that were
4928 (analyze_candidates_and_replace): Limit size of incr_vec.
4930 2013-05-07 Richard Biener <rguenther@suse.de>
4932 * calls.c (special_function_p): setjmp-like functions are leaf.
4933 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
4934 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
4936 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
4938 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
4939 (aarch64_simd_mov<mode>): New expander.
4940 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
4941 (aarch64_simd_mov_to_<mode>high): Likewise.
4942 (aarch64_simd_mov_from_<mode>low): Likewise.
4943 (aarch64_simd_mov_from_<mode>high): Likewise.
4944 (aarch64_dup_lane<mode>): Update.
4945 (aarch64_dup_lanedi): New instruction pattern.
4946 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
4947 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
4949 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4951 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
4952 (replace_mult_candidate): Remove unnecessary argument; remove
4953 unnecessary parameter from call to introduce_cast_before_cand.
4954 (replace_unconditional_candidate): Remove unnecessary parameter
4955 from call to replace_mult_candidate.
4956 (replace_conditional_candidate): Likewise.
4957 (insert_initializers): Use make_temp_ssa_name.
4958 (introduce_cast_before_cand): Remove unnecessary argument; use
4960 (replace_one_candidate): Remove unnecessary argument; remove
4961 unnecessary parameter from calls to introduce_cast_before_cand.
4962 (replace_profitable_candidates): Remove unnecessary parameters
4963 from calls to replace_one_candidate.
4965 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4967 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
4968 phi def as possibly hiding a basis for a CAND_ADD whose operands
4969 have been commuted in the analysis.
4970 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
4972 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4974 * config/aarch64/aarch64.md
4975 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
4976 shift value between 0-4.
4978 2013-05-07 Richard Biener <rguenther@suse.de>
4980 * double-int.h (rshift): New overload.
4981 * double-int.c (rshift): New function.
4982 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
4983 (create_reference_ops_from_ref): Remove.
4984 (vn_reference_insert): Use shared ops for constructing the
4985 reference and copy it.
4987 2013-05-07 Richard Biener <rguenther@suse.de>
4990 * tree-eh.c (sink_clobbers): Properly propagate
4991 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
4993 2013-05-07 Jakub Jelinek <jakub@redhat.com>
4995 PR tree-optimization/57149
4996 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
4997 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
4998 collect_phi_def_edges, execute_late_warn_uninitialized): Use
4999 uninit_undefined_value_p instead of ssa_undefined_value_p.
5002 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
5003 for modifier == EXPAND_INITIALIZER.
5005 2013-05-07 Anton Blanchard <anton@samba.org>
5007 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
5008 for powerpc64 little endian.
5009 * configure: Regenerate.
5011 2013-05-06 Graham Stott <grahams@btinternet.com>
5013 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
5014 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
5015 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
5016 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
5018 2013-05-06 Graham Stott <grahams@btinternet.com>
5020 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
5021 codes which allow non-lvalues.
5023 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
5025 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
5026 components are all 1s.
5027 (integer_minus_onep): New function.
5028 * tree.h (integer_minus_onep): Declare it.
5029 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
5030 integer_minus_onep instead of integer_all_onesp.
5032 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
5035 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
5036 variations of these patterns.
5038 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
5040 * config/i386/i386.md (isa): Add x64_sse4 member.
5041 (enabled): Handle x64_sse4.
5042 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
5043 instruction for 64bit SSE4_1 targets. Update insn attributes.
5044 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
5045 instruction for SSE4_1 targets. Update insn attributes.
5046 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
5047 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
5048 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
5050 (*vec_extractv4si): Rename from *sse4_1_pextrd.
5051 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
5052 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
5054 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
5057 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
5059 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
5061 * final.c (do_assembler_dialects): Don't handle curly braces and
5062 vertical bar escaped by % as dialect delimiters.
5063 (output_asm_insn): Print curly braces and vertical bar if escaped
5064 by % and ASSEMBLER_DIALECT defined.
5065 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
5066 * doc/tm.texi: Regenerated.
5068 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
5070 * config/mips/mips.c: Include tree-pass.h.
5071 (mips_reorg): Split in pre- and post-dbr_schedule parts.
5072 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
5073 (pass_mips_machine_reorg2): New machine specific pass.
5074 (insert_pass_mips_machine_reorg2): New pass plugin definition.
5075 (mips_option_override): Register the new pass.
5076 * rtl.h (cleanup_barriers): Remove prototype.
5077 (dbr_schedule): Likewise.
5078 * jump.c (cleanup_barriers): Make static.
5079 * reorg.c (dbr_schedule): Likewise.
5081 2013-05-06 Richard Biener <rguenther@suse.de>
5083 PR tree-optimization/57185
5084 * tree-parloops.c (add_field_for_reduction): Handle anonymous
5087 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
5090 * config/i386/i386.c (add_parameter_dependencies): Add dependence
5091 between "first_arg" and "insn", not "last" and "insn".
5093 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5095 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
5096 (find_candidates_in_block): Re-enable slsr_process_phi.
5097 (create_phi_basis): Fix double counting of candidate adjustment.
5099 2013-05-06 Richard Biener <rguenther@suse.de>
5102 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
5103 the edge is also fallthru, preserve it and just clear the
5105 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
5106 also complex, preserve that and just clear the fallthru flag.
5107 * tree-inline.c (update_ssa_across_abnormal_edges): Also
5108 update virtual operands.
5110 2013-05-06 Alan Modra <amodra@gmail.com>
5112 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
5113 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
5114 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
5115 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
5116 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
5117 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
5119 2013-05-06 Alan Modra <amodra@gmail.com>
5121 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
5122 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
5123 (DEFAULT_ASM_ENDIAN): Define.
5124 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
5125 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
5126 Update -K PIC clause from sysv4.h.
5127 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
5128 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
5130 2013-05-06 Alan Modra <amodra@gmail.com>
5132 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
5133 twice for little-endian.
5134 (ashrdi3_no_power, ashrdi3): Support little-endian.
5136 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
5139 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
5140 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
5142 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
5143 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
5144 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
5147 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
5148 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5150 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
5151 * config/pa/pa.opt: Make mbig-switch a no-op.
5152 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
5153 (CASE_VECTOR_MODE): Always return SImode.
5154 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
5155 for the !TARGET_BIG_SWITCH case.
5156 * config/pa/pa-linux.h: Likewise.
5157 * config/pa/pa-openbsd.h: Likewise.
5158 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
5159 * config/pa/pa.md (short_jump): Remove define_insn.
5160 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
5161 (casesi0): Remove define_insn.
5162 (type): Remove btable_branch.
5163 (pa_combine_type): Likewise.
5164 (in_nullified_branch_delay): Likewise.
5165 (in_call_delay): Likewise.
5166 (define_delay): Likewise.
5167 (define_insn_reservation "Z3"): Likewise.
5168 (define_insn_reservation "Z4"): Likewise.
5169 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
5170 (pa_adjust_insn_length): Remove adjustment for btable branches.
5171 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
5174 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
5176 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
5177 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
5178 Add m->r,x alternatives.
5179 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
5180 splitters using SWI48x mode iterator.
5181 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
5182 TARGET_64BIT. Add m->x alternative.
5183 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
5184 Add o->x alternative. Enable for TARGET_SSE.
5185 (sse_storeq): Remove expander.
5186 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
5187 with memory input operand.
5188 (*vec_extractv2di_1 splitter): New.
5189 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
5190 * config/i386/i386.md (ssevecmodelower): New mode attribute.
5192 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
5194 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
5195 (INT_LOWPART): Delete.
5196 (extract_MB): Adjust.
5197 (extract_ME): Adjust.
5198 (print_operand): Adjust.
5200 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
5202 * config/rs6000/predicates.md (reg_or_add_cint_operand,
5203 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
5204 (reg_or_logical_cint_operand, easy_fp_constant,
5205 logical_const_operand): Delete "CONST_DOUBLE" case.
5206 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
5207 "HOST_BITS_PER_WIDE_INT == 64" test.
5208 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
5209 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
5210 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
5211 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
5213 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
5214 CONST_DOUBLE DImode/VOIDmode case.
5215 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
5216 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
5217 CONST_DOUBLE VOIDmode case.
5218 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
5219 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
5220 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
5221 Delete CONST_DOUBLE case.
5222 (splitters for mov FMOVE64 const_double): Delete
5223 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
5224 "HOST_BITS_PER_WIDE_INT >= 64" test.
5225 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
5227 (mov DI const_double): Delete.
5229 2013-05-04 Jakub Jelinek <jakub@redhat.com>
5231 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
5232 on op shows all bits zero in mode of a lowpart subreg, return zero.
5234 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
5237 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
5238 to save TFmode registers and DImode to save TImode registers for
5239 caller save operations.
5240 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
5241 mark being partially clobbered since they only use the first
5244 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
5245 and TDmode only use the upper 64-bits of each VSX register.
5247 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5249 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
5250 (find_candidates_in_block): Disable slsr_process_phi.
5252 2013-05-03 Guozhi Wei <carrot@google.com>
5254 * coverage.c (coverage_obj_init): Move the construction of gcov
5256 (build_init_ctor): ... here.
5258 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5260 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
5261 (slsr_cand_d): Redefine def_phi.
5262 (stride_status, phi_adjust_status, count_phis_status): New enums.
5263 (find_phi_def): New.
5264 (find_basis_for_base_expr): New.
5265 (find_basis_for_candidate): Handle hidden bases.
5266 (alloc_cand_and_find_basis): Handle phi candidates.
5267 (slsr_process_phi): New.
5268 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
5269 (create_mul_imm_cand): Likewise.
5270 (create_add_ssa_cand): Exclude phi base candidates.
5271 (create_add_imm_cand): Likewise.
5272 (slsr_process_cast): Likewise.
5273 (slsr_process_copy): Likewise.
5274 (find_candidates_in_block): Handle phi candidates.
5275 (dump_candidate): Likewise.
5276 (unconditional_cands): Delete.
5277 (unconditional_cands_with_known_stride_p): Delete.
5278 (phi_dependent_cand_p): New.
5279 (cand_increment): Handle phi-dependent candidates.
5280 (replace_dependent): Delete.
5281 (replace_mult_candidate): New.
5282 (replace_unconditional_candidate): New.
5283 (incr_vec_index): Move to avoid forward reference.
5284 (create_add_on_incoming_edge): New.
5285 (create_phi_basis): New.
5286 (replace_dependents): Delete.
5287 (replace_conditional_candidate): New.
5288 (phi_add_costs): New.
5289 (replace_uncond_cands_and_profitable_phis): New.
5290 (record_increment): Handle phi adjustments.
5291 (record_phi_increments): New.
5292 (record_increments): Handle phi adjustments.
5293 (phi_incr_cost): New.
5294 (lowest_cost_path): Handle phis.
5295 (total_savings): Likewise.
5296 (analyze_increments): Likewise.
5297 (ncd_with_phi): New.
5298 (ncd_of_cand_and_phis): New.
5299 (nearest_common_dominator_for_cands): Handle phi increments.
5300 (all_phi_incrs_profitable): New.
5301 (replace_profitable_candidates): Handle phi-dependent candidates.
5302 (analyze_candidates_and_replace): Likewise.
5304 2013-05-03 Teresa Johnson <tejohnson@google.com>
5307 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
5308 do not exceed REG_BR_PROB_BASE.
5310 2013-05-03 Jeff Law <law@redhat.com>
5312 PR tree-optimization/57144
5313 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
5314 operand of the condition will bit into the new type when eliminating
5315 a cast feeding a condition.
5317 2013-05-03 Jakub Jelinek <jakub@redhat.com>
5319 PR rtl-optimization/57130
5320 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
5321 of COMPARE as in_code to the recursive call if needed.
5323 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
5325 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
5326 (enabled): Handle new members.
5327 * config/i386/sse.md (*vec_concatv2si): Merge from
5328 *vec_concatv2si_sse2 and vec_concatv2si_sse.
5329 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
5331 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
5333 PR tree-optimization/57027
5334 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
5335 for fnms opportunity, check we got the prerequisite kind
5336 of tree / gimple before using accessor functions.
5338 2013-05-03 Richard Biener <rguenther@suse.de>
5340 * double-int.h (lshift): New overload without precision
5342 (operator *=, operator +=, operator -=): Move ...
5343 * double-int.c (operator *=, operator +=, operator -=): ... here
5344 and implement more efficiently.
5345 (mul_double_with_sign): Remove.
5346 (lshift_double): Adjust to take unsinged shift argument, push
5347 dispatching code to callers.
5348 (mul_double_wide_with_sign): Add early out for callers that
5349 are not interested in high parts or overflow.
5350 (lshift): New function.
5351 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
5353 (lrotate, rrotate): Use logical shifts.
5354 * expr.c (get_inner_reference): Use lshift.
5355 * fixed-value.c (do_fixed_divide): Likewise.
5356 * tree-dfa.c (get_ref_base_and_extent): Likewise.
5357 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
5358 (indirect_refs_may_alias_p): Likewise.
5359 (stmt_kills_ref_p_1): Likewise.
5361 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
5363 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
5365 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
5367 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
5368 scalar form of FABD instruction.
5370 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
5372 * lra-constraints.c (process_alt_operands): Add checking alt
5373 number to choose the best alternative.
5375 2013-05-02 Richard Biener <rguenther@suse.de>
5377 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
5378 bitmap and its handling.
5379 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
5381 2013-05-02 Richard Biener <rguenther@suse.de>
5384 * tree-inline.c (copy_loops): Properly handle removed loops.
5385 (copy_cfg_body): Mark destination loops for fixup if source
5388 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
5391 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
5392 generating simple_return for naked functions.
5394 2013-05-02 Martin Jambor <mjambor@suse.cz>
5397 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
5398 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
5400 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
5401 ipa_agg_replacement_value structures.
5402 (known_aggs_to_agg_replacement_list): Likewise.
5403 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
5404 (read_agg_replacement_chain): Likewise.
5405 (ipcp_transform_function): Also check that by_ref flags match.
5407 2013-05-02 Richard Biener <rguenther@suse.de>
5409 * graphds.h (struct graph): Add obstack member.
5410 * graphds.c (new_graph): Initialize obstack and allocate
5412 (add_edge): Allocate edge from the obstack.
5413 (free_graph): Free the obstack instead of all edges and vertices.
5415 2013-05-02 Teresa Johnson <tejohnson@google.com>
5417 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
5419 * cfg.c (update_bb_profile_for_threading): Ditto.
5420 * tree-inline.c (copy_bb): Ditto.
5421 (copy_edges_for_bb): Ditto.
5422 (initialize_cfun): Ditto.
5423 (copy_cfg_body): Ditto.
5424 (expand_call_inline): Ditto.
5425 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
5426 (estimate_node_size_and_time): Ditto.
5427 (inline_merge_summary): Ditto.
5428 * cgraphclones.c (cgraph_clone_edge): Ditto.
5429 (cgraph_clone_node): Ditto.
5430 * sched-rgn.c (compute_dom_prob_ps): Ditto.
5431 (compute_trg_info): Ditto.
5433 2013-05-02 Ian Bolton <ian.bolton@arm.com>
5435 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
5436 S reg when fp attribute set.
5437 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
5439 2013-05-02 Ian Bolton <ian.bolton@arm.com>
5441 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
5443 (*and_one_cmplsi3_compare0_uxtw): Likewise.
5444 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
5445 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
5447 2013-05-02 Richard Biener <rguenther@suse.de>
5449 * tree-scalar-evolution.c (scev_info_hasher): Remove.
5450 (struct instantiate_cache_entry): New type.
5451 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
5452 (struct instantiate_cache_type): New type.
5453 (set_instantiated_value, get_instantiated_value): Remove.
5454 (get_instantiated_value_entry): New function.
5455 (instantiate_scev_name): Use the new cache and adjust.
5456 (instantiate_scev_poly): Adjust.
5457 (instantiate_scev_binary): Likewise.
5458 (instantiate_array_ref): Likewise.
5459 (instantiate_scev_convert): Likewise.
5460 (instantiate_scev_not): Likewise.
5461 (instantiate_scev_3): Likewise.
5462 (instantiate_scev_2): Likewise.
5463 (instantiate_scev_r): Likewise.
5464 (instantiate_scev): Likewise.
5465 (resolve_mixers): Likewise.
5467 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
5470 * lra-constraints.c (best_small_class_operands_num): Remove.
5471 (process_alt_operands): Remove small_class_operands_num. Take
5472 small classes operands into losers and only if the operand is not
5473 matched. Modify debugging output.
5474 (curr_insn_transform): Remove best_small_class_operands_num.
5477 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5479 * config/aarch64/aarch64-builtins.c
5480 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
5481 * config/aarch64/aarch64-simd-builtins.def
5482 (reduc_splus_): Add new modes.
5483 (reduc_uplus_): New.
5484 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
5485 (reduc_uplus_v4sf): Likewise.
5486 (reduc_splus_v4sf): Likewise.
5487 (aarch64_addv<mode>): Likewise.
5488 (reduc_uplus_<mode>): Likewise.
5489 (reduc_splus_<mode>): Likewise.
5490 (aarch64_addvv2di): Likewise.
5491 (reduc_uplus_v2di): Likewise.
5492 (reduc_splus_v2di): Likewise.
5493 (aarch64_addvv2si): Likewise.
5494 (reduc_uplus_v2si): Likewise.
5495 (reduc_splus_v2si): Likewise.
5496 (reduc_<sur>plus_<mode>): New.
5497 (reduc_<sur>plus_v2di): Likewise.
5498 (reduc_<sur>plus_v2si): Likewise.
5499 (reduc_<sur>plus_v4sf): Likewise.
5500 (aarch64_addpv4sf): Likewise.
5501 * config/aarch64/arm_neon.h
5502 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
5503 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
5504 add UNSPEC_SADDV, UNSPEC_UADDV.
5506 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
5508 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5510 * config/aarch64/arm_neon.h
5511 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
5513 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5515 * config/aarch64/aarch64-builtins
5516 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
5518 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5520 * config/aarch64/aarch64-simd-builtins.def
5522 (reduc_smin_): Likewise.
5523 (reduc_umax_): Likewise.
5524 (reduc_umin_): Likewise.
5525 (reduc_smax_nan_): Likewise.
5526 (reduc_smin_nan_): Likewise.
5529 (smax): Update for V2SF, V4SF and V2DF modes.
5532 (smin_nan): Likewise.
5533 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
5534 (<su><maxmin><mode>3): ...This, refactor.
5535 (s<maxmin><mode>3): New.
5536 (<maxmin_uns><mode>3): Likewise.
5537 (reduc_<maxmin_uns>_<mode>): Refactor.
5538 (reduc_<maxmin_uns>_v4sf): Likewise.
5539 (reduc_<maxmin_uns>_v2si): Likewise.
5540 (aarch64_<fmaxmin><mode>: Remove.
5541 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
5543 (vmin<q>_f<32,64>): Likewise.
5544 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
5546 (su): Add mappings for smax, smin, umax, umin.
5548 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
5549 (FMAXMIN): Rename as...
5550 (FMAXMIN_UNS): ...This.
5552 (fmaxminv): Likewise.
5553 (fmaxmin): Likewise.
5555 (maxmin_uns_op): Likewise.
5557 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5559 * config/aarch64/arm_neon.h
5560 (vac<ge, gt><sd>_f<32, 64>): Rename to...
5561 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
5562 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
5564 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5566 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
5567 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
5569 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5571 * config/aarch64/aarch64-simd.md
5572 (vcond<mode>_internal): Handle special cases for constant masks.
5573 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
5574 (vcondu<mode><mode>): Likewise.
5575 (vcond<v_cmp_result><mode>): New.
5577 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5579 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
5580 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
5581 * config/aarch64/aarch64-simd-builtins.def
5582 (cmeq): Update to BUILTIN_VALLDI.
5587 * config/aarch64/arm_neon.h
5588 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
5589 to builtins or C as appropriate.
5591 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5593 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
5595 (cmhi): Rename to...
5597 * config/aarch64/aarch64-simd.md
5598 (simd_mode): Add SF.
5599 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
5600 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
5601 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
5602 (cstore<mode>_neg): ...This.
5603 * config/aarch64/iterators.md
5605 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
5607 (UCOMPARISONS): Likewise.
5608 (optab): Add missing comparisons.
5616 (V_cmp_result): Add DF, SF modes.
5617 (v_cmp_result): Likewise.
5620 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
5622 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
5624 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
5625 define_insn to define_insn_and_split.
5626 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
5627 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
5628 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
5629 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
5630 (thumb2_negscc): Likewise.
5632 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
5634 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
5636 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
5638 * config/arm/thumb2.md: Remove trailing whitespaces.
5640 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
5642 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
5643 Use gen_int_mode rather than GEN_INT.
5645 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
5647 * value-prof.c (stream_in_histogram_value): Remove the strayed
5650 2013-04-30 Richard Biener <rguenther@suse.de>
5653 * cfghooks.c (split_edge): Properly check for the loop latch edge.
5655 2013-04-30 Richard Biener <rguenther@suse.de>
5658 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
5660 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
5662 PR rtl-optimization/56957
5663 PR rtl-optimization/57105
5664 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
5665 variable. Use just INSN_UID for determining whether an insn
5666 should be only disconnected from the insn stream.
5667 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
5669 2013-04-30 Jakub Jelinek <jakub@redhat.com>
5671 PR tree-optimization/57104
5672 * tsan.c (instrument_expr): Don't instrument accesses to
5673 DECL_HARD_REGISTER VAR_DECLs.
5675 2013-04-30 Richard Biener <rguenther@suse.de>
5677 * function.h (loops_for_fn): New inline function.
5678 (set_loops_for_fn): Likewise.
5679 * cfgloop.h (place_new_loop): Add struct function parameter.
5680 (get_loop): Likewise.
5681 (get_loops): Likewise.
5682 (number_of_loops): Likewise.
5684 (fel_init): Likewise.
5685 * cfg.c (get_loop_copy): Adjust.
5686 * cfgloop.c (flow_loops_dump): Likewise.
5687 (record_loop_exits): Likewise.
5688 (verify_loop_structure): Likewise.
5689 * cfgloopanal.c (mark_irreducible_loops): Likewise.
5690 (estimate_reg_pressure_cost): Likewise.
5691 (mark_loop_exit_edges): Likewise.
5692 * cfgloopmanip.c (place_new_loop): Likewise.
5693 (add_loop): Likewise.
5694 (duplicate_loop): Likewise.
5695 * graph.c (draw_cfg_nodes): Likewise.
5696 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
5697 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
5698 (extract_affine_chrec): Likewise.
5699 (build_scop_iteration_domain): Likewise.
5700 * graphite.c (graphite_initialize): Likewise.
5701 * ira-build.c (create_loop_tree_nodes): Likewise.
5702 (more_one_region_p): Likewise.
5703 (rebuild_regno_allocno_maps): Likewise.
5704 (mark_loops_for_removal): Likewise.
5705 (mark_all_loops_for_removal): Likewise.
5706 (remove_unnecessary_regions): Likewise.
5707 (ira_build): Likewise.
5708 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
5709 * loop-init.c (fix_loop_structure): Likewise.
5710 (gate_rtl_move_loop_invariants): Likewise.
5711 (gate_rtl_unswitch): Likewise.
5712 (gate_rtl_unroll_and_peel_loops): Likewise.
5713 (rtl_doloop): Likewise.
5714 * lto-streamer-in.c (input_cfg): Likewise.
5715 * lto-streamer-out.c (output_cfg): Likewise.
5716 * modulo-sched.c (sms_schedule): Likewise.
5717 * predict.c (tree_estimate_probability): Likewise.
5718 (tree_estimate_probability_driver): Likewise.
5719 (estimate_loops): Likewise.
5720 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
5721 (move_sese_region_to_fn): Likewise.
5722 (debug_loop_num): Likewise.
5723 * tree-chrec.c (chrec_evaluate): Likewise.
5724 (hide_evolution_in_other_loops_than_loop): Likewise.
5725 (chrec_component_in_loop_num): Likewise.
5726 (reset_evolution_in_loop): Likewise.
5727 (evolution_function_is_invariant_rec_p): Likewise.
5728 * tree-if-conv.c (main_tree_if_conversion): Likewise.
5729 * tree-inline.c (copy_loops): Likewise.
5730 (copy_cfg_body): Likewise.
5731 (tree_function_versioning): Likewise.
5732 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
5733 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
5735 (add_to_evolution_1): Likewise.
5736 (scev_const_prop): Likewise.
5737 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
5738 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
5739 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
5740 (tree_ssa_lim_initialize): Likewise.
5741 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
5742 (verify_loop_closed_ssa): Likewise.
5743 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
5744 (tree_ssa_loop_im): Likewise.
5745 (tree_ssa_loop_unswitch): Likewise.
5746 (tree_vectorize): Likewise.
5747 (check_data_deps): Likewise.
5748 (tree_ssa_loop_ivcanon): Likewise.
5749 (tree_ssa_loop_bounds): Likewise.
5750 (tree_complete_unroll): Likewise.
5751 (tree_complete_unroll_inner): Likewise.
5752 (tree_parallelize_loops): Likewise.
5753 (tree_ssa_loop_prefetch): Likewise.
5754 (tree_ssa_loop_ivopts): Likewise.
5755 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
5756 * tree-vectorizer.c (vectorize_loops): Likewise.
5758 2013-04-29 Mike Frysinger <vapier@gentoo.org>
5760 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
5761 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
5762 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
5763 with EABI_LINK_SPEC.
5765 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
5768 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
5771 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
5774 * lra-constraints.c (process_alt_operands): Discourage a bit more
5775 using memory for pseudos. Print cost dump for alternatives.
5776 Modify cost values for conflicts with early clobbers.
5777 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
5779 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
5782 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
5784 2013-04-29 Ian Bolton <ian.bolton@arm.com>
5786 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
5788 (movdi_aarch64): Support LDR/STR from/to D register.
5790 2013-04-29 Ian Bolton <ian.bolton@arm.com>
5792 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
5793 or higher by default.
5795 2013-04-29 Richard Biener <rguenther@suse.de>
5798 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
5799 even if not adding abnormal edges for calls that can make
5802 2013-04-29 Richard Biener <rguenther@suse.de>
5805 * tree-cfg.c (move_stmt_op): Fix condition under which to update
5807 (move_stmt_r): Remove redundant checking.
5809 2013-04-29 Teresa Johnson <tejohnson@google.com>
5812 * basic-block.h (apply_scale): New function.
5813 (apply_probability): Use apply_scale.
5814 * gimple-streamer-in.c (input_bb): Ditto.
5815 * lto-streamer-in.c (input_cfg): Ditto.
5816 * lto-cgraph.c (merge_profile_summaries): Ditto.
5817 * tree-optimize.c (execute_fixup_cfg): Ditto.
5818 * tree-inline.c (copy_bb): Update comment to use apply_scale.
5819 (copy_edges_for_bb): Ditto.
5820 (copy_cfg_body): Ditto.
5822 2013-04-29 Tom de Vries <tom@codesourcery.com>
5824 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
5825 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
5826 (tail_merge_optimize): Handle current_loops == NULL.
5828 2013-04-26 Jeff Law <law@redhat.com>
5830 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
5831 (simplify_cond_using_ranges): Generalize code to simplify
5832 COND_EXPRs where one argument is a constant and the other
5833 is an SSA_NAME created by an integral type conversion.
5835 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5837 * config/arm/arm.md (store_minmaxsi): Use only when
5838 optimize_insn_for_size_p.
5840 2013-04-29 Christian Bruel <christian.bruel@st.com>
5843 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
5845 2013-04-29 Richard Biener <rguenther@suse.de>
5848 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
5849 loop tree make sure to schedule a fixup for the child as well.
5850 (expand_omp_for_generic): Properly add loops.
5851 (expand_omp_for_static_nochunk): Likewise.
5852 (expand_omp_for_static_chunk): Likewise.
5853 (expand_omp_for): For the degenerate case fixup loops.
5854 (expand_omp_sections): Fix default bb placement in loops.
5855 (expand_omp_atomic_pipeline): Properly add loops.
5857 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5859 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
5861 2013-04-29 Tom de Vries <tom@codesourcery.com>
5863 * tree-ssa-tail-merge.c: Update header comment.
5865 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5867 * config/aarch64/arm_neon.h
5868 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
5869 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
5870 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
5871 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
5872 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
5873 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
5874 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
5875 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
5877 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5879 * config/aarch64/aarch64-simd.md
5880 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
5881 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
5882 fix_trunc, fixuns_trunc.
5883 (ftrunc<VDQF:mode>2): New.
5884 * config/aarch64/iterators.md (optab): Add fix, fixuns.
5885 (fix_trunc_optab): New.
5887 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5889 * config/aarch64/aarch64-builtins.c
5890 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
5891 iceilf, lround, iroundf.
5893 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
5896 * config/i386/i386.h (enum ix86_tune_indices)
5897 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
5898 New, split from X86_TUNE_INTER_UNIT_MOVES.
5899 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
5900 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
5901 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
5902 (TARGET_INTER_UNIT_MOVES): Remove.
5903 * config/i386/i386.c (initial_ix86_tune_features): Update.
5904 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
5905 (ix86_expand_convert_uns_didf_sse): Use
5906 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
5907 (ix86_expand_vector_init_one_nonzero): Ditto.
5908 (ix86_expand_vector_init_interleave): Ditto.
5909 (inline_secondary_memory_needed): Return true for moves from SSE class
5910 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
5911 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
5912 * config/i386/constraints.md (Yi, Ym): Depend on
5913 TARGET_INTER_UNIT_MOVES_TO_VEC.
5914 (Yj, Yn): New constraints.
5915 * config/i386/i386.md (*movdi_internal): Change constraints of
5916 operand 1 from Yi to Yj and from Ym to Yn.
5917 (*movsi_internal): Ditto.
5918 (*movdf_internal): Ditto.
5919 (*movsf_internal): Ditto.
5920 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
5921 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
5922 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
5923 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
5924 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
5925 * config/i386/sse.md (movdi_to_sse): Ditto.
5926 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
5927 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
5928 TARGET_INTER_UNIT_MOVES.
5929 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
5930 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
5931 instead of TARGET_INTER_UNIT_MOVES.
5932 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
5933 operand 1 from Yi to Yj and from Ym to Yn.
5935 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5937 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
5938 (float_truncate_hi_): Likewise.
5939 (float_extend_lo_): Likewise.
5940 (float_truncate_lo_): Likewise.
5941 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
5942 (aarch64_float_extend_lo_v2df): Likewise.
5943 (vec_unpacks_hi_v4sf): Likewise.
5944 (aarch64_float_truncate_lo_v2sf): Likewise.
5945 (aarch64_float_truncate_hi_v4sf): Likewise.
5946 (vec_pack_trunc_v2df): Likewise.
5947 (vec_pack_trunc_df): Likewise.
5949 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5951 * config/aarch64/aarch64-builtins.c
5952 (aarch64_fold_builtin): Fold float conversions.
5953 * config/aarch64/aarch64-simd-builtins.def
5954 (floatv2si, floatv4si, floatv2di): New.
5955 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
5956 * config/aarch64/aarch64-simd.md
5957 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
5958 * config/aarch64/iterators.md (FLOATUORS): New.
5959 (optab): Add float, floatuns.
5960 (su_optab): Likewise.
5962 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5964 * config/aarch64/aarch64-builtins.c
5965 (aarch64_builtin_vectorized_function): Use new names for
5967 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
5968 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
5969 (fcvtzu): Split as...
5970 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
5971 (fcvtas): Split as...
5972 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
5973 (fcvtau): Split as...
5974 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
5975 (fcvtps): Split as...
5976 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
5977 (fcvtpu): Split as...
5978 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
5979 (fcvtms): Split as...
5980 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
5981 (fcvtmu): Split as...
5982 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
5983 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
5984 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
5985 (lfrintnusf, lfrintnudf): Likewise.
5986 * config/aarch64/aarch64-simd.md
5987 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
5989 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
5990 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
5991 (fcvt_pattern): Likewise.
5993 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5995 * config/aarch64/aarch64-simd.md
5996 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
5997 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
5999 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6001 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
6002 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
6003 (vrnd<a,m,n,p>_f32): Implement using builtins.
6004 (vrnd<i,x><q>_f<32, 64>): New.
6006 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6008 * config/aarch64/aarch64-builtins.c
6009 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
6010 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
6011 (frintz): Rename to...
6013 (frintp): Rename to...
6015 (frintm): Rename to...
6017 (frinti): Rename to...
6018 (nearbyint): ...this.
6019 (frintx): Rename to...
6021 (frinta): Rename to...
6023 * config/aarch64/aarch64-simd.md
6024 (aarch64_frint<frint_suffix><mode>): Delete.
6025 (<frint_pattern><mode>2): Convert to insn.
6026 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
6027 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
6028 (frint_pattern): Likewise.
6029 (frint_suffix): Likewise.
6031 2013-04-29 Richard Biener <rguenther@suse.de>
6033 PR tree-optimization/57081
6034 * loop-init.c: Include tree-flow.h.
6035 (loop_optimizer_finalize): Free number of iteration estimates.
6036 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
6038 2013-04-29 Jakub Jelinek <jakub@redhat.com>
6040 PR tree-optimization/57083
6041 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
6042 non-singleton shift count range, zero extend low_bound for uns case.
6044 * config/i386/predicates.md (general_vector_operand): New predicate.
6045 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
6046 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
6047 if they aren't nonimmediate operands. If their original values
6048 satisfy const_vector_equal_evenodd_p, don't shift them.
6049 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
6050 predicates. For the SSE4.1 case force operands[{1,2}] into registers
6051 if not nonimmediate_operand.
6052 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
6053 instead of register_operand.
6054 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
6056 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
6058 * stor-layout.c (finalize_size_functions): Allocate a structure and
6059 reset cfun before dumping the functions.
6061 2013-04-27 Jakub Jelinek <jakub@redhat.com>
6063 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
6066 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
6067 use xop_pmacsdqh if uns_p.
6068 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
6069 the immediate rotate count.
6071 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
6073 * rtl.h (struct rtx_def): Add comment for field jump.
6074 (LRA_SUBREG_P): New macro.
6075 * recog.c (register_operand): Check LRA_SUBREG_P.
6076 * lra.c (lra): Add note at the end of RTL code. Align non-empty
6078 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
6079 (lra_final_code_change): Skip subreg change for operators.
6080 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
6081 if there are no operand changes.
6082 * lra-constraints.c (curr_insn_set): New.
6083 (match_reload): Set LRA_SUBREG_P.
6084 (emit_spill_move): Ditto.
6085 (check_and_process_move): Use curr_insn_set. Process only single
6086 set insns. Don't initialize sec_mem_p and change_p.
6087 (simplify_operand_subreg): Use LRA_SUBREG_P.
6088 (reg_in_class_p): New function.
6089 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
6090 of #ifdef. Add code to remove cycling.
6091 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
6092 non-null disp. Reload inner instead of disp when base and index
6093 are null. Try to put lo_sum into register.
6094 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
6095 (check_and_process_move): Move code for move cost check to
6096 simple_move_p. Remove equiv_substitution.
6097 (simple_move_p): New function.
6098 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
6099 curr_insn_set. Call check_and_process_move only for single set
6100 insns. Use the new function. Move call of check_and_process_move
6101 after operand equiv substitution and address process.
6103 2013-04-26 Jakub Jelinek <jakub@redhat.com>
6106 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
6107 with nonlocal goto receivers or returns twice calls, ignore
6108 unininitialized values from abnormal edges to nl goto receiver
6109 or returns twice call.
6111 2013-04-26 Jakub Jelinek <jakub@redhat.com>
6113 PR tree-optimization/57051
6114 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
6115 and VEC_RSHIFT_EXPR if shift count is a multiple of element
6118 2013-04-26 Richard Biener <rguenther@suse.de>
6120 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
6121 (expand_omp_taskreg): Likewise. Mark loops for fixup.
6122 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
6123 (fixup_loop_arrays_after_move): New function.
6124 (move_sese_region_to_fn): Properly outline the loop tree parts
6127 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
6129 * config/i386/i386.md (type, unit): Fix long lines.
6131 2013-04-26 Richard Biener <rguenther@suse.de>
6133 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
6134 (lto-streamer-out.o): Likewise.
6135 * cfgloop.c (init_loops_structure): Export, add struct function
6136 argument and adjust.
6137 (flow_loops_find): Adjust.
6138 * cfgloop.h (enum loop_estimation): Add EST_LAST.
6139 (init_loops_structure): Declare.
6140 * lto-streamer-in.c: Include cfgloop.h.
6141 (input_cfg): Input the loop tree.
6142 * lto-streamer-out.c: Include cfgloop.h.
6143 (output_cfg): Output the loop tree.
6144 (output_struct_function_base): Do not drop PROP_loops.
6146 2013-03-26 Richard Biener <rguenther@suse.de>
6148 * tree-cfg.c (execute_build_cfg): Build the loop tree.
6149 (pass_build_cfg): Provide PROP_loops.
6150 (move_sese_region_to_fn): Remove loops that are outlined into fn
6152 * tree-inline.c: Include cfgloop.h.
6153 (initialize_cfun): Do not drop PROP_loops.
6154 (copy_loops): New function.
6155 (copy_cfg_body): Copy loop structure.
6156 (tree_function_versioning): Initialize destination loop tree.
6157 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
6158 (pass_parallelize_loops): Do IL verification.
6159 * loop-init.c (loop_optimizer_init): Fixup loops if required.
6160 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
6161 the CFG make sure we fixup loops as well.
6162 * tree-ssa-tail-merge.c: Include cfgloop.h.
6163 (replace_block_by): When merging loop latches mark loops for fixup.
6164 * lto-streamer-out.c (output_struct_function_base): Drop
6166 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
6167 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
6168 * ipa-split.c: Include cfgloop.h.
6169 (split_function): Add the new return block to the loop tree root.
6170 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
6171 whether we have removed the forwarder block.
6172 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
6173 * cfgloop.h (place_new_loop): Declare.
6174 * cfgloopmanip.c (place_new_loop): Export.
6175 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
6176 (tree-switch-conversion.o): Likewise.
6177 (tree-complex.o): Likewise.
6178 (tree-inline.o): Likewise.
6179 (tree-ssa-tailmerge.o): Likewise.
6180 (ipa-split.o): Likewise.
6181 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
6182 (tree-ssa-copy.o): Likewise.
6183 * tree-switch-conversion.c: Include cfgloop.h
6184 (process_switch): If we emit a bit-test cascade, schedule loops
6186 * tree-complex.c: Include cfgloop.h.
6187 (expand_complex_div_wide): Properly add new basic-blocks to loops.
6188 * asan.c: Include cfgloop.h.
6189 (create_cond_insert_point): Properly add new basic-blocks to
6190 loops, schedule loop fixup.
6191 * cfgloop.c (verify_loop_structure): Check that looks are not
6193 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
6195 (expand_omp_for_generic): Likewise.
6196 (expand_omp_sections): Likewise.
6197 (expand_omp_atomic_pipeline): Schedule loops for fixup.
6198 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
6199 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
6200 is initialized, not when loops are present.
6201 * tree-parloops.c (parallelize_loops): Remove checking here.
6202 * passes.c (init_optimization_passes): Schedule a copy-propagation
6203 pass before complete unrolling of inner loops.
6205 2013-04-26 Jakub Jelinek <jakub@redhat.com>
6207 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
6208 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
6209 (colorize_init): Add argument to _WIN32 version.
6210 * toplev.c: Include diagnostic-color.h.
6211 (process_options): Default to -fdiagnostics-color=auto if
6212 GCC_COLORS env var is in the environment.
6213 * common.opt (fdiagnostics-color=): Add Var and Init.
6214 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
6215 env var is in the environment, the default is auto rather than never.
6217 * diagnostic.h (file_name_as_prefix): Add context argument.
6218 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
6219 the string as locus.
6220 * langhooks.c (lhd_print_error_function): Adjust caller.
6222 2013-04-25 Lawrence Crowl <crowl@google.com>
6224 * var-tracking.c (shared_hash_def::htab):
6225 Change type to hash_table. Update dependent calls and types.
6227 2013-04-25 Lawrence Crowl <crowl@google.com>
6229 * Makefile.in: Update as needed below.
6231 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
6232 Move declaration to after the type's method definitons.
6234 * attribs.c (htab_t scoped_attributes::attribute_hash):
6235 Change type to hash_table. Update dependent calls and types.
6237 * bitmap.c (htab_t bitmap_desc_hash):
6238 Change type to hash_table. Update dependent calls and types.
6240 * cselib.c (htab_t cselib_hash_table):
6241 Change type to hash_table. Update dependent calls and types.
6243 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
6244 (hash_string_slot_node): Move implementation into lto-streamer.h
6245 struct string_slot_hasher.
6246 (eq_string_slot_node): Likewise.
6248 * data-streamer-out.c: Update output_block::string_hash_table
6249 dependent calls and types.
6251 * dwarf2cfi.c (htab_t trace_index):
6252 Change type to hash_table. Update dependent calls and types.
6254 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
6255 Change type to hash_table. Update dependent calls and types.
6256 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
6257 (htab_t optimize_external_refs::map): Likewise.
6258 (htab_t output_comp_unit::extern_map): Likewise.
6259 (htab_t output_comdat_type_unit::extern_map): Likewise.
6260 (htab_t output_macinfo::macinfo_htab): Likewise.
6261 (htab_t optimize_location_lists::htab): Likewise.
6262 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
6264 * except.c (htab_t ehspec_hash_type):
6265 Change type to hash_table. Update dependent calls and types.
6266 (assign_filter_values::ttypes): Likewise.
6267 (assign_filter_values::ehspec): Likewise.
6268 (sjlj_assign_call_site_values::ar_hash): Likewise.
6269 (convert_to_eh_region_ranges::ar_hash): Likewise.
6271 * gcse.c (htab_t pre_ldst_table):
6272 Change type to hash_table. Update dependent calls and types.
6274 * ggc-common.c (htab_t saving_htab):
6275 Change type to hash_table. Update dependent calls and types.
6276 (htab_t loc_hash): Likewise.
6277 (htab_t ptr_hash): Likewise.
6278 (call_count): Rename ggc_call_count.
6279 (call_alloc): Rename ggc_call_alloc.
6280 (loc_descriptor): Rename make_loc_descriptor.
6281 (add_statistics): Rename ggc_add_statistics.
6283 * ggc-common.c (saving_htab):
6284 Change type to hash_table. Update dependent calls and types.
6286 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
6287 (push_gimplify_context): Likewise.
6288 (pop_gimplify_context): Likewise.
6289 (struct gimple_temp_hash_elt): Added.
6290 (struct gimplify_hasher): Likewise.
6291 (struct gimplify_ctx.temp_htab):
6292 Change type to hash_table. Update dependent calls and types.
6294 * gimple-fold.c: Include gimplify-ctx.h.
6296 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
6297 Change type to hash_table. Update dependent calls and types.
6298 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
6299 avoid potential global name collision.
6301 * gimplify.c: Include gimplify-ctx.h.
6302 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
6303 (htab_t gimplify_ctx::temp_htab):
6304 Update dependent calls and types for new type hash_table.
6305 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
6306 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
6308 * gimplify-ctx.h: New.
6309 (struct gimple_temp_hash_elt): Move from gimplify.c.
6310 (class gimplify_hasher): New.
6311 (struct gimplify_ctx): Move from gimple.h.
6312 (htab_t gimplify_ctx::temp_htab):
6313 Change type to hash_table. Update dependent calls and types.
6315 * graphite-clast-to-gimple.c: Include graphite-htab.h.
6316 (htab_t ivs_params::newivs_index):
6317 Change type to hash_table. Update dependent calls and types.
6318 (htab_t ivs_params::params_index): Likewise.
6319 (htab_t print_generated_program::params_index): Likewise.
6320 (htab_t gloog::newivs_index): Likewise.
6321 (htab_t gloog::params_index): Likewise.
6323 * graphite.c: Include graphite-htab.h.
6324 4htab_t graphite_transform_loops::bb_pbb_mapping):
6325 Change type to hash_table. Update dependent calls and types.
6327 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
6328 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
6329 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
6331 * graphite-dependences.c: Include graphite-htab.h.
6332 (loop_is_parallel_p): Change hash table type of parameter.
6334 * graphite-htab.h: New.
6335 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
6336 (extern find_pbb_via_hash): Move from graphite-poly.h.
6337 (extern loop_is_parallel_p): Move from graphite-poly.h.
6338 (extern get_loop_body_pbbs): Move from graphite-poly.h.
6340 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
6341 (extern loop_is_parallel_p): Move to graphite-htab.h.
6342 (extern get_loop_body_pbbs): Move to graphite-htab.h.
6344 * haifa-sched.c (htab_t delay_htab):
6345 Change type to hash_table. Update dependent calls and types.
6346 (htab_t delay_htab_i2): Likewise.
6348 * ira-color.c (htab_t allocno_hard_regs_htab):
6349 Change type to hash_table. Update dependent calls and types.
6351 * ira-costs.c (htab_t cost_classes_htab):
6352 Change type to hash_table. Update dependent calls and types.
6354 * loop-invariant.c (htab_t merge_identical_invariants::eq):
6355 Change type to hash_table. Update dependent calls and types.
6357 * loop-iv.c (htab_t bivs):
6358 Change type to hash_table. Update dependent calls and types.
6360 * loop-unroll.c (htab_t opt_info::insns_to_split):
6361 Change type to hash_table. Update dependent calls and types.
6362 (htab_t opt_info::insns_with_var_to_expand): Likewise.
6364 * lto-streamer.h (struct string_slot): Move from data-streamer.h
6365 (struct string_slot_hasher): New.
6366 (htab_t output_block::string_hash_table):
6367 Change type to hash_table. Update dependent calls and types.
6369 * lto-streamer-in.c (freeing_string_slot_hasher): New.
6370 (htab_t file_name_hash_table):
6371 Change type to hash_table. Update dependent calls and types.
6373 * lto-streamer-out.c: Update output_block::string_hash_table dependent
6376 * lto-streamer.c (htab_t tree_htab):
6377 Change type to hash_table. Update dependent calls and types.
6379 * omp-low.c: Include gimplify-ctx.h.
6381 * passes.c (htab_t name_to_pass_map):
6382 Change type to hash_table. Update dependent calls and types.
6383 (pass_traverse): Rename to passes_pass_traverse.
6385 * plugin.c (htab_t event_tab):
6386 Change type to hash_table. Update dependent calls and types.
6388 * postreload-gcse.c (htab_t expr_table):
6389 Change type to hash_table. Update dependent calls and types.
6390 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
6392 * sese.c (debug_rename_map_1): Make extern.
6393 (htab_t copy_bb_and_scalar_dependences::rename_map):
6394 Change type to hash_table. Update dependent calls and types.
6396 * sese.h (extern debug_rename_map): Move to .c file.
6398 * store-motion.c (htab_t store_motion_mems_table):
6399 Change type to hash_table. Update dependent calls and types.
6401 * trans-mem.c (htab_t tm_new_mem_hash):
6402 Change type to hash_table. Update dependent calls and types.
6404 * tree-browser.c (htab_t TB_up_ht):
6405 Change type to hash_table. Update dependent calls and types.
6407 * tree-cfg.c (htab_t discriminator_per_locus):
6408 Change type to hash_table. Update dependent calls and types.
6410 * tree-complex.c: Include tree-hasher.h
6411 (htab_t complex_variable_components):
6412 Change type to hash_table. Update dependent calls and types.
6414 * tree-eh.c (htab_t finally_tree):
6415 Change type to hash_table. Update dependent calls and types.
6417 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
6418 struct int_tree_hasher.
6419 (extern int_tree_map_eq): Likewise.
6420 (uid_decl_map_hash): Removed.
6421 (extern decl_tree_map_eq): Likewise.
6423 * tree-hasher.h: New.
6424 (struct int_tree_hasher): New.
6425 (typedef int_tree_htab_type): New.
6427 * tree-inline.c: Include gimplify-ctx.h.
6429 * tree-mudflap.c: Include gimplify-ctx.h.
6431 * tree-parloops.c: Include tree-hasher.h.
6432 (htab_t eliminate_local_variables_stmt::decl_address):
6433 Change type to hash_table. Update dependent calls and types.
6434 (htab_t separate_decls_in_region::decl_copies): Likewise.
6436 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
6437 Change type to hash_table. Update dependent calls and types.
6439 * tree-sra.c (candidates):
6440 Change type to hash_table. Update dependent calls and types.
6442 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
6444 (int_tree_map_hash): Likewise.
6446 * tree-ssa-dom.c (htab_t avail_exprs):
6447 Change type to hash_table. Update dependent calls and types.
6449 * tree-ssa-live.c (var_map_base_init::tree_to_index):
6450 Change type to hash_table. Update dependent calls and types.
6452 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
6453 Change type to hash_table. Update dependent calls and types.
6455 * tree-ssa-phiopt.c (seen_ssa_names):
6456 Change type to hash_table. Update dependent calls and types.
6458 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
6459 Change type to hash_table. Update dependent calls and types.
6461 * tree-ssa-uncprop.c (equiv):
6462 Change type to hash_table. Update dependent calls and types.
6464 2013-04-25 Jakub Jelinek <jakub@redhat.com>
6466 PR rtl-optimization/57003
6467 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
6468 call note_stores with kill_clobbered_value callback again after
6469 killing regs_invalidated_by_call.
6471 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
6473 * config/aarch64/aarch64-simd.md
6474 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
6475 (aarch64_simd_bsl<mode>): Likewise.
6476 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
6478 2013-04-25 Marek Polacek <polacek@redhat.com>
6480 PR tree-optimization/57066
6481 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
6483 2013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
6485 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
6487 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
6489 * config/aarch64/aarch64-builtins.c
6490 (aarch64_fold_builtin): New.
6491 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
6492 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
6493 * config/aarch64/aarch64-simd-builtins.def (abs): New.
6494 * config/aarch64/arm_neon.h
6495 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
6497 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
6498 Tejas Belagod <tejas.belagod@arm.com>
6500 * config/aarch64/aarch64-builtins.c
6501 (aarch64_gimple_fold_builtin): New.
6502 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
6503 * config/aarch64/aarch64-simd-builtins.def (addv): New.
6504 * config/aarch64/aarch64-simd.md (addpv4sf): New.
6506 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
6508 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6510 * config/aarch64/aarch64.md
6511 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
6513 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6515 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
6516 (*ngcsi_uxtw): New pattern.
6518 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6519 Julian Brown <julian@codesourcery.com>
6521 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
6522 (TB_DREG): Add T_V4HF.
6523 (v4hf_UP): New macro.
6524 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
6525 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
6526 Handle initialisation of V4HF. Adjust initialisation of reinterpret
6528 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
6529 (arm_vector_mode_supported_p): Handle V4HF.
6530 (arm_mangle_map): Handle V4HFmode.
6531 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
6532 * config/arm/arm_neon_builtins.def: Add entries for
6533 vcvtv4hfv4sf, vcvtv4sfv4hf.
6534 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
6535 (neon_vcvtv4hfv4sf): Likewise.
6536 * config/arm/neon-gen.ml: Handle half-precision floating point
6538 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
6539 * config/arm/arm_neon.h: Regenerate.
6540 * config/arm/neon.ml (type elts): Add F16.
6541 (type vectype): Add T_float16x4, T_floatHF.
6542 (type vecmode): Add V4HF.
6543 (type features): Add Requires_FP_bit feature.
6544 (elt_width): Handle F16.
6545 (elt_class): Likewise.
6546 (elt_of_class_width): Likewise.
6547 (mode_of_elt): Refactor.
6548 (type_for_elt): Handle F16, fix error messages.
6549 (vectype_size): Handle T_float16x4.
6550 (vcvt_sh): New function.
6551 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
6552 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
6553 (string_of_mode): Handle V4HF.
6554 * doc/arm-neon-intrinsics.texi: Regenerate.
6556 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
6558 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
6559 format specifier in 'X' case.
6561 2013-04-25 Alan Modra <amodra@gmail.com>
6564 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
6565 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
6566 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
6567 Repeat for many other rotate/shift and mask patterns using subregs.
6568 Name lshiftrt insns.
6569 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
6570 on WORDS_BIG_ENDIAN.
6572 2013-04-25 Alan Modra <amodra@gmail.com>
6574 * config.gcc: Support little-endian powerpc-linux targets.
6575 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
6576 (LINK_OS_LINUX_SPEC): Define.
6577 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
6578 Preserve MASK_LITTLE_ENDIAN.
6579 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
6580 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
6581 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
6582 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
6583 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
6584 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
6585 Correct fp word order for little-endian. Don't shift toc entries
6586 smaller than a word for little-endian.
6587 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
6588 (bswapdi2 splits): Correct low-part subreg for little-endian.
6589 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
6590 low/high where such is correct only for be.
6591 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
6592 little-endian for -mcall-aixdesc.
6594 2013-04-25 Alan Modra <amodra@gmail.com>
6596 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
6597 replace_equiv_address_nv.
6599 2013-04-25 Alan Modra <amodra@gmail.com>
6601 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
6603 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
6606 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
6607 * rtl.h (struct rtx_def): ...
6609 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
6611 PR rtl-optimizations/57046
6612 * lra-constraints (split_reg): Set up lra_risky_transformations_p
6613 for multi-reg splits.
6615 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
6617 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
6619 2013-04-24 Sterling Augustine <saugustine@google.com>
6621 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
6622 (comp_dir_string, debug_str_dwo_section): New.
6623 (DEBUG_STR_DWO_SECTION): Rename to ...
6624 (DEBUG_DWO_STR_SECTION): ... this.
6625 (DEBUG_NORM_STR_SECTION): Delete.
6626 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
6627 (DEBUG_STR_DWO_SECTION_FLAGS): New.
6628 (find_AT_string): Move most logic to ...
6629 (find_AT_string_in_table): ... here. New.
6630 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
6631 add_skeleton_AT_string. Delete logic.
6632 (output_skeleton_debug_sections): Remove call to
6633 add_top_level_skeleton_die_attrs.
6634 (add_comp_dir_attribute): Move logic to comp_dir_string.
6635 (dwarf2out_init): Initialize debug_str_dwo_section.
6636 (output_indirect_string): Call find_string_form.
6637 (output_indirect_strings): Rewrite.
6638 (prune_unused_types): Empty skeleton_debug_str_hash.
6639 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
6640 (dwarf2out_finish): Call output_indirect_strings.
6642 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6644 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
6646 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
6648 * rtl.h (struct rtx_def): Add comment for field jump.
6649 (LRA_SUBREG_P): New macro.
6650 * recog.c (register_operand): Check LRA_SUBREG_P.
6651 * lra.c (lra): Add note at the end of RTL code. Align non-empty
6653 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
6654 (lra_final_code_change): Skip subreg change for operators.
6655 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
6656 if there are no operand changes.
6657 * lra-constraints.c (curr_insn_set): New.
6658 (match_reload): Set LRA_SUBREG_P.
6659 (emit_spill_move): Ditto.
6660 (check_and_process_move): Use curr_insn_set. Process only single
6661 set insns. Don't initialize sec_mem_p and change_p.
6662 (simplify_operand_subreg): Use LRA_SUBREG_P.
6663 (reg_in_class_p): New function.
6664 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
6665 of #ifdef. Add code to remove cycling.
6666 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
6667 non-null disp. Reload inner instead of disp when base and index
6668 are null. Try to put lo_sum into register.
6669 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
6670 (check_and_process_move): Move code for move cost check to
6671 simple_move_p. Remove equiv_substitution.
6672 (simple_move_p): New function.
6673 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
6674 curr_insn_set. Call check_and_process_move only for single set
6675 insns. Use the new function. Move call of check_and_process_move
6676 after operand equiv substitution and address process.
6678 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
6680 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
6681 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
6682 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
6684 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6686 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
6688 2013-04-24 Marek Polacek <polacek@redhat.com>
6690 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
6691 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
6692 (select_loops_exit_conditions): Likewise.
6693 (number_of_iterations_for_all_loops): Likewise.
6694 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
6695 (scev_analysis): Likewise.
6697 2013-04-02 Catherine Moore <clm@codesourcery.com>
6698 Chao-ying Fu <fu@mips.com>
6700 * config/mips/micromips.md (jraddiusp): New pattern.
6701 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
6702 instruction if possible.
6704 2013-04-24 Alan Modra <amodra@gmail.com>
6706 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
6708 2013-04-24 Julian Brown <julian@codesourcery.com>
6709 Chung-Lin Tang <cltang@codesourcery.com>
6711 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
6712 dependency behavior in enumeration type DIE generation. Add TODO note
6713 to comments about future DW_FORM_sdata/udata re-work of related code.
6715 2013-04-23 Lawrence Crowl <crowl@google.com>
6717 * Makefile.in: Update as needed below.
6719 * hash-table.h (class hash_table):
6720 Correct many methods with parameter types compare_type to the correct
6721 value_type. (Correct code was unlikely to notice the change.)
6722 (hash_table::elements_with_deleted) New.
6723 (class hashtable::iterator): New.
6724 (hashtable::begin()): New.
6725 (hashtable::end()): New.
6726 (FOR_EACH_HASH_TABLE_ELEMENT): New.
6728 * statistics.c (statistics_hashes):
6729 Change type to hash_table. Update dependent calls and types.
6731 * tree-into-ssa.c (var_infos):
6732 Change type to hash_table. Update dependent calls and types.
6734 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
6735 Change type to hash_table. Update dependent calls and types.
6737 * tree-ssa-loop-im.c (struct mem_ref.refs):
6738 Change type to hash_table. Update dependent calls and types.
6740 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
6741 Change type to hash_table. Update dependent calls and types.
6743 * tree-ssa-sccvn.c (vn_tables_s::nary):
6744 Change type to hash_table. Update dependent calls and types.
6745 (vn_tables_s::phis): Likewise.
6746 (vn_tables_s::references): Likewise.
6748 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
6749 (vn_reference_eq): Update parameter and return types.
6751 * tree-ssa-structalias.c (pointer_equiv_class_table):
6752 Change type to hash_table. Update dependent calls and types.
6753 (location_equiv_class_table): Likewise.
6755 * tree-vect-data-refs.c: Consequential changes for making
6756 peeling a hash_table.
6758 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
6759 (destroy_loop_vec_info): Dependent hash_table update.
6761 * tree-vectorizer.h (peeling_htab):
6762 Change type to hash_table. Update dependent calls and types.
6764 2013-04-23 Shiva Chen <shiva0217@gmail.com>
6766 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
6767 to check the register content is equal or not.
6768 * lra-constraints.c (match_reload): Use lra_assign_reg_val
6769 to assign register content record.
6770 * lra-eliminations.c (update_reg_eliminate): Use
6771 lra_update_reg_val_offset to update register content offset.
6772 * lra-int.h (struct lra_reg): Add offset member.
6773 (lra_reg_val_equal_p): New static inline function.
6774 (lra_update_reg_val_offset): New static inline function.
6775 (lra_assign_reg_val): New static inline function.
6776 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
6777 to assign register content record.
6778 (initialize_lra_reg_info_element): Initial offset to zero.
6780 2013-04-23 Catherine Moore <clm@codesourcery.com>
6782 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
6783 operands. Record compression.
6785 2013-04-23 Xinliang David Li <davidxl@google.com>
6787 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
6789 2013-04-23 Richard Biener <rguenther@suse.de>
6792 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
6793 parameter, only add abnormal goto edges from the copied body
6794 if the call could perform abnormal gotos.
6795 (copy_cfg_body): Adjust.
6797 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
6799 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
6801 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
6803 * coretypes.h (gimple_stmt_iterator): Add struct to make
6806 2013-04-23 Richard Biener <rguenther@suse.de>
6808 PR tree-optimization/57026
6809 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
6810 from SSA names occuring in abnormal PHI nodes.
6812 2013-04-22 Andi Kleen <ak@linux.intel.com>
6814 * lto/lto.c (print_lto_report_1): Fix LTO report names.
6816 2013-04-22 Andi Kleen <ak@linux.intel.com>
6818 * lto/lto.c (print_lto_report_1): Declare early.
6819 (read_cgraph_and_symbols): Call print_lto_report_1 early.
6821 2013-04-22 Andi Kleen <ak@linux.intel.com>
6823 * common.opt (-flto-report-wpa): Add.
6824 * doc/invoke.texi (-flto-report-wpa): Add.
6825 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
6828 2013-04-22 Xinliang David Li <davidxl@google.com>
6830 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
6831 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
6832 * Makefile.in: New dependency
6834 David Daney <ddaney.cavm@gmail.com>
6836 * configure.ac (gcc_cv_as_micromips_support): Use the
6837 --fatal-warnings option.
6838 * configure: Regenerate.
6840 2013-04-22 Marek Polacek <polacek@redhat.com>
6843 * tsan.c (instrument_expr): Don't instrument expression
6844 in case its size is zero.
6846 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
6850 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
6852 * config/alpha/alpha.c (TARGET_LRA_P): New define.
6854 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
6856 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
6857 (gimple_stmt_iterator): New typedef.
6858 * gimple.h (gimple_stmt_iterator): Rename to...
6859 (gimple_stmt_iterator_d): ... This.
6860 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
6861 trees be valid for GIMPLE and GENERIC.
6862 (TARGET_GIMPLE_FOLD_BUILTIN): New.
6863 * gimple-fold.c (gimple_fold_call): Call target hook
6864 gimple_fold_builtin.
6865 * hooks.c (hook_bool_gsiptr_false): New.
6866 * hooks.h (hook_bool_gsiptr_false): New.
6867 * target.def (fold_stmt): New.
6868 * doc/tm.texi: Regenerate.
6870 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
6873 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
6874 a set sp if no stack realignment.
6876 2013-04-22 Nick Clifton <nickc@redhat.com>
6878 * config.gcc (tilegx-linux): Extend extra_objs rather than
6880 (tilepro-linux): Likewise.
6882 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
6884 * config/aarch64/aarch64-builtins.c
6886 (CF0, CF1, CF2, CF3, CF4, CF10): New.
6887 (VAR<1-12>): Add MAP parameter.
6888 (BUILTIN_*): Likewise.
6889 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
6890 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
6891 (aarch64_ushl_n<mode>): Likewise.
6892 (aarch64_sshr_n<mode>): Likewise.
6893 (aarch64_ushr_n<mode>): Likewise.
6894 (aarch64_<maxmin><mode>): Likewise.
6895 (aarch64_sqrt<mode>): Likewise.
6896 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
6897 (vshr<q>_n_*): Likewise.
6899 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
6901 * config/aarch64/aarch64-builtins.c
6902 (aarch64_simd_builtin_type_mode): Handle SF types.
6904 (BUILTIN_GPF): Define.
6905 (aarch64_init_simd_builtins): Handle SF types.
6906 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
6909 * config/aarch64/aarch64-simd.md
6910 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
6911 (aarch64_frecpe<mode>): New.
6912 (aarch64_frecps<mode>): Likewise.
6913 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
6914 (v8type): Add frecp<esx>.
6915 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
6916 (aarch64_frecps<mode>): Likewise.
6917 * config/aarch64/iterators.md (FRECP): New.
6918 (frecp_suffix): Likewise.
6919 * config/aarch64/arm_neon.h
6920 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
6922 2013-04-22 Christian Bruel <christian.bruel@st.com>
6925 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
6926 (REG_CLASS_NAMES): Idem.
6927 (REG_CLASS_CONTENTS): Idem.
6928 (REGCLASS_HAS_FP_REG): Idem.
6929 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
6930 (sh_conditional_register_usage): Idem.
6932 2013-04-21 Jeff Law <law@redhat.com>
6934 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
6935 (ssa_forward_propagate_and_combine): Use it.
6937 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
6939 * lra.c: Update the flow chart diagram.
6941 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
6943 PR rtl-optimization/56847
6944 * lra-constraints.c (process_alt_operands): Discourage alternative
6945 with non-matche doffsettable memory constraint fro memory with
6948 2013-04-19 Richard Biener <rguenther@suse.de>
6950 PR tree-optimization/56982
6951 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
6953 * gimplify.c (gimplify_call_expr): Notice special calls.
6954 (gimplify_modify_expr): Likewise.
6955 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
6956 abnormal control flow receivers.
6957 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
6958 in the same way as cfun->has_nonlocal_labels.
6959 (gimple_purge_dead_abnormal_call_edges): Likewise.
6960 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
6961 receivers start a basic-block.
6963 2013-04-19 Richard Biener <rguenther@suse.de>
6965 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
6967 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
6968 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
6969 (SLP_TREE_LOAD_PERMUTATION): Add.
6970 (vect_transform_slp_perm_load): Adjust prototype.
6971 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
6972 (vect_free_slp_instance): Likewise.
6973 (vect_create_new_slp_node): Likewise.
6974 (vect_supported_slp_permutation_p): Remove.
6975 (vect_slp_rearrange_stmts): Adjust.
6976 (vect_supported_load_permutation_p): Likewise. Inline
6977 vect_supported_slp_permutation_p here.
6978 (vect_analyze_slp_instance): Compute load permutations per
6979 slp node instead of per instance.
6980 (vect_get_slp_defs): Adjust.
6981 (vect_transform_slp_perm_load): Likewise.
6982 (vect_schedule_slp_instance): Remove redundant code.
6983 (vect_schedule_slp): Remove hack for PR56270, add it ...
6984 * tree-vect-stmts.c (vectorizable_load): ... here, do not
6985 CSE loads for SLP. Adjust.
6987 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
6989 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
6990 spelling in two comments.
6992 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
6995 * config/arm/arm.c (load_multiple_sequence): Require SP
6996 as base register for loads if SP is in the register list.
6998 2013-04-19 Martin Jambor <mjambor@suse.cz>
7000 PR tree-optimization/56718
7001 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
7002 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
7003 and made public. Adjusted all callers.
7004 (ipa_intraprocedural_devirtualization): New function.
7005 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
7006 (ipa_intraprocedural_devirtualization): Likewise.
7007 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
7009 2013-04-19 Richard Biener <rguenther@suse.de>
7011 PR tree-optimization/57000
7012 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
7014 2013-04-19 Terry Guo <terry.guo@arm.com>
7016 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
7018 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
7019 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
7020 (cortex_m4_fmacs): Use new reservations.
7021 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
7023 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
7025 PR rtl-optimization/56999
7026 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
7028 (lra_coalesce): Remove split_origin_bitmap and related code.
7029 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
7030 ranges if necessary.
7032 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
7034 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
7036 (ix86_expand_call): Remove clobbered_registers array and use
7037 x86_64_ms_sysv_extra_clobbered_registers instead.
7038 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
7040 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
7042 * config/i386/i386.md (*call_rex64_ms_sysv): Use
7043 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
7044 (*call_value_rex64_ms_sysv): Ditto.
7046 2013-04-18 Cary Coutant <ccoutant@google.com>
7048 * dwarf2out.c (output_pubnames): Check die_perennial_p of
7049 parent instead of die_mark.
7051 2013-04-18 Diego Novillo <dnovillo@google.com>
7053 * gimple.c (create_gimple_tmp): New.
7054 (get_expr_type): New.
7055 (build_assign): New.
7056 (build_type_cast): New.
7057 * gimple.h (enum ssa_mode): Define.
7058 (gimple_seq_set_location): New.
7059 * asan.c (build_check_stmt): Change some gimple_build_* calls
7060 to use build_assign and build_type_cast.
7062 2013-04-18 Richard Biener <rguenther@suse.de>
7064 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
7065 handle negative step. Remove redundant checks.
7066 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
7067 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
7068 for negative step and grouped loads fail to vectorize.
7070 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
7072 * emit-rtl.c (reset_insn_used_flags): New function.
7073 (reset_all_used_flags): Use it.
7074 (verify_insn_sharing): New function.
7075 (verify_rtl_sharing): Fix verification for SEQUENCEs.
7077 2013-04-18 Jakub Jelinek <jakub@redhat.com>
7079 PR tree-optimization/56984
7080 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
7081 and (x >> M) >= N don't register any assertion if N << M is the
7084 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
7086 * lower-subreg.c (resolve_simple_move): If called self-recursive,
7087 do not delete_insn insns that have not yet been emitted, only
7088 unlink them with remove_insn.
7089 * df-scan.c (df_insn_delete): Revert r197492.
7091 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
7093 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
7094 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
7096 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
7098 * config/arm/arm.md (movsicc_insn): Convert define_insn into
7099 define_insn_and_split.
7100 (and_scc,ior_scc,negscc): Likewise.
7101 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
7103 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
7105 * config/arm/arm.c (use_return_insn): Return 0 for targets that
7106 can benefit from using a sequence of LDRD instructions in epilogue
7107 instead of a single LDM instruction.
7109 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
7112 * doc/extend.texi: Fix typo.
7114 2013-04-17 Richard Biener <rguenther@suse.de>
7116 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
7117 (vect_build_slp_tree): ... here.
7118 (vect_build_slp_tree_1): Compute which stmts of the SLP group
7119 match. Remove special-casing of mismatched complex loads.
7120 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
7121 re-try the match with swapped commutative operands.
7122 (vect_supported_load_permutation_p): Remove special-casing of
7123 mismatched complex loads.
7124 (vect_analyze_slp_instance): Adjust.
7126 2013-04-17 Richard Biener <rguenther@suse.de>
7128 PR rtl-optimization/56921
7129 * cfgloop.h (struct loop): Add simple_loop_desc member.
7130 (struct niter_desc): Mark with GTY(()).
7131 (simple_loop_desc): Do not use aux field but simple_loop_desc.
7132 * loop-iv.c (get_simple_loop_desc): Likewise.
7133 (free_simple_loop_desc): Likewise.
7136 2013-04-16 Richard Biener <rguenther@suse.de>
7138 PR rtl-optimization/56921
7139 * loop-init.c (pass_rtl_move_loop_invariants): Add
7140 TODO_do_not_ggc_collect to todo_flags_finish.
7141 (pass_rtl_unswitch): Same.
7142 (pass_rtl_unroll_and_peel_loops): Same.
7143 (pass_rtl_doloop): Same.
7145 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
7147 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
7148 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
7149 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
7151 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
7152 * tree-streamer.c (record_common_node): Adjust reference in comment.
7154 2013-04-17 Terry Guo <terry.guo@arm.com>
7156 * config/arm/cortex-m4.md: Add a new bypass.
7158 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7160 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
7162 (*subs_<optab><mode>_multp2): New pattern.
7163 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
7164 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
7166 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7168 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
7169 (*subs_mul_imm_<mode>): New pattern.
7171 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
7174 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
7175 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
7176 (vsx_movti_32bit): Change j->wa to O->wa.
7178 2013-04-16 Richard Biener <rguenther@suse.de>
7180 PR rtl-optimization/56921
7181 * loop-init.c (pass_rtl_move_loop_invariants): Add
7182 TODO_do_not_ggc_collect to todo_flags_finish.
7183 (pass_rtl_unswitch): Same.
7184 (pass_rtl_unroll_and_peel_loops): Same.
7185 (pass_rtl_doloop): Same.
7187 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
7189 * config/arm/arm.c (emit_multi_reg_push): New declaration
7190 for an existing function.
7191 (arm_emit_strd_push): New function.
7192 (arm_expand_prologue): Used here.
7193 (arm_emit_ldrd_pop): New function.
7194 (arm_expand_epilogue): Used here.
7195 (arm_get_frame_offsets): Update condition.
7196 (arm_emit_multi_reg_pop): Add a special case for load of a single
7197 register with writeback.
7199 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
7201 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
7204 2013-04-16 Richard Biener <rguenther@suse.de>
7206 PR tree-optimization/56756
7207 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
7208 (first_mem_ref_loc): New.
7209 (execute_sm): Place the load temporarily before a previous
7210 access instead of in the latch edge to ensure its SSA dependencies
7211 are defined at points dominating the load.
7213 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
7215 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
7216 correct fix by moving header and footer insn to the footer of
7217 the merged basic block. Clear BB_END of the merged-away block.
7220 * emit-rtl.c (make_note_raw): New function.
7221 (link_insn_into_chain): New static inline function.
7223 (add_insn_before, add_insn_after): Factor insn chain linking code...
7224 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
7225 using link_insn_into_chain.
7226 (note_outside_basic_block_p): New helper function for emit_note_after
7227 and emit_note_before.
7228 (emit_note_after): Use nobb variant of add_insn_after if the note
7229 should not be contained in a basic block.
7230 (emit_note_before): Use nobb variant of add_insn_before if the note
7231 should not be contained in a basic block.
7232 (emit_note_copy): Use make_note_raw.
7233 (emit_note): Likewise.
7234 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
7235 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
7236 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
7237 the moved barrier the tail of the basic block it follows.
7238 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
7240 2013-04-15 Jakub Jelinek <jakub@redhat.com>
7242 PR tree-optimization/56962
7243 * gimple-ssa-strength-reduction.c (record_increment): Only set
7244 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
7245 either rhs1 or rhs2 is equal to c->base_expr.
7247 2013-04-15 Richard Biener <rguenther@suse.de>
7249 PR tree-optimization/56933
7250 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
7252 (GROUP_READ_WRITE_DEPENDENCE): Remove.
7253 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
7254 * tree-vect-data-refs.c (vect_analyze_group_access): Move
7255 dependence check ...
7256 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
7258 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
7259 GROUP_READ_WRITE_DEPENDENCE.
7261 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7263 * emit-rtl.c (reset_all_used_flags): New function.
7264 (verify_rtl_sharing): Call reset_all_used_flags before and after
7265 performing the checks.
7267 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7269 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
7270 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
7271 * config/arm/constraints.md (De): New constraint.
7272 * config/arm/neon.md (anddi3_neon): Delete.
7273 (neon_vand<mode>): Expand to standard anddi3 pattern.
7274 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
7275 Move earlier in the file.
7276 (neon_inv_logic_op2): Likewise.
7277 (arm_anddi_operand_neon): New predicate.
7279 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7281 * configure.ac (gcc_cv_ld_as_needed): Set
7282 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
7283 Use -z ignore, -z record on *-*-solaris2*.
7284 (HAVE_LD_AS_NEEDED): Update comment.
7285 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
7286 * configure: Regenerate.
7287 * config.in: Regenerate.
7288 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
7289 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
7290 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
7291 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
7292 equivalents. Fix markup.
7293 * doc/tm.texi: Regenerate.
7295 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
7297 * config/i386/i386.opt: New option mstack-protector-guard=.
7298 * config/i386/i386-opts.h: Add enum stack_protector_guard.
7299 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
7300 TARGET_SSP_TLS_GUARD.
7301 * config/i386/i386.c (ix86_option_override_internal): Set
7302 ix86_stack_protector_guard.
7303 * config/i386/i386.md (stack_protect_set): Enable for
7304 TARGET_SSP_TLS_GUARD only.
7305 (stack_protect_set_<mode>): Ditto.
7306 (stack_protect_test): Ditto.
7307 (stack_protect_test_<mode>): Ditto.
7308 * doc/invoke.texi (i386 Option): Document.
7310 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
7313 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
7314 (S_MODES): Set H_MODE bit.
7315 (SF_MODES): Set only S_MODE and SF_MODE bits.
7316 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
7317 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
7318 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
7319 <MODE_FLOAT>: Likewise.
7321 2013-04-15 Joey Ye <joey.ye@arm.com>
7323 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
7325 2013-04-15 Joey Ye <joey.ye@arm.com>
7327 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
7329 (thumb_far_jump_used_p): Count instruction size and set
7332 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
7334 * reorg.c (fill_simple_delay_slots): Reindent block of code.
7335 * resource.c (mark_target_live_regs): Reformat conditional block.
7337 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
7339 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
7340 notes, they are emitted only just before final.
7341 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
7343 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
7345 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
7346 * cfgrtl.c (delete_insn): Call it here instead.
7347 * lra-spills.c (lra_final_code_change): Use delete_insn.
7348 * haifa-sched.c (sched_remove_insn): Likewise.
7349 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
7350 returning to the nop pool.
7351 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
7352 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
7354 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
7356 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
7357 * doc/tm.texi: Regenerated.
7359 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
7361 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
7364 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
7366 * df-core.c (df_find_def): Compare register numbers.
7367 (df_find_use): Likewise.
7369 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
7372 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
7373 lra_in_progress for return.
7375 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
7377 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
7378 define_insn into define_insn_and_split and emit movsicc patterns.
7380 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
7382 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
7384 2013-04-12 Richard Biener <rguenther@suse.de>
7386 * tree-pass.h (TODO_do_not_ggc_collect): New.
7387 * passes.c (execute_one_ipa_transform_pass): Honor
7388 TODO_do_not_ggc_collect.
7389 (execute_one_pass): Likewise.
7392 2013-04-10 Richard Biener <rguenther@suse.de>
7394 * passes.c (init_optimization_passes): Remove reload pass.
7395 * ira.c (do_reload): Merge into ...
7397 (rest_of_handle_reload): Remove.
7398 (pass_reload): Likewise.
7399 * config/i386/i386.c (ix86_option_override): Refer to ira instead
7400 of reload for vzeroupper pass placement.
7402 2013-04-12 Jakub Jelinek <jakub@redhat.com>
7404 PR tree-optimization/56918
7405 PR tree-optimization/56920
7406 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
7407 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
7408 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
7409 use wide_mul_with_sign method.
7411 2013-04-12 Richard Biener <rguenther@suse.de>
7413 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
7414 not be considered a gimple constant.
7416 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
7418 * fold-const.c (const_binop): Handle vector shifts by a scalar.
7419 (fold_binary_loc): Call const_binop also for mixed vector-scalar
7422 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
7423 Jakub Jelinek <jakub@redhat.com>
7425 * opts.c: Include diagnostic-color.h.
7426 (common_handle_option): Handle OPT_fdiagnostics_color_.
7427 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
7428 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
7429 (diagnostic-color.o): New.
7430 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
7431 (diagnostic_color_rule): New enum.
7432 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
7433 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
7434 the location string.
7435 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
7436 either NULL, or color kind.
7437 * diagnostic-color.c: New file.
7438 * diagnostic-color.h: New file.
7439 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
7441 * doc/invoke.texi (-fdiagnostics-color): Document.
7442 * pretty-print.h (pp_show_color): Define.
7443 (struct pretty_print_info): Add show_color field.
7444 * diagnostic.c: Include diagnostic-color.h.
7445 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
7446 macros. Colorize error:, warning: etc. strings and also the location
7448 (diagnostic_show_locus): Colorize the caret line.
7449 * pretty-print.c: Include diagnostic-color.h.
7450 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
7451 inside of %< %> quotes or quoted through q format modifier.
7453 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7455 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
7457 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7459 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
7461 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
7464 2013-04-11 Marek Polacek <polacek@redhat.com>
7466 PR tree-optimization/48184
7467 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
7469 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
7471 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
7472 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
7473 (skip_simple_arithmetic): Tidy up.
7474 * tree.h (skip_simple_constant_arithmetic): Declare.
7476 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7478 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
7480 2013-04-11 Richard Biener <rguenther@suse.de>
7482 * tree-vect-loop.c (get_initial_def_for_induction): Properly
7483 generate vector constants.
7485 2013-04-11 Richard Biener <rguenther@suse.de>
7487 PR tree-optimization/56878
7488 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
7489 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
7491 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7492 Prefer to align the DR with the most invariant base address.
7494 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7496 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
7499 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
7501 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
7502 floating-point vector comparisons against 0.
7504 2013-04-11 Jakub Jelinek <jakub@redhat.com>
7506 PR tree-optimization/56899
7507 * fold-const.c (extract_muldiv_1): Apply distributive law
7508 only if TYPE_OVERFLOW_WRAPS (ctype).
7510 2013-04-11 Bin Cheng <bin.cheng@arm.com>
7513 * ira-costs.c (scan_one_insn): Check whether the source rtx of
7514 loading has side effect.
7516 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
7518 * config/sparc/sparc.c: Include tree-pass.h.
7519 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
7520 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
7521 head of file. Change return type. Split off gate function.
7522 (sparc_gate_work_around_errata): New function.
7523 (pass_work_around_errata): New pass definition.
7524 (insert_pass_work_around_errata) New pass insert definition to
7525 insert pass_work_around_errata just after delayed-branch scheduling.
7526 (sparc_option_override): Insert the pass.
7527 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
7529 2013-04-10 David S. Miller <davem@davemloft.net>
7531 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
7532 or -mcpu=hypersparc.
7534 * target.def (cstore_mode): New hook.
7535 * target.h: Include insn-codes.h
7536 * targhooks.c: Likewise.
7537 (default_cstore_mode): New function.
7538 * targhooks.h: Declare it.
7539 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
7540 * doc/tm.texi: Rebuild.
7541 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
7542 target hook, rather than inspecting the insn_data.
7543 * config/sparc/sparc.c (sparc_cstore_mode): New function.
7544 (TARGET_CSTORE_MODE): Redefine.
7545 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
7547 * config/sparc/predicates.md (cstore_result_operand): New special
7549 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
7550 Use it for operand 0.
7551 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
7552 (*snesi_special): Likewise.
7553 (*snesi_zero): Likewise.
7554 (*seqsi_zero): Likewise.
7555 (*sltu_insn): Likewise.
7556 (*sgeu_insn): Likewise.
7557 (*seqdi_special): Make operand 0 and comparison operation be of
7559 (*snedi_special): Likewise.
7560 (*snedi_special_vis3): Likewise.
7561 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
7562 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
7563 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
7564 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
7565 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
7566 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
7567 (*sltu_extend_sp64): Likewise.
7568 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
7569 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
7570 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
7571 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
7572 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
7574 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
7576 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
7577 (aarch64_start_file): Use the new function.
7579 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7580 Jason Merrill <jason@redhat.com>
7582 * common.opt: Add -gdwarf.
7583 * opts.c (common_handle_option): Handle it.
7584 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
7586 2013-04-10 Richard Biener <rguenther@suse.de>
7588 * passes.c (execute_todo): Do not call ggc_collect conditional here.
7589 (execute_one_ipa_transform_pass): But unconditionally here.
7590 (execute_one_pass): And here.
7591 (init_optimization_passes): Remove reload pass.
7592 * tree-pass.h (TODO_ggc_collect): Remove.
7593 (pass_reload): Likewise.
7594 * ira.c (do_reload): Merge into ...
7596 (rest_of_handle_reload): Remove.
7597 (pass_reload): Likewise.
7598 * config/i386/i386.c (ix86_option_override): Refer to ira instead
7599 of reload for vzeroupper pass placement.
7600 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
7601 and todo_flags_finish of all passes.
7603 2013-04-10 Richard Biener <rguenther@suse.de>
7605 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
7606 first_const_oprnd field, rename first_def_type to first_op_type.
7607 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
7608 (vect_get_and_check_slp_defs): Always use the type of the
7609 operand. Allow mixed vect_external_def, vect_constant_def types.
7610 (vect_get_constant_vectors): Handle mixed vect_external_def,
7611 vect_constant_def types.
7613 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
7615 PR tree-optimization/55524
7616 * tree-ssa-math-opts.c
7617 (convert_mult_to_fma): Don't use an fms construct
7618 when we don't have an fms operation, but fnma, and it looks
7619 likely that we'll be able to use the latter.
7621 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
7623 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
7625 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
7626 inline fail caused by overwritable functions.
7628 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
7630 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
7631 unnecessary bits in the constant power of two case.
7633 2013-04-10 Richard Biener <rguenther@suse.de>
7635 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
7636 broken code swapping operands.
7637 (vect_build_slp_tree): Do not compute load permutations here.
7638 (vect_analyze_slp_instance): Compute load permutations here,
7639 after building the SLP tree.
7641 2013-04-09 Christian Bruel <christian.bruel@st.com>
7643 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
7644 of next/prev_real_insn.
7646 2013-04-09 Jan Hubicka <jh@suse.cz>
7648 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
7649 Drop aliased parameter.
7650 (function_and_variable_visibility): Do not handle alias pairs.
7651 * cgraph.c (varpool_externally_visible_p): Update prototype.
7652 * varpool.c (varpool_add_new_variable): Update.
7654 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7656 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
7658 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
7660 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
7662 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
7664 2013-04-09 Marek Polacek <polacek@redhat.com>
7666 PR tree-optimization/48762
7667 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
7669 2013-04-09 Richard Biener <rguenther@suse.de>
7671 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
7673 (vect_build_slp_tree): Likewise.
7674 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
7675 calculating the cost of a SLP instance.
7676 (vect_analyze_slp_instance): Use it from here, after building
7679 2013-04-09 Jakub Jelinek <jakub@redhat.com>
7682 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
7683 expand_omp_for_static_chunk): Use simple_p = true in
7684 force_gimple_operand_gsi calls when assigning to addressable decls.
7686 2013-04-09 Jeff Law <law@redhat.com>
7688 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
7689 when the boolean was created by converting a wider object which
7690 had a boolean range.
7692 2013-04-09 Richard Biener <rguenther@suse.de>
7694 * tree-vectorizer.h (slp_void_p): Remove.
7695 (slp_tree): Typedef before _slp_tree declaration.
7696 (struct _slp_tree): Use a vector of slp_tree as children.
7697 (vect_get_place_in_interleaving_chain): Remove.
7698 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
7700 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
7702 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
7703 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
7704 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
7705 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
7706 Use slp_node instead of slp_void_p and adjust.
7708 2013-04-09 Richard Biener <rguenther@suse.de>
7710 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
7711 work that is not necessary.
7713 2013-04-09 Jakub Jelinek <jakub@redhat.com>
7715 PR tree-optimization/56854
7716 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
7717 forward into clobber stmts if it would change MEM_REF lhs into
7720 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
7722 * tree.c (type_hash_lookup, type_hash_add): Make static.
7723 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
7725 2013-04-09 Richard Biener <rguenther@suse.de>
7727 * tree.h (unsave_expr_now): Remove.
7728 * tree-inline.c (mark_local_for_remap_r): Remove.
7729 (unsave_expr_1): Likewise.
7730 (unsave_r): Likewise.
7731 (unsave_expr_now): Likewise.
7732 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
7733 (propagate_tree_value): Likewise.
7735 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
7737 * doc/rtl.texi (sequence): Rewrite documentation to match the
7738 current use of SEQUENCE rtl objects.
7739 * rtl.def (SEQUENCE): Likewise.
7741 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
7742 Update documentation.
7743 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
7744 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
7746 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
7748 2013-04-08 Teresa Johnson <tejohnson@google.com>
7750 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
7751 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
7753 (estimate_edge_size_and_time): Add comment to suggest using rounding
7755 (estimate_node_size_and_time): Ditto.
7756 (remap_edge_change_prob): Use helper rounding divide methods.
7757 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
7758 (gimple_mod_pow2_value_transform): Ditto.
7759 (gimple_mod_subtract_transform): Ditto.
7760 (gimple_ic_transform): Ditto.
7761 (gimple_stringops_transform): Ditto.
7762 * stmt.c (conditional_probability): Ditto.
7763 (emit_case_dispatch_table): Ditto.
7764 * lto-cgraph.c (merge_profile_summaries): Ditto.
7765 * tree-optimize.c (execute_fixup_cfg): Ditto.
7766 * cfgcleanup.c (try_forward_edges): Ditto.
7767 * cfgloopmanip.c (scale_loop_profile): Ditto.
7769 (duplicate_loop_to_header_edge): Ditto.
7770 (lv_adjust_loop_entry_edge): Ditto.
7771 * tree-vect-loop.c (vect_transform_loop): Ditto.
7772 * profile.c (compute_branch_probabilities): Ditto.
7773 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
7774 * lto-streamer-in.c (input_cfg): Ditto.
7775 * gimple-streamer-in.c (input_bb): Ditto.
7776 * ipa-cp.c (update_profiling_info): Ditto.
7777 (update_specialized_profile): Ditto.
7778 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
7779 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
7781 * sched-rgn.c (compute_dom_prob_ps): Ditto.
7782 (compute_trg_info): Ditto.
7783 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
7784 (purge_dead_edges): Ditto.
7785 * loop-unswitch.c (unswitch_loop): Ditto.
7786 * cgraphclones.c (cgraph_clone_edge): Ditto.
7787 (cgraph_clone_node): Ditto.
7788 * tree-inline.c (copy_bb): Ditto.
7789 (copy_edges_for_bb): Ditto.
7790 (initialize_cfun): Ditto.
7791 (copy_cfg_body): Ditto.
7792 (expand_call_inline): Ditto.
7794 2013-04-08 Kai Tietz <ktietz@redhat.com>
7796 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
7797 TARGET_CYGWIN64 by TARGET_64BIT.
7799 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
7801 * config/epiphany/epiphany.md (GPR_1): New constant.
7802 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
7803 * config/epiphany/epiphany.c (gen_compare_reg):
7804 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
7805 is already in place.
7806 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
7807 Don't require being called during rtl expansion; If y operlaps r0,
7809 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
7810 (epiphany_expand_epilogue): Likewise.
7812 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
7813 Don't use CC_FPmode for ORDERED / UNORDERED.
7814 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
7816 * config/epiphany/constraints.md (CnL): New constraint.
7817 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
7818 * config/epiphany/predicates.md (add_operand): Allow 1024.
7820 * config/epiphany/epiphany.md (logical_op): New code iterator.
7821 (op_mnc): New code attribute.
7822 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
7823 (mov_f+1, mov_f+2): New peephole2 patterns.
7825 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
7826 (cstoresi4): Also allow re-use of zero result when doing a NE
7827 comparison to a non-zero operand.
7828 Use (clobber (scratch)) for first insn if the gpr output is not needed.
7830 * config/epiphany/epiphany.md (<insn_opname>v2si3):
7831 Use gen_addsi3_i / gen_subsi3_i.
7833 2013-04-08 Jakub Jelinek <jakub@redhat.com>
7837 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
7838 contain anything but clobbers, at most one __builtin_stack_restore,
7839 optionally debug stmts and final resx, and if it has at least one
7840 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
7841 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
7842 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
7843 which isn't defaut definition, remove them.
7844 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
7845 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
7846 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
7847 with MEM_REF LHS with SSA_NAME address.
7849 2013-04-08 Jeff Law <law@redhat.com>
7851 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
7853 2013-04-08 Richard Biener <rguenther@suse.de>
7855 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
7857 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
7858 determined vector type.
7859 (vect_analyze_data_refs): Likewise.
7860 (vect_get_new_vect_var): Adjust.
7861 (vect_create_destination_var): Preserve SSA name versions.
7862 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
7863 not dump anything here.
7865 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
7867 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
7868 Add member lr_slot_known.
7869 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
7871 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
7872 Remove code that sets lr_slot_offset according to what a previous
7873 version of epiphany_emit_save_restore used to do.
7874 (epiphany_emit_save_restore): When doing an lr save or restore,
7875 set/verify lr_slot_known and lr_slot_offset.
7877 2013-04-08 Xinyu Qi <xyqi@marvell.com>
7880 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
7883 2013-04-08 Richard Biener <rguenther@suse.de>
7885 * alias.c (find_base_term): Fix thinko in previous change.
7887 2013-04-08 Jakub Jelinek <jakub@redhat.com>
7889 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
7890 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
7891 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
7892 if possible to compute val.
7893 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
7894 For QImode integers don't require anything about precision. Use
7895 const_with_all_bytes_same to find out if the constant doesn't have
7896 repeated bytes in it.
7898 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7900 * config/s390/s390.c (s390_expand_insv): Only accept insertions
7903 2013-04-08 Marek Polacek <polacek@redhat.com>
7905 PR rtl-optimization/48182
7906 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
7909 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7912 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
7913 nuses, make sure we have a label.
7915 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7918 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
7919 (rs6000_emit_swdiv_low_precision): Remove.
7920 (rs6000_emit_swdiv): Rewrite to handle between one and four
7921 iterations of Newton-Raphson generally; modify required number of
7922 iterations for some cases.
7923 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
7925 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
7927 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
7928 set-but-unused variable.
7930 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
7931 basic blocks of released function bodies garbage-collectable.
7933 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
7934 (struct rtl_opt_pass): Add TODO_df_finish.
7936 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
7938 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7940 * config/arm/constraints.md (q): New constraint.
7941 * config/arm/ldrdstrd.md: New file.
7942 * config/arm/arm.md (ldrdstrd.md) New include.
7943 (arm_movdi): Use "q" instead of "r" constraint
7944 for double-word memory access.
7945 (movdf_soft_insn): Likewise.
7946 * config/arm/vfp.md (movdi_vfp): Likewise.
7947 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
7948 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
7949 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
7950 (mem_ok_for_ldrd_strd): Likewise.
7951 (output_move_double): Update assertion.
7953 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7955 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
7957 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7959 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
7960 define_insn_and_split.
7961 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
7963 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7965 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
7966 define_insn_and_split.
7967 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
7968 (shiftsi3_compare): New pattern.
7970 * config/arm/unspecs.md (UNSPEC_RRX): New.
7972 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7974 * config/arm/arm.md (negdi_extendsidi): New pattern.
7975 (negdi_zero_extendsidi): Likewise.
7977 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7979 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
7980 define_insn_and_split.
7981 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
7982 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
7984 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7986 * config/arm/arm.md (arm_subdi3): Convert define_insn into
7987 define_insn_and_split.
7988 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
7989 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
7991 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7993 * config/arm/arm.md (subsi3_carryin): New pattern.
7994 (subsi3_carryin_const): Likewise.
7995 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
7996 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
7998 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8000 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
8002 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8004 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
8005 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
8007 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8009 * config/arm/arm.c (arm_expand_builtin): Change fcode
8010 type to unsigned int.
8012 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8014 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
8016 2013-04-04 Ian Lance Taylor <iant@google.com>
8018 * doc/standards.texi (Standards): The Go frontend supports the Go 1
8021 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
8024 * df-scan.c (df_insn_delete): Disable failing assert.
8026 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8028 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
8029 New function prototype.
8030 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
8031 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
8032 (arm_builtin_vectorized_function): New function.
8034 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8036 * config/arm/arm_neon_builtins.def: New file.
8037 * config/arm/arm.c (neon_builtin_data): Move contents to
8038 arm_neon_builtins.def.
8039 (enum arm_builtins): Include neon builtin definitions.
8040 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
8041 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
8043 2013-04-04 Marek Polacek <polacek@redhat.com>
8045 PR tree-optimization/48186
8046 * predict.c (maybe_hot_frequency_p): Return false if
8047 HOT_BB_FREQUENCY_FRACTION is 0.
8048 (cgraph_maybe_hot_edge_p): Likewise.
8050 2013-04-04 Richard Biener <rguenther@suse.de>
8052 PR tree-optimization/56826
8053 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
8056 2013-04-04 Richard Biener <rguenther@suse.de>
8058 PR tree-optimization/56213
8059 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
8060 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
8062 2013-04-04 Richard Biener <rguenther@suse.de>
8064 PR tree-optimization/56837
8065 * tree-loop-distribution.c (classify_partition): For non-zero
8066 values require that the value has the same precision as its
8067 mode to be useful as memset value.
8069 2013-04-03 Nick Clifton <nickc@redhat.com>
8071 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
8072 (fmssf4): Use fmsf.s on E3V5 architectures.
8073 (fnmasf4): Use fnmaf.s on E3V5 architectures.
8074 (fnmssf4): Use fnmsf.s on E3V5 architectures.
8076 2013-04-03 Jeff Law <law@redhat.com>
8078 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
8079 (lra-eliminations.o): Likewise.
8081 2013-04-03 Teresa Johnson <tejohnson@google.com>
8083 * gcov-io.c (compute_working_sets): Moved most of body of old
8084 compute_working_sets here from profile.c.
8085 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
8086 (gcov_working_set_t): Moved typedef here from basic-block.h
8087 (compute_working_set): Declare.
8088 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
8089 (get_working_sets): Renamed from compute_working_set,
8090 replace most of body with call to new compute_working_sets.
8091 (get_exec_counts): Replace call to compute_working_sets
8092 to get_working_sets.
8093 * profile.h (get_working_sets): Renamed from compute_working_set.
8094 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
8095 to get_working_sets.
8096 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
8097 * gcov-dump.c (dump_working_sets): New function.
8099 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
8101 * hwint.c (sext_hwi, zext_hwi): New functions.
8102 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
8103 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
8104 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
8105 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
8106 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
8107 (sext_hwi, zext_hwi): New functions.
8109 2013-04-03 Jeff Law <law@redhat.com>
8111 PR tree-optimization/56799
8112 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
8113 back test for widening conversion erroneously dropped in prior change.
8115 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8118 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
8119 instead of next_real_insn.
8121 2013-04-03 Marek Polacek <polacek@redhat.com>
8124 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
8126 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8129 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
8131 (thumb1_output_casesi): Likewise.
8132 (thumb2_output_casesi): Likewise.
8134 2013-04-03 Richard Biener <rguenther@suse.de>
8136 PR tree-optimization/56817
8137 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
8139 (tree_unroll_loops_completely_1): ... new function to manually
8140 walk the loop tree, properly defering outer loops of unrolled
8141 loops to later iterations.
8143 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
8145 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
8146 (vectorizable_load): Likewise.
8147 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
8148 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
8150 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
8152 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
8155 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8157 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
8159 2013-04-03 Bin Cheng <bin.cheng@arm.com>
8161 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
8163 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
8165 PR tree-optimization/56790
8166 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
8169 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
8171 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
8173 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
8174 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
8177 2013-04-03 Jakub Jelinek <jakub@redhat.com>
8180 * tree.h (force_folding_builtin_constant_p): New decl.
8181 * builtins.c (force_folding_builtin_constant_p): New variable.
8182 (fold_builtin_constant_p): Fold immediately also if
8183 force_folding_builtin_constant_p.
8185 2013-04-03 Richard Biener <rguenther@suse.de>
8187 PR tree-optimization/56812
8188 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
8189 DRs of the same interleaving chain are independent.
8191 2013-04-02 Jason Merrill <jason@redhat.com>
8193 * gdbinit.in (pbb): Use debug fn.
8195 2013-04-02 Lawrence Crowl <crowl@google.com>
8197 * sese.h (struct ivtype_map_elt_s): Remove unused.
8198 (extern debug_ivtype_map): Remove unused.
8199 (extern eq_ivtype_map_elts): Remove unused.
8200 * sese.c (debug_ivtype_map): Removed unused.
8201 (debug_ivtype_map_1): Removed unused.
8202 (debug_ivtype_elt): Remove unused.
8203 (eq_ivtype_map_elts): Remove unused.
8206 2013-04-02 Kai Tietz <ktietz@redhat.com>
8209 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
8210 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
8211 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
8213 (legitimize_pe_coff_symbol): Likewise.
8214 (is_imported_p): New helper-function.
8215 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
8216 for Windows x64 targets.
8217 (ix86_expand_prologue): Optimize for pe-coff targets.
8218 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
8219 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
8220 medium/large code-model.
8221 (legitimize_pic_address): Likewise.
8222 (legitimize_tls_address): Likewise.
8223 (ix86_expand_call): Likewise.
8224 (x86_output_mi_thunk): Likewise.
8225 (get_dllimport_decl): Add new beimport argument.
8226 (construct_plt_address): Don't assert for x64 pe-coff targets.
8227 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
8229 (SYMBOL_FLAG_STUBVAR): New macro.
8230 (SYMBOL_REF_STUBVAR_P): Likewise.
8231 * config/i386/winnt.c (stub_list): New structure.
8232 (stub_head): New local variable.
8233 (i386_pe_record_stub): New function.
8234 (i386_pe_file_end): Emit refptr-stubs.
8236 2013-04-02 Jakub Jelinek <jakub@redhat.com>
8238 PR rtl-optimization/56745
8239 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
8240 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
8243 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
8244 and both of them are MEM_REFs, just compare first argument for
8245 equality and attempt to deal even with differing offsets.
8248 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
8249 of gimple_clobber_p to be MEM_REF.
8250 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
8251 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
8252 after gimplification.
8253 * asan.c (get_mem_ref_of_assignment): Don't instrument
8254 gimple_clobber_p stmts.
8255 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
8256 gimple_clobber_p stmt if they have MEM_REF lhs and
8257 are dead because of another gimple_clobber_p stmt.
8258 * tree-ssa-live.c (clear_unused_block_pointer): Treat
8259 gimple_clobber_p stmts like debug stmts.
8260 (remove_unused_locals): Remove clobbers with MEM_REF lhs
8261 that refer to unused VAR_DECLs or uninitialized values.
8262 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
8263 gimple_clobber_p stmts if they refer to removed parameters.
8264 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
8267 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
8269 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
8270 using SWI48 mode attribute.
8272 2013-04-02 Wei Mi <wmi@google.com>
8274 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
8275 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
8276 *<rotate_insn><mode>3_mask in i386.md.
8278 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
8280 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
8282 2013-04-02 Richard Biener <rguenther@suse.de>
8284 PR tree-optimization/56778
8285 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
8286 Runtime alias tests are not supported for gather loads.
8287 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
8288 stmts referenced from SSA operands before updating SSA form.
8290 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
8291 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8293 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
8294 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
8295 * config/arm/cortex-a53.md: New file.
8296 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
8297 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
8298 * config/arm/arm.c (arm_issue_rate): Likewise.
8299 * config/arm/arm-tune.md: Regenerate
8300 * config/arm/arm-tables.opt: Regenerate.
8301 * config/arm/arm-cores.def: Add cortex-a53.
8303 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
8305 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
8308 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
8310 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
8311 scalar load/store operations using B/H registers.
8312 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
8314 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
8316 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
8318 * config/aarch64/aarch64.c
8319 (aarch64_simd_scalar_immediate_valid_for_move): New.
8320 * config/aarch64/aarch64-protos.h
8321 (aarch64_simd_scalar_immediate_valid_for_move): New.
8322 * config/aarch64/constraints.md (Dh, Dq): New.
8323 * config/aarch64/iterators.md (hq): New.
8325 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
8327 * reorg.c (get_branch_condition): Deal with conditional returns.
8328 (fill_simple_delay_slots): Remove dead code dealing with jumps.
8330 2013-04-01 Wei Mi <wmi@google.com>
8332 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
8333 Truncate operand 2 using %b asm operand modifier.
8334 (*<shift_insn><mode>3_mask): Ditto.
8335 (*<rotate_insn><mode>3_mask): Ditto.
8337 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
8340 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
8342 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
8344 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
8346 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
8348 2013-03-30 Lawrence Crowl <crowl@google.com>
8350 * dse.c (clear_alias_sets): Remove never set.
8351 (disqualified_clear_alias_sets): Remove never set.
8352 (clear_alias_mode_pool): Remove never set.
8353 (dse_step0): Remove condition that is never true.
8354 (canon_address): Remove condition that is never true.
8355 (dse_step7): Remove condition that is never true.
8356 (rest_of_handle_dse): Remove condition that is never true.
8357 (rest_of_handle_dse::did_global): Remove never read from above.
8358 (dse_step2_spill): Remove never called from above.
8359 (dse_step5_spill): Remove never called from above.
8361 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
8363 * doc/md.texi (Standard Names) <casesi>: Update documentation for
8364 JUMP_TABLE_DATA changes.
8365 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
8366 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
8367 (Insns) <jump_table_data>: New entry.
8368 * doc/tm.texi: Regenerate.
8370 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
8372 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
8373 for table jump at the end of a basic block using tablejump_p.
8374 * targhooks.c (default_invalid_within_doloop): Likewise.
8375 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
8376 target hook implementation that is identical to the default hook.
8377 (rs6000_invalid_within_doloop): Remove.
8379 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
8380 unused variable from tablejump_p call.
8382 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
8383 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
8384 (INSN_DELETED_P): Likewise.
8385 (emit_jump_table_data): New prototype.
8386 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
8387 after 4th as unused.
8388 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
8389 * sched-vis.c (print_insn): Likewise.
8390 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
8391 insn for compatibility with back ends that use next_active_insn to
8392 identify jump table data.
8393 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
8394 (remove_insn): Likewise.
8395 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
8397 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
8398 (emit_jump_table_data): New function.
8400 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
8401 basic block, a JUMP_TABLE_DATA never is.
8402 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
8403 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
8404 off from code handling real insns.
8405 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
8406 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
8407 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
8408 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
8409 is not a NONDEBUG_INSN_P.
8410 * ira-costs.c (scan_one_insn): Likewise.
8411 * jump.c (mark_all_labels): Likewise.
8412 (mark_jump_label_1): Likewise.
8413 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
8414 * lra.c (get_insn_freq): Expect all insns reaching here to be in
8416 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
8417 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
8418 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
8419 JUMP_TABLE_DATA_P insns.
8420 (calculate_elim_costs_all_insns): Likewise.
8421 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
8422 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
8423 (delete_output_reload): Code style fixups.
8424 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
8425 insn flags on this non-insn.
8426 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
8427 as scheduling barriers, for pre-change compatibility.
8428 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
8429 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
8431 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
8432 redundant JUMP_TABLE_DATA_P test.
8433 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
8434 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
8435 (frv_for_each_packet): Likewise.
8436 * config/i386/i386.c (min_insn_size): Likewise.
8437 (ix86_avoid_jump_mispredicts): Likewise.
8438 * config/m32r/m32r.c (m32r_is_insn): Likewise.
8439 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
8440 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
8441 (mips16_insn_length): Robustify.
8442 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
8443 (mips16_split_long_branches): Likewise.
8444 * config/pa/pa.c (pa_combine_instructions): Likewise.
8445 * config/rs6000/rs6000.c (get_next_active_insn): Treat
8446 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
8447 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
8448 as contributing to pool range lengths.
8449 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
8450 Remove redundant JUMP_TABLE_DATA_P test.
8451 (sh_loop_align): Likewise.
8452 (split_branches): Likewise.
8453 (sh_insn_length_adjustment): Likewise.
8454 * config/spu/spu.c (get_branch_target): Likewise.
8456 2013-03-29 Jan Hubicka <jh@suse.cz>
8458 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
8459 gcov streaming; stream hot bb threshold to ltrans.
8460 * predict.c (get_hot_bb_threshold): Break out from ....
8461 (maybe_hot_count_p): ... here.
8462 (set_hot_bb_threshold): New function.
8463 * lto-section-in.c (lto_section_name): Add profile.
8464 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
8465 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
8467 (histogram_entry): New structure.
8468 (histogram, histogram_pool): New global vars.
8469 (histogram_hash): New structure.
8470 (histogram_hash::hash): New method.
8471 (histogram_hash::equal): Likewise.
8472 (account_time_size): New function.
8473 (cmp_counts): New function.
8474 (dump_histogram): New function.
8475 (ipa_profile_generate_summary): New function.
8476 (ipa_profile_write_summary): New function.
8477 (ipa_profile_read_summary): New function.
8478 (ipa_profile): Decide on threshold.
8479 (pass_ipa_profile): Add ipa_profile_write_summary and
8480 ipa_profile_read_summary.
8481 * Makefile.in (ipa.o): Update dependencies.
8482 * lto-streamer.h (LTO_section_ipa_profile): New section.
8484 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
8486 * tree.h (VAR_P): New.
8488 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
8491 * doc/invoke.texi ([-fwhole-program]): Fix typo.
8493 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
8495 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
8496 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
8497 (control_flow_insn_p): Likewise.
8498 * cfgrtl.c (duplicate_insn_chain): Likewise.
8499 * final.c (get_attr_length_1): Likewise.
8500 (shorten_branches): Likewise.
8501 (final_scan_insn): Likewise.
8502 * function.c (instantiate_virtual_regs): Likewise.
8503 * gcse.c (insert_insn_end_basic_block): Likewise.
8504 * ira-costs.c (scan_one_insn): Likewise.
8505 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
8506 * lra.c (check_rtl): Likewise.
8507 * reload1.c (elimination_costs_in_insn): Likewise.
8508 * reorg.c (follow_jumps): Likewise.
8510 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
8511 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
8512 (thumb_far_jump_used_p): Likewise.
8513 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
8514 (workaround_speculation): Likewise.
8515 (add_sched_insns_for_speculation): Likewise.
8516 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
8517 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
8518 (frv_for_each_packet): Likewise.
8519 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
8520 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
8521 (final_emit_insn_group_barriers): Likewise.
8522 * config/m32r/m32r.c (m32r_is_insn): Likewise.
8523 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
8524 (mips16_insn_length): Likewise.
8525 * config/pa/pa.c (pa_reorg): Likewise.
8526 (pa_combine_instructions): Likewise.
8527 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
8528 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
8529 (sh_reorg): Likewise.
8530 (split_branches): Likewise.
8531 * config/spu/spu.c (get_branch_target): Likewise.
8533 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
8536 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
8538 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
8539 Fix declaration name.
8541 2013-03-28 Lawrence Crowl <crowl@google.com>
8543 * graphds.h (struct graph.indicies): Remove unused.
8544 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
8545 (SCOP_ORIGINAL_PDDRS): Remove unused.
8546 * sese.h (extern insert_loop_close_phis): Removed unused.
8547 (extern insert_guard_phis): Removed unused.
8548 (extern ivtype_map_elt_info): Removed unused.
8549 (new_ivtype_map_elt): Removed unused.
8550 * sese.c (ivtype_map_elt_info): Removed unused.
8552 2013-03-28 Lawrence Crowl <crowl@google.com>
8554 * Makefile.in: Add several missing include dependences.
8556 (test-dump.o): New. This object is not added to any executable,
8557 but is present for ad-hoc testing.
8559 (debug (const bitmap_head_def &)): New.
8560 (debug (const bitmap_head_def *)): New.
8562 (extern debug (const bitmap_head_def &)): New.
8563 (extern debug (const bitmap_head_def *)): New.
8565 (debug (edge_def &)): New.
8566 (debug (edge_def *)): New.
8568 (debug (basic_block_def &)): New.
8569 (debug (basic_block_def *)): New.
8571 (dump_node (const_tree, int, FILE *)): Correct source file.
8573 (debug (die_struct &)): New.
8574 (debug (die_struct *)): New.
8576 (extern debug (die_struct &)): New.
8577 (extern debug (die_struct *)): New.
8578 * gimple-pretty-print.c
8579 (debug (gimple_statement_d &)): New.
8580 (debug (gimple_statement_d *)): New.
8581 * gimple-pretty-print.h
8582 (extern debug (gimple_statement_d &)): New.
8583 (extern debug (gimple_statement_d *)): New.
8585 (debug (ira_allocno_copy &)): New.
8586 (debug (ira_allocno_copy *)): New.
8587 (debug (ira_allocno &)): New.
8588 (debug (ira_allocno *)): New.
8590 (extern debug (ira_allocno_copy &)): New.
8591 (extern debug (ira_allocno_copy *)): New.
8592 (extern debug (ira_allocno &)): New.
8593 (extern debug (ira_allocno *)): New.
8595 (debug (live_range &)): New.
8596 (debug (live_range *)): New.
8598 (debug (lra_live_range &)): New.
8599 (debug (lra_live_range *)): New.
8601 (debug (lra_live_range &)): New.
8602 (debug (lra_live_range *)): New.
8604 (debug (omega_pb_d &)): New.
8605 (debug (omega_pb_d *)): New.
8607 (extern debug (omega_pb_d &)): New.
8608 (extern debug (omega_pb_d *)): New.
8610 (debug (const rtx_def &)): New.
8611 (debug (const rtx_def *)): New.
8613 (debug_tree (tree): Move within file.
8614 (debug_raw (const tree_node &)): New.
8615 (debug_raw (const tree_node *)): New.
8616 (dump_tree_via_hooks (const tree_node *, int)): New.
8617 (debug (const tree_node &)): New.
8618 (debug (const tree_node *)): New.
8619 (debug_verbose (const tree_node &)): New.
8620 (debug_verbose (const tree_node *)): New.
8621 (debug_head (const tree_node &)): New.
8622 (debug_head (const tree_node *)): New.
8623 (debug_body (const tree_node &)): New.
8624 (debug_body (const tree_node *)): New.
8625 (debug_vec_tree (tree): Move and reimplement in terms of dump.
8626 (debug (vec<tree, va_gc> &)): New.
8627 (debug (vec<tree, va_gc> *)): New.
8629 (extern debug (const rtx_def &)): New.
8630 (extern debug (const rtx_def *)): New.
8632 (debug_raw (simple_bitmap_def &)): New.
8633 (debug_raw (simple_bitmap_def *)): New.
8634 (debug (simple_bitmap_def &)): New.
8635 (debug (simple_bitmap_def *)): New.
8637 (extern debug (simple_bitmap_def &)): New.
8638 (extern debug (simple_bitmap_def *)): New.
8639 (extern debug_raw (simple_bitmap_def &)): New.
8640 (extern debug_raw (simple_bitmap_def *)): New.
8642 (debug (vinsn_def &)): New.
8643 (debug (vinsn_def *)): New.
8644 (debug_verbose (vinsn_def &)): New.
8645 (debug_verbose (vinsn_def *)): New.
8646 (debug (expr_def &)): New.
8647 (debug (expr_def *)): New.
8648 (debug_verbose (expr_def &)): New.
8649 (debug_verbose (expr_def *)): New.
8650 (debug (vec<rtx> &)): New.
8651 (debug (vec<rtx> *)): New.
8653 (extern debug (vinsn_def &)): New.
8654 (extern debug (vinsn_def *)): New.
8655 (extern debug_verbose (vinsn_def &)): New.
8656 (extern debug_verbose (vinsn_def *)): New.
8657 (extern debug (expr_def &)): New.
8658 (extern debug (expr_def *)): New.
8659 (extern debug_verbose (expr_def &)): New.
8660 (extern debug_verbose (expr_def *)): New.
8661 (extern debug (vec<rtx> &)): New.
8662 (extern debug (vec<rtx> *)): New.
8664 (_list_iter_cond_expr): Make inline instead of static.
8666 (debug (sreal &)): New.
8667 (debug (sreal *)): New.
8669 (extern debug (sreal &)): New.
8670 (extern debug (sreal *)): New.
8672 (extern debug_raw (const tree_node &)): New.
8673 (extern debug_raw (const tree_node *)): New.
8674 (extern debug (const tree_node &)): New.
8675 (extern debug (const tree_node *)): New.
8676 (extern debug_verbose (const tree_node &)): New.
8677 (extern debug_verbose (const tree_node *)): New.
8678 (extern debug_head (const tree_node &)): New.
8679 (extern debug_head (const tree_node *)): New.
8680 (extern debug_body (const tree_node &)): New.
8681 (extern debug_body (const tree_node *)): New.
8682 (extern debug (vec<tree, va_gc> &)): New.
8683 (extern debug (vec<tree, va_gc> *)): New.
8685 (debug (struct loop &)): New.
8686 (debug (struct loop *)): New.
8687 (debug_verbose (struct loop &)): New.
8688 (debug_verbose (struct loop *)): New.
8689 * tree-dump.c: Add header dependence.
8691 (extern debug (struct loop &)): New.
8692 (extern debug (struct loop *)): New.
8693 (extern debug_verbose (struct loop &)): New.
8694 (extern debug_verbose (struct loop *)): New.
8696 (debug (data_reference &)): New.
8697 (debug (data_reference *)): New.
8698 (debug (vec<data_reference_p> &)): New.
8699 (debug (vec<data_reference_p> *)): New.
8700 (debug (vec<ddr_p> &)): New.
8701 (debug (vec<ddr_p> *)): New.
8703 (extern debug (data_reference &)): New.
8704 (extern debug (data_reference *)): New.
8705 (extern debug (vec<data_reference_p> &)): New.
8706 (extern debug (vec<data_reference_p> *)): New.
8707 (extern debug (vec<ddr_p> &)): New.
8708 (extern debug (vec<ddr_p> *)): New.
8710 (debug (pt_solution &)): New.
8711 (debug (pt_solution *)): New.
8713 (extern debug (pt_solution &)): New.
8714 (extern debug (pt_solution *)): New.
8716 (debug (_var_map &)): New.
8717 (debug (_var_map *)): New.
8718 (debug (tree_live_info_d &)): New.
8719 (debug (tree_live_info_d *)): New.
8721 (extern debug (_var_map &)): New.
8722 (extern debug (_var_map *)): New.
8723 (extern debug (tree_live_info_d &)): New.
8724 (extern debug (tree_live_info_d *)): New.
8726 2013-03-28 Jan Hubicka <jh@suse.cz>
8728 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
8730 2013-03-28 Ian Bolton <ian.bolton@arm.com>
8732 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
8733 record only when desired or required.
8735 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
8737 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
8738 *vec_extractv2di_1_rex64. Use x64 isa attribute.
8740 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8742 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
8743 (*andsi3_compare0_uxtw): New pattern.
8744 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
8745 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
8747 2013-03-28 Jan Hubicka <jh@suse.cz>
8749 * data-streamer-in.c (streamer_read_gcov_count): New function.
8750 * gimple-streamer-out.c: Include value-prof.h.
8751 (output_gimple_stmt): Output histogram.
8752 (output_bb): Use streamer_write_gcov_count.
8753 * value-prof.c: Include data-streamer.h
8754 (dump_histogram_value): Add HIST_TYPE_MAX.
8755 (stream_out_histogram_value): New function.
8756 (stream_in_histogram_value): New function.
8757 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
8758 (stream_out_histogram_value, stream_in_histogram_value): Declare.
8759 * data-streamer-out.c (streamer_write_gcov_count): New function.
8760 (streamer_write_gcov_count_stream): New function.
8761 * lto-cgraph.c (lto_output_edge): Update counter streaming.
8762 (lto_output_node): Likewise.
8763 (input_node, input_edge): Likewise.
8764 * lto-streamer-out.c (output_cfg): Update streaming.
8765 * lto-streamer-in.c (input_cfg): Likewise.
8766 * data-streamer.h (streamer_write_gcov_count,
8767 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
8768 * gimple-streamer-in.c: Include value-prof.h
8769 (input_gimple_stmt): Input histograms.
8770 (input_bb): Update profile streaming.
8772 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8774 * genmodes.c (emit_max_int): New function.
8775 (emit_insn_modes_h): Added call to emit_max_function.
8776 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
8778 * machmode.def: Fixed comment.
8780 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8782 * combine.c (try_combine): Removed useless assert.
8783 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
8785 2013-03-28 Marek Polacek <polacek@redhat.com>
8786 Richard Biener <rguenther@suse.de>
8788 PR tree-optimization/56695
8789 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
8790 build signed result of a vector comparison.
8791 * tree-cfg.c (verify_gimple_comparison): Check that a result
8792 of a vector comparison has signed type.
8794 2013-03-28 Richard Biener <rguenther@suse.de>
8796 PR tree-optimization/37021
8797 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
8798 do not restrict gaps between groups.
8799 * tree-vect-stmts.c (vectorizable_load): Properly account for
8800 a gap between groups.
8802 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
8804 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
8805 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
8808 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
8810 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
8811 * doc/extend.texi (Named Address Spaces): Ditto.
8812 (Variable Attributes): Ditto.
8814 2013-03-27 Kai Tietz <ktietz@redhat.com>
8816 * config.build: Add support for cygwin x64 target.
8817 * config.gcc: Likewise.
8818 * config.host: Likewise.
8819 * configure.ac: Likewise
8820 * configure: Regenerated.
8822 2013-03-27 Kai Tietz <ktietz@redhat.com>
8824 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
8825 * config/i386/t-cygwin-w64: New file.
8826 * config/i386/cygwin-w64.h: New file.
8827 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
8828 and add support for x64-cygwin target.
8829 (CPP_SPEC): Likewise.
8830 (CXX_WRAP_SPEC_LIST): Undefine before define.
8831 (LIBGCJ_SONAME): Use 15 as version.
8833 2013-03-27 Richard Biener <rguenther@suse.de>
8835 PR tree-optimization/56716
8836 * tree-ssa-structalias.c (perform_var_substitution): Adjust
8837 dumping for ref nodes.
8839 2013-03-27 Martin Jambor <mjambor@suse.cz>
8841 PR tree-optimization/55334
8842 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
8843 restricted pointers to arrays.
8845 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
8847 * Makefile.in (.SUFFIXES): Add .cc.
8848 (.c.o): Apply same recipe for implicit rule .cc.o.
8850 2013-03-27 Richard Biener <rguenther@suse.de>
8852 PR tree-optimization/37021
8853 * tree-vect-data-refs.c (vect_check_strided_load): Allow
8854 REALPART/IMAGPART_EXPRs around the supported refs.
8855 * tree-ssa-structalias.c (find_func_aliases): Assume that
8856 floating-point values are not used to transfer pointers.
8858 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
8860 * target.def (TARGET_HAS_IFUNC_P): New target hook.
8861 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
8862 * doc/tm.texi: Regenerate.
8863 * targhooks.h (default_has_ifunc_p): New.
8864 * targhooks.c (default_has_ifunc_p): Ditto.
8865 * config/linux-protos.h: New file.
8866 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
8867 this hook for linux which disables support of indirect functions in
8869 * config/linux-android.c: New file.
8870 * config/t-linux-android.c: Ditto.
8871 * config.gcc: Added new object file linux-android.o.
8872 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
8873 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
8874 * varasm.c (do_assemble_alias): Likewise.
8875 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
8876 doesn't support indirect functions.
8877 * configure: Regenerate.
8879 2013-03-27 Bin Cheng <bin.cheng@arm.com>
8882 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
8883 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
8886 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8888 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
8890 2013-03-27 Terry Guo <terry.guo@arm.com>
8892 * config/arm/arm-cores.def: Added core cortex-r7.
8893 * config/arm/arm-tune.md: Regenerated.
8894 * config/arm/arm-tables.opt: Regenerated.
8895 * doc/invoke.texi: Added entry for core cortex-r7.
8897 2013-03-27 Walter Lee <walt@tilera.com>
8899 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
8900 double-decrement of next_scratch_regno.
8902 2013-03-27 Walter Lee <walt@tilera.com>
8904 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
8906 (insn_v1mulus): Ditto.
8907 (insn_v2muls): Ditto.
8909 2013-03-27 Walter Lee <walt@tilera.com>
8911 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
8912 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
8914 2013-03-27 Walter Lee <walt@tilera.com>
8916 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
8917 (*sibcall_value): Ditto.
8919 2013-03-27 Walter Lee <walt@tilera.com>
8921 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
8922 (insn_mnz_v8qi): ... this ...
8923 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
8925 (insn_v<n>mnz): Replaced by ...
8926 (insn_v1mnz): ... this ...
8927 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
8929 (insn_mz_<mode>): Replaced by ...
8930 (insn_mz_v8qi): ... this ...
8931 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
8933 (insn_v<n>mz): Replaced by ...
8934 (insn_v1mz): ... this ...
8935 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
8938 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
8940 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
8942 2013-03-26 Roland McGrath <mcgrathr@google.com>
8944 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
8945 than fprintf with a non-constant, non-format string.
8947 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
8949 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
8950 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
8951 operand 0 predicate.
8952 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
8953 attribute. Use general_x64nomem_operand as operand 1 predicate.
8954 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
8955 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
8956 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
8957 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
8958 (mov<mode>_insv_1): Remove expander. Merge insn with
8959 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
8960 Use general_x64nomem_operand as operand 1 predicate.
8961 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
8962 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
8963 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
8964 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
8965 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
8966 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
8967 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
8968 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
8969 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
8970 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
8971 (general_x64nomem_operand): Ditto.
8973 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
8975 * config/rtems.opt: Add -pthread option.
8977 2013-03-26 Richard Biener <rguenther@suse.de>
8979 * alias.c (find_base_term): Avoid redundant and not used recursion.
8980 (base_alias_check): Get the initial base term from the caller.
8981 (true_dependence_1): Compute and pass base terms to base_alias_check.
8982 (write_dependence_p): Likewise.
8983 (may_alias_p): Likewise.
8985 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
8987 * config/aarch64/aarch64.c (aarch64_classify_address): Support
8988 PC-relative load in SI modes and above only.
8990 2013-03-26 Xinyu Qi <xyqi@marvell.com>
8992 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
8993 * config/arm/iwmmxt.md (WCGR0): Update.
8994 (WCGR1, WCGR2, WCGR3): Likewise.
8996 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
8998 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
8999 Use x64 and nox64 isa attributes.
9001 2013-03-26 Richard Biener <rguenther@suse.de>
9003 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
9004 alignment computations and rely on get_object_alignment_1
9005 for the !TYPE_P case.
9006 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
9008 2013-03-26 Walter Lee <walt@tilera.com>
9010 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
9011 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
9013 2013-03-25 Jeff Law <law@redhat.com>
9015 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
9016 check for INTEGRAL_TYPE_P that was missing due to checking in
9017 wrong version of prior patch.
9019 2013-03-25 Walter Lee <walt@tilera.com>
9021 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
9022 TILEGX_INSN_SHUFFLEBYTES1.
9023 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
9025 (tilegx_builtins): Ditto.
9026 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
9028 2013-03-25 Walter Lee <walt@tilera.com>
9030 * config/tilegx/tilegx.md (floatsisf2): New pattern.
9031 (floatunssisf2): New pattern.
9032 (floatsidf2): New pattern.
9033 (floatunssidf2): New pattern.
9035 2013-03-25 Walter Lee <walt@tilera.com>
9037 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
9038 tests for constraint J, K, N, P.
9040 2013-03-25 Walter Lee <walt@tilera.com>
9042 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
9043 Use indirect/pcrel encoding.
9044 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
9047 2013-03-25 Steve Ellcey <sellcey@mips.com>
9049 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
9050 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
9051 * config/mips/mips.c (mips_option_override): Set IMADD default.
9052 * config/mips/mips.h (PTF_AVOID_IMADD): New.
9053 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
9054 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
9055 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
9056 * doc/invoke.texi (-mimadd/-mno-imadd): New.
9058 2013-03-25 Jeff Law <law@redhat.com>
9060 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
9061 slightly to avoid creating and folding useless trees. Simplify
9062 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
9064 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
9066 * config/i386/i386.md (*zero_extendsidi2): Merge with
9067 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
9068 * config/i386/predicates.md (x86_64_zext_operand): Rename from
9069 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
9070 targets. Clarify comment.
9072 2013-03-25 Martin Jambor <mjambor@suse.cz>
9074 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
9075 pass-through jump functions differently.
9076 (ipa_read_jump_function): Likewise. Also use setter functions to set
9079 2013-03-25 Martin Jambor <mjambor@suse.cz>
9081 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
9082 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
9084 (ipa_get_indirect_edge_target): New function.
9085 (devirtualization_time_bonus): New parameter known_aggs, pass it to
9086 ipa_get_indirect_edge_target. Update all callers.
9087 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
9088 ipa_get_indirect_edge_target_1 instead of calling
9089 ipa_get_indirect_edge_target.
9090 (create_specialized_node): Pass aggvlas to
9091 ipcp_discover_new_direct_edges.
9093 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9095 * config/arm/arm.md (f_sels, f_seld): New types.
9096 (*cmov<mode>): New pattern.
9097 * config/arm/predicates.md (arm_vsel_comparison_operator): New
9100 2013-03-25 Kai Tietz <ktietz@redhat.com>
9102 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
9103 POSIX-printf for mingw-hosted builds.
9105 2013-03-25 Richard Biener <rguenther@suse.de>
9108 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
9109 must-not-throw stmt location.
9111 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9113 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
9114 Emit load-acquire versions when acq is true.
9115 (arm_emit_store_exclusive): Add rel parameter.
9116 Emit store-release versions when rel is true.
9117 (arm_split_compare_and_swap): Use acquire-release instructions
9119 of barriers when appropriate.
9120 (arm_split_atomic_op): Likewise.
9121 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
9122 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
9123 (VUNSPEC_SLX): Likewise.
9124 (VUNSPEC_LDA): Likewise.
9125 (VUNSPEC_STL): Likewise.
9126 * config/arm/sync.md (atomic_load<mode>): New pattern.
9127 (atomic_store<mode>): Likewise.
9128 (arm_load_acquire_exclusive<mode>): Likewise.
9129 (arm_load_acquire_exclusivesi): Likewise.
9130 (arm_load_acquire_exclusivedi): Likewise.
9131 (arm_store_release_exclusive<mode>): Likewise.
9133 2013-03-25 Catherine Moore <clm@codesourcery.com>
9135 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
9136 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
9137 * config/mip/predicates.md (lwsp_swsp_operand,
9138 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
9139 sb16_operand, db4_operand, db7_operand, ib3_operand,
9140 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
9141 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
9142 andi16_operand): New predicates.
9143 * config/mips/mips.md (compression): New attribute.
9144 (enabled): New attribute.
9145 (length): Consider compression in computing length.
9146 (shift_compression): New code attribute.
9147 (*add<mode>3): New operands. Record compression.
9148 (sub<mode>3): Likewise.
9149 (one_cmpl<mode>2): Likewise.
9150 (*and<mode>3): Likewise.
9151 (*ior<mode>3): Likewise.
9152 (unnamed pattern for xor): Likewise.
9153 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
9154 (*<optab><mode>3): Likewise.
9155 (*mov<mode>_internal: Likewise.
9156 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
9157 (mips_unsigned_immediate_p): New.
9158 (umips_lwsp_swsp_address_p): New.
9159 (m16_based_address_p): New.
9160 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
9161 (mips_unsigned_immediate_p): New prototype.
9162 (lwsp_swsp_address_p): New prototype.
9163 (m16_based_address_p): New prototype.
9164 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
9165 (mips_signed_immediate_p): New function.
9166 (m16_based_address_p): New function.
9167 (lwsp_swsp_address_p): New function.
9168 (mips_print_operand_punctuation): Recognize short delay slot insns
9169 for microMIPS.add<mode>3"
9171 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9174 * config/arm/iterators.md (v_cmp_result): New mode attribute.
9175 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
9177 2013-03-25 Richard Biener <rguenther@suse.de>
9179 PR tree-optimization/56689
9180 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
9183 2013-03-25 Richard Biener <rguenther@suse.de>
9185 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
9187 (memory_references): Likewise.
9188 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
9189 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
9190 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
9191 (gather_mem_refs_in_loops): Fold into ...
9192 (analyze_memory_references): ... this. Move initialization
9193 to tree_ssa_lim_initialize.
9194 (fill_always_executed_in): Rename to ...
9195 (fill_always_executed_in_1): ... this.
9196 (fill_always_executed_in): Move contains_call computation to
9197 this new function from ...
9198 (tree_ssa_lim_initialize): ... here.
9199 (tree_ssa_lim): Call fill_always_executed_in.
9201 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
9203 * postreload.c (reload_combine): Fix code detecting returns.
9205 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
9207 * function.c (emit_use_return_register_into_block): On cc0 targets,
9208 do not emit the sequence between cc0 setter and user.
9210 2013-03-25 Kai Tietz <ktietz@redhat.com>
9212 * config/i386/predicates.md (local_symbolic_operand): Interpret
9213 dll-imported symbols as none-local.
9215 2013-03-25 Richard Biener <rguenther@suse.de>
9217 * tree-ssa-loop-im.c (struct depend): Remove.
9218 (struct lim_aux_data): Make depends a vec of gimples.
9219 (free_lim_aux_data): Adjust.
9220 (add_dependency): Likewise.
9221 (set_level): Likewise.
9223 2013-03-25 Richard Biener <rguenther@suse.de>
9226 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
9227 the pointer returned by calls with ECF_MALLOC set.
9229 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
9231 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
9233 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
9235 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
9236 using MMXMODE mode iterator.
9237 (*move<mode>_internal): Merge with *movv2sf_internal and
9238 *movv2sf_internal_rex64 using MMXMODE mode iterator.
9240 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
9242 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
9243 (record_last_mem_set_info): Likewise.
9245 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
9246 of XNEWVEC followed by memset.
9247 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
9249 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
9251 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
9252 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
9253 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
9254 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
9255 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
9256 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
9257 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
9258 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
9259 BARRIER_P instead of GET_CODE.
9261 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
9263 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
9264 inaccuracy in the probing code.
9266 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
9267 (ctrapdi4): Likewise.
9269 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
9271 * calls.c (expand_call): Add missing guard to code handling return
9272 of non-BLKmode structures in MSB.
9273 * function.c (expand_function_end): Likewise.
9275 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
9277 * combine.c (try_combine): Adjust comment. Do not add the set of
9278 insn #0 if the destination indirectly is set or dies in insn #2.
9279 Tidy up code to distribute a new note.
9281 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
9283 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
9284 also for alternatives 16 and 17.
9286 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
9288 * config/i386/sse.md (*mov<mode>_internal): Merge with
9289 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
9290 Emit insn template depending on type attribute. Use
9291 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
9292 movd instead of movq mnemonic for interunit moves. Rewrite mode
9293 attribute calculation. Remove unit attribute calculation.
9294 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
9295 Set prefix_data16 attribute for DImode ssemov types.
9296 Use Ym instead of y for SSE-MMX conversion alternatives.
9297 Reorder operand constraints.
9299 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
9301 * df.h (df_insn_delete): Adjust prototype.
9302 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
9303 and let it decide whether mark the basic block dirty.
9304 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
9305 * df-scan.c (df_insn_info_delete): New helper function, split
9306 off from df_insn_delete.
9307 (df_scan_free_bb_info): Use it.
9308 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
9310 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
9311 that the insn is actually an insn and it has a non-NULL basic block.
9312 Do not mark basic block dirty if only deleting a DEBUG_INSN.
9314 2013-03-22 Richard Biener <rguenther@suse.de>
9316 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
9318 (mem_ref_alloc): Do not allocate them.
9319 (refs_independent_p): Do not query or maintain a cache.
9321 2013-03-22 Richard Biener <rguenther@suse.de>
9323 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
9324 (gather_mem_refs_in_loops): Do not compute it.
9325 (analyze_memory_references): Do not allocate it.
9326 (tree_ssa_lim_finalize): Do not free it.
9327 (for_all_locs_in_loop): Do not query all_refs_in_loop.
9329 2013-03-22 Richard Biener <rguenther@suse.de>
9331 * is-a.h (as_a): Use gcc_checking_assert.
9333 2013-03-22 Ian Bolton <ian.bolton@arm.com>
9335 * config/aarch64/aarch64.c (aarch64_print_operand): New
9336 format specifier for printing a constant in hex.
9337 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
9338 format specifier for printing second operand.
9340 2013-03-22 Richard Biener <rguenther@suse.de>
9342 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
9344 (gather_mem_refs_in_loops): Perform store accumulation here.
9345 (create_vop_ref_mapping_loop): Remove.
9346 (create_vop_ref_mapping): Likewise.
9347 (analyze_memory_references): Initialize refs_stored_in_loop.
9348 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
9349 (record_indep_loop): Remove.
9350 (record_dep_loop): New function.
9351 (ref_indep_loop_p_1): Adjust to only walk over references
9352 in the loop, not its subloops.
9353 (ref_indep_loop_p): Rename to ...
9354 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
9355 maintaining a more fine-grained cache.
9356 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
9357 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
9359 2013-03-22 Richard Biener <rguenther@suse.de>
9361 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
9362 (struct mem_ref): Make accesses_in_loop a vec of a vec of
9363 aggregate mem_ref_loc.
9364 (free_mem_ref_locs): Inline into ...
9365 (memref_free): ... this and adjust.
9366 (mem_ref_alloc): Adjust.
9367 (mem_ref_locs_alloc): Remove.
9368 (record_mem_ref_loc): Adjust.
9369 (get_all_locs_in_loop): Rewrite into ...
9370 (for_all_locs_in_loop): ... this iterator.
9371 (rewrite_mem_ref_loc): New functor.
9372 (rewrite_mem_refs): Use for_all_locs_in_loop.
9373 (sm_set_flag_if_changed): New functor.
9374 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
9375 (ref_always_accessed): New functor.
9376 (ref_always_accessed_p): Use for_all_locs_in_loop.
9378 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
9380 * tree-pass.h (PROP_gimple_lvec): New.
9381 * passes.c (dump_properties): Handle PROP_gimple_lvec.
9382 (init_optimization_passes): Move pass_lower_vector.
9383 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
9385 (pass_lower_vector): Provide PROP_gimple_lvec.
9386 (pass_lower_vector_ssa): Likewise.
9387 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
9389 2013-03-21 Mark Wielaard <mjw@redhat.com>
9391 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
9393 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
9395 * config/i386/i386.md (*movdi_internal): Disparage slightly
9396 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
9397 conversion alternatives.
9399 2013-03-21 Jakub Jelinek <jakub@redhat.com>
9402 * diagnostic.def (DK_WERROR): New kind.
9403 * diagnostic.h (werrorcount): Define.
9404 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
9405 promoted to DK_ERROR, increment DK_WERROR counter instead of
9407 * toplev.c (toplev_main): Call print_ignored_options even if
9408 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
9409 even if just werrorcount is non-zero.
9412 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
9414 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
9415 (string_cst_pool_decl): New function.
9416 (optimize_one_addr_into_implicit_ptr): New function.
9417 (resolve_addr_in_expr): Optimize DWARF location expression
9418 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
9419 which doesn't live in memory, but has DW_AT_location or
9420 DW_AT_const_value, or refers to a string literal, into
9421 DW_OP_GNU_implicit_pointer.
9422 (optimize_location_into_implicit_ptr): New function.
9423 (resolve_addr): If removing DW_AT_location of a variable because
9424 it was DW_OP_addr of address of the variable, but the variable doesn't
9425 live in memory, try to emit const value attribute for the initializer.
9427 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
9429 * tree.h (VECTOR_TYPE_P): New macro.
9430 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
9432 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
9433 VEC_COND_EXPR cannot be lvalues.
9434 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
9436 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
9438 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
9439 Restrict the transformation to equal modes.
9441 2013-03-21 Richard Biener <rguenther@suse.de>
9443 PR tree-optimization/39326
9444 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
9445 (MEM_ANALYZABLE): Adjust.
9446 (record_mem_ref_loc): Move bitmap ops ...
9447 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
9448 unanalyzable refs, do not record locations for it.
9449 (analyze_memory_references): Allocate ref zero as shared
9451 (refs_independent_p): Do not test for unanalyzed mems here.
9452 (ref_indep_loop_p_1): Special-case disambiguation against
9454 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
9456 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
9458 * config/arm/arm-protos.h (tune_params): Add
9459 prefer_neon_for_64bits field.
9460 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
9461 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
9462 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
9463 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
9464 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
9465 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
9466 (arm_option_override): Handle -mneon-for-64bits new option.
9467 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
9468 (prefer_neon_for_64bits): Declare new variable.
9469 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
9470 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
9471 (arch_enabled): Handle new arch types. Remove support for onlya8
9473 (one_cmpldi2): Use new arch names.
9474 (zero_extend<mode>di2, extend<mode>di2): Ditto.
9475 * config/arm/arm.opt (mneon-for-64bits): Add option.
9476 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
9477 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
9478 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
9480 * doc/invoke.texi (-mneon-for-64bits): Document.
9482 2013-03-21 Richard Biener <rguenther@suse.de>
9484 PR tree-optimization/39326
9485 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
9486 (sort_bbs_in_loop_postorder_cmp): New function.
9487 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
9489 2013-03-21 Richard Biener <rguenther@suse.de>
9491 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
9492 (vect_insert_into_interleaving_chain): Likewise.
9493 (vect_drs_dependent_in_basic_block): Inline ...
9494 (vect_slp_analyze_data_ref_dependence): ... here. New function,
9496 (vect_analyze_data_ref_dependence): ... here. Simplify.
9497 (vect_check_interleaving): Simplify.
9498 (vect_analyze_data_ref_dependences): Likewise. Split out ...
9499 (vect_slp_analyze_data_ref_dependences): ... this new function.
9500 (dr_group_sort_cmp): New function.
9501 (vect_analyze_data_ref_accesses): Compute data-reference groups
9502 here instead of in vect_analyze_data_ref_dependence. Use
9503 a more efficient algorithm.
9504 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
9505 vect_slp_analyze_data_ref_dependences. Call
9506 vect_analyze_data_ref_accesses earlier.
9507 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
9508 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
9509 (vect_slp_analyze_data_ref_dependences): New prototype.
9511 2013-03-21 Richard Biener <rguenther@suse.de>
9513 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
9514 ref is stored in the loop.
9515 (find_refs_for_sm): Walk only over all stores.
9516 (store_motion_loop): Allocate from lim_bitmap_obstack.
9517 (store_motion): Likewise.
9519 2013-03-21 Richard Biener <rguenther@suse.de>
9521 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
9522 Update virtual SSA form.
9524 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9526 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
9527 * configure: Regenerate.
9528 * config.in: Regenerate.
9529 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
9530 if !HAVE_LD_EH_FRAME_CIEV3.
9532 2013-03-21 Richard Biener <rguenther@suse.de>
9534 * tree-cfg.c (verify_expr_no_block): New function.
9535 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
9536 nor DECL_VALUE_EXPR have locations with associated blocks.
9537 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
9538 (clear_unused_block_pointer): Remove code dealing with
9539 blocks in DECL_DEBUG_EXPR locations.
9541 2013-03-21 Richard Biener <rguenther@suse.de>
9543 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
9544 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
9545 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
9546 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
9547 instead of DECL_DEBUG_EXPR_IS_FROM.
9548 * gimplify.c (gimplify_modify_expr): Likewise.
9549 * tree-cfg.c (verify_expr_location_1): Likewise.
9550 * tree-complex.c (create_one_component_var): Likewise.
9551 * tree-sra.c (create_access_replacement): Likewise.
9552 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
9553 (clear_unused_block_pointer): Likewise.
9554 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
9555 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
9556 * var-tracking.c (var_debug_decl): Likewise.
9557 (track_expr_p): Likewise.
9558 * tree-inline.c (add_local_variables): Likewise. Set
9559 DECL_HAS_DEBUG_EXPR_P after copying it.
9560 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
9561 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
9563 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
9566 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
9567 * configure: Regenerate.
9568 * config.in: Regenerate.
9569 * config/i386/i386.md (*movdf_internal): Use
9570 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
9571 movd instead of movq mnemonic for interunit moves.
9572 (*movdi_internal): Ditto.
9574 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9576 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
9577 (abd<mode>_3): New pattern.
9578 (aba<mode>_3): New pattern.
9579 (fabd<mode>_3): New pattern.
9581 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9583 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
9584 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
9585 occurrence of REGISTER_PREFIX as its empty string.
9587 2013-03-20 Jeff Law <law@redhat.com>
9589 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
9590 addititional equivalences for equality comparisons between an SSA_NAME
9591 and a constant where the SSA_NAME was set from a widening conversion.
9593 2013-03-20 Walter Lee <walt@tilera.com>
9595 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
9597 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
9599 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
9600 depending on type attribute.
9601 (*movti_internal): Ditto.
9602 (*movtf_internal): Ditto.
9603 (*movxf_internal): Ditto.
9604 (*movdf_internal): Ditto.
9605 (*movsf_internal): Ditto.
9607 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
9609 * config/i386/i386.md (*movti_internal): Set prefix attribute to
9610 maybe_vex for sselog1 and ssemov types.
9611 (*movdi_internal): Reorder operand constraints.
9612 (*movsi_internal): Ditto. Set prefix attribute to
9613 maybe_vex for sselog1 and ssemov types.
9614 (*movtf_internal): Set prefix attribute to maybe_vex
9615 for sselog1 and ssemov types.
9616 (*movdf_internal): Ditto. Set prefix_data16 attribute for
9617 DImode ssemov types. Reorder operand constraints.
9618 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
9619 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
9620 attribute for SImode ssemov types. Reorder operand constraints.
9622 2013-03-20 Martin Jambor <mjambor@suse.cz>
9624 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
9625 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
9627 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
9629 * config/rs6000/predicates.md (indexed_address, update_address_mem
9630 update_indexed_address_mem): New predicates.
9631 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
9632 attribute for load/store instructions.
9633 * config/rs6000/dfp.md (movsd_store): Likewise.
9634 (movsd_load): Likewise.
9635 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
9636 (unnamed HI->DI extend define_insn): Likewise.
9637 (unnamed SI->DI extend define_insn): Likewise.
9638 (unnamed QI->SI extend define_insn): Likewise.
9639 (unnamed QI->HI extend define_insn): Likewise.
9640 (unnamed HI->SI extend define_insn): Likewise.
9641 (unnamed HI->SI extend define_insn): Likewise.
9642 (extendsfdf2_fpr): Likewise.
9643 (movsi_internal1): Likewise.
9644 (movsi_internal1_single): Likewise.
9645 (movhi_internal): Likewise.
9646 (movqi_internal): Likewise.
9647 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
9648 attribute for load/store instructions.
9649 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
9651 (mov<mode>_softfloat): Likewise.
9652 (mov<mode>_hardfloat32): Likewise.
9653 (mov<mode>_hardfloat64): Likewise.
9654 (mov<mode>_softfloat64): Likewise.
9655 (movdi_internal32): Likewise.
9656 (movdi_internal64): Likewise.
9657 (probe_stack_<mode>): Likewise.
9659 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
9661 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
9662 floating point, and decimal floating point to reload iterator.
9664 * config/rs6000/constraints.md (wl constraint): New constraints to
9665 return FLOAT_REGS if certain options are used to reduce the number
9666 of separate patterns that exist in the file.
9667 (wx constraint): Likewise.
9668 (wz constraint): Likewise.
9670 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
9671 -mdebug=reg, print wg, wl, wx, and wz constraints.
9672 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
9673 Initialize the reload functions for 64-bit binary/decimal floating
9675 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
9676 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
9677 create the buffer on the stack to overcome not having a 32-bit
9679 (rs6000_emit_move): Likewise.
9680 (rs6000_secondary_memory_needed_rtx): Likewise.
9681 (rs6000_alloc_sdmode_stack_slot): Likewise.
9682 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
9683 via xxlxor, just like DFmode 0.0.
9685 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
9686 define as 1 if we are running on a power7 or newer.
9687 (enum r6000_reg_class_enum): Add new constraints.
9689 * config/rs6000/dfp.md (movsd): Delete, combine with binary
9690 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
9691 with other moves by using conditional constraits (wg). Use LFIWZX
9692 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
9693 (movsd splitter): Likewise.
9694 (movsd_hardfloat): Likewise.
9695 (movsd_softfloat): Likewise.
9697 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
9698 binary and decimal floating point moves.
9699 (fmove_ok): New attributes to combine binary and decimal floating
9700 point moves, and to combine power6x (mfpgpr) moves along normal
9702 (real_value_to_target): Likewise.
9709 (movsf): Combine binary and decimal floating point moves. Combine
9710 power6x (mfpgpr) moves with other moves by using conditional
9711 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
9712 (mov<mode> for SFmode/SDmode); Likewise.
9713 (SFmode/SDmode splitters): Likewise.
9714 (movsf_hardfloat): Likewise.
9715 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
9716 (movsf_softfloat): Likewise.
9717 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
9719 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
9720 wx and wz constraints.
9722 * config/rs6000/constraints.md (wg constraint): New constraint to
9723 return FLOAT_REGS if -mmfpgpr (power6x) was used.
9725 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
9728 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
9729 -mdebug=reg, print wg, wl, wx, and wz constraints.
9730 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
9731 Initialize the reload functions for 64-bit binary/decimal floating
9733 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
9734 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
9735 create the buffer on the stack to overcome not having a 32-bit
9737 (rs6000_emit_move): Likewise.
9738 (rs6000_secondary_memory_needed_rtx): Likewise.
9739 (rs6000_alloc_sdmode_stack_slot): Likewise.
9740 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
9741 via xxlxor, just like DFmode 0.0.
9743 * config/rs6000/dfp.md (movdd): Delete, combine with binary
9744 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
9745 with other moves by using conditional constraits (wg). Use LFIWZX
9746 and STFIWX for loading SDmode on power7.
9747 (movdd splitters): Likewise.
9748 (movdd_hardfloat32): Likewise.
9749 (movdd_softfloat32): Likewise.
9750 (movdd_hardfloat64_mfpgpr): Likewise.
9751 (movdd_hardfloat64): Likewise.
9752 (movdd_softfloat64): Likewise.
9754 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
9755 64-bit binary and decimal floating point moves.
9756 (FMOVE64X): Likewise.
9757 (movdf): Combine 64-bit binary and decimal floating point moves.
9758 Combine power6x (mfpgpr) moves with other moves by using
9759 conditional constraits (wg).
9760 (mov<mode> for DFmode/DDmode): Likewise.
9761 (DFmode/DDmode splitters): Likewise.
9762 (movdf_hardfloat32): Likewise.
9763 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
9764 (movdf_softfloat32): Likewise.
9765 (movdf_hardfloat64_mfpgpr): Likewise.
9766 (movdf_hardfloat64): Likewise.
9767 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
9768 (movdf_softfloat64): Likewise.
9769 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
9770 (reload_<mode>_load): Move to later in the file so they aren't in
9771 the middle of the floating point move insns.
9772 (reload_<mode>_store): Likewise.
9774 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
9777 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
9778 constraint if -mdebug=reg.
9779 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
9780 Enable using dd reload support if needed.
9782 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
9783 binary and decimal floating point moves in rs6000.md.
9784 (movtd_internal): Likewise.
9786 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
9787 decimal floating point moves.
9789 (movtf_internal): Likewise.
9790 (mov<mode>_internal, TDmode/TFmode): Likewise.
9791 (movtf_softfloat): Likewise.
9792 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
9794 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
9795 movdi_internal64, using wg constraint for move direct operations.
9796 (movdi_internal64): Likewise.
9798 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
9799 MODES_TIEABLE_P for selected modes. Print the numerical value of
9800 the various virtual registers. Use GPR/FPR first/last values,
9801 instead of hard coding the register numbers. Print which modes
9802 have reload functions registered.
9803 (rs6000_option_override_internal): If -mdebug=reg, trace the options
9804 settings before/after setting cpu, target and subtarget settings.
9805 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
9806 and for secondary reload failures in rs6000_secondary_reload_inner.
9807 (rs6000_secondary_reload_fail): Likewise.
9808 (rs6000_secondary_reload_inner): Likewise.
9810 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
9811 macros for first/last GPR and FPR registers.
9812 (LAST_GPR_REGNO): Likewise.
9813 (FIRST_FPR_REGNO): Likewise.
9814 (LAST_FPR_REGNO): Likewise.
9816 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
9817 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
9818 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
9819 (vcond<mode><mode>): Likewise.
9820 (vcondu<mode><mode>): Likewise.
9821 (vector_gtu<mode>): Likewise.
9822 (vector_gte<mode>): Likewise.
9823 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
9824 to prevent the compiler from converting DImode operations to TImode.
9825 (ior<mode>3): Likewise.
9826 (and<mode>3): Likewise.
9827 (one_cmpl<mode>2): Likewise.
9828 (nor<mode>3): Likewise.
9829 (andc<mode>3): Likewise.
9831 * config/rs6000/constraints.md (wt constraint): New constraint
9832 that returns VSX_REGS if TImode is allowed in VSX registers.
9834 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
9837 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
9838 similar to TImode, but it is restricted to being in the GPRs.
9840 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
9841 TImode to occupy a single VSX register.
9843 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
9844 -mvsx-timode for power7/power8.
9845 (power7 cpu): Likewise.
9846 (power8 cpu): Likewise.
9848 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
9849 sure that TFmode/TDmode take up two registers if they are ever
9850 allowed in the upper VSX registers.
9851 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
9853 (rs6000_init_hard_regno_mode_ok): Likewise.
9854 (rs6000_debug_reg_global): Add debugging for PTImode and wt
9855 constraint. Print if LRA is turned on.
9856 (rs6000_option_override_internal): Give an error if -mvsx-timode
9857 and VSX is not enabled.
9858 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
9859 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
9860 to reg+offset addressing. Use PTImode when checking offset
9861 addresses for validity.
9862 (reg_offset_addressing_ok_p): Likewise.
9863 (rs6000_legitimate_offset_address_p): Likewise.
9864 (rs6000_legitimize_address): Likewise.
9865 (rs6000_legitimize_reload_address): Likewise.
9866 (rs6000_legitimate_address_p): Likewise.
9867 (rs6000_eliminate_indexed_memrefs): Likewise.
9868 (rs6000_emit_move): Likewise.
9869 (rs6000_secondary_reload): Likewise.
9870 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
9871 reloads to fpr registers to continue to use reg+offset addressing,
9872 but 64-bit reloads to altivec registers need reg+reg addressing.
9873 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
9874 it. Treat LO_SUM like a PLUS operation.
9875 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
9876 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
9877 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
9878 registers to share a register with a smaller sized type, since VSX
9879 puts scalars in the upper 64-bits.
9880 (print_operand): Add support for PTImode.
9881 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
9882 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
9883 registers, but don't have arithmetic support.
9884 (rs6000_memory_move_cost): Add test for VSX.
9885 (rs6000_opt_masks): Add -mvsx-timode.
9887 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
9890 (VSr): Use wt constraint for TImode.
9891 (VSv): Drop TImode support.
9892 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
9893 (vsx_movti_64bit): Likewise.
9894 (vsx_movti_32bit): Likewise.
9895 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
9896 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
9897 one '?' on the appropriate output constraint. Do not allow TImode
9898 logical operations on 32-bit systems.
9899 (vsx_ior<mode>3): Likewise.
9900 (vsx_xor<mode>3): Likewise.
9901 (vsx_one_cmpl<mode>2): Likewise.
9902 (vsx_nor<mode>3): Likewise.
9903 (vsx_andc<mode>3): Likewise.
9904 (vsx_concat_<mode>): Likewise.
9905 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
9907 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
9908 OPTION_MASK_VSX_TIMODE.
9909 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
9910 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
9912 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
9913 (TI2 iterator): New iterator for TImode, PTImode.
9914 (wd mode attribute): Add values for vector types.
9915 (movti_string): Replace TI move operations with operations for TImode
9916 and PTImode. Add support for TImode being allowed in VSX registers.
9917 (mov<mode>_string, TImode/PTImode): Likewise.
9918 (movti_ppc64): Likewise.
9919 (mov<mode>_ppc64, TImode/PTImode): Likewise.
9920 (TI mode splitters): Likewise.
9922 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
9925 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
9927 PR tree-optimization/56355
9928 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
9929 Also handle integers with undefined overflow.
9931 2013-03-20 Catherine Moore <clm@codesourcery.com>
9932 Maciej W. Rozycki <macro@codesourcery.com>
9933 Tom de Vries <tom@codesourcery.com>
9934 Nathan Sidwell <nathan@codesourcery.com>
9935 Iain Sandoe <iain@codesourcery.com>
9936 Nathan Froyd <froydnj@codesourcery.com>
9937 Chao-ying Fu <fu@mips.com>
9939 * doc/extend.texi: (micromips, nomicromips, nocompression):
9940 Document new function attributes.
9941 * doc/invoke.texi (minterlink-compressed, mmicromips,
9942 m14k, m14ke, m14kec): Document new options.
9943 (minterlink-mips16): Update documentation.
9944 * doc/md.texi (ZC, ZD): Document new constraints.
9945 * configure.ac (gcc_cv_as_micromips): Check if linker
9946 supports the .set micromips directive.
9947 * configure: Regenerate.
9948 * config.in: Regenerate.
9949 * config/mips/mips-tables.opt: Regenerate.
9950 * config/mips/micromips.md: New file.
9951 * constraints.md (ZC, ZD): New constraints.
9952 * config/mips/predicates.md (movep_src_register): New predicate.
9953 (movep_src_operand): New predicate.
9954 (non_volatile_mem_operand): New predicate.
9955 * config/mips/mips.md (multimem): New type.
9956 (length): Differentiate between 17-bit and 18-bit branch offsets.
9957 (MOVEP1, MOVEP2): New mode iterator.
9958 (mov_<load>l): Use ZC constraint.
9959 (mov_<load>r): Likewise.
9960 (mov_<store>l): Likewise.
9961 (mov_<store>r): Likewise.
9962 (*branch_equality<mode>_inverted): Add microMIPS support.
9963 (*branch_equality<mode>): Likewise.
9964 (*jump_absolute): Likewise.
9965 (indirect_jump_<mode>): Likewise.
9966 (tablejump_<mode>): Likewise.
9967 (<optab>_internal): Likewise.
9968 (sibcall_internal): Likewise.
9969 (sibcall_value_internal): Likewise.
9970 (prefetch): Use constraint ZD.
9971 * config/mips/mips.opt (minterlink-compressed): New option.
9972 (minterlink-mips16): Now an alias for minterlink-compressed.
9973 (mmicromips): New option.
9974 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
9975 (compare_and_swap_12): Likewise.
9976 (sync_add<mode>): Likewise.
9977 (sync_<optab>_12): Likewise.
9978 (sync_old_<optab>_12): Likewise.
9979 (sync_new_<optab>_12): Likewise.
9980 (sync_nand_12): Likewise.
9981 (sync_old_nand_12): Likewise.
9982 (sync_new_nand_12): Likewise.
9983 (sync_sub<mode>): Likewise.
9984 (sync_old_add<mode>): Likewise.
9985 (sync_old_sub<mode>): Likewise.
9986 (sync_new_add<mode>): Likewise.
9987 (sync_new_sub<mode>): Likewise.
9988 (sync_<optab><mode>): Likewise.
9989 (sync_old_<optab><mode>): Likewise.
9990 (sync_new_<optab><mode>): Likewise.
9991 (sync_nand<mode>): Likewise.
9992 (sync_old_nand<mode>): Likewise.
9993 (sync_new_nand<mode>): Likewise.
9994 (sync_lock_test_and_set<mode>): Likewise.
9995 (test_and_set_12): Likewise.
9996 (atomic_compare_and_swap<mode>): Likewise.
9997 (atomic_exchange<mode>_llsc): Likewise.
9998 (atomic_fetch_add<mode>_llsc): Likewise.
9999 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
10000 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
10001 (umips_save_restore_pattern_p): Likewise.
10002 (umips_load_store_pair_p): Likewise.
10003 (umips_output_load_store_pair): Likewise.
10004 (umips_movep_target_p): Likewise.
10005 (umips_12bit_offset_address_p): Likewise.
10006 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
10007 (mips_base_mips16): Rename this...
10008 (mips_base_compression_flags): ...to this. Update all uses.
10009 (mips_attribute_table): Add micromips, nomicromips and nocompression.
10010 (mips_mips16_decl_p): Delete.
10011 (mips_nomips16_decl_p): Delete.
10012 (mips_get_compress_on_flags): New function.
10013 (mips_get_compress_off_flags): New function.
10014 (mips_get_compress_mode): New function.
10015 (mips_get_compress_on_name): New function.
10016 (mips_get_compress_off_name): New function.
10017 (mips_insert_attributes): Support multiple compression types.
10018 (mips_merge_decl_attributes): Likewise.
10019 (umips_12bit_offset_address_p): New function.
10020 (mips_start_function_definition): Emit .set micromips directive.
10021 (mips_call_may_need_jalx_p): New function.
10022 (mips_function_ok_for_sibcall): Add microMIPS support.
10023 (mips_print_operand_punctuation): Support short delay slots and
10025 (umips_swm_mask, umips_swm_encoding): New.
10026 (umips_build_save_restore): New function.
10027 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
10028 (was_mips16_p): Remove.
10029 (old_compression_mode): New.
10030 (mips_set_compression_mode): New function.
10031 (mips_set_current_function): Add microMIPS support.
10032 (mips_option_override): Likewise.
10033 (umips_save_restore_pattern_p): New function.
10034 (umips_output_save_restore): New function.
10035 (umips_load_store_pair_p_1): New function.
10036 (umips_load_store_pair_p): New function.
10037 (umips_output_load_store_pair_1): New function.
10038 (umips_output_load_store_pair): New function.
10039 (umips_movep_target_p) New function.
10040 (mips_prepare_pch_save): Add microMIPS support.
10041 * config/mips/mips.h (TARGET_COMPRESSION): New.
10042 (TARGET_CPU_CPP_BUILTINS): Update macro
10043 to use new compression flags and to support microMIPS.
10044 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
10045 (MIPS_ARCH_FLOAT_SPEC): Likewise.
10046 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
10047 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
10048 (ASM_SPEC): Support mmicromips and mno-micromips.
10049 (M16STORE_REG_P): New macro.
10050 (MIPS_CALL): Support TARGET_MICROMIPS.
10051 (MICROMIPS_J): New macro.
10052 (mips_base_mips16): Rename this...
10053 (mips_base_compression_flags): ...to this.
10054 (UMIPS_12BIT_OFFSET_P): New macro.
10055 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
10056 (MULTILIB_DIRNAMES): Likewise.
10057 2013-03-20 Richard Biener <rguenther@suse.de>
10059 PR tree-optimization/56661
10060 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
10061 the result does not have to be distinct.
10063 2013-03-20 Richard Biener <rguenther@suse.de>
10065 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
10068 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10069 Steven Bosscher <steven@gcc.gnu.org>
10071 PR rtl-optimization/56605
10072 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
10074 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
10077 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
10078 that require movd instead of movq.
10080 2013-03-20 Richard Biener <rguenther@suse.de>
10082 * tree-ssa-structalias.c (struct variable_info): Add pointer
10083 to the first field of an aggregate with sub-vars. Make
10084 this and the pointer to the next subfield its ID.
10085 (vi_next): New function.
10086 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
10087 storedanything_id, integer_id): Increment by one.
10088 (new_var_info, get_call_vi, lookup_call_clobber_vi,
10089 get_call_clobber_vi): Adjust.
10090 (solution_set_expand): Simplify and speedup.
10091 (solution_set_add): Inline into ...
10092 (set_union_with_increment): ... this. Adjust accordingly.
10093 (do_sd_constraint): Likewise.
10094 (do_ds_constraint): Likewise.
10095 (do_complex_constraint): Simplify.
10096 (build_pred_graph): Adjust.
10097 (solve_graph): Likewise. Simplify and speedup.
10098 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
10099 get_constraint_for_component_ref, get_constraint_for_1,
10100 first_vi_for_offset, first_or_preceding_vi_for_offset,
10101 create_function_info_for, create_variable_info_for_1,
10102 create_variable_info_for, intra_create_variable_infos): Adjust.
10103 (init_base_vars): Push NULL for ID zero.
10104 (compute_points_to_sets): Adjust.
10106 2013-03-20 Richard Biener <rguenther@suse.de>
10108 * cfgloop.c (verify_loop_structure): Streamline and avoid
10109 ICEing on corrupt loop tree.
10110 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
10113 2013-03-20 Richard Biener <rguenther@suse.de>
10115 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
10116 check whether an SSA update is needed.
10118 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
10120 * config/mips/constraints.md (T): Rename to...
10124 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
10125 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
10127 2013-03-19 Ian Bolton <ian.bolton@arm.com>
10129 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
10130 (*subsi3_carryin_uxtw): Likewise.
10132 2013-03-19 Ian Bolton <ian.bolton@arm.com>
10134 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
10135 (*rorsi3_insn_uxtw): Likewise.
10137 2013-03-19 Ian Bolton <ian.bolton@arm.com>
10139 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
10140 (*extrsi5_insn_uxtw): Likewise.
10142 2013-03-19 Richard Biener <rguenther@suse.de>
10144 PR tree-optimization/56273
10145 * passes.c (init_optimization_passes): Move second VRP after DOM.
10147 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
10149 * config/i386/i386.md (*movti_internal): Merge from
10150 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
10151 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
10152 nox64 isa attributes.
10154 2013-03-18 Richard Biener <rguenther@suse.de>
10156 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
10158 (merge_node_constraints): Likewise.
10159 (build_succ_graph): Likewise.
10160 (valid_graph_edge): Inline into single caller.
10161 (unify_nodes): Likewise. Use bitmap_set_bit return value
10163 (scc_visit): Fix formatting and variable use.
10164 (do_sd_constraint): Use gcc_checking_assert.
10165 (do_ds_constraint): Likewise.
10166 (do_complex_constraint): Likewise.
10167 (condense_visit): Likewise. Cleanup.
10168 (dump_pred_graph): New function.
10169 (perform_var_substitution): Dump the pred-graph before
10170 variable substitution.
10171 (find_equivalent_node): Use gcc_checking_assert.
10172 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
10174 2013-03-18 Richard Biener <rguenther@suse.de>
10176 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
10177 Remove cond_expr_stmt_list argument and do not gimplify the
10179 (vect_loop_versioning): Adjust.
10180 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
10181 Cleanup to use less temporaries.
10182 (vect_create_data_ref_ptr): Cleanup.
10184 2013-03-18 Jakub Jelinek <jakub@redhat.com>
10186 PR tree-optimization/56635
10187 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
10188 require types_compatible_p types.
10190 2013-03-18 Nick Clifton <nickc@redhat.com>
10192 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
10193 spurious backslash.
10195 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
10196 Add missing line to comment describing function.
10198 2013-03-18 Richard Biener <rguenther@suse.de>
10200 PR tree-optimization/56210
10201 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10202 Handle string / character search functions.
10203 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
10205 2013-03-18 Richard Biener <rguenther@suse.de>
10207 PR middle-end/56483
10208 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
10209 and implement properly.
10210 * gimple.h (gimple_cond_single_var_p): Remove.
10212 2013-03-18 Richard Biener <rguenther@suse.de>
10214 * tree-data-ref.h (find_data_references_in_loop): Declare.
10215 * tree-data-ref.c (get_references_in_stmt): Use a stack
10216 vector pre-allocated in the callers.
10217 (find_data_references_in_stmt): Adjust.
10218 (graphite_find_data_references_in_stmt): Likewise.
10219 (create_rdg_vertices): Likewise.
10220 (find_data_references_in_loop): Export.
10221 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
10222 Compute dependences here...
10223 (vect_analyze_data_refs): ...not here. When we encounter
10224 a non-vectorizable data reference in basic-block vectorization
10225 truncate the data reference vector. Do not bother to
10226 fixup data-dependence information for gather loads.
10227 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
10228 of data references, as reported.
10230 2013-03-18 Richard Biener <rguenther@suse.de>
10232 PR tree-optimization/3713
10233 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
10234 has_constants and expr.
10235 (stmt_has_constants): Properly valueize SSA names when deciding
10236 whether the stmt has constants.
10238 2013-03-18 Richard Biener <rguenther@suse.de>
10240 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
10241 whole function when there is nothing to do.
10242 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
10243 * tree-vectorizer.c (vectorize_loops): Update virtual and
10244 loop-closed SSA once.
10245 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
10247 2013-03-18 Richard Biener <rguenther@suse.de>
10249 PR middle-end/56113
10250 * domwalk.c (bb_postorder): New global static.
10251 (cmp_bb_postorder): New function.
10252 (walk_dominator_tree): Replace scheme imposing an order for
10253 visiting dominator sons by one sorting them at the time they
10254 are pushed on the stack.
10256 2013-03-18 Richard Biener <rguenther@suse.de>
10258 PR tree-optimization/39326
10259 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
10260 (struct mem_ref): Replace mem member with ao_ref typed member.
10261 (MEM_ANALYZABLE): Adjust.
10262 (memref_eq): Likewise.
10263 (mem_ref_alloc): Likewise.
10264 (gather_mem_refs_stmt): Likewise.
10265 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
10266 (execute_sm_if_changed_flag_set): Adjust.
10267 (execute_sm): Likewise.
10268 (ref_always_accessed_p): Likewise.
10269 (refs_independent_p): Likewise.
10270 (can_sm_ref_p): Likewise.
10272 2013-03-18 Jakub Jelinek <jakub@redhat.com>
10275 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
10276 return 1 even for !unsignedp.
10278 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
10280 * config/i386/i386.md (isa): Add x64 and nox64.
10281 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
10282 (*pushtf): Enable *roF alternative for x64 isa only.
10283 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
10284 mode attribute of integer alternatives to DImode for TARGET_64BIT.
10285 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
10286 (*movtf_internal): Merge from *movtf_internal_rex64 and
10287 *movtf_internal_sse. Use x64 and nox64 isa attributes.
10288 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
10289 nox64 isa attributes.
10290 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
10291 nox64 isa attributes.
10292 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
10294 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
10296 * config/alpha/alpha.c (TARGET_LRA_P): New define.
10298 2013-03-17 Jakub Jelinek <jakub@redhat.com>
10301 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
10302 class names. Remove trailing comma after "ALL_REGS".
10304 2013-03-16 Jan Hubicka <jh@suse.cz>
10306 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
10307 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
10308 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
10309 of cgraph_get_create_node.
10310 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10312 2013-03-16 Jason Merrill <jason@redhat.com>
10315 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
10316 with DW_AT_default_value.
10318 2013-03-16 Jakub Jelinek <jakub@redhat.com>
10320 * BASE-VER: Set to 4.9.0.
10322 2013-03-14 Andi Kleen <ak@linux.intel.com>
10325 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
10326 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
10327 Document _x* TSX intrinsics.
10329 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
10330 David Holsgrove <david.holsgrove@xilinx.com>
10332 * configure.ac: Add MicroBlaze TLS support detection.
10333 * configure: Regenerate.
10334 * config/microblaze/microblaze-protos.h
10335 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
10336 symbol_mentioned_p, label_mentioned_p): Add prototypes.
10337 * config/microblaze/microblaze.c (microblaze_address_type): Add
10338 ADDRESS_TLS and tls_reloc address types.
10339 (microblaze_address_info): Add tls_reloc.
10340 (TARGET_HAVE_TLS): Define.
10341 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
10342 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
10343 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
10344 load_tls_operand, microblaze_call_tls_get_addr,
10345 microblaze_legitimize_tls_address): New functions.
10346 (microblaze_classify_unspec): Handle UNSPEC_TLS.
10347 (get_base_reg): Use microblaze_tls_symbol_p.
10348 (microblaze_classify_address): Handle TLS.
10349 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
10350 label_mentioned_p and microblaze_tls_referenced_p.
10351 (microblaze_legitimize_address): Handle TLS.
10352 (microblaze_address_insns): Handle ADDRESS_TLS.
10353 (pic_address_needs_scratch): Handle TLS.
10354 (print_operand_address): Handle TLS.
10355 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
10356 (microblaze_expand_move): Handle TLS.
10357 (microblaze_legitimate_constant_p): Check
10358 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
10359 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
10360 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
10361 (PIC_OFFSET_TABLE_REGNUM): Set.
10362 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
10363 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
10364 (addsi3, movsi_internal2, movdf_internal): Update constraints
10365 * config/microblaze/predicates.md (arith_plus_operand): Define
10366 (move_operand): Redefine as move_src_operand,
10367 check microblaze_tls_referenced_p.
10369 2013-03-14 Ian Bolton <ian.bolton@arm.com>
10371 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
10372 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
10374 2013-03-14 Ian Bolton <ian.bolton@arm.com>
10376 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
10379 2013-03-14 Jakub Jelinek <jakub@redhat.com>
10381 PR tree-optimization/53265
10382 * common.opt (Waggressive-loop-optimizations): New option.
10383 * tree-ssa-loop-niter.c: Include tree-pass.h.
10384 (do_warn_aggressive_loop_optimizations): New function.
10385 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
10386 if number_of_latch_executions returned constant.
10387 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
10388 early. If number_of_latch_executions returned constant, set
10389 nb_iterations_upper_bound back to it.
10390 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
10392 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
10393 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
10395 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
10396 (MULTILIB_OSDIRNAMES): Set.
10397 * genmultilib: If defaultosdirname doesn't start with :: , set
10398 defaultosdirname2 instead, clear it and emit two . multilib_raw
10399 entries instead of just one.
10401 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
10403 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
10404 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
10405 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
10406 (SUBTARGET_OVERRIDE_OPTIONS): New.
10408 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
10411 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
10412 (musermode): Convert to Var(TARGET_USERMODE).
10413 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
10414 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
10415 * config/sh/sh.c (sh_option_override): Use
10416 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
10417 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
10419 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
10421 (udivsi3_i4_single, divsi3_i4_single): Use
10422 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
10424 2013-03-13 Dave Korn <dave.korn.cygwin@....>
10426 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
10429 2013-03-13 Richard Biener <rguenther@suse.de>
10431 PR tree-optimization/56608
10432 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
10433 calls when vectorizing basic-blocks.
10435 2013-03-13 Jakub Jelinek <jakub@redhat.com>
10438 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
10441 2013-03-12 Jakub Jelinek <jakub@redhat.com>
10443 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
10445 2013-03-11 Jan Hubicka <jh@suse.cz>
10448 * lto-streamer-out.c (output_symbol_p): Skip references from
10449 constructors of external variables.
10451 2013-03-11 Jan Hubicka <jh@suse.cz>
10453 PR middle-end/56571
10454 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
10456 * emit-rtl.c (verify_rtx_sharing): Likewise.
10457 (copy_insn_1): Likewise.
10458 * rtl.c (copy_rtx): Likewise.
10460 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
10463 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
10464 output_operand_lossage message.
10466 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
10469 * arm.c (shift_op): Validate RTL pattern on the fly.
10470 (arm_print_operand, case 'S'): Don't use shift_operator to validate
10473 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10476 * config/pa/pa.md (call_value): Check for calls to powf and direct to
10477 new call patterns that clobber %fr12.
10478 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
10479 split and postreload patterns.
10480 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
10481 registers %fr12 and %fr12R as call used.
10483 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
10485 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
10486 (canon_address, record_store, replace_read, check_mem_read_rtx,
10487 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
10488 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
10489 rest_of_handle_dse): Likewise.
10491 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
10493 PR middle-end/56524
10494 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
10496 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
10497 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
10498 (save_optabs_if_changed): Replace with...
10499 (init_tree_optimization_optabs): ...this.
10500 * optabs.c (save_optabs_if_changed): Rename to...
10501 (init_tree_optimization_optabs): ...this. Take the optimization node
10502 as argument. Do nothing if the base optabs are already correct.
10503 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
10504 to recompute optabs.
10505 * function.h (function): Remove optabs field.
10506 * function.c (invoke_set_current_function_hook): Call
10507 init_tree_optimization_optabs. Use the result to initialize
10510 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
10512 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
10513 if GTMA_HAS_NO_INSTRUMENTATION.
10514 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
10515 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
10516 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
10517 * gimple-pretty-print.c (dump_gimple_transaction): Handle
10518 GTMA_HAS_NO_INSTRUMENTATION.
10520 2013-03-08 Jakub Jelinek <jakub@redhat.com>
10522 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
10525 2013-03-08 Marek Polacek <polacek@redhat.com>
10526 Jakub Jelinek <jakub@redhat.com>
10528 PR tree-optimization/56478
10529 * predict.c (is_comparison_with_loop_invariant_p): Change the
10530 type of loop_step to tree.
10531 (predict_loops): Adjust.
10532 (predict_iv_comparison): Perform the computations on double_ints.
10534 2013-03-08 Richard Biener <rguenther@suse.de>
10536 PR tree-optimization/56570
10537 * tree-cfg.c (verify_expr_location_1): Verify locations for
10539 * tree-sra.c (create_access_replacement): Strip locations
10540 from DECL_DEBUG_EXPRs.
10542 2013-03-08 Richard Biener <rguenther@suse.de>
10544 * tree-inline.c (expand_call_inline): Do not associate
10545 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
10546 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
10548 2013-03-08 Richard Biener <rguenther@suse.de>
10550 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
10551 or block changes with -Og. Fix for location / block encoding
10552 changes and PHI arguments with locations.
10554 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
10556 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
10558 (struct output_info): Likewise.
10559 (register_overhead): Remove bad gcc_assert.
10560 (bitmap_find_bit): If there is only a single bitmap element, do not
10561 count a miss as a search.
10562 (print_statistics): Update for counter type changes.
10563 (dump_bitmap_statistics): Likewise. Print headers such that they
10564 are properly lined up with the printed counters.
10566 2013-03-07 Jakub Jelinek <jakub@redhat.com>
10568 PR tree-optimization/56559
10569 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
10570 check that it has only a single use.
10572 2013-03-07 Richard Biener <rguenther@suse.de>
10574 * doc/invoke.texi (fwhole-program): Discourage use in combination
10577 2013-03-06 Jakub Jelinek <jakub@redhat.com>
10579 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
10581 PR tree-optimization/56539
10582 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
10583 instead of GSI_CONTINUE_LINKING as last argument to
10584 force_gimple_operand_gsi. Adjust function comment.
10586 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
10589 PR middle-end/56548
10590 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
10591 promoted mode, convert the result back to the original mode.
10593 2013-03-06 Richard Biener <rguenther@suse.de>
10595 PR middle-end/56294
10596 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
10597 (insert_updated_phi_nodes_compare_uids): New function.
10598 (update_ssa): Sort symbols_to_rename after UID before
10599 traversing it to insert PHI nodes.
10601 2013-03-06 Richard Biener <rguenther@suse.de>
10603 PR middle-end/50494
10604 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
10605 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
10608 2013-02-13 Richard Biener <rguenther@suse.de>
10611 * varasm.c (output_constant_def_1): Get the decl representing
10612 the constant as argument.
10613 (output_constant_def): Wrap output_constant_def_1.
10614 (make_decl_rtl): Use output_constant_def_1 with the decl
10615 representing the constant.
10616 (build_constant_desc): Optionally re-use a decl already
10617 representing the constant.
10618 (tree_output_constant_def): Adjust.
10620 2013-03-06 Joey Ye <joey.ye@arm.com>
10623 * gcc.c (convert_white_space): New function.
10624 (main): Handles white space in function name.
10626 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
10629 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
10630 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
10631 to SH_DIV_CALL_TABLE for TARGET_SH2.
10632 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
10634 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
10635 call-table options.
10637 2013-03-05 Sterling Augustine <saugustine@google.com>
10638 Cary Coutant <ccoutant@google.com>
10641 * dwarf2out.c (resolve_addr): Don't call
10642 remove_loc_list_addr_table_entries a second time for the same
10645 2013-03-05 Jakub Jelinek <jakub@redhat.com>
10648 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
10649 (avoid_complex_debug_insns): New function.
10650 (expand_debug_locations): Call it.
10652 PR rtl-optimization/56484
10653 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
10654 lifetimes of hard registers on small register class machines.
10656 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
10658 * config/microblaze/microblaze-protos.h: Rename
10659 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
10660 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
10662 (microblaze_fast_interrupt_function_p): New function.
10663 (microblaze_is_interrupt_handler): Rename to
10664 microblaze_is_interrupt_variant and add fast_interrupt check.
10665 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
10666 (save_restore_insns): Likewise.
10667 (compute_frame_size): Likewise.
10668 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
10669 (microblaze_globalize_label): Likewise.
10670 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
10671 * config/microblaze/microblaze.md: Use wrapper
10672 microblaze_is_interrupt_variant.
10674 2013-03-05 Kai Tietz <ktietz@redhat.com>
10676 * sdbout.c (sdbout_one_type): Switch to current function's section
10677 supporting cold/hot.
10679 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
10681 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
10684 2013-03-05 Jakub Jelinek <jakub@redhat.com>
10686 PR middle-end/56461
10687 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
10688 if VALGRIND_GET_VBITS is defined, temporarily make object
10689 memory all defined, and restore previous valgrind addressability
10690 and definability afterwards. Free this_object at the end.
10692 PR middle-end/56461
10693 * lra.c (lra): Call lra_clear_live_ranges if live_p,
10694 right before calling lra_create_live_ranges, also call it
10695 when clearing live_p. Only call lra_clear_live_ranges
10696 at the end if live_p.
10698 PR middle-end/56461
10699 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
10701 2013-03-05 Richard Biener <rguenther@suse.de>
10703 PR tree-optimization/56521
10704 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
10707 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
10710 * except.h (remove_unreachable_eh_regions): New prototype.
10711 * except.c (remove_eh_handler_splicer): New function, split out
10712 of remove_eh_handler.
10713 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
10714 warning about running it on many EH regions one at a time.
10715 (remove_unreachable_eh_regions_worker): New function, walk the
10716 EH tree in depth-first order and remove non-marked regions.
10717 (remove_unreachable_eh_regions): New function.
10718 * tree-eh.c (mark_reachable_handlers): New function, split out
10719 from remove_unreachable_handlers.
10720 (remove_unreachable_handlers): Use mark_reachable_handlers and
10721 remove_unreachable_eh_regions.
10722 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
10723 and remove_unreachable_eh_regions.
10725 2013-03-05 Richard Biener <rguenther@suse.de>
10727 PR middle-end/56525
10728 * loop-init.c (fix_loop_structure): Remove loops in two stages,
10729 not freeing them until the end.
10731 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10733 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
10735 2013-03-05 Richard Biener <rguenther@suse.de>
10737 PR tree-optimization/56270
10738 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
10739 of loads after scheduling an SLP instance.
10741 2013-03-05 Jakub Jelinek <jakub@redhat.com>
10743 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
10745 (check_gcc_parallelize): Run guality.exp as a separate job from
10746 vect.exp with unsorted.exp and $(dg_target_exps) separately from
10747 struct-layout-1.exp with stackalign.exp.
10749 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
10751 PR middle-end/56461
10752 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
10753 load_index sbitmap even if some bit in it isn't set.
10755 PR middle-end/56461
10756 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
10757 (discover_iteration_bound_by_body_walk): Change queues to
10758 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
10759 spelling in comment. Call safe_push on queues[bound_index] directly.
10760 Release queues[queue_index] in every iteration unconditionally.
10761 Release bounds vector.
10763 PR middle-end/56461
10764 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
10765 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
10766 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
10769 2013-03-05 Richard Biener <rguenther@suse.de>
10772 * tree-inline.c (remap_blocks_to_null): New function.
10773 (expand_call_inline): When expanding a call stmt without
10774 an associated block inline remap all callee blocks to NULL.
10776 2013-03-05 Jakub Jelinek <jakub@redhat.com>
10778 PR rtl-optimization/56494
10779 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
10780 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
10781 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
10783 PR middle-end/56461
10784 * sel-sched-ir.c (free_sched_pools): Release
10785 succs_info_pool.stack[succs_info_pool.max_top] vectors too
10786 if succs_info_pool.max_top isn't -1.
10789 * opts.c (opts_obstack, opts_concat): Moved to...
10790 * opts-common.c (opts_obstack, opts_concat): ... here.
10792 2013-03-04 Jakub Jelinek <jakub@redhat.com>
10794 PR middle-end/56461
10795 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
10797 2013-03-04 Martin Jambor <mjambor@suse.cz>
10799 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
10800 all appropriate places.
10802 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
10804 PR tree-optimization/56424
10805 * ipa-split.c (split_function): Do not set the RSO flag if result is
10806 not by reference and its type is a register type.
10808 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
10810 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
10811 (microblaze_legitimate_pic_operand): Likewise
10812 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
10813 new function microblaze_legitimate_pic_operand
10814 * config/microblaze/microblaze-protos.h
10815 (microblaze_legitimate_pic_operand): Declare.
10817 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10819 * config/microblaze/predicates.md (call_insn_simple_operand):
10820 New predicate for supported rtx code types.
10821 * config/microblaze/microblaze.md (call_internal1): Use
10822 call_insn_simple_operand predicate.
10824 2013-03-04 Jakub Jelinek <jakub@redhat.com>
10826 PR middle-end/56461
10827 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
10828 partitions.ordered_remove.
10830 PR middle-end/56461
10831 * tree-vect-stmts.c (vectorizable_conversion): Don't call
10832 vec_oprnds0.create (1) for modifier == NONE.
10834 PR middle-end/56461
10835 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
10836 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
10837 vec_oprnds1 right before pushing anything to it for
10840 PR middle-end/56461
10841 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
10842 set nbbs to 0 instead of having separate code path.
10843 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
10844 instead of false as last argument if returning NULL.
10846 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
10848 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
10849 the attribute is now called "target" instead of "option".
10850 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
10851 * doc/tm.texi.in (Target Attributes): Likewise document the correct
10852 attribute/pragma name for TARGET_OPTION_VALID_P and
10853 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
10854 * doc/tm.texi: Regenerated.
10856 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
10858 * config/microblaze/microblaze.c:
10859 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
10860 * config/microblaze/microblaze.h: Add -mxl-reorder to
10862 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
10863 instructions emitted if TARGET_REORDER.
10864 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
10865 or 0 for -m/-mno case, but initialises as 2 to detect default use case
10868 2013-03-01 Xinliang David Li <davidxl@google.com>
10870 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
10873 2013-03-01 Jakub Jelinek <jakub@redhat.com>
10875 PR middle-end/56461
10876 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
10877 vector even when returning true. Fix up function comment formatting.
10879 PR middle-end/56461
10880 * ira-build.c (ira_loop_nodes_count): New variable.
10881 (create_loop_tree_nodes): Initialize it.
10882 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
10884 PR middle-end/56461
10885 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
10886 method on dr_chain and result_chain.
10887 * tree-vect-stmts.c (vectorizable_store): Only call
10888 result_chain.create if j == 0.
10890 PR middle-end/56461
10891 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
10892 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
10893 before overwriting it.
10895 2013-03-01 Tobias Burnus <burnus@net-b.de>
10897 * doc/extended.texi (C Extensions): Change order in @menu
10899 (Other MIPS Built-in Functions): Move last MIPS entry before
10900 "picoChip Built-in Functions".
10901 (SH Built-in Functions): Move after RX Built-in Functions.
10902 * doc/gcc.texi (Introduction): Change order in @menu
10904 * doc/md.texi (Constraints): Ditto.
10905 * gty.texi (Type Information): Ditto.
10906 (User-provided marking routines for template types): Make
10908 * doc/invoke.texi (AArch64 Options): Move before
10909 "Adapteva Epiphany Options".
10911 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
10912 Jakub Jelinek <jakub@redhat.com>
10915 * asan.c (gate_asan): Lookup no_sanitize_address instead of
10916 no_address_safety_analysis attribute.
10917 * doc/extend.texi (no_address_safety_attribute): Rename to
10918 no_sanitize_address attribute, mention no_address_safety_analysis
10919 attribute as deprecated alias.
10921 2013-02-28 Jakub Jelinek <jakub@redhat.com>
10923 PR middle-end/56461
10924 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
10925 type to vec<vec<tree> > *.
10926 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
10927 to be vec<tree> instead of vec<tree> *, set vec_defs
10928 to vNULL and call vec_defs.create (number_of_vects), adjust other
10930 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
10931 vectorizable_condition): Adjust vect_get_slp_defs callers.
10933 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10935 * config/aarch64/aarch64.c
10936 (aarch64_float_const_representable): Remove unused variable.
10938 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10940 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
10942 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10944 * config/aarch64/aarch64-builtins.c
10945 (aarch64_init_simd_builtins): Make static.
10947 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10949 * config/aarch64/aarch64.c
10950 (aarch64_simd_make_constant): Make static.
10952 2013-02-28 Martin Jambor <mjambor@suse.cz>
10954 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
10955 with no initialization to the RHS of debug statements.
10957 2013-02-28 Martin Jambor <mjambor@suse.cz>
10959 PR tree-optimization/56294
10960 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
10962 (get_access_replacement): Do not call create_access_replacement.
10963 Assert a replacement exists.
10964 (get_repl_default_def_ssa_name): Create the replacement declaration
10967 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10969 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
10970 final_end_function.
10972 2013-02-28 Marek Polacek <polacek@redhat.com>
10974 PR rtl-optimization/56466
10975 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
10976 if we're changing a loop.
10977 (peel_loops_completely): Likewise.
10979 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
10982 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
10984 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
10987 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
10988 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
10989 INTX_FTYPE_FX, FX_FTYPE_INTX.
10990 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
10992 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
10994 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
10995 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
10996 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
10997 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
10998 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
10999 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
11000 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
11001 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
11002 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
11003 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
11004 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
11005 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
11006 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
11007 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
11008 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
11009 (avrxmega6): Increase max flash segments from 5 to 6.
11010 * config/avr/t-multilib: Regenerate.
11011 * config/avr/avr-tables.opt: Regenerate.
11012 * doc/avr-mmcu.texi: Regenerate.
11014 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
11016 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
11017 (avr_device_to_arch): Rename to avr_device_to_ld.
11018 (avr_device_to_as): New prototype.
11019 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
11020 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
11021 * config/avr/driver-avr.c (avr_device_to_as): New.
11022 (avr_device_to_arch): Rename to avr_device_to_ld.
11024 2013-02-27 Jakub Jelinek <jakub@redhat.com>
11026 PR middle-end/56461
11027 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
11028 method on dr_chain and result_chain.
11030 PR middle-end/56461
11031 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
11032 pointer_set_destroy on not_executed_last_iteration.
11034 PR middle-end/56461
11035 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
11037 PR middle-end/56461
11038 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
11039 FOR_EACH_DEFINED_FUNCTION when freeing state.
11041 PR middle-end/56461
11042 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
11044 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
11047 PR middle-end/56461
11048 * ipa-cp.c (decide_whether_version_node): Call vec_free on
11049 known_aggs[i].items and release known_aggs vector.
11051 PR middle-end/56461
11052 * ipa-reference.c (propagate): Free node_info even for alias nodes.
11054 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11056 * config/microblaze/microblaze.c (microblaze_emit_compare):
11057 Use xor for EQ/NE comparisions.
11058 * config/microblaze/microblaze.md (cstoresf4): Add constraints
11059 (cbranchsf4): Adjust operator to comparison_operator.
11061 2013-02-27 Jakub Jelinek <jakub@redhat.com>
11063 PR middle-end/56461
11064 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
11066 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
11067 vec_safe_push, always update *slot.
11068 (redirect_edge_var_map_clear): Use vec_free.
11069 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
11070 (free_var_map_entry): Use vec_free.
11071 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
11072 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
11074 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
11076 PR middle-end/45472
11077 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
11078 when the may_trap_p bit of the exprs being merged differs.
11079 Reorder tests for speculativeness in the logical and operator.
11081 2013-02-27 Jakub Jelinek <jakub@redhat.com>
11083 * incpath.c (add_standard_paths): Use reconcat instead of concat
11084 where appropriate and avoid leaking memory.
11086 * opts.h: Include obstack.h.
11087 (opts_concat): New prototype.
11088 (opts_obstack): New declaration.
11089 * opts.c (opts_concat): New function.
11090 (opts_obstack): New variable.
11091 (init_options_struct): Call gcc_init_obstack on opts_obstack.
11092 (finish_options): Use opts_concat instead of concat
11093 and XOBNEWVEC instead of XNEWVEC.
11094 * opts-common.c (generate_canonical_option, decode_cmdline_option,
11095 generate_option): Likewise.
11096 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
11097 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
11100 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
11101 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
11103 2013-02-26 Jakub Jelinek <jakub@redhat.com>
11105 PR middle-end/56461
11106 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
11108 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
11110 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
11111 (arm_block_move_unaligned_straight): Likewise.
11112 (arm_adjust_block_mem): Likewise.
11114 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
11117 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
11118 temp, cond and label.
11119 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
11122 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
11123 * config/c6x/c6x.h (dbx_register_map): Update declaration.
11126 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
11127 of prologue/epilogue functions.
11130 * config/tilegx/tilegx.c (tilegx_expand_prologue):
11131 Remove unused variable cfa_offset.
11132 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
11135 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
11136 type promotion to unsigned.
11139 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
11140 for HOST_WIDE_INT of 32 bit / same size as int.
11141 (arm_block_move_unaligned_straight): Likewise.
11142 (arm_adjust_block_mem): Likewise.
11145 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
11148 2013-02-26 Marek Polacek <polacek@redhat.com>
11150 PR tree-optimization/56426
11151 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
11153 2013-02-26 Richard Biener <rguenther@suse.de>
11156 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
11157 unused variable loops.
11159 2013-02-26 Jakub Jelinek <jakub@redhat.com>
11161 PR tree-optimization/56448
11162 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
11163 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
11164 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
11165 later operands of the references, or even first operand for
11166 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
11168 PR tree-optimization/56443
11169 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
11170 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
11171 to type_for_mode langhook.
11173 2013-02-25 Matt Turner <mattst88@gmail.com>
11175 * doc/invoke.texi: Document r4700.
11177 2013-02-25 Richard Biener <rguenther@suse.de>
11179 PR tree-optimization/56175
11180 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
11182 (simplify_bitwise_binary): ... here. Also guard the conversion
11183 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
11185 2013-02-25 Catherine Moore <clm@codesourcery.com>
11188 2013-02-24 Catherine Moore <clm@codesourcery.com>
11189 Maciej W. Rozycki <macro@codesourcery.com>
11190 Tom de Vries <tom@codesourcery.com>
11191 Nathan Sidwell <nathan@codesourcery.com>
11192 Iain Sandoe <iain@codesourcery.com>
11193 Nathan Froyd <froydnj@codesourcery.com>
11194 Chao-ying Fu <fu@mips.com>
11196 * doc/extend.texi: (micromips, nomicromips, nocompression):
11197 Document new function attributes.
11198 * doc/invoke.texi (minterlink-compressed, mmicromips,
11199 m14k, m14ke, m14kec): Document new options.
11200 (minterlink-mips16): Update documentation.
11201 * doc/md.texi (ZC, ZD): Document new constraints.
11202 * configure.ac (gcc_cv_as_micromips): Check if linker
11203 supports the .set micromips directive.
11204 * configure: Regenerate.
11205 * config.in: Regenerate.
11206 * config/mips/mips-tables.opt: Regenerate.
11207 * config/mips/micromips.md: New file.
11208 * constraints.md (ZC, AD): New constraints.
11209 * config/mips/predicates.md (movep_src_register): New predicate.
11210 (movep_src_operand): New predicate.
11211 (non_volatile_mem_operand): New predicate.
11212 * config/mips/mips.md (multimem): New type.
11213 (length): Differentiate between 17-bit and 18-bit branch offsets.
11214 (MOVEP1, MOVEP2): New mode iterator.
11215 (mov_<load>l): Use ZC constraint.
11216 (mov_<load>r): Likewise.
11217 (mov_<store>l): Likewise.
11218 (mov_<store>r): Likewise.
11219 (*branch_equality<mode>_inverted): Add microMIPS support.
11220 (*branch_equality<mode>): Likewise.
11221 (*jump_absolute): Likewise.
11222 (indirect_jump_<mode>): Likewise.
11223 (tablejump_<mode>): Likewise.
11224 (<optab>_internal): Likewise.
11225 (sibcall_internal): Likewise.
11226 (sibcall_value_internal): Likewise.
11227 (prefetch): Use constraint ZD.
11228 * config/mips/mips.opt (minterlink-compressed): New option.
11229 (minterlink-mips16): Now an alias for minterlink-compressed.
11230 (mmicromips): New option.
11231 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
11232 (compare_and_swap_12): Likewise.
11233 (sync_add<mode>): Likewise.
11234 (sync_<optab>_12): Likewise.
11235 (sync_old_<optab>_12): Likewise.
11236 (sync_new_<optab>_12): Likewise.
11237 (sync_nand_12): Likewise.
11238 (sync_old_nand_12): Likewise.
11239 (sync_new_nand_12): Likewise.
11240 (sync_sub<mode>): Likewise.
11241 (sync_old_add<mode>): Likewise.
11242 (sync_old_sub<mode>): Likewise.
11243 (sync_new_add<mode>): Likewise.
11244 (sync_new_sub<mode>): Likewise.
11245 (sync_<optab><mode>): Likewise.
11246 (sync_old_<optab><mode>): Likewise.
11247 (sync_new_<optab><mode>): Likewise.
11248 (sync_nand<mode>): Likewise.
11249 (sync_old_nand<mode>): Likewise.
11250 (sync_new_nand<mode>): Likewise.
11251 (sync_lock_test_and_set<mode>): Likewise.
11252 (test_and_set_12): Likewise.
11253 (atomic_compare_and_swap<mode>): Likewise.
11254 (atomic_exchange<mode>_llsc): Likewise.
11255 (atomic_fetch_add<mode>_llsc): Likewise.
11256 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
11257 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
11258 (umips_save_restore_pattern_p): Likewise.
11259 (umips_load_store_pair_p): Likewise.
11260 (umips_output_load_store_pair): Likewise.
11261 (umips_movep_target_p): Likewise.
11262 (umips_12bit_offset_address_p): Likewise.
11263 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
11264 (mips_base_mips16): Rename this...
11265 (mips_base_compression_flags): ...to this. Update all uses.
11266 (mips_attribute_table): Add micromips, nomicromips and nocompression.
11267 (mips_mips16_decl_p): Delete.
11268 (mips_nomips16_decl_p): Delete.
11269 (mips_get_compress_on_flags): New function.
11270 (mips_get_compress_off_flags): New function.
11271 (mips_get_compress_mode): New function.
11272 (mips_get_compress_on_name): New function.
11273 (mips_get_compress_off_name): New function.
11274 (mips_insert_attributes): Support multiple compression types.
11275 (mips_merge_decl_attributes): Likewise.
11276 (umips_12bit_offset_address_p): New function.
11277 (mips_start_function_definition): Emit .set micromips directive.
11278 (mips_call_may_need_jalx_p): New function.
11279 (mips_function_ok_for_sibcall): Add microMIPS support.
11280 (mips_print_operand_punctuation): Support short delay slots and
11282 (umips_swm_mask, umips_swm_encoding): New.
11283 (umips_build_save_restore): New function.
11284 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
11285 (was_mips16_p): Remove.
11286 (old_compression_mode): New.
11287 (mips_set_compression_mode): New function.
11288 (mips_set_current_function): Add microMIPS support.
11289 (mips_option_override): Likewise.
11290 (umips_save_restore_pattern_p): New function.
11291 (umips_output_save_restore): New function.
11292 (umips_load_store_pair_p_1): New function.
11293 (umips_load_store_pair_p): New function.
11294 (umips_output_load_store_pair_1): New function.
11295 (umips_output_load_store_pair): New function.
11296 (umips_movep_target_p) New function.
11297 (mips_prepare_pch_save): Add microMIPS support.
11298 * config/mips/mips.h (TARGET_COMPRESSION): New.
11299 (TARGET_CPU_CPP_BUILTINS): Update macro
11300 to use new compression flags and to support microMIPS.
11301 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
11302 (MIPS_ARCH_FLOAT_SPEC): Likewise.
11303 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
11304 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
11305 (ASM_SPEC): Support mmicromips and mno-micromips.
11306 (M16STORE_REG_P): New macro.
11307 (MIPS_CALL): Support TARGET_MICROMIPS.
11308 (MICROMIPS_J): New macro.
11309 (mips_base_mips16): Rename this...
11310 (mips_base_compression_flags): ...to this.
11311 (UMIPS_12BIT_OFFSET_P): New macro.
11312 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
11313 (MULTILIB_DIRNAMES): Likewise.
11315 2013-02-25 Tom de Vries <tom@codesourcery.com>
11317 PR rtl-optimization/56131
11318 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
11319 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
11320 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
11322 2013-02-25 Tobias Burnus <burnus@net-b.de>
11324 * doc/invoke.texi (-fsanitize=): Move from optimization
11325 to debugging options.
11327 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
11329 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
11331 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
11332 Alexander Monakov <amonakov@ispras.ru>
11334 PR middle-end/56077
11335 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
11336 flush pending lists also on non-jumps. Adjust comment.
11338 2013-02-24 Catherine Moore <clm@codesourcery.com>
11339 Maciej W. Rozycki <macro@codesourcery.com>
11340 Tom de Vries <tom@codesourcery.com>
11341 Nathan Sidwell <nathan@codesourcery.com>
11342 Iain Sandoe <iain@codesourcery.com>
11343 Nathan Froyd <froydnj@codesourcery.com>
11344 Chao-ying Fu <fu@mips.com>
11346 * doc/extend.texi: (micromips, nomicromips, nocompression):
11347 Document new function attributes.
11348 * doc/invoke.texi (minterlink-compressed, mmicromips,
11349 m14k, m14ke, m14kec): Document new options.
11350 (minterlink-mips16): Update documentation.
11351 * doc/md.texi (ZC, ZD): Document new constraints.
11352 * configure.ac (gcc_cv_as_micromips): Check if linker
11353 supports the .set micromips directive.
11354 * configure: Regenerate.
11355 * config.in: Regenerate.
11356 * config/mips/mips-tables.opt: Regenerate.
11357 * config/mips/micromips.md: New file.
11358 * constraints.md (ZC, AD): New constraints.
11359 * config/mips/predicates.md (movep_src_register): New predicate.
11360 (movep_src_operand): New predicate.
11361 (non_volatile_mem_operand): New predicate.
11362 * config/mips/mips.md (multimem): New type.
11363 (length): Differentiate between 17-bit and 18-bit branch offsets.
11364 (MOVEP1, MOVEP2): New mode iterator.
11365 (mov_<load>l): Use ZC constraint.
11366 (mov_<load>r): Likewise.
11367 (mov_<store>l): Likewise.
11368 (mov_<store>r): Likewise.
11369 (*branch_equality<mode>_inverted): Add microMIPS support.
11370 (*branch_equality<mode>): Likewise.
11371 (*jump_absolute): Likewise.
11372 (indirect_jump_<mode>): Likewise.
11373 (tablejump_<mode>): Likewise.
11374 (<optab>_internal): Likewise.
11375 (sibcall_internal): Likewise.
11376 (sibcall_value_internal): Likewise.
11377 (prefetch): Use constraint ZD.
11378 * config/mips/mips.opt (minterlink-compressed): New option.
11379 (minterlink-mips16): Now an alias for minterlink-compressed.
11380 (mmicromips): New option.
11381 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
11382 (compare_and_swap_12): Likewise.
11383 (sync_add<mode>): Likewise.
11384 (sync_<optab>_12): Likewise.
11385 (sync_old_<optab>_12): Likewise.
11386 (sync_new_<optab>_12): Likewise.
11387 (sync_nand_12): Likewise.
11388 (sync_old_nand_12): Likewise.
11389 (sync_new_nand_12): Likewise.
11390 (sync_sub<mode>): Likewise.
11391 (sync_old_add<mode>): Likewise.
11392 (sync_old_sub<mode>): Likewise.
11393 (sync_new_add<mode>): Likewise.
11394 (sync_new_sub<mode>): Likewise.
11395 (sync_<optab><mode>): Likewise.
11396 (sync_old_<optab><mode>): Likewise.
11397 (sync_new_<optab><mode>): Likewise.
11398 (sync_nand<mode>): Likewise.
11399 (sync_old_nand<mode>): Likewise.
11400 (sync_new_nand<mode>): Likewise.
11401 (sync_lock_test_and_set<mode>): Likewise.
11402 (test_and_set_12): Likewise.
11403 (atomic_compare_and_swap<mode>): Likewise.
11404 (atomic_exchange<mode>_llsc): Likewise.
11405 (atomic_fetch_add<mode>_llsc): Likewise.
11406 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
11407 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
11408 (umips_save_restore_pattern_p): Likewise.
11409 (umips_load_store_pair_p): Likewise.
11410 (umips_output_load_store_pair): Likewise.
11411 (umips_movep_target_p): Likewise.
11412 (umips_12bit_offset_address_p): Likewise.
11413 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
11414 (mips_base_mips16): Rename this...
11415 (mips_base_compression_flags): ...to this. Update all uses.
11416 (mips_attribute_table): Add micromips, nomicromips and nocompression.
11417 (mips_mips16_decl_p): Delete.
11418 (mips_nomips16_decl_p): Delete.
11419 (mips_get_compress_on_flags): New function.
11420 (mips_get_compress_off_flags): New function.
11421 (mips_get_compress_mode): New function.
11422 (mips_get_compress_on_name): New function.
11423 (mips_get_compress_off_name): New function.
11424 (mips_insert_attributes): Support multiple compression types.
11425 (mips_merge_decl_attributes): Likewise.
11426 (umips_12bit_offset_address_p): New function.
11427 (mips_start_function_definition): Emit .set micromips directive.
11428 (mips_call_may_need_jalx_p): New function.
11429 (mips_function_ok_for_sibcall): Add microMIPS support.
11430 (mips_print_operand_punctuation): Support short delay slots and
11432 (umips_swm_mask, umips_swm_encoding): New.
11433 (umips_build_save_restore): New function.
11434 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
11435 (was_mips16_p): Remove.
11436 (old_compression_mode): New.
11437 (mips_set_compression_mode): New function.
11438 (mips_set_current_function): Add microMIPS support.
11439 (mips_option_override): Likewise.
11440 (umips_save_restore_pattern_p): New function.
11441 (umips_output_save_restore): New function.
11442 (umips_load_store_pair_p_1): New function.
11443 (umips_load_store_pair_p): New function.
11444 (umips_output_load_store_pair_1): New function.
11445 (umips_output_load_store_pair): New function.
11446 (umips_movep_target_p) New function.
11447 (mips_prepare_pch_save): Add microMIPS support.
11448 * config/mips/mips.h (TARGET_COMPRESSION): New.
11449 (TARGET_CPU_CPP_BUILTINS): Update macro
11450 to use new compression flags and to support microMIPS.
11451 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
11452 (MIPS_ARCH_FLOAT_SPEC): Likewise.
11453 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
11454 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
11455 (ASM_SPEC): Support mmicromips and mno-micromips.
11456 (M16STORE_REG_P): New macro.
11457 (MIPS_CALL): Support TARGET_MICROMIPS.
11458 (MICROMIPS_J): New macro.
11459 (mips_base_mips16): Rename this...
11460 (mips_base_compression_flags): ...to this.
11461 (UMIPS_12BIT_OFFSET_P): New macro.
11462 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
11463 (MULTILIB_DIRNAMES): Likewise.
11465 2013-02-24 Jakub Jelinek <jakub@redhat.com>
11468 * target-globals.c (save_target_globals): For init_reg_sets and
11469 target_reinit remporarily set this_fn_optabs to this_target_optabs.
11471 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
11473 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
11474 * config/aarch64/t-aarch64
11475 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
11477 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
11479 PR inline-asm/56148
11480 * lra-constraints.c (process_alt_operands): Reload operand
11481 conflicting with earlier clobber only if no more other conflicting
11484 2013-02-22 Jakub Jelinek <jakub@redhat.com>
11487 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
11488 if not linking a shared library.
11490 2013-02-22 Seth LaForge <sethml@google.com>
11492 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
11494 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
11496 * config/arm/arm.md (split for extendsidi): Update condition.
11497 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
11498 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
11499 (qhs_zextenddi_cstr): Likewise.
11501 2013-02-21 Jakub Jelinek <jakub@redhat.com>
11503 PR middle-end/56420
11504 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
11505 avoid signed wrapping.
11506 (expand_mult): Handle properly multiplication by
11507 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
11508 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
11509 in the compiler if coeff is HOST_WIDE_INT_MIN.
11510 (expand_divmod): Don't make ext_op1 static, change it's type to
11511 uhwi. Avoid undefined behavior in -INTVAL (op1).
11513 PR rtl-optimization/50339
11514 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
11516 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
11517 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
11518 into splitting_ashiftrt field.
11519 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
11521 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
11524 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
11526 PR middle-end/56108
11527 * trans-mem.c (execute_tm_mark): Do not expand transactions that
11528 are sure to go irrevocable.
11530 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
11532 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
11533 scalars are valid operands.
11535 2013-02-21 Martin Jambor <mjambor@suse.cz>
11537 PR tree-optimization/56310
11538 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
11539 only matching indices and non-negative final offsets.
11540 (intersect_aggregates_with_edge): Pass src_idx to
11541 agg_replacements_to_vector. Pass src_idx insstead of index to
11542 intersect_with_agg_replacements.
11544 2013-02-21 Martin Jambor <mjambor@suse.cz>
11546 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
11547 instead of hard-wired defaults.
11549 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
11551 * doc/invoke.texi (MIPS Options): Update documentation of the
11552 floating-point multiply-accumulate instruction restrictions.
11554 2013-02-21 Kostya Serebryany <kcc@google.com>
11556 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
11557 asan_shadow_offset on x86_64 linux.
11559 2013-02-21 Richard Biener <rguenther@suse.de>
11561 PR tree-optimization/56415
11563 2013-02-11 Richard Biener <rguenther@suse.de>
11565 PR tree-optimization/56273
11566 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
11569 2013-02-21 Jakub Jelinek <jakub@redhat.com>
11572 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
11575 PR inline-asm/56405
11576 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
11577 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
11579 2013-02-20 Jan Hubicka <jh@suse.cz>
11581 PR tree-optimization/56265
11582 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
11583 when target is referenced for first time.
11585 2013-02-20 Richard Biener <rguenther@suse.de>
11587 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
11588 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
11589 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
11590 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
11591 not return anything.
11592 (rename_ssa_copies): Do not remove unused locals.
11593 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
11594 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
11595 * passes.c (execute_function_todo): Do not schedule unused locals
11596 removal if cleanup_tree_cfg did something.
11597 * tree-ssa-live.c (remove_unused_locals): Dump statistics
11598 about the number of removed locals.
11600 2013-02-20 Richard Biener <rguenther@suse.de>
11602 PR tree-optimization/56398
11603 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
11605 2013-02-20 Martin Jambor <mjambor@suse.cz>
11607 PR tree-optimization/55334
11608 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
11609 restricted pointers to arrays.
11611 2013-02-20 Richard Biener <rguenther@suse.de>
11612 Jakub Jelinek <jakub@redhat.com>
11614 PR tree-optimization/56396
11615 * tree-ssa-ccp.c (n_const_val): New static variable.
11616 (get_value): Return NULL for SSA names we don't have a lattice
11618 (ccp_initialize): Initialize n_const_val.
11619 * tree-ssa-copy.c (n_copy_of): New static variable.
11620 (init_copy_prop): Initialize n_copy_of.
11621 (get_value): Return NULL_TREE for SSA names we don't have a
11624 2013-02-20 Martin Jambor <mjambor@suse.cz>
11626 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
11628 2013-02-20 Richard Biener <rguenther@suse.de>
11630 * genpreds.c (write_lookup_constraint): Do not compare first
11631 letter of the constraint again.
11633 2013-02-20 Richard Biener <rguenther@suse.de>
11635 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
11637 (get_use_iv_cost): Terminate hashtable walk when coming across
11640 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
11642 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
11643 reassociation for avx2 targets.
11645 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11647 * config/microblaze/microblaze.c: microblaze_has_clz = 0
11648 Add version check for v8.10.a to enable microblaze_has_clz
11649 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
11650 version and TARGET_PATTERN_COMPARE check
11651 * config/microblaze/microblaze.md: New clzsi2 instruction
11653 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11655 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
11656 function before branching.
11658 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
11660 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
11662 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
11664 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
11666 PR middle-end/55889
11667 * sel-sched.c: Include ira.h.
11668 (implicit_clobber_conflict_p): New function.
11669 (moveup_expr): Use it.
11670 * Makefile.in (sel-sched.o): Depend on ira.h.
11672 2013-02-19 Richard Biener <rguenther@suse.de>
11674 PR tree-optimization/56384
11675 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
11676 (vn_hash_type): Split out from ...
11677 (vn_hash_constant_with_type): ... here.
11678 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
11679 (vn_phi_eq): Compare types from vn_phi_s structure.
11680 (vn_phi_lookup): Populate vn_phi_s type.
11681 (vn_phi_insert): Likewise.
11683 2013-02-19 Jakub Jelinek <jakub@redhat.com>
11685 PR tree-optimization/56350
11686 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
11687 if haven't found reduction or nested cycle operand, rather than
11688 asserting we must find it.
11690 PR tree-optimization/56381
11691 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
11694 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
11695 Jakub Jelinek <jakub@redhat.com>
11698 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
11699 (swap_optab_enable): Same.
11700 (init_all_optabs): Use argument instead of global.
11701 * tree.h (struct tree_optimization_option): New field target_optabs.
11702 * expr.h (init_all_optabs): Add argument to prototype.
11703 (TREE_OPTIMIZATION_OPTABS): New.
11704 (save_optabs_if_changed): Protoize.
11705 * optabs.h: Declare this_fn_optabs.
11706 * optabs.c (save_optabs_if_changed): New.
11707 Declare this_fn_optabs.
11708 (init_optabs): Add argument to init_all_optabs() call.
11709 * function.c (invoke_set_current_function_hook): Handle per
11711 * function.h (struct function): New field optabs.
11712 * config/mips/mips.c (mips_set_mips16_mode): Handle when
11713 optimization_current_node has changed.
11714 * target-globals.h (save_target_globals_default_opts): Protoize.
11715 * target-globals.c (save_target_globals_default_opts): New.
11717 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11720 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
11721 registers %fr12 and %fr12R as call used.
11724 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
11725 and HImode, require all displacements to be an integer multiple of
11727 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
11728 only allow QImode and HImode when reload is in progress and strict is
11729 true. Likewise for symbolic addresses. Use base14_operand to check
11730 displacements in REG+BASE addresses.
11732 2013-02-18 Richard Biener <rguenther@suse.de>
11734 PR tree-optimization/56366
11735 * tree-vect-loop.c (get_initial_def_for_induction): Properly
11736 handle sign-conversion of outer-loop initial induction value.
11738 2013-02-18 Richard Biener <rguenther@suse.de>
11740 PR middle-end/56349
11741 * cfghooks.c (merge_blocks): If we merge a latch into another
11742 block adjust references to it.
11743 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
11744 (verify_loop_structure): Verify that a recorded latch is in fact
11747 2013-02-18 Richard Biener <rguenther@suse.de>
11749 PR tree-optimization/56321
11750 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
11751 order SSA name release and virtual operand unlinking.
11753 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11755 * config/microblaze/microblaze.md (save_stack_block): Define.
11756 (restore_stack_block): Likewise.
11758 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11760 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
11761 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
11762 * config/microblaze/microblaze.c (microblaze_option_override):
11763 Bail out early for PIC modes when target does not support PIC.
11765 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11767 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
11768 Replace with a microblaze version.
11769 (microblaze_trampoline_init): Adapt for microblaze.
11770 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
11773 2013-02-16 Jakub Jelinek <jakub@redhat.com>
11774 Dodji Seketeli <dodji@redhat.com>
11777 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
11778 (instrument_mem_region_access): Do not forget to always put
11779 instrumentation of the of 'base' and 'base + len' in a "if (len !=
11780 0) statement, even for cases where either 'base' or 'base + len'
11781 are not instrumented -- because they have been previously
11782 instrumented. Simplify the logic by putting all the statements
11783 instrument 'base + len' inside a sequence, and then insert that
11784 sequence right before the current insertion point. Then, to
11785 instrument 'base + len', just get an iterator on that statement.
11786 And do not forget to update the pointer to iterator the function
11787 received as argument.
11789 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
11791 PR rtl-optimization/56348
11792 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
11794 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
11796 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
11797 (clean_graph_dump_file): Pass base to start_graph_dump.
11799 2013-02-14 Richard Henderson <rth@redhat.com>
11802 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
11804 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
11806 * collect2-aix.h: Define F_LOADONLY.
11808 2013-02-14 Richard Biener <rguenther@suse.de>
11811 * varasm.c (output_constant_def_1): Get the decl representing
11812 the constant as argument.
11813 (output_constant_def): Wrap output_constant_def_1.
11814 (make_decl_rtl): Use output_constant_def_1 with the decl
11815 representing the constant.
11816 (build_constant_desc): Optionally re-use a decl already
11817 representing the constant.
11818 (tree_output_constant_def): Adjust.
11820 2013-02-14 Dodji Seketeli <dodji@redhat.com>
11823 * asan.c (instrument_builtin_call): Really put the length of the
11824 second source argument into src1_len.
11826 2013-02-13 Jakub Jelinek <jakub@redhat.com>
11828 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
11829 argument. If it is false, don't create edge from then_bb to
11831 (insert_if_then_before_iter): Pass true to it.
11832 (build_check_stmt): Pass false to it.
11833 (transform_statements): Flush hash table only on extended basic
11834 block boundaries, rather than at the beginning of every bb.
11835 Don't flush hash table on nonfreeing_call_p calls.
11836 * tree-flow.h (nonfreeing_call_p): New prototype.
11837 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
11839 2013-02-13 David S. Miller <davem@davemloft.net>
11841 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
11843 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
11846 * ira.c (max_regno_before_ira): Move from ...
11848 (fix_reg_equiv_init): Use max_regno_before_ira instead of
11851 2013-02-13 Jakub Jelinek <jakub@redhat.com>
11853 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
11855 2013-02-13 Richard Biener <rguenther@suse.de>
11858 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
11859 globals in MEM_REFs.
11861 2013-02-13 Richard Biener <rguenther@suse.de>
11863 * loop-init.c (loop_optimizer_init): Clear loop state when
11864 re-initializing preserved loops.
11865 * loop-unswitch.c (unswitch_single_loop): Return whether
11866 we unswitched the loop. Do not verify loop state here.
11867 (unswitch_loops): When we unswitched a loop discover new loops.
11869 2013-02-13 Kostya Serebryany <kcc@google.com>
11871 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
11873 * sanitizer.def: Rename __asan_init to __asan_init_v1.
11875 2013-02-12 Dodji Seketeli <dodji@redhat.com>
11877 Avoid instrumenting duplicated memory access in the same basic block
11878 * Makefile.in (asan.o): Add new dependency on hash-table.h
11879 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
11880 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
11881 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
11882 (free_mem_ref_resources, has_mem_ref_been_instrumented)
11883 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
11884 (get_mem_ref_of_assignment): New functions.
11885 (get_mem_refs_of_builtin_call): Extract from
11886 instrument_builtin_call and tweak a little bit to make it fit with
11888 (instrument_builtin_call): Use the new
11889 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
11890 of is_gimple_builtin_call.
11891 (instrument_derefs, instrument_mem_region_access): Insert the
11892 instrumented memory reference into the hash table.
11893 (maybe_instrument_assignment): Renamed instrument_assignment into
11894 this, and change it to advance the iterator when instrumentation
11895 actually happened and return true in that case. This makes it
11896 homogeneous with maybe_instrument_assignment, and thus give a
11897 chance to callers to be more 'regular'.
11898 (transform_statements): Clear the memory reference hash table
11899 whenever we enter a new BB, when we cross a function call, or when
11900 we are done transforming statements. Use
11901 maybe_instrument_assignment instead of instrumentation. No more
11902 need to special case maybe_instrument_assignment and advance the
11903 iterator after calling it; it's now handled just like
11904 maybe_instrument_call. Update comment.
11906 2013-02-13 Richard Biener <rguenther@suse.de>
11908 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
11909 Fix loop discovery code.
11911 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
11913 PR inline-asm/56148
11914 * lra-constraints.c (process_alt_operands): Match early clobber
11915 operand with itself. Check conflicts with earlyclobber only if
11916 the operand is not reloaded. Prefer to reload conflicting operand
11917 if earlyclobber and matching operands are the same.
11919 2013-02-12 Richard Biener <rguenther@suse.de>
11922 * lto-streamer-out.c (write_symbol): Do not output symbols
11923 for hard register variables.
11925 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
11928 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
11929 (umulsidi3_insn, mulsidi3_insn): New insns.
11931 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
11933 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
11934 (struct tune_params): Add vec_costs field.
11935 * config/arm/arm.c (arm_builtin_vectorization_cost)
11936 (arm_add_stmt_cost): New functions.
11937 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
11938 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
11939 (arm_default_vec_cost): New struct of type cpu_vec_costs.
11940 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
11941 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
11942 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
11943 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
11945 2013-02-12 Richard Biener <rguenther@suse.de>
11948 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
11949 decls again if possible.
11951 2013-02-12 Richard Biener <rguenther@suse.de>
11953 PR middle-end/56288
11954 * tree-ssa.c (verify_ssa_name): Fix check, move
11955 SSA_NAME_IN_FREE_LIST check up.
11957 2013-02-12 Jakub Jelinek <jakub@redhat.com>
11958 Steven Bosscher <steven@gcc.gnu.org>
11960 PR rtl-optimization/56151
11961 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
11962 equal to op0 or op1, and last_insn pattern is CODE operation
11963 with MEM dest and one of the operands matches that MEM.
11965 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
11967 * doc/extend.texi: Document Function Multiversioning and "default"
11968 parameter string to target attribute.
11969 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
11970 target attribute parameter is "default".
11971 (ix86_compare_version_priority): Remove checks for target attribute.
11972 (ix86_mangle_function_version_assembler_name): Change error to sorry.
11973 Remove check for target attribute equal to NULL. Add assert.
11974 (ix86_generate_version_dispatcher_body): Change error to sorry.
11976 2013-02-11 Iain Sandoe <iain@codesourcery.com>
11977 Jack Howarth <howarth@bromo.med.uc.edu>
11978 Patrick Marlier <patrick.marlier@gmail.com>
11981 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
11982 define ENDFILE_SPEC as TM_DESTRUCTOR.
11983 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
11985 2013-02-11 Alexander Potapenko <glider@google.com>
11986 Jack Howarth <howarth@bromo.med.uc.edu>
11987 Jakub Jelinek <jakub@redhat.com>
11990 * config/darwin.c (cdtor_record): Rename ctor_record.
11991 (sort_cdtor_records): Rename sort_ctor_records.
11992 (finalize_dtors): New routine to sort destructors by
11993 priority before use in assemble_integer.
11994 (machopic_asm_out_destructor): Use finalize_dtors if needed.
11996 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
11998 PR rtl-optimization/56275
11999 * simplify-rtx.c (avoid_constant_pool_reference): Check that
12000 offset is non-negative and less than cmode size before
12001 calling simplify_subreg.
12003 2013-02-11 Richard Biener <rguenther@suse.de>
12005 PR tree-optimization/56264
12006 * cfgloop.h (fix_loop_structure): Adjust prototype.
12007 * loop-init.c (fix_loop_structure): Return the number of
12008 newly discovered loops.
12009 * tree-cfgcleanup.c (repair_loop_structures): When new loops
12010 are discovered, do a full loop-closed SSA rewrite.
12012 2013-02-11 Richard Biener <rguenther@suse.de>
12014 PR tree-optimization/56273
12015 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
12017 (check_array_ref): Fix missing newline in dumps.
12018 (search_for_addr_array): Likewise.
12020 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
12022 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
12024 2013-02-09 Jakub Jelinek <jakub@redhat.com>
12027 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
12029 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
12031 PR rtl-optimization/56246
12032 * lra-constraints.c (simplify_operand_subreg): Try to reuse
12034 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
12035 constraints are satisfied.
12037 2013-02-08 Jeff Law <law@redhat.com>
12040 * emit-rtl.c (reg_is_parm_p): New function.
12041 * regs.h (reg_is_parm_p): New prototype.
12042 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
12043 callee-clobbered registers.
12045 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
12048 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
12049 If there is no implicit builtin declaration, just return NULL.
12051 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
12053 * config/i386/sse.md (FMAMODEM): New mode iterator.
12054 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
12055 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
12057 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
12059 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
12060 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
12061 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
12063 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12065 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
12066 (microblaze*-*-elf): Likewise.
12067 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
12069 * config/microblaze/microblaze-c.c: Add builtin defines for
12070 _LITTLE_ENDIAN and _BIG_ENDIAN.
12071 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
12072 add to TARGET_DEFAULT flags.
12073 Expand ASM_SPEC and LINK_SPEC.
12074 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
12075 * config/microblaze/microblaze.md: Update extendsidi2 and
12076 movdi_internal instructions to use low-order / high-order reg
12078 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
12079 options and inversemask / mask of LITTLE_ENDIAN.
12080 * config/microblaze/t-microblaze: Expand multilib options to
12081 include mlittle-endian (le) and update exceptions patterns.
12083 2013-02-08 Jakub Jelinek <jakub@redhat.com>
12085 PR rtl-optimization/56195
12086 * lra-constraints.c (get_reload_reg): Don't reuse regs
12087 if they have smaller mode than requested, if they have
12088 wider mode than requested, try to return a SUBREG.
12090 PR tree-optimization/56250
12091 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
12092 if type is unsigned and code isn't MULT_EXPR.
12094 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
12096 PR tree-optimization/56064
12097 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
12098 bits according to mode.
12099 * fixed-value.h (fixed_from_double_int)
12100 (const_fixed_from_double_int): Adjust comments.
12102 2013-02-08 Richard Biener <rguenther@suse.de>
12105 * lto-streamer.h (struct data_in): Remove current_file, current_line
12106 and current_col members.
12107 * lto-streamer-out.c (lto_output_location): Stream changed bits
12108 en-block for efficiency.
12109 * lto-streamer-in.c (clear_line_info): Remove.
12110 (lto_input_location): Cache current file, line and column
12111 globally via local statics. Read changed bits en-block.
12112 (input_function): Do not call clear_line_info.
12113 (lto_read_body): Likewise.
12114 (lto_input_toplevel_asms): Likewise.
12116 2013-02-08 Michael Matz <matz@suse.de>
12118 PR tree-optimization/52448
12119 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
12120 (nt_call_phase): New static.
12121 (add_or_mark_expr): Only mark accesses with newer phase than any
12123 (nonfreeing_call_p): New.
12124 (nt_init_block): Update nt_call_phase, mark blocks as visited.
12125 (nt_fini_block): Keep blocks marked as visited.
12126 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
12128 2013-02-08 Richard Biener <rguenther@suse.de>
12130 * ira.c (ira): Free broken dominator information.
12132 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
12134 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
12136 2013-02-08 Marek Polacek <polacek@redhat.com>
12138 * cfgloop.c (verify_loop_structure): Add more checking of headers.
12140 2013-02-08 Richard Biener <rguenther@suse.de>
12142 PR middle-end/56181
12143 * cfgloop.h (flow_loops_find): Adjust.
12144 (bb_loop_header_p): Declare.
12145 * cfgloop.c (bb_loop_header_p): New function split out from ...
12146 (flow_loops_find): ... here. Adjust function signature,
12147 support incremental loop structure update.
12148 (verify_loop_structure): Cleanup. Verify a loop is a loop.
12149 * cfgloopmanip.c (fix_loop_structure): Move ...
12150 * loop-init.c (fix_loop_structure): ... here.
12151 (apply_loop_flags): Split out from ...
12152 (loop_optimizer_init): ... here.
12153 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
12154 in incremental mode, only remove dead loops here.
12156 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
12159 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
12160 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
12161 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
12162 (*round<mode>3.libgcc): New insns for fixed-modes.
12163 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
12164 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
12165 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
12166 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
12167 implementations. Define to __builtin_avr_absFX,
12168 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
12169 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
12170 __builtin_avr_countlsFX, respectively.
12171 * config/avr/avr-c.c (target.h): Include it.
12172 (enum avr_builtin_id): New enum.
12173 (avr_resolve_overloaded_builtin): New static function.
12174 (avr_register_target_pragmas): Use it to set
12175 targetm.resolve_overloaded_builtin.
12176 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
12177 tree nodes used by DEF_BUILTIN.
12178 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
12179 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
12180 <AVR_BUILTIN_xxBITS>: Same.
12182 2013-02-08 Richard Biener <rguenther@suse.de>
12184 * cfgloop.c (verify_loop_structure): Properly handle
12185 a loop exiting to another loop header.
12186 * ira-int.h (ira_loops): Remove.
12187 * ira.c (ira_loops): Remove.
12188 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
12189 (do_reload): Use loop_optimizer_finalize.
12190 * ira-build.c (create_loop_tree_nodes): Use get_loops and
12191 number_of_loops to access the loop tree.
12192 (more_one_region_p): Likewise.
12193 (finish_loop_tree_nodes): Likewise.
12194 (rebuild_regno_allocno_maps): Likewise.
12195 (mark_loops_for_removal): Likewise.
12196 (mark_all_loops_for_removal): Likewise.
12197 (remove_unnecessary_regions): Likewise.
12198 (ira_build): Likewise.
12199 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
12201 2013-02-08 Richard Biener <rguenther@suse.de>
12203 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
12204 * ipa-pure-const.c (analyze_function): Avoid calling
12205 mark_irreducible_loops twice.
12206 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
12208 2013-02-07 David S. Miller <davem@davemloft.net>
12210 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
12212 * var-tracking.c (vt_add_function_parameter): Test the presence of
12213 HAVE_window_save properly and do not remap argument registers when
12214 we have a leaf function.
12216 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
12219 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
12221 * config/i386/i386.c (ix86_print_operand): Ditto.
12223 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
12225 * lra-constraints.c (process_alt_operands): Fix recently added comment.
12227 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
12229 PR rtl-optimization/56225
12230 * lra-constraints.c (process_alt_operands): Check that reload hard
12231 reg can hold value for strict_low_part.
12233 2013-02-07 Jakub Jelinek <jakub@redhat.com>
12236 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
12237 dwarf2out_end_function.
12238 (in_first_function_p, maybe_at_text_label_p,
12239 first_loclabel_num_not_at_text_label): New variables.
12240 (dwarf2out_var_location): In the first function find out
12241 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
12242 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
12245 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
12247 PR rtl-optimization/56178
12248 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
12249 SUBREG of a register. Tidy up related block of code.
12250 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
12251 note if the source is a register or a SUBREG of a register.
12253 2013-02-07 Jakub Jelinek <jakub@redhat.com>
12256 * config/rs6000/rs6000.md (ptrm): New mode attr.
12257 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
12258 call_value_indirect_aix<pttrsize>,
12259 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
12262 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
12264 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
12265 if -bnortl. Convert to strcmp and strncmp.
12267 2013-02-07 Alan Modra <amodra@gmail.com>
12270 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
12271 addresses won't wrap when offsetting.
12272 (rs6000_secondary_reload): Provide secondary reloads needed for
12273 wrapping LO_SUM addresses.
12275 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
12277 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
12278 MACH, just __MACH__.
12280 2013-02-06 Richard Biener <rguenther@suse.de>
12282 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
12283 instead of calling fix_loop_structure.
12285 2013-02-06 Jakub Jelinek <jakub@redhat.com>
12287 PR middle-end/56217
12288 * omp-low.c (use_pointer_for_field): Return false if
12289 lower_send_shared_vars doesn't generate any copy-out code.
12291 2013-02-06 Tom de Vries <tom@codesourcery.com>
12293 PR rtl-optimization/56131
12294 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
12295 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
12296 of the label is NULL. Add comment.
12298 2013-02-05 Jakub Jelinek <jakub@redhat.com>
12300 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
12303 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
12304 (STATIC_LIBTSAN_LIBS): Likewise.
12305 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
12306 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
12307 is defined, don't add anything else beyond that.
12308 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
12309 (LINK_COMMAND_SPEC): Use them.
12311 PR tree-optimization/56205
12312 * tree-stdarg.c (check_all_va_list_escapes): Return true if
12313 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
12314 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
12316 2013-02-05 Richard Biener <rguenther@suse.de>
12318 PR tree-optimization/53342
12319 PR tree-optimization/53185
12320 * tree-vectorizer.h (vect_check_strided_load): Remove.
12321 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
12322 not disallow peeling for vectorized strided loads.
12323 (vect_check_strided_load): Make static and simplify.
12324 (vect_analyze_data_refs): Adjust.
12325 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
12326 correctly when vectorizing strided loads.
12328 2013-02-05 Richard Biener <rguenther@suse.de>
12330 * doc/install.texi: Refer to ISL, not PPL.
12332 2013-02-05 Jan Hubicka <jh@suse.cz>
12334 PR tree-optimization/55789
12335 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
12337 2013-02-05 Jan Hubicka <jh@suse.cz>
12339 PR tree-optimization/55789
12340 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
12341 the dead call anyway.
12343 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
12346 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
12348 2013-02-04 Alexander Potapenko <glider@google.com>
12349 Jack Howarth <howarth@bromo.med.uc.edu>
12350 Jakub Jelinek <jakub@redhat.com>
12353 * config/darwin.c (sort_ctor_records): Stabilized qsort
12354 on constructor priority by using original position.
12355 (finalize_ctors): New routine to sort constructors by
12356 priority before use in assemble_integer.
12357 (machopic_asm_out_constructor): Use finalize_ctors if needed.
12359 2013-02-04 Jakub Jelinek <jakub@redhat.com>
12362 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
12363 about visibility on artificial decls.
12364 * config/sol2.c (solaris_assemble_visibility): Likewise.
12366 2013-02-04 Kai Tietz <ktietz@redhat.com>
12369 * config/i386/i386.c (function_value_ms_64): Add additional valtype
12370 argument and improve checking of return-argument types for 16-byte
12372 (ix86_function_value_1): Add additional valtype argument on call
12373 of function_value_64.
12374 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
12375 handling infunction_value_64 function.
12377 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
12379 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
12381 2013-02-04 Richard Biener <rguenther@suse.de>
12383 PR tree-optimization/56188
12384 * tree-ssa-structalias.c (label_visit): Consider case with
12385 initially non-empty points-to set.
12386 (perform_var_substitution): Dump node mapping and clean up.
12388 2013-02-04 Richard Guenther <rguenther@suse.de>
12391 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
12392 node prevail as last resort.
12393 (lto_symtab_merge_decls): Remove guard on LTRANS here.
12394 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
12396 2013-02-04 Richard Biener <rguenther@suse.de>
12398 PR tree-optimization/56113
12399 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
12401 (equiv_class_lookup_or_add): ... this.
12402 (label_visit): Adjust and fix error in previous patch.
12403 (perform_var_substitution): Adjust.
12405 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
12407 * config/sh/divtab.c: Fix formatting and comments throughout the file.
12408 * config/sh/sh4-300.md: Likewise.
12409 * config/sh/sh4a.md: Likewise.
12410 * config/sh/constraints.md: Likewise.
12411 * config/sh/sh.md: Likewise.
12412 * config/sh/netbsd-elf.h: Likewise.
12413 * config/sh/predicates.md: Likewise.
12414 * config/sh/sh-protos.h: Likewise.
12415 * config/sh/ushmedia.h: Likewise.
12416 * config/sh/linux.h: Likewise.
12417 * config/sh/sh.c: Likewise.
12418 * config/sh/superh.h: Likewise.
12419 * config/sh/elf.h: Likewise.
12420 * config/sh/sh4.md: Likewise.
12421 * config/sh/sh.h: Likewise.
12423 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12425 * config/pa/constraints.md: Adjust unused letters. Change "T"
12426 constraint to match_test floating_point_store_memory_operand().
12427 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
12428 (base14_operand): New.
12429 (floating_point_store_memory_operand): New.
12430 (integer_store_memory_operand): Revise to use base14_operand and
12431 reg_plus_base_memory_operand.
12432 (move_dest_operand): Allow symbolic_memory_operands.
12433 (symbolic_memory_operand): Check for LO_SOM.
12434 (symbolic_operand): Change default case to break.
12435 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
12436 CONST_DOUBLE values to be reloaded by putting them into memory when
12437 the destination is a floating point register.
12438 (movdf): Remove code to handle CONST_DOUBLE.
12440 (reload_indf_r1): New.
12441 (reload_insf_r1): New.
12442 Consistently use "Q" and "T" constraints with integer and floating
12443 point move instructions, respectively.
12444 (movdi): Remove FAIL.
12445 Change predicate for source operand unamed DImode move from
12446 general_operand to move_src_operand.
12447 (umulsidi3): Change predicate for destination operand to
12449 Likewise for similar unamed patterns.
12450 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
12451 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
12452 (hppa_legitimize_address): Simplify mask calculation.
12453 (pa_emit_move_sequence): Revised handling of secondary reloads from
12454 REG+D addresses for floating point loads and stores. Directly handle
12455 loading CONST0_RTX (mode) to a floating point register.
12456 (pa_secondary_reload): Handle reloading DF and SFmode constant values
12457 to floating point registers. Don't restrict secondary reloads to
12458 floating point registers to integer modes. Revise some comments and
12460 (TARGET_LEGITIMATE_ADDRESS_P): Define.
12461 (pa_legitimate_address_p): New.
12462 (pa_legitimize_reload_address): New.
12463 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
12464 (STRICT_REG_OK_FOR_BASE_P): New.
12465 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
12466 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
12468 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
12469 Andrew Dixie <andrewd@gentrack.com>
12471 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
12474 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
12476 * expmed.c (extract_bit_field_1): Pass the full width of the
12477 structure to get_best_reg_extraction_insn.
12479 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
12482 * configure.ac (use_cxa_atexit): Add AIX.
12483 * configure: Regenerate.
12485 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
12487 2013-02-01 Jakub Jelinek <jakub@redhat.com>
12490 * final.c (need_profile_function): New variable.
12491 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
12492 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
12493 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
12494 notes, targetm.asm_out.function_prologue doesn't emit anything,
12495 HAVE_prologue and profiler should be emitted before prologue,
12496 set need_profile_function instead of emitting it.
12497 (final_scan_insn): If need_profile_function, emit
12498 profile_function on the first NOTE_INSN_BASIC_BLOCK or
12499 NOTE_INSN_FUNCTION_BEG note.
12501 2013-02-01 Richard Henderson <rth@redhat.com>
12503 * config/rs6000/rs6000.md (smulditi3): New.
12506 * config/alpha/alpha.md (umulditi3): New.
12508 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
12510 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
12511 (ASM_OUTPUT_ALIGNED_LOCAL): New.
12513 2013-02-01 Richard Biener <rguenther@suse.de>
12515 PR tree-optimization/56113
12516 * tree-ssa-structalias.c (label_visit): Reduce work for
12517 single-predecessor nodes.
12519 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
12521 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
12522 range isn't testing for zero.
12524 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
12526 PR middle-end/56113
12527 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
12529 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
12530 Nick Clifton <nickc@redhat.com>
12532 * config/v850/constraints.md (Q): Define as a memory constraint.
12533 * config/v850/predicates.md (label_ref_operand): New predicate.
12534 (e3v5_shift_operand): New predicate.
12535 (ior_operator): New predicate.
12536 * config/v850/t-v850: Add e3v5 multilib.
12537 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
12538 (v850_gen_movdi): Prototype.
12539 * config/v850/v850.c: Add support for e3v5 architecture.
12540 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
12542 (construct_save_jarl): Add e3v5 long JARL support.
12543 (v850_adjust_insn_length): New function. Adjust length of call
12544 insns when using e3v5 instructions.
12545 (v850_gen_movdi): New function: Generate instructions to move a
12547 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
12548 (CPP_SPEC): Define __v850e3v5__ as appropriate.
12549 (TARGET_USE_FPU): Enable for e3v5.
12550 (CONST_OK_FOR_W): New macro.
12551 (ADJUST_INSN_LENGTH): Define.
12552 * config/v850/v850.md (UNSPEC_LOOP): Define.
12553 (attr cpu): Add v850e3v5.
12554 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
12555 (movdi): New pattern.
12556 (movdi_internal): New pattern.
12557 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
12558 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
12559 (cstoresf4): Likewise.
12560 (cstoredf4): Likewise.
12561 (insv): New pattern.
12562 (rotlso3_a): New pattern.
12563 (rotlsi3_b): New pattern
12564 (rotlsi3_v850e3v5): New pattern.
12565 (doloop_begin): New pattern.
12566 (fix_loop_counter): New pattern.
12567 (doloop_end): New pattern.
12568 (branch_normal): Add e3v5 long branch support.
12569 (branch_invert): Likewise.
12570 (branch_z_normal): Likewise.
12571 (branch_z_invert): Likewise.
12572 (branch_nz_normal): Likewise.
12573 (branch_nz_invert): Likewise.
12574 (call_internal_short): Add e3v5 register-indirect JARL support.
12575 (call_internal_long): Likewise.
12576 (call_value_internal_short): Likewise.
12577 (call_value_internal_long): Likewise.
12578 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
12579 (mloop): New option.
12580 * config.gcc: Add support for configuring v840e3v5 target.
12581 * doc/invoke.texi: Document new v850 specific command line options.
12583 2013-01-31 Paul Koning <ni1d@arrl.net>
12587 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
12588 children if parent is a class.
12589 (prune_unused_types_prune): Don't add DW_AT_declaration.
12591 2013-01-31 Richard Biener <rguenther@suse.de>
12593 PR tree-optimization/56157
12594 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
12595 match up operand with SLP child.
12597 2013-01-31 Jason Merrill <jason@redhat.com>
12600 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
12601 parameters the first time.
12602 (gen_scheduled_generic_parms_dies): Check completeness here.
12604 2013-01-31 Richard Biener <rguenther@suse.de>
12606 PR middle-end/53073
12607 * common.opt (faggressive-loop-optimizations): New flag,
12608 enabled by default.
12609 * doc/invoke.texi (faggressive-loop-optimizations): Document.
12610 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
12611 infer_loop_bounds_from_undefined by it.
12613 2013-01-31 Richard Biener <rguenther@suse.de>
12615 PR tree-optimization/56150
12616 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
12617 visit virtual operands.
12618 (find_uses_to_rename_bb): Likewise.
12620 2013-01-31 Richard Biener <rguenther@suse.de>
12622 PR tree-optimization/56150
12623 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
12624 mixed store non-store stmts.
12626 2013-01-30 Jakub Jelinek <jakub@redhat.com>
12629 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
12630 LIBASAN_EARLY_SPEC is defined.
12631 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
12632 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
12634 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
12637 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
12638 invalid args instead of ICEing on it.
12639 (ix86_valid_target_attribute_tree): Return error_mark_node if
12640 ix86_valid_target_attribute_inner_p failed.
12641 (ix86_valid_target_attribute_p): Return false only if
12642 ix86_valid_target_attribute_tree returned error_mark_node. Allow
12643 target("default") attribute.
12644 (sorted_attr_string): Change argument from const char * to tree,
12645 merge in all target attribute arguments rather than just one.
12646 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
12647 instead of free. Avoid using strcat.
12648 (ix86_mangle_function_version_assembler_name): Mangle
12649 target("default") as if no target attribute is present. Adjust
12650 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
12651 instead of xmalloc and XDELETEVEC instead of free.
12652 (ix86_function_versions): Don't return true if one of the decls
12653 doesn't have target attribute. If they don't and one of the decls
12654 is DECL_FUNCTION_VERSIONED, report an error. Adjust
12655 sorted_attr_string caller. Use XDELETEVEC instead of free.
12656 (ix86_supports_function_versions): Remove.
12657 (make_name): Fix up formatting.
12658 (make_dispatcher_decl): Remove resolver_name and its initialization.
12659 Avoid leaking memory.
12660 (is_function_default_version): Return true if there is
12661 target("default") attribute rather than no target attribute at all.
12662 (make_resolver_func): Avoid leaking memory.
12663 (ix86_generate_version_dispatcher_body): Likewise.
12664 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
12665 * target.def (supports_function_versions): Remove.
12666 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
12667 * doc/tm.texi: Regenerated.
12669 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
12671 PR rtl-optimization/56144
12672 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
12673 for values with side effects.
12675 2013-01-30 Richard Biener <rguenther@suse.de>
12677 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
12678 (sparseset_pop): Likewise.
12679 * cfganal.c (compute_idf): Likewise. Increase work-stack size
12680 to be able to use quick_push in the worker loop.
12682 2013-01-30 Marek Polacek <polacek@redhat.com>
12684 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
12686 2013-01-30 Richard Biener <rguenther@suse.de>
12689 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
12691 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
12693 PR tree-optimization/56064
12694 * fixed-value.c (fixed_from_double_int): New function.
12695 * fixed-value.h (fixed_from_double_int): New prototype.
12696 (const_fixed_from_double_int): New static inline function.
12697 * fold-const.c (native_interpret_fixed): New static function.
12698 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
12699 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
12700 (native_encode_fixed): New static function.
12701 (native_encode_expr) <FIXED_CST>: Use it.
12702 (native_interpret_int): Move double_int worker code to...
12703 * double-int.c (double_int::from_buffer): ...this new static method.
12704 * double-int.h (double_int::from_buffer): Prototype it.
12706 2013-01-30 Richard Biener <rguenther@suse.de>
12708 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
12709 New pointer-map and obstack.
12710 (init_alias_vars): Allocate pointer-map and obstack.
12711 (delete_points_to_sets): Free them.
12712 (find_what_var_points_to): Cache result.
12713 (find_what_p_points_to): Adjust for changed interface of
12714 find_what_var_points_to.
12715 (compute_points_to_sets): Likewise.
12716 (ipa_pta_execute): Likewise.
12718 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12720 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
12721 * configure: Regenerate.
12722 * config.in: Regenerate.
12723 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
12724 #nobits/#progbits if supported.
12726 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
12729 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
12730 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
12731 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
12733 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12735 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
12736 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
12738 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12740 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
12741 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
12743 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12745 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
12747 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
12748 * config/arm/cortex-a7.md: New bypasses using
12749 arm_mac_accumulator_is_result.
12751 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12753 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
12754 (cortex_a7_neon_mla): Likewise.
12755 (cortex_a7_fpfmad): New reservation.
12756 (cortex_a7_fpmacs): Use ffmas and update required units.
12757 (cortex_a7_fpmuld): Update required units and latency.
12758 (cortex_a7_fpmacd): Likewise.
12759 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
12760 (cortex_a7_neon). Likewise.
12761 (bypass) Update participating units.
12763 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12765 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
12766 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
12768 * config/arm/vfp11.md (vfp_farith): Use ffmas.
12769 (vfp_fmul): Use ffmad.
12770 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
12771 (cortex_r4_fmacd): Use ffmad.
12772 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
12773 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
12774 (cortex_a9_fmacd): Use ffmad.
12775 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
12776 (cortex_a8_vfp_macd): Use ffmad.
12777 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
12778 (cortex_a5_fpmacd): Use ffmad.
12779 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
12780 (cortex_a15_vfp_macd): Use ffmad.
12781 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
12783 2013-01-29 Jason Merrill <jason@redhat.com>
12786 * varasm.c (default_assemble_visibility): Don't warn about
12787 visibility on artificial decls.
12789 2013-01-29 Richard Biener <rguenther@suse.de>
12791 PR tree-optimization/56113
12792 * tree-ssa-structalias.c (equiv_class_lookup): Also return
12794 (label_visit): Free duplicate bitmaps and record the leader instead.
12795 (perform_var_substitution): Adjust.
12797 2013-01-29 Richard Biener <rguenther@suse.de>
12799 PR tree-optimization/55270
12800 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
12801 the CFG, schedule loops for fixup.
12803 2013-01-29 Nick Clifton <nickc@redhat.com>
12805 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
12808 2013-01-28 Leif Ekblad <leif@rdos.net>
12810 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
12811 * config/i386/i386.h (TARGET_RDOS): New macro.
12812 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
12813 * config/i386/i386.c (ix86_option_override_internal): For 64bit
12814 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
12815 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
12816 DEFAULT_LARGE_SECTION_THRESHOLD.
12817 * config/i386/i386.md (R14_REG, R15_REG): New constants.
12818 * config/i386/rdos.h: New file.
12819 * config/i386/rdos64.h: New file.
12821 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
12824 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
12827 2013-01-28 Jakub Jelinek <jakub@redhat.com>
12829 PR rtl-optimization/56117
12830 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
12831 call cselib_lookup_from_insn on the MEM before calling
12832 add_insn_mem_dependence.
12834 2013-01-28 Richard Biener <rguenther@suse.de>
12836 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
12837 to a stmt that didn't have one.
12838 (copy_phis_for_bb): Likewise for PHI arguments.
12839 (copy_debug_stmt): Likewise for debug stmts.
12841 2013-01-28 Richard Biener <rguenther@suse.de>
12843 PR tree-optimization/56034
12844 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
12845 (partition_builtin_p): Adjust.
12846 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
12847 it is the last partition.
12848 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
12849 up the vertex for the definition.
12850 (classify_partition): Classify whether a partition is a
12851 PKIND_REDUCTION, thus has uses outside of the loop.
12852 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
12853 Merge all PKIND_REDUCTION partitions into the last partition.
12854 (tree_loop_distribution): Seed partitions from reductions as well.
12856 2013-01-28 Jakub Jelinek <jakub@redhat.com>
12858 PR tree-optimization/56125
12859 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
12860 pow(x,c) into sqrt(x) * powi(x, n/2) or
12861 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
12862 optimizing for size.
12863 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
12864 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
12867 PR tree-optimization/56094
12868 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
12869 to UNKNOWN_LOCATION while gimplifying expr.
12871 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
12874 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
12875 operand 0 in movabs insn template for -masm=intel asm alternative.
12876 (*movabs<mode>_2): Ditto for operand 1.
12878 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
12881 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
12884 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12886 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
12889 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
12891 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
12892 Undef to avoid warning.
12894 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
12896 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
12897 * configure: Regenerate.
12899 2013-01-25 Jakub Jelinek <jakub@redhat.com>
12901 PR tree-optimization/56098
12902 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
12903 for stmts with volatile ops.
12904 (cond_store_replacement): Don't optimize if assign has volatile ops.
12905 (cond_if_else_store_replacement_1): Don't optimize if either
12906 then_assign or else_assign have volatile ops.
12907 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
12910 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
12912 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
12914 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
12916 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
12917 missing ':' in asm example.
12919 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
12921 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
12922 entries into lane and laneq entries.
12923 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
12924 Remove AdvSIMD scalar modes.
12925 (aarch64_sq<r>dmulh_laneq<mode>): New.
12926 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
12928 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
12929 builtin implementations to relfect changes in RTL in aarch64-simd.md.
12930 * config/aarch64/iterators.md (VCOND): New.
12933 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
12936 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
12937 Add NULL LIBNAME argument to existing definitions.
12938 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
12939 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
12940 * config/avr/avr.c (DEF_BUILTIN): Same.
12941 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
12942 (avr_expand_builtin): Expand to a vanilla call if a libgcc
12943 implementation is available (DECL_ASSEMBLER_NAME is set).
12944 (avr_fold_absfx): New static function.
12945 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
12946 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
12947 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
12948 AVR_BUILTIN_ABSLLK.
12949 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
12950 (abshk, absk, abslk, absllk): Provide as static inline functions.
12952 2013-01-25 Marek Polacek <polacek@redhat.com>
12954 PR tree-optimization/56035
12955 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
12957 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
12959 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
12960 (*movtf_internal_rex64): Add (!o,C) alternative
12961 (*movxf_internal_rex64): Ditto.
12962 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
12964 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
12966 * doc/invoke.texi: fix typo.
12967 * doc/objc.texi: fix typo.
12969 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
12971 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
12972 for the first two alternatives.
12974 2013-01-24 Diego Novillo <dnovillo@google.com>
12976 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
12977 (ggc-zone.o): Remove.
12978 * configure.ac: Remove option --with-gc.
12979 * configure: Re-generate.
12980 * doc/install.texi: Remove documentation for --with-gc.
12981 * gengtype.c (write_enum_defn): Remove. Update all users.
12982 (write_Types_process_field): Remove generation of gt_e_* argument.
12983 (output_type_enum): Remove. Update all users.
12984 (write_enum_defn): Remove. Update all users.
12985 (enum alloc_zone): Remove. Update all users.
12986 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
12987 * ggc-common.c (ggc_splay_alloc): Remove first argument.
12988 Update all callers.
12989 (struct ptr_data): Remove field TYPE. Update all users.
12990 (gt_pch_note_object): Remove argument TYPE. Update all users.
12991 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
12993 * ggc-none.c (ggc_alloc_typed_stat): Remove.
12994 (struct alloc_zone): Remove.
12995 (ggc_internal_alloc_zone_stat): Remove.
12996 (ggc_internal_cleared_alloc_zone_stat): Remove.
12997 * ggc-page.c (ggc_alloc_typed_stat): Remove.
12998 (ggc_pch_count_object): Remove last argument. Update all users.
12999 (ggc_pch_alloc_object): Remove last argument. Update all users.
13000 (struct alloc_zone): Remove.
13001 * ggc-zone.c: Remove.
13002 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
13003 (struct alloc_zone): Remove.
13004 (ggc_alloc_typed_stat): Remove.
13005 (ggc_alloc_typed): Remove.
13006 (ggc_splay_alloc): Remove first argument.
13007 (rtl_zone): Remove. Update all users.
13008 (tree_zone): Remove. Update all users.
13009 (tree_id_zone): Remove. Update all users.
13010 (ggc_internal_zone_alloc_stat): Remove. Update all users.
13011 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
13012 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
13013 * tree-ssanames.c: Remove references to zone allocator in comments.
13015 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
13017 * config/avr/avr.c (avr_out_fract): Make register numbers that
13018 might be outside of source operand signed.
13020 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
13022 * config/i386/constraints.md (Yf): New constraint.
13023 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
13024 of f constraint to conditionaly disable x87 register preferences.
13025 (*movdf_internal): Ditto.
13026 (*movsf_internal): Ditto.
13028 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
13030 PR inline-asm/55934
13031 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
13032 that have operands with impossible constraints.
13033 Add a FIXME for a speed-up opportunity.
13034 * lra-constraints.c (process_alt_operands): Verify that a class
13035 selected from constraints on asms is valid for the operand mode.
13036 (curr_insn_transform): Remove incorrect comment.
13038 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
13040 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
13041 TOC operand is a valid symbol ref in the constant pool.
13043 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
13045 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
13047 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
13050 * config/avr/stdfix.h: New file.
13051 * t-avr (stdfix-gcc.h): New rule to build it.
13052 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
13054 2013-01-23 Kostya Serebryany <kcc@google.com>
13056 * config/darwin.h: remove dependency on
13057 CoreFoundation (asan on Mac OS).
13059 2013-01-23 Jakub Jelinek <jakub@redhat.com>
13062 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
13063 instead of cmpdi_operand for first comparison operand.
13064 Don't assert that comparison operands aren't both constants.
13066 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
13068 * doc/install.texi (Downloading the Source): Update references to
13069 downloading separate components.
13071 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
13073 * doc/extend.texi (__int128): Improve grammar.
13075 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
13078 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
13079 alternative to (o,r).
13080 (*movdi_internal_rex64): Remove (!o,n) alternative.
13081 (DImode immediate->memory splitter): Remove.
13082 (DImode immediate->memory peephole2): Remove.
13083 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
13084 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
13085 alternative to (!o,*r).
13086 (*movtf_internal_sse): New pattern.
13087 (*movxf_internal_rex64): New pattern.
13088 (*movxf_internal): Disable for TARGET_64BIT.
13089 (*movdf_internal_rex64): Remove (!o,F) alternative.
13091 2013-01-22 Jakub Jelinek <jakub@redhat.com>
13093 PR middle-end/56074
13094 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
13095 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
13096 * tree-vect-loop-manip.c (find_loop_location): Also ignore
13097 stmt locations where LOCATION_LOCUS of the stmt location is
13098 UNKNOWN_LOCATION or BUILTINS_LOCATION.
13101 * config/i386/i386.md (UNSPEC_STOS): New.
13102 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
13103 *strsetqi_1): Add UNSPEC_STOS.
13105 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
13108 * doc/invoke.texi: Remove left over -Wsynth example.
13110 2013-01-21 Jakub Jelinek <jakub@redhat.com>
13112 PR tree-optimization/56051
13113 * fold-const.c (fold_binary_loc): Don't fold
13114 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
13115 a narrowing conversion, or widening conversion from signed
13118 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
13120 PR rtl-optimization/56023
13121 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
13122 dependent on debug instruction.
13124 2013-01-21 Martin Jambor <mjambor@suse.cz>
13126 PR middle-end/56022
13127 * function.c (allocate_struct_function): Call
13128 invoke_set_current_function_hook earlier.
13130 2013-01-21 Jakub Jelinek <jakub@redhat.com>
13132 * reload1.c (init_reload): Only initialize reload_obstack
13133 during the first call.
13135 2013-01-21 Marek Polacek <polacek@redhat.com>
13137 * cfgloop.c (verify_loop_structure): Fix up grammar.
13139 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
13141 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
13142 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
13144 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13147 * config/arm/marvell-pj4.md: Update copyright year.
13148 Fix up use of alu to alu_reg and simple_alu_imm.
13150 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
13152 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
13154 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
13157 * lra-constraints.c (curr_insn_transform): Don't reuse original
13158 insn for secondary memory move when memory mode should be different.
13160 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13162 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
13163 atomic_storedi_1): New patterns.
13165 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13167 btver2 pipeline descriptions.
13168 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
13170 * config/i386/i386.md (btver2_decode): New type attributes.
13171 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
13173 * config/i386/btver2.md: New file describing btver2 pipelines.
13175 2013-01-19 Andrew Pinski <apinski@cavium.com>
13177 PR tree-optimization/52631
13178 * tree-ssa-sccvn (visit_use): Before looking up the original
13179 statement, try looking up the simplified expression.
13181 2013-01-19 Anthony Green <green@moxielogic.com>
13183 * config/moxie/moxie.c (moxie_expand_prologue): Set
13184 current_function_static_stack_size.
13186 2013-01-18 Jakub Jelinek <jakub@redhat.com>
13188 PR tree-optimization/56029
13189 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
13190 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
13192 2013-01-18 Sharad Singhai <singhai@google.com>
13194 PR tree-optimization/55995
13195 * dumpfile.c (dump_loc): Print location only if available.
13196 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
13198 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
13201 * lra-constraints.c (curr_insn_transform): Reuse original insn for
13202 secondary memory move.
13203 (inherit_reload_reg): Use rclass instead of cl for
13204 check_secondary_memory_needed_p.
13206 2013-01-18 Jakub Jelinek <jakub@redhat.com>
13208 PR middle-end/56015
13209 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
13210 the case where writing real complex part of target modifies op1.
13212 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
13214 * config/aarch64/aarch64-simd.md
13215 (aarch64_vcond_internal<mode>): Handle unordered cases.
13216 * config/aarch64/iterators.md (v_cmp_result): New.
13218 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
13219 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13221 * config/arm/marvell-pj4.md: New file.
13222 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
13223 * config/arm/arm.md (generic_sched): Add marvell_pj4.
13224 (generic_vfp): Likewise.
13225 * config/arm/arm-cores.def: Add marvell-pj4.
13226 * config/arm/arm-tune.md: Regenerate.
13227 * config/arm/arm-tables.opt: Regenerate.
13228 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
13229 * doc/invoke.texi: Document marvell-pj4.
13231 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
13233 * config/aarch64/arm_neon.h: Map scalar types to standard types.
13235 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
13240 * var-tracking.c (negative_power_of_two_p): New.
13241 (global_get_addr_cache, local_get_addr_cache): New.
13242 (get_addr_from_global_cache, get_addr_from_local_cache): New.
13243 (vt_canonicalize_addr): Rewrite using the above. Adjust the
13245 (vt_stack_offset_p): Remove.
13246 (vt_canon_true_dep): Always canonicalize loc's address.
13247 (clobber_overlapping_mems): Make sure we have a MEM.
13248 (local_get_addr_clear_given_value): New.
13249 (val_reset): Clear local cached entries.
13250 (compute_bb_dataflow): Create and release the local cache.
13251 Disable duplicate MEMs clobbering.
13252 (emit_notes_in_bb): Clobber MEMs likewise.
13253 (vt_emit_notes): Create and release the local cache.
13254 (vt_initialize, vt_finalize): Create and release the global
13255 cache, respectively.
13256 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
13258 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
13260 PR libmudflap/53359
13261 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
13262 not found in the symtab.
13264 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
13267 PR rtl-optimization/55547
13268 PR rtl-optimization/53827
13271 * alias.c (offset_overlap_p): New, factored out of...
13272 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
13273 the conservative special case for symbolic constants. Don't
13274 adjust zero sizes on alignment.
13276 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
13278 PR rtl-optimization/52573
13279 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
13280 REG_UNUSED for the same register.
13282 2013-01-17 Richard Biener <rguenther@suse.de>
13283 Marek Polacek <polacek@redhat.com>
13285 PR rtl-optimization/55833
13286 * loop-unswitch.c (unswitch_loops): Move loop verification...
13287 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
13288 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
13289 Set it to true when we're removing a loop from hierarchy tree in
13290 an irreducible region.
13291 (fix_bb_placements): Adjust caller.
13292 (fix_loop_placements): Likewise.
13294 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
13296 * config/avr/builtins.def (DEF_BUILTIN): Factor out
13297 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
13298 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
13299 Remove ID. Adjust comments.
13300 * config/avr/avr-c.c (avr_builtin_name): Remove.
13301 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
13302 * config/avr/avr.c (avr_tolower): New static function.
13303 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
13304 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
13305 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
13308 2013-01-17 Jan Hubicka <jh@suse.cz>
13310 PR tree-optimization/55273
13311 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
13313 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
13316 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
13317 store through atomic_store<mode>_1.
13318 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
13320 2013-01-17 Martin Jambor <mjambor@suse.cz>
13322 PR tree-optimizations/55264
13323 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
13324 for virtual methods.
13325 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
13326 virtual methods before inlining is over.
13327 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
13329 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
13332 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
13334 PR rtl-optimization/56005
13335 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
13336 pending reads for prefetch.
13338 2013-01-16 Ian Bolton <ian.bolton@arm.com>
13340 * config/aarch64/aarch64.md
13341 (*cstoresi_neg_uxtw): New pattern.
13342 (*cmovsi_insn_uxtw): New pattern.
13343 (*<optab>si3_uxtw): New pattern.
13344 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
13345 (*<optab>si3_insn_uxtw): New pattern.
13346 (*bswapsi2_uxtw): New pattern.
13348 2013-01-16 Richard Biener <rguenther@suse.de>
13350 * tree-inline.c (tree_function_versioning): Remove set but
13351 never used variable.
13353 2013-01-16 Richard Biener <rguenther@suse.de>
13355 PR tree-optimization/55964
13356 * tree-flow.h (rename_variables_in_loop): Remove.
13357 (rename_variables_in_bb): Likewise.
13358 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
13359 (copy_loop_before): Adjust and delete update-ssa status.
13360 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
13361 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
13362 (rename_variables_in_loop): Remove.
13363 (slpeel_update_phis_for_duplicate_loop): Likewise.
13364 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
13365 use available cfg machinery instead of duplicating it.
13366 Update PHI nodes and perform poor-mans SSA update here.
13367 (slpeel_tree_peel_loop_to_edge): Adjust.
13369 2013-01-16 Richard Biener <rguenther@suse.de>
13371 PR tree-optimization/54767
13372 PR tree-optimization/53465
13373 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
13374 (vrp_visit_phi_node): For PHI arguments coming via backedges
13375 drop all symbolical range information.
13376 (execute_vrp): Compute backedges.
13378 2013-01-16 Richard Biener <rguenther@suse.de>
13380 * doc/install.texi: Update CLooG and ISL requirements to
13383 2013-01-16 Christian Bruel <christian.bruel@st.com>
13386 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
13387 (broken_move): Handle UNSPECV_SP_SWITCH_B.
13388 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
13390 2013-01-16 DJ Delorie <dj@redhat.com>
13392 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
13393 (UNSPECV_SP_SWITCH_E): New.
13394 (sp_switch_1): Change to an unspec.
13395 (sp_switch_2): Change to an unspec. Don't use post-inc when we
13398 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
13400 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
13401 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
13402 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
13403 (expand_mem_thread_fence): Ditto.
13404 (expand_mem_signal_fence): Ditto.
13405 (expand_atomic_load): Ditto.
13406 (expand_atomic_store): Ditto.
13408 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
13410 PR rtl-optimization/55547
13411 PR rtl-optimization/53827
13414 * alias.c (memrefs_conflict_p): Set sizes to negative after
13417 2013-01-15 Jakub Jelinek <jakub@redhat.com>
13420 * function.c (thread_prologue_and_epilogue_insns): Always
13421 add crtl->drap_reg to set_up_by_prologue.set, even if
13422 stack_realign_drap is false.
13424 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13426 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
13427 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
13428 *call): Fix indention.
13430 2013-01-15 Tom de Vries <tom@codesourcery.com>
13433 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
13436 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
13438 PR rtl-optimization/55153
13439 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
13441 2013-01-15 Martin Jambor <mjambor@suse.cz>
13443 PR tree-optimization/55920
13444 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
13445 accesses as grp_to_be_debug_replaced.
13447 2013-01-15 Jakub Jelinek <jakub@redhat.com>
13449 PR tree-optimization/55920
13450 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
13451 there is non-useless type conversion needed from debug rhs to lhs,
13452 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
13454 2013-01-15 Joseph Myers <joseph@codesourcery.com>
13455 Mikael Pettersson <mikpe@it.uu.se>
13458 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
13460 (ASM_OUTPUT_CASE_LABEL): Remove.
13461 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
13462 * final.c (shorten_branches): Update alignment of labels before
13463 jump tables if CASE_VECTOR_SHORTEN_MODE.
13465 2013-01-15 Richard Biener <rguenther@suse.de>
13468 * system.h: Do not include gmp.h for building host tools.
13470 2013-01-15 Richard Biener <rguenther@suse.de>
13472 PR middle-end/55882
13473 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
13474 account for bitpos when computing alignment.
13476 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
13478 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
13479 (ix86_target_macros_internal): Likewise.
13481 * config/i386/i386.c (m_CORE2I7): Removed.
13482 (m_CORE_HASWELL): New macro.
13483 (m_CORE_ALL): Likewise.
13484 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
13485 (initial_ix86_arch_features): Likewise.
13486 (processor_target_table): Initializations for Core avx2.
13487 (cpu_names): New names "core-avx2".
13488 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
13489 PROCESSOR_CORE_HASWELL.
13490 (ix86_issue_rate): New case.
13491 (ia32_multipass_dfa_lookahead): Likewise.
13492 (ix86_sched_init_global): Likewise.
13494 * config/i386/i386.h (TARGET_HASWELL): New macro.
13495 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
13496 (processor_type): New PROCESSOR_HASWELL.
13498 2013-01-15 Jakub Jelinek <jakub@redhat.com>
13500 PR tree-optimization/55955
13501 * tree-vect-loop.c (vectorizable_reduction): Give up early on
13502 *SHIFT_EXPR and *ROTATE_EXPR codes.
13504 PR tree-optimization/48766
13505 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
13506 -ftrapv disable -fwrapv.
13508 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
13511 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
13512 etc. to 1 and not to __flash.
13513 Use LL suffix for __INT24_MAX__ with -mint8.
13514 Use ULL suffix for __UINT24_MAX__ with -mint8.
13516 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
13518 * config/avr/avr-arch.h
13519 (struct base_arch_s): Use typedef avr_arch_t instead.
13520 (struct arch_info_s): Use typedef avr_arch_info_t instead.
13521 (struct mcu_type_s): Use typedef avr_mcu_t instead.
13522 * config/avr/avr.c: Same.
13523 * config/avr/avr-devices.c: Same.
13524 * config/avr/driver-avr.c: Same.
13525 * config/avr/gen-avr-mmcu-texi.c: Same.
13526 * config/avr/avr-mcus.def: Adjust comment.
13528 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
13530 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
13531 * config/aarch64/iterators.md (VALLDI): New.
13533 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
13534 Andi Kleen <ak@linux.intel.com>
13537 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
13538 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
13541 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
13543 * config/avr/avr-stdint.h: Remove trailing blanks.
13544 * config/avr/avr-log.h: Same.
13545 * config/avr/avr-arch.h: Same.
13546 * config/avr/avr-devices.c: Same.
13547 * config/avr/avr-dimode.md: Same.
13548 * config/avr/predicates.md: Same.
13549 * config/avr/avr-c.c: Same. And fix typo.
13551 * config/avr/avr-protos.h: Same. And:
13552 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
13553 (init_cumulative_args): Rename to avr_init_cumulative_args.
13554 (expand_prologue): Rename to avr_expand_prologue.
13555 (expand_epilogue): Rename to avr_expand_epilogue.
13556 (adjust_insn_length): Rename to avr_adjust_insn_length.
13557 (notice_update_cc): Rename to avr_notice_update_cc.
13558 (final_prescan_insn): Rename to avr_final_prescan_insn.
13559 * config/avr/avr.c: Same.
13560 * config/avr/avr.h: Same.
13561 * config/avr/avr.md: Remove trailing blanks.
13562 (prologue): Use avr_expand_prologue.
13563 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
13565 2013-01-14 Richard Biener <rguenther@suse.de>
13567 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
13568 verify_location, collect_subblocks): New functions.
13569 (verify_gimple_in_cfg): Verify that locations only reference
13570 BLOCKs in the functions BLOCK tree.
13572 2013-01-14 Richard Biener <rguenther@suse.de>
13574 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
13576 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
13578 (insert_out_of_ssa_copy_on_edge): Likewise.
13579 (rewrite_close_phi_out_of_ssa): Likewise.
13580 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
13582 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
13583 propagated constants.
13584 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
13587 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
13589 * config/avr/avr-modes.def: Add GPL copyright notice.
13591 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
13593 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
13594 MEMMODEL_MASK to determine memory model.
13595 (atomic_store<mode>): Ditto from operands[2].
13596 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
13598 2013-01-13 Jakub Jelinek <jakub@redhat.com>
13601 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
13602 (fold_gimple_assign): Don't call unshare_expr here.
13603 (fold_ctor_reference): Call unshare_expr.
13605 2013-01-13 Terry Guo <terry.guo@arm.com>
13607 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
13608 * doc/fragments.texi: Document MULTILIB_REUSE.
13609 * gcc.c (multilib_reuse): New internal spec.
13610 (set_multilib_dir): Also search multilib from multilib_reuse.
13611 * genmultilib (tmpmultilib3): Refactor code.
13612 (tmpmultilib4): Ditto.
13613 (multilib_reuse): New multilib argument.
13615 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
13617 * Makefile.in: Update copyright.
13619 2013-01-12 Tom de Vries <tom@codesourcery.com>
13621 PR middle-end/55890
13622 * calls.c (expand_call): Check if arg_nr is valid.
13624 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
13626 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
13627 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
13628 documentation. Add missing '__' in front of
13629 __builtin_ia32_packssdw256.
13631 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13634 * config/s390/s390.c (s390_preferred_reload_class): Do not return
13635 NO_REGS for larl operands.
13636 (s390_reload_larl_operand): Use s390_load_address instead of
13639 2013-01-11 Richard Biener <rguenther@suse.de>
13641 * tree-cfg.c (verify_node_sharing_1): Split out from ...
13642 (verify_node_sharing): ... here.
13643 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
13645 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
13647 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
13648 Substitute TREECHECKING.
13649 * configure: Regenerate.
13650 * Makefile.in (TREECHECKING): New.
13652 2013-01-11 Richard Guenther <rguenther@suse.de>
13654 PR tree-optimization/44061
13655 * tree-vrp.c (extract_range_basic): Compute zero as
13656 value-range for __builtin_constant_p of function parameters.
13658 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
13660 Update copyright years.
13662 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
13664 PR rtl-optimization/55672
13665 * lra-eliminations.c (mark_not_eliminable): Permit addition with
13666 const to be eliminable.
13668 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
13670 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
13671 * configure: Regenerate.
13673 2013-01-10 Richard Biener <rguenther@suse.de>
13675 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
13677 2013-01-10 Richard Biener <rguenther@suse.de>
13680 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
13681 locations for virtual PHI arguments.
13682 (rewrite_update_phi_arguments): Likewise.
13684 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
13686 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
13689 2013-01-10 Jakub Jelinek <jakub@redhat.com>
13691 PR tree-optimization/55921
13692 * tree-complex.c (expand_complex_asm): New function.
13693 (expand_complex_operations_1): Call it for GIMPLE_ASM.
13695 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13698 * config/s390/s390.c (s390_symref_operand_p)
13699 (s390_loadrelative_operand_p): Merge the two functions.
13700 (s390_check_qrst_address, print_operand_address): Add parameters
13701 to s390_loadrelative_operand_p invokation.
13702 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
13703 (s390_reload_larl_operand, s390_secondary_reload): Use
13704 s390_loadrelative_operand_p instead of s390_symref_operand_p.
13705 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
13707 2013-01-09 Mike Stump <mikestump@comcast.net>
13709 * dse.c (record_store): Remove unnecessary assert.
13711 2013-01-09 Jan Hubicka <jh@suse.cz>
13713 PR tree-optimization/55569
13714 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
13715 * cfgloop.h (scale_loop_profile): Likewise.
13717 2013-01-09 Jan Hubicka <jh@suse.cz>
13720 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
13722 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
13724 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
13726 PR middle-end/55114
13727 * expr.h (maybe_emit_group_store): Declare.
13728 * expr.c (maybe_emit_group_store): New function.
13729 * builtins.c (expand_builtin_int_roundingfn): Call it.
13730 (expand_builtin_int_roundingfn_2): Likewise.
13732 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
13734 PR rtl-optimization/55829
13735 * lra-constraints.c (match_reload): Add code for absent output.
13736 (curr_insn_transform): Add code for reloads of matched inputs
13739 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
13741 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
13742 attribute of movddup insn to DF.
13743 (*vec_interleave_lowv2df): Ditto.
13744 (vec_dupv2df): Ditto.
13746 2013-01-09 Jan Hubicka <jh@suse.cz>
13748 PR tree-optimiation/55875
13749 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
13750 EVERY_ITERATION parameter.
13751 (number_of_iterations_exit): Check if exit is executed every iteration.
13752 (idx_infer_loop_bounds): Similarly here.
13753 (n_of_executions_at_most): Simplify
13754 to only test for cases where statement is dominated by the
13755 particular bound; handle correctly the "postdominance" test.
13756 (scev_probably_wraps_p): Use max loop iterations info
13757 as a global bound first.
13759 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
13760 Nick Clifton <nickc@redhat.com>
13762 * config/v850/v850.md (cbranchsf4): New pattern.
13763 (cstoresf4): New pattern.
13764 (cbranchdf4): New pattern.
13765 (cstoredf4): New pattern.
13766 (movsicc): Disallow floating point comparisons.
13767 (cmpsf_le_insn): Fix order of operators.
13768 (cmpsf_lt_insn): Likewise.
13769 (cmpsf_eq_insn): Likewise.
13770 (cmpdf_le_insn): Likewise.
13771 (cmpdf_lt_insn): Likewise.
13772 (cmpdf_eq_insn): Likewise.
13773 (cmpsf_ge_insn): Use LE comparison.
13774 (cmpdf_ge_insn): Likewise.
13775 (cmpsf_gt_insn): Use LT comparison.
13776 (cmpdf_gt_insn): Likewise.
13777 (cmpsf_ne_insn): Delete pattern.
13778 (cmpdf_ne_insn): Delete pattern.
13779 * config/v850/v850.c (v850_gen_float_compare): Use
13780 gen_cmpdf_eq_insn for NE comparison.
13781 (v850_float_z_comparison_operator)
13782 (v850_float_nz_comparison_operator): Move from here ...
13783 * config/v850/predicates.md: ... to here. Move GT and GE
13784 comparisons into v850_float_z_comparison_operator.
13785 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
13787 (v850_float_nz_comparison_operator): Likewise.
13789 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13791 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
13792 with calls to gen_insvsi/gen_insvdi.
13794 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13796 * config/i386/i386.c (initial_ix86_tune_features): Set up
13797 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
13799 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
13800 Jakub Jelinek <jakub@redhat.com>
13802 PR tree-optimization/48189
13803 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
13804 If nitercst is 0, don't predict the exit edge.
13806 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13808 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
13809 in asm_fprintf with reg_names.
13810 (aarch64_print_operand_address): Likewise.
13811 (aarch64_return_addr): Likewise.
13812 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
13814 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13816 * config/pa/pa.h (VAL_U6_BITS_P): Define.
13817 (INT_U6_BITS): Likewise.
13818 * config/pa/predicates.md (uint6_operand): New predicate.
13819 (shift5_operand, shift6_operand): Likewise.
13820 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
13822 (lshrdi3): Use shift6_operand.
13823 (shrpsi4, shrpdi4): New insn patterns.
13824 (extzv): Delete expander.
13825 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
13826 predicates in unamed zero extract patterns. Tighten common constraint.
13827 (extv): Delete expander.
13828 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
13829 predicates in unamed sign extract patterns. Tighten common constraint.
13830 (insv): Delete expander.
13831 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
13832 predicates in unamed insert patterns. Tighten common constraint.
13833 Change uint32_operand predicate to uint6_operand predicate in unamed
13834 DImode pattern to insert constant values of type 1...1xxxx.
13836 2013-01-04 Jan Hubicka <jh@suse.cz>
13838 PR tree-optimization/55823
13839 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
13842 2013-01-08 Jakub Jelinek <jakub@redhat.com>
13843 Uros Bizjak <ubizjak@gmail.com>
13845 PR rtl-optimization/55845
13846 * df-problems.c (can_move_insns_across): Stop scanning at
13847 volatile_insn_p source instruction or give up if
13848 across_from .. across_to range contains any volatile_insn_p
13851 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
13853 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
13854 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
13856 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
13857 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
13859 2013-01-08 Jakub Jelinek <jakub@redhat.com>
13862 * asan.c (asan_clear_shadow): New function.
13863 (asan_emit_stack_protection): Use it.
13865 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
13867 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
13868 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
13869 with tab instead of space.
13871 2013-01-08 Nick Clifton <nickc@redhat.com>
13873 * config/rl78/rl78.c (rl78_expand_prologue): Always select
13874 register bank 0 at the start of an interrupt handler.
13875 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
13878 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
13880 * config/aarch64/aarch64-simd.md
13881 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
13882 (aarch64_simd_bsl): Likewise.
13883 (aarch64_vcond_internal<mode>): Likewise.
13884 (vcond<mode><mode>): Likewise.
13885 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
13886 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
13888 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
13890 * config/aarch64/aarch64-builtins.c
13891 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
13893 2013-01-08 Martin Jambor <mjambor@suse.cz>
13896 * tree-sra.c (analyze_access_subtree): Return true also after
13897 potentially creating a debug-only replacement.
13899 2013-01-08 Jakub Jelinek <jakub@redhat.com>
13901 PR middle-end/55890
13902 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
13904 PR tree-optimization/54120
13905 * tree-vrp.c (range_fits_type_p): Don't allow
13906 src_precision < precision from signed vr to unsigned_p
13907 if vr->min or vr->max is negative.
13908 (simplify_float_conversion_using_ranges): Test can_float_p
13909 against CODE_FOR_nothing.
13911 2013-01-08 Jakub Jelinek <jakub@redhat.com>
13912 Richard Biener <rguenther@suse.de>
13914 PR middle-end/55851
13915 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
13916 types instead of just INTEGER_TYPE types.
13918 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
13920 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
13923 2013-01-07 Steve Ellcey <sellcey@mips.com>
13926 * config/mips/mips.opt: Change mad to mmad to match documentation.
13928 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
13931 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
13932 .progmemx.data now.
13934 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
13937 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
13938 (avr_addrspace_t): Add .section_name field.
13939 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
13941 (avr_addrspace): Same. Initialize .section_name. Remove last
13942 NULL entry. Put __memx into .progmemx.data.
13943 (progmem_section_prefix): Remove.
13944 (avr_asm_init_sections): No need to initialize progmem_section.
13945 (avr_asm_named_section): Use avr_addrspace[].section_name to get
13946 section name prefix.
13947 (avr_asm_select_section): Ditto. And use get_unnamed_section to
13948 retrieve the progmem section.
13949 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
13950 boundary to run over avr_addrspace[].
13951 (avr_register_target_pragmas): Ditto.
13953 2013-01-06 Jakub Jelinek <jakub@redhat.com>
13955 * varasm.c (output_constant_def_contents): For asan_protect_global
13956 protected strings, adjust DECL_ALIGN if needed, before testing for
13958 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
13959 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
13961 (output_object_block): For asan protected decls, emit asan padding
13962 after their contents.
13963 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
13964 (asan_finish_file): Test it here instead.
13966 2013-01-07 Nick Clifton <nickc@redhat.com>
13967 Matthias Klose <doko@debian.org>
13968 Doug Kwan <dougkwan@google.com>
13969 H.J. Lu <hongjiu.lu@intel.com>
13972 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
13974 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
13976 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
13978 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
13980 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
13982 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
13985 * doc/install.texi (Cross-Compiler-Specific Options): Document
13988 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
13990 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
13991 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
13992 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
13993 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
13994 vqmovun_high_s64): Fix source operand number and update copyright.
13996 2013-01-07 Richard Biener <rguenther@suse.de>
13998 PR middle-end/55890
13999 * gimple.h (gimple_call_builtin_p): New overload.
14000 * gimple.c (validate_call): New function.
14001 (gimple_call_builtin_p): Likewise.
14002 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
14003 Use gimple_call_builtin_p.
14004 (find_func_clobbers): Likewise.
14005 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
14006 (strlen_optimize_stmt): Likewise.
14008 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
14010 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
14011 (vld1q_dup_*): Likewise.
14012 (vld1_*): Likewise.
14013 (vld1q_*): Likewise.
14014 (vld1_lane_*): Likewise.
14015 (vld1q_lane_*): Likewise.
14017 2013-01-07 Richard Biener <rguenther@suse.de>
14019 * lto-streamer.h (LTO_minor_version): Bump to 2.
14021 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
14023 * config/aarch64/aarch64-protos.h
14024 (aarch64_const_double_zero_rtx_p): Rename to...
14025 (aarch64_float_const_zero_rtx_p): ...this.
14026 (aarch64_float_const_representable_p): New.
14027 (aarch64_output_simd_mov_immediate): Likewise.
14028 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
14029 move immediate case.
14030 * config/aarch64/aarch64.c
14031 (aarch64_const_double_zero_rtx_p): Rename to...
14032 (aarch64_float_const_zero_rtx_p): ...this.
14033 (aarch64_print_operand): Allow printing of new constants.
14034 (aarch64_valid_floating_const): New.
14035 (aarch64_legitimate_constant_p): Check for valid floating-point
14037 (aarch64_simd_valid_immediate): Likewise.
14038 (aarch64_vect_float_const_representable_p): New.
14039 (aarch64_float_const_representable_p): Likewise.
14040 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
14041 (aarch64_output_simd_mov_immediate): New.
14042 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
14043 (*movdf_aarch64): Likewise.
14044 * config/aarch64/constraints.md (Ufc): New.
14045 (Y): call aarch64_float_const_zero_rtx.
14046 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
14048 2013-01-07 Richard Biener <rguenther@suse.de>
14050 PR tree-optimization/55888
14051 PR tree-optimization/55862
14052 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
14053 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
14054 not if it is contained therein.
14056 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
14058 * config/avr/t-avr: Typo.
14060 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
14063 * config/avr/t-avr: Don't automatically rebuild
14064 $(srcdir)/config/avr/t-multilib
14065 $(srcdir)/config/avr/avr-tables.opt
14066 $(srcdir)/doc/avr-mmcu.texi
14067 (avr-mcus): New phony target to build them on request.
14068 (s-avr-mlib, s-avr-mmcu-texi): Remove.
14069 * avr/avr-mcus.def: Adjust comments.
14071 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
14073 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
14075 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
14077 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
14079 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
14081 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
14083 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
14085 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
14086 to generate profiling.
14087 * config/rs6000/aix64.h (LIB_SPEC): Same.
14089 2013-01-04 Andrew Pinski <apinski@cavium.com>
14091 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
14093 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
14095 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
14097 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
14099 (ix86_expand_move): Ditto.
14100 (ix86_zero_extend_to_Pmode): Ditto.
14101 (ix86_expand_call): Ditto.
14102 (ix86_expand_special_args_builtin): Ditto.
14103 (ix86_expand_builtin): Ditto.
14105 2013-01-04 Richard Biener <rguenther@suse.de>
14107 PR tree-optimization/55862
14108 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
14109 translating them through PHI nodes.
14111 2013-01-04 Martin Jambor <mjambor@suse.cz>
14113 PR tree-optimization/55755
14114 * tree-sra.c (sra_modify_assign): Do not check that an access has no
14115 children when trying to avoid producing a VIEW_CONVERT_EXPR.
14117 2013-01-04 Marek Polacek <polacek@redhat.com>
14119 PR middle-end/55859
14120 * opts.c (default_options_optimization): Clarify error message.
14122 2013-01-04 Richard Biener <rguenther@suse.de>
14124 PR middle-end/55863
14125 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
14128 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14131 * config/pa/pa.md (movsi): Revert previous change.
14132 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
14135 2013-01-03 Richard Henderson <rth@redhat.com>
14137 * config/i386/i386.c (ix86_expand_move): Always assign to op1
14138 after eliminating TLS symbols.
14140 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
14143 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
14144 * graphite-poly.c (debug_gmp_value): Likewise.
14146 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
14149 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
14150 selected code model, define __code_mode_small__, __code_model_medium__,
14151 __code_model_large__, __code_model_32__ or __code_model_kernel__.
14152 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
14153 xchg temporary register with %k. Declare temporary register as
14155 [__x86_64__]: For medium and large code models, preserve %rbx register.
14157 2013-01-03 Richard Biener <rguenther@suse.de>
14159 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
14160 (dump_subscript): Adjust.
14161 (finalize_ddr_dependent): Do not dump redundant info.
14162 (analyze_siv_subscript): Adjust.
14163 (subscript_dependence_tester): Likewise.
14164 (compute_affine_dependence): Likewise.
14166 2013-01-03 Richard Biener <rguenther@suse.de>
14169 2013-01-03 Richard Biener <rguenther@suse.de>
14171 PR tree-optimization/55857
14172 * tree-vect-stmts.c (vectorizable_load): Do not setup
14173 re-alignment for invariant loads.
14175 2013-01-02 Richard Biener <rguenther@suse.de>
14177 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
14178 invariant load do not generate a vector load from the scalar location.
14180 2013-01-03 Richard Biener <rguenther@suse.de>
14182 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
14183 for not vectorizing.
14184 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
14185 not build INDIRECT_REFs, call get_name once only.
14186 (vect_create_data_ref_ptr): Likewise. Dump base object kind
14187 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
14189 2013-01-03 Richard Biener <rguenther@suse.de>
14191 PR tree-optimization/55857
14192 * tree-vect-stmts.c (vectorizable_load): Do not setup
14193 re-alignment for invariant loads.
14195 2013-01-03 Richard Biener <rguenther@suse.de>
14198 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
14199 prefer a built-in decl.
14201 2013-01-03 Jakub Jelinek <jakub@redhat.com>
14203 * gcc.c (process_command): Update copyright notice dates.
14204 * gcov.c (print_version): Likewise.
14205 * gcov-dump.c (print_version): Likewise.
14207 PR rtl-optimization/55838
14208 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
14209 iv0.step, iv1.step and step.
14211 2013-01-03 Jakub Jelinek <jakub@redhat.com>
14212 Marc Glisse <marc.glisse@inria.fr>
14214 PR tree-optimization/55832
14215 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
14216 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
14217 integer_{one,zero}_node.
14219 2013-01-03 Jakub Jelinek <jakub@redhat.com>
14222 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
14223 * var-tracking.c (reverse_op): Don't add reverse ops to
14224 VALUEs that have already
14225 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
14227 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
14229 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
14231 2013-01-02 Teresa Johnson <tejohnson@google.com>
14233 * dumpfile.c (dump_loc): Print filename with location.
14234 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
14235 new location_t parameter to emit complete unroll message with
14236 new dump framework.
14237 (canonicalize_loop_induction_variables): Compute loops location
14238 and pass to try_unroll_loop_completely.
14239 * loop-unroll.c (report_unroll_peel): New function.
14240 (peel_loops_completely): Use new dump format with location
14241 for main dumpfile message, and invoke report_unroll_peel on success.
14242 (decide_unrolling_and_peeling): Ditto.
14243 (decide_peel_once_rolling): Remove old dumpfile message subsumed
14244 by report_unroll_peel.
14245 (decide_peel_completely): Ditto.
14246 (decide_unroll_constant_iterations): Ditto.
14247 (decide_unroll_runtime_iterations): Ditto.
14248 (decide_peel_simple): Ditto.
14249 (decide_unroll_stupid): Ditto.
14250 * cfgloop.c (get_loop_location): New function.
14251 * cfgloop.h (get_loop_location): Declare.
14253 2013-01-02 Sriraman Tallam <tmsriram@google.com>
14255 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
14258 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14260 PR middle-end/55198
14261 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
14262 BLKmode objects when EXPAND_MEMORY is specified.
14264 2013-01-02 Sriraman Tallam <tmsriram@google.com>
14266 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
14268 (fold_builtin_cpu): Do not share cpu model decls across statements.
14270 2013-01-02 Jason Merrill <jason@redhat.com>
14273 * tree.c (build_array_type_1): Revert earlier change.
14275 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
14277 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
14279 * config/aarch64/aarch64-tune.md: Re-generate.
14281 2013-01-02 Richard Biener <rguenther@suse.de>
14283 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
14284 invariant load do not generate a vector load from the scalar location.
14286 2013-01-02 Richard Biener <rguenther@suse.de>
14289 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
14290 * configure: Regenerate.
14292 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
14294 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
14295 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
14296 (expand_builtin_int_roundingfn_2): Keep the original target around
14297 for the fallback case.
14299 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
14301 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
14302 to be clear for sign changes.
14304 2013-01-01 Jan Hubicka <jh@suse.cz>
14306 * ipa-inline-analysis.c: Fix formatting.
14308 2013-01-01 Jakub Jelinek <jakub@redhat.com>
14310 PR tree-optimization/55831
14311 * tree-vect-loop.c (get_initial_def_for_induction): Use
14312 gsi_after_labels instead of gsi_start_bb.
14314 Copyright (C) 2013 Free Software Foundation, Inc.
14316 Copying and distribution of this file, with or without modification,
14317 are permitted in any medium without royalty provided the copyright
14318 notice and this notice are preserved.